help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: thanks for eval-after-load but...


From: Kevin Rodgers
Subject: Re: thanks for eval-after-load but...
Date: Mon, 10 Nov 2003 09:40:32 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Glenn Morris wrote:

Joe Corneli wrote:


After running this

(eval-after-load "sh-script" '(put 'sh-maybe-here-document 'disabled t))

and opening a bash script with this in it

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

`ade=$?' and following text is still in sh-heredoc-face

So I guessed wrong, and disabling that command is not enough.


From the section of the emacs manual "Disabling commands":

    Disabling a command has no effect on calling it as a function
    from Lisp programs.

That is, it only affects interative use via M-x.

The incorrect identification of the line you quote as a heredoc is
fixed in the CVS version of emacs.

So does this work in the meantime?


(eval-after-load "sh-script"
  '(defalias (quote sh-maybe-here-document) (quote ignore)))

--
Kevin Rodgers



reply via email to

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