From: "Drew Adams" <drew.adams@oracle.com>
To: "'Karl Fogel'" <kfogel@red-bean.com>, <12309@debbugs.gnu.org>,
<12507@debbugs.gnu.org>
Subject: bug#12507: Option `(bookmark-)version-control': Use :tag so docstring matches menu
Date: Sun, 30 Sep 2012 21:06:00 -0700 [thread overview]
Message-ID: <63E9C48B6DE546C0A47EA79246A64BD1@us.oracle.com> (raw)
In-Reply-To: <87y5jqhnff.fsf@floss.red-bean.com>
Ouch!
You fixed bug #12309, Karl (thanks; looks good). But you closed bug #12507
instead.
Please reopen #12507 and correct the subject lines etc. of the mails if needed,
so that things are put right again. It is #12309 that should be closed, not
@12507.
To answer your questions:
`other' in a `choice' just means any value other than the other choices listed.
If the user picks the `other' choice interactively then the value given (`t'
here) is used. E.g., if you set the variable to 99999 (outside of Customize)
then it will act just like a value of `t'.
The last sentence of the original report just meant to please at least use a
:tag for the `other' choice. It is the one where a :tag is most important for
clarity. But you've added :tag for each of them, which is even better.
Thx - Drew
P.S. FWIW, here is what I've been using for this defcustom. It's almost the
same as what you have.
"Whether to make numbered backups of your bookmarking files.
The option can have value `nospecial', `t', `nil', or `never' . Value
`nospecial' means to use the `version-control' value. The others have
the same meanings as for option `version-control'.
Use value `t' if your bookmarks are important to you. Consider also
using numeric backups. See also nodes `Backup Names' and `Backup
Deletion' in the Emacs manual."
:type '(choice :tag "When to make numbered backups"
(const :tag "Use value of option `version-control'" nospecial)
(const :tag "Never" never)
(const :tag "If existing already" nil)
(other :tag "Always" t))
> From: Karl Fogel Sent: Sunday, September 30, 2012 8:38 PM
> To: 12507-done@debbugs.gnu.org
> Subject: bug#12507: Option `(bookmark-)version-control': Use
> :tag so docstring matches menu
>
> Fixed (see below), but please review.
>
> I don't fully understand the whole customization system
> because I never
> use it myself (I just read doc strings and set variables directly in
> Elisp), so I don't quite get what `other' mean if used instead of
> `const', and I didn't fully understand the last paragraph of the
> original bug report. I looked in the Info pages, but they didn't
> clarify much about this.
>
> -Karl
>
> Revision info:
>
> revno: 110305
> revision-id: kfogel@red-bean.com-20121001033206-5eja4ztyhs1sjm7q
> parent: cyd@gnu.org-20121001031702-2mei04wuzv2pk1e7
> committer: Karl Fogel <kfogel@red-bean.com>
> branch nick: trunk
> timestamp: Sun 2012-09-30 22:32:06 -0500
> message:
> * lisp/bookmark.el (bookmark-version-control): Give tags in the
> :type choices (Bug#12309), and improve doc string.
>
> Diff:
>
> === modified file 'lisp/ChangeLog'
> --- lisp/ChangeLog 2012-10-01 02:07:14 +0000
> +++ lisp/ChangeLog 2012-10-01 03:31:41 +0000
> @@ -1,3 +1,8 @@
> +2012-10-01 Karl Fogel <kfogel@red-bean.com>
> +
> + * bookmark.el (bookmark-version-control): Give tags in the
> + :type choices (Bug#12309), and improve doc string.
> +
> 2012-10-01 Paul Eggert <eggert@cs.ucla.edu>
>
> Revert the FOLLOW-SYMLINKS change for file-attributes.
>
> === modified file 'lisp/bookmark.el'
> --- lisp/bookmark.el 2012-09-25 04:13:02 +0000
> +++ lisp/bookmark.el 2012-10-01 03:32:18 +0000
> @@ -99,12 +99,14 @@
>
> (defcustom bookmark-version-control 'nospecial
> "Whether or not to make numbered backups of the bookmark file.
> -It can have four values: t, nil, `never', and `nospecial'.
> +It can have four values: t, nil, `never', or `nospecial'.
> The first three have the same meaning that they do for the
> -variable `version-control', and the final value
> `nospecial' means just
> -use the value of `version-control'."
> - :type '(choice (const nil) (const never) (const nospecial)
> - (other t))
> +variable `version-control'; the value `nospecial' (the
> default) means
> +just use the value of `version-control'."
> + :type '(choice (const :tag "If existing" nil)
> + (const :tag "Never" never)
> + (const :tag "Use the value of
> `version-control'" nospecial)
> + (const :tag "Always" t))
> :group 'bookmark)
next prev parent reply other threads:[~2012-10-01 4:06 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87bogubqjy.fsf@gnu.org>
[not found] ` <handler.s.C.13485522721217.transcript@debbugs.gnu.org>
2012-09-25 13:53 ` bug#12507: [debbugs-tracker] Processed: severity 12507 wishlist Drew Adams
2012-09-26 2:53 ` Chong Yidong
2012-09-26 3:18 ` Drew Adams
2012-09-26 4:04 ` Stefan Monnier
2012-09-26 14:19 ` Drew Adams
2012-09-26 19:46 ` Stefan Monnier
2012-09-26 20:31 ` Drew Adams
2012-09-26 21:46 ` Karl Fogel
2012-09-26 22:26 ` Drew Adams
2012-09-26 23:36 ` Drew Adams
2012-09-27 15:48 ` Karl Fogel
2012-09-27 16:00 ` Drew Adams
2012-09-27 17:57 ` Karl Fogel
2012-09-27 18:32 ` Drew Adams
2012-09-27 3:24 ` Stefan Monnier
2012-09-24 18:41 ` bug#12507: 24.2.50; `bookmark-write-file': use `write-file', not `write-region', to get backups Drew Adams
2012-09-27 5:38 ` bug#12507: [debbugs-tracker] Processed: severity 12507 wishlist Thierry Volpiatto
2012-09-27 18:37 ` Drew Adams
2012-09-27 21:16 ` Thierry Volpiatto
2012-09-28 9:04 ` Thierry Volpiatto
2012-09-28 20:00 ` Drew Adams
2012-09-29 7:42 ` Thierry Volpiatto
2012-09-29 14:36 ` Drew Adams
2012-09-29 15:12 ` Thierry Volpiatto
2012-09-29 15:51 ` Drew Adams
2012-09-29 16:20 ` Thierry Volpiatto
2012-09-29 16:50 ` Drew Adams
2012-09-29 16:57 ` Thierry Volpiatto
2012-10-01 3:38 ` bug#12507: Option `(bookmark-)version-control': Use :tag so doc string matches menu Karl Fogel
2012-10-01 4:06 ` Drew Adams [this message]
2012-10-01 4:13 ` bug#12507: Have I mentioned how much I hate Debbugs? Karl Fogel
2012-10-01 4:50 ` Drew Adams
2012-10-01 21:23 ` Karl Fogel
2012-10-01 22:00 ` Drew Adams
2012-10-02 5:31 ` Thierry Volpiatto
2020-11-29 1:07 ` bug#12507: [debbugs-tracker] Processed: severity 12507 wishlist Karl Fogel
2012-09-27 8:36 ` bug#12507: `bookmark-write-file': use `write-file', not `write-region', to get backups Juri Linkov
2012-09-27 15:02 ` Drew Adams
2020-09-18 15:02 ` bug#12507: [debbugs-tracker] Processed: severity 12507 wishlist Lars Ingebrigtsen
2020-09-18 16:23 ` Drew Adams
2020-09-19 14:18 ` Lars Ingebrigtsen
2020-09-19 17:29 ` Drew Adams
2020-09-23 6:41 ` Karl Fogel
2020-09-23 13:34 ` Lars Ingebrigtsen
2020-09-23 16:23 ` Eli Zaretskii
2020-09-24 13:58 ` Lars Ingebrigtsen
2020-09-29 5:27 ` Karl Fogel
2020-09-29 14:29 ` Lars Ingebrigtsen
2020-09-23 14:27 ` Eli Zaretskii
2020-09-23 18:13 ` Drew Adams
2020-09-23 18:14 ` Drew Adams
2020-09-29 5:25 ` Karl Fogel
2020-09-29 15:45 ` Drew Adams
2020-11-29 0:28 ` Karl Fogel
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=63E9C48B6DE546C0A47EA79246A64BD1@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=12309@debbugs.gnu.org \
--cc=12507@debbugs.gnu.org \
--cc=kfogel@red-bean.com \
/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).