* Syntax of $ in makefile-mode
@ 2016-09-16 4:29 Dima Kogan
0 siblings, 0 replies; only message in thread
From: Dima Kogan @ 2016-09-16 4:29 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 367 bytes --]
Hi.
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] only message in thread
only message in thread, other threads:[~2016-09-16 4:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-16 4:29 Syntax of $ in makefile-mode Dima Kogan
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.