Commit c1043701 authored by Glenn Morris's avatar Glenn Morris

(eshell/which): Handle the case where no description is found.

parent 05d1da31
2008-08-13 Glenn Morris <rgm@gnu.org>
* eshell/esh-cmd.el (eshell/which): Handle the case where no description
is found.
2008-08-12 Alan Mackenzie <acm@muc.de>
* progmodes/cc-defs.el (c-emacs-features):
......
......@@ -1252,9 +1252,12 @@ be finished later after the completion of an asynchronous subprocess."
(prog1
(describe-function sym)
(message nil))))))
(setq desc (substring desc 0
(1- (or (string-match "\n" desc)
(length desc)))))
(setq desc (if desc (substring desc 0
(1- (or (string-match "\n" desc)
(length desc))))
;; This should not happen.
(format "%s is defined, \
but no documentation was found" name)))
(if (buffer-live-p (get-buffer "*Help*"))
(kill-buffer "*Help*"))
(setq program (or desc name))))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment