Katsumi Yamaoka [Thu, 11 Nov 2010 23:51:05 +0000 (23:51 +0000)]
Make mm-dissect-buffer pass sender's mail address to smime-decrypt-region.
mm-decode.el (mm-dissect-buffer): Pass sender's mail address to smime-decrypt-region using function argument.
mm-decode.el (mm-possibly-verify-or-decrypt, mm-dissect-multipart): Relay it.
mm-view.el (mm-view-pkcs7, mm-view-pkcs7-decrypt): Relay it.
smime.el (smime-decrypt-region): Catch it.
Martin Rudalics [Thu, 11 Nov 2010 18:13:43 +0000 (19:13 +0100)]
Fix a bug in and rewrite resize_frame_windows.
* window.c (syms_of_window): Add Qsafe and intern it.
(resize_frame_windows): Check whether the actual new size of the
root window matches the requested size. Also try one more round
with safe minimum sizes. Simplify code.
Andrew Cohen [Thu, 11 Nov 2010 02:10:07 +0000 (02:10 +0000)]
nnir.el (nnir-request-move-article): fix to provide original group and subject.
nnir.el (nnir-warp-to-article): don't fail on articles whose headers haven't been retrieved.
gnus-sum.el (gnus-summary-move-article): use original group and subject for virtual articles such as those in an nnir summary buffer.
Martin Rudalics [Wed, 10 Nov 2010 09:53:22 +0000 (10:53 +0100)]
Add temp-buffer-show-specifiers and replace with-output-to-temp-buffer
with with-help-window.
* window.c (syms_of_window): New variable
temp-buffer-show-specifiers.
(temp_output_buffer_show): Call display-buffer with second
argument set to temp-buffer-show-specifiers and reset the latter
after the call.
* print.c (Fwith_output_to_temp_buffer): In doc-string explain how
to set up temp-buffer-show-specifiers.
* help.el (with-help-window): In doc-string say how to set up
temp-buffer-show-specifiers.
* isearch.el (isearch-help-for-help, isearch-describe-bindings)
(isearch-describe-key, isearch-describe-mode): Replace bindings
for same-window-buffer-names and same-window-regexps by binding
temp-buffer-show-specifiers instead.
Glenn Morris [Wed, 10 Nov 2010 05:24:48 +0000 (21:24 -0800)]
Minor edt.el simplification.
* lisp/emulation/edt.el (edt-with-position): New macro.
(edt-find-forward, edt-find-backward, edt-find-next-forward)
(edt-find-next-backward, edt-sentence-forward, edt-sentence-backward)
(edt-paragraph-forward, edt-paragraph-backward): Use it.
Glenn Morris [Wed, 10 Nov 2010 04:24:47 +0000 (20:24 -0800)]
system-type related trivia.
* lisp/cedet/semantic/bovine/c.el: Test system-type with memq.
* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres, cperl-write-tags):
No recent Emacs supports system-type `emx'.
* lisp/progmodes/ada-xref.el (is-windows): Rename to ada-on-ms-windows.
(ada-command-separator, ada-default-prj-properties)
(ada-find-any-references): Update for above name change.
Glenn Morris [Wed, 10 Nov 2010 04:08:15 +0000 (20:08 -0800)]
time-to-seconds related simplifications.
* lisp/gnus/gnus-util.el (with-no-warnings): Remove compat stub, now unused.
(gnus-float-time): On Emacs, always an alias.
* lisp/gnus/ecomplete.el (with-no-warnings): Remove compat stub, now unused.
(ecomplete-add-item): Use float-time on Emacs, else gnus-float-time.
* lisp/textmodes/remember.el (remember-time-to-seconds): Remove.
(remember-store-in-mailbox): Use float-time.
* lisp/calendar/timeclock.el (timeclock-time-to-seconds): Make it an alias.
* lisp/calendar/time-date.el (time-to-seconds): Always an alias on Emacs,
never a real function.
(with-no-warnings): Remove compat stub, now unused.
(time-less-p): Doc fix.
(time-to-number-of-days): Simplify.
message.el (message-mailto): New function.
message.el (message-mailto): Should accept other parameters.
message.el (message-mailto): Remove since it duplicates browse-url-mailto functionality.
shr.el (shr-browse-url): Call browse-url-mailto for mailto: links.
message.el (message-subject-trailing-was-ask-regexp): A ] in a [] regexp doesn't need quoting.
gnus-art.el (article-treat-non-ascii): New command and keystroke.
shr.el (browse-url-mailto): Autoload.
gnus.texi (Article Washing): Document gnus-article-treat-non-ascii.
Stefan Monnier [Mon, 8 Nov 2010 20:01:01 +0000 (15:01 -0500)]
* lisp/emacs-lisp/checkdoc.el (checkdoc-display-status-buffer)
(checkdoc-interactive-loop, checkdoc-recursive-edit): Avoid princ-list.
(checkdoc-syntax-table): Initialize in the declaration.
(emacs-lisp-mode-hook): Use just checkdoc-minor-mode now that it turns
the mode on unconditionally.
Martin Rudalics [Sun, 7 Nov 2010 19:47:18 +0000 (20:47 +0100)]
Rewrite more functions with buffer display specifiers
* printing.el (pr-file-list): Comment out bindings of
pop-up-windows and pop-up-frames.
* mail/reporter.el (reporter-submit-bug-report): Use
pop-to-buffer-other-window and display specifiers.
* mail/sendmail.el (mail-bury): Do something similar to
quit-restore-window.
(top-level): Don't change same-window-buffer-names via add-hook
any more.
(mail): Use pop-to-buffer-same-window.
(mail-other-window): Use pop-to-buffer-other-window.
(mail-other-frame): Use pop-to-buffer-other-frame.
* simple.el (display-message-or-buffer): Rename argument FRAME
to IGNORE because it's ignored. Change call to display-buffer
accordingly.
(sendmail-user-agent-compose): Remove let bindings around call
to switch-function; the latter should have been bound to an
appropriate function already.
(clone-buffer): Call pop-to-buffer-other-window.
(clone-indirect-buffer): New semantices of display-flag
argument.
(clone-indirect-buffer-other-window): Interactively set
display-flag to 'other-window.
* calendar/solar.el (sunrise-sunset): Use with-help-window instead
of with-output-to-temp-buffer.
* textmodes/bibtex.el (bibtex-search-entry): Use
pop-to-buffer-same-window.
* cmuscheme.el (run-scheme): Use pop-to-buffer-same-window.
(top-level): Remove autoloaded add-hook for
same-window-buffer-names.
* eshell/eshell.el (eshell-add-to-window-buffer-names)
(eshell-remove-from-window-buffer-names): Remove.
(eshell-unload-hook): Don't call
eshell-remove-from-window-buffer-names.
(eshell-buffer-name): Don't call
eshell-remove-from-window-buffer-names and
eshell-add-to-window-buffer-names.
(top-level): Remove eshell-deftest call to check for
same-window-buffer-names.
(eshell): Call pop-to-buffer-same-window.
* files.el (display-buffer-other-frame): Remove.
* ielm.el (top-level): Remove autoloaded add-hook for
same-window-buffer-names.
(ielm): Use pop-to-buffer-same-window.
* progmodes/inf-lisp.el (inferior-lisp): Use
pop-to-buffer-same-window.
(top-level): Remove autoloaded add-hook for
same-window-buffer-names.
(switch-to-lisp): Use pop-to-buffer with tailored specifiers.
* replace.el (occur-mode-goto-occurrence): Use
pop-to-buffer-other-window.
(occur-mode-display-occurrence): Use
display-buffer-other-window.
* shell.el (shell): Use pop-to-buffer-same-window.
(top-level): Remove autoloaded add-hook for
same-window-buffer-names.
* net/rlogin.el: (top-level): Remove autoloaded add-hook for
same-window-regexps.
(rlogin): Use pop-to-buffer-same-window.
* net/telnet.el (top-level): Remove two autoloaded add-hooks for
same-window-regexps.
(telnet, rsh): Use pop-to-buffer-same-window.
Stefan Monnier [Sun, 7 Nov 2010 15:45:45 +0000 (10:45 -0500)]
* lisp/emacs-lisp/smie.el: Simplify the smie-rules-function return values.
(smie-precs->prec2): Rename from smie-precs-precedence-table.
(smie-bnf->prec2): Rename from smie-bnf-precedence-table.
(smie-prec2->grammar): Rename from smie-prec2-levels.
(smie-grammar): Rename from smie-op-levels.
(smie-indent--hanging-p): Rename from smie-hanging-p.
(smie-rule-hanging-p): New alias.
(smie-indent--bolp): Rename from smie-bolp.
(smie-indent--hanging-p): New alias.
(smie--token): New dynamically bound variable.
(smie-indent--parent): New function.
(smie-rule-parent-p): Use it; rename from smie-parent-p.
(smie-rule-next-p): Rename from smie-next-p.
(smie-rule-prev-p): Rename from smie-prev-p.
(smie-rule-sibling-p, smie-rule-parent)
(smie-indent--separator-outdent, smie-rule-separator): New functions.
(smie-rule-separator-outdent): New var.
(smie-indent--rule): Merge with smie-indent--column.
(smie-indent-forward-token, smie-indent-backward-token):
Also recognize close parens.
(smie-indent-keyword): Don't use smie-indent--column any more.
(smie-indent-after-keyword): Ignore closers by default.
(smie-indent-line): Use with-demoted-errors.
* lisp/progmodes/octave-mod.el (octave-smie-grammar):
Rename from octave-smie-op-levels.
(octave-smie-rules): Adjust to new behavior.
* lisp/progmodes/prolog.el (prolog-smie-grammar):
Rename from prolog-smie-op-levels.
Glenn Morris [Sun, 7 Nov 2010 01:56:09 +0000 (18:56 -0700)]
Minor esh-util changes.
* lisp/eshell/esh-util.el (subst-char-in-string)
(directory-files-and-attributes): These compatibility definitions are
not needed on any version of Emacs since at least 21.4.
Glenn Morris [Sun, 7 Nov 2010 01:44:13 +0000 (18:44 -0700)]
Minor checkdoc simplifications.
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
Use end-of-line N.
(checkdoc-this-string-valid-engine, checkdoc-file-comments-engine):
Use line-end-position.
Glenn Morris [Sun, 7 Nov 2010 01:06:37 +0000 (18:06 -0700)]
Replace more speedbar uses of end-of-line etc with line-end-position.
* lisp/speedbar.el (speedbar-generic-item-info)
(speedbar-item-info-tag-helper, speedbar-change-expand-button-char)
(speedbar-add-indicator, speedbar-check-vc-this-line)
(speedbar-check-obj-this-line, speedbar-extract-one-symbol)
(speedbar-buffers-line-directory, speedbar-buffer-revert-buffer):
Replace more uses of end-of-line etc with line-end-position.
Gnus developers [Sun, 7 Nov 2010 00:22:06 +0000 (00:22 +0000)]
gnus-int.el, nnimap.el, nnir.el: More improvements to thread-referral.
message.el (message-send-mail): Don't insert courtesy messages if the message already has List-Post and List-ID messages.
gnus-ems.el (gnus-put-image): Use a blank text as the insertion string to avoid making the From headers syntactically invalid.