Fix display-buffer related bugs reported by Thierry Volpiatto.
[bpt/emacs.git] / lisp / ChangeLog
index 0123979..dfac3b4 100644 (file)
@@ -1,5 +1,261 @@
+2011-06-23  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (get-lru-window, get-mru-window)
+       (get-largest-window): Never return a minibuffer window.
+       (display-buffer-pop-up-window): Fix a bug that could lead to
+       reusing the minibuffer window.
+       (display-buffer): Pass original specifier argument to
+       display-buffer-function instead of the normalized one.
+       Reported by Thierry Volpiatto <thierry.volpiatto@gmail.com>.
+
+2011-06-22  Leo Liu  <sdl.web@gmail.com>
+
+       * minibuffer.el (completing-read-function)
+       (completing-read-default): Move from minibuf.c
+
+2011-06-22  Richard Stallman  <rms@gnu.org>
+
+       * mail/sendmail.el (mail-bury): If Rmail is in use, return nicely
+       to Rmail even if not started by a special Rmail command.
+
+       * mail/rmailmm.el (rmail-insert-mime-forwarded-message):
+       Copy the buffer currently showing just one message.
+
+2011-06-22  Roland Winkler  <winkler@gnu.org>
+
+       * textmodes/bibtex.el (bibtex-entry-update): Use mapc.
+       (bibtex-clean-entry): First delete the old key so that a
+       customized algorithm for generating the new key does not get
+       confused by the old key.
+       (bibtex-url): Obey regexp of first step.
+       (bibtex-search-entries): Do not use add-to-list with local
+       list-var.
+
+2011-06-22  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * mail/smtpmail.el (smtpmail-try-auth-methods): If the user has
+       stored a user name, then query for the password first, instead of
+       waiting for SMTP to give an error message and the trying again.
+
+2011-06-22  Lawrence Mitchell  <wence@gmx.li>
+
+       * net/browse-url.el (browse-url-xdg-open): Use 0, rather than nil
+       BUFFER in call-process.
+
+2011-06-22  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * mail/smtpmail.el (smtpmail-via-smtp): Make sure we don't send
+       QUIT twice.
+       (smtpmail-try-auth-methods): Require user name and password from
+       auth-source.
+
+2011-06-22  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (display-buffer-default-specifiers)
+       (display-buffer-alist): Remove entries for pop-up-frame-alist.
+       Suggested by Katsumi Yamaoka <yamaoka@jpl.org>.
+       (split-window): Normalize SIDE argument (Bug#8916).
+
+       * frame.el (pop-up-frame-alist, pop-up-frame-function)
+       (special-display-frame-alist, special-display-popup-frame):
+       Remove duplicate declarations.  These are now in window.el.
+
+2011-06-21  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * mail/smtpmail.el (smtpmail-via-smtp): Set
+       :use-starttls-if-possible so that we always use STARTTLS if the
+       server supports it.  SMTP servers that support STARTTLS commonly
+       require it.
+
+       * net/network-stream.el (network-stream-open-starttls): Support
+       upgrading to STARTTLS always, even if we don't have built-in support.
+       (open-network-stream): Add the :always-query-capabilies keyword.
+
+       * mail/smtpmail.el: Rewritten to do opportunistic STARTTLS
+       upgrades with `open-network-stream', and rely solely on
+       auth-source for all credentials.  Big changes throughout the file,
+       but in particular:
+       (smtpmail-auth-credentials): Removed.
+       (smtpmail-starttls-credentials): Removed.
+       (smtpmail-via-smtp): Check for servers saying they want AUTH after
+       MAIL FROM, too.
+
+       * net/network-stream.el (network-stream-open-starttls): Provide
+       support for client certificates both for external and built-in
+       STARTTLS.
+       (auth-source): Require.
+       (open-network-stream): Document the :client-certificate keyword.
+       (network-stream-certificate): Change cert-cert to cert and
+       cert-key to key.
+
+2011-06-21  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-cache.el (top): Don't load the persistency file when
+       "emacs -Q" has been called.
+
+2011-06-21  Tim Harper  <timcharper@gmail.com>
+
+       * term/ns-win.el (ns-initialize-window-system): set
+       application-specific `ApplePressAndHoldEnabled' system
+       resource to NO as it is not yet supported by the NS port.
+
+2011-06-21  Juanma Barranquero  <lekktu@gmail.com>
+
+       * misc.el (list-dynamic-libraries--refresh): Compute header here...
+       (list-dynamic-libraries): ...not here.
+
+2011-06-21  Leo Liu  <sdl.web@gmail.com>
+
+       * subr.el (sha1): Implement sha1 using secure-hash.
+
+2011-06-21  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (display-buffer-alist): In default value do not
+       enforce searching a window on any but the selected frame.
+       Reported by Katsumi Yamaoka <yamaoka@jpl.org>.
+       (display-buffer-select-window): Remove function.
+       (display-buffer-in-window): When a window on another frame gets
+       reused, do not select it any more but just raise its frame if
+       necessary (Bug#8851) and (Bug#8856).
+       (display-buffer-normalize-options): Handle pop-up-frames related
+       options more faithfully.
+       (pop-to-buffer): Don't rely on `display-buffer' selecting the
+       window if it is on another frame.
+       (display-buffer-alist, display-buffer-default-specifiers): Don't
+       make new frame unsplittable by default.
+       (display-buffer-normalize-argument): Fix doc-string typo and use
+       'same-frame-other-window instead of 'other-window when associating
+       with display-buffer-macro-specifiers.
+
+2011-06-21  Vincent Belaïche  <vincent.b.1@hotmail.fr>
+
+       * play/5x5.el (5x5-solve-rotate-left, 5x5-solve-rotate-right):
+       New functions.
+       (5x5-mode-map, 5x5-mode-menu): Bind them.
+       (5x5-draw-grid): Tweak the solver's rendering.
+
+2011-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * progmodes/compile.el (compilation-error-regexp-alist-alist): Rename
+       `caml' to `python-tracebacks-and-caml'; allow leading tabs (bug#8585).
+
+2011-06-21  Drew Adams <drew.adams@oracle.com>
+
+       * menu-bar.el: Use function variable instead of switch-to-buffer.
+       (menu-bar-select-buffer-function): New variable.
+       (menu-bar-update-buffers): Use it (bug#8876).
+
+2011-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/bytecomp.el (add-to-list): Add handler to check the
+       variable's status.
+
+2011-06-20  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * x-dnd.el (x-dnd-version-from-flags)
+       (x-dnd-more-than-3-from-flags): New functions that handle long-as-cons
+       and long as number (Bug#8899).
+       (x-dnd-handle-xdnd): Call functions above (Bug#8899).
+
+2011-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * minibuffer.el (completion-metadata): Add `metadata' to the alist.
+       (completion-try-completion, completion-all-completions): Compute the
+       metadata argument if it's missing; make it optional (bug#8795).
+
+       * wid-edit.el: Use lex-bind and move towards completion-at-point.
+       (widget-complete): Use new :completion-function property.
+       (widget-completions-at-point): New function.
+       (default): Use :completion-function instead of :complete.
+       (widget-default-completions): Rename from widget-default-complete;
+       Rewrite.
+       (widget-string-complete, widget-file-complete, widget-color-complete):
+       Remove functions.
+       (file, symbol, function, variable, coding-system, color):
+       * international/mule-cmds.el (default-input-method, charset)
+       (language-info-custom-alist):
+       * cus-edit.el (face): Use new property :completions.
+
+       * progmodes/pascal.el (pascal-completions-at-point): New function.
+       (pascal-mode): Use it.
+       (pascal-mode-map): Use completion-at-point.
+       (pascal-toggle-completions): Make obsolete.
+       (pascal-complete-word, pascal-show-completions):
+       * progmodes/octave-mod.el (octave-complete-symbol):
+       Redefine as obsolete alias.
+       * progmodes/octave-inf.el (inferior-octave-completion-at-point):
+       Signal absence of completion info for old Octave,
+       (inferior-octave-complete): Redefine as obsolete alias.
+       * progmodes/meta-mode.el: Use lexical-binding and completion-at-point.
+       (meta-completions-at-point): Rename from meta-complete-symbol and
+       adapt it for use on completion-at-point-functions.
+       (meta-common-mode): Use it.
+       (meta-looking-at-backward, meta-match-buffer): Remove.
+       (meta-complete-symbol): Redefine as obsolete alias.
+       (meta-common-mode-map): Use completion-at-point.
+       * progmodes/make-mode.el: Use lexical-binding and completion-at-point.
+       (makefile-mode-map): Use completion-at-point.
+       (makefile-completions-at-point): Rename from makefile-complete and
+       adapt it for use on completion-at-point-functions.
+       (makefile-mode): Use it.
+       (makefile-complete): Redefine as obsolete alias.
+
+2011-06-20  Deniz Dogan  <deniz@dogan.se>
+
+       * net/rcirc.el: Delete trailing whitespaces once and for all.
+
+2011-06-20  Daniel Colascione  <dan.colascione@gmail.com>
+
+       * emacs-lisp/syntax.el (syntax-ppss): Further improve docstring.
+
+2011-06-19  Chong Yidong  <cyd@stupidchicken.com>
+
+       * files.el (auto-mode-alist): Entry for m2-mode (Bug#8852).
+
+       * info.el (Info-apropos-toc-nodes): Minor doc fix (Bug#8833).
+
+2011-06-19  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (display-buffer-other-window-means-other-frame):
+       Call display-buffer-normalize-alist.
+       (display-buffer-normalize-specifiers-1): Rename to
+       display-buffer-normalize-argument.  New argument other-frame.
+       Rewrite.
+       (display-buffer-normalize-specifiers-2): Rename to
+       display-buffer-normalize-options.
+       (display-buffer-normalize-alist-1): New function.
+       (display-buffer-normalize-specifiers-3): Rename to
+       display-buffer-normalize-alist.
+       Call display-buffer-normalize-alist-1.
+       (display-buffer-normalize-options-inhibit): New variable.
+       (display-buffer-normalize-specifiers): Rewrite calling
+       display-buffer-normalize-alist,
+       display-buffer-normalize-argument, and
+       display-buffer-normalize-options.  Don't call the latter if
+       display-buffer-normalize-options-inhibit is non-nil.
+       (frame-auto-delete): New option.
+       (window-deletable-p): Use frame-auto-delete.
+       (window-list-no-nils, window-state-ignored-parameters)
+       (window-state-get-1, window-state-get, window-state-put-list)
+       (window-state-put-1, window-state-put-2, window-state-put):
+       New functions.
+       (display-buffer-normalize-options): Move special-display-p group
+       after pop-up-frame group (Bug#8851) and (Bug#8856).
+
 2011-06-18  Chong Yidong  <cyd@stupidchicken.com>
 
+       * emacs-lisp/rx.el (rx-constituents): Add support for numbered
+       groups (Bug#8776).
+       (rx-submatch-n): New function.
+       (rx): Document it.
+
+       * dired-x.el (dired-mark-unmarked-files): Fix interactive spec
+       (Bug#8768).
+
+       * replace.el (occur-mode-map): Set occur-edit-mode binding to "e".
+
+       * textmodes/fill.el (default-justification): Add :safe (Bug#8879).
+
        * cus-face.el (custom-declare-face): Call custom-theme-recalc face
        anytime existing face settings are present (Bug#8889).
 
 
 2011-06-18  Martin Rudalics  <rudalics@gmx.at>
 
-       * window.el (display-buffer-default-specifiers): Remove
-       pop-up-frame.  Add pop-up-window-min-height,
+       * window.el (display-buffer-default-specifiers):
+       Remove pop-up-frame.  Add pop-up-window-min-height,
        pop-up-window-min-width, and another reuse-window specifier
        (Bug#8882).  Reported by Dan Nicolaescu <dann@gnu.org>.
-       (display-buffer-normalize-specifiers-2): Handle
-       split-height-threshold and split-width-threshold also when
+       (display-buffer-normalize-specifiers-2):
+       Handle split-height-threshold and split-width-threshold also when
        pop-up-windows is unset.  Add a reuse-window specifier for the
        case popping up a new window fails.
        (special-display-popup-frame): Remove double quoting.
        (display-buffer-normalize-specifiers-2): Treat other-window case
        specially.
        (display-buffer-normalize-specifiers-3): New function.
-       (display-buffer-normalize-specifiers): Call
-       display-buffer-normalize-specifiers-3.
+       (display-buffer-normalize-specifiers):
+       Call display-buffer-normalize-specifiers-3.
 
 2011-06-17  Martin Rudalics  <rudalics@gmx.at>
 
 
 2011-06-16  Martin Rudalics  <rudalics@gmx.at>
 
-       * window.el (display-buffer-normalize-specifiers-1): Respect
-       current value of pop-up-frames for most reasonable values of
+       * window.el (display-buffer-normalize-specifiers-1):
+       Respect current value of pop-up-frames for most reasonable values of
        second argument of display-buffer (Bug#8865).
        (switch-to-buffer-same-frame, switch-to-buffer-other-window)
        (switch-to-buffer-other-window-same-frame)