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.
Martin Rudalics [Fri, 5 Nov 2010 10:41:43 +0000 (11:41 +0100)]
Rewrite more functions using buffer display specifiers.
* electric.el (Electric-pop-up-window): Use buffer display
specifiers.
* emacs-lisp/elint.el (elint-display-log): Use
display-buffer-other-window.
* vc/pcvs-util.el (cvs-pop-to-buffer-same-frame): Use buffer
display specifiers.
* message.el (message-mail-other-window)
(message-news-other-window): Pass pop-to-buffer-other-window as
switch-function to message-pop-to-buffer.
(message-mail-other-frame, message-news-other-frame): Pass
pop-to-buffer-other-frame as switch-function to
message-pop-to-buffer.
* mh-comp.el (mh-send-other-window): Pass t as extra argument to
mh-send-sub.
(mh-send-sub): New optional argument OTHER-WINDOW. Pass extra
argument to mh-read-draft.
(mh-read-draft): New optional argument OTHER-WINDOW. Pass it in
suitable fashion to pop-to-buffer.
Gnus developers [Thu, 4 Nov 2010 22:18:09 +0000 (22:18 +0000)]
Merge changes made in Gnus trunk.
mm-decode.el (mm-save-part): Put the entire path in the `M-n' slot.
nnimap.el (nnimap-find-article-by-message-id): Don't EXAMINE a group if it's already selected.
gnus.texi (Customizing the IMAP Connection): Document `nnimap-expunge' and remove `nnimap-expunge-inbox' from example.
gnus.texi (Customizing the IMAP Connection): Remove nnir mention, since that works by default.
gnus-sum.el (gnus-summary-show-article): Take `t' as the arg to mean "raw".
gnus-html.el (gnus-html-browse-url): Implement mailto: URLs.
shr.el (shr-browse-url): Implement mailto: URLs.
nnir.el, gnus-sum.el: Improve thread-referral.
message.el (message-send-mail): Use the value of message-courtesy-message from the message buffer.
Michael Albinus [Thu, 4 Nov 2010 13:30:20 +0000 (14:30 +0100)]
* tramp.texi (Remote shell setup): New item "Interactive shell
prompt". Reported by Christian Millour <cm@abtela.com>.
(Remote shell setup, Remote processes): Use @code{} for
environment variables.
Martin Rudalics [Thu, 4 Nov 2010 13:26:46 +0000 (14:26 +0100)]
Merge with trunk. Add even-window-sizes and adjust-width buffer display
specifiers. Redesign adjust-height buffer display specifier. Adjust
callers in compile.el.
* window.el (display-buffer-names, display-buffer-regexps): Make
even-window-sizes a seperate specifier. Allow numbers and
functions in the cdr of the adjust-height specifier and remove
even-window-heights and the special handling of
fit-window-to-buffer and shrink-window-if-larger-than-buffer.
Add new specifier adjust-width similar to adjust-height.
(display-buffer-normalize-specifiers-1): Fix typo.
(display-buffer-even-sizes, display-buffer-adjust-height)
(display-buffer-adjust-width): New functions to handle size
adjustment of new window.
(display-buffer-adjust-heights): Remove.
(display-buffer-in-window): Don't call
display-buffer-adjust-heights any more.
(display-buffer-in-lru-buffer-window)
(display-buffer-in-lru-window): Call display-buffer-even-sizes.
(display-buffer-in-new-window): Use functionp instead of
fboundp. Call display-buffer-adjust-height and
display-buffer-adjust-width.
(display-buffer): Use functionp instead of fboundp.
(fit-window-to-buffer): Rename argument IGNORE to OVERRIDE.
* progmodes/compile.el (compilation-start)
(compilation-goto-locus): Use adjust-height specifier in
display-buffer calls.
Chong Yidong [Wed, 3 Nov 2010 23:21:51 +0000 (19:21 -0400)]
* emacs-lisp/package.el (package-unpack): Remove no-op.
(package--builtins, package--dir): Doc fix.
(package-activate-1, package-activate, package-install)
(package-compute-transaction): Fix error message.
(package-delete): Use delete-directory. Omit system packages.
(package-initialize): Set package-alist to nil first.
(package-menu-mark-delete, package-menu-mark-install): Don't add
symbols that are inconsistent with the package state.
(package-menu-execute): Perform deletions and installations as
single batch operations.
Glenn Morris [Wed, 3 Nov 2010 08:03:42 +0000 (01:03 -0700)]
reftex-toc trivia.
* lisp/textmodes/reftex-toc.el (reftex-toc-do-promote): Remove unused
local `mpos'.
(reftex-toc-restore-region): Make `mpos' local to this function.
Chong Yidong [Wed, 3 Nov 2010 03:25:36 +0000 (23:25 -0400)]
Separate built-in packages from elpa packages, for efficiency.
* emacs-lisp/package.el: Don't put built-in packages in
package-alist, to avoid loading inefficiencies.
(package-built-in-p): Make VERSION optional, and treat it as a
minimum acceptable version.
(package-activate): Search separately for built-in packages. Emit
a warning if a dependency fails.
(define-package): Handle most common case, where there is no
obsolete package, first.
(package-compute-transaction): Print required version in error.
(package--initialized): New variable.
(list-packages): Use it.
(package-initialize): Optional arg NO-ACTIVATE. Don't put
built-in packages in packages-alist; keep it separate. Set
package--initialized.
(describe-package): Avoid activating packages as a side-effect.
Search separately for built-in packages.
(describe-package-1): Handle the case where an elpa package is
simultaneously built-in and available/installed.
(package-installed-p, package--generate-package-list): Search
separately for built-in packages.
(package-load-descriptor): Doc fix.
Martin Rudalics [Tue, 2 Nov 2010 17:04:40 +0000 (18:04 +0100)]
Provide new semantics for cdr of `not-this-window' and `not-this-frame'
specifiers when passed as argument to `display-buffer'. Use buffer
display specifiers in compilation functions.
* window.el (display-buffer-names): Describe `not-this-window' and
`not-this-frame' specifiers in doc-string.
(display-buffer-in-lru-buffer-window)
(display-buffer-in-lru-window, display-buffer-in-new-window):
Handle `not-this-window' and `not-this-frame' specifiers when
their cdr specifies a window or a frame.
(display-buffer): Explain in doc-string that the cdr of the
`not-this-window' and `not-this-frame' specifiers argument can
name a window.
* progmodes/compile.el (compilation-start): When displaying outbuf
directly pass height parameters.
(compilation-goto-locus): Use specifiers in display-buffer and
pop-to-buffer calls. Simplify.
(compilation-find-file): Use specifiers in display-buffer calls.
* windows.texi (Displaying Buffers): Describe special handling
of `not-this-window' and `not-this-frame' specifiers for
`display-buffer'.
Katsumi Yamaoka [Tue, 2 Nov 2010 02:19:52 +0000 (02:19 +0000)]
gnus-cite.el (gnus-article-fill-cited-article): Make fill work properly for XEmacs as well.
gnus-cite.el (gnus-article-fill-cited-article, gnus-article-foldable-buffer, gnus-article-natural-long-line-p): Use window-width rather than frame-width.
Chong Yidong [Tue, 2 Nov 2010 01:50:26 +0000 (21:50 -0400)]
Two fixes for elpa packages overriding built-in ones.
* emacs-lisp/package.el (package-initialize): Ensure that
obsoleted built-in packages are not in package-activated-list
during activation.
(describe-package-1): Make the "installed" status override
"built-in".
gnus-sum.el (gnus-print-buffer): Rewrite to use with-temp-buffer.
gnus-sum.el (gnus-print-buffer): Just print the buffer as is.
gnus-cite.el (gnus-article-foldable-buffer): Protect against degenerate articles.
nnimap.el (nnimap-parse-line): Don't bug out oddly formed replies (bug #7311).
gnus-cite.el (gnus-article-fill-cited-article): Minimize the long-lines case by only filling the long lines.
gnus-start.el (gnus-ask-server-for-new-groups): Return the new groups.
gnus-group.el (gnus-group-find-new-groups): Display all the new groups.
gnus-start.el (gnus-find-new-newsgroups): Return the list of new groups.
nnimap.el (nnimap-request-group): Store the new updated info.
nnimap.el (nnimap-request-group): Select the group when we don't know whether it exists or not.
Glenn Morris [Mon, 1 Nov 2010 07:40:11 +0000 (00:40 -0700)]
Reposition some aliases in holidays.el.
* lisp/calendar/holidays.el (general-holidays, oriental-holidays)
(local-holidays, other-holidays, hebrew-holidays, christian-holidays)
(islamic-holidays, bahai-holidays, solar-holidays): Move aliases before
the definitions of their targets.
(The position doesn't actually matter so long as the aliases are autoloaded).
Katsumi Yamaoka [Mon, 1 Nov 2010 03:58:53 +0000 (03:58 +0000)]
gnus-util.el (gnus-string-match-p): New function, that is an alias to string-match-p in Emacs >=23.
gnus-msg.el (gnus-configure-posting-styles)
nnir.el (nnir-run-gmane): Use gnus-string-match-p.
Gnus developers [Sun, 31 Oct 2010 22:31:24 +0000 (22:31 +0000)]
Merge changes made in Gnus trunk.
nnimap.el (nnimap-open-connection): Only send AUTHENTICATE PLAIN if LOGINDISABLED is set.
gnus.el (gnus-group-startup-message): Move point to the start of the buffer.
nndoc.el (nndoc-dissect-buffer): Reverse the order of the articles to reflect the order they're in in the digest.
gnus-sum.el (gnus-summary-select-article): Make `C-d' work reliably by checking whether the original article buffer is alive.
shr.el (shr-find-fill-point): Don't break lines between punctuation and non-punctuation (like after the apostrophe in "'We").
gnus-cite.el (gnus-article-fill-cited-article): Remove unused `force' parameter.
gnus-art.el (gnus-treatment-function-alist): Have gnus-treat-fill-long-lines point to gnus-article-fill-cited-long-lines.
gnus-art.el (gnus-treat-fill-long-lines): Change default to fill all text/plain sections.
gnus.el: Autoload gnus-article-fill-cited-long-lines.
gnus-art.el (gnus-mime-display-alternative): Actually pass the type on to `gnus-treat-article'.
gnus-sum.el (gnus-summary-show-article): Add `C-u C-u g' for showing the raw article, and change `C-u g' to show the article without doing treatments.
gnus.texi (Paging the Article): Document C-u g/C-u C-u g.
gnus-cite.el (gnus-article-foldable-buffer): Refactor out.
gnus-cite.el (gnus-article-foldable-buffer): Don't fold regions that have a ragged left edge.
gnus-cite.el (gnus-article-foldable-buffer): Skip past the prefix when determining raggedness.
gnus-srvr.el, nnir.el: Allow nnir searching for an entire server.
gnus-msg.el (gnus-configure-posting-styles): Permit the use of regular expression match and replace in posting styles.
gnus-art.el (gnus-treat-article): Only inhibit body washing, and leave the header washing to take place.
nnimap.el (nnimap-request-accept-article): Erase buffer before appending for easier debugging.
nnimap.el (nnimap-wait-for-connection): Take a regexp.
nnimap.el (nnimap-request-accept-article): Wait for the continuation line before sending anything unless we're streaming.
Glenn Morris [Sun, 31 Oct 2010 18:26:54 +0000 (11:26 -0700)]
Fix bug#7299; default value of tool-bar-mode in without-x builds.
* src/frame.c (syms_of_frame) <tool-bar-mode>:
Default to nil if !HAVE_WINDOW_SYSTEM.
* lisp/cus-start.el: Handle standard values via a keyword.
Only set version property if specified.
(cursor-in-non-selected-windows, menu-bar-mode)
(tool-bar-mode, show-trailing-whitespace):
Do not specify standard values.
(transient-mark-mode, temporary-file-directory): Use :standard.