unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
@ 2012-03-27 19:47 Jambunathan K
  2012-03-27 19:57 ` Glenn Morris
  2012-03-27 20:00 ` Bastien
  0 siblings, 2 replies; 25+ messages in thread
From: Jambunathan K @ 2012-03-27 19:47 UTC (permalink / raw)
  To: 11104


Debugger entered--Lisp error: (void-function make-local-hook)
  make-local-hook(kill-buffer-hook)
  dictionary-mode()
  dictionary()
  dictionary-ensure-buffer()
  dictionary-new-search((nil . "!"))
  dictionary-lookup-definition()
  call-interactively(dictionary-lookup-definition t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

Library is file ~/elisp/dictionary-1.8.7/dictionary.elc

I understand that this is a third party library and possibly no longer
maintained. (See http://me.in-berlin.de/~myrkr/dictionary/download.html)

I see the following reference to `make-local-hook' in NEWS but it
doesn't help much.  

,---- C-h n
| * Incompatible Lisp Changes in Emacs 24.
| make-local-hook (not needed),
`----

Any workaround I can put locally in dictionary?



In GNU Emacs 24.0.94.1 (i386-mingw-nt5.1.2600)
 of 2012-03-19 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.6) --no-opt --enable-checking --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include'






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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-27 19:47 bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe? Jambunathan K
@ 2012-03-27 19:57 ` Glenn Morris
  2012-03-27 20:02   ` Bastien
  2012-03-27 20:19   ` Jambunathan K
  2012-03-27 20:00 ` Bastien
  1 sibling, 2 replies; 25+ messages in thread
From: Glenn Morris @ 2012-03-27 19:57 UTC (permalink / raw)
  To: Jambunathan K; +Cc: 11104

Jambunathan K wrote:

> Any workaround I can put locally in dictionary?

Delete any calls to make-local-hook. They are... not needed.
They do nothing (since Emacs 21.1).





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-27 19:47 bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe? Jambunathan K
  2012-03-27 19:57 ` Glenn Morris
@ 2012-03-27 20:00 ` Bastien
  1 sibling, 0 replies; 25+ messages in thread
From: Bastien @ 2012-03-27 20:00 UTC (permalink / raw)
  To: Jambunathan K; +Cc: 11104

Hi Jambunathan,

Jambunathan K <kjambunathan@gmail.com> writes:

> Debugger entered--Lisp error: (void-function make-local-hook)
>   make-local-hook(kill-buffer-hook)
>   dictionary-mode()
>   dictionary()
>   dictionary-ensure-buffer()
>   dictionary-new-search((nil . "!"))
>   dictionary-lookup-definition()
>   call-interactively(dictionary-lookup-definition t nil)
>   execute-extended-command(nil)
>   call-interactively(execute-extended-command nil nil)
>
> Library is file ~/elisp/dictionary-1.8.7/dictionary.elc
>
> I understand that this is a third party library and possibly no longer
> maintained. (See http://me.in-berlin.de/~myrkr/dictionary/download.html)
>
> I see the following reference to `make-local-hook' in NEWS but it
> doesn't help much.  
>
> ,---- C-h n
> | * Incompatible Lisp Changes in Emacs 24.
> | make-local-hook (not needed),
> `----
>
> Any workaround I can put locally in dictionary?

You can use this:

(defalias 'make-local-hook
  (if (featurep 'xemacs)
      'make-local-hook
    'ignore))

Perhaps this should be added to Emacs, I've seen another
packages that break only because of this.

-- 
 Bastien





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-27 19:57 ` Glenn Morris
@ 2012-03-27 20:02   ` Bastien
  2012-03-28 10:05     ` Leo
  2012-03-27 20:19   ` Jambunathan K
  1 sibling, 1 reply; 25+ messages in thread
From: Bastien @ 2012-03-27 20:02 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 11104, Jambunathan K

Glenn Morris <rgm@gnu.org> writes:

> Jambunathan K wrote:
>
>> Any workaround I can put locally in dictionary?
>
> Delete any calls to make-local-hook. They are... not needed.
> They do nothing (since Emacs 21.1).

Comment to my previous message in this thread:

(defalias 'make-local-hook
  (if (featurep 'xemacs)
      'make-local-hook
    'ignore))

is actually the same function that `gnus-make-local-hook'. 

Adding the defalias above is a more generalized backward-compatibility
fix that other packages than Gnus would be aware of.  Should we add it
to Emacs?

-- 
 Bastien





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-27 19:57 ` Glenn Morris
  2012-03-27 20:02   ` Bastien
@ 2012-03-27 20:19   ` Jambunathan K
  1 sibling, 0 replies; 25+ messages in thread
From: Jambunathan K @ 2012-03-27 20:19 UTC (permalink / raw)
  To: 11104

Glenn Morris <rgm@gnu.org> writes:

> Jambunathan K wrote:
>
>> Any workaround I can put locally in dictionary?
>
> Delete any calls to make-local-hook. They are... not needed.
> They do nothing (since Emacs 21.1).

Ahhh, the comment is too succinct and I got confused.

For the sake of record, I have done this.

  (defalias 'make-local-hook 'ignore)





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-27 20:02   ` Bastien
@ 2012-03-28 10:05     ` Leo
  2012-03-28 10:29       ` Bastien
  2012-03-28 12:47       ` Drew Adams
  0 siblings, 2 replies; 25+ messages in thread
From: Leo @ 2012-03-28 10:05 UTC (permalink / raw)
  To: 11104

On 2012-03-28 04:02 +0800, Bastien wrote:
> Adding the defalias above is a more generalized backward-compatibility
> fix that other packages than Gnus would be aware of.  Should we add it
> to Emacs?

Why add it back? I think we should let those packages do it in their own
name space.

Leo






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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 10:05     ` Leo
@ 2012-03-28 10:29       ` Bastien
  2012-03-28 11:03         ` Andreas Schwab
  2012-03-28 11:42         ` Leo
  2012-03-28 12:47       ` Drew Adams
  1 sibling, 2 replies; 25+ messages in thread
From: Bastien @ 2012-03-28 10:29 UTC (permalink / raw)
  To: Leo; +Cc: 11104

Leo <sdl.web@gmail.com> writes:

> On 2012-03-28 04:02 +0800, Bastien wrote:
>> Adding the defalias above is a more generalized backward-compatibility
>> fix that other packages than Gnus would be aware of.  Should we add it
>> to Emacs?
>
> Why add it back? I think we should let those packages do it in their own
> name space.

When it's for XEmacs compatibility I agree.

But this single line

  (defalias 'make-local-hook 'ignore)

if added to Emacs, would be of great help for users who don't 
know what's wrong.

-- 
 Bastien





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 10:29       ` Bastien
@ 2012-03-28 11:03         ` Andreas Schwab
  2012-03-28 11:30           ` Bastien
  2012-03-28 11:42         ` Leo
  1 sibling, 1 reply; 25+ messages in thread
From: Andreas Schwab @ 2012-03-28 11:03 UTC (permalink / raw)
  To: Bastien; +Cc: 11104, Leo

Bastien <bzg@altern.org> writes:

> But this single line
>
>   (defalias 'make-local-hook 'ignore)

This is wrong.  It should be identity instead.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 11:03         ` Andreas Schwab
@ 2012-03-28 11:30           ` Bastien
  2012-03-28 12:38             ` Leo
  0 siblings, 1 reply; 25+ messages in thread
From: Bastien @ 2012-03-28 11:30 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 11104, Leo

Andreas Schwab <schwab@linux-m68k.org> writes:

> Bastien <bzg@altern.org> writes:
>
>> But this single line
>>
>>   (defalias 'make-local-hook 'ignore)
>
> This is wrong.  It should be identity instead.

Why?

-- 
 Bastien





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 10:29       ` Bastien
  2012-03-28 11:03         ` Andreas Schwab
@ 2012-03-28 11:42         ` Leo
  1 sibling, 0 replies; 25+ messages in thread
From: Leo @ 2012-03-28 11:42 UTC (permalink / raw)
  To: 11104

On 2012-03-28 18:29 +0800, Bastien wrote:
> When it's for XEmacs compatibility I agree.
> 
> But this single line
>
>   (defalias 'make-local-hook 'ignore)
>
> if added to Emacs, would be of great help for users who don't 
> know what's wrong.

,----
| This function is obsolete since 21.1; not necessary any more.
`----

It was removed for some time now and some code might be dependent on its
removal already. So add it back is not an option.

(unless (fboundp 'make-local-hook)
   .....)

Leo






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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 11:30           ` Bastien
@ 2012-03-28 12:38             ` Leo
  0 siblings, 0 replies; 25+ messages in thread
From: Leo @ 2012-03-28 12:38 UTC (permalink / raw)
  To: 11104

On 2012-03-28 19:30 +0800, Bastien wrote:
> Why?

Check the documentation on the return value.

Leo






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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 10:05     ` Leo
  2012-03-28 10:29       ` Bastien
@ 2012-03-28 12:47       ` Drew Adams
  2012-03-28 13:20         ` Bastien
  1 sibling, 1 reply; 25+ messages in thread
From: Drew Adams @ 2012-03-28 12:47 UTC (permalink / raw)
  To: 'Leo', 11104

> Why add it back? I think we should let those packages do it 
> in their own name space.

It seems to be part of GNU Emacs already, albeit in Gnusland.
And maybe soon in Orgland as well?

Or are you suggesting that Gnus (& Org...) be removed
from Emacs?  Relegated to Elpagatory perhaps?  ;-)
(Sure, why not?)






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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 12:47       ` Drew Adams
@ 2012-03-28 13:20         ` Bastien
  2012-03-28 14:21           ` Leo
  2012-03-28 14:35           ` Andreas Schwab
  0 siblings, 2 replies; 25+ messages in thread
From: Bastien @ 2012-03-28 13:20 UTC (permalink / raw)
  To: Drew Adams; +Cc: 11104, 'Leo'

"Drew Adams" <drew.adams@oracle.com> writes:

>> Why add it back? I think we should let those packages do it 
>> in their own name space.
>
> It seems to be part of GNU Emacs already, albeit in Gnusland.
> And maybe soon in Orgland as well?

And Gnus defines it using 'ignore.  

I've check the docstrings of 'ignore and 'identity and I still
don't understand why 'identity should be used instead of 'ignore
(as Gnus does).

Any useful hint?

-- 
 Bastien





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 13:20         ` Bastien
@ 2012-03-28 14:21           ` Leo
  2012-03-28 14:31             ` Bastien
  2012-03-28 14:35           ` Andreas Schwab
  1 sibling, 1 reply; 25+ messages in thread
From: Leo @ 2012-03-28 14:21 UTC (permalink / raw)
  To: 11104

......
This function is obsolete since 21.1;
not necessary any more.

Make the hook HOOK local to the current buffer.
The return value is HOOK.
                    ^
                    +----- see?

Leo






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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 14:21           ` Leo
@ 2012-03-28 14:31             ` Bastien
  0 siblings, 0 replies; 25+ messages in thread
From: Bastien @ 2012-03-28 14:31 UTC (permalink / raw)
  To: Leo; +Cc: 11104

Leo <sdl.web@gmail.com> writes:

> ......
> This function is obsolete since 21.1;
> not necessary any more.
>
> Make the hook HOOK local to the current buffer.
> The return value is HOOK.
>                     ^
>                     +----- see?

No, I don't see.  Can you be more explicit?

-- 
 Bastien





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 13:20         ` Bastien
  2012-03-28 14:21           ` Leo
@ 2012-03-28 14:35           ` Andreas Schwab
  2012-03-28 14:42             ` Bastien
  1 sibling, 1 reply; 25+ messages in thread
From: Andreas Schwab @ 2012-03-28 14:35 UTC (permalink / raw)
  To: Bastien; +Cc: 11104, 'Leo'

Bastien <bzg@altern.org> writes:

> And Gnus defines it using 'ignore.  

It doesn't.  It defines gnus-make-local-hook.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 14:35           ` Andreas Schwab
@ 2012-03-28 14:42             ` Bastien
  2012-03-28 15:20               ` Andreas Schwab
  0 siblings, 1 reply; 25+ messages in thread
From: Bastien @ 2012-03-28 14:42 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 11104, 'Leo'

Andreas Schwab <schwab@linux-m68k.org> writes:

> Bastien <bzg@altern.org> writes:
>
>> And Gnus defines it using 'ignore.  
>
> It doesn't.  It defines gnus-make-local-hook.

This is in gnus-utils.el:

;; The LOCAL arg to `add-hook' is interpreted differently in Emacs and
;; XEmacs.  In Emacs we don't need to call `make-local-hook' first.
;; It's harmless, though, so the main purpose of this alias is to shut
;; up the byte compiler.
(defalias 'gnus-make-local-hook (if (featurep 'xemacs)
                                    'make-local-hook
                                  'ignore))

IIUC, you think it should be

(defalias 'gnus-make-local-hook (if (featurep 'xemacs)
                                    'make-local-hook
                                  'identity))

right?

-- 
 Bastien





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 14:42             ` Bastien
@ 2012-03-28 15:20               ` Andreas Schwab
  2012-03-28 15:24                 ` Bastien
  0 siblings, 1 reply; 25+ messages in thread
From: Andreas Schwab @ 2012-03-28 15:20 UTC (permalink / raw)
  To: Bastien; +Cc: 11104, 'Leo'

Bastien <bzg@altern.org> writes:

> IIUC, you think it should be
>
> (defalias 'gnus-make-local-hook (if (featurep 'xemacs)
>                                     'make-local-hook
>                                   'identity))
>
> right?

No.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 15:20               ` Andreas Schwab
@ 2012-03-28 15:24                 ` Bastien
  2012-03-28 15:30                   ` Lennart Borgman
  0 siblings, 1 reply; 25+ messages in thread
From: Bastien @ 2012-03-28 15:24 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 11104, 'Leo'

Andreas Schwab <schwab@linux-m68k.org> writes:

> Bastien <bzg@altern.org> writes:
>
>> IIUC, you think it should be
>>
>> (defalias 'gnus-make-local-hook (if (featurep 'xemacs)
>>                                     'make-local-hook
>>                                   'identity))
>>
>> right?
>
> No.

You said:

>>   (defalias 'make-local-hook 'ignore)
>
>This is wrong.  It should be identity instead.

So you are suggesting 

(defalias 'make-local-hook 'ignore)

should be

(defalias 'make-local-hook 'identity)

instead.

Am I right?

-- 
 Bastien, trying to communicate with a sphinx





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 15:24                 ` Bastien
@ 2012-03-28 15:30                   ` Lennart Borgman
  2012-03-28 21:59                     ` Bastien
  0 siblings, 1 reply; 25+ messages in thread
From: Lennart Borgman @ 2012-03-28 15:30 UTC (permalink / raw)
  To: Bastien; +Cc: Andreas Schwab, 11104, Leo

On Wed, Mar 28, 2012 at 17:24, Bastien <bzg@altern.org> wrote:
> Andreas Schwab <schwab@linux-m68k.org> writes:
>
>> Bastien <bzg@altern.org> writes:
>>
>>> IIUC, you think it should be
>>>
>>> (defalias 'gnus-make-local-hook (if (featurep 'xemacs)
>>>                                     'make-local-hook
>>>                                   'identity))
>>>
>>> right?
>>
>> No.

:-)  -- This kind of humourness is hard on the internet. I am glad
when it is seen as humour.





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 15:30                   ` Lennart Borgman
@ 2012-03-28 21:59                     ` Bastien
  2012-03-28 21:59                       ` Lennart Borgman
  0 siblings, 1 reply; 25+ messages in thread
From: Bastien @ 2012-03-28 21:59 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: Andreas Schwab, 11104, Leo

Lennart Borgman <lennart.borgman@gmail.com> writes:

> :-)  -- This kind of humourness is hard on the internet. I am glad
> when it is seen as humour.

I see it as such.  But I still don't understand why we should use 

(defalias 'make-local-hook 'identity)

instead of 

(defalias 'make-local-hook 'ignore)

Life is full of mysteries, that's alright.

-- 
 Bastien





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 21:59                     ` Bastien
@ 2012-03-28 21:59                       ` Lennart Borgman
  2012-03-29  7:11                         ` Bastien
  0 siblings, 1 reply; 25+ messages in thread
From: Lennart Borgman @ 2012-03-28 21:59 UTC (permalink / raw)
  To: Bastien; +Cc: Andreas Schwab, 11104, Leo

On Wed, Mar 28, 2012 at 23:59, Bastien <bzg@altern.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> :-)  -- This kind of humourness is hard on the internet. I am glad
>> when it is seen as humour.
>
> I see it as such.  But I still don't understand why we should use
>
> (defalias 'make-local-hook 'identity)
>
> instead of
>
> (defalias 'make-local-hook 'ignore)
>
> Life is full of mysteries, that's alright.

Just to be backward compatible, or?





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-28 21:59                       ` Lennart Borgman
@ 2012-03-29  7:11                         ` Bastien
  2012-03-29 12:50                           ` Stefan Monnier
  0 siblings, 1 reply; 25+ messages in thread
From: Bastien @ 2012-03-29  7:11 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: Andreas Schwab, 11104, Leo

Lennart Borgman <lennart.borgman@gmail.com> writes:

> On Wed, Mar 28, 2012 at 23:59, Bastien <bzg@altern.org> wrote:
>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>
>>> :-)  -- This kind of humourness is hard on the internet. I am glad
>>> when it is seen as humour.
>>
>> I see it as such.  But I still don't understand why we should use
>>
>> (defalias 'make-local-hook 'identity)
>>
>> instead of
>>
>> (defalias 'make-local-hook 'ignore)
>>
>> Life is full of mysteries, that's alright.
>
> Just to be backward compatible, or?

Yes.  The `gnus-make-local-hook' uses the 'ignore function for its
backward-compatibility function.  The Sphinx said we should use
'identity for the defalias.  So I'm a bit loss.  But that's okay,
I can live with it.

-- 
 Bastien





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-29  7:11                         ` Bastien
@ 2012-03-29 12:50                           ` Stefan Monnier
  2012-04-04  8:30                             ` Bastien
  0 siblings, 1 reply; 25+ messages in thread
From: Stefan Monnier @ 2012-03-29 12:50 UTC (permalink / raw)
  To: Bastien; +Cc: Andreas Schwab, Leo, 11104

> Yes.  The `gnus-make-local-hook' uses the 'ignore function for its
> backward-compatibility function.  The Sphinx said we should use
> 'identity for the defalias.  So I'm a bit loss.  But that's okay,
> I can live with it.

To be backward compatible, a redefinition of make-local-hook should use
`identity' so as to return the same value as the old definition did.
For gnus-make-local-hook that's not necessary because Gnus's code
doesn't use the return value of make-local-hook.


        Stefan





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

* bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe?
  2012-03-29 12:50                           ` Stefan Monnier
@ 2012-04-04  8:30                             ` Bastien
  0 siblings, 0 replies; 25+ messages in thread
From: Bastien @ 2012-04-04  8:30 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Andreas Schwab, Leo, 11104

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Yes.  The `gnus-make-local-hook' uses the 'ignore function for its
>> backward-compatibility function.  The Sphinx said we should use
>> 'identity for the defalias.  So I'm a bit loss.  But that's okay,
>> I can live with it.
>
> To be backward compatible, a redefinition of make-local-hook should use
> `identity' so as to return the same value as the old definition did.
> For gnus-make-local-hook that's not necessary because Gnus's code
> doesn't use the return value of make-local-hook.

Got it, thanks.

-- 
 Bastien





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

end of thread, other threads:[~2012-04-04  8:30 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-27 19:47 bug#11104: 24.0.94; (void-function make-local-hook): Update NEWS maybe? Jambunathan K
2012-03-27 19:57 ` Glenn Morris
2012-03-27 20:02   ` Bastien
2012-03-28 10:05     ` Leo
2012-03-28 10:29       ` Bastien
2012-03-28 11:03         ` Andreas Schwab
2012-03-28 11:30           ` Bastien
2012-03-28 12:38             ` Leo
2012-03-28 11:42         ` Leo
2012-03-28 12:47       ` Drew Adams
2012-03-28 13:20         ` Bastien
2012-03-28 14:21           ` Leo
2012-03-28 14:31             ` Bastien
2012-03-28 14:35           ` Andreas Schwab
2012-03-28 14:42             ` Bastien
2012-03-28 15:20               ` Andreas Schwab
2012-03-28 15:24                 ` Bastien
2012-03-28 15:30                   ` Lennart Borgman
2012-03-28 21:59                     ` Bastien
2012-03-28 21:59                       ` Lennart Borgman
2012-03-29  7:11                         ` Bastien
2012-03-29 12:50                           ` Stefan Monnier
2012-04-04  8:30                             ` Bastien
2012-03-27 20:19   ` Jambunathan K
2012-03-27 20:00 ` Bastien

Code repositories for project(s) associated with this public inbox

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

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