lisp/progmodes/*.el: Lexical-binding cleanup.
[emacs.git] / lisp / ChangeLog
blobed06af250f62c6b7e26c9bc1593a7aed01954355
1 2011-04-22  Juanma Barranquero  <lekktu@gmail.com>
3         Lexical-binding cleanup.
5         * progmodes/ada-mode.el (ada-after-change-function, ada-loose-case-word)
6         (ada-no-auto-case, ada-capitalize-word, ada-untab, ada-narrow-to-defun):
7         * progmodes/ada-prj.el (ada-prj-initialize-values)
8         (ada-prj-display-page, ada-prj-field-modified, ada-prj-display-help)
9         (ada-prj-show-value):
10         * progmodes/ada-xref.el (ada-find-any-references, ada-gdb-application):
11         * progmodes/antlr-mode.el (antlr-with-displaying-help-buffer)
12         (antlr-invalidate-context-cache, antlr-options-menu-filter)
13         (antlr-language-option-extra, antlr-c++-mode-extra, antlr-run-tool):
14         * progmodes/bug-reference.el (bug-reference-push-button):
15         * progmodes/fortran.el (fortran-line-length):
16         * progmodes/glasses.el (glasses-change):
17         * progmodes/octave-mod.el (octave-fill-paragraph):
18         * progmodes/python.el (python-mode, python-pdbtrack-track-stack-file)
19         (python-pdbtrack-grub-for-buffer, python-sentinel):
20         * progmodes/sql.el (sql-save-connection):
21         * progmodes/tcl.el (tcl-indent-command, tcl-popup-menu):
22         * progmodes/xscheme.el (xscheme-enter-debugger-mode):
23         Mark unused parameters.
25         * progmodes/compile.el (compilation--flush-directory-cache)
26         (compilation--flush-parse, compile-internal): Mark unused parameters.
27         (compilation-buffer-name): Rename parameter MODE-NAME to NAME-OF-MODE.
28         (compilation-next-error-function): Remove unused variable `timestamp'.
30         * progmodes/cpp.el (cpp-parse-close): Remove unused variable `begin'.
31         (cpp-signal-read-only, cpp-grow-overlay): Mark unused parameters.
33         * progmodes/dcl-mode.el (dcl-end-of-command):
34         Remove unused variable `start'.
35         (dcl-calc-command-indent-multiple, dcl-calc-cont-indent-relative)
36         (dcl-option-value-basic, dcl-option-value-offset)
37         (dcl-option-value-margin-offset, dcl-option-value-comment-line):
38         Mark unused parameters.
39         (dcl-save-local-variable): Remove unused variable `val'.
40         (mode): Declare.
42         * progmodes/delphi.el (delphi-save-state, delphi-after-change):
43         Mark unused parameters.
44         (delphi-ignore-changes): Move before first use.
45         (delphi-charset-token-at): Remove unused variable `start'.
46         (delphi-else-start): Remove unused variable `if-count'.
47         (delphi-comment-block-start, delphi-comment-block-end):
48         Remove unused variable `kind'.
49         (delphi-indent-line): Remove unused variable `new-point'.
51         * progmodes/ebrowse.el (ebrowse-files-list)
52         (ebrowse-list-of-matching-members, ebrowse-tags-list-members-in-file):
53         Mark unused parameters.  Don't quote `lambda'.
54         (ebrowse-sort-tree-list, ebrowse-same-tree-member-buffer-list):
55         Don't quote `lambda'.
56         (ebrowse-revert-tree-buffer-from-file, ebrowse-tags-choose-class)
57         (ebrowse-goto-visible-member/all-member-lists): Mark unused parameters.
58         (ebrowse-create-tree-buffer): Rename parameter OBARRAY to CLASSES.
59         (ebrowse-toggle-mark-at-point): Remove unused variable `pnt'.
60         Use `ignore-errors'.
61         (ebrowse-frozen-tree-buffer-name, ebrowse-find-source-file)
62         (ebrowse-view/find-file-and-search-pattern)
63         (ebrowse-view/find-member-declaration/definition):
64         Rename parameter TAGS-FILE-NAME to TAGS-FILE.
65         (ebrowse-find-class-declaration, ebrowse-view-class-declaration):
66         Rename parameter PREFIX-ARG to PREFIX.
67         (ebrowse-tags-read-name): Remove unused variables `start' and
68         `member-info'.
69         (ebrowse-display-member-buffer): Rename variable `tags-file-name'
70         to `tags-file'.
72         * progmodes/etags.el (local-find-tag-hook): Declare.
73         (tag-partial-file-name-match-p, tag-any-match-p, list-tags):
74         Mark unused parameters.
76         * progmodes/executable.el (compilation-error-regexp-alist): Declare.
77         (executable-interpret): Mark unused parameter.
79         * progmodes/flymake.el (flymake-process-sentinel)
80         (flymake-after-change-function)
81         (flymake-create-temp-with-folder-structure)
82         (flymake-get-include-dirs-dot): Mark unused parameters.
83         (flymake-safe-delete-directory): Remove unused variable `err'.
85         * progmodes/gdb-mi.el (speedbar-change-initial-expansion-list)
86         (speedbar-timer-fn, speedbar-line-text)
87         (speedbar-change-expand-button-char, speedbar-delete-subblock)
88         (speedbar-center-buffer-smartly): Declare functions.
89         (gdb-find-watch-expression): Remove unused variable `array'.
90         (gdb-edit-value, gdb-gdb, gdb-ignored-notification, gdb-thread-created)
91         (gdb-starting): Mark unused parameters.
92         (gud-gdbmi-marker-filter): Remove unused variable `output-record'.
93         (gdb-table-string): Remove unused variable `res'.
94         (gdb-place-breakpoints): Remove unused variables `flag' and `bptno'.
95         (gdb-disassembly-handler-custom): Remove unused variable `pos'.
96         (gdb-display-buffer): Remove unused variable `cur-size'.
98         * progmodes/gud.el (gud-def): Use `defalias' instead of `defun' to
99         allow lexical-binding compilation.
100         (gud-expansion-speedbar-buttons, gud-gdb-goto-stackframe)
101         (gud-dbx-massage-args, gud-xdb-massage-args, gud-perldb-massage-args)
102         (gud-jdb-massage-args, gud-jdb-find-source, gud-find-class):
103         Mark unused parameters.
104         (gud-gdb-marker-filter): Remove unused variable `match'.
105         (gud-find-class): Bind `syntax-symbol' and `syntax-point' to suitable
106         lambda expressions and funcall them, instead of using `fset'.
108         * progmodes/hideif.el (hif-parse-if-exp): Rename parameter
109         HIF-TOKEN-LIST to TOKEN-LIST and let-bind `hif-token-list'.
111         * progmodes/hideshow.el (hs-hide-block-at-point): Remove unused
112         variable `header-beg'; use `let'.
114         * progmodes/icon.el (indent-icon-exp): Remove unused variables
115         `restart', `last-sexp' and `at-do'.
117         * progmodes/js.el (js--debug): Mark unused parameter.
118         (js--parse-state-at-point): Remove unused variable `bound'; use `let'.
119         (js--splice-into-items): Remove unused variable `item'.
120         (js--read-symbol, js--read-tab): Pass 1/-1 to `ido-mode', not t/nil.
122         * progmodes/make-mode.el (makefile-make-font-lock-keywords):
123         Rename parameter FONT-LOCK-KEYWORDS to FL-KEYWORDS.
124         (makefile-complete): Remove unused variable `try'.
125         (makefile-fill-paragraph, makefile-match-function-end):
126         Mark unused parameters.
128         * progmodes/octave-inf.el (inferior-octave-complete):
129         Remove unused variable `proc'.
130         (inferior-octave-output-digest): Mark unused parameter.
132         * progmodes/perl-mode.el (perl-calculate-indent):
133         Remove unused variable `err'.
135         * progmodes/prolog.el (prolog-mode-keybindings-inferior)
136         (prolog-indent-line): Mark unused parameters.
137         (prolog-indent-line): Remove unused variable `beg'.
139         * progmodes/ps-mode.el (reporter-prompt-for-summary-p)
140         (reporter-dont-compact-list): Declare.
142         * progmodes/sh-script.el (sh-font-lock-quoted-subshell):
143         Remove unused variable `char'.
144         (sh-debug): Mark unused parameter.
145         (sh-get-indent-info): Remove unused variable `start'.
146         (sh-calculate-indent): Remove unused variable `var'.
148         * progmodes/simula.el (simula-popup-menu): Mark unused parameter.
149         (simula-electric-keyword): Remove unused variable `null'.
150         (simula-search-backward, simula-search-forward): Remove unused
151         variables `begin' and `end'.
153         * progmodes/vera-mode.el (vera-guess-basic-syntax):
154         Remove unused variable `pos'.
155         (vera-electric-tab, vera-comment-uncomment-region):
156         Mark unused parameters.
157         (vera-electric-tab): Rename parameter PREFIX-ARG to PREFIX.
159 2011-04-22  Chong Yidong  <cyd@stupidchicken.com>
161         * emacs-lisp/package.el (package--builtins, package-alist)
162         (package-load-descriptor, package-built-in-p, package-activate)
163         (define-package, package-installed-p)
164         (package-compute-transaction, package-buffer-info)
165         (package--push): Doc fix.  Distinguish more clearly between
166         version strings and version lists.
168 2011-04-21  Juanma Barranquero  <lekktu@gmail.com>
170         Lexical-binding cleanup.
172         * play/5x5.el (5x5-make-random-solution, 5x5-make-mutate-current)
173         (5x5-make-mutate-best):
174         * play/fortune.el (fortune-in-buffer):
175         * play/gomoku.el (gomoku-init-display):
176         * play/solitaire.el (solitaire, solitaire-do-check):
177         * play/tetris.el (tetris-default-update-speed-function):
178         Mark unused parameters.
180         * play/bubbles.el (bubbles-mode): Set `show-trailing-whitespace'.
181         (bubbles--shift): Remove unused variable `char-org'.
182         (bubbles--set-faces): Remove unused variable `fg-col'.  Simplify.
183         (bubbles--show-images): Remove unused variable `char'.
185         * play/decipher.el (decipher-keypress, decipher-alphabet-keypress)
186         (decipher-get-undo, decipher-set-map, decipher-complete-alphabet)
187         (decipher-resync, decipher-loop-with-breaks, decipher--analyze)
188         (decipher-analyze-buffer): Use ?\s.
189         (decipher-make-checkpoint): Remove unused variable `mapping'.
191         * play/doctor.el (doctor-doc): Rename parameter DOCTOR-SENT to SENT.
193         * play/gamegrid.el (gamegrid-add-score-with-update-game-score):
194         Remove unused variable `result'; use `let'.
196         * play/gametree.el (gametree-current-layout, gametree-apply-layout):
197         Rename parameter TOP-LEVEL to FROM-TOP-LEVEL; use `ignore-errors'.
198         (gametree-children-shown-p, gametree-compute-reduced-score):
199         Use `ignore-errors'.
201         * play/handwrite.el (ps-lpr-switches): Declare.
202         (handwrite): Remove unused variables `pmin' and `lastp'.
204         * play/hanoi.el (hanoi-move-ring): Remove unused variable `total-steps'.
206         * play/landmark.el (landmark-init-display)
207         (landmark-update-naught-weights): Mark unused parameters.
208         (landmark-y): Remove unused variable `noise'.  Simplify.
209         (landmark-human-plays): Remove unused variable `score'.
211         * play/mpuz.el (mpuz-try-letter): Remove unused variable `message'.
212         (mpuz-try-proposal): Remove unused variable `game'.
214         * play/zone.el (life-patterns): Declare.
216 2011-04-20  Juanma Barranquero  <lekktu@gmail.com>
218         * vc/vc.el (ediff-vc-internal): Declare function.
220 2011-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
222         * shell.el: Use lexical-binding and std completion UI.
223         (shell-filter-ctrl-a-ctrl-b): Work as a preoutput filter.
224         (shell-mode): Put shell-filter-ctrl-a-ctrl-b on
225         comint-preoutput-filter-functions rather than on
226         comint-output-filter-functions.
227         (shell-command-completion, shell--command-completion-data)
228         (shell-filename-completion, shell-environment-variable-completion)
229         (shell-c-a-p-replace-by-expanded-directory): New functions.
230         (shell-dynamic-complete-functions, shell-dynamic-complete-command)
231         (shell-dynamic-complete-filename, shell-replace-by-expanded-directory)
232         (shell-dynamic-complete-environment-variable): Use them.
233         (shell-dynamic-complete-as-environment-variable)
234         (shell-dynamic-complete-as-command): Remove.
235         (shell-match-partial-variable): Match past point.
236         * comint.el: Clean up use of completion-at-point-functions.
237         (comint-completion-at-point): New function.
238         (comint-mode): Use it completion-at-point-functions.
239         (comint-dynamic-complete): Make it obsolete.
240         (comint-replace-by-expanded-history-before-point): Add dry-run arg.
241         (comint-c-a-p-replace-by-expanded-history): New function.
242         (comint-dynamic-complete-functions)
243         (comint-replace-by-expanded-history): Use it.
244         * minibuffer.el (completion-table-with-terminator): Allow dynamic
245         termination strings.  Try harder to avoid second try-completion.
246         (completion-in-region-mode-map): Disable bindings that don't work yet.
248         * comint.el: Use lexical-binding.  Require CL.
249         (comint-dynamic-complete-functions): Use comint-filename-completion.
250         (comint-completion-addsuffix): Tweak custom type.
251         (comint-filename-completion, comint--common-suffix)
252         (comint--common-quoted-suffix, comint--table-subvert)
253         (comint--complete-file-name-data): New functions.
254         (comint-dynamic-complete-as-filename, comint-dynamic-complete-filename)
255         (comint-dynamic-list-filename-completions): Use them.
256         (comint-dynamic-simple-complete): Make obsolete.
258         * minibuffer.el (completion-in-region-mode):
259         Keep completion-in-region-mode--predicate global.
260         (completion-in-region--postch):
261         Assume completion-in-region-mode--predicate is not null.
263         * progmodes/flymake.el (flymake-start-syntax-check-process):
264         Obey `dir'.  Simplify.
266         * vc/vc.el (vc-version-ediff): Call ediff-vc-internal directly, since
267         we're in VC after all.
269 2011-04-20  Christoph Scholtes  <cschol2112@googlemail.com>
271         * vc/vc.el (vc-diff-build-argument-list-internal)
272         (vc-version-ediff, vc-ediff): New commands.
273         (vc-version-diff): Use vc-diff-build-argument-list-internal.
275 2011-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
277         * emacs-lisp/byte-opt.el (byte-decompile-bytecode-1): Remove dead code,
278         add sanity check.
280         * obsolete/erc-hecomplete.el: Make obsolete.
281         * obsolete/: Standardize obsolescence info in the header.
283 2011-04-20  Glenn Morris  <rgm@gnu.org>
285         * calendar/solar.el (solar-horizontal-coordinates):
286         Use the longitude argument rather than `calendar-longitude'.
287         (solar-date-next-longitude): Remove unused locals.
289 2011-04-19  Stefan Monnier  <monnier@iro.umontreal.ca>
291         * progmodes/octave-mod.el (octave-in-comment-p, octave-in-string-p)
292         (octave-not-in-string-or-comment-p): Use syntax-ppss so it works with
293         multi-line comments as well.
295 2011-04-19  Juanma Barranquero  <lekktu@gmail.com>
297         Lexical-binding cleanup.
299         * arc-mode.el (archive-mode-revert):
300         * cmuscheme.el (scheme-interactively-start-process):
301         * custom.el (custom-initialize-delay):
302         * dnd.el (dnd-open-local-file, dnd-open-remote-url):
303         * dos-w32.el (direct-print-region-helper, direct-print-region-function):
304         * emacs-lock.el (emacs-lock-clear-sentinel):
305         * ezimage.el (defezimage):
306         * follow.el (follow-avoid-tail-recenter):
307         * fringe.el (set-fringe-mode-1):
308         * generic-x.el (bat-generic-mode-compile):
309         * help-mode.el (help-info-variable, help-do-xref)
310         (help-mode-revert-buffer):
311         * help.el (view-emacs-todo):
312         * iswitchb.el (iswitchb-completion-help):
313         * jka-compr.el (jka-compr-make-temp-name, jka-compr-load):
314         * kmacro.el (kmacro-cycle-ring-next, kmacro-cycle-ring-previous)
315         (kmacro-delete-ring-head, kmacro-bind-to-key, kmacro-view-macro):
316         * locate.el (locate-update):
317         * longlines.el (longlines-encode-region)
318         (longlines-after-change-function):
319         * outline.el (outline-isearch-open-invisible):
320         * ps-def.el (declare-function, charset-dimension, char-width)
321         (encode-char):
322         * ps-mule.el (ps-mule-plot-string):
323         * recentf.el (recentf-make-menu-items, recentf-cancel-dialog)
324         (recentf-edit-list-select, recentf-edit-list-validate)
325         (recentf-open-files-action):
326         * rect.el (delete-whitespace-rectangle-line)
327         (rectangle-number-line-callback):
328         * register.el (window-configuration-to-register)
329         (frame-configuration-to-register):
330         * scroll-bar.el (scroll-bar-mode, toggle-horizontal-scroll-bar):
331         * select.el (xselect-convert-to-string, xselect-convert-to-length)
332         (xselect-convert-to-targets, xselect-convert-to-delete)
333         (xselect-convert-to-filename, xselect-convert-to-charpos)
334         (xselect-convert-to-lineno, xselect-convert-to-colno)
335         (xselect-convert-to-os, xselect-convert-to-host)
336         (xselect-convert-to-user, xselect-convert-to-class)
337         (xselect-convert-to-name, xselect-convert-to-integer)
338         (xselect-convert-to-atom, xselect-convert-to-identity):
339         * subr.el (declare, ignore, process-kill-without-query)
340         (text-clone-maintain):
341         * terminal.el (te-get-char, te-tic-sentinel):
342         * tool-bar.el (tool-bar-make-keymap):
343         * tooltip.el (tooltip-timeout, tooltip-hide, tooltip-help-tips):
344         * type-break.el (type-break-mode, type-break-noninteractive-query):
345         * view.el (View-back-to-mark):
346         * wid-browse.el (widget-browse-action, widget-browse-widget)
347         (widget-browse-widgets, widget-browse-sexp):
348         * widget.el (define-widget-keywords):
349         * xt-mouse.el (xterm-mouse-translate, turn-off-xterm-mouse-tracking):
350         Mark unused parameters.
352         * align.el (align-adjust-col-for-rule): Mark unused parameter.
353         (align-areas): Remove unused variable `look'.
354         (align-region): Remove unused variables `real-end' and `pos-list'.
356         * apropos.el (apropos-score-doc): Remove unused variable `i'.
358         * bindings.el (mode-line-modified, mode-line-remote):
359         Mark unused parameters.
360         (mode-line-mule-info): Mark unused parameter; don't quote `lambda'.
362         * buff-menu.el (Buffer-menu-revert-function): Mark unused parameters.
363         (Buffer-menu-mode): Mark unused parameter; don't quote `lambda'.
365         * comint.el (comint-history-isearch-pop-state)
366         (comint-postoutput-scroll-to-bottom, comint-truncate-buffer)
367         (comint-strip-ctrl-m, comint-read-noecho): Mark unused parameters.
368         (comint-substitute-in-file-name): Doc fix.
370         * completion.el (cmpl-statistics-block): Mark unused parameter.
371         (add-completions-from-tags-table, add-completions-from-lisp-buffer)
372         (save-completions-to-file, load-completions-from-file):
373         Remove unused local variable `e'.
375         * composite.el (compose-chars): Remove unused variable `len'.
376         (lgstring-insert-glyph): Remove unused variable `g'.
377         (compose-glyph-string): Remove unused variables `ascent',
378         `descent', `lbearing' and `rbearing'.
379         (compose-glyph-string-relative): Remove unused variables
380         `lbearing', `rbearing' and `wadjust'.
381         (compose-gstring-for-graphic): Remove unused variables `header',
382         `wadjust', `xoff' and `yoff'.  Use `let', not `let*'.
383         (compose-gstring-for-terminal): Remove unused variables `header'
384         and `nchars'.  Use `let', not `let*'.
386         * cus-edit.el (Custom-set, Custom-save, custom-reset)
387         (Custom-reset-current, Custom-reset-saved, Custom-reset-standard)
388         (Custom-buffer-done, custom-buffer-create-internal)
389         (custom-browse-visibility-action, custom-browse-group-tag-action)
390         (custom-browse-variable-tag-action, custom-browse-face-tag-action)
391         (widget-magic-mouse-down-action, custom-toggle-parent)
392         (custom-add-parent-links, custom-toggle-hide-variable)
393         (custom-face-edit-value-visibility-action, custom-face-edit-fix-value)
394         (custom-toggle-hide-face, face, hook, custom-group-link-action)
395         (custom-face-menu-create, custom-variable-menu-create, get)
396         (custom-group-menu-create, Custom-no-edit): Mark unused parameters.
397         (custom-reset-standard-save-and-update): Remove unused variable `value'.
398         (customize-apropos): Remove unused variable `tests'.
399         (custom-group-value-create): Remove unused variable `hidden-p'.
400         (sort-fold-case): Declare.
402         * cus-theme.el (custom-reset-standard-faces-list)
403         (custom-reset-standard-variables-list): Declare.
404         (customize-create-theme, custom-theme-revert, custom-theme-write)
405         (custom-theme-choose-mode, customize-themes, custom-theme-save):
406         Mark unused parameters.
408         * dabbrev.el (dabbrev-completion): Remove unused variable `init'.
410         * delim-col.el (delimit-columns-max): Move defvar before first use.
412         * descr-text.el (describe-char-categories): Don't quote `lambda'.
413         (describe-char): Don't quote `lambda'.  Mark unused parameter.
415         * desktop.el (desktop-save-buffer-p): Mark unused parameter.
416         (auto-insert): Declare.
417         (desktop-restore-file-buffer): Rename desktop-* parameters;
418         mark unused ones.
419         (desktop-create-buffer): Rename desktop-* parameters and bind them.
420         (desktop-buffer): Rename desktop-* parameters.
422         * dframe.el (x-sensitive-text-pointer-shape, x-pointer-shape): Declare.
423         (dframe-reposition-frame-xemacs, dframe-help-echo)
424         (dframe-hack-buffer-menu, dframe-set-timer, dframe-set-timer-internal):
425         Mark unused parameters.
427         * dired-aux.el (backup-extract-version-start, overwrite-query)
428         (overwrite-backup-query, rename-regexp-query)
429         (rename-non-directory-query): Declare.
430         (dired-shell-stuff-it, dired-do-create-files): Mark unused parameters.
431         (dired-add-entry): Remove unused variable `orig-file-name'.
432         (dired-copy-file-recursive): Remove unused variable `dirfailed'.
433         Use parameter PRESERVE-TIME instead of accessing dynamic variable
434         `dired-copy-preserve-time' directly.
435         (dired-do-create-files-regexp): Remove unused variable `fn-count'.
436         (dired-insert-subdir-newpos): Rename unused variable `pos'.
438         * dired-x.el (dired-omit-size-limit): Move defcustom before first use.
439         (dired-virtual-revert, dired-make-relative-symlink):
440         Mark unused parameters.
441         (manual-program): Declare.
442         (dired-x-hands-off-my-keys): Rename parameters of lambda expression.
443         (inode, s, mode, nlink, uid, gid, size, time, name, sym): Declare them,
444         wrapped in `with-no-warnings' to avoid replacing one warning by another.
446         * dirtrack.el (dirtrack): Remove unused variable `multi-line'.
448         * dos-fns.el (dos-8+3-filename): Remove unused variable `i'.
450         * echistory.el (electric-history-in-progress, Helper-return-blurb):
451         Declare.
453         * edmacro.el (edmacro-finish-edit): Remove unused variable `kmacro'.
455         * electric.el (Electric-command-loop): Rename parameter
456         INHIBIT-QUIT to INHIBIT-QUITTING and bind `inhibit-quit'.
458         * expand.el (expand-in-literal): Remove unused variable `here'.
460         * facemenu.el (facemenu-add-new-color):
461         Remove unused variable `docstring'.
463         * faces.el (face-id, make-face-bold, make-face-unbold, make-face-italic)
464         (make-face-unitalic, make-face-bold-italic): Mark unused parameters.
465         (face-attr-construct): Mark unused parameter.  Doc fix.
466         (read-color): Remove unused variable `hex-string'.
468         * files.el (parse-colon-path): Rename argument CD-PATH to SEARCH-PATH.
469         (locate-dominating-file): Remove unused vars `prev-file' and `user'.
470         (remote-file-name-inhibit-cache, revert-buffer): Clean up docstrings.
471         (display-buffer-other-frame): Remove unused variable `old-window'.
472         (kill-buffer-hook): Declare.
473         (insert-file-contents-literally, set-auto-mode, risky-local-variable-p):
474         Mark unused parameters.
475         (after-find-file): Pass 1 to `auto-save-mode', not t.
477         * files-x.el (auto-insert): Declare.
478         (modify-file-local-variable-prop-line): Remove unused variable `val'.
480         * find-lisp.el (find-lisp-find-dired-internal): Remove unused
481         variable `buf'.  Mark unused parameter.
482         (find-lisp-insert-directory): Mark unused parameter.
484         * format.el (format-decode-run-method): Mark unused parameter; doc fix.
485         (format-encode-region): Remove unused variables `cur-buf' and `result'.
486         (format-common-tail): Remove, unused.
487         (format-deannotate-region): Remove unused variable `loc'.
488         (format-annotate-region): Remove unused variable `p'.
489         (format-annotate-single-property-change): Remove unused variables
490         `default' and `tail'.
492         * forms.el (read-file-filter): Declare.
493         (forms--iif-hook, forms--revert-buffer): Mark unused parameters.
495         * frame.el (frame-creation-function-alist): Mark unused parameter.
496         (frame-geom-spec-cons): Pass FRAME to `frame-geom-value-cons'.
498         * hilit-chg.el (hilit-chg-cust-fix-changes-face-list, hilit-chg-clear):
499         Remove unused parameters.
500         (hilit-chg-set-face-on-change): Remove unused variable `beg-decr'.
501         (highlight-compare-with-file): Remove unused variable `buf-b-read-only'.
503         * htmlfontify.el (hfy-default-footer, hfy-decor, hfy-invisible)
504         (hfy-parse-tags-buffer, hfy-prepare-index-i, hfy-prepare-index)
505         (hfy-prepare-tag-map): Mark unused parameters.
506         (htmlfontify-buffer): Use `called-interactively-p'.
508         * ibuf-ext.el (ibuffer-do-kill-lines, ibuffer-jump-to-buffer)
509         (ibuffer-copy-filename-as-kill, ibuffer-mark-on-buffer)
510         (ibuffer-do-occur): Mark unused parameters.
511         (ibuffer-forward-next-marked): Remove unused variable `curmark'.
512         (ibuffer-diff-buffer-with-file-1): Remove unused variable `proc'.
514         * ibuffer.el: Don't quote `lambda'.
515         (ibuffer-count-marked-lines, ibuffer-count-deletion-lines)
516         (ibuffer-unmark-all, ibuffer-toggle-marks, ibuffer-redisplay-engine):
517         Mark unused parameters.
519         * ido.el (ido-mode, ido-wide-find-dir-or-delete-dir)
520         (ido-completing-read): Mark unused parameters.
521         (ido-copy-current-word): Mark unused parameters;
522         remove unused variable `name'.
523         (ido-sort-merged-list): Remove unused parameter `dirs'.
525         * ielm.el (ielm-input-sender): Mark unused parameter.
526         (ielm-string, ielm-form, ielm-pos, ielm-result, ielm-error-type)
527         (ielm-output, ielm-wbuf, ielm-pmark): Declare.
528         (ielm-eval-input): Rename argument IELM-STRING to INPUT-STRING to keep
529         `ielm-string' as a dynamic variable accessible from the IELM prompt.
530         Bind `ielm-string' to INPUT-STRING.  Remove unused variable `err'.
532         * image-dired.el (image-dired-display-thumbs): Remove unused
533         variables `curr-file' and `count'.
534         (image-dired-remove-tag): Remove unused variable `start'.
535         (image-dired-tag-files, image-dired-create-thumbs): Remove unused
536         variable `curr-file'
537         (image-dired-rotate-original): Remove unused variable `temp-file'.
538         (image-dired-mouse-select-thumbnail, image-dired-mouse-toggle-mark):
539         Remove unused variable `file'.
540         (image-dired-gallery-generate): Remove unused variable `curr'.
541         (image-dired-dired-edit-comment-and-tags): Mark unused parameters.
543         * indent.el (tab-to-tab-stop): Remove unused variable `opoint'.
545         * info-xref.el (info-xref-goto-node-p): Remove unused variable `err'.
547         * informat.el (texinfo-command-start, texinfo-command-end): Declare.
549         * isearch.el (minibuffer-history-symbol): Declare.
550         (isearch-edit-string): Remove unused variable `err'.
551         (isearch-message-prefix, isearch-message-suffix):
552         Mark unused parameters.
554         * ls-lisp.el (ls-lisp-insert-directory): Remove unused variable `fil'.
556         * macros.el (insert-kbd-macro): Remove unused variable `mods'.
558         * makesum.el (double-column): Remove unused variable `cnt'.
560         * misearch.el (multi-isearch-pop-state): Mark unused parameter.
561         (ido-ignore-item-temp-list): Declare.
563         * mouse-drag.el (mouse-drag-throw): Remove unused variables
564         `mouse-delta', `window-last-row', `mouse-col-delta', `window-last-col',
565         `adjusted-mouse-col-delta' and `adjusted-mouse-delta'.
566         (mouse-drag-drag): Remove unused variables `mouse-delta' and
567         `mouse-col-delta'.
569         * mouse-sel.el (mouse-extend-internal):
570         Remove unused variable `orig-window-frame'.
572         * pcomplete.el (pcomplete-args, pcomplete-begins, pcomplete-last)
573         (pcomplete-index, pcomplete-stub, pcomplete-seen, pcomplete-norm-func):
574         Move declarations before first use.
575         (pcomplete-opt): Mark unused parameters; doc fix.
577         * proced.el (proced-revert): Mark unused parameter.
578         (proced-send-signal): Remove unused variable `err'.
580         * ps-print.el (ps-print-preprint-region, ps-print-preprint):
581         Rename parameter PREFIX-ARG to ARG.
582         (ps-basic-plot-string, ps-basic-plot-whitespace):
583         Mark unused parameters.
585         * replace.el (replace-count): Define.
586         (occur-revert-function): Mark unused parameters.
587         (ido-ignore-item-temp-list, isearch-error, isearch-forward)
588         (isearch-case-fold-search, isearch-string): Declare.
589         (occur-engine): Rename parameter CASE-FOLD-SEARCH to CASE-FOLD and
590         bind `case-fold-search'.  Remove unused variables `beg' and `end',
591         and simplify.
592         (replace-eval-replacement): Rename parameter REPLACE-COUNT to
593         COUNT and bind `replace-count'.
594         (replace-loop-through-replacements): Rename parameter REPLACE-COUNT
595         to COUNT.
597         * savehist.el (print-readably, print-string-length): Declare.
599         * shadowfile.el (shadow-expand-cluster-in-file-name):
600         Remove unused variable `cluster'.
601         (shadow-copy-file): Remove unused variable `i'.
602         (shadow-noquery, shadow-clusters, shadow-site-cluster)
603         (shadow-parse-fullname, shadow-parse-name, shadow-define-cluster)
604         (shadow-define-literal-group, shadow-define-regexp-group)
605         (shadow-make-group, shadow-shadows-of): Clean up docstrings.
607         * shell.el (shell-filter-ctrl-a-ctrl-b): Mark unused parameter.
608         (shell): Use `called-interactively-p'.
609         (shell-directory-tracker): Remove unused variable `chdir-failure'.
611         * simple.el (compilation-context-lines, comint-file-name-quote-list)
612         (comint-file-name-chars, comint-delimiter-argument-list): Declare.
613         (delete-backward-char): Remove unused variable `ocol'.
614         (minibuffer-avoid-prompt, minibuffer-history-isearch-pop-state)
615         (line-move-1, event-apply-alt-modifier, event-apply-super-modifier)
616         (event-apply-hyper-modifier, event-apply-shift-modifier)
617         (event-apply-control-modifier, event-apply-meta-modifier):
618         Mark unused parameters.
619         (undo-make-selective-list): Remove duplicate variable `undo-elt'.
620         (normal-erase-is-backspace-mode): Remove unused variable `old-state'.
622         * speedbar.el (speedbar-ignored-directory-expressions)
623         (speedbar-supported-extension-expressions, speedbar-directory-buttons)
624         (speedbar-find-file, speedbar-dir-follow)
625         (speedbar-directory-buttons-follow, speedbar-tag-find)
626         (speedbar-buffer-buttons, speedbar-buffer-buttons-temp)
627         (speedbar-buffers-line-directory, speedbar-buffer-click):
628         Mark unused parameters.
629         (speedbar-tag-file): Remove unused variable `mode'.
630         (speedbar-buffers-tail-notes): Remove unused variable `mod'; simplify.
632         * strokes.el (strokes-decode-buffer): Remove unused variable `ext'.
634         * talk.el (talk): Remove unused variable `display'.
636         * tar-mode.el (tar-subfile-save-buffer): Remove unused variable `name'.
637         (tar-write-region-annotate): Mark unused parameter.
639         * time.el (now, time, load, mail, 24-hours, hour, 12-hours, am-pm)
640         (minutes, seconds, time-zone, day, year, monthname, month, dayname):
641         Declare them, wrapped in `with-no-warnings' to avoid replacing one
642         warning by another.
644         * time-stamp.el (time-stamp-string-preprocess):
645         Remove unused variable `require-padding'.
647         * tree-widget.el (widget-glyph-enable): Declare.
648         (tree-widget-action): Mark unused parameter.
650         * w32-fns.el (x-get-selection): Mark unused parameter.
651         (autoload-make-program, generated-autoload-file): Declare.
653         * wdired.el (wdired-revert): Mark unused parameters.
654         (wdired-xcase-word): Remove unused variable `err'.
656         * whitespace.el (whitespace-buffer-changed): Mark unused parameters.
657         (whitespace-help-scroll): Remove unused variable `data-help'.
659         * wid-edit.el (widget-mouse-help, widget-overlay-inactive)
660         (widget-image-insert, widget-after-change, default)
661         (widget-default-format-handler, widget-default-notify)
662         (widget-default-prompt-value, widget-info-link-action)
663         (widget-url-link-action, widget-function-link-action)
664         (widget-variable-link-action, widget-file-link-action)
665         (widget-emacs-library-link-action, widget-emacs-commentary-link-action)
666         (widget-field-prompt-internal, widget-field-action, widget-field-match)
667         (widget-choice-mouse-down-action, toggle, widget-radio-button-notify)
668         (widget-insert-button-action, widget-delete-button-action, visibility)
669         (widget-documentation-link-action, widget-documentation-string-action)
670         (widget-const-prompt-value, widget-regexp-match, symbol)
671         (widget-coding-system-prompt-value)
672         (widget-key-sequence-value-to-external, sexp)
673         (widget-sexp-value-to-internal, character, vector, cons)
674         (widget-choice-prompt-value, widget-boolean-prompt-value)
675         (widget-color--choose-action): Mark unused parameters.
676         (widget-item-match-inline, widget-choice-match-inline)
677         (widget-checklist-match, widget-checklist-match-inline)
678         (widget-group-match): Rename parameter VALUES to VALS.
679         (widget-field-value-set): Remove unused variable `size'.
680         (widget-color-action): Remove unused variables `value' and `start'.
682         * windmove.el (windmove-wrap-loc-for-movement): Remove unused
683         variable `dir'.  Doc fix.
684         (windmove-find-other-window): Don't pass it.
686         * window.el (count-windows): Mark unused parameter.
687         (bw-adjust-window): Remove unused variable `err'.
689         * woman.el (woman-file-name): Remove unused variable `default'.
690         (woman-expand-directory-path): Rename parameters WOMAN-MANPATH and
691         WOMAN-PATH to PATH-DIRS and PATH-REGEXPS, respectively.
692         (global-font-lock-mode): Declare.
693         (woman-decode-region): Mark unused parameter.
694         (woman-get-tab-stop): Rename parameter TAB-STOP-LIST to TAB-STOPS.
696         * x-dnd.el (x-dnd-default-test-function, x-dnd-handle-old-kde)
697         (x-dnd-handle-xdnd, x-dnd-handle-motif): Mark unused parameters.
698         (x-dnd-handle-moz-url): Remove unused variable `title'.
699         (x-dnd-handle-xdnd): Remove unused variables `x', `y' and `ret-action'.
701         * xml.el (xml-parse-tag, xml-parse-attlist):
702         Remove unused variable `pos'.
704 2011-04-19  Glenn Morris  <rgm@gnu.org>
706         * calendar/cal-tex.el (cal-tex-list-holidays, cal-tex-cursor-month)
707         (cal-tex-cursor-week, cal-tex-cursor-week2, cal-tex-cursor-week-iso)
708         (cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week)
709         (cal-tex-cursor-filofax-daily, cal-tex-mini-calendar)
710         * calendar/cal-html.el (cal-html-insert-minical):
711         * calendar/diary-lib.el (diary-list-entries-1, diary-list-entries)
712         (calendar-mark-date-pattern):
713         Prefix "unused" locals.
715         * calendar/cal-dst.el (dst-adjust-time): Remove never-implemented
716         optional argument `style'.
718         * calendar/appt.el (appt-make-list):
719         * calendar/cal-china.el (calendar-chinese-date-string):
720         * calendar/cal-hebrew.el (calendar-hebrew-list-yahrzeits)
721         (diary-hebrew-yahrzeit):
722         * calendar/cal-tex.el (cal-tex-last-blank-p, cal-tex-cursor-week2):
723         * calendar/calendar.el (calendar-generate-window):
724         * calendar/time-date.el (time-to-days):
725         Remove unused local variables.
727 2011-04-18  Chong Yidong  <cyd@stupidchicken.com>
729         * emacs-lisp/tabulated-list.el (tabulated-list-mode): Use a custom
730         glyphless-char-display table.
731         (tabulated-list-glyphless-char-display): New var.
733 2011-04-18  Sam Steingold  <sds@gnu.org>
735         * vc/add-log.el (change-log-font-lock-keywords): Add "Thanks to"
736         to acknowledgments.
738 2011-04-17  Glenn Morris  <rgm@gnu.org>
740         * calendar/diary-lib.el (diary-sexp-entry):
741         * calendar/holidays.el (holiday-sexp):
742         Set debug-on-error rather than the removed stack-trace-on-error.
744 2011-04-16  Glenn Morris  <rgm@gnu.org>
746         * progmodes/f90.el: Use lexical-binding.
747         (f90-get-correct-indent): Remove unnecessary local variable `cont'.
749 2011-04-15  Stefan Monnier  <monnier@iro.umontreal.ca>
751         * mail/sendmail.el (mail-mode-map): Use completion-at-point.
752         (mail-mode): Setup mailalias completion here instead.
753         * mail/mailalias.el: Use lexical-binding.
754         (pattern, mailalias-done): Declare dynamic.
755         (mail-completion-at-point-function): New function, from mail-complete.
756         (mail-complete): Use it.
757         (mail-completion-expand): New function.
758         (mail-get-names): Use it.
759         (mail-directory, mail-directory-process, mail-directory-stream):
760         Don't use `pattern' for lexically bound arg.
762         * emacs-lisp/lisp-mode.el (eval-defun-2): Use eval-sexp-add-defvars.
764         * htmlfontify.el (hfy-etags-cmd): Remove inoperant eval-and-compile.
765         (hfy-e2x-etags-cmd, hfy-etags-cmd-alist-default)
766         (hfy-etags-cmd-alist): Don't eval-and-compile any more.
768         * emacs-lisp/bytecomp.el (byte-temp-output-buffer-show)
769         (byte-save-window-excursion, byte-temp-output-buffer-setup)
770         (byte-interactive-p): Define them again, for use when inlining
771         old code.
773 2011-04-15  Juanma Barranquero  <lekktu@gmail.com>
775         * loadup.el: Use `string-to-number', not `string-to-int'.
777 2011-04-15  Stefan Monnier  <monnier@iro.umontreal.ca>
779         * progmodes/gud.el (gud-gdb): Use completion-at-point instead of
780         gud-gdb-complete-command.
781         (gud-gdb-completions): New function, from gud-gdb-complete-command.
782         (gud-gdb-completion-at-point): New function.
783         (gud-gdb-completions): Remove.
785 2011-04-14  Michael Albinus  <michael.albinus@gmx.de>
787         * net/tramp-sh.el (tramp-sh-handle-file-attributes): Handle the case
788         when the scripts fail.  Use `tramp-do-file-attributes-with-ls' then.
789         (tramp-do-copy-or-rename-file-out-of-band): Do not check any longer
790         whether `executable-find' is bound.
792         * net/tramp-smb.el (tramp-smb-handle-copy-file): Fix docstring.
794 2011-04-14  Stefan Monnier  <monnier@iro.umontreal.ca>
796         * minibuffer.el (completion-in-region-mode-predicate)
797         (completion-in-region-mode--predicate): New vars.
798         (completion-in-region, completion-in-region--postch)
799         (completion-in-region-mode): Use them.
800         (completion--capf-wrapper): Also return the hook function.
801         (completion-at-point, completion-help-at-point):
802         Adjust and provide a predicate.
804         Preserve arg names for advice of subr and lexical functions (bug#8457).
805         * help-fns.el (help-function-arglist): Consolidate the subr and
806         new-byte-code cases.  Add argument `preserve-names' to extract names
807         from the docstring when needed.
808         * emacs-lisp/advice.el (ad-define-subr-args, ad-undefine-subr-args)
809         (ad-subr-args-defined-p, ad-get-subr-args, ad-subr-arglist): Remove.
810         (ad-arglist): Use help-function-arglist's new arg.
811         (ad-definition-type): Use cond.
813 2011-04-13  Juanma Barranquero  <lekktu@gmail.com>
815         * autorevert.el (auto-revert-handler):
816         Bind `remote-file-name-inhibit-cache', not `tramp-cache-inhibit-cache',
817         which was removed in 2010-10-02T13:21:43Z!michael.albinus@gmx.de.
818         Don't quote lambda.
820         * image-mode.el (image-transform-set-scale):
821         Fix change in 2011-04-09T20:28:01Z!cyd@stupidchicken.com.
823 2011-04-12  Lars Magne Ingebrigtsen  <larsi@gnus.org>
825         * net/network-stream.el (network-stream-open-starttls): Only do
826         opportunistic STARTTLS upgrades if we have built-in gnutls support.
827         Upgrades via gnutls-cli are too slow to be done opportunistically.
829 2011-04-12  Juanma Barranquero  <lekktu@gmail.com>
831         * dframe.el (dframe-current-frame): Remove spurious quote.
833 2011-04-12  Glenn Morris  <rgm@gnu.org>
835         * calendar/cal-tex.el (cal-tex-end-document):
836         Try to automatically use latin1 input if needed.
838         * calendar/cal-hebrew.el (diary-hebrew-rosh-hodesh):
839         Don't try to cons a mark onto an empty element.
841 2011-04-11  Leo Liu  <sdl.web@gmail.com>
843         * ido.el (ido-buffer-internal): Allow method 'kill for virtual
844         buffers.
845         (ido-kill-buffer-at-head): Support killing virtual buffers.
847 2011-04-10  Chong Yidong  <cyd@stupidchicken.com>
849         * minibuffer.el (completion-show-inline-help): New var.
850         (completion--do-completion, minibuffer-complete)
851         (minibuffer-force-complete, minibuffer-complete-word):
852         Inhibit minibuffer messages if completion-show-inline-help is nil.
854         * icomplete.el (icomplete-mode): Bind completion-show-inline-help
855         to avoid interference from inline help (Bug#5849).
857 2011-04-10  Leo Liu  <sdl.web@gmail.com>
859         * emacs-lisp/tabulated-list.el (tabulated-list-print-entry):
860         Fix typo.
862 2011-04-09  Chong Yidong  <cyd@stupidchicken.com>
864         * image-mode.el (image-toggle-display-image): Signal an error if
865         not in Image mode.
866         (image-transform-mode, image-transform-resize)
867         (image-transform-set-rotation): Doc fix.
868         (image-transform-set-resize): Delete.
869         (image-transform-set-scale, image-transform-fit-to-height)
870         (image-transform-fit-to-width): Handle image-toggle-display-image
871         and image-transform-resize directly.
873 2011-04-08  Sho Nakatani  <lay.sakura@gmail.com>
875         * doc-view.el (doc-view-fit-width-to-window)
876         (doc-view-fit-height-to-window, doc-view-fit-page-to-window):
877         New functions for fitting the shown image to the Emacs window size.
878         (doc-view-mode-map): Add bindings for the new functions.
880 2011-04-08  Juanma Barranquero  <lekktu@gmail.com>
882         * vc-annotate.el (vc-annotate-show-log-revision-at-line):
883         Fix typo in docstring.
885 2011-04-08  Eli Zaretskii  <eliz@gnu.org>
887         * files.el (file-size-human-readable): Produce one digit after
888         decimal, like "ls -lh" does.
890         * ls-lisp.el (ls-lisp-format-file-size): Allow for 7 characters in
891         the file size representation.
893         * simple.el (list-processes): If async subprocesses are not
894         available, error out with a clear error message.
896 2011-04-08  Chong Yidong  <cyd@stupidchicken.com>
898         * help.el (help-form-show): New function, to be called from C.
899         Put help-form output in a buffer named differently than *Help*.
901 2011-04-08  Eli Zaretskii  <eliz@gnu.org>
903         * files.el (file-size-human-readable): New function.
905         * ls-lisp.el (ls-lisp-format-file-size): Use it, instead of
906         computing the representation inline.  Don't require `cl'.
908 2011-04-08  Glenn Morris  <rgm@gnu.org>
910         * man.el (Man-page-header-regexp): Solaris < 2.6 no longer supported.
912         * net/browse-url.el (browse-url-firefox):
913         Test system-type, not system-configuration.
915         * vc/log-edit.el (log-edit-empty-buffer-p): New function.
916         (log-edit-insert-cvs-template, log-edit-insert-cvs-rcstemplate):
917         Use log-edit-empty-buffer-p.  (Bug#7598)
919         * net/rlogin.el (rlogin-process-connection-type): Simplify.
920         (rlogin-mode-map): Initialize in the defvar.
921         (rlogin): Use ignore-errors.
923         * replace.el (occur-mode-map): Some fixes for menu items.
925 2011-04-07  Aaron S. Hawley  <aaron.s.hawley@gmail.com>
927         * play/morse.el (denato-region): Handle varying case.  (Bug#8386)
929 2011-04-06  Chong Yidong  <cyd@stupidchicken.com>
931         * emacs-lisp/cconv.el (cconv--analyse-use): Ignore "ignored" when
932         issuing unused warnings.
934         * emacs-lisp/tabulated-list.el (tabulated-list-print): Use lambda
935         macro directly.
937         * simple.el: Lisp reimplement of list-processes.  Based on an
938         earlier reimplementation by Leo Liu, but using tabulated-list.el.
939         (process-menu-mode): New major mode.
940         (list-processes--refresh, list-processes):
941         (process-menu-visit-buffer): New functions.
943         * files.el (save-buffers-kill-emacs): Don't assume any return
944         value of list-processes, which is undocumented anyway.
946 2011-04-06  Chong Yidong  <cyd@stupidchicken.com>
948         * emacs-lisp/tabulated-list.el: New file.
950         * emacs-lisp/package.el: Use Tabulated List mode.
951         (package-menu-mode-map): Inherit from tabulated-list-mode-map.
952         (package-menu-mode): Derive from tabulated-list-mode.  Set up the
953         table format using Tabulated List mode variables.
954         (package--push): New macro, replacing package-list-maybe-add.
955         (package-menu--generate): Use package--push.  Renamed from
956         package--generate-package-list.
957         (package-menu-refresh, list-packages): Use it.
958         (package-menu--print-info): Rename from package-print-package.
959         Return insertion data instead of inserting it directly.
960         (package-menu-describe-package, package-menu-execute):
961         Use tabulated-list-get-id.
962         (package-menu-mark-delete, package-menu-mark-install)
963         (package-menu-mark-unmark, package-menu-backup-unmark)
964         (package-menu-mark-obsolete-for-deletion):
965         Use tabulated-list-put-tag.
966         (package--list-packages, package-menu-revert)
967         (package-menu-get-package, package-menu-get-version)
968         (package-menu-sort-by-column): Functions deleted.
969         (package-menu-package-list, package-menu-sort-key): Vars deleted.
970         (package-menu--status-predicate, package-menu--version-predicate)
971         (package-menu--name-predicate)
972         (package-menu--description-predicate): Handle arguments in the
973         Tabulated List format.
974         (package-list-packages-no-fetch): Call list-packages.
976 2011-04-06  Juanma Barranquero  <lekktu@gmail.com>
978         * files.el (after-find-file-from-revert-buffer): Remove variable.
979         (after-find-file): Don't bind it.
980         (revert-buffer-in-progress-p): New variable.
981         (revert-buffer): Bind it.
982         Pass nil for `after-find-file-from-revert-buffer'.
984         * saveplace.el (save-place-find-file-hook): Use new variable
985         `rever-buffer-in-progress-p', not `after-find-file-from-revert-buffer'.
987 2011-04-06  Glenn Morris  <rgm@gnu.org>
989         * Makefile.in (AUTOGEN_VCS): New variable.
990         (autoloads): Use $AUTOGEN_VCS.
992         * calendar/cal-move.el (calendar-scroll-toolkit-scroll): New function.
993         * calendar/calendar.el (calendar-mode-map):
994         Check for toolkit scroll bars.  (Bug#8305)
996 2011-04-05  Chong Yidong  <cyd@stupidchicken.com>
998         * minibuffer.el (completion-in-region--postch)
999         (completion-in-region-mode): Remove unnecessary messages.
1001 2011-04-05  Juanma Barranquero  <lekktu@gmail.com>
1003         * font-lock.el (font-lock-refresh-defaults):
1004         Don't bind `hi-lock--inhibit-font-lock-hook', removed in
1005         2010-10-09T04:09:19Z!cyd@stupidchicken.com and 2010-10-11T23:57:49Z!lekktu@gmail.com (2010-10-12).
1007         * info.el (Info-directory-list, Info-read-node-name-2)
1008         (Info-split-parameter-string): Doc fixes.
1009         (Info-virtual-nodes): Reflow docstring.
1010         (Info-find-file, Info-directory-toc-nodes, Info-history-toc-nodes)
1011         (Info-apropos-toc-nodes, info-finder, Info-get-token)
1012         (Info-find-emacs-command-nodes, Info-speedbar-key-map):
1013         Fix typos in docstrings.
1014         (Info-revert-buffer-function, Info-search, Info-isearch-pop-state)
1015         (Info-speedbar-hierarchy-buttons, Info-speedbar-goto-node)
1016         (Info-speedbar-buttons, Info-desktop-buffer-misc-data)
1017         (Info-restore-desktop-buffer): Mark unused parameters.
1018         (Info-directory-find-file, Info-directory-find-node)
1019         (Info-history-find-file, Info-history-find-node, Info-toc-find-node)
1020         (Info-virtual-index-find-node, Info-apropos-find-file)
1021         (Info-apropos-find-node, Info-finder-find-file, Info-finder-find-node):
1022         Mark unused parameters; fix typos in docstrings.
1023         (Info-virtual-index): Remove unused local variable `nodename'.
1025 2011-04-05  Deniz Dogan  <deniz@dogan.se>
1027         * net/rcirc.el: Update my e-mail address.
1028         (rcirc-mode-map): Remove M-o binding.
1030 2011-04-05  Chong Yidong  <cyd@stupidchicken.com>
1032         * startup.el (command-line): Save the cursor's theme-face
1033         directly, instead of using face-override-spec.
1035         * custom.el (load-theme): Minor optimization in assigning faces.
1037 2011-04-04  Juanma Barranquero  <lekktu@gmail.com>
1039         * help-fns.el (describe-variable): Complete all variables having
1040         documentation, including keywords.
1041         http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00112.html
1043 2011-04-04  Juanma Barranquero  <lekktu@gmail.com>
1045         Convert to lexical-binding.
1047         * bs.el (bs-refresh, bs-sort-buffer-interns-are-last)
1048         (bs--get-marked-string, bs--get-modified-string)
1049         (bs--get-readonly-string, bs--get-size-string, bs--get-name)
1050         (bs--get-mode-name, bs--get-file-name): Mark unused arguments.
1051         (bs--configuration-name-for-prefix-arg): Rename argument PREFIX-ARG.
1053         * ehelp.el (electric-help-execute-extended)
1054         (electric-help-ctrl-x-prefix):
1055         * hexl.el (hexl-revert-buffer-function):
1056         * linum.el (linum-after-change, linum-after-scroll):
1057         * emacs-lisp/re-builder.el (reb-auto-update): Mark unused arguments.
1059         * help-fns.el (help-describe-category-set): Remove unused ERR variable.
1061 2011-04-04  Daiki Ueno  <ueno@unixuser.org>
1063         * epa-dired.el:
1064         * epa-mail.el:
1065         * epa-hook.el:
1066         * epa-file.el:
1067         * epa.el:
1068         * epg.el: Use lexical binding.
1070 2011-04-03  Chong Yidong  <cyd@stupidchicken.com>
1072         * dired-aux.el (dired-create-files): Add docstring (Bug#7970).
1074         * textmodes/flyspell.el (flyspell-word): Recognize default
1075         dictionary case for flyspell-mark-duplications-exceptions.
1076         Use regexp matching for languages.
1077         (flyspell-mark-duplications-exceptions): Add "that" and "had" for
1078         default dictionary (Bug#7926).
1080 2011-04-02  Chong Yidong  <cyd@stupidchicken.com>
1082         * emacs-lisp/package.el (package--with-work-buffer):
1083         Recognize https URLs.
1085         * net/network-stream.el: Move from gnus/proto-stream.el.
1086         Change prefix to network-stream throughout.
1087         (open-protocol-stream): Merge into open-network-stream, leaving
1088         open-protocol-stream as an alias.  Handle nil BUFFER args.
1090         * subr.el (open-network-stream): Move to net/network-stream.el.
1092 2011-04-02  Glenn Morris  <rgm@gnu.org>
1094         * find-dired.el (find-exec-terminator): New option.
1095         (find-ls-option): Test for -ls support.
1096         (find-ls-subdir-switches): Test for -b in find-ls-option.
1097         (find-dired, find-grep-dired): Doc fixes.
1098         (find-dired): Use find-exec-terminator.
1100         * find-dired.el (find-ls-option, find-ls-subdir-switches)
1101         (find-grep-options): Do not autoload these defcustoms, remove purecopy.
1102         (find-name-arg): Remove purecopy.
1104         * progmodes/grep.el (grep-find-use-xargs): Doc fix.
1105         (grep-compute-defaults): Check for `-exec COMMAND +' support.
1106         Set grep-find-use-xargs, grep-find-command, and grep-find-template
1107         accordingly.  Don't add the null-device if not needed.
1109         * files.el (save-some-buffers): Doc fix.
1111 2011-04-02  Eli Zaretskii  <eliz@gnu.org>
1113         * makefile.w32-in (EMACS): Default to ../src/$(BLD)/emacs.exe.
1115 2011-04-01  Juanma Barranquero  <lekktu@gmail.com>
1117         * progmodes/idlwave.el (idlwave-one-key-select, idlwave-list-abbrevs):
1118         Use `dolist' rather than `mapcar'.
1120 2011-04-01  Stefan Monnier  <monnier@iro.umontreal.ca>
1122         Add lexical binding.
1124         * subr.el (apply-partially): Use new closures rather than CL.
1125         (--dolist-tail--, --dotimes-limit--): Don't declare dynamic.
1126         (dolist, dotimes): Use slightly different expansion for lexical code.
1127         (functionp): Move to C.
1128         (letrec): New macro.
1129         (with-wrapper-hook): Use it and apply-partially instead of CL.
1130         (eval-after-load): Preserve lexical-binding.
1131         (save-window-excursion, with-output-to-temp-buffer): Turn them
1132         into macros.
1134         * simple.el (with-wrapper-hook, apply-partially): Move to subr.el.
1136         * help-fns.el (help-split-fundoc): Return nil if there's nothing else
1137         than the arglist.
1138         (help-add-fundoc-usage): Don't add `Not documented'.
1139         (help-function-arglist): Handle closures, subroutines, and new
1140         byte-code-functions.
1141         (help-make-usage): Remove leading underscores.
1142         (describe-function-1): Handle closures.
1143         (describe-variable): Use special-variable-p for completion.
1145         * files.el (lexical-binding): Declare safe.
1147         * emacs-lisp/pcase.el: Don't use destructuring-bind.
1148         (pcase--memoize): Rename from pcase-memoize.  Change weakness.
1149         (pcase): Add `let' pattern.
1150         Change memoization so it actually works.
1151         (pcase-mutually-exclusive-predicates): Add byte-code-function-p.
1152         (pcase--u1) <guard, pred>: Fix possible shadowing problem.
1153         <let>: New case.
1155         * emacs-lisp/macroexp.el: Use lexical binding.
1156         (macroexpand-all-1): Check obsolete macros.  Expand compiler-macros.
1157         Don't convert ' to #' without checking that it's indeed quoting
1158         a lambda.
1160         * emacs-lisp/lisp-mode.el (eval-last-sexp-1):
1161         Use eval-sexp-add-defvars.
1162         (eval-sexp-add-defvars): New fun.
1164         * emacs-lisp/float-sup.el (pi): Don't declare as dynamically bound.
1166         * emacs-lisp/eieio.el (byte-compile-file-form-defmethod):
1167         Don't autoload.
1168         (eieio-defgeneric-form-primary-only-one): Use `byte-compile' rather
1169         than the internal `byte-compile-lambda'.
1170         (defmethod): Don't hide code under quotes.
1171         (eieio-defmethod): New `code' argument.
1173         * emacs-lisp/eieio-comp.el: Remove.
1175         * emacs-lisp/edebug.el (edebug-eval-defun)
1176         (edebug-eval-top-level-form): Use eval-sexp-add-defvars.
1177         (edebug-toggle): Avoid `eval'.
1179         * emacs-lisp/disass.el (disassemble-internal): Handle new
1180         `closure' objects.
1181         (disassemble-1): Handle new byte codes.
1183         * emacs-lisp/cl.el (pushnew): Silence warning.
1185         * emacs-lisp/cl-macs.el (cl-byte-compile-block)
1186         (cl-byte-compile-throw): Remove.
1187         (cl-block-wrapper, cl-block-throw): Use compiler-macros instead.
1189         * emacs-lisp/cl-extra.el (cl-macroexpand-all): Properly quote CL
1190         closures.
1192         * emacs-lisp/cconv.el: New file.
1194         * emacs-lisp/bytecomp.el: Use lexical binding instead of
1195         a "bytecomp-" prefix.  Macroexpand everything as a separate phase.
1196         (byte-compile-initial-macro-environment):
1197         Handle declare-function here.
1198         (byte-compile--lexical-environment): New var.
1199         (byte-stack-ref, byte-stack-set, byte-discardN)
1200         (byte-discardN-preserve-tos): New lap codes.
1201         (byte-interactive-p): Don't use any more.
1202         (byte-compile-push-bytecodes, byte-compile-push-bytecode-const2):
1203         New macros.
1204         (byte-compile-lapcode): Use them and handle new lap codes.
1205         (byte-compile-obsolete): Remove.
1206         (byte-compile-arglist-signature): Handle new byte-code arg"lists".
1207         (byte-compile-arglist-warn): Check late def of inlinable funs.
1208         (byte-compile-cl-warn): Don't silence warnings for compiler-macros
1209         since they should have been expanded by now.
1210         (byte-compile--outbuffer): Rename from bytecomp-outbuffer.
1211         (byte-compile-from-buffer): Remove unused second arg.
1212         (byte-compile-preprocess): New function.
1213         (byte-compile-toplevel-file-form): New function to distinguish
1214         file-form calls from outside from file-form calls from hunk-handlers.
1215         (byte-compile-file-form): Simplify.
1216         (byte-compile-file-form-defsubst): Remove.
1217         (byte-compile-file-form-defmumble): Simplify now that
1218         byte-compile-lambda always returns a byte-code-function.
1219         (byte-compile): Preprocess.
1220         (byte-compile-byte-code-maker, byte-compile-byte-code-unmake):
1221         Remove, not used any more.
1222         (byte-compile-arglist-vars, byte-compile-make-lambda-lexenv)
1223         (byte-compile-make-args-desc): New funs.
1224         (byte-compile-lambda): Handle lexical functions.  Always return
1225         a byte-code-function.
1226         (byte-compile-reserved-constants): New var, to make up room for
1227         closed-over variables.
1228         (byte-compile-constants-vector): Obey it.
1229         (byte-compile-top-level): New args `lexenv' and `reserved-csts'.
1230         (byte-compile-macroexpand-declare-function): New function.
1231         (byte-compile-form): Call byte-compile-unfold-bcf to inline immediate
1232         byte-code-functions.
1233         (byte-compile-form): Check obsolescence here.
1234         (byte-compile-inline-lapcode, byte-compile-unfold-bcf): New functions.
1235         (byte-compile-variable-ref): Remove.
1236         (byte-compile-dynamic-variable-op): New fun.
1237         (byte-compile-dynamic-variable-bind, byte-compile-variable-ref)
1238         (byte-compile-variable-set): New funs.
1239         (byte-compile-discard): Add 2 args.
1240         (byte-compile-stack-ref, byte-compile-stack-set)
1241         (byte-compile-make-closure, byte-compile-get-closed-var): New funs.
1242         (byte-compile-funarg, byte-compile-funarg-2): Remove, handled in
1243         macroexpand-all instead.
1244         (byte-compile-quote-form): Remove.
1245         (byte-compile-push-binding-init, byte-compile-not-lexical-var-p)
1246         (byte-compile-bind, byte-compile-unbind): New funs.
1247         (byte-compile-let): Handle let* and lexical binding.
1248         (byte-compile-let*): Remove.
1249         (byte-compile-catch, byte-compile-unwind-protect)
1250         (byte-compile-track-mouse, byte-compile-condition-case):
1251         Handle a new :fun-body form, used for lexical scoping.
1252         (byte-compile-save-window-excursion)
1253         (byte-compile-with-output-to-temp-buffer): Remove.
1254         (byte-compile-defun): Simplify.
1255         (byte-compile-stack-adjustment): New fun.
1256         (byte-compile-out): Use it.
1257         (byte-compile-refresh-preloaded): Don't reload byte-compiler files.
1259         * emacs-lisp/byte-run.el (make-obsolete): Don't set the `byte-compile'
1260         handler any more.
1262         * emacs-lisp/byte-opt.el: Use lexical binding.
1263         (byte-inline-lapcode): Remove (to bytecomp).
1264         (byte-compile-inline-expand): Pay attention to inlining to/from
1265         lexically bound code.
1266         (byte-compile-unfold-lambda): Don't handle byte-code-functions
1267         any more.
1268         (byte-optimize-form-code-walker): Don't handle save-window-excursion
1269         any more and don't call compiler-macros.
1270         (byte-compile-splice-in-already-compiled-code): Remove.
1271         (byte-code): Don't inline any more.
1272         (disassemble-offset): Receive `bytes' as argument rather than via
1273         dynamic scoping.
1274         (byte-compile-tag-number): Declare before first use.
1275         (byte-decompile-bytecode-1): Handle new byte-codes, don't change
1276         `return' even if make-spliceable.
1277         (byte-compile-side-effect-and-error-free-ops): Add stack-ref, remove
1278         obsolete interactive-p.
1279         (byte-optimize-lapcode): Optimize new lap-codes.
1280         Don't trip up on new form of `byte-constant' lap code.
1282         * emacs-lisp/autoload.el (make-autoload): Don't burp on trivial macros.
1284         * emacs-lisp/advice.el (ad-arglist): Use help-function-arglist.
1286         * custom.el (custom-initialize-default, custom-declare-variable):
1287         Use `defvar'.
1289         * Makefile.in (BIG_STACK_DEPTH, BIG_STACK_OPTS, BYTE_COMPILE_FLAGS):
1290         New variables.
1291         (compile-onefile, .el.elc, compile-calc, recompile): Use them.
1292         (COMPILE_FIRST): Add macroexp and cconv.
1293         * makefile.w32-in: Mirror changes in Makefile.in.
1295         * vc/cvs-status.el:
1296         * vc/diff-mode.el:
1297         * vc/log-edit.el:
1298         * vc/log-view.el:
1299         * vc/smerge-mode.el:
1300         * textmodes/bibtex-style.el:
1301         * textmodes/css.el:
1302         * startup.el:
1303         * uniquify.el:
1304         * minibuffer.el:
1305         * newcomment.el:
1306         * reveal.el:
1307         * server.el:
1308         * mpc.el:
1309         * emacs-lisp/smie.el:
1310         * doc-view.el:
1311         * dired.el:
1312         * abbrev.el: Use lexical binding.
1314 2011-04-01  Eli Zaretskii  <eliz@gnu.org>
1316         * info.el (info-display-manual): New function.
1318 2011-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
1320         * loadup.el: Load minibuffer after loaddefs, to use define-minor-mode.
1322 2011-03-31  Tassilo Horn  <tassilo@member.fsf.org>
1324         * net/rcirc.el (rcirc-handler-001): Only authenticate, if there's
1325         an entry for that server in rcirc-authinfo.  (Bug#8385)
1327 2011-03-31  Glenn Morris  <rgm@gnu.org>
1329         * progmodes/f90.el (f90-find-tag-default): Handle multiple `%'.
1331         * generic-x.el (etc-fstab-generic-mode): Add ext4, sysfs keywords.
1333 2011-03-30  Christoph Scholtes  <cschol2112@googlemail.com>
1335         * progmodes/python.el (python-default-interpreter)
1336         (python-python-command-args, python-jython-command-args)
1337         (python-which-shell, python-which-args, python-which-bufname)
1338         (python-file-queue, python-comint-output-filter-function)
1339         (python-toggle-shells, python-shell): Remove obsolete defcustoms,
1340         variables and functions.
1342 2011-03-30  Stefan Monnier  <monnier@iro.umontreal.ca>
1344         * minibuffer.el (completion-table-dynamic): Optimize `boundaries'.
1345         (completion-in-region-mode): New minor mode.
1346         (completion-in-region): Use it.
1347         (completion-in-region--data, completion-in-region-mode-map): New vars.
1348         (completion-in-region--postch): New function.
1349         (completion--capf-misbehave-funs, completion--capf-safe-funs):
1350         New vars.
1351         (completion--capf-wrapper): New function.
1352         (completion-at-point): Use it to track well-behavedness of
1353         hook functions.
1354         (completion-help-at-point): New command.
1356 2011-03-30  Jason Merrill  <jason@redhat.com>  (tiny change)
1358         * vc/add-log.el (add-change-log-entry): Don't use whitespace
1359         syntax class to search for whitespace on a single line
1360         (Message-ID: <4D938140.4030905@redhat.com>).
1362 2011-03-30  Leo Liu  <sdl.web@gmail.com>
1364         * abbrev.el (abbrev-edit-save-to-file, abbrev-edit-save-buffer):
1365         New commands.
1366         (edit-abbrevs-map): Bind them here.
1367         (write-abbrev-file): New optinal arg VERBOSE.  (Bug#5937)
1369 2011-03-29  Ken Manheimer  <ken.manheimer@gmail.com>
1371         * allout.el (allout-hide-by-annotation, allout-flag-region):
1372         Reduce possibility of overlay leakage by making them volatile.
1374         * allout-widgets.el (allout-widgets-tally): Define as nil so the
1375         hash is not shared between buffers.  Mode initialization is
1376         responsible for giving it a useful starting value.
1377         (allout-item-span): Reduce possibility of overlay leakage by
1378         making them volatile.
1379         (allout-widgets-count-buttons-in-region): Add diagnostic function
1380         for tracking down button overlay leaks.
1382 2011-03-29  Leo Liu  <sdl.web@gmail.com>
1384         * ido.el (ido-read-internal): Use the default history var
1385         minibuffer-history if no HISTORY is specified.
1387 2011-03-28  Brian T. Sniffen  <bsniffen@akamai.com>  (tiny change)
1389         * net/imap.el (imap-shell-open, imap-process-connection-type):
1390         Use imap-process-connection-type for 'shell' streams as well as
1391         Kerberos, SSL, other subprocesses.
1393 2011-03-28  Leo Liu  <sdl.web@gmail.com>
1395         * abbrev.el (abbrev-table-empty-p): New function.
1396         (prepare-abbrev-list-buffer): Place empty abbrev tables after
1397         nonempty ones.  (Bug#5937)
1399 2011-03-27  Jan Djärv  <jan.h.d@swipnet.se>
1401         * cus-start.el (all): Add boolean ns-auto-hide-menu-bar.
1403 2011-03-27  Leo Liu  <sdl.web@gmail.com>
1405         * ansi-color.el (ansi-color-names-vector): Allow cons cell value
1406         for foreground and background colors.
1407         (ansi-color-make-color-map): Adapt.
1409 2011-03-25  Leo Liu  <sdl.web@gmail.com>
1411         * midnight.el (midnight-time-float): Remove.  Note it calculates
1412         the microsecond component incorrectly and seconds-to-time does the
1413         same job.
1414         Remove redundant (require 'timer).
1416         * ido.el (ido-read-internal): Simplify with read-from-minibuffer.
1417         (ido-completions): Remove unused arguments.  (Bug#8329)
1419 2011-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
1421         * minibuffer.el (completion--flush-all-sorted-completions):
1422         Remove itself from hook.
1423         (completion-at-point): Let the functions perform the completion
1424         immediately and return nil or t.
1425         * comint.el (comint-dynamic-complete-functions): Now identical to
1426         completion-at-point-functions.
1427         (comint-dynamic-list-input-ring): Remove unused var `index'.
1428         (comint--match-partial-filename, comint--unquote&expand-filename):
1429         New funs, split from comint-match-partial-filename.
1430         (comint-dynamic-complete): Use completion-at-point.
1431         (comint-dynamic-complete-filename): Use comint--match-partial-filename.
1433 2011-03-24  Drew Adams  <drew.adams@oracle.com>
1435         * thingatpt.el: Support `defun'.
1437 2011-03-23  Leo Liu  <sdl.web@gmail.com>
1439         * abbrevlist.el: Move to obsolete/abbrevlist.el.
1441         * help-mode.el (help-mode-finish): Tweak regexp.
1443 2011-03-23  Glenn Morris  <rgm@gnu.org>
1445         * eshell/esh-opt.el (eshell-eval-using-options):
1446         Do not bind unused local variable `eshell-option-stub'.
1448         * progmodes/gdb-mi.el (gdb): Fix typo in previous change.
1450 2011-03-22  Juanma Barranquero  <lekktu@gmail.com>
1452         * emacs-lisp/derived.el (define-derived-mode): Wrap declaration of
1453         keymap variable in `with-no-warnings' to avoid a warning when the
1454         keymap has been already `defconst'ed.
1456 2011-03-22  Leo Liu  <sdl.web@gmail.com>
1458         * abbrev.el (write-abbrev-file): Use utf-8 for writing if it can
1459         encode all chars in abbrevs; otherwise use emacs-mule or
1460         utf-8-emacs.  (Bug#8308)
1462 2011-03-22  Juanma Barranquero  <lekktu@gmail.com>
1464         * simple.el (backward-delete-char-untabify):
1465         Avoid warning about using `delete-backward-char'.
1467         * image.el (image-type-file-name-regexps): Make it variable.
1468         `imagemagick-register-types' modifies it, and the user may want
1469         to add new extensions for known image types.
1470         (imagemagick-register-types): Throw error if not using ImageMagick.
1472 2011-03-22  Leo Liu  <sdl.web@gmail.com>
1474         * net/rcirc.el (rcirc-completion-at-point): Return nil if point is
1475         located before rcirc-prompt-end-marker.
1476         (rcirc-complete): Error if point is not after rcirc prompt.
1477         Handle the case when table is nil.
1478         (rcirc-user-authenticated): Define to fix compiler warning.
1480 2011-03-22  Chong Yidong  <cyd@stupidchicken.com>
1482         * custom.el (custom--inhibit-theme-enable): Make it affect only
1483         custom-theme-set-variables and custom-theme-set-faces.
1484         (provide-theme): Ignore custom--inhibit-theme-enable.
1485         (load-theme): Enable the theme explicitly if NO-ENABLE is non-nil.
1486         (custom-enabling-themes): Delete variable.
1487         (enable-theme): Accept only loaded themes as arguments.
1488         Ignore the special custom-enabled-themes variable.
1489         (custom-enabled-themes): Forbid themes from setting this.
1490         Eliminate use of custom-enabling-themes.
1491         (custom-push-theme): Quote "changed" custom var entry.
1493 2011-03-21  Leo Liu  <sdl.web@gmail.com>
1495         * ido.el (ido-read-internal): Add ido-selected to history instead
1496         of user input.
1498 2011-03-21  Stefan Monnier  <monnier@iro.umontreal.ca>
1500         * subr.el (deferred-action-list, deferred-action-function):
1501         Mark obsolete.
1503 2011-03-21  Leo Liu  <sdl.web@gmail.com>
1505         * vc/log-view.el: Remove (require 'wid-edit), not needed after the
1506         change on 2011-02-13 (bug#8309).
1508         * minibuffer.el (read-file-name-function): Change default value.
1509         (read-file-name--defaults): Rename from read-file-name-defaults.
1510         (read-file-name-default): Rename from read-file-name.
1511         (read-file-name): Call read-file-name-function.
1513 2011-03-21  Glenn Morris  <rgm@gnu.org>
1515         * eshell/esh-opt.el (eshell-eval-using-options, eshell-process-args):
1516         Doc fixes.
1518 2011-03-21  Chong Yidong  <cyd@stupidchicken.com>
1520         * cus-theme.el: Add missing provide statement.
1521         (customize-create-theme): Extract theme value correctly.
1522         (custom-theme-visit-theme): Autoload.
1523         (customize-create-theme): Prompt before inserting default faces.
1525 2011-03-20  Jay Belanger  <jay.p.belanger@gmail.com>
1527         * calc/calc-menu.el (calc-units-menu): Add entries for logarithmic
1528         units and musical notes.
1530 2011-03-20  Leo  <sdl.web@gmail.com>
1532         * ido.el (ido-read-internal): Use completing-read-default.
1533         (ido-completing-read): Fix compatibility with completing-read.
1535 2011-03-20  Christian Ohler  <ohler@gnu.org>
1537         * emacs-lisp/ert.el (ert-run-tests-batch): Remove unused variable.
1538         (ert-delete-all-tests): Use `called-interactively-p' rather than
1539         `interactive-p'.
1540         (ert--make-xrefs-region): Respect END.
1542 2011-03-19  Chong Yidong  <cyd@stupidchicken.com>
1544         * dired-aux.el (dired-create-directory): Signal an error if the
1545         directory already exists (Bug#8246).
1547         * facemenu.el (list-colors-display): Call list-faces-display
1548         inside with-help-window.
1549         (list-colors-print): Use display property to align the final
1550         column, instead of checking window-width.
1552 2011-03-19  Eli Zaretskii  <eliz@gnu.org>
1554         * emerge.el (emerge-metachars): Separate value for ms-dos and
1555         windows-nt systems.
1556         (emerge-protect-metachars): Quote correctly for ms-dos and
1557         windows-nt systems.
1559 2011-03-19  Ralph Schleicher  <rs@ralph-schleicher.de>  (tiny change)
1561         * info.el (info-initialize): Replace all uses of `:' with
1562         path-separator for compatibility with non-Unix systems.
1563         Cache quoting of path-separator.  (Bug#8258)
1565 2011-03-19  Juanma Barranquero  <lekktu@gmail.com>
1567         * avoid.el (mouse-avoidance-mode, mouse-avoidance-nudge-dist)
1568         (mouse-avoidance-threshold, mouse-avoidance-banish-destination)
1569         (mouse-avoidance-mode): Fix typos in docstrings.
1571 2011-03-19  Chong Yidong  <cyd@stupidchicken.com>
1573         * startup.el (package-subdirectory-regexp): Move from package.el.
1574         Omit \\` and \\', and let callers add them.
1576         * emacs-lisp/package.el (package-strip-version)
1577         (package-load-all-descriptors): Add \\` and \\' to
1578         package-subdirectory-regexp before using it.
1579         (package-untar-buffer): New arg DIR; ensure that file untars only
1580         into this expected directory.  Remove superfluous delete-region.
1581         (package-unpack): Caller changed.
1582         (package-tar-file-info): Use package-subdirectory-regexp.
1584 2011-03-18  Stefan Monnier  <monnier@iro.umontreal.ca>
1586         * vc/diff-mode.el (diff-mode-map): Shadow problematic bindings from
1587         diff-mode-shared-map (bug#8284).
1588         (diff-mode-shared-map): Re-introduce some bindings that were problematic.
1590 2011-03-17  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1592         * calendar/time-date.el (format-seconds): Use assoc instead of
1593         assoc-string, since assoc-string doesn't exist in XEmacs.
1595 2011-03-17  Juanma Barranquero  <lekktu@gmail.com>
1597         * custom.el (custom-known-themes): Reflow docstring.
1598         (custom-theme-load-path): Fix typo in docstring.
1599         (load-theme): Fix typo in error message.
1600         (custom-available-themes, custom-variable-theme-value):
1601         Use `let', not `let*'.
1603 2011-03-17  Jay Belanger  <jay.p.belanger@gmail.com>
1605         * calc/README: Mention inclusion of musical notes.
1607         * calc/calc-units.el (calc-lu-quant): Rename from
1608         `calc-logunits-quantity'.
1609         (calcFunc-lupquant): Rename from `calcFunc-powerquant'.
1610         (calcFunc-lufquant): Rename from `calcFunc-fieldquant'.
1611         (calc-db): Rename from `calc-dblevel'.
1612         (calcFunc-dbpower): Rename from `calcFunc-dbpowerlevel'.
1613         (calcFunc-dbfield): Rename from `calcFunc-dbfieldlevel'.
1614         (calc-np): Rename from `calc-nplevel'.
1615         (calcFunc-nppower): Rename from `calcFunc-nppowerlevel'.
1616         (calcFunc-npfield): Rename from `calcFunc-npfieldlevel'.
1617         (calc-lu-plus): Rename from `calc-logunits-add'.
1618         (calcFunc-lupadd): Rename from `calcFunc-lupoweradd'.
1619         (calcFunc-lufadd): Rename from `calcFunc-lufieldadd'.
1620         (calc-lu-minus): Rename from `calc-logunits-sub'.
1621         (calcFunc-lupsub): Rename from `calcFunc-lupowersub'.
1622         (calcFunc-lufsub): Rename from `calcFunc-lufieldsub'.
1623         (calc-lu-times): Rename from `calc-logunits-mul'.
1624         (calcFunc-lupmul): Rename from `calcFunc-lupowermul'.
1625         (calcFunc-lufmul): Rename from `calcFunc-lufieldmul'.
1626         (calc-lu-divide): Rename from `calc-logunits-div'.
1627         (calcFunc-lupdiv): Rename from `calcFunc-lupowerdiv'.
1628         (calcFunc-lufdiv): Rename from `calcFunc-lufielddiv'.
1630         * calc/calc-ext.el (calc-init-extensions): Update the names of the
1631         functions being autoloaded.
1633         * calc/calc.el (calc-lu-power-reference): Rename from
1634         `calc-logunits-power-reference'.
1635         (calc-lu-field-reference): Rename from
1636         `calc-logunits-field-reference'.
1638         * calc/calc-help (calc-l-prefix-help): Mention musical note functions.
1640 2011-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
1642         * minibuffer.el (completion-all-sorted-completions):
1643         Use :completion-cycle-penalty text property if present.
1645 2011-03-16  Ken Manheimer  <ken.manheimer@gmail.com>
1647         * allout.el (allout-yank-processing): Adjust for new rebulleting
1648         regime so bullet being yanked is used without prompting the user
1649         for a choice.
1651 2011-03-16  Juanma Barranquero  <lekktu@gmail.com>
1653         * startup.el (command-line): Warn the user that _emacs is deprecated.
1655 2011-03-16  Juanma Barranquero  <lekktu@gmail.com>
1657         * progmodes/delphi.el (delphi-search-path, delphi-indent-level)
1658         (delphi-verbose, delphi-comment-face, delphi-string-face)
1659         (delphi-keyword-face, delphi-ignore-changes, delphi-indent-line)
1660         (delphi-mode-abbrev-table, delphi-debug-buffer, delphi-tab)
1661         (delphi-find-unit, delphi-find-current-xdef, delphi-fill-comment)
1662         (delphi-new-comment-line, delphi-font-lock-defaults)
1663         (delphi-debug-mode-map, delphi-mode-syntax-table, delphi-mode):
1664         Fix typos in docstrings.
1666 2011-03-15  Ken Manheimer  <ken.manheimer@gmail.com>
1668         * allout.el (allout-make-topic-prefix, allout-rebullet-heading):
1669         Invert the roles of character and string values for INSTEAD, so a
1670         string is used for the more common case of a defaulting prompt.
1672 2011-03-15  Stefan Monnier  <monnier@iro.umontreal.ca>
1674         * progmodes/ruby-mode.el (ruby-backward-sexp):
1675         * progmodes/ebrowse.el (ebrowse-draw-file-member-info):
1676         * play/gamegrid.el (gamegrid-make-face):
1677         * play/bubbles.el (bubbles--grid-width, bubbles--grid-height)
1678         (bubbles--colors, bubbles--shift-mode, bubbles--initialize-images):
1679         * notifications.el (notifications-notify):
1680         * net/xesam.el (xesam-search-engines):
1681         * net/quickurl.el (quickurl-list-insert):
1682         * vc/vc-hg.el (vc-hg-dir-printer): Fix use of case.
1684 2011-03-15  Chong Yidong  <cyd@stupidchicken.com>
1686         * startup.el (command-line): Update package subdirectory regexp.
1688 2011-03-15  Stefan Monnier  <monnier@iro.umontreal.ca>
1690         * allout.el (allout-abbreviate-flattened-numbering)
1691         (allout-mode-deactivate-hook): Fix up obsolescence "date".
1693         * subr.el (read-char-choice): Only show the cursor after the prompt,
1694         not after the answer.
1696 2011-03-15  Kevin Ryde  <user42@zip.com.au>
1698         * help-fns.el (variable-at-point): Skip leading quotes, if any
1699         (bug#8253).
1701 2011-03-15  Stefan Monnier  <monnier@iro.umontreal.ca>
1703         * emacs-lisp/bytecomp.el (byte-compile-save-excursion): Change the
1704         warning message.
1706 2011-03-14  Michael Albinus  <michael.albinus@gmx.de>
1708         * shell.el (shell): When called interactively, offer to change the
1709         shell file name on remote hosts.
1711 2011-03-13  Teodor Zlatanov  <tzz@lifelogs.com>
1713         * net/ldap.el (ldap-search-internal): Add `auth-source-search'
1714         integration for LDAP parameters.  The host, base, user or binddn,
1715         and secret tokens can be specified in a netrc file, for instance.
1716         This is optional because an `auth-source' parameter must be
1717         specified in the search attributes.
1719 2011-03-13  Juanma Barranquero  <lekktu@gmail.com>
1721         * help.el (describe-mode): Link to the mode's definition (bug#8185).
1723 2011-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
1725         * ebuff-menu.el (electric-buffer-menu-mode-map): Move initialization
1726         into declaration.  Remove redundant and harmful binding.
1728 2011-03-12  Eli Zaretskii  <eliz@gnu.org>
1730         * files.el (file-ownership-preserved-p): Pass `integer' as an
1731         explicit 2nd argument to `file-attributes'.  If the file's owner
1732         is the Administrators group on Windows, and the current user is
1733         Administrator, consider that a match.
1735         * server.el (server-ensure-safe-dir): Consider server directory
1736         safe on MS-Windows if its owner is the Administrators group while
1737         the current Emacs user is Administrator.  Use `=' to compare
1738         numerical UIDs, since they could be integers or floats.
1740 2011-03-12  Juanma Barranquero  <lekktu@gmail.com>
1742         * vc/vc-bzr.el (vc-bzr-state): Handle bzr 2.3.0 (follow-up to bug#8170).
1744 2011-03-12  Michael Albinus  <michael.albinus@gmx.de>
1746         Sync with Tramp 2.2.1.
1748         * net/tramp-sh.el (tramp-methods): Exchange "%k" marker with options.
1750         * net/trampver.el: Update release number.
1752 2011-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
1754         * progmodes/compile.el (compilation--previous-directory): Fix up
1755         various nil/dead-marker mismatches (bug#8014).
1756         (compilation-directory-properties, compilation-error-properties):
1757         Don't call it at a position past the one we're about to change.
1759         * emacs-lisp/bytecomp.el (byte-compile-make-obsolete-variable):
1760         Disable obsolescence warnings in the file that declares it.
1762 2011-03-11  Ken Manheimer  <ken.manheimer@gmail.com>
1764         * allout-widgets.el (allout-widgets-tally):
1765         Initialize allout-widgets-tally as a hash table rather than nil to
1766         prevent mode-line redisplay warnings.  Also, clarify the module
1767         description and fix a comment typo.
1769 2011-03-11  Juanma Barranquero  <lekktu@gmail.com>
1771         * help-fns.el (describe-variable): Don't complete keywords.
1772         Suggested by Teodor Zlatanov <tzz@lifelogs.com>.
1774 2011-03-10  Chong Yidong  <cyd@stupidchicken.com>
1776         * emacs-lisp/package.el (package-version-join): Impose a standard
1777         string representation for pre/alpha/beta version lists.
1778         (package-unpack-single): Standardize the directory name by passing
1779         it through package-version-join.
1780         (package-strip-rcs-id): Accept any version string that does not
1781         signal an error in version-to-list.
1783 2011-03-10  Michael Albinus  <michael.albinus@gmx.de>
1785         * simple.el (delete-trailing-whitespace): Return nil for the
1786         benefit of `write-file-functions'.
1788 2011-03-10  Glenn Morris  <rgm@gnu.org>
1790         * vc/vc-hg.el (vc-hg-pull, vc-hg-merge-branch): Use vc-hg-program.
1792         * vc/vc-git.el (vc-git-program): New option.
1793         (vc-git-branches, vc-git-pull, vc-git-merge-branch, vc-git-command)
1794         (vc-git--call): Use it.
1796         * eshell/esh-util.el (eshell-condition-case): Doc fix.
1798         * cus-edit.el (Custom-newline): If no button at point, look
1799         for a subgroup button at start-of-line.  (Bug#2298)
1801         * mail/rmail.el (rmail-msgend, rmail-msgbeg): Doc fixes.
1803 2011-03-10  Julien Danjou  <julien@danjou.info>
1805         * avoid.el (mouse-avoidance-ignore-p): Do not move the cursor if
1806         `cursor-type' is nil.
1808 2011-03-09  Jay Belanger  <jay.p.belanger@gmail.com>
1810         * calc/calc.el (calc-mode-map): Don't bind "C-_" to `calc-missing-key'.
1812 2011-03-09  Ken Manheimer  <ken.manheimer@gmail.com>
1814         * allout.el Summary: Change so yank of distinctive-bullet items
1815         preserves the existing header prefix, rebulleting it if necessary,
1816         rather than replacing it.  This is necessary for proper operation
1817         of cooperative addons like allout-widgets.
1818         (allout-make-topic-prefix, allout-rebullet-heading): Change
1819         SOLICIT arg to INSTEAD, and interpret additionally a string value
1820         as alternate bullet to be used, instead of prompting the user for
1821         a bullet character.
1823 2011-03-09  Michael Albinus  <michael.albinus@gmx.de>
1825         * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
1826         Do not use `tramp-file-name-port', because this returns also
1827         `tramp-default-port'.
1829 2011-03-09  Deniz Dogan  <deniz.a.m.dogan@gmail.com>
1831         * net/rcirc.el (rcirc-handler-001): Remove useless
1832         with-rcirc-process-buffer.
1833         (rcirc-check-auth-status): Swap arguments to string-match.
1835 2011-03-09  Glenn Morris  <rgm@gnu.org>
1837         * shell.el (shell-mode):
1838         Set comint-input-ring-size from HISTSIZE.  (Bug#7889)
1840         * progmodes/gdb-mi.el (gdb): Improve 2010-12-08 change.
1841         Check for GDBHISTFILE, HISTSIZE, etc.  (Bug#7889)
1843 2011-03-08  Chong Yidong  <cyd@stupidchicken.com>
1845         * emacs-lisp/package.el (package-refresh-contents)
1846         (package-menu-execute): Use condition-case-no-debug.
1848 2011-03-08  Michael Albinus  <michael.albinus@gmx.de>
1850         * simple.el (shell-command-to-string): Use `process-file'.
1852         * emacs-lisp/package.el (package-tar-file-info): Handle also
1853         remote files.
1855         * emacs-lisp/package-x.el (package-upload-buffer-internal):
1856         Use `equal' for upload base check.
1858 2011-03-08  Arni Magnusson  <arnima@hafro.is>  (tiny change)
1860         * textmodes/texinfo.el (texinfo-environments):
1861         Add deftypecv, deftypeivar, deftypemethod, deftypeop, html.  (Bug#2783)
1863 2011-03-08  Glenn Morris  <rgm@gnu.org>
1865         * cus-start.el (cursor-in-non-selected-windows):
1866         Fix :set quoting oddness.  (Bug#8192)
1868         * font-lock.el (lisp-font-lock-keywords-1): Don't highlight `)'
1869         in some setf expressions.  (Bug#2159)
1871 2011-03-08  Chong Yidong  <cyd@stupidchicken.com>
1873         * custom.el (custom-available-themes): Return themes in
1874         alphabetical order.
1876 See ChangeLog.15 for earlier changes.
1878 ;; Local Variables:
1879 ;; coding: utf-8
1880 ;; End:
1882   Copyright (C) 2011  Free Software Foundation, Inc.
1884   This file is part of GNU Emacs.
1886   GNU Emacs is free software: you can redistribute it and/or modify
1887   it under the terms of the GNU General Public License as published by
1888   the Free Software Foundation, either version 3 of the License, or
1889   (at your option) any later version.
1891   GNU Emacs is distributed in the hope that it will be useful,
1892   but WITHOUT ANY WARRANTY; without even the implied warranty of
1893   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1894   GNU General Public License for more details.
1896   You should have received a copy of the GNU General Public License
1897   along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.