changeset 947:c45ba80a9da9

*** empty log message ***
author Roland McGrath <roland@gnu.org>
date Fri, 07 Aug 1992 01:13:47 +0000
parents ef045ff2cb94
children 928ed74adf4f
files lisp/add-log.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/add-log.el	Thu Aug 06 23:56:50 1992 +0000
+++ b/lisp/add-log.el	Fri Aug 07 01:13:47 1992 +0000
@@ -239,7 +239,10 @@
 	    ((and (or (eq major-mode 'c-mode)
 		      (eq major-mode 'c++-mode))
 		  (save-excursion (beginning-of-line)
-				  (while (= (char-after (- (point) 2)) ?\\)
+				  ;; Use eq instead of = here to avoid
+				  ;; error when at bob and char-after
+				  ;; returns nil.
+				  (while (eq (char-after (- (point) 2)) ?\\)
 				    (forward-line -1))
 				  (looking-at "[ \t]*#[ \t]*define[ \t]")))
 	     ;; Handle a C macro definition.