GNU bug report logs - #8279
[PATCH] More fixes to prevent hide-show from being confused by commented-out braces

Previous Next

Package: emacs;

Reported by: Dima Kogan <dkogan <at> cds.caltech.edu>

Date: Fri, 18 Mar 2011 07:34:02 UTC

Severity: normal

Tags: patch

Merged with 6158

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dima Kogan <dkogan <at> cds.caltech.edu>
To: 8279 <at> debbugs.gnu.org
Subject: bug#8279: [PATCH] More fixes to prevent hide-show from being confused by commented-out braces
Date: Fri, 18 Mar 2011 00:33:15 -0700
[Message part 1 (text/plain, inline)]
Earlier I submitted some fixes to hideshow.el to improve handling of
braces in comments (bug#8036). These fixes were incomplete and in one
case, incorrect. The attached patch improves hideshow.el further:

1. The previous patch made hs-find-block-beginning quit searching if a brace was
found inside a comment. This patch ignores that match and keeps searching.

2. There were some false positives of (looking-at hs-block-start-regexp) if the
point was at a commented-out brace. This patch wraps all instances of that in a
function to check for comments.
[0001-hideshow.el-corrected-improper-handling-of-braces-in.patch (text/x-patch, attachment)]

This bug report was last modified 13 years and 287 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.