emacs-diffs
[Top][All Lists]
Advanced

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

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


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/help-fns.el
Date: Tue, 06 May 2003 09:54:21 -0400

Index: emacs/lisp/help-fns.el
diff -c emacs/lisp/help-fns.el:1.32 emacs/lisp/help-fns.el:1.33
*** emacs/lisp/help-fns.el:1.32 Sat May  3 20:30:34 2003
--- emacs/lisp/help-fns.el      Tue May  6 09:54:21 2003
***************
*** 176,184 ****
    "Add the usage info to the docstring DOC.
  If DOC already has a usage info, then just return DOC unchanged.
  The usage info is built from ARGLIST.  DOC can be nil.
! ARGLIST can also be nil or a string of the form \"(fun ARG1 ARG2 ...)\"."
    (unless (stringp doc) (setq doc "Not documented"))
!   (if (or (string-match "\n\n(fn\\(\\( .*\\)?)\\)\\'" doc) (not arglist))
        doc
      (format "%s%s%s" doc
            (if (string-match "\n?\n\\'" doc)
--- 176,184 ----
    "Add the usage info to the docstring DOC.
  If DOC already has a usage info, then just return DOC unchanged.
  The usage info is built from ARGLIST.  DOC can be nil.
! ARGLIST can also be t or a string of the form \"(fun ARG1 ARG2 ...)\"."
    (unless (stringp doc) (setq doc "Not documented"))
!   (if (or (string-match "\n\n(fn\\(\\( .*\\)?)\\)\\'" doc) (eq arglist t))
        doc
      (format "%s%s%s" doc
            (if (string-match "\n?\n\\'" doc)




reply via email to

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