Merge from mainline.
[bpt/emacs.git] / lisp / ChangeLog
index 76da6f6..713bfd1 100644 (file)
@@ -1,5 +1,377 @@
+2013-06-03  Tassilo Horn  <tsdh@gnu.org>
+
+       * eshell/em-term.el (cl-lib): Require `cl-lib'.
+
+2013-06-03  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/lisp.el: Use lexical-binding.
+       (lisp--local-variables-1, lisp--local-variables): New functions.
+       (lisp--local-variables-completion-table): New var.
+       (lisp-completion-at-point): Use it to provide completion of let-bound vars.
+
+       * emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros
+       eagerly (bug#14422).
+
+2013-06-03  Michael Albinus  <michael.albinus@gmx.de>
+
+       * autorevert.el (auto-revert-notify-enabled)
+       (auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
+       (auto-revert-notify-event-p, auto-revert-notify-event-file-name)
+       (auto-revert-notify-handler): Handle also gfilenotify.
+
+       * subr.el: (file-notify-handle-event): New defun. Replacing ...
+       (inotify-event-p, inotify-handle-event, w32notify-handle-event):
+       Removed.
+
+2013-06-03  Juri Linkov  <juri@jurta.org>
+
+       * bindings.el (search-map): Bind `highlight-symbol-at-point' to
+       `M-s h .'.  (Bug#14427)
+
+       * hi-lock.el (highlight-symbol-at-point): New alias for the new
+       command `hi-lock-face-symbol-at-point'.
+       (hi-lock-face-symbol-at-point): New command.
+       (hi-lock-map): Bind `highlight-symbol-at-point' to `C-x w .'.
+       (hi-lock-menu): Add `highlight-symbol-at-point'.
+       (hi-lock-mode): Doc fix.
+
+       * isearch.el (isearch-forward-symbol-at-point): New command.
+       (search-map): Bind `isearch-forward-symbol-at-point' to `M-s .'.
+       (isearch-highlight-regexp): Add a regexp which matches
+       words/symbols for word/symbol mode.
+
+       * subr.el (find-tag-default-bounds): New function with the body
+       mostly moved from `find-tag-default'.
+       (find-tag-default): Move most code to `find-tag-default-bounds',
+       call it and apply `buffer-substring-no-properties' afterwards.
+
+2013-06-03  Tassilo Horn  <tsdh@gnu.org>
+
+       * eshell/em-term.el (eshell-term-initialize): Use
+       `cl-intersection' rather than `intersection'.
+
+2013-06-02  Xue Fuqiao  <xfq.free@gmail.com>
+
+       * vc/log-view.el: Doc fix.
+       (log-view-mode-map): Copy keymap from `special-mode-map'.
+
+2013-06-02  Eric Ludlam <zappo@gnu.org>
+
+       * emacs-lisp/eieio.el (eieio--defalias, eieio-hook)
+       (eieio-error-unsupported-class-tags, eieio-skip-typecheck)
+       (eieio-optimize-primary-methods-flag, eieio-initializing-object)
+       (eieio-unbound, eieio-default-superclass)
+       (eieio--define-field-accessors, method-static, method-before)
+       (method-primary, method-after, method-num-lists)
+       (method-generic-before, method-generic-primary)
+       (method-generic-after, method-num-slots)
+       (eieio-specialized-key-to-generic-key)
+       (eieio--check-type, class-v, class-p)
+       (eieio-class-name, define-obsolete-function-alias)
+       (eieio-class-parents-fast, eieio-class-children-fast)
+       (same-class-fast-p, class-constructor, generic-p)
+       (generic-primary-only-p, generic-primary-only-one-p)
+       (class-option-assoc, class-option, eieio-object-p)
+       (class-abstract-p, class-method-invocation-order)
+       (eieio-defclass-autoload-map, eieio-defclass-autoload)
+       (eieio-class-un-autoload, eieio-defclass)
+       (eieio-eval-default-p, eieio-perform-slot-validation-for-default)
+       (eieio-add-new-slot, eieio-copy-parents-into-subclass)
+       (eieio--defgeneric-init-form, eieio-defgeneric-form)
+       (eieio-defgeneric-reset-generic-form)
+       (eieio-defgeneric-form-primary-only)
+       (eieio-defgeneric-reset-generic-form-primary-only)
+       (eieio-defgeneric-form-primary-only-one)
+       (eieio-defgeneric-reset-generic-form-primary-only-one)
+       (eieio-unbind-method-implementations)
+       (eieio--defmethod, eieio--typep)
+       (eieio-perform-slot-validation, eieio-validate-slot-value)
+       (eieio-validate-class-slot-value, eieio-barf-if-slot-unbound)
+       (eieio-oref, eieio-oref-default, eieio-default-eval-maybe)
+       (eieio-oset, eieio-oset-default, eieio-slot-originating-class-p)
+       (eieio-slot-name-index, eieio-class-slot-name-index)
+       (eieio-set-defaults, eieio-initarg-to-attribute)
+       (eieio-attribute-to-initarg, eieio-c3-candidate)
+       (eieio-c3-merge-lists, eieio-class-precedence-c3)
+       (eieio-class-precedence-dfs, eieio-class-precedence-bfs)
+       (eieio-class-precedence-list, eieio-generic-call-methodname)
+       (eieio-generic-call-arglst, eieio-generic-call-key)
+       (eieio-generic-call-next-method-list)
+       (eieio-pre-method-execution-functions, eieio-generic-call)
+       (eieio-generic-call-primary-only, eieiomt-method-list)
+       (eieiomt-optimizing-obarray, eieiomt-install)
+       (eieiomt-add, eieiomt-next, eieiomt-sym-optimize)
+       (eieio-generic-form, eieio-defmethod, make-obsolete)
+       (eieio-defgeneric, make-obsolete): Moved to eieio-core.el
+       (defclass): Remove `eval-and-compile' from macro.
+       (call-next-method, shared-initialize): Instead of using
+       `scoped-class' variable, use new eieio--scoped-class, and
+       eieio--with-scoped-class.
+       (initialize-instance): Rename local variable 'scoped-class' to
+       'this-class' to remove ambiguitity from old global.
+
+       * emacs-lisp/eieio-core.el: New file.  Derived from key parts of
+       eieio.el.
+       (eieio--scoped-class-stack): New variable
+       (eieio--scoped-class): New fcn
+       (eieio--with-scoped-class): New scoping macro.
+       (eieio-defclass): Use pushnew instead of add-to-list.
+       (eieio-defgeneric-form-primary-only-one, eieio-oset-default)
+       (eieio-slot-name-index, eieio-set-defaults, eieio-generic-call)
+       (eieio-generic-call-primary-only, eieiomt-add): Instead of using
+       `scoped-class' variable, use new eieio--scoped-class, and
+       eieio--with-scoped-class.
+
+       * emacs-lisp/eieio-base.el (cl-lib): Require during compile.
+
+2013-06-02  Tassilo Horn  <tsdh@gnu.org>
+
+       * eshell/esh-ext.el (eshell-external-command): Pass args to
+       `eshell-find-interpreter'.
+       (eshell-find-interpreter): Add new second parameter ARGS.
+
+       * eshell/em-script.el (eshell-script-initialize): Add second arg
+       to the function added as MATCH to `eshell-interpreter-alist'
+
+       * eshell/em-dirs.el (eshell-dirs-initialize): Add second arg to
+       the function added as MATCH to `eshell-interpreter-alist'
+
+       * eshell/em-term.el (eshell-visual-subcommands): New defcustom.
+       (eshell-visual-options): New defcustom.
+       (eshell-escape-control-x): Adapt docstring.
+       (eshell-term-initialize): Test `eshell-visual-subcommands' and
+       `eshell-visual-options' in addition to `eshell-visual-commands'.
+       (eshell-exec-visual): Pass args to `eshell-find-interpreter'.
+
+2013-06-01  Fabián Ezequiel Gallina  <fgallina@gnu.org>
+
+       * progmodes/python.el (python-indent-block-enders): Add break,
+       continue and raise keywords.
+
+2013-06-01  Glenn Morris  <rgm@gnu.org>
+
+       * pcmpl-gnu.el (pcomplete/tar): Check obsolete variable is bound.
+
+       Plain (f)boundp silences compilation warnings since Emacs 22.1.
+       * progmodes/cc-cmds.el (delete-forward-p):
+       * progmodes/cc-defs.el (buffer-syntactic-context-depth):
+       * progmodes/cc-engine.el (buffer-syntactic-context):
+       * progmodes/cc-fonts.el (face-property-instance):
+       * progmodes/cc-mode.el (set-keymap-parents):
+       * progmodes/cc-vars.el (get-char-table): No need for cc-bytecomp-defun.
+       * progmodes/cc-defs.el (c-set-region-active, c-beginning-of-defun-1)
+       * progmodes/cc-mode.el (c-make-inherited-keymap): Use plain fboundp.
+       * progmodes/cc-defs.el (zmacs-region-stays, zmacs-regions)
+       (lookup-syntax-properties): Remove unecessary cc-bytecomp-defvar.
+
+       * progmodes/cc-vars.el (other): Emacs has this widget since
+       at least 21.1, so don't (re)define it.
+
+       * eshell/em-cmpl.el (eshell-cmpl-initialize):
+       Replace the obsolete alias pcomplete-arg-quote-list.
+
+2013-06-01  Leo Liu  <sdl.web@gmail.com>
+
+       * progmodes/octave.el (octave-mode-syntax-table): Give `.'
+       punctuation syntax.
+       (inferior-octave-minimal-columns)
+       (inferior-octave-last-column-width): New variables.
+       (inferior-octave-track-window-width-change): New function.
+       (inferior-octave-mode): Adjust column width so that Octave output,
+       for example from 'ls', can fit into the window nicely.
+
+2013-05-31  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p):
+       Highlight expansions inside regexp literals.
+
+2013-05-31  Glenn Morris  <rgm@gnu.org>
+
+       * obsolete/sym-comp.el (symbol-complete):
+       Replace obsolete completion-annotate-function.
+
+       * progmodes/cc-vars.el (c-make-macro-with-semi-re): Silence compiler.
+
+2013-05-31  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p): New
+       function, checks if point is inside a literal that allows
+       expression expansion.
+       (ruby-syntax-propertize-expansion): Use it.
+       (ruby-syntax-propertize-function): Bind `case-fold-search' to nil
+       around the body.
+
+2013-05-30  Juri Linkov  <juri@jurta.org>
+
+       * isearch.el (isearch-mode-map): Bind `isearch-toggle-invisible'
+       to "\M-si".
+       (isearch-invisible): New variable.
+       (isearch-forward): Doc fix.
+       (isearch-mode): Set `isearch-invisible'
+       to the value of `search-invisible'.
+       (isearch-toggle-case-fold): Doc fix.
+       (isearch-toggle-invisible): New command.
+       (isearch-query-replace): Let-bind `search-invisible'
+       to the value of `isearch-invisible'.
+       (isearch-search): Use `isearch-invisible' instead of
+       `search-invisible'.  Let-bind `search-invisible'
+       to the value of `isearch-invisible'.  (Bug#11378)
+
+2013-05-30  Juri Linkov  <juri@jurta.org>
+
+       * replace.el (perform-replace): Avoid `isearch-range-invisible'
+       call when `query-flag' is nil and `search-invisible' is non-nil.
+       (Bug#11746)
+
+2013-05-30  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/gdb-mi.el (gdb-wait-for-pending): Fix typo.
+
+       * progmodes/cc-bytecomp.el (cc-bytecomp-noruntime-functions): New.
+       (cc-require): Suppress spurious "noruntime" warnings.
+       (cc-require-when-compile): Use fboundp, for sake of compiler.
+
+       * progmodes/cc-mode.el: Move load of cc-vars before that of
+       cc-langs (which in turn loads cc-vars), to quieten compiler.
+
+2013-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * paren.el: Simplify the code.
+       (show-paren-mode): Always start the timer.
+       (show-paren--idle-timer): Rename from show-paren-idle-timer.
+       (show-paren--overlay, show-paren--overlay-1): Rename from
+       show-paren-overlay and show-paren-overlay-1, and initialize to an
+       overlay rather than to nil.
+       (show-paren-function): Misc cleanup and simplifications.
+
+2013-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * paren.el (show-paren-data-function): New hook.
+       (show-paren--default): New function, extracted from show-paren-function.
+       (show-paren-function): Use show-paren-data-function.
+
+2013-05-30  Glenn Morris  <rgm@gnu.org>
+
+       * ielm.el (ielm-map, ielm-complete-symbol):
+       Use completion-at-point rather than obsolete functions.
+       (inferior-emacs-lisp-mode): Doc fix.
+       Set completion-at-point-functions, rather than
+       comint-dynamic-complete-functions.
+
+       * eshell/em-cmpl.el (eshell-complete-lisp-symbol): New function.
+       (eshell-cmpl-initialize, eshell-complete-parse-arguments):
+       Replace obsolete lisp-complete-symbol with eshell-complete-lisp-symbol.
+
+       * image.el (image-animated-p): Tweak definition.
+
+       * net/rlogin.el (rlogin-program, rlogin-explicit-args): Default to ssh.
+       (rlogin-process-connection-type): Tweak default.  Add set-after.
+       (rlogin-host): Doc fix.
+       (rlogin): Tweak prompt.
+       (rlogin-tab-or-complete): Use completion-at-point rather than alias.
+
+       * net/net-utils.el (nslookup-mode-map, ftp-mode-map):
+       * progmodes/tcl.el (inferior-tcl-mode-map):
+       Use completion-at-point rather than obsolete alias.
+
+       * emacs-lisp/eieio.el (eieio-eval-default-p): Move before use.
+
+       * minibuffer.el (read-file-name-completion-ignore-case):
+       Move before completion--in-region, for eager macro expansion.
+
+2013-05-29  Juri Linkov  <juri@jurta.org>
+
+       * replace.el (occur-engine): Rename `globalcount' to `global-lines'
+       for total count of matching lines.  Add `global-matches' for total
+       count of matches.  Rename `matches' to `lines' for count of
+       matching lines.  Add `matches' for count of matches.
+       Rename `lines' to `curr-line' for line count.  Rename `prev-lines'
+       to `prev-line' for line number of prev match endpt.
+       Increment `matches' for every match.  Print the number of
+       matching lines in the header.
+       (occur-context-lines): Rename `lines' to `curr-line'.
+       Rename `prev-lines' to `prev-line'.  (Bug#14017)
+
+2013-05-29  Juri Linkov  <juri@jurta.org>
+
+       * replace.el (perform-replace): Add `skip-read-only-count',
+       `skip-filtered-count', `skip-invisible-count' let-bound to 0.
+       Increment them for corresponding conditions and report the number
+       of skipped occurrences in the final message.  (Bug#11746)
+       (query-replace, query-replace-regexp, query-replace-regexp-eval)
+       (replace-string, replace-regexp): Doc fix.
+
+2013-05-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/trace.el (trace--read-args): Provide a default.
+
+       * emacs-lisp/lisp-mode.el (lisp-mode-shared-map): Inherit from
+       prog-mode-map.
+
+2013-05-29  Leo Liu  <sdl.web@gmail.com>
+
+       * progmodes/octave.el (octave-indent-comment): Tweak regexps.
+       (octave-help): Small simplification.
+
+       * emacs-lisp/smie.el (smie-highlight-matching-block): Always turn
+       off the highlight first.
+
+2013-05-29  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/idlwave.el (idlwave-concatenate-rinfo-lists):
+       Handle idlwave-last-system-routine-info-cons-cell being nil.
+
+       * progmodes/idlwave.el (idlwave-scan-user-lib-files)
+       (idlwave-write-paths): Simplify via with-temp-buffer.
+
+       * emulation/cua-gmrk.el: Also load cua-base, cua-rect at run time.
+       * emulation/cua-rect.el: Also load cua-base at run time.
+
+       * progmodes/cperl-mode.el (imenu-choose-buffer-index)
+       (file-of-tag, etags-snarf-tag, etags-goto-tag-location): Declare.
+       (cperl-imenu-on-info): Require imenu.
+
+2013-05-28  Alan Mackenzie  <acm@muc.de>
+
+       Handle "capitalised keywords" correctly.
+       * progmodes/cc-mode.el (c-after-change): Bind case-fold-search to nil.
+
+2013-05-28  Aidan Gauland  <aidalgol@amuri.net>
+
+       * eshell/em-unix.el: Added -r option to cp
+
 2013-05-28  Glenn Morris  <rgm@gnu.org>
 
+       * vc/vc-arch.el (vc-exec-after): Declare.
+       (vc-switches): Autoload.
+       * vc/vc-bzr.el: No need to require vc when compiling.
+       (vc-exec-after, vc-set-async-update, vc-default-dir-printer)
+       (vc-resynch-buffer, vc-dir-refresh): Declare.
+       (vc-setup-buffer, vc-switches): Autoload.
+       * vc/vc-cvs.el (vc-exec-after, vc-coding-system-for-diff)
+       (vc-resynch-buffer): Declare.
+       (vc-switches, vc-default-revert, vc-version-backup-file): Autoload.
+       * vc/vc-dir.el (desktop-missing-file-warning): Declare.
+       * vc/vc-git.el (vc-exec-after, vc-set-async-update)
+       (grep-read-regexp, grep-read-files, grep-expand-template)
+       (vc-dir-refresh): Declare.
+       (vc-setup-buffer, vc-switches, vc-resynch-buffer): Autoload.
+       * vc/vc-hg.el (vc-exec-after, vc-set-async-update): Declare.
+       (vc-setup-buffer, vc-switches, vc-do-async-command): Autoload.
+       * vc/vc-mtn.el (vc-exec-after): Declare.
+       (vc-switches): Autoload.
+       * vc/vc-rcs.el (vc-expand-dirs, vc-switches)
+       (vc-tag-precondition, vc-buffer-sync, vc-rename-master): Autoload.
+       (vc-file-tree-walk): Declare.
+       * vc/vc-sccs.el (vc-file-tree-walk): Declare.
+       (vc-expand-dirs, vc-switches, vc-setup-buffer, vc-delistify)
+       (vc-tag-precondition, vc-rename-master): Autoload.
+       * vc/vc-svn.el (vc-exec-after): Declare.
+       (vc-switches, vc-setup-buffer): Autoload.
+       * obsolete/vc-mcvs.el (vc-checkout, vc-switches, vc-default-revert):
+       Autoload.
+       (vc-resynch-buffer): Declare.
+
        * obsolete/fast-lock.el (byte-compile-warnings):
        Don't warn about obsolete features in this obsolete file.
 
 
        * emacs-lisp/syntax.el (syntax-propertize-multiline):
        Use `syntax-multiline' text property consistently instead of
-       `font-lock-multiline'. (bug#14237).
+       `font-lock-multiline'.  (Bug#14237)
 
 2013-04-26  Glenn Morris  <rgm@gnu.org>
 
 
 2013-04-21  Xue Fuqiao  <xfq.free@gmail.com>
 
-       * comint.el: (comint-dynamic-complete-functions, comint-mode-map):
+       * comint.el (comint-dynamic-complete-functions, comint-mode-map):
        `comint-dynamic-complete' is obsolete since 24.1, replaced by
        `completion-at-point'. (Bug#13774)
 
 2013-04-19 Masatake YAMATO  <yamato@redhat.com>
 
        * progmodes/sh-script.el (sh-imenu-generic-expression):
-       Handle function names with a single character.   (Bug#14111)
+       Handle function names with a single character.  (Bug#14111)
 
-2013-04-19  Dima Kogan  <dima@secretsauce.net>    (tiny change)
+2013-04-19  Dima Kogan  <dima@secretsauce.net>  (tiny change)
 
        * progmodes/gud.el (gud-perldb-marker-filter): Understand position info
        for subroutines defined in an eval (bug#14182).
 
 2013-04-03  Alan Mackenzie  <acm@muc.de>
 
-       Handle `parse-partial-sexp' landing inside a comment opener
-       (Bug#13244). Also adapt to the new values of element 7 of a parse
-       state.
+       Handle `parse-partial-sexp' landing inside a comment opener (Bug#13244).
+       Also adapt to the new values of element 7 of a parse state.
 
        * progmodes/cc-engine.el (c-state-pp-to-literal): New optional
        parameter `not-in-delimiter'.  Handle being inside comment opener.
 2013-03-08  Jambunathan K  <kjambunathan@gmail.com>
 
        * hi-lock.el (hi-lock-read-regexp-defaults-function): New var.
-       (hi-lock-read-regexp-defaults):  New defun.
+       (hi-lock-read-regexp-defaults): New defun.
        (hi-lock-line-face-buffer, hi-lock-face-buffer)
        (hi-lock-face-phrase-buffer): Propagate above change.
        Update docstring (bug#13892).