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

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

shell-script-mode gets lost in small repro


From: Johan Walles
Subject: shell-script-mode gets lost in small repro
Date: Mon, 16 Jul 2007 14:26:58 +0200

In GNU Emacs 23.0.0.1 (i486-pc-linux-gnu, GTK+ Version 2.10.11)
of 2007-07-06 on helios
Windowing system distributor `The X.Org Foundation', version 11.0.70200000
configured using `configure  '--build' 'i486-linux-gnu' '--host'
'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--localstatedir=/var'
'--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.0/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.0/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.0.0/leim'
'--with-x=yes' '--with-x-toolkit=gtk' '--enable-font-backend'
'--with-xft' '--with-freetype' 'build_alias=i486-linux-gnu'
'host_alias=i486-linux-gnu' 'CC=gcc' 'CFLAGS=-DDEBIAN
-DSITELOAD_PURESIZE_EXTRA=5000 -g -O2''

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: nil
 value of $LC_TIME: nil
 value of $LANG: swedish
 value of $XMODIFIERS: nil
 locale-coding-system: iso-latin-1-unix
 default-enable-multibyte-characters: t

Major mode: Shell-script

Minor modes in effect:
 show-paren-mode: t
 pc-selection-mode: t
 global-auto-revert-mode: t
 auto-revert-mode: t
 delete-selection-mode: t
 tooltip-mode: t
 tool-bar-mode: t
 mouse-wheel-mode: t
 menu-bar-mode: t
 file-name-shadow-mode: t
 global-font-lock-mode: t
 font-lock-mode: t
 global-auto-composition-mode: t
 auto-composition-mode: t
 auto-compression-mode: t
 line-number-mode: t
 transient-mark-mode: t

Type the following in a buffer in shell-script-mode:

#!/bin/bash
while false ; do
   echo "server $(hostname), $(date)" |
   mail -s "Alert: Almost out of disk space $usep%" $ADMIN
done

Note that shell-script-mode gets lost at the "mail" line, thinking it
is some kind of pre-formatted text.  Really obvious in font-lock-mode,
or if you try to indent the "mail" line using TAB.

Removing $(date) from the line before works around the problem.

 Regards //Johan




reply via email to

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