bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#11477: 23.1; which-func-cleanup-function should be local


From: Stefan Monnier
Subject: bug#11477: 23.1; which-func-cleanup-function should be local
Date: Tue, 15 May 2012 11:46:22 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

> So, as the function name contained in the variable
> "which-func-cleanup-function" can be mode-dependent,
> I think that "which-func-cleanup-function" should be declared
> as buffer local.

locality does not have to be a global property of a variable.
If you only want your cleanup function to be used in a particular
mode/buffer, then set it with (set (make-local-variable '<var>) <val>)
(now available as `setq-local') rather than with `setq'.


        Stefan





reply via email to

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