1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-20 18:17:20 +00:00

* progmodes/hideshow.el (hs-inside-comment-p): Fix hiding of first line.

Fixes: debbugs:10855
This commit is contained in:
John Yates 2012-03-22 01:02:09 +08:00 committed by Chong Yidong
parent 69188b79df
commit 91d82a7029
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-03-21 John Yates <john@yates-sheets.org> (tiny change)
* progmodes/hideshow.el (hs-inside-comment-p): Fix hiding of first
line (Bug#10855).
2012-03-21 Drew Adams <drew.adams@oracle.com>
* info.el (Info-menu): Handle string value of FORK arg (Bug#10858).

View File

@ -607,6 +607,7 @@ as cdr."
;; 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...