emacs-devel
[Top][All Lists]
Advanced

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

address@hidden: shell-script-mode gets lost in small repro]


From: Richard Stallman
Subject: address@hidden: shell-script-mode gets lost in small repro]
Date: Mon, 23 Jul 2007 18:30:47 -0400

[I sent this message a week ago but did not get a response.]

Would someone please try to DTRT, then ack?
Sometimes bugs like this are not feasible to fix, but I'd
like someone to at least try.

------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY 
        autolearn=failed version=3.1.0
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta;
        
h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
        
b=lGwtQ1aZB0tkJoOS2CfF5M45CizPKhwj0tUb8CRdYFDb7CWE5eXyrfyzA/s9hgHsUqqgFF4EuukZAl80M6Hc+2L1oK8CN6yxyQ4lIhZvoJtAwjeO/mlWHO07UnaDTU3npx6SQz1H2jAwfiHeiVRLDq2x6zuiytTLKNvXPvH4bQA=
Date: Mon, 16 Jul 2007 14:26:58 +0200
From: "Johan Walles" <address@hidden>
To: address@hidden
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Disposition: inline
Subject: shell-script-mode gets lost in small repro

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


_______________________________________________
emacs-pretest-bug mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY 
        autolearn=failed version=3.1.0
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta;
        
h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        
b=RrN35AnxsNyMTXph8u05dRv14BVh0DobwdFhbv57JKh3WJEY1f8wbgpqkhQ4e5+7MTWKUaRCXDxYHVq0ERZUXnP7RwUjCZV9E6bQd6JICq30E+2jMI1hF5zkDK3W/54lkRHowUjY4+/bkuZyOYVGQooU5MoV68qeJkgge9SsJAo=
Date: Mon, 16 Jul 2007 14:31:34 +0200
From: "Johan Walles" <address@hidden>
To: address@hidden
In-Reply-To: <address@hidden>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Disposition: inline
Subject: Re: shell-script-mode gets lost in small repro

Additional info: After typing in the whole script, you may have to
type a space at the end of the "echo" line to trigger the
lost-getting.

2007/7/16, Johan Walles <address@hidden>:
> 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
>


_______________________________________________
emacs-pretest-bug mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug





reply via email to

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