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.
Kenichi Handa [Wed, 4 Feb 2009 02:00:34 +0000 (02:00 +0000)]
(compose-gstring-for-terminal): If a character is
not supported by the current terminal, don't make a multi-glyph
grapheme cluster.
(auto-compose-chars): Check font-object by fontp.
Kenichi Handa [Wed, 4 Feb 2009 01:48:37 +0000 (01:48 +0000)]
Include coding.h and termhooks.h.
(composition_gstring_p): Fix for the terminal case.
(composition_gstring_width): Likewise.
(fill_gstring_body): Likewise.
(autocmp_chars): For terminal, call Fcomposition_get_gstring with
the frame.
(composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
is within a composition.
(Fcomposition_get_gstring): Fix the the terminal case.
Glenn Morris [Tue, 3 Feb 2009 04:07:25 +0000 (04:07 +0000)]
(rmail-convert-babyl-to-mbox): Disable undo while
inserting the converted mailbox.
(rmail-get-new-mail): Restore the loop over inboxes when two or more
have the same basename. (Bug#2164)
Set the return value according to whether any mail was found,
not just in the last inbox. Only show a message and run the hook after
checking all inboxes.
(rmail-get-new-mail-1): Move message display and running the hook to
rmail-get-new-mail.
Glenn Morris [Tue, 3 Feb 2009 04:07:02 +0000 (04:07 +0000)]
(rmail-label-obarray): Initialize using rmail-attr-array.
(rmail-make-label, rmail-read-label): Give it a doc string.
(rmail-add-label, rmail-kill-label): Change argument name to match the
doc. Doc fix.
(rmail-set-label): Doc fix. Also update summary in attr case.
Accept labels as a string or a symbol. (Bug#2165)