* lisp/emacs-lisp/package.el (package-activate-1): Don't let a missing
[bpt/emacs.git] / lisp / ChangeLog
index 8440647..d71087f 100644 (file)
@@ -1,3 +1,347 @@
+2013-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/package.el (package-activate-1): Don't let a missing
+       <pkg>-autoloads.el file stop us.
+
+       * net/tramp.el (with-parsed-tramp-file-name): Silence compiler
+       warnings, and factor out common code.
+
+2013-09-03  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-calculate-indent): Consider
+       two-character operators and whether the character preceding them
+       changes their meaning (Bug#15208).
+
+2013-09-02  Fabián Ezequiel Gallina  <fgallina@gnu.org>
+
+       Format code sent to Python shell for robustness.
+       * progmodes/python.el (python-shell-buffer-substring):
+       New function.
+       (python-shell-send-region, python-shell-send-buffer): Use it.
+
+2013-09-02  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-compat.el (tramp-compat-user-error): Move it ...
+       * net/tramp.el (tramp-user-error): ... here.
+       (tramp-find-method, tramp-check-proper-host)
+       (tramp-dissect-file-name, tramp-debug-message)
+       (tramp-handle-shell-command):
+       * net/tramp-adb.el (tramp-adb-handle-shell-command):
+       * net/tramp-gvfs.el (tramp-gvfs-file-name-handler): Adapt callees.
+
+       * net/tramp-cache.el (tramp-cache-print): Don't print text properties.
+
+2013-09-02  Martin Rudalics  <rudalics@gmx.at>
+
+       * avoid.el (mouse-avoidance-point-position)
+       (mouse-avoidance-too-close-p): Handle case where posn-at-point
+       returns nil.
+
+2013-09-02  Fabián Ezequiel Gallina  <fgallina@gnu.org>
+
+       * progmodes/python.el (python-shell-completion-get-completions):
+       Drop use of deleted `comint-last-prompt-overlay'.
+       (python-nav-if-name-main): New command.
+
+2013-09-01  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (setwins, setwins_almost, setwins_for_subdirs):
+       Avoid leading space in $wins.  Otherwise the sed command used by
+       eg compile-main ends up containing "/*.el".  (Bug#15170)
+
+       * frame.el (frame-background-mode): Doc fix.  (Bug#15226)
+
+2013-08-30  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp/bytecomp.el (byte-recompile-directory):
+       Fix is-this-a-directory logic.  (Bug#15220)
+
+2013-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * textmodes/css-mode.el: Use SMIE.
+       (css-smie-grammar): New var.
+       (css-smie--forward-token, css-smie--backward-token)
+       (css-smie-rules): New functions.
+       (css-mode): Use them.
+       (css-navigation-syntax-table): Remove var.
+       (css-backward-sexp, css-forward-sexp, css-indent-calculate-virtual)
+       (css-indent-calculate, css-indent-line): Remove functions.
+
+       Misc changes to reduce use of `(lambda...); and other cleanups.
+       * cus-edit.el: Use lexical-binding.
+       (customize-push-and-save, customize-apropos)
+       (custom-buffer-create-internal): Use closures.
+       * progmodes/bat-mode.el (bat-mode-syntax-table): "..." are strings.
+       * progmodes/ada-xref.el: Use setq.
+       * net/tramp.el (with-tramp-progress-reporter): Avoid setq.
+       * dframe.el: Use lexical-binding.
+       (dframe-frame-mode): Fix calling convention for hooks.  Use a closure.
+       * speedbar.el (speedbar-frame-mode): Adjust call accordingly.
+       * descr-text.el: Use lexical-binding.
+       (describe-text-widget, describe-text-sexp, describe-property-list):
+       Use closures.
+       * comint.el (comint-history-isearch-push-state): Use a closure.
+       * calculator.el: Use lexical-binding.
+       (calculator-number-to-string): Make it work with lexical-binding.
+       (calculator-funcall): Same and use cl-letf.
+
+       * emacs-lisp/lisp.el (lisp--company-doc-buffer)
+       (lisp--company-doc-string, lisp--company-location): New functions.
+       (lisp-completion-at-point): Use them to improve Company support.
+
+       * progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for formal
+       params of lambda expressions.
+       (ruby-smie--implicit-semi-p): Refine rule (bug#15208).
+       (ruby-smie--opening-pipe-p): New function.
+       (ruby-smie--forward-token, ruby-smie--backward-token): Handle Ruby
+       symbols and matched |...| for formal params.
+       (ruby-smie-rules): Don't let the formal params of a "do" prevent it
+       from being treated as hanging.  Handle "rescue".
+
+2013-08-29  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/cc-engine.el (c-pull-open-brace):
+       Move definition before use.
+
+2013-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cl-macs.el (cl-defsubst): Make it clear that args
+       are immutable.  Don't use `unsafe' any more.
+       (cl--defsubst-expand): Don't substitute at the same time as keeping
+       a residual unused let-binding.  Don't use `unsafe' any more.
+
+2013-08-29  Glenn Morris  <rgm@gnu.org>
+
+       * calendar/cal-china.el (calendar-chinese-year-cache):
+       Recenter on 2015.
+
+       * nxml/nxml-util.el (nxml-debug-clear-inside):
+       Use cl-loop rather than loop.
+
+       * net/eww.el (eww-mode-map): Lower-case menu bar entries look bad.
+
+       * progmodes/sh-script.el (sh-builtins) <bash>: Add some bash4-isms.
+
+2013-08-28  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/antlr-mode.el: No need to require cc-mode twice.
+
+       * progmodes/cc-bytecomp.el (cc-require): Handle uncompiled case.
+
+       * progmodes/cc-mode.el (c-define-abbrev-table): Handle NAME unbound.
+
+2013-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * simple.el (repeat-complex-command--called-interactively-skip):
+       New function.
+       (repeat-complex-command): Use it (bug#14136).
+
+       * progmodes/cc-mode.el: Minor cleanup of var declarations.
+       (c-define-abbrev-table): Add `doc' argument.
+       (c-mode-abbrev-table, c++-mode-abbrev-table)
+       (objc-mode-abbrev-table, java-mode-abbrev-table)
+       (idl-mode-abbrev-table, pike-mode-abbrev-table)
+       (awk-mode-abbrev-table): Use it.
+       (c-mode-syntax-table, c-mode-map, c++-mode-syntax-table)
+       (c++-mode-map, objc-mode-syntax-table, objc-mode-map)
+       (java-mode-syntax-table, java-mode-map, idl-mode-syntax-table)
+       (idl-mode-map, pike-mode-syntax-table, pike-mode-map, awk-mode-map):
+       Move initialization into the declaration; and remove any
+       autoload cookie.
+
+       * epg.el (epg--process-filter): Use with-current-buffer, save-excursion
+       and dynamic let binding.
+
+       * vc/smerge-mode.el: Remove redundant :group args.
+
+       * emacs-lisp/package.el (package-activate-1): Don't add unnecessarily
+       to load-path.
+
+2013-08-28  Juri Linkov  <juri@jurta.org>
+
+       * isearch.el (isearch-reread-key-sequence-naturally): Use non-nil
+       arg DONT-DOWNCASE-LAST of `read-key-sequence'.
+       (isearch-other-meta-char): Handle an undefined shifted printing
+       character by downshifting it.  (Bug#15200)
+
+2013-08-28  Juri Linkov  <juri@jurta.org>
+
+       * isearch.el (isearch-search): Change regexp error message for
+       non-regexp searches.  (Bug#15166)
+
+2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * Makefile.in (SHELL): Now @SHELL@, not /bin/sh,
+       for portability to hosts where /bin/sh has problems.
+
+2013-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cconv.el (cconv--analyse-function): Improve warning.
+
+2013-08-27  Juri Linkov  <juri@jurta.org>
+
+       * isearch.el (isearch-other-meta-char): Don't store kmacro commands
+       in the keyboard macro.  (Bug#15126)
+
+2013-08-27  Juri Linkov  <juri@jurta.org>
+
+       * isearch.el (isearch-quote-char): Comment out converting unibyte
+       to multibyte, thus syncing with its `quoted-insert' counterpart.
+       (Bug#15166)
+
+2013-08-27  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (display-buffer-use-some-window): Add missing
+       argument in call of get-largest-window (Bug#15185).
+       Reported by Stephen Leake.
+
+2013-08-27  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp/package.el (package-buffer-info): Fix message typo.
+
+2013-08-27  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * progmodes/python.el (python-font-lock-keywords): Don't return nil
+       from a matcher-function unless there's no more matches (bug#15161).
+
+2013-08-26  Michael Albinus  <michael.albinus@gmx.de>
+
+       * minibuffer.el: Revert change from 2013-08-20.
+
+       * net/tramp.el (tramp-find-method, tramp-find-user): Mark result
+       with text property `tramp-default', if appropriate.
+       (tramp-check-proper-host): New defun.
+       (tramp-dissect-file-name): Do not check hostname.  Revert change
+       of 2013-03-18.
+       (tramp-backtrace): Make VEC-OR-PROC optional.
+
+       * net/tramp-adb.el (tramp-adb-maybe-open-connection):
+       * net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
+       * net/tramp-sh.el (tramp-maybe-open-connection):
+       * net/tramp-smb.el (tramp-smb-maybe-open-connection):
+       Apply `tramp-check-proper-host'.
+
+2013-08-26  Tassilo Horn  <tsdh@gnu.org>
+
+       * epa-hook.el (epa-file-encrypt-to): Quote `safe-local-variable'
+       lambda expression in order to have `describe-variable' display it.
+
+2013-08-26  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime):
+       BUF can be optional.  (Bug#15186)
+
+2013-08-25  Xue Fuqiao  <xfq.free@gmail.com>
+
+       * progmodes/flymake.el (flymake-get-real-file-name-function):
+       Fix broken customization.  (Bug#15184)
+
+2013-08-25  Alan Mackenzie  <acm@muc.de>
+
+       Improve indentation of bracelists defined by macros (without "=").
+
+       * progmodes/cc-engine.el (c-inside-bracelist-p): When a macro
+       expansion begins with "{", regard it as bracelist when it doesn't
+       contain a ";".
+
+       Parse C++ inher-intro when there's a template split over 2 lines.
+
+       * progmodes/cc-engine.el (c-guess-basic-syntax CASE 5C): Code more
+       rigorously the search for "class" etc. followed by ":".
+
+       * progmodes/cc-langs.el (c-opt-<>-sexp-key): Make the value for
+       random languages a regexp which never matches rather than nil.
+
+       Handle "/"s more accurately in test for virtual semicolons (AWK Mode).
+
+       * progmodes/cc-awk.el (c-awk-one-line-possibly-open-string-re)
+       (c-awk-regexp-one-line-possibly-open-char-list-re)
+       (c-awk-one-line-possibly-open-regexp-re)
+       (c-awk-one-line-non-syn-ws*-re): Remove.
+       (c-awk-possibly-open-string-re, c-awk-non-/-syn-ws*-re)
+       (c-awk-space*-/-re, c-awk-space*-regexp-/-re)
+       (c-awk-space*-unclosed-regexp-/-re): New constants.
+       (c-awk-at-vsemi-p): Reformulate better to recognize "/"s which
+       aren't regexp delimiters.
+
+       * progmodes/cc-engine.el (c-crosses-statement-barrier-p): Add in
+       handling for a rare situation in AWK Mode involving unterminated
+       strings/regexps.
+
+2013-08-23  Glenn Morris  <rgm@gnu.org>
+
+       * files.el (auto-mode-alist): Use sh-mode for .bash_history.
+
+       * files.el (interpreter-mode-alist): Use tcl-mode for expect scripts.
+
+       * files.el (create-file-buffer): If the result would begin with
+       spaces, prepend a "|" instead of removing them.  (Bug#15162)
+
+2013-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * textmodes/fill.el (fill-match-adaptive-prefix): Don't throw away
+       text-properties (bug#15155).
+
+       * calc/calc-keypd.el (calc-keypad-execute): `x-flush-mouse-queue' doesn't
+       exist any more.
+       (calc-keypad-redraw): Remove unused var `pad'.
+       (calc-keypad-press): Remove unused var `menu'.
+
+2013-08-23  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (display-buffer-pop-up-frame):
+       Call pop-up-frame-function with BUFFER current so `make-frame' will
+       use it as the new frame's buffer (Bug#15133).
+
+2013-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * calendar/timeclock.el: Minor cleanups.
+       (timeclock-ask-before-exiting, timeclock-use-display-time):
+       Use `symbol'.
+       (timeclock-modeline-display): Define as alias before the
+       actual definition.
+       (timeclock-mode-line-display): Use define-minor-mode.
+       (timeclock-day-list-template): Make it a function, add an argument.
+       (timeclock-day-list-required, timeclock-day-list-length)
+       (timeclock-day-list-debt, timeclock-day-list-span)
+       (timeclock-day-list-break): Adjust calls accordingly.
+
+2013-08-21  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/pp.el (pp-eval-expression, pp-macroexpand-expression):
+       Use read--expression so that completion works again.
+
+2013-08-21  Sam Steingold  <sds@gnu.org>
+
+       Add rudimentary inferior shell interaction
+       * progmodes/sh-script.el (sh-shell-process): New buffer-local variable.
+       (sh-set-shell): Reset it.
+       (sh-show-shell, sh-cd-here, sh-send-line-or-region-and-step):
+       New commands (bound to C-c C-z, C-c C-d, and C-c C-n).
+
+2013-08-20  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * align.el: Use lexical-binding.
+       (align-region): Simplify accordingly.
+
+2013-08-20  Michael Albinus  <michael.albinus@gmx.de>
+
+       * minibuffer.el (completion--sifn-requote): Bind `non-essential'.
+
+       * rfn-eshadow.el (rfn-eshadow-update-overlay): Move binding of
+       `non-essential' up.
+
+2013-08-17  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el:
+       * net/tramp-adb.el:
+       * net/tramp-cmds.el:
+       * net/tramp-ftp.el:
+       * net/tramp-gvfs.el:
+       * net/tramp-gw.el:
+       * net/tramp-sh.el: Don't wrap external variable declarations by
+       `eval-when-compile'.
+
 2013-08-16  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * net/shr.el (shr-rescale-image): Use ImageMagick even for GIFs