emacs-devel
[Top][All Lists]
Advanced

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

Re: autoload for eww-suggest-uris


From: Artur Malabarba
Subject: Re: autoload for eww-suggest-uris
Date: Thu, 5 Mar 2015 18:55:57 -0300

>  > Personally, I'd recommend finding another way around your add-hook
>  > issue.  What was the problem?
>
>         This:
>
> ;;; ~/.emacs
> (add-hook 'eww-suggest-uris 'some-new-function)
> ; → (some-new-function)
>
>         Expected: that some-new-function /and/ all the default ones.
>
>         An alternative would be to use add-hook in 'eww itself, but that
>         in turn interferes with (setq eww-suggest-uris '(the-only-one)).

According to Stefan it is a bug to define a hook with a non-nil
initial value (see
http://lists.gnu.org/archive/html/emacs-devel/2015-02/msg01271.html),
so using the `add-hook' in eww itself is the correct way.
In fact, it seems that 25.1 will issue a compiler warning when a hook
variable is given a non-nil initial value.



reply via email to

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