unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 14678@debbugs.gnu.org
Subject: bug#14678: 24.3.50; doc of `defcustom': specify behavior if duplicate keyword
Date: Thu, 20 Jun 2013 13:07:42 -0700 (PDT)	[thread overview]
Message-ID: <a9432337-f559-4286-b5e5-195832cd96ad@default> (raw)

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@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''





                 reply	other threads:[~2013-06-20 20:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a9432337-f559-4286-b5e5-195832cd96ad@default \
    --to=drew.adams@oracle.com \
    --cc=14678@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).