systems without test-completion.
* mh-alias.el (mh-alias-letter-expand-alias): Use it
2011-07-03 Bill Wohler <wohler@newt.com>
+ * mh-compat.el (mh-test-completion): Add compatibility function
+ for systems without test-completion.
+ * mh-alias.el (mh-alias-letter-expand-alias): Use it
+
* mh-utils.el:
* mh-mime.el: Shush XEmacs compiler in mh-do-in-xemacs block.
res)
res)))
((t) (all-completions string mh-alias-alist pred))
- ((lambda) (if (fboundp 'test-completion)
- (test-completion string mh-alias-alist pred))))))))))
+ ((lambda) (mh-test-completion string mh-alias-alist pred)))))))))
\f
;;; Alias File Updating
`replace-in-string' are ignored."
(replace-in-string string regexp rep literal))
+(defun-mh mh-test-completion
+ test-completion (string collection &optional predicate)
+ "XEmacs does not have `test-completion'.
+This function returns nil on that system."
+ nil)
+
;; Copy of constant from url-util.el in Emacs 22; needed by Emacs 21.
(if (not (boundp 'url-unreserved-chars))
(defconst mh-url-unreserved-chars