GNU bug report logs -
#16296
subword.el regexps shouldn't be constants
Previous Next
Reported by: Phil Sainty <psainty <at> orcon.net.nz>
Date: Sun, 29 Dec 2013 23:46:02 UTC
Severity: minor
Done: Paul Eggert <eggert <at> cs.ucla.edu>
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 16296 in the body.
You can then email your comments to 16296 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16296
; Package
emacs
.
(Sun, 29 Dec 2013 23:46:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Phil Sainty <psainty <at> orcon.net.nz>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 29 Dec 2013 23:46:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I notice that a recent(ish) change in subword.el changed the two
regexps (subword-forward-regexp and subword-backward-regexp) into
constants.
The reason for splitting them out into variables in the first
place was to help make subword-mode easily adaptable to other
situations where similar functionality was needed, but for different
definitions of 'subword'.
For the situation where the normal subword-forward/backward-function
values are fine and you simply need buffer-local overrides for the
regexps, this newer change would seem to be counter-productive.
Can we please revert it?
-Phil
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16296
; Package
emacs
.
(Fri, 03 Jan 2014 18:16:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 16296 <at> debbugs.gnu.org (full text, mbox):
On Mon, 30 Dec 2013 12:43:10 +1300 Phil Sainty <psainty <at> orcon.net.nz> wrote:
PS> I notice that a recent(ish) change in subword.el changed the two
PS> regexps (subword-forward-regexp and subword-backward-regexp) into
PS> constants.
PS> The reason for splitting them out into variables in the first
PS> place was to help make subword-mode easily adaptable to other
PS> situations where similar functionality was needed, but for different
PS> definitions of 'subword'.
PS> For the situation where the normal subword-forward/backward-function
PS> values are fine and you simply need buffer-local overrides for the
PS> regexps, this newer change would seem to be counter-productive.
PS> Can we please revert it?
For reference, you mean this commit?
revno: 113492
fixes bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13758
committer: Stefan Monnier <monnier <at> iro.umontreal.ca>
branch nick: trunk
timestamp: Mon 2013-07-22 12:25:32 -0400
message:
* lisp/progmodes/subword.el: Fix boundary case.
(subword-forward-regexp): Make it a constant. Wrap optional \\W in its
own group.
(subword-backward-regexp): Make it a constant.
(subword-forward-internal): Don't treat a trailing capital as the
beginning of a word.
* test/automated/subword-tests.el: New file.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16296
; Package
emacs
.
(Fri, 03 Jan 2014 22:09:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 16296 <at> debbugs.gnu.org (full text, mbox):
> (subword-forward-regexp): Make it a constant. Wrap optional \\W in its
> own group.
> (subword-backward-regexp): Make it a constant.
If there are reasons for users to change them, then feel free to revert
them to defvars.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16296
; Package
emacs
.
(Sat, 04 Jan 2014 12:43:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 16296 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 4/01/2014 11:08, Stefan Monnier wrote:
> If there are reasons for users to change them, then feel free
> to revert them to defvars.
Great, thank you.
On 4/01/2014 07:16, Ted Zlatanov wrote:
> For reference, you mean this commit?
>
> revno: 113492
> fixes bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13758
> committer: Stefan Monnier <monnier <at> iro.umontreal.ca>
> branch nick: trunk
> timestamp: Mon 2013-07-22 12:25:32 -0400
> message:
> * lisp/progmodes/subword.el: Fix boundary case.
> (subword-forward-regexp): Make it a constant. Wrap optional \\W in its
> own group.
> (subword-backward-regexp): Make it a constant.
> (subword-forward-internal): Don't treat a trailing capital as the
> beginning of a word.
> * test/automated/subword-tests.el: New file.
Yes, that's the one (although note that I'm not suggesting reverting
that entire commit; just the defvar -> defconst changes).
I've attached a patch.
-Phil
[subword-regexp-vars.patch (text/plain, attachment)]
Reply sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
You have taken responsibility.
(Sun, 05 Jan 2014 05:51:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Phil Sainty <psainty <at> orcon.net.nz>
:
bug acknowledged by developer.
(Sun, 05 Jan 2014 05:51:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 16296-done <at> debbugs.gnu.org (full text, mbox):
I installed that patch; thanks.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 02 Feb 2014 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 95 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.