[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14591: New keyword :local for defcustom
From: |
Ted Zlatanov |
Subject: |
bug#14591: New keyword :local for defcustom |
Date: |
Tue, 11 Jun 2013 17:01:04 -0400 |
User-agent: |
Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.3.50 (darwin) |
On Tue, 11 Jun 2013 19:18:54 +0200 Juanma Barranquero <lekktu@gmail.com> wrote:
JB> This patch adds a new keyword :local to defcustom, to simplify cases like
JB> (defcustom some-var some-val
JB> "A very long description
JB> filling many lines
JB> ...
JB> ...
JB> ..."
JB> ;; some keywords)
JB> (make-variable-buffer-local 'some-var)
JB> i.e., it tries to solve the same problem (non-locality) for
JB> customization variables that the new macro defvar-local solves for
JB> defvars.
JB> As designed, it accepts values 'local (which means make the symbol
JB> automatically buffer-local), 'permanent (which makes the symbol
JB> permanent-local), and t which does both.
JB> OK to the idea, the interface, comments...?
I like it. Also we have `defvoo' in Gnus which is along the same lines
but more aimed at the server data structure than defcustoms.
The interface makes perfect sense to me.
Ted
bug#14591: New keyword :local for defcustom, Juanma Barranquero, 2013/06/14
bug#14591: New keyword :local for defcustom, Stefan Monnier, 2013/06/12