# HG changeset patch # User J.D. Smith # Date 1164650875 0 # Node ID d9bf7b54a410fb91c60cd286584aec9bd97bb3a1 # Parent c9bd6025f40e6b39aa439ccd5717987cb3b8804e (hs-already-hidden-p): Move to end of line so hidden blocks will be correctly identified. diff -r c9bd6025f40e -r d9bf7b54a410 lisp/progmodes/hideshow.el --- a/lisp/progmodes/hideshow.el Mon Nov 27 17:13:39 2006 +0000 +++ b/lisp/progmodes/hideshow.el Mon Nov 27 18:07:55 2006 +0000 @@ -706,6 +706,7 @@ (if (and c-reg (nth 0 c-reg)) ;; point is inside a comment, and that comment is hidable (goto-char (nth 0 c-reg)) + (end-of-line) (when (and (not c-reg) (hs-find-block-beginning) (looking-at hs-block-start-regexp))