all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* thanks for eval-after-load but...
@ 2003-11-08 21:31 Joe Corneli
  0 siblings, 0 replies; 3+ messages in thread
From: Joe Corneli @ 2003-11-08 21:31 UTC (permalink / raw)
  Cc: help-gnu-emacs

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.
Any guess why? And how to actually change this behaviour?

Joe

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: thanks for eval-after-load but...
       [not found] <mailman.58.1068330839.2005.help-gnu-emacs@gnu.org>
@ 2003-11-09 14:38 ` Glenn Morris
  2003-11-10 16:40   ` Kevin Rodgers
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2003-11-09 14:38 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: thanks for eval-after-load but...
  2003-11-09 14:38 ` thanks for eval-after-load but Glenn Morris
@ 2003-11-10 16:40   ` Kevin Rodgers
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2003-11-10 16:40 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-10 16:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.58.1068330839.2005.help-gnu-emacs@gnu.org>
2003-11-09 14:38 ` thanks for eval-after-load but Glenn Morris
2003-11-10 16:40   ` Kevin Rodgers
2003-11-08 21:31 Joe Corneli

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.