aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2018-03-01 13:10:37 -0500
committerGlenn Morris2018-03-01 13:10:37 -0500
commit321e1a61e12bfb24554e0795a57fe77b49706635 (patch)
treef628ab850fbe5dcd4839fa600874231b35554373
parentc16ef04f83965ad43e64e14f362c4182f4e59330 (diff)
downloademacs-321e1a61e12bfb24554e0795a57fe77b49706635.tar.gz
emacs-321e1a61e12bfb24554e0795a57fe77b49706635.zip
Quieten mh-compat compilation
* lisp/mh-e/mh-compat.el (mh-assoc-string) (mh-replace-regexp-in-string): Silence compiler warnings.
-rw-r--r--lisp/mh-e/mh-compat.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mh-e/mh-compat.el b/lisp/mh-e/mh-compat.el
index 23078127368..ffeb6937f72 100644
--- a/lisp/mh-e/mh-compat.el
+++ b/lisp/mh-e/mh-compat.el
@@ -65,7 +65,8 @@ Simulate NOERROR argument in XEmacs which lacks it."
65Case is ignored if CASE-FOLD is non-nil. 65Case is ignored if CASE-FOLD is non-nil.
66This function is used by Emacs versions that lack `assoc-string', 66This function is used by Emacs versions that lack `assoc-string',
67introduced in Emacs 22." 67introduced in Emacs 22."
68 (if case-fold 68 ;; Test for fboundp is solely to silence compiler for Emacs >= 22.1.
69 (if (and case-fold (fboundp 'assoc-ignore-case))
69 (assoc-ignore-case key list) 70 (assoc-ignore-case key list)
70 (assoc key list))) 71 (assoc key list)))
71 72
@@ -307,7 +308,8 @@ This function is used by XEmacs that lacks `replace-regexp-in-string'.
307The function `replace-in-string' is used instead. 308The function `replace-in-string' is used instead.
308The arguments FIXEDCASE, SUBEXP, and START, used by 309The arguments FIXEDCASE, SUBEXP, and START, used by
309`replace-in-string' are ignored." 310`replace-in-string' are ignored."
310 (replace-in-string string regexp rep literal)) 311 (if (featurep 'xemacs) ; silence Emacs compiler
312 (replace-in-string string regexp rep literal)))
311 313
312(defun-mh mh-test-completion 314(defun-mh mh-test-completion
313 test-completion (string collection &optional predicate) 315 test-completion (string collection &optional predicate)