]> code.delx.au - gnu-emacs/commitdiff
(help-add-fundoc-usage): Use %S instead of %s to format arglist so default
authorJuanma Barranquero <lekktu@gmail.com>
Sat, 1 May 2004 13:55:16 +0000 (13:55 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Sat, 1 May 2004 13:55:16 +0000 (13:55 +0000)
values in CL-style argument lists are correctly shown.

lisp/ChangeLog
lisp/help-fns.el

index 8f80f1a6c7a5f44102334dd66f2f9cf316dd1dd6..65c8131fb61ca7e729eaf12d8263613ae72962b3 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-01  Juanma Barranquero  <lektu@terra.es>
+
+       * help-fns.el (help-add-fundoc-usage): Use %S instead of %s to
+       format arglist so default values in CL-style argument lists are
+       correctly shown.
+
 2004-05-01  Jason Rumney  <jasonr@gnu.org>
 
        * term/w32-win.el (w32-drag-n-drop): Use x-dnd.el functions.
@@ -39,7 +45,7 @@
        * delsel.el: Don't put `delete-selection' property
        on `insert-parentheses' symbol to take advantage of
        region handling in `insert-pair' function.
-       Suggested by Stephan Stahl <stahl@eos.franken.de>
+       Suggested by Stephan Stahl <stahl@eos.franken.de>.
 
 2004-04-30  Kim F. Storm  <storm@cua.dk>
 
@@ -69,7 +75,7 @@
        New defmacro.
        (cua-upcase-rectangle, cua-downcase-rectangle): Use it.
        (cua-upcase-initials-rectangle, cua-capitalize-rectangle):
-       New commands (suggested by Jordan Breeding)..
+       New commands (suggested by Jordan Breeding).
 
 2004-04-30  Juanma Barranquero  <lektu@terra.es>
 
 2003-08-12  Juri Linkov  <juri@jurta.org>  (tiny change)
 
        * simple.el (backward-word, forward-to-indentation)
-       (backward-to-indentation):  Argument changed to optional.
+       (backward-to-indentation): Argument changed to optional.
        (next-line, previous-line): Use `or' instead of `unless'.
 
 2003-08-12  Vinicius Jose Latorre  <viniciusjl@ig.com.br>
        behaviour of `calendar-day-name' and `calendar-month-name' functions.
        (diary-name-pattern): Use abbrev arrays, rather than fixing
        abbrevs at three chars.  Calling syntax change.
-       (mark-diary-entries):  Adapt for new behaviours of
+       (mark-diary-entries): Adapt for new behaviours of
        `diary-name-pattern' and `calendar-make-alist' functions.
        (fancy-diary-font-lock-keywords): Adapt for new behaviour of
        `diary-name-pattern' function.
 
 2003-07-08  Markus Rost  <rost@math.ohio-state.edu>
 
-       * subr.el (dolist, dotimes):  Doc fix.
+       * subr.el (dolist, dotimes): Doc fix.
 
 2003-07-08  Kim F. Storm  <storm@cua.dk>
 
index 4e57ea6d74e7e1c30e1c4ae55edd390841a7be55..467ab0eba17557de623f0b19452bbbf7794503de 100644 (file)
@@ -181,7 +181,7 @@ 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
+    (format "%s%s%S" doc
            (if (string-match "\n?\n\\'" doc)
                (if (< (- (match-end 0) (match-beginning 0)) 2) "\n" "")
              "\n\n")
@@ -339,7 +339,7 @@ KIND should be `var' for a variable or `subr' for a subroutine."
          ;; FIXME: This list can be very long (f.ex. for self-insert-command).
          ;; If there are many, remove them from KEYS.
          (if (< (length non-modified-keys) 10)
-             (princ (mapconcat 'key-description keys ", "))          
+             (princ (mapconcat 'key-description keys ", "))
            (dolist (key non-modified-keys)
              (setq keys (delq key keys)))
            (if keys