|
From: | Stefan Monnier |
Subject: | Re: /srv/bzr/emacs/trunk r108127: New function set-temporary-overlay-map and macros (defvar|setq)-local. |
Date: | Fri, 04 May 2012 23:37:54 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
>> ------------------------------------------------------------ >> +** New macros `setq-local' and `defvar-local'. > I think setq-local is a bad name jarring with setq and setq-default. Why "jarring"? I actually used setq-local, specifically because it is similar to setq-default. > How about implement it as a function like this? > (defun set-local (symbol newval) > "Set buffer-local value of SYMBOL to NEWVAL." > (set (make-local-variable symbol) newval)) I've never seen this construction used with anything but a static variable, so I don't think the difference matters much, Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |