all messages for Emacs-related lists mirrored at yhetil.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

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