lisp/progmodes/*.el: Lexical-binding cleanup.
[bpt/emacs.git] / lisp / ChangeLog
index a7aedca..ed06af2 100644 (file)
@@ -1,5 +1,282 @@
+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.
+       (comint-filename-completion, comint--common-suffix)
+       (comint--common-quoted-suffix, comint--table-subvert)
+       (comint--complete-file-name-data): New functions.
+       (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):
+       Assume completion-in-region-mode--predicate is not null.
+
+       * progmodes/flymake.el (flymake-start-syntax-check-process):
+       Obey `dir'.  Simplify.
+
+       * vc/vc.el (vc-version-ediff): Call ediff-vc-internal directly, since
+       we're in VC after all.
+
+2011-04-20  Christoph Scholtes  <cschol2112@googlemail.com>
+
+       * vc/vc.el (vc-diff-build-argument-list-internal)
+       (vc-version-ediff, vc-ediff): New commands.
+       (vc-version-diff): Use vc-diff-build-argument-list-internal.
+
 2011-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * emacs-lisp/byte-opt.el (byte-decompile-bytecode-1): Remove dead code,
+       add sanity check.
+
        * obsolete/erc-hecomplete.el: Make obsolete.
        * obsolete/: Standardize obsolescence info in the header.