aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2016-10-09 13:42:57 +0000
committerAlan Mackenzie2016-10-09 13:42:57 +0000
commit4f406e9813e073b675bb45613bf1dd111eec2368 (patch)
treebf1eee9cf573ec6d31bd7058825f3ac9ffb09edc
parent44e402ead35eb9b4d0bf8a94a4d3ca933629aba9 (diff)
downloademacs-4f406e9813e073b675bb45613bf1dd111eec2368.tar.gz
emacs-4f406e9813e073b675bb45613bf1dd111eec2368.zip
CC Mode manual: remove reference to former Emacs variable last-command-char
* doc/misc/cc-mode.texi (Hanging Semicolons and Commas): Replace reference to variable last-command-char by one to macro c-last-command-char.
-rw-r--r--doc/misc/cc-mode.texi9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/misc/cc-mode.texi b/doc/misc/cc-mode.texi
index 30b750ac03a..2d95fb824fc 100644
--- a/doc/misc/cc-mode.texi
+++ b/doc/misc/cc-mode.texi
@@ -3543,10 +3543,11 @@ use, add this function to the front of the
3543@example 3543@example
3544(defun c-semi&comma-no-newlines-before-nonblanks () 3544(defun c-semi&comma-no-newlines-before-nonblanks ()
3545 (save-excursion 3545 (save-excursion
3546 (if (and (eq last-command-char ?\;) 3546 (if (and (= (c-last-command-char) ?\;)
3547 (zerop (forward-line 1)) 3547 (zerop (forward-line 1))
3548 (not (looking-at "^[ \t]*$"))) 3548 (bolp) ; forward-line has funny behavior at eob.
3549 'stop 3549 (not (looking-at "^[ \t]*$")))
3550 'stop
3550 nil))) 3551 nil)))
3551@end example 3552@end example
3552@end defun 3553@end defun