all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Description of custom-add-option in Info
Date: Fri, 01 Jul 2005 00:03:53 -0400	[thread overview]
Message-ID: <E1DoCkr-0000lB-NH@fencepost.gnu.org> (raw)
In-Reply-To: <42C1DF54.4030505@student.lu.se> (message from Lennart Borgman on Wed, 29 Jun 2005 01:37:56 +0200)

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

      reply	other threads:[~2005-07-01  4:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-28 23:37 Description of custom-add-option in Info Lennart Borgman
2005-07-01  4:03 ` Richard M. Stallman [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1DoCkr-0000lB-NH@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.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 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.