unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: emacs-devel@gnu.org
Subject: [johan.walles@gmail.com: shell-script-mode gets lost in small repro]
Date: Mon, 16 Jul 2007 23:35:06 -0400	[thread overview]
Message-ID: <E1IAdq6-0001d6-3T@fencepost.gnu.org> (raw)

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" <johan.walles@gmail.com>
To: emacs-pretest-bug@gnu.org
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
emacs-pretest-bug@gnu.org
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" <johan.walles@gmail.com>
To: emacs-pretest-bug@gnu.org
In-Reply-To: <9b0752e70707160526p4c921496ibef8755f9a31cc38@mail.gmail.com>
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 <johan.walles@gmail.com>:
> 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
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

             reply	other threads:[~2007-07-17  3:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-17  3:35 Richard Stallman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-07-23 22:30 [johan.walles@gmail.com: shell-script-mode gets lost in small repro] Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1IAdq6-0001d6-3T@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).