From: Stephen Berman <stephen.berman@gmx.net>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 10907@debbugs.gnu.org
Subject: bug#10907: 24.0.94; Updating display of Customize buffer
Date: Tue, 28 Feb 2012 16:19:51 +0100 [thread overview]
Message-ID: <87obsj6l48.fsf@escher.home> (raw)
In-Reply-To: <m2sjhvax4o.fsf@igel.home> (Andreas Schwab's message of "Tue, 28 Feb 2012 14:46:47 +0100")
On Tue, 28 Feb 2012 14:46:47 +0100 Andreas Schwab <schwab@linux-m68k.org> wrote:
> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> 7. In the Customize buffer hide and then re-show the value of
>> srb-selected-file; now the Customize buffer shows this:
>>
>> Srb Selected File: "file1"
>> State: STANDARD. (mismatch)
>> A selected file name from `srb-file-list'.
>
> The current value does not match any of the empty set of choices.
Do you mean that Custom thinks srb-file-list is still empty? If so, and
if I add a check, that fixes the mismatch, but not the display.
Specifically, if I change the definition of srb-selected-file to this:
(defcustom srb-selected-file (car srb-file-list)
"A selected file name from `srb-file-list'."
:type (if srb-file-list
`(radio ,@(mapcar (lambda (x) (list 'const x)) srb-file-list)))
:group 'srb)
then when srb-dir is empty or nonexistant, the Custom buffer shows this:
Srb Selected File: nil
State: STANDARD.
A selected file name from `srb-file-list'.
and after I add a file and refresh the display by hiding and unhiding
the value, it shows this:
Srb Selected File: "file1"
State: STANDARD.
A selected file name from `srb-file-list'.
I still see the list of radio buttons only after restarting Emacs. So I
guess the defcustom is still wrong; do you know how to fix it?
Steve Berman
next prev parent reply other threads:[~2012-02-28 15:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-28 13:07 bug#10907: 24.0.94; Updating display of Customize buffer Stephen Berman
2012-02-28 13:46 ` Andreas Schwab
2012-02-28 15:19 ` Stephen Berman [this message]
2012-02-28 17:23 ` Andreas Schwab
2012-02-28 17:50 ` Stephen Berman
2012-02-28 18:00 ` Andreas Schwab
2012-02-28 18:33 ` Stephen Berman
2012-02-29 2:06 ` Stefan Monnier
2012-02-29 9:05 ` Andreas Schwab
2012-02-29 12:26 ` Stephen Berman
2012-02-29 19:45 ` Glenn Morris
2012-03-01 2:42 ` Stefan Monnier
2012-03-03 17:03 ` Stephen Berman
2022-04-21 13:49 ` Lars Ingebrigtsen
2012-02-29 4:00 ` Eli Zaretskii
2012-02-29 12:20 ` Stephen Berman
2012-02-28 22:11 ` Drew Adams
2012-02-28 23:11 ` Andreas Schwab
2012-02-29 1:01 ` Drew Adams
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=87obsj6l48.fsf@escher.home \
--to=stephen.berman@gmx.net \
--cc=10907@debbugs.gnu.org \
--cc=schwab@linux-m68k.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).