all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Description of custom-add-option in Info
@ 2005-06-28 23:37 Lennart Borgman
  2005-07-01  4:03 ` Richard M. Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Lennart Borgman @ 2005-06-28 23:37 UTC (permalink / raw


The description of custom-add-option on Info page 14.3 is not consistent 
with the defun doc string.

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

* Re: Description of custom-add-option in Info
  2005-06-28 23:37 Description of custom-add-option in Info Lennart Borgman
@ 2005-07-01  4:03 ` Richard M. Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard M. Stallman @ 2005-07-01  4:03 UTC (permalink / raw
  Cc: emacs-devel

    The description of custom-add-option on Info page 14.3 is not consistent 
    with the defun doc string.

Is this right?

*** custom.el	13 Apr 2005 13:41:46 -0400	1.83
--- custom.el	30 Jun 2005 21:18:28 -0400	
***************
*** 486,493 ****
  (defun custom-add-option (symbol option)
    "To the variable SYMBOL add OPTION.
  
! If SYMBOL is a hook variable, OPTION should be a hook member.
! For other types variables, the effect is undefined."
    (let ((options (get symbol 'custom-options)))
      (unless (member option options)
        (put symbol 'custom-options (cons option options)))))
--- 486,495 ----
  (defun custom-add-option (symbol option)
    "To the variable SYMBOL add OPTION.
  
! If SYMBOL's custom type is a hook, OPTION should be a hook member.
! If SYMBOL's custom type is an alist, OPTION specifies a symbol
! to offer to the user as a possible key in the alist.
! For other custom types, this has no effect."
    (let ((options (get symbol 'custom-options)))
      (unless (member option options)
        (put symbol 'custom-options (cons option options)))))

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

end of thread, other threads:[~2005-07-01  4:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-28 23:37 Description of custom-add-option in Info Lennart Borgman
2005-07-01  4:03 ` Richard M. Stallman

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.