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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8279 in the body.
You can then email your comments to 8279 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8279; Package emacs. (Fri, 18 Mar 2011 07:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dima Kogan <dkogan <at> cds.caltech.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 18 Mar 2011 07:34:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dima Kogan <dkogan <at> cds.caltech.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: [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)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8279; Package emacs. (Sat, 28 May 2011 18:37:01 GMT) Full text and rfc822 format available.

Message #8 received at 8279 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Dima Kogan <dkogan <at> cds.caltech.edu>
Cc: 8279 <at> debbugs.gnu.org
Subject: Re: bug#8279: [PATCH] More fixes to prevent hide-show from being
	confused by commented-out braces
Date: Sat, 28 May 2011 14:35:57 -0400
Dima Kogan <dkogan <at> cds.caltech.edu> writes:

> 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:

+  "Returns non-nil if the point is at the block start.
+A function is useful for this to cleanly disregard commented-out
+blocks"

This docstring should use the active voice, i.e. "Returns non-nil if the
point is at the block start."  And there's no need to justify the use of
a function.

Otherwise, the patch looks reasonable; I've commited it.  Thanks.




bug closed, send any further explanations to 8279 <at> debbugs.gnu.org and Dima Kogan <dkogan <at> cds.caltech.edu> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Sat, 28 May 2011 18:37:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 26 Jun 2011 11:24:05 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 06 Oct 2011 19:29:01 GMT) Full text and rfc822 format available.

Forcibly Merged 6158 8279. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 06 Oct 2011 19:29:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 04 Nov 2011 11:24:03 GMT) Full text and rfc822 format available.

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.