Preserve tty top-frames under various window-changing operations.
[bpt/emacs.git] / lisp / ChangeLog
index 39f5f84..71326e1 100644 (file)
@@ -1,3 +1,422 @@
+2012-06-19  Chong Yidong  <cyd@gnu.org>
+
+       * subr.el (with-selected-window): Preserve the selected window's
+       terminal's top-frame (Bug#4702).
+
+       * window.el (save-selected-window): Likewise.
+
+2012-06-18  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * progmodes/python.el (python-rx-constituents): Move backquote.
+       (python-skeleton-define, python-define-auxiliary-skeleton):
+       Use `declare'.
+
+2012-06-18  Michael Albinus  <michael.albinus@gmx.de>
+
+       * minibuffer.el (read-file-name-default): Revert the patch from
+       2012-06-17.
+
+2012-06-18  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/pcase.el (pcase--expand): Warn for unused pattern.
+       (pcase--u1, pcase--q1): Don't use apply-partially.
+
+2012-06-18  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/python.el (python-proc, python-buffer)
+       (python-send-receive, python-send-string): Fix obsolete versions.
+
+2012-06-18  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (special-display-p): Completely remove stringp
+       check.  Suggested by Andreas Schwab <schwab@linux-m68k.org>.
+
+2012-06-17  Michael Albinus  <michael.albinus@gmx.de>
+
+       * minibuffer.el (read-file-name-default): Bind `non-essential' to `t'.
+
+       * net/tramp.el (tramp-file-name-handler): Catch 'non-essential.
+
+       * net/ange-ftp.el (ange-ftp-gwp-start, ange-ftp-start-process):
+       * net/tramp-sh.el (tramp-maybe-open-connection):
+       Throw if `non-essential' is non-nil.
+
+2012-06-17  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (special-display-p): Signal an error if BUFFER-NAME
+       is not a string (Bug#11713).
+
+2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * progmodes/python.el (python-info-beginning-of-backslash):
+       Rename from python-info-beginning-of-backlash, as a spelling fix.
+
+2012-06-17  Chong Yidong  <cyd@gnu.org>
+
+       * term.el (term-emulate-terminal): If term-check-size is called,
+       move point to the process mark without resetting point (Bug#4635).
+
+2012-06-17  Glenn Morris  <rgm@gnu.org>
+
+       * international/mule-cmds.el (mule-menu-keymap)
+       (set-language-environment, set-locale-environment): Doc tweaks.
+
+2012-06-16  Aurelien Aptel  <aurelien.aptel@gmail.com>
+
+       * cus-face.el (custom-face-attributes): Add wave-style underline
+       attribute.
+       * faces.el (set-face-attribute): Update docstring to describe
+       wave-style underline attribute.
+
+2012-06-16  Chong Yidong  <cyd@gnu.org>
+
+       * term/xterm.el (terminal-init-xterm): Discard input before
+       querying background mode (Bug#10959).
+
+2012-06-16  Stefan Merten  <smerten@oekonux.de>
+
+       * textmodes/rst.el: Added and corrected some comments.
+       (rst-re-alist-def): Improve symbol syntax.
+       (rst-mode-syntax-table): Correct syntax entries.
+       (rst-cvs-header, rst-svn-rev, rst-svn-timestamp)
+       (rst-official-version, rst-official-cvs-rev): Update version
+       information.
+
+2012-06-15  Juanma Barranquero  <lekktu@gmail.com>
+
+       * makefile.w32-in (COMPILE_FIRST): Synch with makefile.in changes
+       in 2008-06-22T13:57:28Z!monnier@iro.umontreal.ca.
+
+2012-06-15  Fabián Ezequiel Gallina  <fgallina@cuca>
+
+       * progmodes/python.el: New python.el merge.
+       (python-guess-indent): Obsolete var.
+       (python-indent-guess-indent-offset): New defcustom.
+       (python-indent): Obsolete var.
+       (python-indent-offset): New defcustom.
+       (python-python-command, python-jython-command): Delete var.
+       (python-shell-interpreter): New defcustom.
+       (python-pdbtrack-do-tracking-p): Delete var.
+       (python-pdbtrack-activate): New defcustom.
+       (python-use-skeletons): Obsolete var.
+       (python-skeleton-autoinsert): New defcustom.
+       (inferior-python-filter-regexp, python-continuation-offset)
+       (python-honour-comment-indentation, python-indent-string-contents)
+       (python-jython-packages, python-mode-hook)
+       (python-pdbtrack-minor-mode-string, python-remove-cwd-from-path)
+       (python-shell-prompt-alist)
+       (python-source-modes): Delete defcustoms.
+       (python-check-buffer-name, python-eldoc-setup-code)
+       (python-eldoc-string-code, python-ffap-setup-code)
+       (python-ffap-string-code, python-fill-comment-function)
+       (python-fill-decorator-function, python-fill-paren-function)
+       (python-fill-string-function, python-imenu-include-defun-type)
+       (python-imenu-make-tree, python-imenu-subtree-root-label)
+       (python-pdbtrack-stacktrace-info-regexp, python-shell-buffer-name)
+       (python-shell-compilation-regexp-alist)
+       (python-shell-completion-module-string-code)
+       (python-shell-completion-pdb-string-code)
+       (python-shell-completion-setup-code)
+       (python-shell-completion-string-code)
+       (python-shell-enable-font-lock, python-shell-exec-path)
+       (python-shell-extra-pythonpaths)
+       (python-shell-internal-buffer-name, python-shell-interpreter-args)
+       (python-shell-process-environment)
+       (python-shell-prompt-block-regexp)
+       (python-shell-prompt-output-regexp)
+       (python-shell-prompt-pdb-regexp, python-shell-prompt-regexp)
+       (python-shell-send-setup-max-wait, python-shell-setup-codes)
+       (python-shell-virtualenv-path): New defcustoms.
+       (brm-menu, eldoc-documentation-function, inferior-python-mode-map)
+       (inferior-python-mode-syntax-table, python--prompt-regexp)
+       (python-buffer, python-command python-python-command)
+       (python-default-template, python-imports, python-indent-index)
+       (python-indent-list, python-indent-list-length)
+       (python-mode-running, python-pdbtrack-is-tracking-p)
+       (python-preoutput-continuation, python-preoutput-leftover)
+       (python-preoutput-result, python-preoutput-skip-next-prompt)
+       (python-prev-dir/file, python-recursing)
+       (python-saved-check-command, python-version-checked)
+       (python-which-func-length-limit)
+       (view-return-to-alist): Delete vars.
+       (python-check-custom-command, python-dotty-syntax-table)
+       (python-imenu-index-alist, python-indent-current-level)
+       (python-indent-dedenters, python-indent-levels)
+       (python-nav-beginning-of-defun-regexp)
+       (python-nav-list-defun-positions-cache)
+       (python-pdbtrack-buffers-to-kill, python-pdbtrack-tracked-buffer)
+       (python-shell-internal-buffer)
+       (python-skeleton-available): New vars.
+       (def-python-skeleton): Delete macro.
+       (python-skeleton-define): New macro.
+       (python-define-auxiliary-skeleton, python-rx): New macros.
+       (python-insert-class): Delete command.
+       (python-skeleton-class): New command.
+       (python-insert-def): Delete command.
+       (python-skeleton-def): New command.
+       (python-insert-for): Delete command.
+       (python-skeleton-for): New command.
+       (python-insert-if): Delete command.
+       (python-skeleton-if): New command.
+       (python-insert-try/except, python-insert-try/finally): Delete commands.
+       (python-skeleton-try): New command.
+       (python-insert-while): Delete command.
+       (python-skeleton-while): New command.
+       (python-backspace): Delete command.
+       (python-indent-dedent-line-backspace): New command.
+       (python-electric-colon): Delete command.
+       (python-indent-electric-colon): New command.
+       (python-guess-indent): Delete command.
+       (python-indent-guess-indent-offset): New command.
+       (python-shift-left): Delete command.
+       (python-indent-shift-left): New command.
+       (python-shift-right): Delete command.
+       (python-indent-shift-right): New command.
+       (python-find-function): Delete command.
+       (python-nav-jump-to-defun): New command.
+       (python-next-statement): Delete command.
+       (python-nav-forward-sentence): New command.
+       (python-previous-statement): Delete command.
+       (python-nav-backward-sentence): New command.
+       (python-fill-paragraph): Delete command.
+       (python-fill-paragraph-function): New command.
+       (python-send-buffer): Delete command.
+       (python-shell-send-buffer): New command.
+       (python-send-defun): Delete command.
+       (python-shell-send-defun): New command.
+       (python-send-region, python-send-region-and-go): Delete commands.
+       (python-shell-send-region)
+       (python-shell-switch-to-shell): New commands.
+       (python-send-string): Delete command.
+       (python-shell-send-string): New command.
+       (python-switch-to-python): Delete command.
+       (python-shell-switch-to-shell): New command.
+       (python-describe-symbol): Delete command.
+       (python-eldoc-at-point): New command.
+       (python--set-prompt-regexp, python-args-to-list)
+       (python-after-info-look, python-check-version)
+       (python-check-comint-prompt, python-find-imports)
+       (python-execute-file, turn-off-pdbtrack, turn-on-pdbtrack)
+       (python-unload-function, python-expand-template)
+       (python-maybe-jython, python-preoutput-filter)
+       (python-pdbtrack-get-source-buffer)
+       (python-pdbtrack-grub-for-buffer, python-pdbtrack-overlay-arrow)
+       (python-pdbtrack-toggle-stack-tracking)
+       (python-pdbtrack-track-stack-file, python-initial-text)
+       (python-first-word, python-comment-line-p, python-send-command)
+       (python-setup-brm, python-sentinel, python-set-proc)
+       (python-skip-out, python-input-filter, python-outdent-p)
+       (python-outline-level, python-backslash-continuation-line-p)
+       (python-end-of-block, python-end-of-statement, python-mark-block)
+       (python-beginning-of-block, python-beginning-of-statement)
+       (python-blank-line-p, python-beginning-of-string)
+       (python-open-block-statement-p): Delete functions.
+       (python-indent-line, python-indent-line-1): Delete functions.
+       (python-indent-line): New function.
+       (python-indentation-levels): Delete function.
+       (python-indent-calculate-levels): New function.
+       (python-proc): Delete function.
+       (python-shell-get-process): New function.
+       (python-send-receive): Delete function.
+       (python-shell-send-string-no-output): New function.
+       (python-module-path): Delete function.
+       (python-ffap-module-path): New function.
+       (python-completion-at-point)
+       (python-symbol-completions): Delete functions.
+       (python-completion-complete-at-point): New function.
+       (python-load-file): Delete function.
+       (python-shell-send-file): New function.
+       (python-calculate-indentation): Delete function.
+       (python-indent-calculate-indentation): New function.
+       (python-skip-comments/blanks): Delete function.
+       (python-util-forward-comment): New function.
+       (python-continuation-line-p): Delete function.
+       (python-info-continuation-line-p): New function.
+       (python-which-func, python-current-defun): Delete function.
+       (python-info-current-defun): New function.
+       (python-beginning-of-defun): Delete function.
+       (python-nav-beginning-of-defun): New function.
+       (python-close-block-statement-p)
+       (python-block-end-p): Delete function.
+       (python-info-closing-block): New function.
+       (python-comint-output-filter-function)
+       (python-eldoc--get-doc-at-point, python-end-of-defun-function)
+       (python-fill-comment, python-fill-decorator, python-fill-paren)
+       (python-fill-string, python-imenu-make-element-tree)
+       (python-imenu-make-tree, python-imenu-tree-assoc)
+       (python-indent-context, python-indent-dedent-line)
+       (python-indent-line-function)
+       (python-indent-post-self-insert-function)
+       (python-indent-toggle-levels)
+       (python-info-assignment-continuation-line-p)
+       (python-info-beginning-of-backlash)
+       (python-info-block-continuation-line-p)
+       (python-info-closing-block-message)
+       (python-info-line-ends-backslash-p)
+       (python-info-looking-at-beginning-of-defun)
+       (python-info-ppss-context, python-info-ppss-context-type)
+       (python-nav-list-defun-positions, python-nav-read-defun)
+       (python-nav-sentence-end, python-nav-sentence-start)
+       (python-pdbtrack-comint-output-filter-function)
+       (python-pdbtrack-set-tracked-buffer)
+       (python-shell-calculate-exec-path)
+       (python-shell-calculate-process-environment)
+       (python-shell-completion--do-completion-at-point)
+       (python-shell-completion--get-completions)
+       (python-shell-completion-complete-at-point)
+       (python-shell-completion-complete-or-indent)
+       (python-shell-get-or-create-process)
+       (python-shell-get-process-name)
+       (python-shell-internal-get-or-create-process)
+       (python-shell-internal-get-process-name)
+       (python-shell-internal-send-string, python-shell-make-comint)
+       (python-shell-parse-command, python-shell-send-setup-code)
+       (python-skeleton-add-menu-items)
+       (python-util-clone-local-variables, python-util-position)
+       (run-python-internal, python-indentation-levels)
+       (python-nav-beginning-of-defun)
+       (python-completion-complete-at-point): New functions.
+       (run-python): Change arguments.  New API requirements.
+
+2012-06-15  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cl-lib.el (cl--defsubst-expand): Autoload inliner
+       (bug#11649).
+
+       * emacs-lisp/macroexp.el (macroexp--compiler-macro): New function.
+       (macroexp--expand-all): Use it.
+
+       * emacs-lisp/cl-macs.el (cl--transform-function-property): Remove.
+       (cl-define-setf-expander, cl-deftype, cl-define-compiler-macro):
+       Use `cl-function' instead.
+
+2012-06-14  Juanma Barranquero  <lekktu@gmail.com>
+
+       * makefile.w32-in (COMPILE_FIRST): Remove subr.el.
+       Suggested by Stefan Monnier while discussing bug#11657.
+
+2012-06-14  Sam Steingold  <sds@gnu.org>
+
+       * files.el (abort-if-file-too-large): Use `file-size-human-readable'.
+
+2012-06-14  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * play/doctor.el (doctor-doc): Remove parameter and use
+       doctor-sent instead of sent.
+       (doctor-read-print): Use doctor-sent instead of sent.  (Bug#11708)
+
+2012-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * files.el: Require cl-lib.
+       (file-name-non-special): Replace case -> cl-case.
+
+       * emacs-lisp/cl-macs.el (cl-defstruct): Don't add print-func.
+
+       * emacs-lisp/edebug.el (edebug-read-function): Remove old incorrect
+       mapping from #' to function*.
+
+2012-06-13  Chong Yidong  <cyd@gnu.org>
+
+       * mouse.el (mouse-drag-track): Do not set the mark if the user
+       releases the mouse without selecting anything (Bug#11588).
+
+2012-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB
+       as well (bug#11646).
+
+       * loadup.el: Count byte-code functions as well.
+
+       * emacs-lisp/byte-opt.el (featurep): Move compiler-macro...
+       * emacs-lisp/bytecomp.el (featurep): ...here (bug#11692).
+
+       * emacs-lisp/autoload.el (make-autoload): Accept nil doc-string-elt
+       (bug#11649).  Add cl-defun and cl-defmacro.
+
+2012-06-13  Drew Adams  <drew.adams@oracle.com>
+
+       * help-mode.el (help-bookmark-make-record, help-bookmark-jump):
+       Fix last change.
+
+2012-06-13  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/dbus.el (dbus-call-method): Use timeout for `read-event'.
+       Otherwise, it blocks in batch mode.
+
+2012-06-13  Juanma Barranquero  <lekktu@gmail.com>
+
+       * help-mode.el (bookmark-make-record-default): Declare.
+
+2012-06-13  Chong Yidong  <cyd@gnu.org>
+
+       * emacs-lisp/package.el (list-packages): Compute a list of
+       packages that are newly-available since the last list-packages
+       invocation.
+       (package-menu--new-package-list): New var.
+       (package-menu--generate, package-menu--print-info)
+       (package-menu--status-predicate, package-menu-mark-install):
+       Handle new status label "new".
+
+2012-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cl-macs.el (cl-remf): Fix error in recent
+       conversion to backquotes.
+
+2012-06-12  Chong Yidong  <cyd@gnu.org>
+
+       * emacs-lisp/edebug.el (edebug-inhibit-emacs-lisp-mode-bindings):
+       Rename from gud-inhibit-global-bindings.
+
+       * emacs-lisp/eieio.el (eieio-pre-method-execution-hooks): Doc fix.
+
+       * nxml/nxml-glyph.el (nxml-glyph-set-functions): Rename abnormal
+       hook from nxml-glyph-set-hook.
+
+       * progmodes/cwarn.el (cwarn-mode): Remove redundant variable
+       declaration.
+
+       * progmodes/pascal.el (pascal-toggle-completions): Doc fix.
+
+       * textmodes/bibtex.el (bibtex-string-file-path, bibtex-file-path):
+       Convert to defcustom.
+
+2012-06-12  Drew Adams  <drew.adams@oracle.com>
+
+       * help-mode.el (help-bookmark-make-record, help-bookmark-jump):
+       New functions.
+       (help-mode): Use them.
+
+2012-06-11  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/fortran.el (fortran-font-lock-keywords-3):
+       Use preprocessor face for directives.
+       (fortran-directive-re): Doc fix.
+
+2012-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cl-macs.el (cl-parse-loop-clause): Fix error in recent
+       conversion to backquotes (bug#11652).
+
+       Fix compiler-expansion of CL's cXXr functions (bug#11673).
+       * emacs-lisp/cl-lib.el (cl--defalias): New function.
+       (cl-values, cl-values-list, cl-copy-seq, cl-svref, cl-first)
+       (cl-second, cl-rest, cl-endp, cl-third, cl-fourth): Use it.
+       (cl-plusp, cl-minusp, cl-fifth, cl-sixth, cl-seventh, cl-eighth)
+       (cl-ninth, cl-tenth): Mark them as inlinable.
+       (cl-caaar, cl-caadr, cl-cadar, cl-caddr, cl-cdaar, cl-cdadr)
+       (cl-cddar, cl-cdddr, cl-caaaar, cl-caaadr, cl-caadar, cl-caaddr)
+       (cl-cadaar, cl-cadadr, cl-caddar, cl-cadddr, cl-cdaaar, cl-cdaadr)
+       (cl-cdadar, cl-cdaddr, cl-cddaar, cl-cddadr, cl-cdddar, cl-cddddr):
+       Add a compiler-macro declaration to use cl--compiler-macro-cXXr.
+       (cl-list*, cl-adjoin): Don't put an autoload manually.
+       * emacs-lisp/cl-macs.el (cl--compiler-macro-adjoin)
+       (cl--compiler-macro-list*): Add autoload cookie.
+       (cl--compiler-macro-cXXr): New function.
+
+       * help-fns.el (help-fns--compiler-macro): New function extracted from
+       describe-function-1; follow aliases and use `compiler-macro' property.
+       (describe-function-1): Use it.
+
 2012-06-11  Chong Yidong  <cyd@gnu.org>
 
        * startup.el (fancy-splash-head): Use splash.svg even if librsvg
        gid as real numbers.  They could run out of integer range on cygwin.
        (tramp-do-copy-or-rename-file-out-of-band): Better trace format.
        (tramp-sh-handle-expand-file-name): Handle hops.
-       (tramp-open-connection-setup-interactive-shell): Use
-       `tramp-cleanup'.  Move check for busyboxes ...
-       (tramp-find-shell): ... here.  Simplify implementation.  Set
-       "remote-shell" property also for alternative shells.
-       (tramp-remote-coding-commands): Check "test -c /dev/stdout".  If
-       failing, a regular file would be written otherwise.  Reported by
-       Dmitry Kurochkin <dmitry.kurochkin@gmail.com>.
+       (tramp-open-connection-setup-interactive-shell):
+       Use `tramp-cleanup'.  Move check for busyboxes ...
+       (tramp-find-shell): ... here.  Simplify implementation.
+       Set "remote-shell" property also for alternative shells.
+       (tramp-remote-coding-commands): Check "test -c /dev/stdout".
+       If failing, a regular file would be written otherwise.
+       Reported by Dmitry Kurochkin <dmitry.kurochkin@gmail.com>.
        (tramp-find-inline-encoding): Cache the coding commands in the
        process cache.  Apply test command on the remote side, if defined.
        (tramp-find-inline-compress): Cache the compress commands in the
        (tramp-compute-multi-hops): Save `tramp-default-proxies-alist'
        when requested.  Handle hops.
        (tramp-current-connection): New defvar.
-       (tramp-maybe-open-connection): Use `tramp-cleanup'.  Throw
-       `suppress', if there was a failed connection shortly before.
+       (tramp-maybe-open-connection): Use `tramp-cleanup'.
+       Throw `suppress', if there was a failed connection shortly before.
        Handle user interrupt.  (Bug#10187)
-       (tramp-get-inline-compress, tramp-get-inline-coding): Read
-       connection properties from the process cache.
+       (tramp-get-inline-compress, tramp-get-inline-coding):
+       Read connection properties from the process cache.
 
        * net/tramp-smb.el (tramp-smb-server-version)
-       (tramp-smb-wrong-passwd-regexp, tramp-smb-actions-with-tar): New
-       defconsts.
+       (tramp-smb-wrong-passwd-regexp, tramp-smb-actions-with-tar):
+       New defconsts.
        (tramp-smb-prompt): Extend for powershell prompt.
        (tramp-smb-file-name-handler-alist): Add handlers for
        `process-file', `shell-command' and `start-file-process'.
        Implement using "tar".  By this, time-stamps are preserved.
        (tramp-smb-handle-copy-file): Handle also the case of directories.
        (tramp-smb-do-file-attributes-with-stat)
-       (tramp-smb-get-file-entries, tramp-smb-get-cifs-capabilities): Use
-       `tramp-get-connection-buffer').
+       (tramp-smb-get-file-entries, tramp-smb-get-cifs-capabilities):
+       Use `tramp-get-connection-buffer').
        (tramp-smb-handle-rename-file): Use "rename", when source and
        target are on the same share.
-       (tramp-smb-maybe-open-connection): Handle wrong passwords.  Use
-       `tramp-smb-server-version'.
+       (tramp-smb-maybe-open-connection): Handle wrong passwords.
+       Use `tramp-smb-server-version'.
        (tramp-smb-wait-for-output): Remove prompt.
 
        * net/tramp.el (top): Require 'cl.
-       (tramp-methods, tramp-rsh-end-of-line): Remove
-       `tramp-password-end-of-line' from docstring.
+       (tramp-methods, tramp-rsh-end-of-line):
+       Remove `tramp-password-end-of-line' from docstring.
        (tramp-save-ad-hoc-proxies): New defcustom.
        (tramp-completion-function-alist): Adapt docstring.
        (tramp-default-password-end-of-line): Remove defcustom.
        `tramp-message-show-message' here, because this suppresses also
        error buffers.
        (tramp-error-with-buffer): Suppress buffer view, if
-       `tramp-message-show-message' is nil.  Use
-       `tramp-get-connection-buffer'.
+       `tramp-message-show-message' is nil.
+       Use `tramp-get-connection-buffer'.
        (tramp-cleanup): New defun.
        (tramp-rfn-eshadow-update-overlay): Let-bind `non-essential' to `t'.
        (tramp-file-name-handler): If `debug-on-error' is set, propagate
        (tramp-action-password): ... here.
        (tramp-mode-string-to-int, tramp-local-host-p)
        (tramp-make-tramp-temp-file, tramp-read-passwd)
-       (tramp-clear-passwd, tramp-time-less-p, tramp-time-diff): Set
-       tramp-autoload cookie.
+       (tramp-clear-passwd, tramp-time-less-p, tramp-time-diff):
+       Set tramp-autoload cookie.
 
        * net/trampver.el: Update release number.