* bug#24477: 25.1; make-mode: should '$' have punctuation syntax?
@ 2016-09-20 5:55 Dima Kogan
2016-09-20 14:30 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Dima Kogan @ 2016-09-20 5:55 UTC (permalink / raw)
To: 24477
[-- Attachment #1: Type: text/plain, Size: 557 bytes --]
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?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: make-mode-punctuation-syntax-for-$.patch --]
[-- Type: text/x-diff, Size: 431 bytes --]
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'.")
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#24477: 25.1; make-mode: should '$' have punctuation syntax?
2016-09-20 5:55 bug#24477: 25.1; make-mode: should '$' have punctuation syntax? Dima Kogan
@ 2016-09-20 14:30 ` Eli Zaretskii
2016-09-20 17:00 ` Dima Kogan
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2016-09-20 14:30 UTC (permalink / raw)
To: Dima Kogan; +Cc: 24477
> From: Dima Kogan <dima@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)"?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-05-16 0:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-20 5:55 bug#24477: 25.1; make-mode: should '$' have punctuation syntax? Dima Kogan
2016-09-20 14:30 ` Eli Zaretskii
2016-09-20 17:00 ` Dima Kogan
2018-05-16 0:17 ` Noam Postavsky
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.