aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-10-04 20:31:22 +0000
committerRichard M. Stallman2005-10-04 20:31:22 +0000
commitd315fc0fcb21be42278fc4184a68d5d749e2d537 (patch)
tree33a7fca7ae309ac5f8ceafc1b8448a3e9b9d6d11
parent69a069faab95e903b33b25397fa72def3146ec36 (diff)
downloademacs-d315fc0fcb21be42278fc4184a68d5d749e2d537.tar.gz
emacs-d315fc0fcb21be42278fc4184a68d5d749e2d537.zip
(widget-file-complete): Get the widget start point the right way.
Default directory to `/' if file has none.
-rw-r--r--lisp/ChangeLog25
-rw-r--r--lisp/wid-edit.el8
2 files changed, 29 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fe0e1a74c9a..1137e1dac54 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,27 @@
12005-10-04 Richard M. Stallman <rms@gnu.org>
2
3 * wid-edit.el (widget-file-complete): Get the widget start point
4 the right way. Default directory to `/' if file has none.
5
6 * x-dnd.el (x-dnd-drop-data): Check for dedicated windows.
7
8 * textmodes/flyspell.el (flyspell-mode-on):
9 Call ispell-maybe-find-aspell-dictionaries.
10
11 * textmodes/ispell.el (ispell-word, ispell-region):
12 Call ispell-maybe-find-aspell-dictionaries.
13 (ispell-accept-buffer-local-defs):
14 Don't call ispell-maybe-find-aspell-dictionaries
15
162005-10-04 Richard M. Stallman <rms@gnu.org>
17
18 * iswitchb.el (iswitchb-buffer-ignore): Label it risky.
19
202005-10-04 Emilio C. Lopes <eclig@gmx.net>
21
22 * iswitchb.el (iswitchb-ignore-buffername-p): Use `functionp'
23 instead of `fboundp' in order to allow for anonymous functions.
24
12005-10-04 Chong Yidong <cyd@stupidchicken.com> 252005-10-04 Chong Yidong <cyd@stupidchicken.com>
2 26
3 * info.el (Info-next, Info-prev, Info-up): Select info buffer, in 27 * info.el (Info-next, Info-prev, Info-up): Select info buffer, in
@@ -50,6 +74,7 @@
50 74
51 * ido.el (ido-mode): Use custom-initialize-set. 75 * ido.el (ido-mode): Use custom-initialize-set.
52 76
77>>>>>>> 1.8276
532005-10-02 Richard M. Stallman <rms@gnu.org> 782005-10-02 Richard M. Stallman <rms@gnu.org>
54 79
55 * progmodes/ebnf2ps.el (ebnf-eps-production-list): 80 * progmodes/ebnf2ps.el (ebnf-eps-production-list):
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 55e50b7faec..bcaa1318fdf 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -2991,12 +2991,12 @@ It will read a file name from the minibuffer when invoked."
2991 "Perform completion on file name preceding point." 2991 "Perform completion on file name preceding point."
2992 (interactive) 2992 (interactive)
2993 (let* ((end (point)) 2993 (let* ((end (point))
2994 (beg (save-excursion 2994 (beg (widget-field-start widget))
2995 (skip-chars-backward "^ ")
2996 (point)))
2997 (pattern (buffer-substring beg end)) 2995 (pattern (buffer-substring beg end))
2998 (name-part (file-name-nondirectory pattern)) 2996 (name-part (file-name-nondirectory pattern))
2999 (directory (file-name-directory pattern)) 2997 ;; I think defaulting to root is right
2998 ;; because these really should be absolute file names.
2999 (directory (or (file-name-directory pattern) "/"))
3000 (completion (file-name-completion name-part directory))) 3000 (completion (file-name-completion name-part directory)))
3001 (cond ((eq completion t)) 3001 (cond ((eq completion t))
3002 ((null completion) 3002 ((null completion)