aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2003-09-22 15:15:26 +0000
committerRichard M. Stallman2003-09-22 15:15:26 +0000
commit7cff48094efbf9417baefadecbeed27eca9f7745 (patch)
tree27b1dbe62add24b66175c15940c2e92515affe5f
parent683e7415579eb28241550a16118acf3b62f89996 (diff)
downloademacs-7cff48094efbf9417baefadecbeed27eca9f7745.tar.gz
emacs-7cff48094efbf9417baefadecbeed27eca9f7745.zip
(woman-file-name, woman-follow-word):
If current-word returns nil, use "".
-rw-r--r--lisp/woman.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/woman.el b/lisp/woman.el
index 059eadc031b..6946930505f 100644
--- a/lisp/woman.el
+++ b/lisp/woman.el
@@ -1221,7 +1221,7 @@ Optional argument RE-CACHE, if non-nil, forces the cache to be re-read."
1221 ;; Was let-bound when file loaded, so ... 1221 ;; Was let-bound when file loaded, so ...
1222 (setq woman-topic-at-point woman-topic-at-point-default))) 1222 (setq woman-topic-at-point woman-topic-at-point-default)))
1223 (setq topic 1223 (setq topic
1224 (current-word t)) ; only within or adjacent to word 1224 (or (current-word t) "")) ; only within or adjacent to word
1225 (assoc topic woman-topic-all-completions)) 1225 (assoc topic woman-topic-all-completions))
1226 (setq topic 1226 (setq topic
1227 (completing-read 1227 (completing-read
@@ -1230,7 +1230,7 @@ Optional argument RE-CACHE, if non-nil, forces the cache to be re-read."
1230 ;; Initial input suggestion (was nil), with 1230 ;; Initial input suggestion (was nil), with
1231 ;; cursor at left ready to kill suggestion!: 1231 ;; cursor at left ready to kill suggestion!:
1232 (and woman-topic-at-point 1232 (and woman-topic-at-point
1233 (cons (current-word) 0)) ; nearest word 1233 (cons (or (current-word) "") 0)) ; nearest word
1234 'woman-topic-history))) 1234 'woman-topic-history)))
1235 ;; Note that completing-read always returns a string. 1235 ;; Note that completing-read always returns a string.
1236 (if (= (length topic) 0) 1236 (if (= (length topic) 0)
@@ -1744,7 +1744,7 @@ Leave point at end of new text. Return length of inserted text."
1744Argument EVENT is the invoking mouse event." 1744Argument EVENT is the invoking mouse event."
1745 (interactive "e") ; mouse event 1745 (interactive "e") ; mouse event
1746 (goto-char (posn-point (event-start event))) 1746 (goto-char (posn-point (event-start event)))
1747 (woman (current-word t))) 1747 (woman (or (current-word t) "")))
1748 1748
1749;; WoMan menu bar and pop-up menu: 1749;; WoMan menu bar and pop-up menu:
1750(easy-menu-define 1750(easy-menu-define