[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: syntax for ?= in sh-mode
From: |
Dan Nicolaescu |
Subject: |
Re: syntax for ?= in sh-mode |
Date: |
Fri, 10 Sep 2004 14:15:03 -0700 |
address@hidden (Daniel Pfeiffer) writes:
> Saluton,
>
> Dan Nicolaescu <address@hidden> skribis:
>
> > Is there any reason that the syntax of ?= is symbol in sh-mode?
> > Can it be changed to punctuation (or something else)?
>
> I would assume so, but I am not the maintainer of sh-mode. I don't think,
> when I created this mode centuries ago, that I made it to be that way. I
> wonder if there was some reason for this change...
>
> > This causes problem with dabbrev.
> >
> > For example, given the following file:
> >
> > #!/bin/bash
> > MY_LONG_VAR=234
> >
> > ANOTHER_VAR=${MY_LO
> >
> > If the point is at the end (after _LO) and M-/ is pressed the
> > completion will be "${MY_LONG_VAR=234", which is not very helpful.
> > Changing the syntax of ?= to be "." makes M-/ complete ${MY_LONG_VAR,
> > which is nicer.
>
> Fully agreed!
The patch below implements this.
Can somebody please check this in?
2004-09-10 Dan Nicolaescu <address@hidden>
* progmodes/sh-script.el (sh-mode-default-syntax-table): Set syntax
of = to "." (punctuation).
*** sh-script.el 20 Aug 2004 14:28:40 -0700 1.140
--- sh-script.el 10 Sep 2004 14:05:30 -0700
***************
*** 421,426 ****
--- 421,427 ----
?^ "_"
?~ "_"
?, "_"
+ ?= "."
?< "."
?> ".")
"Default syntax table for shell mode.")
- Re: syntax for ?= in sh-mode, Daniel Pfeiffer, 2004/09/10
- Re: syntax for ?= in sh-mode,
Dan Nicolaescu <=
- Re: syntax for ?= in sh-mode, Daniel Pfeiffer, 2004/09/12
- Re: syntax for ?= in sh-mode, Richard Stallman, 2004/09/13
- Re: syntax for ?= in sh-mode, Daniel Pfeiffer, 2004/09/15
- Message not available
- Re: syntax for ?= in sh-mode, Daniel Pfeiffer, 2004/09/17
- Re: syntax for ?= in sh-mode, Stefan, 2004/09/18
- Re: syntax for ?= in sh-mode, Richard Stallman, 2004/09/19
- Re: syntax for ?= in sh-mode, Stefan, 2004/09/20
- Re: syntax for ?= in sh-mode, Richard Stallman, 2004/09/21
- Re: syntax for ?= in sh-mode, Stefan Monnier, 2004/09/21
- Re: syntax for ?= in sh-mode, Miles Bader, 2004/09/21