emacs-devel
[Top][All Lists]
Advanced

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

Re: /srv/bzr/emacs/trunk r108127: New function set-temporary-overlay-map


From: Leo
Subject: Re: /srv/bzr/emacs/trunk r108127: New function set-temporary-overlay-map and macros (defvar|setq)-local.
Date: Sat, 05 May 2012 11:08:34 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (Mac OS X 10.6.8)

On 2012-05-05 09:47 +0800, Stefan Monnier wrote:
> ------------------------------------------------------------
> +** New macros `setq-local' and `defvar-local'.

I think setq-local is a bad name jarring with setq and 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))

setq-local can then be properly implemented to accept a list of
alternate [SYM VAL]s just like every setq*.

Leo




reply via email to

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