]> git.eshelyaron.com Git - emacs.git/commitdiff
(comment-enter-backward): Fix last fix.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 20 Nov 2005 23:25:46 +0000 (23:25 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 20 Nov 2005 23:25:46 +0000 (23:25 +0000)
lisp/ChangeLog
lisp/newcomment.el

index c5bbf08564fd107865e8eeb05b9830d91e3b7574..bd70373576207fa5bd92085d6a6c53f13802267d 100644 (file)
@@ -1,5 +1,7 @@
 2005-11-20  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * newcomment.el (comment-enter-backward): Fix last fix.
+
        * simple.el (blink-matching-open):
        * paren.el (show-paren-function): Allow new paren-class info.
 
index 7716a70435948e60c53316206390d1a1ab96176b..9995b4b9156f2e2cc1f7fcc1b1bea47fd1fc3b4b 100644 (file)
@@ -480,8 +480,8 @@ Point is assumed to be just at the end of a comment."
       (progn (backward-char) (skip-syntax-backward " "))
     (cond
      ((save-restriction
-        (beginning-of-line)
-        (narrow-to-region (point) end)
+        (narrow-to-region (line-beginning-position) (point))
+        (goto-char (point-min))
         (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