* lisp/pcmpl-gnu.el (pcomplete/tar): Check obsolete variable is bound.
[bpt/emacs.git] / lisp / ChangeLog
index c863506..269deb8 100644 (file)
@@ -1,5 +1,451 @@
+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.
+
+       * progmodes/cc-vars.el (c-macro-names-with-semicolon):
+       Move definition before use.
+
+       * play/dunnet.el (byte-compile-warnings): Don't disable them all.
+       (dun-unix-verbs): Remove dun-zippy.
+       (dun-zippy): Remove function.
+
+       * emacs-lisp/bytecomp.el (byte-compile-warnings): Doc fix.
+
+2013-05-27  Juri Linkov  <juri@jurta.org>
+
+       * replace.el (replace-search): New function with code moved out
+       from `perform-replace'.
+       (replace-highlight, replace-dehighlight): Move function definitions
+       up closer to `replace-search'.  (Bug#11746)
+
+2013-05-27  Juri Linkov  <juri@jurta.org>
+
+       * replace.el (perform-replace): Ignore invisible matches.
+       In addition to checking `query-replace-skip-read-only', also
+       filter out matches by calling `run-hook-with-args-until-failure'
+       on `isearch-filter-predicates', and also check `search-invisible'
+       for t or call `isearch-range-invisible'.
+       (replace-dehighlight): Call `isearch-clean-overlays'.  (Bug#11746)
+
+2013-05-27  Juri Linkov  <juri@jurta.org>
+
+       * isearch.el (isearch-filter-predicates): Rename from
+       `isearch-filter-predicate'.  Doc fix.  (Bug#11378)
+       (isearch-message-prefix): Display text from the property
+       `isearch-message-prefix' of the currently active filters.
+       (isearch-search): Don't compare `isearch-filter-predicate' with
+       `isearch-filter-visible'.  Call `run-hook-with-args-until-failure'
+       on `isearch-filter-predicates'.  Also check `search-invisible' for t
+       or call `isearch-range-invisible'.
+       (isearch-filter-visible): Make obsolete.
+       (isearch-lazy-highlight-search):
+       Call `run-hook-with-args-until-failure' on
+       `isearch-filter-predicates' and use `isearch-range-invisible'.
+
+       * info.el (Info-search): Call `run-hook-with-args-until-failure' on
+       `isearch-filter-predicates' instead of `funcall'ing
+       `isearch-filter-predicate'.
+       (Info-mode): Set `Info-isearch-filter' to
+       `isearch-filter-predicates' instead of `isearch-filter-predicate'.
+
+       * dired-aux.el (dired-isearch-filter-predicate-orig):
+       Remove variable.
+       (dired-isearch-filenames-toggle, dired-isearch-filenames-setup)
+       (dired-isearch-filenames-end): Add and remove
+       `dired-isearch-filter-filenames' in `isearch-filter-predicates'
+       instead of changing the value of `isearch-filter-predicate'.
+       Rebind `dired-isearch-filenames-toggle' from "\M-sf" to "\M-sff".
+       (dired-isearch-filter-filenames): Don't use `isearch-filter-visible'.
+       Put property `isearch-message-prefix' to "filename " on
+       `dired-isearch-filter-filenames'.
+
+       * wdired.el (wdired-change-to-wdired-mode):
+       Add `isearch-filter-predicates' to `wdired-isearch-filter-read-only'
+       locally instead of changing `isearch-filter-predicate'.
+       (wdired-isearch-filter-read-only): Don't use `isearch-filter-visible'.
+
+2013-05-27  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * vc/vc-git.el (vc-git-working-revision): When in detached mode,
+       return the commit hash (Bug#14459).  Also set the
+       `vc-git-detached' property.
+       (vc-git--rev-parse): Extract from `vc-git-previous-revision'.
+       (vc-git-mode-line-string): Use the same help-echo format whether
+       in detached mode or not, because we know the actual revision now.
+       When in detached mode, shorten the revision to 7 chars.
+
+2013-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/easy-mmode.el (define-minor-mode):
+       * emacs-lisp/derived.el (define-derived-mode): Always defvar the
+       mode hook and provide a docstring.
+
+2013-05-27  Alan Mackenzie  <acm@muc.de>
+
+       Remove spurious syntax-table text properties inserted by C-y.
+       * progmodes/cc-mode.el (c-after-change): Also clear hard
+       syntax-table property with value nil.
+
+2013-05-27  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/dbus.el (dbus-call-method): Let-bind `inhibit-redisplay'
+       when reading the events; the buffer layout shall not be changed.
+
+2013-05-27  Leo Liu  <sdl.web@gmail.com>
+
+       * progmodes/octave.el (inferior-octave-directory-tracker-resync):
+       New variable.
+       (inferior-octave-directory-tracker): Automatically re-sync
+       default-directory.
+       (octave-help): Improve handling of 'See also'.
+
+2013-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * doc-view.el: Minor naming convention tweaks.
+       (desktop-buffer-mode-handlers): Don't add to it repeatedly.
+
+       * image-mode.el (image-mode-reapply-winprops): Call image-mode-winprops
+       even if there's no `display' property yet (bug#14435).
+
+2013-05-25  Eli Zaretskii  <eliz@gnu.org>
+
+       * subr.el (unmsys--file-name): Rename from reveal-filename.
+
+       * Makefile.in (custom-deps, finder-data, autoloads)
+       ($(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): All users changed.
+
+2013-05-25  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/lisp.el (lisp-completion-at-point): Don't use
+       error-completion on the first 2 args of condition-case (bug#14446).
+       Don't burp at EOB.
+
+2013-05-25  Leo Liu  <sdl.web@gmail.com>
+
+       * comint.el (comint-previous-matching-input): Do not flood the
+       *Messages* buffer with trivial messages.
+
+2013-05-25  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * progmodes/flymake.el (flymake-nop): Don't return a string.
+       (flymake-set-at): Fix typo.
+
+       * simple.el (read--expression): New function, extracted from
+       eval-expression.  Set completion-at-point-functions (bug#14465).
+       (eval-expression, eval-minibuffer): Use it.
+
+2013-05-25  Xue Fuqiao  <xfq.free@gmail.com>
+
+       * progmodes/flymake.el (flymake-save-buffer-in-file)
+       (flymake-makehash, flymake-posn-at-point-as-event, flymake-nop)
+       (flymake-selected-frame, flymake-log, flymake-ins-after)
+       (flymake-set-at, flymake-get-buildfile-from-cache)
+       (flymake-add-buildfile-to-cache, flymake-clear-buildfile-cache)
+       (flymake-find-possible-master-files, flymake-save-buffer-in-file):
+       Refine the doc string.
+       (flymake-get-file-name-mode-and-masks): Reformat.
+       (flymake-get-real-file-name-function): Fix a minor bug.
+
+2013-05-24  Juri Linkov  <juri@jurta.org>
+
+       * progmodes/grep.el (grep-mode-font-lock-keywords):
+       Support =linenumber= format used by git-grep for lines with
+       function names.  (Bug#13549)
+
+2013-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * progmodes/octave.el (octave-smie-rules): Return nil rather than
+       0 after a semi-colon; it works better for smie-auto-fill.
+       (octave--indent-new-comment-line): New function.
+       (octave-indent-new-comment-line): Use it (indirectly).
+       (octave-mode): Don't disable smie-auto-fill.  Use add-function to
+       modify comment-line-break-function.
+
+       * emacs-lisp/smie.el (smie-auto-fill): Rework to be more robust.
+       (smie-setup): Use add-function to set it.
+
+2013-05-24  Sam Steingold  <sds@gnu.org>
+
+       * sort.el (delete-duplicate-lines): Accept an optional `keep-blanks'
+       argument (before the `interactive' argument).
+
+2013-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * image-mode.el (image-mode-winprops): Add winprops to
+       image-mode-winprops-alist before running
+       image-mode-new-window-functions.
+       * doc-view.el (doc-view-new-window-function): Don't delay
+       doc-view-goto-page via timers (bug#14435).
+
+2013-05-24  Tassilo Horn  <tsdh@gnu.org>
+
+       * doc-view.el: Integrate with desktop.el.  (Bug#14435)
+       (doc-view-desktop-save-buffer): New function.
+       (doc-view-restore-desktop-buffer): New function.
+       (desktop-buffer-mode-handlers):
+       Add `doc-view-restore-desktop-buffer' as desktop.el buffer mode
+       handler.
+       (doc-view-mode): Set `doc-view-desktop-save-buffer' as custom
+       `desktop-save-buffer' function.
+
+2013-05-24  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-gvfs.el (tramp-gvfs-enabled): New defconst.
+       (tramp-gvfs-file-name-handler): Raise a user error when
+       `tramp-gvfs-enabled' is nil.
+       (top): Register signals only when `tramp-gvfs-enabled' is non-nil.
+       Do not raise a user error when loading package.  (Bug#14447)
+
+       * net/xesam.el: Move to obsolete/.
+
 2013-05-24  Glenn Morris  <rgm@gnu.org>
 
+       * font-lock.el (lisp-font-lock-keywords-2): Add with-coding-priority.
+
+       * emacs-lisp/chart.el (chart-sort): Replace obsolete `object-name'.
+
+       * progmodes/cperl-mode.el (cperl-mode): Use fboundp.
+       (Info-find-node, Man-getpage-in-background): Declare.
+
+       * mail/unrmail.el (unrmail):
+       Replace obsolete detect-coding-with-priority.
+
+       * net/socks.el (socks-split-string): Use this rather than split-string.
+       (socks-nslookup-host): Update for above change.
+       (dynamic-choice, s5-dynamic-choice-match)
+       (s5-dynamic-choice-match-inline, s5-widget-value-create):
+       Comment out unused code.
+
+       * tooltip.el (tooltip-use-echo-area): Warn only on 'set.
+       * progmodes/gud.el (gud-gdb-completion-function): Move before use.
+       (gud-tooltip-echo-area): Make obsolete.
+       (gud-tooltip-process-output, gud-tooltip-tips): Also check tooltip-mode.
+
        * progmodes/js.el (js--optimize-arglist): Declare.
 
        * progmodes/ruby-mode.el (ruby-syntax-propertize-expansion): Declare.
 
 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)