GNU bug report logs -
#24477
25.1; make-mode: should '$' have punctuation syntax?
Previous Next
Reported by: Dima Kogan <dima <at> secretsauce.net>
Date: Tue, 20 Sep 2016 05:57:01 UTC
Severity: normal
Tags: fixed
Found in version 25.1
Fixed in version 27.1
Done: Noam Postavsky <npostavs <at> gmail.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 24477 in the body.
You can then email your comments to 24477 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#24477
; Package
emacs
.
(Tue, 20 Sep 2016 05:57:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dima Kogan <dima <at> secretsauce.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 20 Sep 2016 05:57:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
This is a report from this emacs-devel post:
https://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00414.html
Making a bug report to keep track of this question. The original
message:
I've been working with Makefiles recently, and discovered that $ has
word syntax. This results in odd behaviors. For instance, if you have
asdf-$(xyz)
in your buffer with the point on 'a', then commands like M-s . or
C-M-SPC select "asdf-$", which makes no sense. Shouldn't $ have
punctuation syntax (attached patch)? Am I missing something obvious
here?
[make-mode-punctuation-syntax-for-$.patch (text/x-diff, inline)]
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el
index fb71420..2b4ed85 100644
--- a/lisp/progmodes/make-mode.el
+++ b/lisp/progmodes/make-mode.el
@@ -712,6 +712,7 @@ makefile-mode-syntax-table
(modify-syntax-entry ?# "< " st)
(modify-syntax-entry ?\n "> " st)
(modify-syntax-entry ?= "." st)
+ (modify-syntax-entry ?$ "." st)
st)
"Syntax table used in `makefile-mode'.")
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24477
; Package
emacs
.
(Tue, 20 Sep 2016 14:31:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 24477 <at> debbugs.gnu.org (full text, mbox):
> From: Dima Kogan <dima <at> secretsauce.net>
> Date: Mon, 19 Sep 2016 22:55:34 -0700
>
> I've been working with Makefiles recently, and discovered that $ has
> word syntax. This results in odd behaviors. For instance, if you have
>
> asdf-$(xyz)
>
> in your buffer with the point on 'a', then commands like M-s . or
> C-M-SPC select "asdf-$", which makes no sense. Shouldn't $ have
> punctuation syntax (attached patch)? Am I missing something obvious
> here?
Does your change still allow to type "C-x 4 a" in a line like this:
asdf-$(xyz) = FOO
and get a ChangeLog entry that references "asdf-$(xyz)"?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24477
; Package
emacs
.
(Tue, 20 Sep 2016 17:01:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 24477 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Does your change still allow to type "C-x 4 a" in a line like this:
>
> asdf-$(xyz) = FOO
>
> and get a ChangeLog entry that references "asdf-$(xyz)"?
It appears to, yes.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24477
; Package
emacs
.
(Wed, 16 May 2018 00:19:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 24477 <at> debbugs.gnu.org (full text, mbox):
tags 24477 fixed
close 24477 27.1
quit
Dima Kogan <dima <at> secretsauce.net> writes:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>> Does your change still allow to type "C-x 4 a" in a line like this:
>>
>> asdf-$(xyz) = FOO
>>
>> and get a ChangeLog entry that references "asdf-$(xyz)"?
>
> It appears to, yes.
`makefile-add-log-defun' doesn't consult the syntax table, it uses only
regexps (which don't use the \sSYNTAX construct, as far as I can tell).
Anyway, there seems to be no reason not to make this change, so I've
pushed it in master.
[1: 4c3cd27df9]: 2018-05-15 19:33:34 -0400
Give '$' punctuation syntax in make-mode (Bug#24477)
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=4c3cd27df9c0735d907813a8c16a87acc54b9edc
Added tag(s) fixed.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 16 May 2018 00:19:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
24477 <at> debbugs.gnu.org and Dima Kogan <dima <at> secretsauce.net>
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 16 May 2018 00:19: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
.
(Wed, 13 Jun 2018 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 87 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.