bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

insert-parentheses gives "$ ()" in shell scripts, want "$()"


From: Dan Jacobson
Subject: insert-parentheses gives "$ ()" in shell scripts, want "$()"
Date: 18 Jan 2001 09:36:21 +0800
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

Fellas, it may be ONEWS, but

** The command M-( now inserts spaces outside the open-parentheses in
some cases--depending on the syntax classes of the surrounding
characters.  If the variable `parens-dont-require-spaces' is non-nil,
it inhibits insertion of these spaces.

well, in makefiles, shell scripts, etc. when I type $ escape (
I am faced with
$ ()
which should much more ideally be
$()
for those modes.
If in C, the new way to type is "function ()",
instead of "function()", then I won't make a fuss.  But for at least
makefiles and shell scripts, I think lisp.el's
(memq (char-syntax (preceding-char)) '(?w ?_ ?\) ))
needs finer tuning, or whatever.  Until then, it is with heavy heart,
that I must (setq parens-require-spaces nil).

Oh by the way,
cd /usr/share/emacs/20.7/lisp/emacs-lisp/
grep -n -e parens-dont-require-spaces *.el /dev/null
grep finished with no matches found [same in parent dir.]
So I think ONEWS should be talking about parens-require-spaces instead.
[hmmm, I just discovered skeleton.el, maybe folks all use that instead...]
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com. 積丹尼



reply via email to

[Prev in Thread] Current Thread [Next in Thread]