* lisp/progmodes/ruby-mode.el (ruby-match-expression-expansion): Only
[bpt/emacs.git] / lisp / ChangeLog
index 3dd2b7b..1045823 100644 (file)
@@ -1,3 +1,402 @@
+2012-09-08  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-match-expression-expansion): Only
+       fail when reached LIMIT.
+
+2012-09-08  Chong Yidong  <cyd@gnu.org>
+
+       * dired.el (dired-mode-map): Don't bind M-=.
+
+       * dired-aux.el (dired-diff): Use backup file as default.
+
+2012-09-08  Drew Adams  <drew.adams@oracle.com>
+
+       * subr.el (add-to-history): Fix delete usage (Bug#12314).
+
+2012-09-08  Chong Yidong  <cyd@gnu.org>
+
+       * subr.el (syntax-after, syntax-class): Doc fix.
+
+2012-09-08  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (display-buffer-in-previous-window): New buffer
+       display action function.
+
+       * emacs-lisp/debug.el (debugger-bury-or-kill): New option.
+       (debugger-previous-window): New variable.
+       (debug): Rewrite using display-buffer-in-previous-window,
+       quit-restore-window and debugger-bury-or-kill.  (Bug#8789)
+
+2012-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/byte-run.el (defun): Tweak message.  Simplify code.
+
+2012-09-07  Matt McClure  <mlm@aya.yale.edu>  (tiny change)
+
+       * progmodes/python.el (python-shell-send-string):
+       When default-directory is remote, create temp file on remote
+       filesystem.
+       (python-shell-send-file): When file is remote, pass local view of
+       file paths to remote Python interpreter.  (Bug#12340)
+
+2012-09-07  Chong Yidong  <cyd@gnu.org>
+
+       * window.el (switch-to-buffer): Doc fix (Bug#12181).
+
+       * files.el (after-find-file): Don't fail on a read-only buffer if
+       require-final-newline is `visit' or `visit-save' (Bug#11156).
+
+       * subr.el (read-char-choice): Allow quitting via ESC ESC.
+
+       * userlock.el (ask-user-about-supersession-threat):
+       Use read-char-choice (Bug#12093).
+
+2012-09-07  Chong Yidong  <cyd@gnu.org>
+
+       * subr.el (buffer-narrowed-p): New function.
+
+       * ses.el (ses-widen):
+       * simple.el (count-words--buffer-message):
+       * net/browse-url.el (browse-url-of-buffer): Use it
+
+       * simple.el (count-words-region): Don't signal an error if there
+       is a non-nil prefix arg and the mark is not set.
+
+       * help.el (describe-key-briefly): Allow the message to be seen
+       when invoked from the minibuffer (Bug#7014).
+
+2012-09-07  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-end-of-defun)
+       (ruby-beginning-of-defun): Simplify, allow indentation before
+       block beginning and end keywords.
+       (ruby-beginning-of-defun): Only consider 3 keywords defun beginners.
+       (ruby-end-of-defun): Expect that the point is at the beginning of
+       the defun.
+
+2012-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cl-macs.el (cl--do-arglist): Understand _ on &key args
+       (bug#12367).
+       (cl--make-usage-args): Strip _ from argument names.
+
+2012-09-06  RĂ¼diger Sonderfeld  <ruediger@c-plusplus.de>
+
+       * progmodes/vhdl-mode.el (vhdl-speedbar-initialize): Don't use
+       obsolete alias speedbar-key-map.
+       (vhdl-doc-variable, vhdl-doc-mode): Use called-interactively-p.
+       (vhdl-index-menu-init): Don't use obsolete variable
+       font-lock-maximum-size.
+
+2012-09-06  Chong Yidong  <cyd@gnu.org>
+
+       * frame.el (window-system-version): Mark as obsolete.
+
+       * speedbar.el (speedbar-update-flag, speedbar-mode): Remove uses
+       of obsolete variable speedbar-key-map.
+
+2012-09-06  Juri Linkov  <juri@jurta.org>
+
+       * replace.el (replace-lax-whitespace): New defcustom.
+       (query-replace, query-replace-regexp, query-replace-regexp-eval)
+       (replace-string, replace-regexp): Mention it in docstrings.
+       (perform-replace, replace-highlight): Let-bind
+       isearch-lax-whitespace and isearch-regexp-lax-whitespace according
+       to the values of replace-lax-whitespace and regexp-flag.
+       Don't let-bind search-whitespace-regexp.  (Bug#10885)
+
+       * isearch.el (isearch-query-replace): Let-bind
+       replace-lax-whitespace instead of let-binding
+       replace-search-function and replace-re-search-function.
+       (isearch-lazy-highlight-search): Let-bind isearch-lax-whitespace
+       and isearch-regexp-lax-whitespace to lazy-highlight variables.
+       (isearch-toggle-symbol): Set isearch-regexp to nil
+       in isearch-word mode (like in isearch-toggle-word).
+
+2012-09-06  Juri Linkov  <juri@jurta.org>
+
+       * replace.el (replace-search-function)
+       (replace-re-search-function): Set default values to nil.
+       (perform-replace): Let-bind isearch-related variables based on
+       replace-related values, call `isearch-search-fun' and let-bind
+       the result to `search-function'.  Remove code that sets
+       `search-function' and `search-string' separately for
+       `delimited-flag'.
+       (replace-highlight): Add new argument `delimited-flag' and
+       rename other arguments to the names used in `perform-replace'.
+       Let-bind `isearch-word' to the argument `delimited-flag'.
+       (Bug#10885, bug#10887)
+
+2012-09-07  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-indent-beg-re): Add pieces from
+       ruby-beginning-of-indent, simplify, allow all keywords to have
+       indentation before them.
+       (ruby-beginning-of-indent): Adjust for above.  Search until the
+       found point is not inside a string or comment.
+       (ruby-font-lock-keywords): Allow symbols to start with "@"
+       character, give them higher priority than variables.
+       (ruby-syntax-propertize-function)
+       (ruby-font-lock-syntactic-keywords): Remove the "not comments"
+       matchers.  Expression expansions are not comments when inside a
+       string, and there comment syntax status is irrelevant.
+       (ruby-match-expression-expansion): New function.  Check that
+       expression expansion is inside a string, and it's not escaped.
+       (ruby-font-lock-keywords): Use it.
+
+2012-09-05  Martin Rudalics  <rudalics@gmx.at>
+
+       * help.el (temp-buffer-max-height): New default value.
+       (temp-buffer-resize-frames): New option.
+       (resize-temp-buffer-window): Optionally resize frame.
+
+       * window.el (fit-frame-to-buffer-bottom-margin): New option.
+       (fit-frame-to-buffer): New function.
+
+2012-09-05  Glenn Morris  <rgm@gnu.org>
+
+       * emulation/cua-rect.el (cua--init-rectangles):
+       * textmodes/picture.el (picture-mode-map):
+       * play/blackbox.el (blackbox-mode-map): Remap right-char and left-char
+       like forward-char and backward-char.  (Bug#12317)
+
+2012-09-05  Leo Liu  <sdl.web@gmail.com>
+
+       * progmodes/flymake.el (flymake-warning-re): New variable.
+       (flymake-parse-line): Use it.
+
+2012-09-05  Glenn Morris  <rgm@gnu.org>
+
+       * calendar/holidays.el (holiday-christian-holidays):
+       Rename an entry.  (Bug#12289)
+
+2012-09-05  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * progmodes/sh-script.el (sh-font-lock-paren): Don't burp at BOB
+       (bug#12222).
+
+2012-09-04  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * loadup.el: Load macroexp.  Remove hack.
+       * emacs-lisp/macroexp.el (macroexp--eval-if-compile): New function.
+       (macroexp--expand-all): Use it to get better warnings.
+       (macroexp--backtrace, macroexp--trim-backtrace-frame)
+       (internal-macroexpand-for-load): New functions.
+       (macroexp--pending-eager-loads): New var.
+       (emacs-startup-hook): New hack to replace one in loadup.el.
+       * emacs-lisp/cl-macs.el (cl--compiler-macro-list*)
+       (cl--compiler-macro-cXXr): Move to top, before they can be used.
+       (cl-psetf): Simplify.
+       (cl-defstruct): Add indent rule.
+
+2012-09-04  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * mail/smtpmail.el (smtpmail-send-it): Prefer the From: header
+       over `user-mail-address' for the SMTP MAIL FROM envelope.
+       (smtpmail-via-smtp): Ditto.
+
+2012-09-04  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el: Clean up keybindings.
+       (ruby-mode-map): Don't bind ruby-electric-brace,
+       ruby-beginning-of-defun, ruby-end-of-defun, ruby-mark-defun,
+       backward-kill-word, reindent-then-newline-and-indent.
+       (ruby-mark-defun): Remove.
+       (ruby-electric-brace): Remove.  Obsoleted by electric-indent-chars.
+       (ruby-mode): Set local beginning-of-defun-function and
+       end-of-defun-function values.
+
+2012-09-03  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (temp-buffer-window-setup-hook)
+       (temp-buffer-window-show-hook): New hooks.
+       (temp-buffer-window-setup, temp-buffer-window-show)
+       (with-temp-buffer-window): New functions.
+       (fit-window-to-buffer): Remove unused optional argument OVERRIDE.
+       (special-display-popup-frame): Make sure the window used shows BUFFER.
+
+       * help.el (temp-buffer-resize-mode): Fix doc-string.
+       (resize-temp-buffer-window): New optional argument WINDOW.
+
+       * files.el (recover-file, save-buffers-kill-emacs):
+       * dired.el (dired-mark-pop-up): Use with-temp-buffer-window.
+
+2012-09-02  Michael Albinus  <michael.albinus@gmx.de>
+
+       * eshell/em-unix.el (eshell/sudo): When we have an ad-hoc
+       remote definition of `default-directory', ensure we can connect.
+
+2012-09-02  Juri Linkov  <juri@jurta.org>
+
+       Toggle whitespace matching mode with M-s SPC.
+       http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00008.html
+
+       * isearch.el (search-whitespace-regexp): Doc fix.
+       Remove cons cell customization.
+       (isearch-mode-map): Bind "\M-s " to isearch-toggle-lax-whitespace.
+       (isearch-lax-whitespace, isearch-regexp-lax-whitespace):
+       New variables.
+       (isearch-forward, isearch-forward-regexp): Doc fix.
+       (isearch-toggle-lax-whitespace): New command.
+       (search-forward-lax-whitespace, search-backward-lax-whitespace)
+       (re-search-forward-lax-whitespace)
+       (re-search-backward-lax-whitespace): New functions.
+       (isearch-whitespace-regexp): Remove function.
+       (isearch-query-replace): Let-bind replace-search-function and
+       replace-re-search-function.
+       (isearch-occur): Let-bind search-spaces-regexp according to the
+       value of isearch-lax-whitespace and isearch-regexp-lax-whitespace.
+       (isearch-quote-char): Check isearch-regexp-lax-whitespace in the
+       condition for C-q SPC.
+       (isearch-search-fun-default): Use new functions mentioned above.
+       (isearch-search-forward, isearch-search-backward): Remove functions.
+       (isearch-search): Don't let-bind search-spaces-regexp.
+       (isearch-lazy-highlight-space-regexp): Remove variable.
+       (isearch-lazy-highlight-lax-whitespace)
+       (isearch-lazy-highlight-regexp-lax-whitespace): New variables.
+       (isearch-lazy-highlight-new-loop): Use them.
+       (isearch-lazy-highlight-search): Don't let-bind search-spaces-regexp.
+
+2012-09-02  Chong Yidong  <cyd@gnu.org>
+
+       * dired.el (dired-mode-map): Menu string fixes (Bug#11616).
+
+2012-09-02  Glenn Morris  <rgm@gnu.org>
+
+       * simple.el (undo): Tweak message in undo-only case.  (Bug#12283)
+
+2012-09-01  Glenn Morris  <rgm@gnu.org>
+
+       * term.el: Tidy up menu definitions.
+       (term-mode-map): Use easymenu for In/Out, Complete menus.
+       (term-pager-break-map): Initialize in the defvar.
+       (term-terminal-menu, term-signals-menu): Define with easymenu.
+       (term-terminal-menu): Also show it in line-mode.  (Bug#11957)
+       (term-pager-menu): New, extracted from term-process-pager.
+       (term-mode, term-char-mode, term-process-pager): Use easymenu-add.
+       (term-update-mode-line): Propertize line/char and page items.
+       (term-process-pager): Move keymap initialization elsewhere.
+
+2012-09-01  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (switch-to-prev-buffer): Handle additional values of
+       BURY-OR-KILL argument.  Don't switch in minibuffer window.
+       (switch-to-next-buffer): Don't switch in minibuffer window.
+       (quit-restore-window): New function based on quit-window.
+       Handle additional values of former KILL argument.
+       (quit-window): Call quit-restore-window with appropriate
+       interpretation of KILL argument.
+       (display-buffer-below-selected): New buffer display action
+       function.
+
+2012-09-01  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * minibuffer.el (completion-at-point-functions): Complete docstring
+       (bug#12254).
+
+2012-09-01  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Better seed support for (random).
+       * play/5x5.el, play/animate.el, play/cookie1.el, play/dissociate.el:
+       * play/doctor.el, play/dunnet.el, play/gomoku.el, play/landmark.el:
+       * play/mpuz.el, play/tetris.el, play/zone.el:
+       * calc/calc-comb.el (math-init-random-base):
+       * play/blackbox.el (bb-init-board):
+       * play/life.el (life):
+       * server.el (server-use-tcp):
+       * type-break.el (type-break):
+       Remove unnecessary call to (random t).
+       * net/sasl.el (sasl-unique-id-function):
+       Change (random t) to (random), now that the latter is more random.
+       * play/life.el (life-initialized): Remove no-longer-needed var.
+
+2012-08-31  Alp Aker  <alp.tekin.aker@gmail.com>
+
+       * window.el (switch-to-prev-buffer, switch-to-next-buffer):
+       Consider frame's buffer predicate when choosing the buffer.
+       (Bug#12081)
+
+2012-08-30  Richard Stallman  <rms@gnu.org>
+
+       * simple.el (special-mode-map): Delete binding for `z'.
+
+2012-08-30  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * progmodes/compile.el (compilation-always-kill): Doc fix.
+
+2012-08-30  Chong Yidong  <cyd@gnu.org>
+
+       * window.el (display-buffer-reuse-frames): Make the obsolescence
+       message more informative.
+
+2012-08-30  Glenn Morris  <rgm@gnu.org>
+
+       * paren.el (show-paren-delay):
+       Add a :set function.  Doc fix.  (Bug#12297)
+
+2012-08-29  Martin Blais  <blais@furius.ca>  (tiny change)
+
+       * progmodes/compile.el (compilation-always-kill): New var.
+       (compilation-start): Use it.
+
+2012-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * simple.el (read-only-mode): Move from files.el for bootstrapping.
+       * files.el (read-only-mode): Move to simple.el.
+
+       * files.el (read-only-mode): New minor mode.
+       (toggle-read-only): Use it and mark obsolete.
+       (find-file--read-only):
+       * vc/vc.el (vc-next-action, vc-checkout):
+       * vc/vc-cvs.el (vc-cvs-checkout):
+       * obsolete/vc-mcvs.el (vc-mcvs-update):
+       * ffap.el (ffap--toggle-read-only): Update callers.
+
+2012-08-29  Michael Albinus  <michael.albinus@gmx.de>
+
+       * eshell/esh-ext.el (eshell-external-command): Do not examine
+       remote shell scripts.
+       See <https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/1035790>.
+
+       * net/tramp-sh.el (tramp-remote-path): Add "/sbin" and
+       "/usr/local/sbin".
+
+2012-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cl-lib.el (buffer-string): Fix setter macro (bug#12293).
+
+2012-08-28  Leo Liu  <sdl.web@gmail.com>
+
+       * progmodes/sh-script.el (sh-dynamic-complete-functions): Adapt to
+       completion-at-point.  (Bug#12220)
+
+       * skeleton.el (skeleton-untabify): Change to nil (bug#12223).
+
+       * progmodes/sh-script.el (sh-indent-comment): Change to t (bug#12267).
+
+2012-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * files.el (safe-local-eval-forms): Fix before-save-hook entry to
+       be buffer-local; add delete-trailing-whitespace (bug#12259).
+
+2012-08-28  Jeremy Moore  <jmoore@ieee.org>  (tiny change)
+
+       * progmodes/hideif.el (hif-compress-define-list):
+       Fix typo.  (Bug#11951)
+
+2012-08-28  Dan Nicolaescu  <dann@gnu.org>
+
+       * progmodes/hideshow.el (hs-block-end-regexp): Restore lost
+       buffer local setting.
+
+       * net/rcirc.el (rcirc-split-message): Fix for buffer-local
+       rcirc-encode-coding-system.
+
+2012-08-28  Leo Liu  <sdl.web@gmail.com>
+
+       * net/rcirc.el (rcirc-split-message): New function.
+       (rcirc-send-message): Use it.  (Bug#12051)
+
 2012-08-28  Juri Linkov  <juri@jurta.org>
 
        * info.el (Info-fontify-node): Hide empty lines at the end of
 
 2012-08-26  Chong Yidong  <cyd@gnu.org>
 
-       * progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action): New
-       variable, replacing gdb-frame-parameters.
+       * progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action):
+       New variable, replacing gdb-frame-parameters.
        (gdb-frame-io-buffer, gdb-frame-breakpoints-buffer)
        (gdb-frame-threads-buffer, gdb-frame-memory-buffer)
        (gdb-frame-disassembly-buffer, gdb-frame-stack-buffer)
 
 2012-08-22  Martin Rudalics  <rudalics@gmx.at>
 
-       * window.el (walk-window-tree, window-with-parameter): New
-       optional argument MINIBUF to control whether these functions
+       * window.el (walk-window-tree, window-with-parameter):
+       New optional argument MINIBUF to control whether these functions
        should run on the minibuffer window.
        (window-at-side-list): Don't operate on minibuffer window.
        (window-in-direction): Simplify and rewrite doc-string.
-       (window--size-ignore): Rename to window--size-ignore-p.  Update
-       callers.
+       (window--size-ignore): Rename to window--size-ignore-p.
+       Update callers.
        (display-buffer-in-atom-window, window--major-non-side-window)
        (window--major-side-window, display-buffer-in-major-side-window)
-       (delete-side-window, display-buffer-in-side-window): New
-       functions.
+       (delete-side-window, display-buffer-in-side-window):
+       New functions.
        (window--side-check, window-deletable-p, delete-window)
        (delete-other-windows, split-window): Handle side windows and
        atomic windows appropriately.
        * window.el (window-point-1, set-window-point-1): Remove.
        (window-in-direction, record-window-buffer)
        (set-window-buffer-start-and-point, split-window-below)
-       (window--state-get-1, display-buffer-record-window): Replace
-       calls to window-point-1 and set-window-point-1 by calls to
+       (window--state-get-1, display-buffer-record-window):
+       Replace calls to window-point-1 and set-window-point-1 by calls to
        window-point and set-window-point respectively.
 
 2012-08-21  Glenn Morris  <rgm@gnu.org>
        (yank-excluded-properties): Add font-lock-face and category.
        (yank): Doc fix.
 
-       * subr.el (remove-yank-excluded-properties): Obey
-       yank-handled-properties.  The special handling of font-lock-face
+       * subr.el (remove-yank-excluded-properties):
+       Obey yank-handled-properties.  The special handling of font-lock-face
        and category is now done this way, instead of being hard-coded.
        (insert-for-yank-1): Remove font-lock-face handling.
        (yank-handle-font-lock-face-property)
 
 2012-08-17  Michael Albinus  <michael.albinus@gmx.de>
 
-       * net/tramp-sh.el (tramp-sh-handle-start-file-process): Eliminate
-       superfluous prompt.  (Bug#12203)
+       * net/tramp-sh.el (tramp-sh-handle-start-file-process):
+       Eliminate superfluous prompt.  (Bug#12203)
 
 2012-08-17  Chong Yidong  <cyd@gnu.org>
 
        (next-buffer, previous-buffer, split-window, balance-windows-2)
        (set-window-text-height, window-buffer-height)
        (fit-window-to-buffer, shrink-window-if-larger-than-buffer)
-       (truncated-partial-width-window-p): Minor code adjustments.  In
-       doc-strings state whether the argument window has to denote a
+       (truncated-partial-width-window-p): Minor code adjustments.
+       In doc-strings state whether the argument window has to denote a
        live, valid or any window.
 
 2012-08-16  Phil Sainty  <psainty@orcon.net.nz>  (tiny change)
        * files.el (hack-local-variables-filter): If an eval: form is not
        known to be safe, and enable-local-variables is :safe, then ignore
        the form totally, as is done for non-eval forms.  (Bug#12155)
+       This is CVE-2012-3479.
 
 2012-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>