unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

* bug#24477: 25.1; make-mode: should '$' have punctuation syntax?
  2016-09-20 14:30 ` Eli Zaretskii
@ 2016-09-20 17:00   ` Dima Kogan
  2018-05-16  0:17     ` Noam Postavsky
  0 siblings, 1 reply; 4+ messages in thread
From: Dima Kogan @ 2016-09-20 17:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 24477

Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24477: 25.1; make-mode: should '$' have punctuation syntax?
  2016-09-20 17:00   ` Dima Kogan
@ 2018-05-16  0:17     ` Noam Postavsky
  0 siblings, 0 replies; 4+ messages in thread
From: Noam Postavsky @ 2018-05-16  0:17 UTC (permalink / raw)
  To: Dima Kogan; +Cc: 24477

tags 24477 fixed
close 24477 27.1
quit

Dima Kogan <dima@secretsauce.net> writes:

> Eli Zaretskii <eliz@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





^ 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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).