aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-12-22 01:36:48 +0000
committerRichard M. Stallman2001-12-22 01:36:48 +0000
commit9cc84e31c91be65110878005e1b51554d23de2e9 (patch)
tree34281e2e40840ca2dde1bff2cc775207eee25765
parent64f3b7d38fef2040f4d9ee6b24727909411ea5c5 (diff)
downloademacs-9cc84e31c91be65110878005e1b51554d23de2e9.tar.gz
emacs-9cc84e31c91be65110878005e1b51554d23de2e9.zip
(apropos-print): SPACING is now nil or a separator string.
(apropos-documentation, apropos-value): Pass a suitable string.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/apropos.el12
2 files changed, 13 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 22cb7391651..e2277fe5c77 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-12-21 Richard M. Stallman <rms@gnu.org>
2
3 * apropos.el (apropos-print): SPACING is now nil or a separator string.
4 (apropos-documentation, apropos-value): Pass a suitable string.
5
12001-12-21 Eli Zaretskii <eliz@is.elta.co.il> 62001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
2 7
3 * dired.el (dired-free-space-program, dired-free-space-args): 8 * dired.el (dired-free-space-program, dired-free-space-args):
diff --git a/lisp/apropos.el b/lisp/apropos.el
index fa3be6f0a5c..3ad41627ece 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -386,7 +386,7 @@ Returns list of symbols and values found."
386 (if (or f v p) 386 (if (or f v p)
387 (setq apropos-accumulator (cons (list symbol f v p) 387 (setq apropos-accumulator (cons (list symbol f v p)
388 apropos-accumulator)))))) 388 apropos-accumulator))))))
389 (apropos-print nil t)) 389 (apropos-print nil "\n----------------\n"))
390 390
391 391
392;;;###autoload 392;;;###autoload
@@ -424,7 +424,7 @@ Returns list of symbols and documentation found."
424 (setq apropos-accumulator 424 (setq apropos-accumulator
425 (cons (list symbol f v) 425 (cons (list symbol f v)
426 apropos-accumulator))))))) 426 apropos-accumulator)))))))
427 (apropos-print nil t)) 427 (apropos-print nil "\n----------------\n"))
428 (kill-buffer standard-input)))) 428 (kill-buffer standard-input))))
429 429
430 430
@@ -585,7 +585,10 @@ The value of `apropos-accumulator' is the list of items to output.
585Each element should have the format (SYMBOL FN-DOC VAR-DOC [PLIST-DOC]). 585Each element should have the format (SYMBOL FN-DOC VAR-DOC [PLIST-DOC]).
586The return value is the list that was in `apropos-accumulator', sorted 586The return value is the list that was in `apropos-accumulator', sorted
587alphabetically by symbol name; but this function also sets 587alphabetically by symbol name; but this function also sets
588`apropos-accumulator' to nil before returning." 588`apropos-accumulator' to nil before returning.
589
590If SPACING is non-nil, it should be a string;
591separate items with that string."
589 (if (null apropos-accumulator) 592 (if (null apropos-accumulator)
590 (message "No apropos matches for `%s'" apropos-regexp) 593 (message "No apropos matches for `%s'" apropos-regexp)
591 (setq apropos-accumulator 594 (setq apropos-accumulator
@@ -606,7 +609,8 @@ alphabetically by symbol name; but this function also sets
606 (substitute-command-keys 609 (substitute-command-keys
607 "and type \\[apropos-follow] to get full documentation.\n\n")) 610 "and type \\[apropos-follow] to get full documentation.\n\n"))
608 (while (consp p) 611 (while (consp p)
609 (or (not spacing) (bobp) (terpri)) 612 (when (and spacing (not (bobp)))
613 (princ spacing))
610 (setq apropos-item (car p) 614 (setq apropos-item (car p)
611 symbol (car apropos-item) 615 symbol (car apropos-item)
612 p (cdr p)) 616 p (cdr p))