From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Fwd: shell-script-mode gets lost in small repro Date: Mon, 23 Jul 2007 21:17:06 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185239842 29940 80.91.229.12 (24 Jul 2007 01:17:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Jul 2007 01:17:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 24 03:17:20 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ID91Z-0007cI-3u for ged-emacs-devel@m.gmane.org; Tue, 24 Jul 2007 03:17:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ID91Y-0005GC-Ix for ged-emacs-devel@m.gmane.org; Mon, 23 Jul 2007 21:17:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ID91U-0005Dj-BG for emacs-devel@gnu.org; Mon, 23 Jul 2007 21:17:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ID91T-0005DH-Pa for emacs-devel@gnu.org; Mon, 23 Jul 2007 21:17:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ID91T-0005DB-KI for emacs-devel@gnu.org; Mon, 23 Jul 2007 21:17:11 -0400 Original-Received: from tomts36.bellnexxia.net ([209.226.175.93] helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ID91Q-00089H-5F; Mon, 23 Jul 2007 21:17:08 -0400 Original-Received: from pastel.home ([70.53.195.145]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070724011706.ZEJP7033.tomts36-srv.bellnexxia.net@pastel.home>; Mon, 23 Jul 2007 21:17:06 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 91F2F80DB; Mon, 23 Jul 2007 21:17:06 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Mon\, 23 Jul 2007 18\:30\:47 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75430 Archived-At: > [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. I fixed it a few weeks before this report. Stefan > ------- 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" > 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" > 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 : >> 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 > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel