unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* make-local-hook?
@ 2016-06-09  3:07 John Conover
  2016-06-09 16:36 ` make-local-hook? Kaushal Modi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: John Conover @ 2016-06-09  3:07 UTC (permalink / raw)
  To: help-gnu-emacs

Is there an alternative function in emacs 24 to make-local-hook in
emacs 19-23?

    Thanks,

    John

-- 

John Conover, conover@rahul.net, http://www.johncon.com/



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

* Re: make-local-hook?
  2016-06-09  3:07 make-local-hook? John Conover
@ 2016-06-09 16:36 ` Kaushal Modi
  2016-06-09 17:34 ` make-local-hook? Glenn Morris
  2016-06-10 20:25 ` make-local-hook? Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Kaushal Modi @ 2016-06-09 16:36 UTC (permalink / raw)
  To: John Conover, help-gnu-emacs

I believe defvar-local should work just fine. Because after all, hooks are
variables.

On Thu, Jun 9, 2016, 12:26 PM John Conover <conover@rahul.net> wrote:

> Is there an alternative function in emacs 24 to make-local-hook in
> emacs 19-23?
>
>     Thanks,
>
>     John
>
> --
>
> John Conover, conover@rahul.net, http://www.johncon.com/
>
> --

-- 
Kaushal Modi


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

* Re: make-local-hook?
  2016-06-09  3:07 make-local-hook? John Conover
  2016-06-09 16:36 ` make-local-hook? Kaushal Modi
@ 2016-06-09 17:34 ` Glenn Morris
  2016-06-10 20:25 ` make-local-hook? Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2016-06-09 17:34 UTC (permalink / raw)
  To: John Conover; +Cc: help-gnu-emacs

John Conover wrote:

> Is there an alternative function in emacs 24 to make-local-hook in
> emacs 19-23?

From the doc of Emacs 21-23:
    
    This function is obsolete since 21.1;
    not necessary any more.
    [...]
    You never need to call this function now that `add-hook' does it for you
    if its LOCAL argument is non-nil.



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

* Re: make-local-hook?
  2016-06-09  3:07 make-local-hook? John Conover
  2016-06-09 16:36 ` make-local-hook? Kaushal Modi
  2016-06-09 17:34 ` make-local-hook? Glenn Morris
@ 2016-06-10 20:25 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2016-06-10 20:25 UTC (permalink / raw)
  To: help-gnu-emacs

> Is there an alternative function in emacs 24 to make-local-hook in
> emacs 19-23?

You can use `ignore' or `identity' ;-)


        Stefan




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

end of thread, other threads:[~2016-06-10 20:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-09  3:07 make-local-hook? John Conover
2016-06-09 16:36 ` make-local-hook? Kaushal Modi
2016-06-09 17:34 ` make-local-hook? Glenn Morris
2016-06-10 20:25 ` make-local-hook? Stefan Monnier

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).