diff options
| author | Glenn Morris | 2014-03-05 21:02:46 -0500 |
|---|---|---|
| committer | Glenn Morris | 2014-03-05 21:02:46 -0500 |
| commit | c544840969f3d74b716aa67d953510a0f7b3729a (patch) | |
| tree | 150547f7fffc8936eab88c69f59dc4d797e9a338 /lisp | |
| parent | c94e6ee4993d2c8f676d1a46ef6a16796ebd064d (diff) | |
| download | emacs-c544840969f3d74b716aa67d953510a0f7b3729a.tar.gz emacs-c544840969f3d74b716aa67d953510a0f7b3729a.zip | |
* lisp/mh-e/mh-compat.el (mh-display-completion-list): Replace use of obsolete
argument of display-completion-list.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/mh-e/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mh-e/mh-compat.el | 18 |
2 files changed, 17 insertions, 6 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 9b00e2de614..da6895eaf39 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-03-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mh-compat.el (mh-display-completion-list): | ||
| 4 | Replace use of obsolete argument of display-completion-list. | ||
| 5 | |||
| 1 | 2013-11-05 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2013-11-05 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * mh-print.el (mh-ps-print-preprint): Don't use dynamic-var | 8 | * mh-print.el (mh-ps-print-preprint): Don't use dynamic-var |
diff --git a/lisp/mh-e/mh-compat.el b/lisp/mh-e/mh-compat.el index af9f1364970..db46be7bec4 100644 --- a/lisp/mh-e/mh-compat.el +++ b/lisp/mh-e/mh-compat.el | |||
| @@ -96,12 +96,18 @@ expected to return an integer." | |||
| 96 | (defmacro mh-display-completion-list (completions &optional common-substring) | 96 | (defmacro mh-display-completion-list (completions &optional common-substring) |
| 97 | "Display the list of COMPLETIONS. | 97 | "Display the list of COMPLETIONS. |
| 98 | See documentation for `display-completion-list' for a description of the | 98 | See documentation for `display-completion-list' for a description of the |
| 99 | arguments COMPLETIONS and perhaps COMMON-SUBSTRING. | 99 | arguments COMPLETIONS. |
| 100 | This macro is used by Emacs versions that lack a COMMON-SUBSTRING | 100 | The optional argument COMMON-SUBSTRING, if non-nil, should be a string |
| 101 | argument, introduced in Emacs 22." | 101 | specifying a common substring for adding the faces |
| 102 | (if (< emacs-major-version 22) | 102 | `completions-first-difference' and `completions-common-part' to |
| 103 | `(display-completion-list ,completions) | 103 | the completions." |
| 104 | `(display-completion-list ,completions ,common-substring))) | 104 | (cond ((< emacs-major-version 22) `(display-completion-list ,completions)) |
| 105 | ((fboundp 'completion-hilit-commonality) ; Emacs 23.1 and later | ||
| 106 | `(display-completion-list | ||
| 107 | (completion-hilit-commonality ,completions | ||
| 108 | ,(length common-substring) nil))) | ||
| 109 | (t ; Emacs 22 | ||
| 110 | `(display-completion-list ,completions ,common-substring)))) | ||
| 105 | 111 | ||
| 106 | (defmacro mh-face-foreground (face &optional frame inherit) | 112 | (defmacro mh-face-foreground (face &optional frame inherit) |
| 107 | "Return the foreground color name of FACE, or nil if unspecified. | 113 | "Return the foreground color name of FACE, or nil if unspecified. |