of elmo-set-buffer-multibyte.
* wl-message.el (wl-original-message-mode): Ditto.
* wl-score.el (wl-score-insert-header): Ditto.
* wl-summary.el
(wl-summary-edit-addresses-collect-candidate-fields): Ditto.
(wl-summary-goto-folder-subr): Ditto.
(wl-summary-insert-headers): Ditto.
* wl-util.el (wl-set-string-width): Ditto.
* bbdb-wl.el (bbdb-wl-get-addresses-1): Use set-buffer-multibyte
instead of elmo-set-buffer-multibyte.
(bbdb-wl-get-addresses-2): Ditto.
(bbdb-wl-update-records): Ditto.
(bbdb-extract-field-value): Ditto.
* elmo-util.el (elmo-set-buffer-multibyte): Abolish.
(elmo-set-work-buf): Use set-buffer-multibyte instead of
elmo-set-buffer-multibyte.
(elmo-object-load): Ditto.
(elmo-save-buffer): Ditto.
(elmo-delete-char): Ditto.
(elmo-file-field-primitive-condition-match): Ditto.
(elmo-mime-string): Ditto.
* elmo-archive.el (elmo-archive-msgdb-create-entity-subr): Ditto.
(elmo-archive-field-condition-match): Ditto.
* elmo-imap4.el (elmo-imap4-setup-send-buffer): Ditto.
* elmo-net.el (elmo-network-initialize-session-buffer): Ditto.
* elmo-nntp.el (elmo-nntp-parse-overview-string): Ditto.
(elmo-nntp-msgdb-create-message): Ditto.
* elmo-pop3.el (elmo-pop3-msgdb-create-message): Ditto.
* elmo.el (elmo-message-match-condition): Ditto.
(elmo-message-match-condition): Ditto.
* modb-entity.el (elmo-msgdb-create-message-entity-from-buffer):
Ditto.
* elmo-util.el (elmo-decoded-field-body): New function.
2004-05-22 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+ * elmo-util.el (elmo-set-buffer-multibyte): Abolish.
+ (elmo-set-work-buf): Use set-buffer-multibyte instead of
+ elmo-set-buffer-multibyte.
+ (elmo-object-load): Ditto.
+ (elmo-save-buffer): Ditto.
+ (elmo-delete-char): Ditto.
+ (elmo-file-field-primitive-condition-match): Ditto.
+ (elmo-mime-string): Ditto.
+
+ * elmo-archive.el (elmo-archive-msgdb-create-entity-subr): Ditto.
+ (elmo-archive-field-condition-match): Ditto.
+
+ * elmo-imap4.el (elmo-imap4-setup-send-buffer): Ditto.
+
+ * elmo-net.el (elmo-network-initialize-session-buffer): Ditto.
+
+ * elmo-nntp.el (elmo-nntp-parse-overview-string): Ditto.
+ (elmo-nntp-msgdb-create-message): Ditto.
+
+ * elmo-pop3.el (elmo-pop3-msgdb-create-message): Ditto.
+
+ * elmo.el (elmo-message-match-condition): Ditto.
+ (elmo-message-match-condition): Ditto.
+
+ * modb-entity.el (elmo-msgdb-create-message-entity-from-buffer):
+ Ditto.
+
* elmo-version.el (elmo-version): Up to 2.11.29.
* elmo-spam.el (elmo-spam-scheme): Add `header' as a candidate.
(defsubst elmo-archive-msgdb-create-entity-subr (msgdb number)
(let (header-end)
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(goto-char (point-min))
(if (re-search-forward "\\(^--.*$\\)\\|\\(\n\n\\)" nil t)
(setq header-end (point))
(when (file-exists-p arc)
(as-binary-process
(elmo-archive-call-method method args t))
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(decode-mime-charset-region (point-min)(point-max) elmo-mime-charset)
(elmo-buffer-field-condition-match condition number number-list))))))
(save-match-data
(set-buffer send-buf)
(erase-buffer)
- (elmo-set-buffer-multibyte nil)
+ (set-buffer-multibyte nil)
(if string
(insert string)
(with-current-buffer source-buf
elmo-network-initialize-session-buffer ((session
elmo-network-session) buffer)
(with-current-buffer buffer
- (elmo-set-buffer-multibyte nil)
+ (set-buffer-multibyte nil)
(buffer-disable-undo (current-buffer))))
(luna-define-method elmo-network-close-session ((session elmo-network-session))
ret-list ret-val beg)
(set-buffer tmp-buffer)
(erase-buffer)
- (elmo-set-buffer-multibyte nil)
+ (set-buffer-multibyte nil)
(insert string)
(goto-char (point-min))
(setq beg (point))
(save-excursion
(let ((new-msgdb (elmo-make-msgdb))
beg entity i num message-id)
- (elmo-set-buffer-multibyte nil)
+ (set-buffer-multibyte nil)
(goto-char (point-min))
(setq i 0)
(message "Creating msgdb...")
(let ((new-msgdb (elmo-make-msgdb))
beg entity i number message-id flags)
(set-buffer buffer)
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(goto-char (point-min))
(setq i 0)
(message "Creating msgdb...")
(eval-and-compile
(autoload 'md5 "md5"))
-(defmacro elmo-set-buffer-multibyte (flag)
- "Set the multibyte flag of the current buffer to FLAG."
- (cond ((boundp 'MULE)
- (list 'setq 'mc-flag flag))
- ((featurep 'xemacs)
- flag)
- ((and (boundp 'emacs-major-version) (>= emacs-major-version 20))
- (list 'set-buffer-multibyte flag))
- (t
- flag)))
-
(defvar elmo-work-buf-name " *elmo work*")
(defvar elmo-temp-buf-name " *elmo temp*")
"Execute BODY on work buffer. Work buffer remains."
(` (save-excursion
(set-buffer (get-buffer-create elmo-work-buf-name))
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(erase-buffer)
(,@ body))))
(as-binary-input-file
(insert-file-contents filename))
(when mime-charset
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(decode-mime-charset-region (point-min) (point-max) mime-charset))
(condition-case nil
(read (current-buffer))
(if (file-writable-p filename)
(progn
(when mime-charset
-;;; (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+;;; (set-buffer-multibyte default-enable-multibyte-characters)
(encode-mime-charset-region (point-min) (point-max) mime-charset))
(as-binary-output-file
(write-region (point-min) (point-max) filename nil 'no-msg)))
(elmo-set-work-buf
(let ((coding-system-for-read 'no-conversion)
(coding-system-for-write 'no-conversion))
- (if unibyte (elmo-set-buffer-multibyte nil))
+ (if unibyte (set-buffer-multibyte nil))
(insert string)
(goto-char (point-min))
(while (search-forward (char-to-string char) nil t)
(t
(elmo-set-work-buf
(as-binary-input-file (insert-file-contents file))
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
;; Should consider charset?
(decode-mime-charset-region (point-min)(point-max) elmo-mime-charset)
(setq result
"Normalize MIME encoded STRING."
(and string
(elmo-set-work-buf
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(setq string
(encode-mime-charset-string
(eword-decode-and-unfold-unstructured-field-body
string)
elmo-mime-charset))
- (elmo-set-buffer-multibyte nil)
+ (set-buffer-multibyte nil)
string)))
(defsubst elmo-collect-field (beg end downcase-field-name)
cache-path))))
(when (and filename (file-readable-p filename))
(with-temp-buffer
- (elmo-set-buffer-multibyte nil)
+ (set-buffer-multibyte nil)
;;(insert-file-contents-as-binary filename)
(elmo-message-fetch folder number
(elmo-make-fetch-strategy 'entire
nil
cache-path)
nil (current-buffer) t)
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(decode-coding-region (point-min) (point-max)
elmo-mime-display-as-is-coding-system)
(elmo-buffer-field-condition-match condition number numbers)))))
extra field-body charset size)
(save-excursion
(setq entity (modb-legacy-make-message-entity args))
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(setq message-id (elmo-msgdb-get-message-id-from-buffer))
(and (setq charset (cdr (assoc "charset" (mime-read-Content-Type))))
(setq charset (intern-soft charset))
+2004-05-22 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * bbdb-wl.el (bbdb-wl-get-addresses-1): Use set-buffer-multibyte
+ instead of elmo-set-buffer-multibyte.
+ (bbdb-wl-get-addresses-2): Ditto.
+ (bbdb-wl-update-records): Ditto.
+ (bbdb-extract-field-value): Ditto.
+
2004-05-08 Yoichi NAKAYAMA <yoichi@geiin.org>
* rfc2368.el: Sync with cvs version of emacs.
(setq fn (std11-full-name-string structure)
fn (and fn
(with-temp-buffer ; to keep raw buffer unibyte.
- (elmo-set-buffer-multibyte
+ (set-buffer-multibyte
default-enable-multibyte-characters)
(eword-decode-string
(decode-mime-charset-string
(setq fn (std11-full-name-string structure)
fn (and fn
(with-temp-buffer ; to keep raw buffer unibyte.
- (elmo-set-buffer-multibyte
+ (set-buffer-multibyte
default-enable-multibyte-characters)
(eword-decode-string
(decode-mime-charset-string
(string-match (bbdb-user-mail-names) addr))
(setq from (or (std11-field-body "To") from)))
(with-temp-buffer ; to keep raw buffer unibyte.
- (elmo-set-buffer-multibyte
+ (set-buffer-multibyte
default-enable-multibyte-characters)
(setq from (eword-decode-string
(decode-mime-charset-string
(defun bbdb-extract-field-value (field)
(let ((value (bbdb-wl-extract-field-value-internal field)))
(with-temp-buffer ; to keep raw buffer unibyte.
- (elmo-set-buffer-multibyte
+ (set-buffer-multibyte
default-enable-multibyte-characters)
(and value
(eword-decode-string value)))))
2004-05-22 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+ * wl-draft.el (wl-draft-reply): Use set-buffer-multibyte instead
+ of elmo-set-buffer-multibyte.
+
+ * wl-message.el (wl-original-message-mode): Ditto.
+
+ * wl-score.el (wl-score-insert-header): Ditto.
+
+ * wl-summary.el
+ (wl-summary-edit-addresses-collect-candidate-fields): Ditto.
+ (wl-summary-goto-folder-subr): Ditto.
+ (wl-summary-insert-headers): Ditto.
+
+ * wl-util.el (wl-set-string-width): Ditto.
+
* Version number is increased to 2.11.29.
2004-05-20 Yoichi NAKAYAMA <yoichi@geiin.org>
(setq to (wl-parse-addresses to)
cc (wl-parse-addresses cc))
(with-temp-buffer ; to keep raw buffer unibyte.
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(setq decoder (mime-find-field-decoder 'Subject 'plain))
(setq subject (if (and subject decoder)
(funcall decoder subject) subject))
(wl-draft-make-mail-followup-to (append to cc)))
(setq mail-followup-to (wl-delete-duplicates mail-followup-to nil t)))
(with-temp-buffer ; to keep raw buffer unibyte.
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(setq newsgroups (wl-parse newsgroups
"[ \t\f\r\n,]*\\([^ \t\f\r\n,]+\\)")
newsgroups (wl-delete-duplicates newsgroups)
"A major mode for original message buffer."
(setq major-mode 'wl-original-message-mode)
(setq buffer-read-only t)
- (elmo-set-buffer-multibyte nil)
+ (set-buffer-multibyte nil)
(setq mode-name "Wanderlust original message"))
(defun wl-original-message-buffer-get (name)
(make-local-variable 'wl-score-alike-hashtb)
(setq wl-score-alike-hashtb (elmo-make-hash (* (length messages) 2)))
(when mime-decode
- (elmo-set-buffer-multibyte default-enable-multibyte-characters))
+ (set-buffer-multibyte default-enable-multibyte-characters))
(let (art last this alike)
(while (setq art (pop messages))
(setq this (wl-score-ov-entity-get (car art)
(setq fields (cdr fields)))
(setq candidates (elmo-uniq-list candidates))
(elmo-set-work-buf
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(mapcar (function
(lambda (x)
(setq components (std11-extract-address-components x))
(view (expand-file-name wl-summary-view-file dir)))
(when (file-exists-p cache)
(insert-file-contents-as-binary cache)
- (elmo-set-buffer-multibyte
+ (set-buffer-multibyte
default-enable-multibyte-characters)
(decode-mime-charset-region
(point-min)(point-max)
(make-local-variable 'wl-summary-alike-hashtb)
(setq wl-summary-alike-hashtb (elmo-make-hash (* (length numbers) 2)))
(when mime-decode
- (elmo-set-buffer-multibyte default-enable-multibyte-characters))
+ (set-buffer-multibyte default-enable-multibyte-characters))
(while (setq ov (elmo-message-entity folder (pop numbers)))
(setq this (funcall func ov))
(and this (setq this (std11-unfold-string this)))
(concat string paddings)))))
(t
(elmo-set-work-buf
- (elmo-set-buffer-multibyte default-enable-multibyte-characters)
+ (set-buffer-multibyte default-enable-multibyte-characters)
(insert string)
(when (> (current-column) (abs width))
(when (> (move-to-column (abs width)) (abs width))