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


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/newcomment.el
Date: Sun, 03 Mar 2002 20:17:11 -0500

Index: emacs/lisp/newcomment.el
diff -c emacs/lisp/newcomment.el:1.44 emacs/lisp/newcomment.el:1.45
*** emacs/lisp/newcomment.el:1.44       Sun Jan 13 04:59:39 2002
--- emacs/lisp/newcomment.el    Sun Mar  3 20:10:55 2002
***************
*** 5,11 ****
  ;; Author: code extracted from Emacs-20's simple.el
  ;; Maintainer: Stefan Monnier <address@hidden>
  ;; Keywords: comment uncomment
! ;; Revision: $Id: newcomment.el,v 1.44 2002/01/13 09:59:39 pj Exp $
  
  ;; This file is part of GNU Emacs.
  
--- 5,11 ----
  ;; Author: code extracted from Emacs-20's simple.el
  ;; Maintainer: Stefan Monnier <address@hidden>
  ;; Keywords: comment uncomment
! ;; Revision: $Id: newcomment.el,v 1.45 2002/03/04 01:10:55 monnier Exp $
  
  ;; This file is part of GNU Emacs.
  
***************
*** 389,399 ****
    (if (< n 0) (error "No comment-backward")
      (if comment-use-syntax (forward-comment n)
        (while (> n 0)
-       (skip-syntax-forward " ")
        (setq n
!             (if (and (looking-at comment-start-skip)
!                      (goto-char (match-end 0))
!                      (re-search-forward comment-end-skip nil 'move))
                  (1- n) -1)))
        (= n 0))))
  
--- 389,399 ----
    (if (< n 0) (error "No comment-backward")
      (if comment-use-syntax (forward-comment n)
        (while (> n 0)
        (setq n
!             (if (or (forward-comment 1)
!                     (and (looking-at comment-start-skip)
!                          (goto-char (match-end 0))
!                          (re-search-forward comment-end-skip nil 'move)))
                  (1- n) -1)))
        (= n 0))))
  



reply via email to

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