comparison lisp/info.el @ 67520:d08070c157fd

(Info-on-current-buffer): Doc fix. (info-insert-file-contents): Don't test (featurep 'jka-compr).
author Richard M. Stallman <rms@gnu.org>
date Mon, 12 Dec 2005 05:15:53 +0000
parents 91886d91f4c3
children 465f402362cd
comparison
equal deleted inserted replaced
67519:f69aa26e69fd 67520:d08070c157fd
446 decoder (cdr (car tail)))))) 446 decoder (cdr (car tail))))))
447 (setq tail (cdr tail))) 447 (setq tail (cdr tail)))
448 (or tail 448 (or tail
449 (error "Can't find %s or any compressed version of it" filename))) 449 (error "Can't find %s or any compressed version of it" filename)))
450 ;; check for conflict with jka-compr 450 ;; check for conflict with jka-compr
451 (if (and (featurep 'jka-compr) 451 (if (and (jka-compr-installed-p)
452 (jka-compr-installed-p)
453 (jka-compr-get-compression-info fullname)) 452 (jka-compr-get-compression-info fullname))
454 (setq decoder nil)) 453 (setq decoder nil))
455 (if decoder 454 (if decoder
456 (progn 455 (progn
457 (insert-file-contents-literally fullname visit) 456 (insert-file-contents-literally fullname visit)
696 Info-history))) 695 Info-history)))
697 (Info-find-node-2 filename nodename no-going-back)) 696 (Info-find-node-2 filename nodename no-going-back))
698 697
699 ;;;###autoload 698 ;;;###autoload
700 (defun Info-on-current-buffer (&optional nodename) 699 (defun Info-on-current-buffer (&optional nodename)
701 "Use the `Info-mode' to browse the current Info buffer. 700 "Use Info mode to browse the current Info buffer.
702 If a prefix arg is provided, it queries for the NODENAME which 701 With a prefix arg, this queries for the node name to visit first;
703 else defaults to \"Top\"." 702 otherwise, that defaults to `Top'."
704 (interactive 703 (interactive
705 (list (if current-prefix-arg 704 (list (if current-prefix-arg
706 (completing-read "Node name: " (Info-build-node-completions) 705 (completing-read "Node name: " (Info-build-node-completions)
707 nil t "Top")))) 706 nil t "Top"))))
708 (unless nodename (setq nodename "Top")) 707 (unless nodename (setq nodename "Top"))