diff options
| author | Stefan Monnier | 2008-05-02 17:02:52 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-05-02 17:02:52 +0000 |
| commit | 457d37ba2254ff454f4ddc70304b75bbe55573bb (patch) | |
| tree | 919782a14c3f597f388bc23ed2553f27be5a94b9 | |
| parent | 9d4190b2b5ed1c26be90cdd2014d4afd4351d8af (diff) | |
| download | emacs-457d37ba2254ff454f4ddc70304b75bbe55573bb.tar.gz emacs-457d37ba2254ff454f4ddc70304b75bbe55573bb.zip | |
(completion-hilit-commonality): Revert last change:
the leftover code was actually useful.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 29 |
2 files changed, 26 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9d7bab9d327..1aef1c8d701 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-05-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * minibuffer.el (completion-hilit-commonality): Revert last change: | ||
| 4 | the leftover code was actually useful. | ||
| 5 | |||
| 1 | 2008-05-02 Sam Steingold <sds@gnu.org> | 6 | 2008-05-02 Sam Steingold <sds@gnu.org> |
| 2 | 7 | ||
| 3 | * vc.el (vc-dir-mode-map): Enable mouse bindings. | 8 | * vc.el (vc-dir-mode-map): Enable mouse bindings. |
| @@ -8,8 +13,8 @@ | |||
| 8 | 13 | ||
| 9 | 2008-05-02 Nick Roberts <nickrob@snap.net.nz> | 14 | 2008-05-02 Nick Roberts <nickrob@snap.net.nz> |
| 10 | 15 | ||
| 11 | * progmodes/gdb-ui.el (gdb-info-breakpoints-custom): Don't | 16 | * progmodes/gdb-ui.el (gdb-info-breakpoints-custom): |
| 12 | throw error if no file is found. | 17 | Don't throw error if no file is found. |
| 13 | 18 | ||
| 14 | 2008-05-02 Juanma Barranquero <lekktu@gmail.com> | 19 | 2008-05-02 Juanma Barranquero <lekktu@gmail.com> |
| 15 | 20 | ||
| @@ -18,7 +23,7 @@ | |||
| 18 | 23 | ||
| 19 | 2008-05-02 Richard Sharman <rsharman@pobox.com> | 24 | 2008-05-02 Richard Sharman <rsharman@pobox.com> |
| 20 | 25 | ||
| 21 | * hilit-chg.el (highlight-changes-mode): Removed references to | 26 | * hilit-chg.el (highlight-changes-mode): Remove references to |
| 22 | hooks that no longer exist. Because define-minor-mode is used the | 27 | hooks that no longer exist. Because define-minor-mode is used the |
| 23 | hook highlight-changes-mode-hook exists and can do what both the | 28 | hook highlight-changes-mode-hook exists and can do what both the |
| 24 | old hooks used to do. The documentation at the top of the file | 29 | old hooks used to do. The documentation at the top of the file |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 58097a91374..2890978908a 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -654,17 +654,24 @@ of the differing parts is, by contrast, slightly highlighted." | |||
| 654 | (setcdr last nil) | 654 | (setcdr last nil) |
| 655 | (nconc | 655 | (nconc |
| 656 | (mapcar | 656 | (mapcar |
| 657 | (lambda (str) | 657 | (lambda (elem) |
| 658 | ;; Don't modify the string itself. | 658 | (let ((str |
| 659 | (setq str (copy-sequence str)) | 659 | ;; Don't modify the string itself, but a copy, since the |
| 660 | (put-text-property 0 com-str-len | 660 | ;; the string may be read-only or used for other purposes. |
| 661 | 'font-lock-face 'completions-common-part | 661 | ;; Furthermore, since `completions' may come from |
| 662 | str) | 662 | ;; display-completion-list, `elem' may be a list. |
| 663 | (if (> (length str) com-str-len) | 663 | (if (consp elem) |
| 664 | (put-text-property com-str-len (1+ com-str-len) | 664 | (car (setq elem (cons (copy-sequence (car elem)) |
| 665 | 'font-lock-face 'completions-first-difference | 665 | (cdr elem)))) |
| 666 | str)) | 666 | (setq elem (copy-sequence elem))))) |
| 667 | str) | 667 | (put-text-property 0 com-str-len |
| 668 | 'font-lock-face 'completions-common-part | ||
| 669 | str) | ||
| 670 | (if (> (length str) com-str-len) | ||
| 671 | (put-text-property com-str-len (1+ com-str-len) | ||
| 672 | 'font-lock-face 'completions-first-difference | ||
| 673 | str))) | ||
| 674 | elem) | ||
| 668 | completions) | 675 | completions) |
| 669 | base-size)))) | 676 | base-size)))) |
| 670 | 677 | ||