* insdel.c: Fix minor problems found by static checking.
[bpt/emacs.git] / lisp / ChangeLog
index 6e1b8c1..988047c 100644 (file)
+2013-10-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * rect.el: Use lexical-binding.  Add new rectangular region support.
+       (rectangle-mark): New command.
+       (rectangle--region): New var.
+       (deactivate-mark-hook): Reset rectangle--region.
+       (rectangle--extract-region, rectangle--insert-for-yank)
+       (rectangle--highlight-for-redisplay)
+       (rectangle--unhighlight-for-redisplay): New functions.
+       (region-extract-function, redisplay-unhighlight-region-function)
+       (redisplay-highlight-region-function): Use them to handle
+       rectangular region.
+       * simple.el (region-extract-function): New var.
+       (delete-backward-char, delete-forward-char, deactivate-mark): Use it.
+       (kill-new, kill-append): Remove obsolete `yank-handler' argument.
+       (kill-region): Replace obsolete `yank-handler' arg with `region'.
+       (copy-region-as-kill, kill-ring-save): Add `region' argument.
+       (redisplay-unhighlight-region-function)
+       (redisplay-highlight-region-function): New vars.
+       (redisplay--update-region-highlight): New function.
+       (pre-redisplay-function): Use it.
+       (exchange-point-and-mark): Don't deactivate the mark before
+       reactivate-it anyway.
+       * comint.el (comint-kill-region): Remove yank-handler argument.
+       * delsel.el (delete-backward-char, backward-delete-char-untabify)
+       (delete-char): Remove property, since it's now part of their
+       default behavior.
+       (self-insert-iso): Remove property since this command doesn't exist.
+
+       * emacs-lisp/package.el (package--download-one-archive)
+       (describe-package-1): Don't query the user about final newline.
+
+2013-10-29  Daniel Colascione  <dancol@dancol.org>
+
+       * net/tramp.el (tramp-methods): Document new functionality.
+       * net/tramp-sh.el (tramp-compute-multi-hops): Punt to
+       tramp-hostname-checker if method provides one instead of scanning
+       argument list for "%h" to decide hostname acceptability.
+
+2013-10-28  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-sh.el (tramp-sh-handle-copy-directory):
+       * net/tramp-smb.el (tramp-smb-handle-copy-directory):
+       Handle COPY-CONTENTS.  (Bug#15737)
+
+2013-10-28  Daiki Ueno  <ueno@gnu.org>
+
+       * epa-file.el
+       (epa-file-cache-passphrase-for-symmetric-encryption):
+       Document that this option has no effect with GnuPG 2.0 (bug#15552).
+
+2013-10-27  Xue Fuqiao  <xfq.free@gmail.com>
+
+       * image.el (defimage):
+       (image-load-path): Doc fixes.
+
+2013-10-27  Alan Mackenzie  <acm@muc.de>
+
+       Indent statements in macros following "##" correctly.
+       * progmodes/cc-engine.el (c-crosses-statement-barrier-p):
+       Modify the "#" arm of a cond form to handle "#" and "##" operators.
+
+2013-10-27  Nathan Trapuzzano  <nbtrap@nbtrap.com>  (tiny change)
+
+       * linum.el (linum-update-window): Fix boundary test (bug#13446).
+
+2013-10-27  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-smie--bosp): Anything that goes
+       after `=' is probably a new expression.
+
+2013-10-27  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
+
+       * man.el (man-imenu-title): New option.
+       (Man-mode-map): Add menu.  (Bug#15722)
+       (Man-mode): Add imenu to menu.
+
+2013-10-26  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-smie--args-separator-p): Be more
+       specific in what the first arg can be: a non-keyword word,
+       string/regexp/percent literal opener, opening paren, or unary
+       operator followed directly by word.
+
+2013-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * progmodes/prolog.el: Remove old indent; use post-self-insert-hook.
+       (prolog-align-comments-flag, prolog-indent-mline-comments-flag)
+       (prolog-object-end-to-0-flag, prolog-electric-newline-flag)
+       (prolog-electric-tab-flag, prolog-use-prolog-tokenizer-flag):
+       Remove vars, they do not apply any more.
+       (prolog-mode-abbrev-table): Remove redundant declaration.
+       (prolog-upper-case-string, prolog-lower-case-string): Remove.
+       (prolog-use-smie): Remove.
+       (prolog-smie-rules): Add indentation rule for the if-then-else layout
+       supported by prolog-electric-if-then-else-flag.
+       (prolog-mode-variables, prolog-menu): Use setq-local.
+       (prolog-mode-keybindings-edit): Don't rebind M-C-p and M-C-n.
+       Remove binding to `Backspace' since this key doesn't exist anyway.
+       Remove bindings for electric self-inserting keys.
+       (prog-mode): Assume it's defined.
+       (prolog-post-self-insert): New function.
+       (prolog-mode): Use it.
+       (prolog-indent-line, prolog-indent-level)
+       (prolog-find-indent-of-matching-paren)
+       (prolog-indentation-level-of-line, prolog-goto-comment-column)
+       (prolog-paren-is-the-first-on-line-p, prolog-region-paren-balance)
+       (prolog-goto-next-paren, prolog-in-string-or-comment)
+       (prolog-tokenize, prolog-inside-mline-comment)
+       (prolog-find-start-of-mline-comment): Remove functions.
+       (prolog-find-unmatched-paren, prolog-clause-end)
+       (prolog-guess-fill-prefix, prolog-get-predspec): Use syntax-ppss.
+       (prolog-electric--if-then-else): Rename from
+       prolog-insert-spaces-after-paren; use prolog-electric-if-then-else-flag.
+       (prolog-tokenize-searchkey): Remove const.
+       (prolog-clause-info): Use forward-sexp.
+       (prolog-forward-list, prolog-backward-list, prolog-electric-delete)
+       (prolog-electric-if-then-else): Remove commands.
+       (prolog-electric--colon): Rename from prolog-electric-colon; adapt it
+       for use in post-self-insert-hook.
+       (prolog-electric--dash): Rename from prolog-electric-dash; adapt it
+       for use in post-self-insert-hook.
+       (prolog-electric--dot): Rename from prolog-electric-dot; adapt it
+       for use in post-self-insert-hook.
+       (prolog-electric--underscore): Rename from prolog-electric--underscore;
+       adapt it for use in post-self-insert-hook.
+
+2013-10-25  Michael Albinus  <michael.albinus@gmx.de>
+
+       * emacs-lisp/ert.el (ert-run-tests-interactively):
+       Use `completing-read'.  (Bug#9756)
+
+2013-10-25  Eli Zaretskii  <eliz@gnu.org>
+
+       * simple.el (line-move): Call line-move-1 instead of
+       line-move-visual when the current window hscroll is zero, but
+       temporary-goal-column indicates we will need to hscroll as result
+       of the movement.  (Bug#15712)
+
+2013-10-25  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-mode-menu): Use proper
+       capitalization.  Use :visible instead of :active.
+       Fix `ruby-indent-exp' reference.  Add menu items for the generic
+       commands that are used with SMIE.
+       (ruby-do-end-to-brace): Insert space after `{'.
+
+2013-10-25  John Anthony  <john@jo.hnanthony.com>
+
+       * progmodes/ruby-mode.el (ruby-mode-menu): Add a menu.  (Bug#15600)
+
+       * progmodes/inf-lisp.el (inferior-lisp-menu): Add a menu.  (Bug#15599)
+
+2013-10-25  Glenn Morris  <rgm@gnu.org>
+
+       * vc/vc.el (vc-print-log): Don't use a working revision unless
+       one was explicitly specified.  (Bug#15322)
+
+2013-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * subr.el (add-to-list): Preserve return value in compiler-macro
+       (bug#15692).
+
+2013-10-25  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
+
+       * progmodes/octave.el (octave-lookfor): Handle empty lookfor
+       result.  Ask user to retry using '-all' flag.  (Bug#15701)
+
+2013-10-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/smie.el: New smie-config system.
+       (smie-config): New defcustom.
+       (smie-edebug, smie-config-show-indent, smie-config-set-indent)
+       (smie-config-guess, smie-config-save): New commands.
+       (smie-config--mode-local, smie-config--buffer-local)
+       (smie-config--trace, smie-config--modefuns): New vars.
+       (smie-config--advice, smie-config--mode-hook)
+       (smie-config--setter, smie-config-local, smie-config--get-trace)
+       (smie-config--guess-value, smie-config--guess): New functions.
+       (smie-indent-forward-token, smie-indent-backward-token): Don't copy
+       text properties.  Treat "string fence" syntax like string syntax.
+
+       * progmodes/sh-script.el (sh-use-smie): Change default.
+       (sh-smie-sh-rules, sh-smie-rc-rules): Obey legacy sh-indent-* vars.
+       (sh-var-value): Simplify by CSE.
+       (sh-show-indent, sh-set-indent, sh-learn-line-indent)
+       (sh-learn-buffer-indent): Redirect to their SMIE equivalent when SMIE
+       is used.
+       (sh-guess-basic-offset): Use cl-incf.
+       (sh-guess-basic-offset): Use push+nreverse to avoid O(n^2).
+
+2013-10-24  Helmut Eller  <eller.helmut@gmail.com>
+
+       * emacs-lisp/lisp-mode.el (lisp-cl-font-lock-keywords-2): Fix cut&paste
+       (bug#15699).
+
+2013-10-24  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (abs_top_srcdir): Remove.
+       (update-subdirs): Use relative path to update-subdirs.
+
+2013-10-24  Eli Zaretskii  <eliz@gnu.org>
+
+       * Makefile.in ($(MH_E_DIR)/mh-loaddefs.el)
+       ($(TRAMP_DIR)/tramp-loaddefs.el, $(CAL_DIR)/cal-loaddefs.el)
+       ($(CAL_DIR)/diary-loaddefs.el, $(CAL_DIR)/hol-loaddefs.el):
+       Call unmsys--file-name before expand-file-name, not after it.
+
+2013-10-24  Michael Albinus  <michael.albinus@gmx.de>
+
+       * emacs-lisp/ert.el (ert-deftest): Bind macro `skip-unless'.
+       (ert-test-skipped): New error.
+       (ert-skip, ert-stats-skipped): New defuns.
+       (ert--skip-unless): New macro.
+       (ert-test-skipped): New struct.
+       (ert--run-test-debugger, ert-test-result-type-p)
+       (ert-test-result-expected-p, ert--stats, ert-stats-completed)
+       (ert--stats-set-test-and-result, ert-char-for-test-result)
+       (ert-string-for-test-result, ert-run-tests-batch)
+       (ert--results-update-ewoc-hf, ert-run-tests-interactively):
+       Handle skipped tests.  (Bug#9803)
+
+2013-10-24  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (check-declare): Remove unnecessary path in -l argument.
+
+       * Makefile.in (abs_top_srcdir): New, set by configure.
+       (update-subdirs): Correct build-aux location.
+
+2013-10-24  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * vc/vc.el (vc-print-root-log): Always set `default-directory'
+       value, whether we could auto-deduce `backend', or not.
+
+       * progmodes/ruby-mode.el (ruby-smie-rules): Fix the "curly block
+       with parameters" example.  Simplify the "is it block or is it
+       hash" check, but also make it more thorough.
+
+2013-10-23  Masashi Fujimoto  <masfj.dev@gmail.com>  (tiny change)
+
+       * battery.el (battery-pmset): Handle OS X Mavericks.  (Bug#15694)
+
+2013-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * progmodes/ruby-mode.el (ruby-smie-rules): Only align with parent of
+       { if it is hanging.
+
+       * progmodes/ruby-mode.el (ruby-smie-rules): Don't return 0 for
+       :before ";".
+
+2013-10-23  Jed Brown  <jed@59A2.org>  (tiny change)
+
+       * progmodes/compile.el (compilation-directory-matcher)
+       (compilation-page-delimiter):
+       Support GNU Make-4.0 directory quoting.  (Bug#15678)
+
+2013-10-23  Leo Liu  <sdl.web@gmail.com>
+
+       * ido.el (ido-tidy): Handle read-only text.
+
+2013-10-23  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (abs_srcdir, abs_lisp): New, set by configure.
+       (emacs, compile, compile-always):
+       Quote entities that might contain whitespace.
+       (custom-deps, finder-data, autoloads): Use abs_lisp.
+       ($(MH_E_DIR)/mh-loaddefs.el, $(TRAMP_DIR)/tramp-loaddefs.el)
+       ($(CAL_DIR)/cal-loaddefs.el, $(CAL_DIR)/diary-loaddefs.el)
+       ($(CAL_DIR)/hol-loaddefs.el): Manually expand target file name.
+
+2013-10-23  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-smie--at-dot-call):
+       Use `following-char'.
+
+2013-10-22  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/smie.el (smie-rule-parent): Fix opener-test.
+       * progmodes/ruby-mode.el (ruby-smie-rules):
+       Remove corresponding workaround.  Fix indentation rule of ";" so it
+       also applies when ";" is the parent.
+
 2013-10-22  Xue Fuqiao  <xfq.free@gmail.com>
 
        * frame.el (display-screens, display-pixel-height)
        (display-pixel-width, display-mm-width, display-backing-store)
        (display-save-under, display-planes, display-color-cells)
-       (display-visual-class, display-monitor-attributes-list): Mention
-       the optional ‘display’ argument in doc strings.
+       (display-visual-class, display-monitor-attributes-list):
+       Mention the optional ‘display’ argument in doc strings.
 
 2013-10-22  Michael Gauland  <mikelygee@amuri.net>
 
        * textmodes/text-mode.el (text-mode-map):
        Use auto-fill help text from menu-bar.el.
 
-2013-10-10  John Anthony  <john@jo.hnanthony.com>  (tiny change)
+2013-10-10  John Anthony  <john@jo.hnanthony.com>
 
        * textmodes/text-mode.el (text-mode-map): Add a menu.  (Bug#15562)