Juri Linkov [Wed, 12 Mar 2008 21:55:02 +0000 (21:55 +0000)]
(describe-project): Remove defaliases for view-todo and
describe-project that are now unnecessary after the merge from
emacs--rel--22 that added define-obsolete-function-alias.
Juri Linkov [Wed, 12 Mar 2008 21:54:36 +0000 (21:54 +0000)]
(inhibit-startup-screen): Revert incomplete
2008-03-10 merge from emacs--rel--22 that partly reverted
2008-02-28 change that added initial message to *scratch* buffer
regardless of the value of `inhibit-startup-screen'.
Now keep this change in the trunk, but not in the 22 branch.
Stefan Monnier [Wed, 12 Mar 2008 20:51:26 +0000 (20:51 +0000)]
(mh-uncompface, mh-picon-file-contents): Use set-buffer-multibyte...
(mh-face-display-function, mh-x-image-display): ...rather than bind
default-enable-multibyte-characters.
Stefan Monnier [Wed, 12 Mar 2008 19:56:09 +0000 (19:56 +0000)]
Use with-current-buffer.
(nntp-send-buffer): Just set the buffer to unibyte rather than use the
dubious mm-with-unibyte-current-buffer.
(nntp-with-open-group-function): New function extracted from
nntp-with-open-group macro.
(nntp-with-open-group): Use the function, so it's easier to debug.
Add indentation and debugging info.
(nntp-open-telnet-stream, nntp-open-via-rlogin-and-telnet): Recommend the
use of the netcat alternatives.
Stefan Monnier [Wed, 12 Mar 2008 19:04:56 +0000 (19:04 +0000)]
Use inhibit-read-only.
(mm-inline-text-html-render-with-w3, mm-inline-message): Use dolist.
(mm-pkcs7-signed-magic, mm-pkcs7-enveloped-magic): Use just string
or unibyte-string.
Stefan Monnier [Wed, 12 Mar 2008 18:44:07 +0000 (18:44 +0000)]
Use with-current-buffer.
(nnmh-request-list-1): Use mm-string-to-multibyte rather than
mm-string-as-multibyte on the output of mm-encode-coding-string.
Stefan Monnier [Wed, 12 Mar 2008 18:30:52 +0000 (18:30 +0000)]
(mm-with-part): Set the buffer to unibyte before inserting
the handle-buffer's text, so the implicit multibyte->unibyte conversion
uses string-make-unibyte rather than string-as-unibyte.
Stefan Monnier [Wed, 12 Mar 2008 15:26:49 +0000 (15:26 +0000)]
Remove all cb-args, use closures instead.
(doc-view-sentinel): Merge doc-view-dvi->pdf-sentinel,
doc-view-ps->pdf-sentinel, and doc-view-pdf->txt-sentinel (which was
doing an incorrect check). Update all callers to use the new name.
(doc-view-doc->txt): Add missing `txt' argument.
Stefan Monnier [Wed, 12 Mar 2008 14:50:36 +0000 (14:50 +0000)]
(doc-view-new-window-function): Add assertion.
(doc-view-doc-type): New var.
(doc-view-convert-current-doc, doc-view-doc->txt): Use it.
(doc-view-intersection): New fun.
(doc-view-mode): Use it to set the new var.
Tassilo Horn [Wed, 12 Mar 2008 12:05:30 +0000 (12:05 +0000)]
(doc-view-doc->txt, doc-view-open-text)
(doc-view-already-converted-p): New functions.
(doc-view-clear-cache): Don't recreate doc-view-cache-directory.
(doc-view-mode-map): Bind C-c C-t to doc-view-open-text.
(doc-view-dvi->pdf-sentinel, doc-view-dvi->pdf)
(doc-view-pdf->txt-sentinel, doc-view-pdf->txt)
(doc-view-ps->pdf-sentinel, doc-view-ps->pdf)
(doc-view-convert-current-doc): Don't hardwire the functions the
sentinels call. Now they're provided by two args CALLBACK and
CB-ARGS to the functions.
(doc-view-search): Use doc-view-doc->txt.
(doc-view-initiate-display): Use doc-view-already-converted-p.
Mention new binding C-c C-t if doc-view-mode doesn't work.
Stefan Monnier [Tue, 11 Mar 2008 22:02:46 +0000 (22:02 +0000)]
(minibuffer-local-map): Use the same command for the "Quit" menu as used for
the C-g key, so the shortcut displayed is C-g.
Prefer RET over C-j for exit-minibuffer.
Stefan Monnier [Tue, 11 Mar 2008 17:44:39 +0000 (17:44 +0000)]
(menu-bar-update-buffers-maxbuf): Remove.
(menu-bar-select-buffer): Remove.
(menu-bar-select-frame): Make non-interactive and take a frame arg.
(menu-bar-update-buffers): Don't use buffer-names or frame names as events.
Glenn Morris [Mon, 10 Mar 2008 02:46:24 +0000 (02:46 +0000)]
(diary-file, hebrew-holidays-1)
(hebrew-holidays-2, hebrew-holidays-3, hebrew-holidays-4)
(calendar, calendar-basic-setup, calendar-mode-map, calendar-set-mark)
(calendar-version): Doc fixes.
(calendar-absolute-from-gregorian): Use zerop.
(calendar-mode-line-format): Make it a defcustom.
Stefan Monnier [Sun, 9 Mar 2008 21:35:01 +0000 (21:35 +0000)]
* bookmark.el (bookmark-make-record-function): Change expected return value
to include a suggested bookmark name.
(bookmark-make): Split into bookmark-make-record and bookmark-store.
Fix reversed `overwrite' semantics.
(bookmark-set): Call bookmark-make-record before prompting the user.
Then pass the result to bookmark-store later on.
(bookmark-make-name-function): Remove.
(bookmark-buffer-file-name, bookmark-buffer-name): Don't use it.
* info.el (bookmark-make-name-function): Remove.
(Info-mode): Don't set it.
(Info-bookmark-make-name): Remove.
(Info-bookmark-make-record): Use Info-current-node as suggested default
bookmark name.
Stefan Monnier [Sun, 9 Mar 2008 21:16:26 +0000 (21:16 +0000)]
(bookmark-set): Make the bookmark before reading annotations.
I.e. use bookmark-edit-annotation rather than bookmark-read-annotation.
(bookmark-read-annotation-mode-map, bookmark-annotation-paragraph)
(bookmark-annotation-buffer, bookmark-annotation-file)
(bookmark-annotation-point, bookmark-send-annotation)
(bookmark-read-annotation-mode, bookmark-read-annotation): Remove.
(bookmark-edit-annotation-text-func): Rename from
bookmark-read-annotation-text-func. Keep old name as an obsolete alias.
(bookmark-edit-annotation-mode-map): Move initialization into declaration.
Stefan Monnier [Sun, 9 Mar 2008 21:01:54 +0000 (21:01 +0000)]
Add spurious * in docstrings.
(bookmark-minibuffer-read-name-map): New var.
(bookmark-set): Use it. Also pass the default value as it should.
(bookmark-send-edited-annotation): Take no chances with text properties.
(bookmark-insert-current-bookmark): Inline bookmark-insert-buffer-name.
(bookmark-insert-buffer-name): Remove.
(bookmark-buffer-file-name): Signal an error rather than returning nil.
Glenn Morris [Sun, 9 Mar 2008 19:57:36 +0000 (19:57 +0000)]
(diary-list-entries): Doc fix.
(diary-list-entries, include-other-diary-files, fancy-diary-display):
Use let where let* is not needed.
(fancy-diary-display): Simplify setting of `date-holiday-list'.
Glenn Morris [Sun, 9 Mar 2008 19:21:47 +0000 (19:21 +0000)]
(general-holidays, oriental-holidays)
(local-holidays, other-holidays, hebrew-holidays-1, hebrew-holidays-2)
(hebrew-holidays-3, hebrew-holidays-4, hebrew-holidays)
(christian-holidays, islamic-holidays, bahai-holidays, solar-holidays)
(calendar-holidays): Restore autoload cookies, because people are
used to using these variables without loading calendar.el.
Stefan Monnier [Sun, 9 Mar 2008 03:05:34 +0000 (03:05 +0000)]
* bookmark.el (bookmark-make): Don't pass the `annotation' to the
make-record function, instead paste it in afterwards.
(bookmark-make-record-for-text-file):
* doc-view.el (doc-view-bookmark-make-record):
* info.el (Info-bookmark-make-record): Don't mess with annotations.
Stefan Monnier [Sat, 8 Mar 2008 22:43:09 +0000 (22:43 +0000)]
(diary-list-entries, include-other-diary-files, mark-diary-entries)
(mark-sexp-diary-entries, mark-included-diary-files)
(diary-entry-time, list-sexp-diary-entries): Remove the special
handling of ^M that dates back to the use of selective-display.
(simple-diary-display): Obey setting of pop-up-frames.
(body, entry): Remove unnecessary declarations.
Kim F. Storm [Sat, 8 Mar 2008 22:39:56 +0000 (22:39 +0000)]
(GET_NEXT_DISPLAY_ELEMENT): New macro.
(get_next_display_element, next_element_from_string)
(next_element_from_ellipsis, next_element_from_buffer): Use it.