emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r107643: * progmodes/hideshow.el (hs-


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107643: * progmodes/hideshow.el (hs-inside-comment-p): Fix hiding of first line.
Date: Thu, 22 Mar 2012 01:02:09 +0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107643
fixes bug(s): http://debbugs.gnu.org/10855
author: John Yates <address@hidden>
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Thu 2012-03-22 01:02:09 +0800
message:
  * progmodes/hideshow.el (hs-inside-comment-p): Fix hiding of first line.
modified:
  lisp/ChangeLog
  lisp/progmodes/hideshow.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-03-21 16:56:55 +0000
+++ b/lisp/ChangeLog    2012-03-21 17:02:09 +0000
@@ -1,3 +1,8 @@
+2012-03-21  John Yates  <address@hidden>  (tiny change)
+
+       * progmodes/hideshow.el (hs-inside-comment-p): Fix hiding of first
+       line (Bug#10855).
+
 2012-03-21  Drew Adams  <address@hidden>
 
        * info.el (Info-menu): Handle string value of FORK arg (Bug#10858).

=== modified file 'lisp/progmodes/hideshow.el'
--- a/lisp/progmodes/hideshow.el        2012-02-08 02:12:24 +0000
+++ b/lisp/progmodes/hideshow.el        2012-03-21 17:02:09 +0000
@@ -607,6 +607,7 @@
     ;; forward comment, and see if we are inside, then extend
     ;; forward and backward as long as we have comments
     (let ((q (point)))
+      (skip-chars-forward "[:blank:]")
       (when (or (looking-at hs-c-start-regexp)
                 (re-search-backward hs-c-start-regexp (point-min) t))
         ;; first get to the beginning of this comment...


reply via email to

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