unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Stefan Monnier" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu>
Subject: Re: how to override bad coloring in shell-script-mode?
Date: 04 Jun 2003 12:06:17 -0400	[thread overview]
Message-ID: <5lof1dj092.fsf@rum.cs.yale.edu> (raw)
In-Reply-To: mailman.7265.1054717678.21513.help-gnu-emacs@gnu.org

>   grep "<<$SF>>" $HOME/.todo/$TODOLIST > $HOME/p

It seems indeed to trigger a bug in sh-script in that it doesn't
notice that << is inside quotes (it looks like the bug appears
only if there's nothing between the " and the <<).

> This bad behaviour is not present in XEmacs, interestingly enough. 

I believe XEmacs uses completely different code for that mode.
Does it do anything at all with here documents ?

> I'll submit a bug report on this shortly, but in the mean time I'd like to
> know how to get Emacs to ignore everything having to do with "here docs".

No need to file a bug report, this bug is fixed in the CVS version of Emacs.
In the mean time, you might be able to fix the bug instead, with:

      (defadvice sh-font-lock-heredoc (before bug-fix activate)
        (setq start (1+ start)))

If you prefer to turn it all off try something like:

    (add-hook 'sh-mode-hook
      (lambda ()
        ;; Disable buggy heredoc matching in Emacs-21.[123].
        (defun sh-font-lock-heredoc (&rest r) nil)))


-- Stefan

       reply	other threads:[~2003-06-04 16:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7265.1054717678.21513.help-gnu-emacs@gnu.org>
2003-06-04 16:06 ` Stefan Monnier [this message]
     [not found] <E19NTay-0000kN-9U@monty-python.gnu.org>
2003-06-04  9:06 ` how to override bad coloring in shell-script-mode? Joe Corneli

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=5lof1dj092.fsf@rum.cs.yale.edu \
    --to=monnier+gnu.emacs.help/news/@flint.cs.yale.edu \
    /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.
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).