* bug#10855: 24.0.93; hideshow does not hide comment with cursor in first line's indentation
@ 2012-02-20 13:44 John Yates
2012-03-21 17:02 ` Chong Yidong
0 siblings, 1 reply; 2+ messages in thread
From: John Yates @ 2012-02-20 13:44 UTC (permalink / raw)
To: 10855
hs-show-block will reveal a collapsed comment block when the cursor is
in that block's indentation. hs-hide-block will collapse a comment
block when the cursor is in the indentation of any line other than the
first. hs-hide-block will _not_ collapse a comment block if the
cursor is within the _first_ line's indentation.
The following one line patch corrects this slight asymetry:
--- cur/hideshow.el
+++ fix/hideshow.el
@@ -607,6 +609,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...
/john
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#10855: 24.0.93; hideshow does not hide comment with cursor in first line's indentation
2012-02-20 13:44 bug#10855: 24.0.93; hideshow does not hide comment with cursor in first line's indentation John Yates
@ 2012-03-21 17:02 ` Chong Yidong
0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2012-03-21 17:02 UTC (permalink / raw)
To: John Yates; +Cc: 10855
John Yates <john@yates-sheets.org> writes:
> hs-show-block will reveal a collapsed comment block when the cursor is
> in that block's indentation. hs-hide-block will collapse a comment
> block when the cursor is in the indentation of any line other than the
> first. hs-hide-block will _not_ collapse a comment block if the
> cursor is within the _first_ line's indentation.
>
> The following one line patch corrects this slight asymetry
Committed, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-21 17:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20 13:44 bug#10855: 24.0.93; hideshow does not hide comment with cursor in first line's indentation John Yates
2012-03-21 17:02 ` Chong Yidong
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.