* elmo-imap4.el (elmo-imap4-detect-search-charset): Ditto.
2010-01-02 TAKAHASHI Kaoru <kaoru@kaisei.org>
+ * pldap.el (ldap/ldif-safe-string-p): macro to function.
+ * elmo-imap4.el (elmo-imap4-detect-search-charset): Ditto.
+
* elmo.el (elmo-folder-info-make-hashtb): Use `mapc' instead of
`mapcar'; Suppress compile warning.
* elmo-imap4.el (elmo-network-initialize-session-buffer)
(elmo-imap4-send-command session "expunge"))
t))
-(defmacro elmo-imap4-detect-search-charset (string)
- `(with-temp-buffer
- (insert ,string)
- (detect-mime-charset-region (point-min) (point-max))))
+(defun elmo-imap4-detect-search-charset (string)
+ (with-temp-buffer
+ (insert string)
+ (detect-mime-charset-region (point-min) (point-max))))
(defun elmo-imap4-search-internal-primitive (folder session filter from-msgs)
(let ((search-key (elmo-filter-key filter))
(concat "\n" ldap-ldif-field-name-regexp ":")
"A Regexp for next field head.")
-(defmacro ldap/ldif-safe-string-p (string)
+(defun ldap/ldif-safe-string-p (string)
"Return t if STRING is a safe-string for LDIF."
;; Need better implentation.
- `(string-match ldap-ldif-safe-string-regexp ,string))
+ (string-match ldap-ldif-safe-string-regexp string))
(defgroup ldap nil
"Lightweight Directory Access Protocol"