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.
This commit is contained in:
parent
44e402ead3
commit
4f406e9813
1 changed files with 5 additions and 4 deletions
|
@ -3543,10 +3543,11 @@ use, add this function to the front of the
|
||||||
@example
|
@example
|
||||||
(defun c-semi&comma-no-newlines-before-nonblanks ()
|
(defun c-semi&comma-no-newlines-before-nonblanks ()
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(if (and (eq last-command-char ?\;)
|
(if (and (= (c-last-command-char) ?\;)
|
||||||
(zerop (forward-line 1))
|
(zerop (forward-line 1))
|
||||||
(not (looking-at "^[ \t]*$")))
|
(bolp) ; forward-line has funny behavior at eob.
|
||||||
'stop
|
(not (looking-at "^[ \t]*$")))
|
||||||
|
'stop
|
||||||
nil)))
|
nil)))
|
||||||
@end example
|
@end example
|
||||||
@end defun
|
@end defun
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue