diff options
| author | John Yates | 2012-03-22 01:02:09 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-03-22 01:02:09 +0800 |
| commit | 91d82a702998f32b124d6efc89f3603af05313fe (patch) | |
| tree | 0b40731fca25f3d44c8a3b2547cc9c9488bed608 | |
| parent | 69188b79dfc4b933f818d536783b6911140961b7 (diff) | |
| download | emacs-91d82a702998f32b124d6efc89f3603af05313fe.tar.gz emacs-91d82a702998f32b124d6efc89f3603af05313fe.zip | |
* progmodes/hideshow.el (hs-inside-comment-p): Fix hiding of first line.
Fixes: debbugs:10855
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/hideshow.el | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index db860979577..5a82dd4758d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-03-21 John Yates <john@yates-sheets.org> (tiny change) | ||
| 2 | |||
| 3 | * progmodes/hideshow.el (hs-inside-comment-p): Fix hiding of first | ||
| 4 | line (Bug#10855). | ||
| 5 | |||
| 1 | 2012-03-21 Drew Adams <drew.adams@oracle.com> | 6 | 2012-03-21 Drew Adams <drew.adams@oracle.com> |
| 2 | 7 | ||
| 3 | * info.el (Info-menu): Handle string value of FORK arg (Bug#10858). | 8 | * info.el (Info-menu): Handle string value of FORK arg (Bug#10858). |
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index 104a8f96727..26db60ddbc2 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el | |||
| @@ -607,6 +607,7 @@ as cdr." | |||
| 607 | ;; forward comment, and see if we are inside, then extend | 607 | ;; forward comment, and see if we are inside, then extend |
| 608 | ;; forward and backward as long as we have comments | 608 | ;; forward and backward as long as we have comments |
| 609 | (let ((q (point))) | 609 | (let ((q (point))) |
| 610 | (skip-chars-forward "[:blank:]") | ||
| 610 | (when (or (looking-at hs-c-start-regexp) | 611 | (when (or (looking-at hs-c-start-regexp) |
| 611 | (re-search-backward hs-c-start-regexp (point-min) t)) | 612 | (re-search-backward hs-c-start-regexp (point-min) t)) |
| 612 | ;; first get to the beginning of this comment... | 613 | ;; first get to the beginning of this comment... |