[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shell-script-mode]: should insert two spaces between []
From: |
Frank Küster |
Subject: |
[shell-script-mode]: should insert two spaces between [] |
Date: |
Sat, 27 Aug 2005 14:55:34 +0200 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Hi Emacs team,
In shell-script-mode, pressing `[' inserts `[]' (when skeleton-pair is
set to t) and places point between the brackets. When you carry on
typing, too easily you end up with something like
[ -f "$somefile"]
which gives a syntax error, because a space is missing before the
closing ]. This could be resolved by inserting `[ ]' instead, and
placing point between the two inserted spaces.
TIA, Frank
In GNU Emacs 21.4.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2005-03-17 on trouble, modified by Debian
configured using `configure '--build=i386-linux' '--host=i386-linux'
'--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
'--localstatedir=/var/lib' '--infodir=/usr/share/info'
'--mandir=/usr/share/man' '--with-pop=yes' '--with-x=yes'
'--with-x-toolkit=athena' 'CFLAGS=-DDEBIAN -g -O2' 'build_alias=i386-linux'
'host_alias=i386-linux''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: C
value of $LC_TIME: de_DE.UTF-8@euro
value of $LANG: de_DE@euro
locale-coding-system: iso-latin-9
default-enable-multibyte-characters: t
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
--
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer
- [shell-script-mode]: should insert two spaces between [],
Frank Küster <=