Glenn Morris [Tue, 10 Feb 2009 03:33:27 +0000 (03:33 +0000)]
(rmail-automatic-folder-directives): Doc fix.
(rmail-current-message, rmail-total-messages)
(rmail-message-vector, rmail-deleted-vector): Add doc strings.
(rmail-duplicate-message): Doc fix.
(rmail-get-header-1, rmail-set-header-1, rmail-set-attribute-1):
New functions.
(rmail-get-header, rmail-set-header, rmail-set-attribute):
Use rmail-apply-in-message.
(rmail-message-attr-p): Use rmail-get-header, hence no longer requires
unswapped-ness.
(rmail-get-attr-names): Check for missing or corrupt attribute headers.
(rmail-auto-file): Set the filed attribute, rather than explicitly not
doing so. (Bug#2231)
Glenn Morris [Sun, 8 Feb 2009 01:52:01 +0000 (01:52 +0000)]
(diary-entry-marker, calendar-today-marker, calendar-holiday-marker)
(calendar-mark-visible-date): It doesn't make sense to check
font-lock-mode (see comments; reverts 2008-04-02 change). (Bug#2199)
Glenn Morris [Sat, 7 Feb 2009 22:41:04 +0000 (22:41 +0000)]
(rmail-msg-restore-non-pruned-header): Remove unneeded autoload of
function that no longer exists.
(rmail-toggle-header): Declare.
(message-forward-rmail-make-body): Handle mbox Rmail.
Roland Winkler [Sat, 7 Feb 2009 17:07:56 +0000 (17:07 +0000)]
(proced-after-send-signal-hook): Use defcustom.
(proced-header-line): Handle header lines that are shorter than
window-hscroll.
(proced-send-signal): Rebind split-width-threshold analogous to
dired-pop-to-buffer.
Eli Zaretskii [Sat, 7 Feb 2009 16:46:27 +0000 (16:46 +0000)]
(rmail-redecode-body): Don't encode/decode the message; instead, just rewrite
the X-Coding-System header with the new encoding, and let rmail-show-message
do the rest. Remove unused argument RAW. Fix doc string to be consistent
with the new implementation.
(rmail-show-message): Honor X-Coding-System header, if present, in preference
to Content-Type header.
Eli Zaretskii [Sat, 7 Feb 2009 15:16:57 +0000 (15:16 +0000)]
(rmail-cease-edit): Look for the message's encoding, and its
"content-transfer-encoding" and "content-type" headers only in the
headers' portion. (Bug#2017)
Eli Zaretskii [Sat, 7 Feb 2009 12:55:49 +0000 (12:55 +0000)]
(rmail-cease-edit): narrow-to-region before extracting mail message headers.
Use encode-coding-region instead of insert-buffer-substring for re-encoding
edited message. Add qp/b64 encoding only after text was encoded.
Adrian Robert [Sat, 7 Feb 2009 11:04:22 +0000 (11:04 +0000)]
* nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
when modal window is active. (Bug #2152)
(applicationShouldTerminate:): Remove now-unneeded while loop
around NSRunAlertPanel.
* nsmenu.m (popupSession): New file-global variable.
(pop_down_menu): End the popupSession before closing dialog.
(ns_popup_dialog): BLOCK_INPUT around dialog presentation.
(EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
don't query NSApp for events (just sleep instead).
Glenn Morris [Sat, 7 Feb 2009 03:02:57 +0000 (03:02 +0000)]
(rmail-create-summary-line): Widen the view buffer
before trying to move to the start of the message.
(rmail-summary-undelete-many, rmail-summary-rmail-update):
Fix rmail-set-attribute calls.
Glenn Morris [Sat, 7 Feb 2009 03:02:39 +0000 (03:02 +0000)]
(mail-bury-selects-summary, mail-yank-original): Doc fix.
(rmail-output-to-rmail-buffer): Autoload it.
(mail-do-fcc): Give it a doc string. Update for mbox Rmail, simplify.
Juri Linkov [Thu, 5 Feb 2009 23:59:52 +0000 (23:59 +0000)]
(image-mode): Use `image-get-display-property' instead of `get-text-property'.
(image-minor-mode): Sync the logic with `image-mode' including the
activation of the image display by default.
Adrian Robert [Wed, 4 Feb 2009 11:31:28 +0000 (11:31 +0000)]
* nsmenu.m (pop_down_menu): New function.
(ns_popup_dialog): Call it on unwind.
(EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
call timer_check() (Bug#2154).
(EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
handling_signal is set.
(EmacsMenu-fillWithWidgetValue:): Set submenu title.
* s/darwin.h: Same and NO_SOCK_SIGIO as well.
* nsterm.m (ns_read_socket): Same and don't set handling_signal.
* keyboard.c (poll_for_input_1, handle_async_input): Set
handling_signal under HAVE_NS.