aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2004-05-01 13:55:16 +0000
committerJuanma Barranquero2004-05-01 13:55:16 +0000
commit9242b3b7920346fac289a025812885da86669ea7 (patch)
tree7b3f1185d7b6b44b5e96318f32179e8a44fa336f
parent1e8b532f5a84e03821180f44d9c5186b7f9c0a91 (diff)
downloademacs-9242b3b7920346fac289a025812885da86669ea7.tar.gz
emacs-9242b3b7920346fac289a025812885da86669ea7.zip
(help-add-fundoc-usage): Use %S instead of %s to format arglist so default
values in CL-style argument lists are correctly shown.
-rw-r--r--lisp/ChangeLog16
-rw-r--r--lisp/help-fns.el4
2 files changed, 13 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8f80f1a6c7a..65c8131fb61 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12004-05-01 Juanma Barranquero <lektu@terra.es>
2
3 * help-fns.el (help-add-fundoc-usage): Use %S instead of %s to
4 format arglist so default values in CL-style argument lists are
5 correctly shown.
6
12004-05-01 Jason Rumney <jasonr@gnu.org> 72004-05-01 Jason Rumney <jasonr@gnu.org>
2 8
3 * term/w32-win.el (w32-drag-n-drop): Use x-dnd.el functions. 9 * term/w32-win.el (w32-drag-n-drop): Use x-dnd.el functions.
@@ -39,7 +45,7 @@
39 * delsel.el: Don't put `delete-selection' property 45 * delsel.el: Don't put `delete-selection' property
40 on `insert-parentheses' symbol to take advantage of 46 on `insert-parentheses' symbol to take advantage of
41 region handling in `insert-pair' function. 47 region handling in `insert-pair' function.
42 Suggested by Stephan Stahl <stahl@eos.franken.de> 48 Suggested by Stephan Stahl <stahl@eos.franken.de>.
43 49
442004-04-30 Kim F. Storm <storm@cua.dk> 502004-04-30 Kim F. Storm <storm@cua.dk>
45 51
@@ -69,7 +75,7 @@
69 New defmacro. 75 New defmacro.
70 (cua-upcase-rectangle, cua-downcase-rectangle): Use it. 76 (cua-upcase-rectangle, cua-downcase-rectangle): Use it.
71 (cua-upcase-initials-rectangle, cua-capitalize-rectangle): 77 (cua-upcase-initials-rectangle, cua-capitalize-rectangle):
72 New commands (suggested by Jordan Breeding).. 78 New commands (suggested by Jordan Breeding).
73 79
742004-04-30 Juanma Barranquero <lektu@terra.es> 802004-04-30 Juanma Barranquero <lektu@terra.es>
75 81
@@ -5783,7 +5789,7 @@
57832003-08-12 Juri Linkov <juri@jurta.org> (tiny change) 57892003-08-12 Juri Linkov <juri@jurta.org> (tiny change)
5784 5790
5785 * simple.el (backward-word, forward-to-indentation) 5791 * simple.el (backward-word, forward-to-indentation)
5786 (backward-to-indentation): Argument changed to optional. 5792 (backward-to-indentation): Argument changed to optional.
5787 (next-line, previous-line): Use `or' instead of `unless'. 5793 (next-line, previous-line): Use `or' instead of `unless'.
5788 5794
57892003-08-12 Vinicius Jose Latorre <viniciusjl@ig.com.br> 57952003-08-12 Vinicius Jose Latorre <viniciusjl@ig.com.br>
@@ -5965,7 +5971,7 @@
5965 behaviour of `calendar-day-name' and `calendar-month-name' functions. 5971 behaviour of `calendar-day-name' and `calendar-month-name' functions.
5966 (diary-name-pattern): Use abbrev arrays, rather than fixing 5972 (diary-name-pattern): Use abbrev arrays, rather than fixing
5967 abbrevs at three chars. Calling syntax change. 5973 abbrevs at three chars. Calling syntax change.
5968 (mark-diary-entries): Adapt for new behaviours of 5974 (mark-diary-entries): Adapt for new behaviours of
5969 `diary-name-pattern' and `calendar-make-alist' functions. 5975 `diary-name-pattern' and `calendar-make-alist' functions.
5970 (fancy-diary-font-lock-keywords): Adapt for new behaviour of 5976 (fancy-diary-font-lock-keywords): Adapt for new behaviour of
5971 `diary-name-pattern' function. 5977 `diary-name-pattern' function.
@@ -6416,7 +6422,7 @@
6416 6422
64172003-07-08 Markus Rost <rost@math.ohio-state.edu> 64232003-07-08 Markus Rost <rost@math.ohio-state.edu>
6418 6424
6419 * subr.el (dolist, dotimes): Doc fix. 6425 * subr.el (dolist, dotimes): Doc fix.
6420 6426
64212003-07-08 Kim F. Storm <storm@cua.dk> 64272003-07-08 Kim F. Storm <storm@cua.dk>
6422 6428
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 4e57ea6d74e..467ab0eba17 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -181,7 +181,7 @@ ARGLIST can also be t or a string of the form \"(fun ARG1 ARG2 ...)\"."
181 (unless (stringp doc) (setq doc "Not documented")) 181 (unless (stringp doc) (setq doc "Not documented"))
182 (if (or (string-match "\n\n(fn\\(\\( .*\\)?)\\)\\'" doc) (eq arglist t)) 182 (if (or (string-match "\n\n(fn\\(\\( .*\\)?)\\)\\'" doc) (eq arglist t))
183 doc 183 doc
184 (format "%s%s%s" doc 184 (format "%s%s%S" doc
185 (if (string-match "\n?\n\\'" doc) 185 (if (string-match "\n?\n\\'" doc)
186 (if (< (- (match-end 0) (match-beginning 0)) 2) "\n" "") 186 (if (< (- (match-end 0) (match-beginning 0)) 2) "\n" "")
187 "\n\n") 187 "\n\n")
@@ -339,7 +339,7 @@ KIND should be `var' for a variable or `subr' for a subroutine."
339 ;; FIXME: This list can be very long (f.ex. for self-insert-command). 339 ;; FIXME: This list can be very long (f.ex. for self-insert-command).
340 ;; If there are many, remove them from KEYS. 340 ;; If there are many, remove them from KEYS.
341 (if (< (length non-modified-keys) 10) 341 (if (< (length non-modified-keys) 10)
342 (princ (mapconcat 'key-description keys ", ")) 342 (princ (mapconcat 'key-description keys ", "))
343 (dolist (key non-modified-keys) 343 (dolist (key non-modified-keys)
344 (setq keys (delq key keys))) 344 (setq keys (delq key keys)))
345 (if keys 345 (if keys