emacs-devel
[Top][All Lists]
Advanced

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

Re: eww


From: Stefan Monnier
Subject: Re: eww
Date: Tue, 18 Jun 2013 15:07:07 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>> +(defvar eww-next-url nil)
>> +(make-variable-buffer-local 'eww-next-url)
>> +(defvar eww-previous-url nil)
>> +(make-variable-buffer-local 'eww-previous-url)
>> +(defvar eww-up-url nil)
>> +(make-variable-buffer-local 'eww-up-url)
>> +(defvar eww-top-url nil)
>> +(make-variable-buffer-local 'eww-top-url)

> I think that for package-specific variables like this we're supposed to
> use

> (set (make-local-variable 'eww-top-url) nil)

> in the mode setup instead, so that we're not making variables needlessly
> globally buffer-local.

For variables whose global value is of no use anyway, you're just as
well to use defvar-local (or equivalent) like Tom did.


        Stefan



reply via email to

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