Derive some programming modes from prog-mode.
[bpt/emacs.git] / lisp / ChangeLog
index 4b2a175..b868daa 100644 (file)
@@ -1,5 +1,525 @@
+2011-06-15  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * progmodes/python.el (python-mode): Derive from prog-mode.
+       * progmodes/ps-mode.el (ps-mode):
+       * progmodes/mixal-mode.el (mixal-mode):
+       * progmodes/ld-script.el (ld-script-mode): Likewise.
+
+2011-06-15  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (display-buffer-alist): Trim default value to avoid
+       popping up a new frame (Bug#8857) or reusing an arbitrary window
+       on another frame.
+       (display-buffer): Do not fall back on popping up a new frame in
+       batch mode (Bug#8857).
+
+2011-06-14  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cus-theme.el (describe-theme-1): Use custom-theme-p.
+       (custom-theme-summary): New function.
+       (customize-themes): Use it.
+
+2011-06-13  Glenn Morris  <rgm@gnu.org>
+
+       * cus-dep.el (custom-make-dependencies): Use up command-line-args-left.
+
+2011-06-13  Martin Rudalics  <rudalics@gmx.at>
+
+       * help.el (help-window): Remove variable.
+       (help-window-point-marker, temp-buffer-max-height)
+       (temp-buffer-resize-mode, help-window-select): Rewrite doc-strings.
+       (help-print-return-message): Don't set help-window.
+       (resize-temp-buffer-window): Rewrite cod eand doc-string.
+       (help-window-setup-finish): Remove.
+       (help-window-display-message, help-window-setup)
+       (with-help-window): Major rewrite based on new
+       display-buffer-window variable.
+
+       * help-mode.el (help-mode-finish): Remove help-window related
+       code.
+
+       * view.el (view-exits-all-viewing-windows): Remove reference to
+       view-return-to-alist in doc-string.
+       (view-return-to-alist): Make obsolete.
+       (view-buffer): Call pop-to-buffer-same-window and remove
+       undo-window code.
+       (view-buffer-other-window): Call pop-to-buffer-other-window and
+       simplify code.  Ignore second argument.
+       (view-buffer-other-frame): Call pop-to-buffer-other-frame and
+       simplify code.  Ignore second argument.
+       (view-return-to-alist-update): Make obsolete.
+       (view-mode-enter): Rename second argument to QUIT-RESTORE.
+       Rewrite using quit-restore window parameters.
+       (view-mode-exit): Rename second argument to EXIT-ONLY.  Rewrite
+       using quit-restore-window.
+       (View-exit, View-exit-and-edit, View-leave, View-quit)
+       (View-quit-all, View-kill-and-leave): Call view-mode-exit with
+       appropriate arguments.
+       (view-end-message): Use quit-restore window parameter.
+
+       * window.el (display-buffer-function): Rewrite doc-string.
+       (display-buffer-window, display-buffer-alist): New variables.
+       (display-buffer-split-specifiers)
+       (display-buffer-side-specifiers)
+       (display-buffer-macro-specifiers): New constants.
+       (display-buffer-even-window-sizes, display-buffer-set-height)
+       (display-buffer-set-width, display-buffer-select-window)
+       (display-buffer-in-window, display-buffer-reuse-window)
+       (display-buffer-split-window-1, display-buffer-split-window)
+       (display-buffer-split-atom-window, display-buffer-pop-up-window)
+       (display-buffer-pop-up-frame, display-buffer-pop-up-side-window)
+       (display-buffer-in-side-window, normalize-buffer-to-display)
+       (display-buffer-normalize-specifiers-1)
+       (display-buffer-normalize-specifiers-2)
+       (display-buffer-normalize-specifiers, display-buffer-frame): New
+       functions.
+       (display-buffer): Major rewrite.
+       (display-buffer-other-window, display-buffer-other-frame)
+       (pop-to-buffer, switch-to-buffer-other-window)
+       (switch-to-buffer-other-frame): Rewrite.
+       (display-buffer-same-window, display-buffer-same-frame)
+       (display-buffer-same-frame-other-window)
+       (pop-to-buffer-same-window, pop-to-buffer-same-frame)
+       (pop-to-buffer-other-window)
+       (pop-to-buffer-same-frame-other-window)
+       (pop-to-buffer-other-frame, switch-to-buffer-same-frame)
+       (switch-to-buffer-other-window-same-frame): New functions.
+       (same-window-p, special-display-p): Rewrite disabling warnings.
+       Make obsolete.
+       (pop-up-frames, display-buffer-reuse-frames, pop-up-windows)
+       (display-buffer-mark-dedicated): Initialize to symbol 'unset.
+       Make obsolete
+       (same-window-buffer-names, same-window-regexps)
+       (special-display-frame-alist, special-display-popup-frame)
+       (special-display-function, special-display-buffer-names)
+       (special-display-regexps, pop-up-frame-alist)
+       (pop-up-frame-function, split-window-preferred-function)
+       (split-height-threshold, split-width-threshold)
+       (even-window-heights): Make obsolete.
+
+2011-06-12  Glenn Morris  <rgm@gnu.org>
+
+       * term/xterm.el (terminal-init-xterm): `version' may be nil.  (Bug#8838)
+       Misc simplifications.
+
+2011-06-12  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (window-safely-shrinkable-p): Restore function which
+       was inadvertently removed in change from 2011-06-11.  Declare as
+       obsolete.
+
+       * calendar/calendar.el (calendar-generate-window): Use
+       window-iso-combined-p instead of combination of one-window-p and
+       window-safely-shrinkable-p.
+
+2011-06-12  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/fortran.el (fortran-mode-syntax-table):
+       * progmodes/f90.el (f90-mode-syntax-table):
+       Set % to punctuation.  (Bug#8820)
+       (f90-find-tag-default): Remove, no longer needed.
+
+2011-06-12  Daniel Colascione  <dan.colascione@gmail.com>
+
+       * emacs-lisp/syntax.el (syntax-ppss): Clarify which items are invalid.
+
+2011-06-11  Chong Yidong  <cyd@stupidchicken.com>
+
+       * image.el (image-animated-p): Return animation delay in seconds.
+       Avoid bit manipulation in Lisp; use `delay' entry in the metadata.
+       (image-animate-timeout): Remove DELAY argument.  Don't assume
+       every subimage has the same delay; get it from image-animated-p.
+       (image-animate): Caller changed.
+
+2011-06-11  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-debug-message): Add `tramp-with-progress-reporter'
+       to ignored backtrace functions.
+
+2011-06-11  Glenn Morris  <rgm@gnu.org>
+
+       * calendar/appt.el (appt-disp-window-function): Doc fix.
+       (appt-check): Handle overlapping appointments.  (Bug#8337)
+
+2011-06-11  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (window-tree-1, window-tree): New functions, moving
+       the latter to window.el.
+       (bw-get-tree, bw-get-tree-1, bw-find-tree-sub)
+       (bw-find-tree-sub-1, bw-l, bw-t, bw-r, bw-b, bw-dir, bw-eqdir)
+       (bw-refresh-edges): Remove.
+       (balance-windows-1, balance-windows-2): New functions.
+       (balance-windows): Rewrite in terms of window tree functions,
+       balance-windows-1 and balance-windows-2.
+       (bw-adjust-window): Remove.
+       (balance-windows-area-adjust): New function with functionality of
+       bw-adjust-window but using resize-window.
+       (set-window-text-height): Rewrite doc-string.  Use
+       normalize-live-window and resize-window.
+       (enlarge-window-horizontally, shrink-window-horizontally): Rename
+       argument to DELTA.
+       (window-buffer-height): New function.
+       (fit-window-to-buffer, shrink-window-if-larger-than-buffer):
+       Rewrite using new window resize routines.
+       (kill-buffer-and-window, mouse-autoselect-window-select): Use
+       ignore-errors instead of condition-case.
+       (quit-window): Call delete-frame instead of delete-windows-on
+       for the only buffer on frame.
+
+2011-06-10  Martin Rudalics  <rudalics@gmx.at>
+
+       * loadup.el (top-level): Load window before files for the sake
+       of replace-buffer-in-windows.
+
+       * files.el (read-buffer-to-switch)
+       (switch-to-buffer-other-window)
+       (switch-to-buffer-other-frame, display-buffer-other-frame): Move
+       to window.el.
+
+       * simple.el (get-next-valid-buffer, last-buffer, next-buffer)
+       (previous-buffer): Move to window.el.
+
+       * bindings.el (unbury-buffer): Move to window.el.
+
+       * window.el (delete-other-windows-vertically): Move after
+       definition of delete-other-windows.
+       (other-window, delete-windows-on, replace-buffer-in-windows):
+       Move here from window.c.
+       (record-window-buffer, unrecord-window-buffer)
+       (set-window-buffer-start-and-point, switch-to-prev-buffer)
+       (switch-to-next-buffer): New functions.
+       (get-next-valid-buffer, last-buffer, next-buffer): Move here
+       from simple.el.  Call switch-to-next-buffer.
+       (previous-buffer): Move here from simple.el.  Call
+       switch-to-prev-buffer.
+       (bury-buffer): Move here from buffer.c.  Switch to previous
+       buffer when window cannot be deleted.
+       (unbury-buffer): Move here from bindings.el.
+       (ctl-x-map): Move binding for other-window from window.c to
+       here.
+       (read-buffer-to-switch, switch-to-buffer-other-window)
+       (switch-to-buffer-other-frame): Move here from files.el.
+       (normalize-buffer-to-switch-to): New functions.
+       (switch-to-buffer): Move here from buffer.c.  Use
+       read-buffer-to-switch and normalize-buffer-to-switch-to.
+
+2011-06-10  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (window-min-height, window-min-width): Move here
+       from window.c.  Add defcustoms and rewrite doc-strings.
+       (resize-mini-window, resize-window): New functions.
+       (adjust-window-trailing-edge, enlarge-window, shrink-window):
+       Move here from window.c.
+       (maximize-window, minimize-window): New functions.
+       (delete-window, delete-other-windows, split-window): Move here
+       from window.c.
+       (window-split-min-size): New function.
+       (split-window-keep-point): Mention split-window-above-each-other
+       instead of split-window-vertically.
+       (split-window-above-each-other, split-window-vertically): Rename
+       split-window-vertically to split-window-above-each-other and
+       provide defalias for old definition.
+       (split-window-side-by-side, split-window-horizontally): Rename
+       split-window-horizontally to split-window-side-by-side and provide
+       defalias for the old definition.
+       (ctl-x-map): Move bindings for delete-window,
+       delete-other-windows and enlarge-window here from window.c.
+       Replace bindings for split-window-vertically and
+       split-window-horizontally by bindings for
+       split-window-above-each-other and split-window-side-by-side.
+
+       * cus-start.el (all): Remove entries for window-min-height and
+       window-min-width.  Add entries for window-splits and
+       window-nest.
+
+2011-06-09  Glenn Morris  <rgm@gnu.org>
+
+       * calendar/appt.el (appt-mode-line): New function.
+       (appt-check, appt-disp-window): Use it.
+
+       * files.el (hack-one-local-variable-eval-safep):
+       Allow minor-modes with explicit +/-1 arguments.
+
+2011-06-09  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * term/xterm.el (xterm): Add defgroup.
+       (xterm-extra-capabilities): Add defcustom to supply known xterm
+       capabilities, skip querying them, or query them (default).
+       (terminal-init-xterm): Use it.
+       (terminal-init-xterm-modify-other-keys): New function to set up
+       modifyOtherKeys support to simplify `terminal-init-xterm'.
+
+2011-06-09  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (resize-window-reset, resize-window-reset-1)
+       (resize-subwindows-skip-p, resize-subwindows-normal)
+       (resize-subwindows, resize-other-windows, resize-this-window)
+       (resize-root-window, resize-root-window-vertically)
+       (window-deletable-p, window-or-subwindow-p)
+       (frame-root-window-p): New functions.
+
+2011-06-09  Glenn Morris  <rgm@gnu.org>
+
+       * net/ange-ftp.el (ange-ftp-switches-ok): New function.
+       (ange-ftp-get-files): Use it.
+
+2011-06-09  Alexander Klimov  <alserkli@inbox.ru>  (tiny change)
+
+       * mail/sendmail.el (mail-recover-1, mail-recover):
+       * files.el (recover-file, recover-session):
+       Handle dired-listing-switches not being just a single short option.
+
+2011-06-09  Glenn Morris  <rgm@gnu.org>
+
+       * calendar/appt.el (appt-display-message, appt-disp-window):
+       Handle lists of appointments.
+
+2011-06-08  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (one-window-p): Move down in code.  Rewrite
+       doc-string.
+       (window-current-scroll-bars): Rewrite doc-string.  Normalize
+       live window argument.
+       (walk-windows, get-window-with-predicate, count-windows):
+       Rewrite doc-string.  Use window-list-1.
+       (window-in-direction-2, window-in-direction, get-mru-window):
+       New functions.
+
+2011-06-08  Reuben Thomas <rrt@sc3d.org>
+
+       * progmodes/flymake.el (flymake-compilation-prevents-syntax-check):
+       Doc fix (Bug#8713).
+
+2011-06-08  Chong Yidong  <cyd@stupidchicken.com>
+
+       * repeat.el (repeat-on-final-keystroke): Fix type (Bug#8696).
+
+2011-06-08  Juanma Barranquero  <lekktu@gmail.com>
+
+       * loadhist.el (unload-feature-special-hooks):
+       Add `comint-output-filter-functions'.
+
+2011-06-08  Ivan Kanis  <gnu@kanis.fr>
+
+       * calendar/appt.el (appt-check): Move some initializations into the let.
+
+2011-06-08  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (window-height): Defalias to window-total-height.
+       (window-width): Defalias to window-body-width.
+
+2011-06-07  Chong Yidong  <cyd@stupidchicken.com>
+
+       * image-mode.el (image-toggle-animation): New command.
+       (image-mode-map): Bind it to RET.
+       (image-mode): Update message.
+       (image-toggle-display-image): Avoid a spurious cache flush.
+       (image-transform-rotation): Doc fix.
+       (image-transform-properties): Return quickly in the normal case.
+       (image-animate-loop): Rename from image-animate-max-time.
+
+       * image.el (image-animate-max-time): Moved to image-mode.el.
+       (create-animated-image): Remove unnecessary function.
+       (image-animate): Rename from image-animate-start.  New arg.
+       (image-animate-stop): Removed; just use image-animate-timer.
+       (image-animate-timer): Use car-safe.
+       (image-animate-timeout): Rename argument.
+
+2011-06-07  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (get-lru-window, get-largest-window): Move here from
+       window.c.  Rename first argument to ALL-FRAMES.  Rephrase
+       doc-strings.
+       (get-buffer-window-list): Rewrite using window-list-1.  Rephrase
+       doc-string.
+       (window-safe-min-height, window-safe-min-width): New constants.
+       (window-size-ignore, window-min-size, window-min-size-1)
+       (window-sizable, window-sizable-p, window-size-fixed-1)
+       (window-size-fixed-p, window-min-delta-1, window-min-delta)
+       (window-max-delta-1, window-max-delta, window-resizable)
+       (window-resizable-p, window-total-height, window-total-width)
+       (window-body-width): New functions.
+       (window-full-height-p, window-full-width-p): Rewrite using
+       window-total-size.
+       (window-body-height): Rewrite using window-body-size.
+
+2011-06-06  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (window-right, window-left, window-child)
+       (window-child-count, window-last-child, window-any-p)
+       (normalize-live-buffer, normalize-live-frame)
+       (normalize-any-window, normalize-live-window)
+       (window-iso-combination-p, window-iso-combined-p)
+       (window-iso-combinations)
+       (walk-window-tree-1, walk-window-tree, walk-window-subtree)
+       (windows-with-parameter, window-with-parameter)
+       (window-atom-root, make-window-atom, window-atom-check-1)
+       (window-atom-check, window-side-check, window-check): New
+       functions.
+       (ignore-window-parameters, window-sides, window-sides-vertical)
+       (window-sides-slots): New variables.
+       (window-size-fixed): Move down in code.  Minor doc-string fix.
+
+2011-06-05  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * comint.el (comint-dynamic-complete-as-filename)
+       (comint-dynamic-complete-filename): Correctly call
+       completion-in-region.
+
+2011-06-05  Deniz Dogan  <deniz@dogan.se>
+
+       * net/rcirc.el (rcirc-prompt-for-encryption): Fix bug introduced
+       in last change.
+
+2011-06-05  Deniz Dogan  <deniz@dogan.se>
+
+       * net/rcirc.el (rcirc-prompt-for-encryption): New function.
+       (rcirc): Use it to prompt for encryption.
+
+2011-06-05  Roland Winkler  <winkler@gnu.org>
+
+       * textmodes/bibtex.el (bibtex-search-buffer): New variable.
+       (bibtex-search-entries): New command bound to C-c C-a.
+       (bibtex-display-entries): New function.
+
+2011-06-05  Roland Winkler  <winkler@gnu.org>
+
+       * textmodes/bibtex.el (bibtex-generate-url-list): Fix docstring.
+       (bibtex-insert-kill): After yanking insert newline if necessary.
+       (bibtex-initialize): Call bibtex-string-files-init only once.
+       (bibtex-mode): Do not call easy-menu-add.
+       (bibtex-validate-globally): Use save-excursion in bibtex buffers.
+       (bibtex-yank): Set arg properly if nil.
+
+2011-06-05  Roland Winkler  <winkler@gnu.org>
+
+       * textmodes/bibtex.el (bibtex-search-entry-globally): New
+       variable.
+       (bibtex-search-entry): Use it.
+
+2011-06-05  Roland Winkler  <winkler@gnu.org>
+
+       * textmodes/bibtex.el (bibtex-entry-format): New option
+       sort-fields.
+       (bibtex-format-entry, bibtex-reformat): Honor this option.
+       (bibtex-parse-entry): Return fields in proper order.
+
+2011-06-05  Juanma Barranquero  <lekktu@gmail.com>
+
+       * doc-view.el (doc-view-remove-if): Move computation of result out
+       of `dolist' to silence misleading lexical-binding warning.
+
+2011-06-04  Chong Yidong  <cyd@stupidchicken.com>
+
+       * emacs-lisp/timer.el (timer-activate): Remove unused arg.
+       (timer-activate, timer-activate-when-idle): Doc fix (Bug#8793).
+
+2011-06-04  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-sh.el (tramp-find-shell): Apply workaround also for
+       "SunOS 5.10".
+
+2011-06-04  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-set-completion-function, tramp-parse-rhosts)
+       (tramp-parse-shosts, tramp-parse-sconfig, tramp-parse-shostkeys)
+       (tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc)
+       (tramp-parse-putty):
+       * net/tramp-sh.el (tramp-completion-function-alist-rsh)
+       (tramp-completion-function-alist-ssh)
+       (tramp-completion-function-alist-telnet)
+       (tramp-completion-function-alist-su)
+       (tramp-completion-function-alist-putty): Set `tramp-autoload'
+       cookie.
+
+       * net/tramp-ftp.el:
+       * net/tramp-sh.el:
+       * net/tramp-smb.el: Set `tramp-autoload' cookie, and eval after
+       load "tramp.el" `tramp-set-completion-function'.
+
+2011-06-04  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * shell.el: Require and use pcomplete.
+       (shell-dynamic-complete-functions): Add pcomplete-completions-at-point.
+       (shell-completion-vars): Set pcomplete-default-completion-function.
+
+2011-06-04  Deniz Dogan  <deniz@dogan.se>
+
+       * iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of
+       `memq' (Bug#8799).
+
+2011-06-02  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * subr.el (make-progress-reporter): Add "..." by default (bug#8785).
+
+2011-06-02  Juanma Barranquero  <lekktu@gmail.com>
+
+       * bs.el (bs--mark-unmark, bs--nth-wrapper):
+       * mpc.el (mpc-select-extend, mpc-songpointer-context):
+       * vc/log-view.el (log-view-beginning-of-defun):
+       * vc/smerge-mode.el (smerge-apply-resolution-patch)
+       (smerge-refine-forward, smerge-refine-chopup-region):
+       Silence warning for unused `dotimes' counter variables.
+
+2011-06-02  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * net/tramp.el (tramp-with-progress-reporter): Rename from
+       with-progress-reporter.  Use `declare'.
+       * net/tramp-smb.el:
+       * net/tramp-sh.el:
+       * net/tramp-gvfs.el: Update all uses.
+
+2011-06-02  Jay Belanger  <jay.p.belanger@gmail.com>
+
+       * calc/calc.el (calc-kill-stack-buffer): Make sure that the trail
+       buffer isn't killed before making it current.
+
 2011-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       Silence various byte-compiler warnings.
+       * emacs-lisp/byte-run.el (make-obsolete-variable): New argument
+       `access-type' and new obsolescence format.
+       * emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Adjust to
+       new format.
+       (byte-compile-check-variable): New `access-type' argument.
+       Only warn if the access-type is obsolete.
+       (byte-compile-dynamic-variable-bind, byte-compile-variable-ref)
+       (byte-compile-variable-set): Adjust callers.
+       * help-fns.el (describe-variable): Adjust to new obsolescence format.
+       * mail/sendmail.el (mail-mailer-swallows-blank-line): Only mark
+       setting it as obsolete.
+       * simple.el (minibuffer-completing-symbol):
+       * font-lock.el (font-lock-beginning-of-syntax-function): Only mark read
+       access as obsolete.
+       * minibuffer.el (minibuffer-completing-file-name): Don't make it
+       obsolete yet.
+       * international/quail.el (quail-mouse-choose-completion): Remove unused
+       code referring to obsolete var.
+       (quail-choose-completion-string): Remove.
+       * server.el (server-clients-with, server-kill-buffer-query-function)
+       (server-kill-emacs-query-function): Silence "unused `proc'" warnings.
+       * proced.el (proced-send-signal):
+       * emacs-lisp/lisp.el (lisp-complete-symbol):
+       Replace completion-annotate-function with completion-extra-properties.
+
+2011-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * simple.el (goto-line): Use read-number.
+       (overriding-map-is-bound): Remove.
+       (saved-overriding-map): Change default.
+       (save&set-overriding-map): Rename from ensure-overriding-map-is-bound;
+       Take the map as argument.
+       (universal-argument, negative-argument, digit-argument): Use it.
+       (restore-overriding-map): Adjust.
+       (do-auto-fill): Use fill-forward-paragraph.
+       (keyboard-quit): Don't signal an error when debug-on-quit is non-nil.
+
+       * minibuffer.el (minibuffer-inactive-mode-map): New var.
+       (minibuffer-inactive-mode): New major mode.
+       * mouse.el (mouse-drag-region): Remove the "mouse-1 pops up
+       the *Messages* buffer" hack.
+       (mouse-popup-menubar): Don't burp if the event is a normal key.
+
        Miscellaneous tweaks.
        * emacs-lisp/cl-macs.el (dolist, dotimes): Use the same strategy for
        lexical scoping as in subr.el's dolist and dotimes.