GNU bug report logs - #14678
24.3.50; doc of `defcustom': specify behavior if duplicate keyword

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Thu, 20 Jun 2013 20:08:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 24.3.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; doc of `defcustom': specify behavior if duplicate keyword
Date: Thu, 20 Jun 2013 13:07:42 -0700 (PDT)
Lisp code can generate Lisp code, including `defcustom's.  In this
context, it is possible for the generated code to have more than one
occurrence of the same keyword (e.g., `:type'), with different
occurrences specifying different keyword values.

The implementation, and presumably the design, of `defcustom' is such
that in case of multiple occurrences of the same keyword, the last one
wins - the others are ignored.

This should be stated in the doc, as part of the description of
`defcustom'.  Programmers should know that they can depend on this
behavior.



In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-06-18 on LEG570
Bzr revision: 113050 handa <at> gnu.org-20130618145521-fvpc5viqtc85j4j4
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/usr --enable-checking CFLAGS='-O0 -g3'
 CPPFLAGS='-DGLYPH_DEBUG=1 -I/c/usr/include''




This bug report was last modified 11 years and 109 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.