* doc/misc/cc-mode.texi (Hanging Semicolons and Commas): Replace reference to
variable last-command-char by one to macro c-last-command-char.
@example
(defun c-semi&comma-no-newlines-before-nonblanks ()
(save-excursion
- (if (and (eq last-command-char ?\;)
- (zerop (forward-line 1))
- (not (looking-at "^[ \t]*$")))
- 'stop
+ (if (and (= (c-last-command-char) ?\;)
+ (zerop (forward-line 1))
+ (bolp) ; forward-line has funny behavior at eob.
+ (not (looking-at "^[ \t]*$")))
+ 'stop
nil)))
@end example
@end defun