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.
Full log
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'.")
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.