diff options
| author | Masatake YAMATO | 2005-10-24 16:56:53 +0000 |
|---|---|---|
| committer | Masatake YAMATO | 2005-10-24 16:56:53 +0000 |
| commit | dc447cc519b9e51d0f5a86c7da84ce7bc7648bf8 (patch) | |
| tree | dd4bc06e31e7efefa39405fb98d1d9df55efd46e | |
| parent | 8c6fac61df48f6d6a2238adb81c584a9393ea00b (diff) | |
| download | emacs-dc447cc519b9e51d0f5a86c7da84ce7bc7648bf8.tar.gz emacs-dc447cc519b9e51d0f5a86c7da84ce7bc7648bf8.zip | |
(completion-common-substring): Use `completion-common-substring' prior to `completion-base-size'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0750137ceda..c8cdf66c645 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-10-25 Masatake YAMATO <jet@gyve.org> | ||
| 2 | |||
| 3 | * simple.el (completion-common-substring): Use `completion-common-substring' | ||
| 4 | prior to `completion-base-size'. | ||
| 5 | |||
| 1 | 2005-10-24 Kenichi Handa <handa@m17n.org> | 6 | 2005-10-24 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * international/utf-7.el (utf-7): Add autoload cookie. | 8 | * international/utf-7.el (utf-7): Add autoload cookie. |
diff --git a/lisp/simple.el b/lisp/simple.el index 8fbfaffaec6..9666f13af94 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4921,11 +4921,11 @@ is the substring.)") | |||
| 4921 | (funcall (get minibuffer-completion-table 'completion-base-size-function))) | 4921 | (funcall (get minibuffer-completion-table 'completion-base-size-function))) |
| 4922 | (setq completion-base-size 0)))) | 4922 | (setq completion-base-size 0)))) |
| 4923 | ;; Put faces on first uncommon characters and common parts. | 4923 | ;; Put faces on first uncommon characters and common parts. |
| 4924 | (when (or completion-base-size completion-common-substring) | 4924 | (when (or completion-common-substring completion-base-size) |
| 4925 | (let* ((common-string-length | 4925 | (let* ((common-string-length |
| 4926 | (if completion-base-size | 4926 | (if completion-common-substring |
| 4927 | (- (length mbuf-contents) completion-base-size) | 4927 | (length completion-common-substring) |
| 4928 | (length completion-common-substring))) | 4928 | (- (length mbuf-contents) completion-base-size))) |
| 4929 | (element-start (next-single-property-change | 4929 | (element-start (next-single-property-change |
| 4930 | (point-min) | 4930 | (point-min) |
| 4931 | 'mouse-face)) | 4931 | 'mouse-face)) |