aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/cc-awk.el
diff options
context:
space:
mode:
authorAlan Mackenzie <[email protected]>2007-04-09 10:51:29 +0000
committerAlan Mackenzie <[email protected]>2007-04-09 10:51:29 +0000
commit28abe5e279255c2b19564bd662f87e978c79702d (patch)
tree7715e1f5d99b99f04cfe2664a08c580420d909f9 /lisp/progmodes/cc-awk.el
parent1eca8ae69b8c081af9c0ca12d292ea91929f5ed6 (diff)
Changes to make `narrow-to-defun' and `mark-defun' work properly in CC
Mode: cc-defs.el (c-beginning-of-defun-1): cc-cmds.el (c-beginning-of-defun, c-end-of-defun): bind beginning/end-of-defun-function to nil around calls to beginning/end-of-defun. cc-langs.el (beginning-of-defun-function, end-of-defun-function): new c-lang-setvar's. cc-awk.el (c-awk-beginning-of-defun): Add "(or arg (setq arg 1))" to enable non-interactive call.
Diffstat (limited to 'lisp/progmodes/cc-awk.el')
-rw-r--r--lisp/progmodes/cc-awk.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/cc-awk.el b/lisp/progmodes/cc-awk.el
index b0c15bff90..b3e0e38113 100644
--- a/lisp/progmodes/cc-awk.el
+++ b/lisp/progmodes/cc-awk.el
@@ -988,6 +988,7 @@ nor helpful.
Note that this function might do hidden buffer changes. See the
comment at the start of cc-engine.el for more info."
(interactive "p")
+ (or arg (setq arg 1))
(save-match-data
(c-save-buffer-state ; ensures the buffer is writable.
nil