unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5572: 23.1; Undocumented key :value-to-internal in customize system
@ 2010-02-13  9:36 Teemu Likonen
  2010-02-13 19:21 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Teemu Likonen @ 2010-02-13  9:36 UTC (permalink / raw)
  To: 5572

Some customize options use key :value-to-internal with customize type
"repeat". One example is variable message-ignored-news-headers in
lisp/gnus/message.el:


(defcustom message-ignored-news-headers
  "^NNTP-Posting-Host:\\|^Xref:\\|^[BGF]cc:\\|^Resent-Fcc: [...]
  "*Regexp of headers to be removed unconditionally before posting."
  :group 'message-news
  :group 'message-headers
  :link '(custom-manual "(message)Message Headers")
  :type '(repeat :value-to-internal (lambda (widget value)
				      (custom-split-regexp-maybe value))
		 :match (lambda (widget value)
			  (or (stringp value)
			      (widget-editable-list-match widget value)))
		 regexp))


(I cut one long line and added ellipsis "[...]".)

:value-to-internal key doesn't seem to be documented anywhere so I
consider this a documentation bug. Please add a description for the key
- perhaps to the info node "(elisp) Type Keywords" - because it seems
very useful for Emacs extension writers.







^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#5572: 23.1; Undocumented key :value-to-internal in customize system
  2010-02-13  9:36 bug#5572: 23.1; Undocumented key :value-to-internal in customize system Teemu Likonen
@ 2010-02-13 19:21 ` Glenn Morris
  2010-02-13 19:59   ` Teemu Likonen
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2010-02-13 19:21 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: 5572

Teemu Likonen wrote:

> :value-to-internal key doesn't seem to be documented anywhere so I
> consider this a documentation bug.

Custom uses the widget library, and this is documented in widget.texi.






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#5572: 23.1; Undocumented key :value-to-internal in customize system
  2010-02-13 19:21 ` Glenn Morris
@ 2010-02-13 19:59   ` Teemu Likonen
  0 siblings, 0 replies; 3+ messages in thread
From: Teemu Likonen @ 2010-02-13 19:59 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 5572-done

* 2010-02-13 14:21 (-0500), Glenn Morris wrote:

> Teemu Likonen wrote:
>
>> :value-to-internal key doesn't seem to be documented anywhere so I
>> consider this a documentation bug.
>
> Custom uses the widget library, and this is documented in widget.texi.

Ah, thanks for the info. I didn't know about the Widget library at all.

Well, I'll just close this bug then.






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-13 19:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-13  9:36 bug#5572: 23.1; Undocumented key :value-to-internal in customize system Teemu Likonen
2010-02-13 19:21 ` Glenn Morris
2010-02-13 19:59   ` Teemu Likonen

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).