aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorBill Wohler2005-10-23 22:47:27 +0000
committerBill Wohler2005-10-23 22:47:27 +0000
commit9a51cf9e1c0c1cdc00c3ff6374e9aba52c73ae70 (patch)
treee31d12acc96a4b92ad0b7229f98d640c9489549a /lisp
parent1dd9796d2b9359b7a8138a3ff95d6afed63e15c1 (diff)
downloademacs-9a51cf9e1c0c1cdc00c3ff6374e9aba52c73ae70.tar.gz
emacs-9a51cf9e1c0c1cdc00c3ff6374e9aba52c73ae70.zip
* mh-identity.el (mh-assoc-ignore-case): Merge with version in
mh-alias.el and move to mh-acros.el * mh-alias.el (mh-assoc-ignore-case): Merge with version in mh-identity.el and move to mh-acros.el * mh-acros.el (mh-assoc-ignore-case): Merge of function from mh-identity.el and mh-alias.el.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mh-e/ChangeLog14
-rw-r--r--lisp/mh-e/mh-acros.el8
-rw-r--r--lisp/mh-e/mh-alias.el8
-rw-r--r--lisp/mh-e/mh-identity.el7
4 files changed, 22 insertions, 15 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index bf8b6be9437..ebdb123c623 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,3 +1,17 @@
12005-10-23 Bill Wohler <wohler@newt.com>
2
3 * mh-identity.el (mh-assoc-ignore-case): Merge with version in
4 mh-alias.el and move to mh-acros.el
5
6 * mh-alias.el (mh-assoc-ignore-case): Merge with version in
7 mh-identity.el and move to mh-acros.el
8
9 * mh-acros.el (mh-assoc-ignore-case): Merge of function from
10 mh-identity.el and mh-alias.el.
11
12 * mh-mime.el: Autoload mm-uu for mm-uu-dissect to avoid compiler
13 warning in Emacs 22.
14
12005-10-23 Satyaki Das <satyaki@theforce.stanford.edu> 152005-10-23 Satyaki Das <satyaki@theforce.stanford.edu>
2 16
3 * mh-identity.el (mh-assoc-ignore-case): New macro that uses 17 * mh-identity.el (mh-assoc-ignore-case): New macro that uses
diff --git a/lisp/mh-e/mh-acros.el b/lisp/mh-e/mh-acros.el
index 5cb1c26248b..8136c56ca90 100644
--- a/lisp/mh-e/mh-acros.el
+++ b/lisp/mh-e/mh-acros.el
@@ -134,6 +134,14 @@ various structure fields. Lookup `defstruct' for more details."
134 (load (format "%s.el" (ad-get-arg 0)) t t)) 134 (load (format "%s.el" (ad-get-arg 0)) t t))
135 ad-do-it)) 135 ad-do-it))
136 136
137(defmacro mh-assoc-ignore-case (key alist)
138 "Check if KEY is present in ALIST while ignoring case to do the comparison.
139Compatibility macro for Emacs versions that lack `assoc-string', introduced in
140Emacs 22."
141 (if (fboundp 'assoc-string)
142 `(assoc-string ,key ,alist t)
143 `(assoc-ignore-case ,key ,alist)))
144
137(provide 'mh-acros) 145(provide 'mh-acros)
138 146
139;;; Local Variables: 147;;; Local Variables:
diff --git a/lisp/mh-e/mh-alias.el b/lisp/mh-e/mh-alias.el
index d72036fe25d..5367d2cbc18 100644
--- a/lisp/mh-e/mh-alias.el
+++ b/lisp/mh-e/mh-alias.el
@@ -73,14 +73,6 @@ You can update the alias list manually using \\[mh-alias-reload].")
73 73
74;;; Alias Loading 74;;; Alias Loading
75 75
76(defmacro mh-assoc-ignore-case (key alist)
77 "Search for string KEY in ALIST.
78This is a wrapper around `assoc-string' or `assoc-ignore-case'. Avoid
79`assoc-ignore-case' which is now an obsolete function."
80 (cond ((fboundp 'assoc-string) `(assoc-string ,key ,alist t))
81 ((fboundp 'assoc-ignore-case) `(assoc-ignore-case ,key ,alist))
82 (t (error "The macro mh-assoc-ignore-case not implemented properly"))))
83
84(defun mh-alias-tstamp (arg) 76(defun mh-alias-tstamp (arg)
85 "Check whether alias files have been modified. 77 "Check whether alias files have been modified.
86Return t if any file listed in the Aliasfile MH profile component has been 78Return t if any file listed in the Aliasfile MH profile component has been
diff --git a/lisp/mh-e/mh-identity.el b/lisp/mh-e/mh-identity.el
index 1e7c8035734..9d81a2acbe2 100644
--- a/lisp/mh-e/mh-identity.el
+++ b/lisp/mh-e/mh-identity.el
@@ -118,13 +118,6 @@ Return t if anything is deleted."
118(defvar mh-identity-signature-end nil 118(defvar mh-identity-signature-end nil
119 "Marker for the end of a signature inserted by `mh-insert-identity'.") 119 "Marker for the end of a signature inserted by `mh-insert-identity'.")
120 120
121(defmacro mh-assoc-ignore-case (key alist)
122 "Compatibility macro for emacs versions that lack `assoc-string'.
123Check if KEY is present in ALIST while ignoring case to do the comparison."
124 (if (fboundp 'assoc-string)
125 `(assoc-string ,key ,alist t)
126 `(assoc-ignore-case ,key ,alist)))
127
128(defun mh-identity-field-handler (field) 121(defun mh-identity-field-handler (field)
129 "Return the handler for header FIELD or nil if none set. 122 "Return the handler for header FIELD or nil if none set.
130The field name is downcased. If the FIELD begins with the character 123The field name is downcased. If the FIELD begins with the character