* lisp/pcomplete.el (pcomplete-std-complete): Don't abuse
[bpt/emacs.git] / lisp / ChangeLog
index 214376b..4d9c16b 100644 (file)
@@ -1,5 +1,446 @@
+2011-04-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * pcomplete.el (pcomplete-std-complete): Don't abuse
+       completion-at-point.
+
+2011-04-28  Juanma Barranquero  <lekktu@gmail.com>
+
+       * calc/calccomp.el (math-comp-to-string-flat-term): Simplify by
+       removing code that has been dead since 1991 or so.
+
+       * startup.el (command-line): When warning about "_emacs", use a
+       delayed warning to allow the user to filter it out.
+
+2011-04-28  Deniz Dogan  <deniz@dogan.se>
+
+       * net/rcirc.el (rcirc-handler-353): Fix bug for channels which the
+       user has not joined.
+
+2011-04-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * pcomplete.el (pcomplete-completions-at-point): Return nil if there
+       aren't any completions at point.
+
+2011-04-28  Juanma Barranquero  <lekktu@gmail.com>
+
+       * subr.el (display-delayed-warnings): New function.
+       (delayed-warnings-hook): New variable.
+
+2011-04-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * minibuffer.el (completion-at-point, completion-help-at-point):
+       Don't presume that a given completion-at-point-function will always
+       use the same calling convention.
+
+       * pcomplete.el (pcomplete-completions-at-point):
+       Obey pcomplete-ignore-case.  Don't call pcomplete-norm-func unless
+       pcomplete-seen is non-nil.
+       (pcomplete-comint-setup): Also recognize the new comint/shell
+       completion functions.
+       (pcomplete-do-complete): Don't call pcomplete-norm-func unless
+       pcomplete-seen is non-nil.
+
+2011-04-27  Niels Giesen  <niels.giesen@gmail.com>
+
+       * calendar/icalendar.el (diary-lib): Add require statement.
+       (icalendar--create-uid): Read out a uid from a text-property on
+       the first character in the entry.  This allows for code to add its
+       own uid to the entry.
+       (icalendar--convert-float-to-ical): Add export of
+       `diary-float'-entries save for those with the optional DAY
+       argument.
+
+2011-04-27  Daniel Colascione  <dan.colascione@gmail.com>
+
+       * subr.el (shell-quote-argument): Use alternate escaping strategy
+       when we spot a variable reference in a string.
+
+2011-04-26  Daniel Colascione  <dan.colascione@gmail.com>
+
+       * cus-start.el (all): Define customization for debug-on-event.
+
+2011-04-26  Daniel Colascione  <dan.colascione@gmail.com>
+
+       * subr.el (shell-quote-argument): Escape correctly under Windows.
+
+2011-04-25  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emulation/cua-base.el (cua-selection-mode): Make it toggle again.
+
+2011-04-25  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-process-actions): Add POS argument.
+       Delete region between POS and (pos).
+
+       * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
+       Use `nil' position in `tramp-process-actions' call.
+       (tramp-maybe-open-connection): Call `tramp-process-actions' with pos.
+
+       * net/tramp-smb.el (tramp-smb-maybe-open-connection): Use `nil'
+       position in `tramp-process-actions' call.
+
+       * net/trampver.el: Update release number.
+
+2011-04-25  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * custom.el (defcustom): Obey lexical-binding.
+
+       Fix octave-inf completion problems reported by Alexander Klimov.
+       * progmodes/octave-inf.el (inferior-octave-mode-syntax-table):
+       Inherit from octave-mode-syntax-table.
+       (inferior-octave-mode): Set info-lookup-mode.
+       (inferior-octave-completion-at-point): New function.
+       (inferior-octave-complete): Use it and completion-in-region.
+       (inferior-octave-dynamic-complete-functions): Use it as well, and use
+       comint-filename-completion.
+       * progmodes/octave-mod.el (octave-mode-syntax-table): Use _ syntax for
+       symbol elements which shouldn't be word elements.
+       (octave-font-lock-keywords, octave-beginning-of-defun)
+       (octave-function-header-regexp): Adjust regexps accordingly.
+       (octave-mode-map): Also use info-lookup-symbol for C-c C-h.
+
+2011-04-25  Juanma Barranquero  <lekktu@gmail.com>
+
+       * net/gnutls.el (gnutls-errorp): Declare before first use.
+
+2011-04-24  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * net/gnutls.el (gnutls-negotiate): Add hostname, verify-flags,
+       verify-error, and verify-hostname-error parameters.  Check whether
+       default trustfile exists before going to use it.  Add missing
+       argument to gnutls-message-maybe call.  Return return value.
+       Reported by Claudio Bley <claudio.bley@gmail.com>.
+       (open-gnutls-stream): Add usage example.
+
+       * net/network-stream.el (network-stream-open-starttls): Give host
+       parameter to `gnutls-negotiate'.
+       (gnutls-negotiate): Adjust `gnutls-negotiate' declaration.
+       * subr.el (shell-quote-argument): Escape correctly under Windows.
+
+2011-04-24  Daniel Colascione  <dan.colascione@gmail.com>
+
+       * progmodes/cc-engine.el (c-forward-decl-or-cast-1):
+       Use correct match group (bug#8438).
+
+2011-04-24  Chong Yidong  <cyd@stupidchicken.com>
+
+       * emacs-lisp/package.el (package-built-in-p): Fix typo.
+       (package-menu--generate): New arg specifying packages to show.
+       (package-menu-refresh, package-menu-execute, list-packages):
+       Callers changed.
+       (package-show-package-list): New function, replacing deleted
+       package--list-packages (renamed because it is non-internal).
+
+       * finder.el (finder-list-matches): Use package-show-package-list
+       instead of deleted package--list-packages.
+
+       * vc/vc-annotate.el (vc-annotate-goto-line): New command.
+       Based on a previous implementation by Juanma Barranquero (Bug#8366).
+       (vc-annotate-mode-map): Bind it to RET.
+
+2011-04-24  Uday S Reddy  <u.s.reddy@cs.bham.ac.uk>  (tiny change)
+
+       * progmodes/etags.el (next-file): Don't use set-buffer to change
+       buffers (Bug#8478).
+
+2011-04-24  Chong Yidong  <cyd@stupidchicken.com>
+
+       * files.el (auto-mode-alist): Use js-mode for .json (Bug#8529).
+
+       * apropos.el (apropos-label-face): Avoid variable-pitch face.
+       (apropos-accumulator): Doc fix.
+       (apropos-function, apropos-macro, apropos-command)
+       (apropos-variable, apropos-face, apropos-group, apropos-widget)
+       (apropos-plist): Add face property.
+       (apropos-symbols-internal): Fix indentation.
+       (apropos-print): Simplify help, and recognize apropos-multi-type.
+       (apropos-print-doc): Use button-type-get to extract the button's
+       face property.  Fill docstring (Bug#8352).
+
+2011-04-23  Juanma Barranquero  <lekktu@gmail.com>
+
+       * buff-menu.el (Buffer-menu--buffers): Fix typo in docstring (bug#8535).
+
+       * play/mpuz.el (mpuz-silent): Doc fix.
+       (mpuz-mode-map): Use mapc.
+       (mpuz-put-number-on-board): Rename parameter L to COLUMNS.
+       (mpuz-letter-to-digit, mpuz-check-all-solved, mpuz-create-buffer):
+       Fix typos in docstrings.
+
+       * play/doctor.el (doc$, doctor-$, doctor-read-print, doctor-read-token)
+       (doctor-nounp, doctor-pronounp): Fix typos in docstrings.
+
+       * mouse-drag.el (mouse-drag-throw): Fix typo in docstring.
+
+2011-04-23  Chong Yidong  <cyd@stupidchicken.com>
+
+       * minibuffer.el (completion--do-completion): Avoid the "Next char
+       not unique" prompt if icomplete-mode is enabled (Bug#5849).
+
+       * mouse.el (mouse-drag-mode-line-1): Make sure that if we push
+       mouse-2 into unread-command-events, it is interpreted correctly.
+
+       * image-mode.el (image-type, image-mode-map, image-minor-mode-map)
+       (image-toggle-display): Doc fix.
+
+2011-04-23  Stephen Berman  <stephen.berman@gmx.net>
+
+       * textmodes/page.el (what-page): Use line-number-at-pos to
+       calculate line number (Bug#6825).
+
+2011-04-22  Juanma Barranquero  <lekktu@gmail.com>
+
+       * eshell/esh-mode.el (find-tag-interactive): Declare function.
+       (eshell-find-tag): Remove `with-no-warnings', unneeded now.
+       Pass argument NO-DEFAULT to `find-tag-interactive'.
+
+2011-04-22  Juanma Barranquero  <lekktu@gmail.com>
+
+       Lexical-binding cleanup.
+
+       * progmodes/ada-mode.el (ada-after-change-function, ada-loose-case-word)
+       (ada-no-auto-case, ada-capitalize-word, ada-untab, ada-narrow-to-defun):
+       * progmodes/ada-prj.el (ada-prj-initialize-values)
+       (ada-prj-display-page, ada-prj-field-modified, ada-prj-display-help)
+       (ada-prj-show-value):
+       * progmodes/ada-xref.el (ada-find-any-references, ada-gdb-application):
+       * progmodes/antlr-mode.el (antlr-with-displaying-help-buffer)
+       (antlr-invalidate-context-cache, antlr-options-menu-filter)
+       (antlr-language-option-extra, antlr-c++-mode-extra, antlr-run-tool):
+       * progmodes/bug-reference.el (bug-reference-push-button):
+       * progmodes/fortran.el (fortran-line-length):
+       * progmodes/glasses.el (glasses-change):
+       * progmodes/octave-mod.el (octave-fill-paragraph):
+       * progmodes/python.el (python-mode, python-pdbtrack-track-stack-file)
+       (python-pdbtrack-grub-for-buffer, python-sentinel):
+       * progmodes/sql.el (sql-save-connection):
+       * progmodes/tcl.el (tcl-indent-command, tcl-popup-menu):
+       * progmodes/xscheme.el (xscheme-enter-debugger-mode):
+       Mark unused parameters.
+
+       * progmodes/compile.el (compilation--flush-directory-cache)
+       (compilation--flush-parse, compile-internal): Mark unused parameters.
+       (compilation-buffer-name): Rename parameter MODE-NAME to NAME-OF-MODE.
+       (compilation-next-error-function): Remove unused variable `timestamp'.
+
+       * progmodes/cpp.el (cpp-parse-close): Remove unused variable `begin'.
+       (cpp-signal-read-only, cpp-grow-overlay): Mark unused parameters.
+
+       * progmodes/dcl-mode.el (dcl-end-of-command):
+       Remove unused variable `start'.
+       (dcl-calc-command-indent-multiple, dcl-calc-cont-indent-relative)
+       (dcl-option-value-basic, dcl-option-value-offset)
+       (dcl-option-value-margin-offset, dcl-option-value-comment-line):
+       Mark unused parameters.
+       (dcl-save-local-variable): Remove unused variable `val'.
+       (mode): Declare.
+
+       * progmodes/delphi.el (delphi-save-state, delphi-after-change):
+       Mark unused parameters.
+       (delphi-ignore-changes): Move before first use.
+       (delphi-charset-token-at): Remove unused variable `start'.
+       (delphi-else-start): Remove unused variable `if-count'.
+       (delphi-comment-block-start, delphi-comment-block-end):
+       Remove unused variable `kind'.
+       (delphi-indent-line): Remove unused variable `new-point'.
+
+       * progmodes/ebrowse.el (ebrowse-files-list)
+       (ebrowse-list-of-matching-members, ebrowse-tags-list-members-in-file):
+       Mark unused parameters.  Don't quote `lambda'.
+       (ebrowse-sort-tree-list, ebrowse-same-tree-member-buffer-list):
+       Don't quote `lambda'.
+       (ebrowse-revert-tree-buffer-from-file, ebrowse-tags-choose-class)
+       (ebrowse-goto-visible-member/all-member-lists): Mark unused parameters.
+       (ebrowse-create-tree-buffer): Rename parameter OBARRAY to CLASSES.
+       (ebrowse-toggle-mark-at-point): Remove unused variable `pnt'.
+       Use `ignore-errors'.
+       (ebrowse-frozen-tree-buffer-name, ebrowse-find-source-file)
+       (ebrowse-view/find-file-and-search-pattern)
+       (ebrowse-view/find-member-declaration/definition):
+       Rename parameter TAGS-FILE-NAME to TAGS-FILE.
+       (ebrowse-find-class-declaration, ebrowse-view-class-declaration):
+       Rename parameter PREFIX-ARG to PREFIX.
+       (ebrowse-tags-read-name): Remove unused variables `start' and
+       `member-info'.
+       (ebrowse-display-member-buffer): Rename variable `tags-file-name'
+       to `tags-file'.
+
+       * progmodes/etags.el (local-find-tag-hook): Declare.
+       (tag-partial-file-name-match-p, tag-any-match-p, list-tags):
+       Mark unused parameters.
+
+       * progmodes/executable.el (compilation-error-regexp-alist): Declare.
+       (executable-interpret): Mark unused parameter.
+
+       * progmodes/flymake.el (flymake-process-sentinel)
+       (flymake-after-change-function)
+       (flymake-create-temp-with-folder-structure)
+       (flymake-get-include-dirs-dot): Mark unused parameters.
+       (flymake-safe-delete-directory): Remove unused variable `err'.
+
+       * progmodes/gdb-mi.el (speedbar-change-initial-expansion-list)
+       (speedbar-timer-fn, speedbar-line-text)
+       (speedbar-change-expand-button-char, speedbar-delete-subblock)
+       (speedbar-center-buffer-smartly): Declare functions.
+       (gdb-find-watch-expression): Remove unused variable `array'.
+       (gdb-edit-value, gdb-gdb, gdb-ignored-notification, gdb-thread-created)
+       (gdb-starting): Mark unused parameters.
+       (gud-gdbmi-marker-filter): Remove unused variable `output-record'.
+       (gdb-table-string): Remove unused variable `res'.
+       (gdb-place-breakpoints): Remove unused variables `flag' and `bptno'.
+       (gdb-disassembly-handler-custom): Remove unused variable `pos'.
+       (gdb-display-buffer): Remove unused variable `cur-size'.
+
+       * progmodes/gud.el (gud-def): Use `defalias' instead of `defun' to
+       allow lexical-binding compilation.
+       (gud-expansion-speedbar-buttons, gud-gdb-goto-stackframe)
+       (gud-dbx-massage-args, gud-xdb-massage-args, gud-perldb-massage-args)
+       (gud-jdb-massage-args, gud-jdb-find-source, gud-find-class):
+       Mark unused parameters.
+       (gud-gdb-marker-filter): Remove unused variable `match'.
+       (gud-find-class): Bind `syntax-symbol' and `syntax-point' to suitable
+       lambda expressions and funcall them, instead of using `fset'.
+
+       * progmodes/hideif.el (hif-parse-if-exp): Rename parameter
+       HIF-TOKEN-LIST to TOKEN-LIST and let-bind `hif-token-list'.
+
+       * progmodes/hideshow.el (hs-hide-block-at-point): Remove unused
+       variable `header-beg'; use `let'.
+
+       * progmodes/icon.el (indent-icon-exp): Remove unused variables
+       `restart', `last-sexp' and `at-do'.
+
+       * progmodes/js.el (js--debug): Mark unused parameter.
+       (js--parse-state-at-point): Remove unused variable `bound'; use `let'.
+       (js--splice-into-items): Remove unused variable `item'.
+       (js--read-symbol, js--read-tab): Pass 1/-1 to `ido-mode', not t/nil.
+
+       * progmodes/make-mode.el (makefile-make-font-lock-keywords):
+       Rename parameter FONT-LOCK-KEYWORDS to FL-KEYWORDS.
+       (makefile-complete): Remove unused variable `try'.
+       (makefile-fill-paragraph, makefile-match-function-end):
+       Mark unused parameters.
+
+       * progmodes/octave-inf.el (inferior-octave-complete):
+       Remove unused variable `proc'.
+       (inferior-octave-output-digest): Mark unused parameter.
+
+       * progmodes/perl-mode.el (perl-calculate-indent):
+       Remove unused variable `err'.
+
+       * progmodes/prolog.el (prolog-mode-keybindings-inferior)
+       (prolog-indent-line): Mark unused parameters.
+       (prolog-indent-line): Remove unused variable `beg'.
+
+       * progmodes/ps-mode.el (reporter-prompt-for-summary-p)
+       (reporter-dont-compact-list): Declare.
+
+       * progmodes/sh-script.el (sh-font-lock-quoted-subshell):
+       Remove unused variable `char'.
+       (sh-debug): Mark unused parameter.
+       (sh-get-indent-info): Remove unused variable `start'.
+       (sh-calculate-indent): Remove unused variable `var'.
+
+       * progmodes/simula.el (simula-popup-menu): Mark unused parameter.
+       (simula-electric-keyword): Remove unused variable `null'.
+       (simula-search-backward, simula-search-forward): Remove unused
+       variables `begin' and `end'.
+
+       * progmodes/vera-mode.el (vera-guess-basic-syntax):
+       Remove unused variable `pos'.
+       (vera-electric-tab, vera-comment-uncomment-region):
+       Mark unused parameters.
+       (vera-electric-tab): Rename parameter PREFIX-ARG to PREFIX.
+
+2011-04-22  Chong Yidong  <cyd@stupidchicken.com>
+
+       * emacs-lisp/package.el (package--builtins, package-alist)
+       (package-load-descriptor, package-built-in-p, package-activate)
+       (define-package, package-installed-p)
+       (package-compute-transaction, package-buffer-info)
+       (package--push): Doc fix.  Distinguish more clearly between
+       version strings and version lists.
+
+2011-04-21  Juanma Barranquero  <lekktu@gmail.com>
+
+       Lexical-binding cleanup.
+
+       * play/5x5.el (5x5-make-random-solution, 5x5-make-mutate-current)
+       (5x5-make-mutate-best):
+       * play/fortune.el (fortune-in-buffer):
+       * play/gomoku.el (gomoku-init-display):
+       * play/solitaire.el (solitaire, solitaire-do-check):
+       * play/tetris.el (tetris-default-update-speed-function):
+       Mark unused parameters.
+
+       * play/bubbles.el (bubbles-mode): Set `show-trailing-whitespace'.
+       (bubbles--shift): Remove unused variable `char-org'.
+       (bubbles--set-faces): Remove unused variable `fg-col'.  Simplify.
+       (bubbles--show-images): Remove unused variable `char'.
+
+       * play/decipher.el (decipher-keypress, decipher-alphabet-keypress)
+       (decipher-get-undo, decipher-set-map, decipher-complete-alphabet)
+       (decipher-resync, decipher-loop-with-breaks, decipher--analyze)
+       (decipher-analyze-buffer): Use ?\s.
+       (decipher-make-checkpoint): Remove unused variable `mapping'.
+
+       * play/doctor.el (doctor-doc): Rename parameter DOCTOR-SENT to SENT.
+
+       * play/gamegrid.el (gamegrid-add-score-with-update-game-score):
+       Remove unused variable `result'; use `let'.
+
+       * play/gametree.el (gametree-current-layout, gametree-apply-layout):
+       Rename parameter TOP-LEVEL to FROM-TOP-LEVEL; use `ignore-errors'.
+       (gametree-children-shown-p, gametree-compute-reduced-score):
+       Use `ignore-errors'.
+
+       * play/handwrite.el (ps-lpr-switches): Declare.
+       (handwrite): Remove unused variables `pmin' and `lastp'.
+
+       * play/hanoi.el (hanoi-move-ring): Remove unused variable `total-steps'.
+
+       * play/landmark.el (landmark-init-display)
+       (landmark-update-naught-weights): Mark unused parameters.
+       (landmark-y): Remove unused variable `noise'.  Simplify.
+       (landmark-human-plays): Remove unused variable `score'.
+
+       * play/mpuz.el (mpuz-try-letter): Remove unused variable `message'.
+       (mpuz-try-proposal): Remove unused variable `game'.
+
+       * play/zone.el (life-patterns): Declare.
+
+2011-04-20  Juanma Barranquero  <lekktu@gmail.com>
+
+       * vc/vc.el (ediff-vc-internal): Declare function.
+
 2011-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * shell.el: Use lexical-binding and std completion UI.
+       (shell-filter-ctrl-a-ctrl-b): Work as a preoutput filter.
+       (shell-mode): Put shell-filter-ctrl-a-ctrl-b on
+       comint-preoutput-filter-functions rather than on
+       comint-output-filter-functions.
+       (shell-command-completion, shell--command-completion-data)
+       (shell-filename-completion, shell-environment-variable-completion)
+       (shell-c-a-p-replace-by-expanded-directory): New functions.
+       (shell-dynamic-complete-functions, shell-dynamic-complete-command)
+       (shell-dynamic-complete-filename, shell-replace-by-expanded-directory)
+       (shell-dynamic-complete-environment-variable): Use them.
+       (shell-dynamic-complete-as-environment-variable)
+       (shell-dynamic-complete-as-command): Remove.
+       (shell-match-partial-variable): Match past point.
+       * comint.el: Clean up use of completion-at-point-functions.
+       (comint-completion-at-point): New function.
+       (comint-mode): Use it completion-at-point-functions.
+       (comint-dynamic-complete): Make it obsolete.
+       (comint-replace-by-expanded-history-before-point): Add dry-run arg.
+       (comint-c-a-p-replace-by-expanded-history): New function.
+       (comint-dynamic-complete-functions)
+       (comint-replace-by-expanded-history): Use it.
+       * minibuffer.el (completion-table-with-terminator): Allow dynamic
+       termination strings.  Try harder to avoid second try-completion.
+       (completion-in-region-mode-map): Disable bindings that don't work yet.
+
        * comint.el: Use lexical-binding.  Require CL.
        (comint-dynamic-complete-functions): Use comint-filename-completion.
        (comint-completion-addsuffix): Tweak custom type.
@@ -9,6 +450,7 @@
        (comint-dynamic-complete-as-filename, comint-dynamic-complete-filename)
        (comint-dynamic-list-filename-completions): Use them.
        (comint-dynamic-simple-complete): Make obsolete.
+
        * minibuffer.el (completion-in-region-mode):
        Keep completion-in-region-mode--predicate global.
        (completion-in-region--postch):
        * delim-col.el (delimit-columns-max): Move defvar before first use.
 
        * descr-text.el (describe-char-categories): Don't quote `lambda'.
-       (describe-char): Don't quote `lambda'.  Mark unused parameter.
+       (describe-char): Don't quote `lambda'.  Mark unused parameter.
 
        * desktop.el (desktop-save-buffer-p): Mark unused parameter.
        (auto-insert): Declare.
        (modify-file-local-variable-prop-line): Remove unused variable `val'.
 
        * find-lisp.el (find-lisp-find-dired-internal): Remove unused
-       variable `buf'.  Mark unused parameter.
+       variable `buf'.  Mark unused parameter.
        (find-lisp-insert-directory): Mark unused parameter.
 
        * format.el (format-decode-run-method): Mark unused parameter; doc fix.
        (widget-color-action): Remove unused variables `value' and `start'.
 
        * windmove.el (windmove-wrap-loc-for-movement): Remove unused
-       variable `dir'.  Doc fix.
+       variable `dir'.  Doc fix.
        (windmove-find-other-window): Don't pass it.
 
        * window.el (count-windows): Mark unused parameter.