all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <bug-gnu-emacs@gnu.org>
Subject: bug#4755: 23.1; case where `C-M-x' on defcustom doesn't seem to work
Date: Sun, 18 Oct 2009 17:21:48 -0700	[thread overview]
Message-ID: <340F1FE0FD29493A984C1582F2B10756@us.oracle.com> (raw)

emacs -Q
 
(defcustom foo '(("foo" (f1 f2) f3) ("bar" (b1 b2) b3))
  "..."
  :type '(repeat
   (cons
    (choice :tag "a" string symbol)
    (choice
     (const :tag "b" nil)
     (function :tag "c")
     (list :tag "d"
    (repeat (function :tag "e"))
    (choice
     (const :tag "f" nil)
     (function :tag "g")))))))
 
(defcustom toto (copy-sequence foo)
  "..."
  :type '(repeat
   (cons
    (choice :tag "r" string symbol)
    (choice
     (const :tag "s" nil)
     (function :tag "t")
     (list :tag "u"
    (repeat (function :tag "v"))
    (choice
     (const :tag "w" nil)
     (function :tag "x")))))))
 
(defun f1 ())
(defun f2 ())
(defun f3 ())
 
(defun b1 ())
(defun b2 ())
(defun b3 ())
 
Then M-x customize-option foo
 
Insert another alist element, then set the value for the session, so
foo's value now has 3 alist elements. Option toto's value is like
foo's, but it is missing the first alist element (the new one).
 
Put point on toto's defcustom and do `C-M-x'. The value is not updated
to be a copy of foo's current value. The value looks like it hasn't
changed.
 
AFAIK, there are no side effects going on here. And if you explicitly
do (setq toto (copy-sequence foo)), then it of course does get updated
to reflect the latest foo value.
 
Seems like a bug. There's no doubt a simpler test case, but I have this
ready-to-hand and don't feel like paring it down.
 
 
 
In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
 of 2009-07-29 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'
 







             reply	other threads:[~2009-10-19  0:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-19  0:21 Drew Adams [this message]
2016-07-05  4:14 ` bug#4755: 23.1; case where `C-M-x' on defcustom doesn't seem to work npostavs
2016-07-05 14:30   ` Drew Adams
2016-07-05 17:00     ` Noam Postavsky
2016-07-05 17:30       ` Drew Adams
2016-07-05 17:56         ` Noam Postavsky
2016-07-05 18:20           ` Drew Adams
2016-07-09  3:14             ` npostavs

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

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

  git send-email \
    --in-reply-to=340F1FE0FD29493A984C1582F2B10756@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=4755@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.