emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/custom.el


From: Richard M . Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/custom.el
Date: Sun, 03 Jul 2005 12:09:07 -0400

Index: emacs/lisp/custom.el
diff -c emacs/lisp/custom.el:1.84 emacs/lisp/custom.el:1.85
*** emacs/lisp/custom.el:1.84   Sat Jul  2 22:52:27 2005
--- emacs/lisp/custom.el        Sun Jul  3 16:09:07 2005
***************
*** 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 via email to

[Prev in Thread] Current Thread [Next in Thread]