diff options
| author | Bill Wohler | 2011-07-03 15:27:19 -0700 |
|---|---|---|
| committer | Bill Wohler | 2011-07-03 15:27:19 -0700 |
| commit | 9c1c3a42e359243bfa182fe582cbe838a74b90d9 (patch) | |
| tree | 4560702097060e764760b74b04520f9b8770ab53 | |
| parent | 0a9f5305f194209798485909eb021d9b94ecf1cc (diff) | |
| download | emacs-9c1c3a42e359243bfa182fe582cbe838a74b90d9.tar.gz emacs-9c1c3a42e359243bfa182fe582cbe838a74b90d9.zip | |
* mh-compat.el (mh-test-completion): Add compatibility function for
systems without test-completion.
* mh-alias.el (mh-alias-letter-expand-alias): Use it
| -rw-r--r-- | lisp/mh-e/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/mh-e/mh-alias.el | 3 | ||||
| -rw-r--r-- | lisp/mh-e/mh-compat.el | 6 |
3 files changed, 11 insertions, 2 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index baba9c80ab9..8d1ec19415a 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2011-07-03 Bill Wohler <wohler@newt.com> | 1 | 2011-07-03 Bill Wohler <wohler@newt.com> |
| 2 | 2 | ||
| 3 | * mh-compat.el (mh-test-completion): Add compatibility function | ||
| 4 | for systems without test-completion. | ||
| 5 | * mh-alias.el (mh-alias-letter-expand-alias): Use it | ||
| 6 | |||
| 3 | * mh-utils.el: | 7 | * mh-utils.el: |
| 4 | * mh-mime.el: Shush XEmacs compiler in mh-do-in-xemacs block. | 8 | * mh-mime.el: Shush XEmacs compiler in mh-do-in-xemacs block. |
| 5 | 9 | ||
diff --git a/lisp/mh-e/mh-alias.el b/lisp/mh-e/mh-alias.el index 2df6025bf09..d1b3ccebf46 100644 --- a/lisp/mh-e/mh-alias.el +++ b/lisp/mh-e/mh-alias.el | |||
| @@ -316,8 +316,7 @@ Blind aliases or users from /etc/passwd are not expanded." | |||
| 316 | res) | 316 | res) |
| 317 | res))) | 317 | res))) |
| 318 | ((t) (all-completions string mh-alias-alist pred)) | 318 | ((t) (all-completions string mh-alias-alist pred)) |
| 319 | ((lambda) (if (fboundp 'test-completion) | 319 | ((lambda) (mh-test-completion string mh-alias-alist pred))))))))) |
| 320 | (test-completion string mh-alias-alist pred)))))))))) | ||
| 321 | 320 | ||
| 322 | 321 | ||
| 323 | ;;; Alias File Updating | 322 | ;;; Alias File Updating |
diff --git a/lisp/mh-e/mh-compat.el b/lisp/mh-e/mh-compat.el index 01a0f26b9e8..ff30c15fec4 100644 --- a/lisp/mh-e/mh-compat.el +++ b/lisp/mh-e/mh-compat.el | |||
| @@ -260,6 +260,12 @@ The arguments FIXEDCASE, SUBEXP, and START, used by | |||
| 260 | `replace-in-string' are ignored." | 260 | `replace-in-string' are ignored." |
| 261 | (replace-in-string string regexp rep literal)) | 261 | (replace-in-string string regexp rep literal)) |
| 262 | 262 | ||
| 263 | (defun-mh mh-test-completion | ||
| 264 | test-completion (string collection &optional predicate) | ||
| 265 | "XEmacs does not have `test-completion'. | ||
| 266 | This function returns nil on that system." | ||
| 267 | nil) | ||
| 268 | |||
| 263 | ;; Copy of constant from url-util.el in Emacs 22; needed by Emacs 21. | 269 | ;; Copy of constant from url-util.el in Emacs 22; needed by Emacs 21. |
| 264 | (if (not (boundp 'url-unreserved-chars)) | 270 | (if (not (boundp 'url-unreserved-chars)) |
| 265 | (defconst mh-url-unreserved-chars | 271 | (defconst mh-url-unreserved-chars |