aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-01-15 18:01:34 -0800
committerGlenn Morris2011-01-15 18:01:34 -0800
commita767645f0df5f03d1f2c528077260f0916a1b781 (patch)
tree24e0118b57cf9efcd76dce9aff0b50dcc9df1b55
parent444ee8dd97820bdb29f0a4d363f8028d01fdfffe (diff)
downloademacs-a767645f0df5f03d1f2c528077260f0916a1b781.tar.gz
emacs-a767645f0df5f03d1f2c528077260f0916a1b781.zip
* lisp/info-xref.el (info-xref-docstrings): Replace cl function.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/info-xref.el25
2 files changed, 17 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e23e8df6993..45096e52ec0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12011-01-16 Glenn Morris <rgm@gnu.org>
2
3 * info-xref.el (info-xref-docstrings): Replace cl function.
4
12011-01-16 Kevin Ryde <user42@zip.com.au> 52011-01-16 Kevin Ryde <user42@zip.com.au>
2 6
3 * info-xref.el: Version 3. 7 * info-xref.el: Version 3.
diff --git a/lisp/info-xref.el b/lisp/info-xref.el
index a92d9d89da6..cdeba932eda 100644
--- a/lisp/info-xref.el
+++ b/lisp/info-xref.el
@@ -479,20 +479,21 @@ in the files, the Lisp code checked doesn't have to be loaded,
479and links can be in the file commentary or elsewhere too. Even 479and links can be in the file commentary or elsewhere too. Even
480.elc files can usually be checked successfully if you don't have 480.elc files can usually be checked successfully if you don't have
481the sources handy." 481the sources handy."
482
483 (interactive 482 (interactive
484 (let* ((default (and buffer-file-name 483 (let* ((default (and buffer-file-name
485 (file-relative-name buffer-file-name))) 484 (file-relative-name buffer-file-name)))
486 (prompt (if default 485 (prompt (if default
487 (format "Filename with wildcards (%s): " 486 (format "Filename with wildcards (%s): "
488 default) 487 default)
489 "Filename with wildcards: ")) 488 "Filename with wildcards: "))
490 (pattern (read-file-name prompt nil default)) 489 (pattern (read-file-name prompt nil default))
491 (filename-list (file-expand-wildcards pattern 490 ;; absolute filenames
492 t))) ;; absolute filenames 491 (filename-list (file-expand-wildcards pattern t))
493 (eval-and-compile 492 newlist)
494 (require 'cl)) ;; for `remove-if' 493 (setq filename-list
495 (setq filename-list (remove-if 'info-xref-lock-file-p filename-list)) 494 (dolist (file filename-list (nreverse newlist))
495 (or (info-xref-lock-file-p file)
496 (push file newlist))))
496 (unless filename-list 497 (unless filename-list
497 (error "No files: %S" pattern)) 498 (error "No files: %S" pattern))
498 (list filename-list))) 499 (list filename-list)))