all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dima Kogan <dima@secretsauce.net>
To: 24477@debbugs.gnu.org
Subject: bug#24477: 25.1; make-mode: should '$' have punctuation syntax?
Date: Mon, 19 Sep 2016 22:55:34 -0700	[thread overview]
Message-ID: <87mvj3nmi1.fsf@secretsauce.net> (raw)

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

             reply	other threads:[~2016-09-20  5:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-20  5:55 Dima Kogan [this message]
2016-09-20 14:30 ` bug#24477: 25.1; make-mode: should '$' have punctuation syntax? Eli Zaretskii
2016-09-20 17:00   ` Dima Kogan
2018-05-16  0:17     ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mvj3nmi1.fsf@secretsauce.net \
    --to=dima@secretsauce.net \
    --cc=24477@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.