From: Daniel Daboul <danieldaboul@gmail.com>
To: 18756@debbugs.gnu.org
Subject: bug#18756: 24.4; shell-script-mode does wrong indentation
Date: Fri, 17 Oct 2014 22:36:03 +0300 [thread overview]
Message-ID: <CAFj5VXEYgEzZ1gCrfkUnQ+RcBYtsB4t3Y1Upn82_ib6L2tdZ5w@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2721 bytes --]
M-x shell-script-mode<Enter>
#hi<Enter>
ls<Enter>
x-3<Enter>
With every <Enter> key-press the current line gets indeted, so that
the buffer looks like:
#hi
ls
x=3
<Tab> also mis-behaves. Emacs 24.3.1, OTOH, works fine for me.
In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2014-10-17 on icsl5123
System Description: SUSE Linux Enterprise Server 10 (x86_64)
Configured using:
`configure --prefix=/nfs/iil/home/ddaboul/r/sles10 --with-gif=no
--without-pop --without-sound --without-gpm --without-dbus
--with-x-toolkit=lucid'
Important settings:
value of $LC_COLLATE: C
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Shell-script
Minor modes in effect:
sh-electric-here-document-mode: t
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
ESC [ > 0 ; 2 0 8 ; 0 c ESC x s h e l l - s c r i p
t - m o d e RET # h i RET l s RET x = 3 RET ESC x r
e p o r t - e m a c s - b u g RET
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
No indentation for this shell type.
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils sh-script smie executable xterm
time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment lisp-mode prog-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dynamic-setting x-toolkit x multi-tty
emacs)
Memory information:
((conses 16 83253 3991)
(symbols 48 18103 0)
(miscs 40 31 113)
(strings 32 12327 4537)
(string-bytes 1 361598)
(vectors 16 7894)
(vector-slots 8 361363 27987)
(floats 8 63 284)
(intervals 56 186 0)
(buffers 960 11)
(heap 1024 8017 572))
[-- Attachment #2: Type: text/html, Size: 3113 bytes --]
next reply other threads:[~2014-10-17 19:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-17 19:36 Daniel Daboul [this message]
2014-10-17 22:35 ` bug#18756: 24.4; shell-script-mode does wrong indentation Glenn Morris
2014-10-18 18:49 ` Daniel Daboul
2014-10-19 17:37 ` Glenn Morris
2014-10-19 18:35 ` Daniel Daboul
2014-10-20 5:35 ` Glenn Morris
2014-10-20 13:59 ` Alexis
2014-10-20 15:20 ` Eli Zaretskii
2014-10-20 16:13 ` Daniel Daboul
2014-10-22 1:01 ` Alexis
2014-10-22 3:22 ` Stefan Monnier
2014-10-22 3:37 ` Alexis
2014-10-22 13:04 ` Stefan Monnier
2014-10-25 19:20 ` Daniel Daboul
2014-10-26 2:43 ` Stefan Monnier
2014-12-04 8:06 ` Gilles Pion
2014-12-04 14:43 ` Stefan Monnier
2014-12-22 20:34 ` bug#18756: Peter Oliver
2015-01-06 18:55 ` bug#18756: 24.4; shell-script-mode does wrong indentation Glenn Morris
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=CAFj5VXEYgEzZ1gCrfkUnQ+RcBYtsB4t3Y1Upn82_ib6L2tdZ5w@mail.gmail.com \
--to=danieldaboul@gmail.com \
--cc=18756@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.