aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/newcomment.el9
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d8aad9da953..efdc2bfc405 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-04-03 Stephen Berman <Stephen.Berman@gmx.net>
2
3 * newcomment.el (comment-enter-backward): Be careful to restore
4 position changed during narrowing.
5
12008-04-03 Giuliano Procida <giuliano.procida@googlemail.com> (tiny change) 62008-04-03 Giuliano Procida <giuliano.procida@googlemail.com> (tiny change)
2 7
3 * progmodes/perl-mode.el (perl-font-lock-syntactic-keywords): 8 * progmodes/perl-mode.el (perl-font-lock-syntactic-keywords):
diff --git a/lisp/newcomment.el b/lisp/newcomment.el
index 565b5e39137..3961d9dbb36 100644
--- a/lisp/newcomment.el
+++ b/lisp/newcomment.el
@@ -492,10 +492,11 @@ Point is assumed to be just at the end of a comment."
492 ;; comment-end = "" 492 ;; comment-end = ""
493 (progn (backward-char) (skip-syntax-backward " ")) 493 (progn (backward-char) (skip-syntax-backward " "))
494 (cond 494 (cond
495 ((save-restriction 495 ((save-excursion
496 (narrow-to-region (line-beginning-position) (point)) 496 (save-restriction
497 (goto-char (point-min)) 497 (narrow-to-region (line-beginning-position) (point))
498 (re-search-forward (concat comment-end-skip "\\'") nil t)) 498 (goto-char (point-min))
499 (re-search-forward (concat comment-end-skip "\\'") nil t)))
499 (goto-char (match-beginning 0))) 500 (goto-char (match-beginning 0)))
500 ;; comment-end-skip not found probably because it was not set 501 ;; comment-end-skip not found probably because it was not set
501 ;; right. Since \\s> should catch the single-char case, let's 502 ;; right. Since \\s> should catch the single-char case, let's