(delete-backward-char X) that deletes region in Emacs 24.
See delete-active-region described in NEWS.
* elmo-imap4.el (elmo-imap4-arrival-filter): Ditto.
* elmo-util.el (elmo-get-file-string): Ditto.
* utf7.el (utf7-encode-internal, utf7-decode-internal): Ditto.
+2010-08-24 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * acap.el (acap-arrival-filter): Use (delete-char (- X)) instead of
+ (delete-backward-char X) that deletes region in Emacs 24.
+ See delete-active-region described in NEWS.
+ * elmo-imap4.el (elmo-imap4-arrival-filter): Ditto.
+ * elmo-util.el (elmo-get-file-string): Ditto.
+ * utf7.el (utf7-encode-internal, utf7-decode-internal): Ditto.
+
2010-08-09 David Maus <dmaus@ictsoc.de>
* elmo.el (elmo-folder-open-internal-p): New luna method.
(while (setq end (acap-find-next-line))
(save-restriction
(narrow-to-region (point-min) end)
- (delete-backward-char (length acap-server-eol))
+ (delete-char (- (length acap-server-eol)))
(goto-char (point-min))
(unwind-protect
(cond ((or (eq acap-state 'auth)
(while (setq end (elmo-imap4-find-next-line))
(save-restriction
(narrow-to-region (point-min) end)
- (delete-backward-char (length elmo-imap4-server-eol))
+ (delete-char (- (length elmo-imap4-server-eol)))
(goto-char (point-min))
(unwind-protect
(case elmo-imap4-status
(> (buffer-size) 0)
(= (char-after (1- (point-max))) ?\n))
(goto-char (point-max))
- (delete-backward-char 1))
+ (delete-char -1))
(buffer-string)))))
(defun elmo-save-string (string filename)
(skip-chars-forward not-direct-encoding-chars)))
(if (and (= fc esc-char)
(= run-length 1)) ; Lone esc-char?
- (delete-backward-char 1) ; Now there's one too many
+ (delete-char -1) ; Now there's one too many
(utf7-fragment-encode p (point) for-imap))
(insert "-")))))))
(save-excursion
(utf7-fragment-decode p (point) for-imap)
(goto-char p)
- (delete-backward-char 1)))))))))
+ (delete-char -1)))))))))
(defun utf7-fragment-decode (start end &optional for-imap)
"Decode base64 encoded fragment from START to END of UTF-7 text in buffer.