From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.bugs Subject: bad coloring in shell script mode Date: Wed, 04 Jun 2003 19:02:35 -0500 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1054773017 29172 80.91.224.249 (5 Jun 2003 00:30:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2003 00:30:17 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 05 02:30:12 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Nidv-0007Nm-00 for ; Thu, 05 Jun 2003 02:30:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NiY7-0002fI-DD for gnu-bug-gnu-emacs@m.gmane.org; Wed, 04 Jun 2003 20:24:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19NiRy-0000tu-Kd for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2003 20:17:50 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19NiJl-0006KR-Mr for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2003 20:09:23 -0400 Original-Received: from dell3.ma.utexas.edu ([146.6.139.124]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NiDE-0004aT-Ab for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2003 20:02:36 -0400 Original-Received: from linux182.ma.utexas.edu (linux182.ma.utexas.edu [146.6.139.171]) by dell3.ma.utexas.edu (8.11.3/8.10.2) with ESMTP id h5502ZN00883 for ; Wed, 4 Jun 2003 19:02:35 -0500 Original-Received: from jcorneli by linux182.ma.utexas.edu with local (Exim 3.36 #1 (Debian)) id 19NiDD-0000QM-00 for ; Wed, 04 Jun 2003 19:02:35 -0500 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5235 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5235 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-03-22 on raven, modified by Debian configured using `configure i386-debian-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes --with-x-toolkit=athena --without-gif' 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: C locale-coding-system: nil default-enable-multibyte-characters: nil Please describe exactly what actions triggered the bug and the precise symptoms of the bug: This line grep "<<$SF>>" $HOME/.todo/$TODOLIST > $HOME/p causes everything after it to be in Sh Heredoc Face.... well, everything until a similar line is encountered later on in the code, then normal fontlock behaviour begins again. Specifically, the line grep -v "<\*>" $HOME/.todo/$TODOLIST | grep "<<.*>>" - > $HOME/b turns font lock back on. The intervening line sed -e "s/^\($SF:\)\(.*<<\)\(.*\)\(>>\)$/\3/"` doesn't have any effect. Note that this behaviour is not present in XEmacs 21.5. Recent input: RET C-s r a t p o i C-s C-s C-s C-s C-s C-s C-s C-s ESC s C-x o C-s C-g ESC O B ESC O B C-s r e p o r t C-s C-s C-s C-s C-s ESC O D ESC x r e p o r t - e m a c s - b u g RET b a d SPC c o l o r i n g SPC i n C-x o C-x C-f C-g C-x C-f t o d o RET ESC x r e p TAB o TAB r TAB RET Recent messages: Loading rxvt (source)...done Loading /home/jcorneli/.emacs.elc...done ratpoison: command not found isearch-abort: Quit Mark saved where search started Loading emacsbug...done ratpoison: command not found byte-code: Command attempted to use minibuffer while in minibuffer keyboard-quit: Quit Making completion list... [2 times]