+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):
(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))))))