emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/newcomment.el, v [EMACS_22_BASE]


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/newcomment.el, v [EMACS_22_BASE]
Date: Fri, 04 Apr 2008 00:41:50 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Stefan Monnier <monnier>        08/04/04 00:41:48

Index: newcomment.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/newcomment.el,v
retrieving revision 1.101.2.4
retrieving revision 1.101.2.5
diff -u -b -r1.101.2.4 -r1.101.2.5
--- newcomment.el       3 Mar 2008 21:20:21 -0000       1.101.2.4
+++ newcomment.el       4 Apr 2008 00:41:47 -0000       1.101.2.5
@@ -487,10 +487,11 @@
       ;; comment-end = ""
       (progn (backward-char) (skip-syntax-backward " "))
     (cond
-     ((save-restriction
+     ((save-excursion
+        (save-restriction
         (narrow-to-region (line-beginning-position) (point))
         (goto-char (point-min))
-        (re-search-forward (concat comment-end-skip "\\'") nil t))
+          (re-search-forward (concat comment-end-skip "\\'") nil t)))
       (goto-char (match-beginning 0)))
      ;; comment-end-skip not found.  Maybe we're at EOB which implicitly
      ;; closes the comment.




reply via email to

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