emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el, v [EMACS_22_BA


From: Alan Mackenzie
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el, v [EMACS_22_BASE]
Date: Mon, 25 Feb 2008 21:15:51 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Alan Mackenzie <acmacm> 08/02/25 21:15:50

Index: cc-mode.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/cc-mode.el,v
retrieving revision 1.58.2.7
retrieving revision 1.58.2.8
diff -u -b -r1.58.2.7 -r1.58.2.8
--- cc-mode.el  20 Feb 2008 22:18:28 -0000      1.58.2.7
+++ cc-mode.el  25 Feb 2008 21:15:50 -0000      1.58.2.8
@@ -845,13 +845,11 @@
     (if (setq limits (c-literal-limits))
        (goto-char (cdr limits)))
 
-    (while (and (< (point) end)
-               (search-forward-regexp c-anchored-cpp-prefix end t))
+    (while (search-forward-regexp c-anchored-cpp-prefix end t)
       (when (c-beginning-of-macro)    ; Guard against being in a 
string/comment.
        (setq mbeg (point))
        (c-end-of-macro)          ; Do we need to go forward 1 char here?  No!
-       (c-neutralize-CPP-line mbeg (point)))
-      (forward-char))))                ; We might still be in a comment - this 
is OK.
+       (c-neutralize-CPP-line mbeg (point)))))) ; We might still be in a 
comment - this is OK.
 
 (defun c-before-change (beg end)
   ;; Function to be put on `before-change-function'.  Primarily, this calls




reply via email to

[Prev in Thread] Current Thread [Next in Thread]