Chong Yidong [Wed, 28 Jan 2009 03:56:18 +0000 (03:56 +0000)]
(todo-insert-item-here): Prevent insertion
of a new entry inside of an existing entry. Minor code cleanup.
(todo-add-category): Change the interactive spec. Signal an error
if the Todo file is non-empty but contains no category. Reject
category names that could induce bugs and confusion. Call
todo-mode if the Todo file is new and unsaved. Simplify handling
of local variables cookie. Properly display the newly added
category in Todo mode.
(todo-show): Call todo-initial-setup only if there is neither a
Todo file nor a corresponding unsaved buffer.
(todo-category-alist): Delete function.
(todo-completing-read): New function.
(todo-insert-item, todo-jump-to-category): Use it.
(todo-insert-item): Make the use of the prefix argument conform to
the doc string.
Chong Yidong [Wed, 28 Jan 2009 03:56:08 +0000 (03:56 +0000)]
* calendar/todo-mode.el (todo-insert-item-here): Prevent insertion
of a new entry inside of an existing entry. Minor code cleanup.
(todo-add-category): Change the interactive spec. Signal an error
if the Todo file is non-empty but contains no category. Reject
category names that could induce bugs and confusion. Call
todo-mode if the Todo file is new and unsaved. Simplify handling
of local variables cookie. Properly display the newly added
category in Todo mode.
(todo-show): Call todo-initial-setup only if there is neither a
Todo file nor a corresponding unsaved buffer.
(todo-category-alist): Delete function.
(todo-completing-read): New function.
(todo-insert-item, todo-jump-to-category): Use it.
(todo-insert-item): Make the use of the prefix argument conform to
the doc string.
Glenn Morris [Wed, 28 Jan 2009 02:50:41 +0000 (02:50 +0000)]
(rmail-expunge-and-save): Always show a message,
even when called from the summary. (Bug#2075)
(rmail-no-mail-p): New func, extracted from rmail-show-message-maybe.
(rmail-show-message-maybe): Use rmail-no-mail-p.
(rmail-show-message): If empty folder, do nothing. (Bug#2076)
Glenn Morris [Wed, 28 Jan 2009 02:49:40 +0000 (02:49 +0000)]
(rmail-message-recipients-p-1): Don't bother
starting from the beginning, since mail-fetch-field does not care.
(rmail-create-summary-line): Fix unseen handling. (Bug#2089)
(rmail-get-summary-status): New name for old rmail-get-summary-labels.
(rmail-get-summary-labels): New function. Returns labels rather than
status (edited, etc).
(rmail-create-summary): Insert an extra space after the status
flags, for consistency with old rmail, and with current
rmail-summary-font-lock-keywords.
Tassilo Horn [Tue, 27 Jan 2009 15:52:17 +0000 (15:52 +0000)]
(doc-view-mode): Enhance docstring and fallback to
fundamental-mode or ps-mode if the file is empty or doesn't exist
at all.
(doc-view-initiate-display): Better info message if doc-view-mode
cannot be used. (Missing utility or no png support/no X frame.)
* org.el (org-todo): Return correct state type even if the blocker
throws an error.
(org-modifier-cursor-error): Renamed from
`org-shiftcursor-error'.
(org-shiftmetaleft, org-shiftmetaright, org-shiftmetaup)
(org-shiftmetadown): Call `org-modifier-cursor-error'.
* org-agenda.el (org-agenda-todo): Call `org-todo' interactively,
to get real errors from the blocker hook.
* org.el (org-shiftselect-error, org-call-for-shift-select): New
functions.
(org-set-visibility-according-to-property): Turn off the setting
of `org-show-entry-below', to avoid overruling a FOLDED visibility
property.
* org.el (org-support-shift-select): New option.
(org-shiftup, org-shiftdown, org-shiftright, org-shiftleft)
(org-shiftcontrolright, org-shiftcontrolleft): Support for shift
selection outside contexts.
* org-list.el (org-at-item-bullet-p): New function.
Bill Wohler [Tue, 27 Jan 2009 06:36:54 +0000 (06:36 +0000)]
(mh-mm-merge-handles)
(mh-mm-set-handle-multipart-parameter, mh-mm-inline-text-vcard)
(mh-mml-minibuffer-read-disposition, mh-mm-save-part): Update with
code from Gnus 5.11 (closes SF #2235022).
Glenn Morris [Tue, 27 Jan 2009 03:43:26 +0000 (03:43 +0000)]
Remove leading `*' from defcustom docs.
Replace `first' and `rest' with `car' and `cdr' throughout.
(rsf-auto-delete-spam-bbdb-entries): Remove unused variable.
(rsf-scanning-messages-now): Doc fix.
(rsf-check-field): Rename from `check-field' and update callers.
(rmail-spam-filter): Fix bbdb/mail_auto_create_p oddness.
Use rmail-output rather than deleted rmail-output-to-rmail-file.
Glenn Morris [Tue, 27 Jan 2009 03:43:04 +0000 (03:43 +0000)]
Remove leading `*' from defcustom docs.
Remove needless autoloads of many defcustoms and hooks.
(rmail-enable-mime, rmail-insert-mime-resent-message-function)
(rmail-search-mime-message-function, rmail-search-mime-header-function)
(rmail-decode-mime-charset): Doc fix.
(rmail-search-message, rmail-resend): Check functions set before use.
Glenn Morris [Tue, 27 Jan 2009 03:42:31 +0000 (03:42 +0000)]
Remove leading `*' from defcustom docs.
Remove needless autoloads of many defcustoms.
(rmail-output-to-babyl-buffer): Rename from
rmail-output-to-r-mail-buffer and update caller.
(rmail-output): Doc fix.
Glenn Morris [Tue, 27 Jan 2009 03:42:08 +0000 (03:42 +0000)]
Remove leading `*' from defcustom docs.
Remove needless autoloads of many defcustoms.
(rmail-message-regexp-p-1): Check rmail-search-mime-header-function is set.
Jay Belanger [Tue, 27 Jan 2009 01:55:20 +0000 (01:55 +0000)]
(Embedded Mode, Algebraic-Style Calculations): Make Calc the subject
of sentences.
(Rearranging Formulas using Selections): Discuss new options for `j *'.
Jason Rumney [Mon, 26 Jan 2009 14:32:34 +0000 (14:32 +0000)]
(w32font_list_internal): Return quickly if registry is
unknown. Simplify final return.
(add_font_entity_to_list): Break complex logic down into more
manageable chunks. Move unknown registry check to
w32font_list_internal.
Carsten Dominik [Mon, 26 Jan 2009 08:40:19 +0000 (08:40 +0000)]
* org-export-latex.el (org-export-as-latex): Call
`org-export-latex-first-lines' with OPT-PLIST as a parameter.
(org-export-latex-first-lines): New parameter OPT-PLIST.
Adrian Robert [Sun, 25 Jan 2009 19:50:16 +0000 (19:50 +0000)]
* term/ns-win.el (ns-insert-working-text, ns-delete-working-text):
Remove from global map and key definitions.
(ns-toggle-toolbar, ns-info-prefs): Add to global map and key
definitions.
(ns-show-preferences-help, ns-unput-working-text): New functions.
(ns-unecho-working-text): Update message.
Adrian Robert [Sun, 25 Jan 2009 19:43:31 +0000 (19:43 +0000)]
Changes to remove Feval calls from GUI under NS.
* nsterm.h: Move KEY_NS_... definitions here from nsterm.m. Add
NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
* nsterm.m: Move KEY_NS_... definitions to nsterm.h.
(EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
(EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
instead of NON_ASCII_KEYSTROKE_EVENT.
(EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
(EmacsApp-applicationShouldTerminate:): Query user.
(EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
instead of Feval.
* termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
* keyboard.c (kbd_buffer_get_event): Check for it.
(keys_of_keyboard): Define lispy keys for
ns-put/unput-working-text.
* nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
versions.
(EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.