/[emacs]/emacs/lisp/newcomment.el
ViewVC logotype

Diff of /emacs/lisp/newcomment.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.44 by pj, Sun Jan 13 09:59:39 2002 UTC revision 1.45 by monnier, Mon Mar 4 01:10:55 2002 UTC
# Line 389  and can use regexps instead of syntax." Line 389  and can use regexps instead of syntax."
389    (if (< n 0) (error "No comment-backward")    (if (< n 0) (error "No comment-backward")
390      (if comment-use-syntax (forward-comment n)      (if comment-use-syntax (forward-comment n)
391        (while (> n 0)        (while (> n 0)
         (skip-syntax-forward " ")  
392          (setq n          (setq n
393                (if (and (looking-at comment-start-skip)                (if (or (forward-comment 1)
394                         (goto-char (match-end 0))                        (and (looking-at comment-start-skip)
395                         (re-search-forward comment-end-skip nil 'move))                             (goto-char (match-end 0))
396                               (re-search-forward comment-end-skip nil 'move)))
397                    (1- n) -1)))                    (1- n) -1)))
398        (= n 0))))        (= n 0))))
399    

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26