diff options
| author | Karoly Lorentey | 2004-08-09 11:05:10 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-08-09 11:05:10 +0000 |
| commit | cd83ec7be76b05014a49f8bb155a84ddd7c323ee (patch) | |
| tree | d8847695cedbde0c1bad8737131e219bfac6ce8a /lisp/simple.el | |
| parent | 18ad87544445be2584163436bd3c5d6366afa122 (diff) | |
| parent | 30e75a873acbcc4f4d59d0341fb49211d8c6d010 (diff) | |
| download | emacs-cd83ec7be76b05014a49f8bb155a84ddd7c323ee.tar.gz emacs-cd83ec7be76b05014a49f8bb155a84ddd7c323ee.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-482
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-483
Build-in-place tweak
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-484
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-228
Diffstat (limited to 'lisp/simple.el')
| -rw-r--r-- | lisp/simple.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 9a7b7f245d0..95f6ed864cf 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4308,6 +4308,12 @@ make the common parts less visible than normal, so that the rest | |||
| 4308 | of the differing parts is, by contrast, slightly highlighted." | 4308 | of the differing parts is, by contrast, slightly highlighted." |
| 4309 | :group 'completion) | 4309 | :group 'completion) |
| 4310 | 4310 | ||
| 4311 | ;; This is for packages that need to bind it to a non-default regexp | ||
| 4312 | ;; in order to make the first-differing character highlight work | ||
| 4313 | ;; to their liking | ||
| 4314 | (defvar completion-root-regexp "^/" | ||
| 4315 | "Regexp to use in `completion-setup-function' to find the root directory.") | ||
| 4316 | |||
| 4311 | (defun completion-setup-function () | 4317 | (defun completion-setup-function () |
| 4312 | (let ((mainbuf (current-buffer)) | 4318 | (let ((mainbuf (current-buffer)) |
| 4313 | (mbuf-contents (minibuffer-contents))) | 4319 | (mbuf-contents (minibuffer-contents))) |
| @@ -4336,7 +4342,7 @@ of the differing parts is, by contrast, slightly highlighted." | |||
| 4336 | (with-current-buffer mainbuf | 4342 | (with-current-buffer mainbuf |
| 4337 | (save-excursion | 4343 | (save-excursion |
| 4338 | (goto-char (point-max)) | 4344 | (goto-char (point-max)) |
| 4339 | (skip-chars-backward "^/") | 4345 | (skip-chars-backward completion-root-regexp) |
| 4340 | (- (point) (minibuffer-prompt-end))))) | 4346 | (- (point) (minibuffer-prompt-end))))) |
| 4341 | ;; Otherwise, in minibuffer, the whole input is being completed. | 4347 | ;; Otherwise, in minibuffer, the whole input is being completed. |
| 4342 | (if (minibufferp mainbuf) | 4348 | (if (minibufferp mainbuf) |