1 2011-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
3 * progmodes/octave-mod.el (octave-in-comment-p, octave-in-string-p)
4 (octave-not-in-string-or-comment-p): Use syntax-ppss so it works with
5 multi-line comments as well.
7 2011-04-19 Juanma Barranquero <lekktu@gmail.com>
9 Lexical-binding cleanup.
11 * arc-mode.el (archive-mode-revert):
12 * cmuscheme.el (scheme-interactively-start-process):
13 * custom.el (custom-initialize-delay):
14 * dnd.el (dnd-open-local-file, dnd-open-remote-url):
15 * dos-w32.el (direct-print-region-helper, direct-print-region-function):
16 * emacs-lock.el (emacs-lock-clear-sentinel):
17 * ezimage.el (defezimage):
18 * follow.el (follow-avoid-tail-recenter):
19 * fringe.el (set-fringe-mode-1):
20 * generic-x.el (bat-generic-mode-compile):
21 * help-mode.el (help-info-variable, help-do-xref)
22 (help-mode-revert-buffer):
23 * help.el (view-emacs-todo):
24 * iswitchb.el (iswitchb-completion-help):
25 * jka-compr.el (jka-compr-make-temp-name, jka-compr-load):
26 * kmacro.el (kmacro-cycle-ring-next, kmacro-cycle-ring-previous)
27 (kmacro-delete-ring-head, kmacro-bind-to-key, kmacro-view-macro):
28 * locate.el (locate-update):
29 * longlines.el (longlines-encode-region)
30 (longlines-after-change-function):
31 * outline.el (outline-isearch-open-invisible):
32 * ps-def.el (declare-function, charset-dimension, char-width)
34 * ps-mule.el (ps-mule-plot-string):
35 * recentf.el (recentf-make-menu-items, recentf-cancel-dialog)
36 (recentf-edit-list-select, recentf-edit-list-validate)
37 (recentf-open-files-action):
38 * rect.el (delete-whitespace-rectangle-line)
39 (rectangle-number-line-callback):
40 * register.el (window-configuration-to-register)
41 (frame-configuration-to-register):
42 * scroll-bar.el (scroll-bar-mode, toggle-horizontal-scroll-bar):
43 * select.el (xselect-convert-to-string, xselect-convert-to-length)
44 (xselect-convert-to-targets, xselect-convert-to-delete)
45 (xselect-convert-to-filename, xselect-convert-to-charpos)
46 (xselect-convert-to-lineno, xselect-convert-to-colno)
47 (xselect-convert-to-os, xselect-convert-to-host)
48 (xselect-convert-to-user, xselect-convert-to-class)
49 (xselect-convert-to-name, xselect-convert-to-integer)
50 (xselect-convert-to-atom, xselect-convert-to-identity):
51 * subr.el (declare, ignore, process-kill-without-query)
52 (text-clone-maintain):
53 * terminal.el (te-get-char, te-tic-sentinel):
54 * tool-bar.el (tool-bar-make-keymap):
55 * tooltip.el (tooltip-timeout, tooltip-hide, tooltip-help-tips):
56 * type-break.el (type-break-mode, type-break-noninteractive-query):
57 * view.el (View-back-to-mark):
58 * wid-browse.el (widget-browse-action, widget-browse-widget)
59 (widget-browse-widgets, widget-browse-sexp):
60 * widget.el (define-widget-keywords):
61 * xt-mouse.el (xterm-mouse-translate, turn-off-xterm-mouse-tracking):
62 Mark unused parameters.
64 * align.el (align-adjust-col-for-rule): Mark unused parameter.
65 (align-areas): Remove unused variable `look'.
66 (align-region): Remove unused variables `real-end' and `pos-list'.
68 * apropos.el (apropos-score-doc): Remove unused variable `i'.
70 * bindings.el (mode-line-modified, mode-line-remote):
71 Mark unused parameters.
72 (mode-line-mule-info): Mark unused parameter; don't quote `lambda'.
74 * buff-menu.el (Buffer-menu-revert-function): Mark unused parameters.
75 (Buffer-menu-mode): Mark unused parameter; don't quote `lambda'.
77 * comint.el (comint-history-isearch-pop-state)
78 (comint-postoutput-scroll-to-bottom, comint-truncate-buffer)
79 (comint-strip-ctrl-m, comint-read-noecho): Mark unused parameters.
80 (comint-substitute-in-file-name): Doc fix.
82 * completion.el (cmpl-statistics-block): Mark unused parameter.
83 (add-completions-from-tags-table, add-completions-from-lisp-buffer)
84 (save-completions-to-file, load-completions-from-file):
85 Remove unused local variable `e'.
87 * composite.el (compose-chars): Remove unused variable `len'.
88 (lgstring-insert-glyph): Remove unused variable `g'.
89 (compose-glyph-string): Remove unused variables `ascent',
90 `descent', `lbearing' and `rbearing'.
91 (compose-glyph-string-relative): Remove unused variables
92 `lbearing', `rbearing' and `wadjust'.
93 (compose-gstring-for-graphic): Remove unused variables `header',
94 `wadjust', `xoff' and `yoff'. Use `let', not `let*'.
95 (compose-gstring-for-terminal): Remove unused variables `header'
96 and `nchars'. Use `let', not `let*'.
98 * cus-edit.el (Custom-set, Custom-save, custom-reset)
99 (Custom-reset-current, Custom-reset-saved, Custom-reset-standard)
100 (Custom-buffer-done, custom-buffer-create-internal)
101 (custom-browse-visibility-action, custom-browse-group-tag-action)
102 (custom-browse-variable-tag-action, custom-browse-face-tag-action)
103 (widget-magic-mouse-down-action, custom-toggle-parent)
104 (custom-add-parent-links, custom-toggle-hide-variable)
105 (custom-face-edit-value-visibility-action, custom-face-edit-fix-value)
106 (custom-toggle-hide-face, face, hook, custom-group-link-action)
107 (custom-face-menu-create, custom-variable-menu-create, get)
108 (custom-group-menu-create, Custom-no-edit): Mark unused parameters.
109 (custom-reset-standard-save-and-update): Remove unused variable `value'.
110 (customize-apropos): Remove unused variable `tests'.
111 (custom-group-value-create): Remove unused variable `hidden-p'.
112 (sort-fold-case): Declare.
114 * cus-theme.el (custom-reset-standard-faces-list)
115 (custom-reset-standard-variables-list): Declare.
116 (customize-create-theme, custom-theme-revert, custom-theme-write)
117 (custom-theme-choose-mode, customize-themes, custom-theme-save):
118 Mark unused parameters.
120 * dabbrev.el (dabbrev-completion): Remove unused variable `init'.
122 * delim-col.el (delimit-columns-max): Move defvar before first use.
124 * descr-text.el (describe-char-categories): Don't quote `lambda'.
125 (describe-char): Don't quote `lambda'. Mark unused parameter.
127 * desktop.el (desktop-save-buffer-p): Mark unused parameter.
128 (auto-insert): Declare.
129 (desktop-restore-file-buffer): Rename desktop-* parameters;
131 (desktop-create-buffer): Rename desktop-* parameters and bind them.
132 (desktop-buffer): Rename desktop-* parameters.
134 * dframe.el (x-sensitive-text-pointer-shape, x-pointer-shape): Declare.
135 (dframe-reposition-frame-xemacs, dframe-help-echo)
136 (dframe-hack-buffer-menu, dframe-set-timer, dframe-set-timer-internal):
137 Mark unused parameters.
139 * dired-aux.el (backup-extract-version-start, overwrite-query)
140 (overwrite-backup-query, rename-regexp-query)
141 (rename-non-directory-query): Declare.
142 (dired-shell-stuff-it, dired-do-create-files): Mark unused parameters.
143 (dired-add-entry): Remove unused variable `orig-file-name'.
144 (dired-copy-file-recursive): Remove unused variable `dirfailed'.
145 Use parameter PRESERVE-TIME instead of accessing dynamic variable
146 `dired-copy-preserve-time' directly.
147 (dired-do-create-files-regexp): Remove unused variable `fn-count'.
148 (dired-insert-subdir-newpos): Rename unused variable `pos'.
150 * dired-x.el (dired-omit-size-limit): Move defcustom before first use.
151 (dired-virtual-revert, dired-make-relative-symlink):
152 Mark unused parameters.
153 (manual-program): Declare.
154 (dired-x-hands-off-my-keys): Rename parameters of lambda expression.
155 (inode, s, mode, nlink, uid, gid, size, time, name, sym): Declare them,
156 wrapped in `with-no-warnings' to avoid replacing one warning by another.
158 * dirtrack.el (dirtrack): Remove unused variable `multi-line'.
160 * dos-fns.el (dos-8+3-filename): Remove unused variable `i'.
162 * echistory.el (electric-history-in-progress, Helper-return-blurb):
165 * edmacro.el (edmacro-finish-edit): Remove unused variable `kmacro'.
167 * electric.el (Electric-command-loop): Rename parameter
168 INHIBIT-QUIT to INHIBIT-QUITTING and bind `inhibit-quit'.
170 * expand.el (expand-in-literal): Remove unused variable `here'.
172 * facemenu.el (facemenu-add-new-color):
173 Remove unused variable `docstring'.
175 * faces.el (face-id, make-face-bold, make-face-unbold, make-face-italic)
176 (make-face-unitalic, make-face-bold-italic): Mark unused parameters.
177 (face-attr-construct): Mark unused parameter. Doc fix.
178 (read-color): Remove unused variable `hex-string'.
180 * files.el (parse-colon-path): Rename argument CD-PATH to SEARCH-PATH.
181 (locate-dominating-file): Remove unused vars `prev-file' and `user'.
182 (remote-file-name-inhibit-cache, revert-buffer): Clean up docstrings.
183 (display-buffer-other-frame): Remove unused variable `old-window'.
184 (kill-buffer-hook): Declare.
185 (insert-file-contents-literally, set-auto-mode, risky-local-variable-p):
186 Mark unused parameters.
187 (after-find-file): Pass 1 to `auto-save-mode', not t.
189 * files-x.el (auto-insert): Declare.
190 (modify-file-local-variable-prop-line): Remove unused variable `val'.
192 * find-lisp.el (find-lisp-find-dired-internal): Remove unused
193 variable `buf'. Mark unused parameter.
194 (find-lisp-insert-directory): Mark unused parameter.
196 * format.el (format-decode-run-method): Mark unused parameter; doc fix.
197 (format-encode-region): Remove unused variables `cur-buf' and `result'.
198 (format-common-tail): Remove, unused.
199 (format-deannotate-region): Remove unused variable `loc'.
200 (format-annotate-region): Remove unused variable `p'.
201 (format-annotate-single-property-change): Remove unused variables
202 `default' and `tail'.
204 * forms.el (read-file-filter): Declare.
205 (forms--iif-hook, forms--revert-buffer): Mark unused parameters.
207 * frame.el (frame-creation-function-alist): Mark unused parameter.
208 (frame-geom-spec-cons): Pass FRAME to `frame-geom-value-cons'.
210 * hilit-chg.el (hilit-chg-cust-fix-changes-face-list, hilit-chg-clear):
211 Remove unused parameters.
212 (hilit-chg-set-face-on-change): Remove unused variable `beg-decr'.
213 (highlight-compare-with-file): Remove unused variable `buf-b-read-only'.
215 * htmlfontify.el (hfy-default-footer, hfy-decor, hfy-invisible)
216 (hfy-parse-tags-buffer, hfy-prepare-index-i, hfy-prepare-index)
217 (hfy-prepare-tag-map): Mark unused parameters.
218 (htmlfontify-buffer): Use `called-interactively-p'.
220 * ibuf-ext.el (ibuffer-do-kill-lines, ibuffer-jump-to-buffer)
221 (ibuffer-copy-filename-as-kill, ibuffer-mark-on-buffer)
222 (ibuffer-do-occur): Mark unused parameters.
223 (ibuffer-forward-next-marked): Remove unused variable `curmark'.
224 (ibuffer-diff-buffer-with-file-1): Remove unused variable `proc'.
226 * ibuffer.el: Don't quote `lambda'.
227 (ibuffer-count-marked-lines, ibuffer-count-deletion-lines)
228 (ibuffer-unmark-all, ibuffer-toggle-marks, ibuffer-redisplay-engine):
229 Mark unused parameters.
231 * ido.el (ido-mode, ido-wide-find-dir-or-delete-dir)
232 (ido-completing-read): Mark unused parameters.
233 (ido-copy-current-word): Mark unused parameters;
234 remove unused variable `name'.
235 (ido-sort-merged-list): Remove unused parameter `dirs'.
237 * ielm.el (ielm-input-sender): Mark unused parameter.
238 (ielm-string, ielm-form, ielm-pos, ielm-result, ielm-error-type)
239 (ielm-output, ielm-wbuf, ielm-pmark): Declare.
240 (ielm-eval-input): Rename argument IELM-STRING to INPUT-STRING to keep
241 `ielm-string' as a dynamic variable accessible from the IELM prompt.
242 Bind `ielm-string' to INPUT-STRING. Remove unused variable `err'.
244 * image-dired.el (image-dired-display-thumbs): Remove unused
245 variables `curr-file' and `count'.
246 (image-dired-remove-tag): Remove unused variable `start'.
247 (image-dired-tag-files, image-dired-create-thumbs): Remove unused
249 (image-dired-rotate-original): Remove unused variable `temp-file'.
250 (image-dired-mouse-select-thumbnail, image-dired-mouse-toggle-mark):
251 Remove unused variable `file'.
252 (image-dired-gallery-generate): Remove unused variable `curr'.
253 (image-dired-dired-edit-comment-and-tags): Mark unused parameters.
255 * indent.el (tab-to-tab-stop): Remove unused variable `opoint'.
257 * info-xref.el (info-xref-goto-node-p): Remove unused variable `err'.
259 * informat.el (texinfo-command-start, texinfo-command-end): Declare.
261 * isearch.el (minibuffer-history-symbol): Declare.
262 (isearch-edit-string): Remove unused variable `err'.
263 (isearch-message-prefix, isearch-message-suffix):
264 Mark unused parameters.
266 * ls-lisp.el (ls-lisp-insert-directory): Remove unused variable `fil'.
268 * macros.el (insert-kbd-macro): Remove unused variable `mods'.
270 * makesum.el (double-column): Remove unused variable `cnt'.
272 * misearch.el (multi-isearch-pop-state): Mark unused parameter.
273 (ido-ignore-item-temp-list): Declare.
275 * mouse-drag.el (mouse-drag-throw): Remove unused variables
276 `mouse-delta', `window-last-row', `mouse-col-delta', `window-last-col',
277 `adjusted-mouse-col-delta' and `adjusted-mouse-delta'.
278 (mouse-drag-drag): Remove unused variables `mouse-delta' and
281 * mouse-sel.el (mouse-extend-internal):
282 Remove unused variable `orig-window-frame'.
284 * pcomplete.el (pcomplete-args, pcomplete-begins, pcomplete-last)
285 (pcomplete-index, pcomplete-stub, pcomplete-seen, pcomplete-norm-func):
286 Move declarations before first use.
287 (pcomplete-opt): Mark unused parameters; doc fix.
289 * proced.el (proced-revert): Mark unused parameter.
290 (proced-send-signal): Remove unused variable `err'.
292 * ps-print.el (ps-print-preprint-region, ps-print-preprint):
293 Rename parameter PREFIX-ARG to ARG.
294 (ps-basic-plot-string, ps-basic-plot-whitespace):
295 Mark unused parameters.
297 * replace.el (replace-count): Define.
298 (occur-revert-function): Mark unused parameters.
299 (ido-ignore-item-temp-list, isearch-error, isearch-forward)
300 (isearch-case-fold-search, isearch-string): Declare.
301 (occur-engine): Rename parameter CASE-FOLD-SEARCH to CASE-FOLD and
302 bind `case-fold-search'. Remove unused variables `beg' and `end',
304 (replace-eval-replacement): Rename parameter REPLACE-COUNT to
305 COUNT and bind `replace-count'.
306 (replace-loop-through-replacements): Rename parameter REPLACE-COUNT
309 * savehist.el (print-readably, print-string-length): Declare.
311 * shadowfile.el (shadow-expand-cluster-in-file-name):
312 Remove unused variable `cluster'.
313 (shadow-copy-file): Remove unused variable `i'.
314 (shadow-noquery, shadow-clusters, shadow-site-cluster)
315 (shadow-parse-fullname, shadow-parse-name, shadow-define-cluster)
316 (shadow-define-literal-group, shadow-define-regexp-group)
317 (shadow-make-group, shadow-shadows-of): Clean up docstrings.
319 * shell.el (shell-filter-ctrl-a-ctrl-b): Mark unused parameter.
320 (shell): Use `called-interactively-p'.
321 (shell-directory-tracker): Remove unused variable `chdir-failure'.
323 * simple.el (compilation-context-lines, comint-file-name-quote-list)
324 (comint-file-name-chars, comint-delimiter-argument-list): Declare.
325 (delete-backward-char): Remove unused variable `ocol'.
326 (minibuffer-avoid-prompt, minibuffer-history-isearch-pop-state)
327 (line-move-1, event-apply-alt-modifier, event-apply-super-modifier)
328 (event-apply-hyper-modifier, event-apply-shift-modifier)
329 (event-apply-control-modifier, event-apply-meta-modifier):
330 Mark unused parameters.
331 (undo-make-selective-list): Remove duplicate variable `undo-elt'.
332 (normal-erase-is-backspace-mode): Remove unused variable `old-state'.
334 * speedbar.el (speedbar-ignored-directory-expressions)
335 (speedbar-supported-extension-expressions, speedbar-directory-buttons)
336 (speedbar-find-file, speedbar-dir-follow)
337 (speedbar-directory-buttons-follow, speedbar-tag-find)
338 (speedbar-buffer-buttons, speedbar-buffer-buttons-temp)
339 (speedbar-buffers-line-directory, speedbar-buffer-click):
340 Mark unused parameters.
341 (speedbar-tag-file): Remove unused variable `mode'.
342 (speedbar-buffers-tail-notes): Remove unused variable `mod'; simplify.
344 * strokes.el (strokes-decode-buffer): Remove unused variable `ext'.
346 * talk.el (talk): Remove unused variable `display'.
348 * tar-mode.el (tar-subfile-save-buffer): Remove unused variable `name'.
349 (tar-write-region-annotate): Mark unused parameter.
351 * time.el (now, time, load, mail, 24-hours, hour, 12-hours, am-pm)
352 (minutes, seconds, time-zone, day, year, monthname, month, dayname):
353 Declare them, wrapped in `with-no-warnings' to avoid replacing one
356 * time-stamp.el (time-stamp-string-preprocess):
357 Remove unused variable `require-padding'.
359 * tree-widget.el (widget-glyph-enable): Declare.
360 (tree-widget-action): Mark unused parameter.
362 * w32-fns.el (x-get-selection): Mark unused parameter.
363 (autoload-make-program, generated-autoload-file): Declare.
365 * wdired.el (wdired-revert): Mark unused parameters.
366 (wdired-xcase-word): Remove unused variable `err'.
368 * whitespace.el (whitespace-buffer-changed): Mark unused parameters.
369 (whitespace-help-scroll): Remove unused variable `data-help'.
371 * wid-edit.el (widget-mouse-help, widget-overlay-inactive)
372 (widget-image-insert, widget-after-change, default)
373 (widget-default-format-handler, widget-default-notify)
374 (widget-default-prompt-value, widget-info-link-action)
375 (widget-url-link-action, widget-function-link-action)
376 (widget-variable-link-action, widget-file-link-action)
377 (widget-emacs-library-link-action, widget-emacs-commentary-link-action)
378 (widget-field-prompt-internal, widget-field-action, widget-field-match)
379 (widget-choice-mouse-down-action, toggle, widget-radio-button-notify)
380 (widget-insert-button-action, widget-delete-button-action, visibility)
381 (widget-documentation-link-action, widget-documentation-string-action)
382 (widget-const-prompt-value, widget-regexp-match, symbol)
383 (widget-coding-system-prompt-value)
384 (widget-key-sequence-value-to-external, sexp)
385 (widget-sexp-value-to-internal, character, vector, cons)
386 (widget-choice-prompt-value, widget-boolean-prompt-value)
387 (widget-color--choose-action): Mark unused parameters.
388 (widget-item-match-inline, widget-choice-match-inline)
389 (widget-checklist-match, widget-checklist-match-inline)
390 (widget-group-match): Rename parameter VALUES to VALS.
391 (widget-field-value-set): Remove unused variable `size'.
392 (widget-color-action): Remove unused variables `value' and `start'.
394 * windmove.el (windmove-wrap-loc-for-movement): Remove unused
395 variable `dir'. Doc fix.
396 (windmove-find-other-window): Don't pass it.
398 * window.el (count-windows): Mark unused parameter.
399 (bw-adjust-window): Remove unused variable `err'.
401 * woman.el (woman-file-name): Remove unused variable `default'.
402 (woman-expand-directory-path): Rename parameters WOMAN-MANPATH and
403 WOMAN-PATH to PATH-DIRS and PATH-REGEXPS, respectively.
404 (global-font-lock-mode): Declare.
405 (woman-decode-region): Mark unused parameter.
406 (woman-get-tab-stop): Rename parameter TAB-STOP-LIST to TAB-STOPS.
408 * x-dnd.el (x-dnd-default-test-function, x-dnd-handle-old-kde)
409 (x-dnd-handle-xdnd, x-dnd-handle-motif): Mark unused parameters.
410 (x-dnd-handle-moz-url): Remove unused variable `title'.
411 (x-dnd-handle-xdnd): Remove unused variables `x', `y' and `ret-action'.
413 * xml.el (xml-parse-tag, xml-parse-attlist):
414 Remove unused variable `pos'.
416 2011-04-19 Glenn Morris <rgm@gnu.org>
418 * calendar/cal-tex.el (cal-tex-list-holidays, cal-tex-cursor-month)
419 (cal-tex-cursor-week, cal-tex-cursor-week2, cal-tex-cursor-week-iso)
420 (cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week)
421 (cal-tex-cursor-filofax-daily, cal-tex-mini-calendar)
422 * calendar/cal-html.el (cal-html-insert-minical):
423 * calendar/diary-lib.el (diary-list-entries-1, diary-list-entries)
424 (calendar-mark-date-pattern):
425 Prefix "unused" locals.
427 * calendar/cal-dst.el (dst-adjust-time): Remove never-implemented
428 optional argument `style'.
430 * calendar/appt.el (appt-make-list):
431 * calendar/cal-china.el (calendar-chinese-date-string):
432 * calendar/cal-hebrew.el (calendar-hebrew-list-yahrzeits)
433 (diary-hebrew-yahrzeit):
434 * calendar/cal-tex.el (cal-tex-last-blank-p, cal-tex-cursor-week2):
435 * calendar/calendar.el (calendar-generate-window):
436 * calendar/time-date.el (time-to-days):
437 Remove unused local variables.
439 2011-04-18 Chong Yidong <cyd@stupidchicken.com>
441 * emacs-lisp/tabulated-list.el (tabulated-list-mode): Use a custom
442 glyphless-char-display table.
443 (tabulated-list-glyphless-char-display): New var.
445 2011-04-18 Sam Steingold <sds@gnu.org>
447 * vc/add-log.el (change-log-font-lock-keywords): Add "Thanks to"
450 2011-04-17 Glenn Morris <rgm@gnu.org>
452 * calendar/diary-lib.el (diary-sexp-entry):
453 * calendar/holidays.el (holiday-sexp):
454 Set debug-on-error rather than the removed stack-trace-on-error.
456 2011-04-16 Glenn Morris <rgm@gnu.org>
458 * progmodes/f90.el: Use lexical-binding.
459 (f90-get-correct-indent): Remove unnecessary local variable `cont'.
461 2011-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
463 * mail/sendmail.el (mail-mode-map): Use completion-at-point.
464 (mail-mode): Setup mailalias completion here instead.
465 * mail/mailalias.el: Use lexical-binding.
466 (pattern, mailalias-done): Declare dynamic.
467 (mail-completion-at-point-function): New function, from mail-complete.
468 (mail-complete): Use it.
469 (mail-completion-expand): New function.
470 (mail-get-names): Use it.
471 (mail-directory, mail-directory-process, mail-directory-stream):
472 Don't use `pattern' for lexically bound arg.
474 * emacs-lisp/lisp-mode.el (eval-defun-2): Use eval-sexp-add-defvars.
476 * htmlfontify.el (hfy-etags-cmd): Remove inoperant eval-and-compile.
477 (hfy-e2x-etags-cmd, hfy-etags-cmd-alist-default)
478 (hfy-etags-cmd-alist): Don't eval-and-compile any more.
480 * emacs-lisp/bytecomp.el (byte-temp-output-buffer-show)
481 (byte-save-window-excursion, byte-temp-output-buffer-setup)
482 (byte-interactive-p): Define them again, for use when inlining
485 2011-04-15 Juanma Barranquero <lekktu@gmail.com>
487 * loadup.el: Use `string-to-number', not `string-to-int'.
489 2011-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
491 * progmodes/gud.el (gud-gdb): Use completion-at-point instead of
492 gud-gdb-complete-command.
493 (gud-gdb-completions): New function, from gud-gdb-complete-command.
494 (gud-gdb-completion-at-point): New function.
495 (gud-gdb-completions): Remove.
497 2011-04-14 Michael Albinus <michael.albinus@gmx.de>
499 * net/tramp-sh.el (tramp-sh-handle-file-attributes): Handle the case
500 when the scripts fail. Use `tramp-do-file-attributes-with-ls' then.
501 (tramp-do-copy-or-rename-file-out-of-band): Do not check any longer
502 whether `executable-find' is bound.
504 * net/tramp-smb.el (tramp-smb-handle-copy-file): Fix docstring.
506 2011-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
508 * minibuffer.el (completion-in-region-mode-predicate)
509 (completion-in-region-mode--predicate): New vars.
510 (completion-in-region, completion-in-region--postch)
511 (completion-in-region-mode): Use them.
512 (completion--capf-wrapper): Also return the hook function.
513 (completion-at-point, completion-help-at-point):
514 Adjust and provide a predicate.
516 Preserve arg names for advice of subr and lexical functions (bug#8457).
517 * help-fns.el (help-function-arglist): Consolidate the subr and
518 new-byte-code cases. Add argument `preserve-names' to extract names
519 from the docstring when needed.
520 * emacs-lisp/advice.el (ad-define-subr-args, ad-undefine-subr-args)
521 (ad-subr-args-defined-p, ad-get-subr-args, ad-subr-arglist): Remove.
522 (ad-arglist): Use help-function-arglist's new arg.
523 (ad-definition-type): Use cond.
525 2011-04-13 Juanma Barranquero <lekktu@gmail.com>
527 * autorevert.el (auto-revert-handler):
528 Bind `remote-file-name-inhibit-cache', not `tramp-cache-inhibit-cache',
529 which was removed in 2010-10-02T13:21:43Z!michael.albinus@gmx.de.
532 * image-mode.el (image-transform-set-scale):
533 Fix change in 2011-04-09T20:28:01Z!cyd@stupidchicken.com.
535 2011-04-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
537 * net/network-stream.el (network-stream-open-starttls): Only do
538 opportunistic STARTTLS upgrades if we have built-in gnutls support.
539 Upgrades via gnutls-cli are too slow to be done opportunistically.
541 2011-04-12 Juanma Barranquero <lekktu@gmail.com>
543 * dframe.el (dframe-current-frame): Remove spurious quote.
545 2011-04-12 Glenn Morris <rgm@gnu.org>
547 * calendar/cal-tex.el (cal-tex-end-document):
548 Try to automatically use latin1 input if needed.
550 * calendar/cal-hebrew.el (diary-hebrew-rosh-hodesh):
551 Don't try to cons a mark onto an empty element.
553 2011-04-11 Leo Liu <sdl.web@gmail.com>
555 * ido.el (ido-buffer-internal): Allow method 'kill for virtual
557 (ido-kill-buffer-at-head): Support killing virtual buffers.
559 2011-04-10 Chong Yidong <cyd@stupidchicken.com>
561 * minibuffer.el (completion-show-inline-help): New var.
562 (completion--do-completion, minibuffer-complete)
563 (minibuffer-force-complete, minibuffer-complete-word):
564 Inhibit minibuffer messages if completion-show-inline-help is nil.
566 * icomplete.el (icomplete-mode): Bind completion-show-inline-help
567 to avoid interference from inline help (Bug#5849).
569 2011-04-10 Leo Liu <sdl.web@gmail.com>
571 * emacs-lisp/tabulated-list.el (tabulated-list-print-entry):
574 2011-04-09 Chong Yidong <cyd@stupidchicken.com>
576 * image-mode.el (image-toggle-display-image): Signal an error if
578 (image-transform-mode, image-transform-resize)
579 (image-transform-set-rotation): Doc fix.
580 (image-transform-set-resize): Delete.
581 (image-transform-set-scale, image-transform-fit-to-height)
582 (image-transform-fit-to-width): Handle image-toggle-display-image
583 and image-transform-resize directly.
585 2011-04-08 Sho Nakatani <lay.sakura@gmail.com>
587 * doc-view.el (doc-view-fit-width-to-window)
588 (doc-view-fit-height-to-window, doc-view-fit-page-to-window):
589 New functions for fitting the shown image to the Emacs window size.
590 (doc-view-mode-map): Add bindings for the new functions.
592 2011-04-08 Juanma Barranquero <lekktu@gmail.com>
594 * vc-annotate.el (vc-annotate-show-log-revision-at-line):
595 Fix typo in docstring.
597 2011-04-08 Eli Zaretskii <eliz@gnu.org>
599 * files.el (file-size-human-readable): Produce one digit after
600 decimal, like "ls -lh" does.
602 * ls-lisp.el (ls-lisp-format-file-size): Allow for 7 characters in
603 the file size representation.
605 * simple.el (list-processes): If async subprocesses are not
606 available, error out with a clear error message.
608 2011-04-08 Chong Yidong <cyd@stupidchicken.com>
610 * help.el (help-form-show): New function, to be called from C.
611 Put help-form output in a buffer named differently than *Help*.
613 2011-04-08 Eli Zaretskii <eliz@gnu.org>
615 * files.el (file-size-human-readable): New function.
617 * ls-lisp.el (ls-lisp-format-file-size): Use it, instead of
618 computing the representation inline. Don't require `cl'.
620 2011-04-08 Glenn Morris <rgm@gnu.org>
622 * man.el (Man-page-header-regexp): Solaris < 2.6 no longer supported.
624 * net/browse-url.el (browse-url-firefox):
625 Test system-type, not system-configuration.
627 * vc/log-edit.el (log-edit-empty-buffer-p): New function.
628 (log-edit-insert-cvs-template, log-edit-insert-cvs-rcstemplate):
629 Use log-edit-empty-buffer-p. (Bug#7598)
631 * net/rlogin.el (rlogin-process-connection-type): Simplify.
632 (rlogin-mode-map): Initialize in the defvar.
633 (rlogin): Use ignore-errors.
635 * replace.el (occur-mode-map): Some fixes for menu items.
637 2011-04-07 Aaron S. Hawley <aaron.s.hawley@gmail.com>
639 * play/morse.el (denato-region): Handle varying case. (Bug#8386)
641 2011-04-06 Chong Yidong <cyd@stupidchicken.com>
643 * emacs-lisp/cconv.el (cconv--analyse-use): Ignore "ignored" when
644 issuing unused warnings.
646 * emacs-lisp/tabulated-list.el (tabulated-list-print): Use lambda
649 * simple.el: Lisp reimplement of list-processes. Based on an
650 earlier reimplementation by Leo Liu, but using tabulated-list.el.
651 (process-menu-mode): New major mode.
652 (list-processes--refresh, list-processes):
653 (process-menu-visit-buffer): New functions.
655 * files.el (save-buffers-kill-emacs): Don't assume any return
656 value of list-processes, which is undocumented anyway.
658 2011-04-06 Chong Yidong <cyd@stupidchicken.com>
660 * emacs-lisp/tabulated-list.el: New file.
662 * emacs-lisp/package.el: Use Tabulated List mode.
663 (package-menu-mode-map): Inherit from tabulated-list-mode-map.
664 (package-menu-mode): Derive from tabulated-list-mode. Set up the
665 table format using Tabulated List mode variables.
666 (package--push): New macro, replacing package-list-maybe-add.
667 (package-menu--generate): Use package--push. Renamed from
668 package--generate-package-list.
669 (package-menu-refresh, list-packages): Use it.
670 (package-menu--print-info): Rename from package-print-package.
671 Return insertion data instead of inserting it directly.
672 (package-menu-describe-package, package-menu-execute):
673 Use tabulated-list-get-id.
674 (package-menu-mark-delete, package-menu-mark-install)
675 (package-menu-mark-unmark, package-menu-backup-unmark)
676 (package-menu-mark-obsolete-for-deletion):
677 Use tabulated-list-put-tag.
678 (package--list-packages, package-menu-revert)
679 (package-menu-get-package, package-menu-get-version)
680 (package-menu-sort-by-column): Functions deleted.
681 (package-menu-package-list, package-menu-sort-key): Vars deleted.
682 (package-menu--status-predicate, package-menu--version-predicate)
683 (package-menu--name-predicate)
684 (package-menu--description-predicate): Handle arguments in the
685 Tabulated List format.
686 (package-list-packages-no-fetch): Call list-packages.
688 2011-04-06 Juanma Barranquero <lekktu@gmail.com>
690 * files.el (after-find-file-from-revert-buffer): Remove variable.
691 (after-find-file): Don't bind it.
692 (revert-buffer-in-progress-p): New variable.
693 (revert-buffer): Bind it.
694 Pass nil for `after-find-file-from-revert-buffer'.
696 * saveplace.el (save-place-find-file-hook): Use new variable
697 `rever-buffer-in-progress-p', not `after-find-file-from-revert-buffer'.
699 2011-04-06 Glenn Morris <rgm@gnu.org>
701 * Makefile.in (AUTOGEN_VCS): New variable.
702 (autoloads): Use $AUTOGEN_VCS.
704 * calendar/cal-move.el (calendar-scroll-toolkit-scroll): New function.
705 * calendar/calendar.el (calendar-mode-map):
706 Check for toolkit scroll bars. (Bug#8305)
708 2011-04-05 Chong Yidong <cyd@stupidchicken.com>
710 * minibuffer.el (completion-in-region--postch)
711 (completion-in-region-mode): Remove unnecessary messages.
713 2011-04-05 Juanma Barranquero <lekktu@gmail.com>
715 * font-lock.el (font-lock-refresh-defaults):
716 Don't bind `hi-lock--inhibit-font-lock-hook', removed in
717 2010-10-09T04:09:19Z!cyd@stupidchicken.com and 2010-10-11T23:57:49Z!lekktu@gmail.com (2010-10-12).
719 * info.el (Info-directory-list, Info-read-node-name-2)
720 (Info-split-parameter-string): Doc fixes.
721 (Info-virtual-nodes): Reflow docstring.
722 (Info-find-file, Info-directory-toc-nodes, Info-history-toc-nodes)
723 (Info-apropos-toc-nodes, info-finder, Info-get-token)
724 (Info-find-emacs-command-nodes, Info-speedbar-key-map):
725 Fix typos in docstrings.
726 (Info-revert-buffer-function, Info-search, Info-isearch-pop-state)
727 (Info-speedbar-hierarchy-buttons, Info-speedbar-goto-node)
728 (Info-speedbar-buttons, Info-desktop-buffer-misc-data)
729 (Info-restore-desktop-buffer): Mark unused parameters.
730 (Info-directory-find-file, Info-directory-find-node)
731 (Info-history-find-file, Info-history-find-node, Info-toc-find-node)
732 (Info-virtual-index-find-node, Info-apropos-find-file)
733 (Info-apropos-find-node, Info-finder-find-file, Info-finder-find-node):
734 Mark unused parameters; fix typos in docstrings.
735 (Info-virtual-index): Remove unused local variable `nodename'.
737 2011-04-05 Deniz Dogan <deniz@dogan.se>
739 * net/rcirc.el: Update my e-mail address.
740 (rcirc-mode-map): Remove M-o binding.
742 2011-04-05 Chong Yidong <cyd@stupidchicken.com>
744 * startup.el (command-line): Save the cursor's theme-face
745 directly, instead of using face-override-spec.
747 * custom.el (load-theme): Minor optimization in assigning faces.
749 2011-04-04 Juanma Barranquero <lekktu@gmail.com>
751 * help-fns.el (describe-variable): Complete all variables having
752 documentation, including keywords.
753 http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00112.html
755 2011-04-04 Juanma Barranquero <lekktu@gmail.com>
757 Convert to lexical-binding.
759 * bs.el (bs-refresh, bs-sort-buffer-interns-are-last)
760 (bs--get-marked-string, bs--get-modified-string)
761 (bs--get-readonly-string, bs--get-size-string, bs--get-name)
762 (bs--get-mode-name, bs--get-file-name): Mark unused arguments.
763 (bs--configuration-name-for-prefix-arg): Rename argument PREFIX-ARG.
765 * ehelp.el (electric-help-execute-extended)
766 (electric-help-ctrl-x-prefix):
767 * hexl.el (hexl-revert-buffer-function):
768 * linum.el (linum-after-change, linum-after-scroll):
769 * emacs-lisp/re-builder.el (reb-auto-update): Mark unused arguments.
771 * help-fns.el (help-describe-category-set): Remove unused ERR variable.
773 2011-04-04 Daiki Ueno <ueno@unixuser.org>
780 * epg.el: Use lexical binding.
782 2011-04-03 Chong Yidong <cyd@stupidchicken.com>
784 * dired-aux.el (dired-create-files): Add docstring (Bug#7970).
786 * textmodes/flyspell.el (flyspell-word): Recognize default
787 dictionary case for flyspell-mark-duplications-exceptions.
788 Use regexp matching for languages.
789 (flyspell-mark-duplications-exceptions): Add "that" and "had" for
790 default dictionary (Bug#7926).
792 2011-04-02 Chong Yidong <cyd@stupidchicken.com>
794 * emacs-lisp/package.el (package--with-work-buffer):
795 Recognize https URLs.
797 * net/network-stream.el: Move from gnus/proto-stream.el.
798 Change prefix to network-stream throughout.
799 (open-protocol-stream): Merge into open-network-stream, leaving
800 open-protocol-stream as an alias. Handle nil BUFFER args.
802 * subr.el (open-network-stream): Move to net/network-stream.el.
804 2011-04-02 Glenn Morris <rgm@gnu.org>
806 * find-dired.el (find-exec-terminator): New option.
807 (find-ls-option): Test for -ls support.
808 (find-ls-subdir-switches): Test for -b in find-ls-option.
809 (find-dired, find-grep-dired): Doc fixes.
810 (find-dired): Use find-exec-terminator.
812 * find-dired.el (find-ls-option, find-ls-subdir-switches)
813 (find-grep-options): Do not autoload these defcustoms, remove purecopy.
814 (find-name-arg): Remove purecopy.
816 * progmodes/grep.el (grep-find-use-xargs): Doc fix.
817 (grep-compute-defaults): Check for `-exec COMMAND +' support.
818 Set grep-find-use-xargs, grep-find-command, and grep-find-template
819 accordingly. Don't add the null-device if not needed.
821 * files.el (save-some-buffers): Doc fix.
823 2011-04-02 Eli Zaretskii <eliz@gnu.org>
825 * makefile.w32-in (EMACS): Default to ../src/$(BLD)/emacs.exe.
827 2011-04-01 Juanma Barranquero <lekktu@gmail.com>
829 * progmodes/idlwave.el (idlwave-one-key-select, idlwave-list-abbrevs):
830 Use `dolist' rather than `mapcar'.
832 2011-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
836 * subr.el (apply-partially): Use new closures rather than CL.
837 (--dolist-tail--, --dotimes-limit--): Don't declare dynamic.
838 (dolist, dotimes): Use slightly different expansion for lexical code.
839 (functionp): Move to C.
841 (with-wrapper-hook): Use it and apply-partially instead of CL.
842 (eval-after-load): Preserve lexical-binding.
843 (save-window-excursion, with-output-to-temp-buffer): Turn them
846 * simple.el (with-wrapper-hook, apply-partially): Move to subr.el.
848 * help-fns.el (help-split-fundoc): Return nil if there's nothing else
850 (help-add-fundoc-usage): Don't add `Not documented'.
851 (help-function-arglist): Handle closures, subroutines, and new
853 (help-make-usage): Remove leading underscores.
854 (describe-function-1): Handle closures.
855 (describe-variable): Use special-variable-p for completion.
857 * files.el (lexical-binding): Declare safe.
859 * emacs-lisp/pcase.el: Don't use destructuring-bind.
860 (pcase--memoize): Rename from pcase-memoize. Change weakness.
861 (pcase): Add `let' pattern.
862 Change memoization so it actually works.
863 (pcase-mutually-exclusive-predicates): Add byte-code-function-p.
864 (pcase--u1) <guard, pred>: Fix possible shadowing problem.
867 * emacs-lisp/macroexp.el: Use lexical binding.
868 (macroexpand-all-1): Check obsolete macros. Expand compiler-macros.
869 Don't convert ' to #' without checking that it's indeed quoting
872 * emacs-lisp/lisp-mode.el (eval-last-sexp-1):
873 Use eval-sexp-add-defvars.
874 (eval-sexp-add-defvars): New fun.
876 * emacs-lisp/float-sup.el (pi): Don't declare as dynamically bound.
878 * emacs-lisp/eieio.el (byte-compile-file-form-defmethod):
880 (eieio-defgeneric-form-primary-only-one): Use `byte-compile' rather
881 than the internal `byte-compile-lambda'.
882 (defmethod): Don't hide code under quotes.
883 (eieio-defmethod): New `code' argument.
885 * emacs-lisp/eieio-comp.el: Remove.
887 * emacs-lisp/edebug.el (edebug-eval-defun)
888 (edebug-eval-top-level-form): Use eval-sexp-add-defvars.
889 (edebug-toggle): Avoid `eval'.
891 * emacs-lisp/disass.el (disassemble-internal): Handle new
893 (disassemble-1): Handle new byte codes.
895 * emacs-lisp/cl.el (pushnew): Silence warning.
897 * emacs-lisp/cl-macs.el (cl-byte-compile-block)
898 (cl-byte-compile-throw): Remove.
899 (cl-block-wrapper, cl-block-throw): Use compiler-macros instead.
901 * emacs-lisp/cl-extra.el (cl-macroexpand-all): Properly quote CL
904 * emacs-lisp/cconv.el: New file.
906 * emacs-lisp/bytecomp.el: Use lexical binding instead of
907 a "bytecomp-" prefix. Macroexpand everything as a separate phase.
908 (byte-compile-initial-macro-environment):
909 Handle declare-function here.
910 (byte-compile--lexical-environment): New var.
911 (byte-stack-ref, byte-stack-set, byte-discardN)
912 (byte-discardN-preserve-tos): New lap codes.
913 (byte-interactive-p): Don't use any more.
914 (byte-compile-push-bytecodes, byte-compile-push-bytecode-const2):
916 (byte-compile-lapcode): Use them and handle new lap codes.
917 (byte-compile-obsolete): Remove.
918 (byte-compile-arglist-signature): Handle new byte-code arg"lists".
919 (byte-compile-arglist-warn): Check late def of inlinable funs.
920 (byte-compile-cl-warn): Don't silence warnings for compiler-macros
921 since they should have been expanded by now.
922 (byte-compile--outbuffer): Rename from bytecomp-outbuffer.
923 (byte-compile-from-buffer): Remove unused second arg.
924 (byte-compile-preprocess): New function.
925 (byte-compile-toplevel-file-form): New function to distinguish
926 file-form calls from outside from file-form calls from hunk-handlers.
927 (byte-compile-file-form): Simplify.
928 (byte-compile-file-form-defsubst): Remove.
929 (byte-compile-file-form-defmumble): Simplify now that
930 byte-compile-lambda always returns a byte-code-function.
931 (byte-compile): Preprocess.
932 (byte-compile-byte-code-maker, byte-compile-byte-code-unmake):
933 Remove, not used any more.
934 (byte-compile-arglist-vars, byte-compile-make-lambda-lexenv)
935 (byte-compile-make-args-desc): New funs.
936 (byte-compile-lambda): Handle lexical functions. Always return
937 a byte-code-function.
938 (byte-compile-reserved-constants): New var, to make up room for
939 closed-over variables.
940 (byte-compile-constants-vector): Obey it.
941 (byte-compile-top-level): New args `lexenv' and `reserved-csts'.
942 (byte-compile-macroexpand-declare-function): New function.
943 (byte-compile-form): Call byte-compile-unfold-bcf to inline immediate
945 (byte-compile-form): Check obsolescence here.
946 (byte-compile-inline-lapcode, byte-compile-unfold-bcf): New functions.
947 (byte-compile-variable-ref): Remove.
948 (byte-compile-dynamic-variable-op): New fun.
949 (byte-compile-dynamic-variable-bind, byte-compile-variable-ref)
950 (byte-compile-variable-set): New funs.
951 (byte-compile-discard): Add 2 args.
952 (byte-compile-stack-ref, byte-compile-stack-set)
953 (byte-compile-make-closure, byte-compile-get-closed-var): New funs.
954 (byte-compile-funarg, byte-compile-funarg-2): Remove, handled in
955 macroexpand-all instead.
956 (byte-compile-quote-form): Remove.
957 (byte-compile-push-binding-init, byte-compile-not-lexical-var-p)
958 (byte-compile-bind, byte-compile-unbind): New funs.
959 (byte-compile-let): Handle let* and lexical binding.
960 (byte-compile-let*): Remove.
961 (byte-compile-catch, byte-compile-unwind-protect)
962 (byte-compile-track-mouse, byte-compile-condition-case):
963 Handle a new :fun-body form, used for lexical scoping.
964 (byte-compile-save-window-excursion)
965 (byte-compile-with-output-to-temp-buffer): Remove.
966 (byte-compile-defun): Simplify.
967 (byte-compile-stack-adjustment): New fun.
968 (byte-compile-out): Use it.
969 (byte-compile-refresh-preloaded): Don't reload byte-compiler files.
971 * emacs-lisp/byte-run.el (make-obsolete): Don't set the `byte-compile'
974 * emacs-lisp/byte-opt.el: Use lexical binding.
975 (byte-inline-lapcode): Remove (to bytecomp).
976 (byte-compile-inline-expand): Pay attention to inlining to/from
977 lexically bound code.
978 (byte-compile-unfold-lambda): Don't handle byte-code-functions
980 (byte-optimize-form-code-walker): Don't handle save-window-excursion
981 any more and don't call compiler-macros.
982 (byte-compile-splice-in-already-compiled-code): Remove.
983 (byte-code): Don't inline any more.
984 (disassemble-offset): Receive `bytes' as argument rather than via
986 (byte-compile-tag-number): Declare before first use.
987 (byte-decompile-bytecode-1): Handle new byte-codes, don't change
988 `return' even if make-spliceable.
989 (byte-compile-side-effect-and-error-free-ops): Add stack-ref, remove
990 obsolete interactive-p.
991 (byte-optimize-lapcode): Optimize new lap-codes.
992 Don't trip up on new form of `byte-constant' lap code.
994 * emacs-lisp/autoload.el (make-autoload): Don't burp on trivial macros.
996 * emacs-lisp/advice.el (ad-arglist): Use help-function-arglist.
998 * custom.el (custom-initialize-default, custom-declare-variable):
1001 * Makefile.in (BIG_STACK_DEPTH, BIG_STACK_OPTS, BYTE_COMPILE_FLAGS):
1003 (compile-onefile, .el.elc, compile-calc, recompile): Use them.
1004 (COMPILE_FIRST): Add macroexp and cconv.
1005 * makefile.w32-in: Mirror changes in Makefile.in.
1011 * vc/smerge-mode.el:
1012 * textmodes/bibtex-style.el:
1021 * emacs-lisp/smie.el:
1024 * abbrev.el: Use lexical binding.
1026 2011-04-01 Eli Zaretskii <eliz@gnu.org>
1028 * info.el (info-display-manual): New function.
1030 2011-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1032 * loadup.el: Load minibuffer after loaddefs, to use define-minor-mode.
1034 2011-03-31 Tassilo Horn <tassilo@member.fsf.org>
1036 * net/rcirc.el (rcirc-handler-001): Only authenticate, if there's
1037 an entry for that server in rcirc-authinfo. (Bug#8385)
1039 2011-03-31 Glenn Morris <rgm@gnu.org>
1041 * progmodes/f90.el (f90-find-tag-default): Handle multiple `%'.
1043 * generic-x.el (etc-fstab-generic-mode): Add ext4, sysfs keywords.
1045 2011-03-30 Christoph Scholtes <cschol2112@googlemail.com>
1047 * progmodes/python.el (python-default-interpreter)
1048 (python-python-command-args, python-jython-command-args)
1049 (python-which-shell, python-which-args, python-which-bufname)
1050 (python-file-queue, python-comint-output-filter-function)
1051 (python-toggle-shells, python-shell): Remove obsolete defcustoms,
1052 variables and functions.
1054 2011-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
1056 * minibuffer.el (completion-table-dynamic): Optimize `boundaries'.
1057 (completion-in-region-mode): New minor mode.
1058 (completion-in-region): Use it.
1059 (completion-in-region--data, completion-in-region-mode-map): New vars.
1060 (completion-in-region--postch): New function.
1061 (completion--capf-misbehave-funs, completion--capf-safe-funs):
1063 (completion--capf-wrapper): New function.
1064 (completion-at-point): Use it to track well-behavedness of
1066 (completion-help-at-point): New command.
1068 2011-03-30 Jason Merrill <jason@redhat.com> (tiny change)
1070 * vc/add-log.el (add-change-log-entry): Don't use whitespace
1071 syntax class to search for whitespace on a single line
1072 (Message-ID: <4D938140.4030905@redhat.com>).
1074 2011-03-30 Leo Liu <sdl.web@gmail.com>
1076 * abbrev.el (abbrev-edit-save-to-file, abbrev-edit-save-buffer):
1078 (edit-abbrevs-map): Bind them here.
1079 (write-abbrev-file): New optinal arg VERBOSE. (Bug#5937)
1081 2011-03-29 Ken Manheimer <ken.manheimer@gmail.com>
1083 * allout.el (allout-hide-by-annotation, allout-flag-region):
1084 Reduce possibility of overlay leakage by making them volatile.
1086 * allout-widgets.el (allout-widgets-tally): Define as nil so the
1087 hash is not shared between buffers. Mode initialization is
1088 responsible for giving it a useful starting value.
1089 (allout-item-span): Reduce possibility of overlay leakage by
1090 making them volatile.
1091 (allout-widgets-count-buttons-in-region): Add diagnostic function
1092 for tracking down button overlay leaks.
1094 2011-03-29 Leo Liu <sdl.web@gmail.com>
1096 * ido.el (ido-read-internal): Use the default history var
1097 minibuffer-history if no HISTORY is specified.
1099 2011-03-28 Brian T. Sniffen <bsniffen@akamai.com> (tiny change)
1101 * net/imap.el (imap-shell-open, imap-process-connection-type):
1102 Use imap-process-connection-type for 'shell' streams as well as
1103 Kerberos, SSL, other subprocesses.
1105 2011-03-28 Leo Liu <sdl.web@gmail.com>
1107 * abbrev.el (abbrev-table-empty-p): New function.
1108 (prepare-abbrev-list-buffer): Place empty abbrev tables after
1109 nonempty ones. (Bug#5937)
1111 2011-03-27 Jan Djärv <jan.h.d@swipnet.se>
1113 * cus-start.el (all): Add boolean ns-auto-hide-menu-bar.
1115 2011-03-27 Leo Liu <sdl.web@gmail.com>
1117 * ansi-color.el (ansi-color-names-vector): Allow cons cell value
1118 for foreground and background colors.
1119 (ansi-color-make-color-map): Adapt.
1121 2011-03-25 Leo Liu <sdl.web@gmail.com>
1123 * midnight.el (midnight-time-float): Remove. Note it calculates
1124 the microsecond component incorrectly and seconds-to-time does the
1126 Remove redundant (require 'timer).
1128 * ido.el (ido-read-internal): Simplify with read-from-minibuffer.
1129 (ido-completions): Remove unused arguments. (Bug#8329)
1131 2011-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
1133 * minibuffer.el (completion--flush-all-sorted-completions):
1134 Remove itself from hook.
1135 (completion-at-point): Let the functions perform the completion
1136 immediately and return nil or t.
1137 * comint.el (comint-dynamic-complete-functions): Now identical to
1138 completion-at-point-functions.
1139 (comint-dynamic-list-input-ring): Remove unused var `index'.
1140 (comint--match-partial-filename, comint--unquote&expand-filename):
1141 New funs, split from comint-match-partial-filename.
1142 (comint-dynamic-complete): Use completion-at-point.
1143 (comint-dynamic-complete-filename): Use comint--match-partial-filename.
1145 2011-03-24 Drew Adams <drew.adams@oracle.com>
1147 * thingatpt.el: Support `defun'.
1149 2011-03-23 Leo Liu <sdl.web@gmail.com>
1151 * abbrevlist.el: Move to obsolete/abbrevlist.el.
1153 * help-mode.el (help-mode-finish): Tweak regexp.
1155 2011-03-23 Glenn Morris <rgm@gnu.org>
1157 * eshell/esh-opt.el (eshell-eval-using-options):
1158 Do not bind unused local variable `eshell-option-stub'.
1160 * progmodes/gdb-mi.el (gdb): Fix typo in previous change.
1162 2011-03-22 Juanma Barranquero <lekktu@gmail.com>
1164 * emacs-lisp/derived.el (define-derived-mode): Wrap declaration of
1165 keymap variable in `with-no-warnings' to avoid a warning when the
1166 keymap has been already `defconst'ed.
1168 2011-03-22 Leo Liu <sdl.web@gmail.com>
1170 * abbrev.el (write-abbrev-file): Use utf-8 for writing if it can
1171 encode all chars in abbrevs; otherwise use emacs-mule or
1172 utf-8-emacs. (Bug#8308)
1174 2011-03-22 Juanma Barranquero <lekktu@gmail.com>
1176 * simple.el (backward-delete-char-untabify):
1177 Avoid warning about using `delete-backward-char'.
1179 * image.el (image-type-file-name-regexps): Make it variable.
1180 `imagemagick-register-types' modifies it, and the user may want
1181 to add new extensions for known image types.
1182 (imagemagick-register-types): Throw error if not using ImageMagick.
1184 2011-03-22 Leo Liu <sdl.web@gmail.com>
1186 * net/rcirc.el (rcirc-completion-at-point): Return nil if point is
1187 located before rcirc-prompt-end-marker.
1188 (rcirc-complete): Error if point is not after rcirc prompt.
1189 Handle the case when table is nil.
1190 (rcirc-user-authenticated): Define to fix compiler warning.
1192 2011-03-22 Chong Yidong <cyd@stupidchicken.com>
1194 * custom.el (custom--inhibit-theme-enable): Make it affect only
1195 custom-theme-set-variables and custom-theme-set-faces.
1196 (provide-theme): Ignore custom--inhibit-theme-enable.
1197 (load-theme): Enable the theme explicitly if NO-ENABLE is non-nil.
1198 (custom-enabling-themes): Delete variable.
1199 (enable-theme): Accept only loaded themes as arguments.
1200 Ignore the special custom-enabled-themes variable.
1201 (custom-enabled-themes): Forbid themes from setting this.
1202 Eliminate use of custom-enabling-themes.
1203 (custom-push-theme): Quote "changed" custom var entry.
1205 2011-03-21 Leo Liu <sdl.web@gmail.com>
1207 * ido.el (ido-read-internal): Add ido-selected to history instead
1210 2011-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
1212 * subr.el (deferred-action-list, deferred-action-function):
1215 2011-03-21 Leo Liu <sdl.web@gmail.com>
1217 * vc/log-view.el: Remove (require 'wid-edit), not needed after the
1218 change on 2011-02-13 (bug#8309).
1220 * minibuffer.el (read-file-name-function): Change default value.
1221 (read-file-name--defaults): Rename from read-file-name-defaults.
1222 (read-file-name-default): Rename from read-file-name.
1223 (read-file-name): Call read-file-name-function.
1225 2011-03-21 Glenn Morris <rgm@gnu.org>
1227 * eshell/esh-opt.el (eshell-eval-using-options, eshell-process-args):
1230 2011-03-21 Chong Yidong <cyd@stupidchicken.com>
1232 * cus-theme.el: Add missing provide statement.
1233 (customize-create-theme): Extract theme value correctly.
1234 (custom-theme-visit-theme): Autoload.
1235 (customize-create-theme): Prompt before inserting default faces.
1237 2011-03-20 Jay Belanger <jay.p.belanger@gmail.com>
1239 * calc/calc-menu.el (calc-units-menu): Add entries for logarithmic
1240 units and musical notes.
1242 2011-03-20 Leo <sdl.web@gmail.com>
1244 * ido.el (ido-read-internal): Use completing-read-default.
1245 (ido-completing-read): Fix compatibility with completing-read.
1247 2011-03-20 Christian Ohler <ohler@gnu.org>
1249 * emacs-lisp/ert.el (ert-run-tests-batch): Remove unused variable.
1250 (ert-delete-all-tests): Use `called-interactively-p' rather than
1252 (ert--make-xrefs-region): Respect END.
1254 2011-03-19 Chong Yidong <cyd@stupidchicken.com>
1256 * dired-aux.el (dired-create-directory): Signal an error if the
1257 directory already exists (Bug#8246).
1259 * facemenu.el (list-colors-display): Call list-faces-display
1260 inside with-help-window.
1261 (list-colors-print): Use display property to align the final
1262 column, instead of checking window-width.
1264 2011-03-19 Eli Zaretskii <eliz@gnu.org>
1266 * emerge.el (emerge-metachars): Separate value for ms-dos and
1268 (emerge-protect-metachars): Quote correctly for ms-dos and
1271 2011-03-19 Ralph Schleicher <rs@ralph-schleicher.de> (tiny change)
1273 * info.el (info-initialize): Replace all uses of `:' with
1274 path-separator for compatibility with non-Unix systems.
1275 Cache quoting of path-separator. (Bug#8258)
1277 2011-03-19 Juanma Barranquero <lekktu@gmail.com>
1279 * avoid.el (mouse-avoidance-mode, mouse-avoidance-nudge-dist)
1280 (mouse-avoidance-threshold, mouse-avoidance-banish-destination)
1281 (mouse-avoidance-mode): Fix typos in docstrings.
1283 2011-03-19 Chong Yidong <cyd@stupidchicken.com>
1285 * startup.el (package-subdirectory-regexp): Move from package.el.
1286 Omit \\` and \\', and let callers add them.
1288 * emacs-lisp/package.el (package-strip-version)
1289 (package-load-all-descriptors): Add \\` and \\' to
1290 package-subdirectory-regexp before using it.
1291 (package-untar-buffer): New arg DIR; ensure that file untars only
1292 into this expected directory. Remove superfluous delete-region.
1293 (package-unpack): Caller changed.
1294 (package-tar-file-info): Use package-subdirectory-regexp.
1296 2011-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
1298 * vc/diff-mode.el (diff-mode-map): Shadow problematic bindings from
1299 diff-mode-shared-map (bug#8284).
1300 (diff-mode-shared-map): Re-introduce some bindings that were problematic.
1302 2011-03-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
1304 * calendar/time-date.el (format-seconds): Use assoc instead of
1305 assoc-string, since assoc-string doesn't exist in XEmacs.
1307 2011-03-17 Juanma Barranquero <lekktu@gmail.com>
1309 * custom.el (custom-known-themes): Reflow docstring.
1310 (custom-theme-load-path): Fix typo in docstring.
1311 (load-theme): Fix typo in error message.
1312 (custom-available-themes, custom-variable-theme-value):
1313 Use `let', not `let*'.
1315 2011-03-17 Jay Belanger <jay.p.belanger@gmail.com>
1317 * calc/README: Mention inclusion of musical notes.
1319 * calc/calc-units.el (calc-lu-quant): Rename from
1320 `calc-logunits-quantity'.
1321 (calcFunc-lupquant): Rename from `calcFunc-powerquant'.
1322 (calcFunc-lufquant): Rename from `calcFunc-fieldquant'.
1323 (calc-db): Rename from `calc-dblevel'.
1324 (calcFunc-dbpower): Rename from `calcFunc-dbpowerlevel'.
1325 (calcFunc-dbfield): Rename from `calcFunc-dbfieldlevel'.
1326 (calc-np): Rename from `calc-nplevel'.
1327 (calcFunc-nppower): Rename from `calcFunc-nppowerlevel'.
1328 (calcFunc-npfield): Rename from `calcFunc-npfieldlevel'.
1329 (calc-lu-plus): Rename from `calc-logunits-add'.
1330 (calcFunc-lupadd): Rename from `calcFunc-lupoweradd'.
1331 (calcFunc-lufadd): Rename from `calcFunc-lufieldadd'.
1332 (calc-lu-minus): Rename from `calc-logunits-sub'.
1333 (calcFunc-lupsub): Rename from `calcFunc-lupowersub'.
1334 (calcFunc-lufsub): Rename from `calcFunc-lufieldsub'.
1335 (calc-lu-times): Rename from `calc-logunits-mul'.
1336 (calcFunc-lupmul): Rename from `calcFunc-lupowermul'.
1337 (calcFunc-lufmul): Rename from `calcFunc-lufieldmul'.
1338 (calc-lu-divide): Rename from `calc-logunits-div'.
1339 (calcFunc-lupdiv): Rename from `calcFunc-lupowerdiv'.
1340 (calcFunc-lufdiv): Rename from `calcFunc-lufielddiv'.
1342 * calc/calc-ext.el (calc-init-extensions): Update the names of the
1343 functions being autoloaded.
1345 * calc/calc.el (calc-lu-power-reference): Rename from
1346 `calc-logunits-power-reference'.
1347 (calc-lu-field-reference): Rename from
1348 `calc-logunits-field-reference'.
1350 * calc/calc-help (calc-l-prefix-help): Mention musical note functions.
1352 2011-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1354 * minibuffer.el (completion-all-sorted-completions):
1355 Use :completion-cycle-penalty text property if present.
1357 2011-03-16 Ken Manheimer <ken.manheimer@gmail.com>
1359 * allout.el (allout-yank-processing): Adjust for new rebulleting
1360 regime so bullet being yanked is used without prompting the user
1363 2011-03-16 Juanma Barranquero <lekktu@gmail.com>
1365 * startup.el (command-line): Warn the user that _emacs is deprecated.
1367 2011-03-16 Juanma Barranquero <lekktu@gmail.com>
1369 * progmodes/delphi.el (delphi-search-path, delphi-indent-level)
1370 (delphi-verbose, delphi-comment-face, delphi-string-face)
1371 (delphi-keyword-face, delphi-ignore-changes, delphi-indent-line)
1372 (delphi-mode-abbrev-table, delphi-debug-buffer, delphi-tab)
1373 (delphi-find-unit, delphi-find-current-xdef, delphi-fill-comment)
1374 (delphi-new-comment-line, delphi-font-lock-defaults)
1375 (delphi-debug-mode-map, delphi-mode-syntax-table, delphi-mode):
1376 Fix typos in docstrings.
1378 2011-03-15 Ken Manheimer <ken.manheimer@gmail.com>
1380 * allout.el (allout-make-topic-prefix, allout-rebullet-heading):
1381 Invert the roles of character and string values for INSTEAD, so a
1382 string is used for the more common case of a defaulting prompt.
1384 2011-03-15 Stefan Monnier <monnier@iro.umontreal.ca>
1386 * progmodes/ruby-mode.el (ruby-backward-sexp):
1387 * progmodes/ebrowse.el (ebrowse-draw-file-member-info):
1388 * play/gamegrid.el (gamegrid-make-face):
1389 * play/bubbles.el (bubbles--grid-width, bubbles--grid-height)
1390 (bubbles--colors, bubbles--shift-mode, bubbles--initialize-images):
1391 * notifications.el (notifications-notify):
1392 * net/xesam.el (xesam-search-engines):
1393 * net/quickurl.el (quickurl-list-insert):
1394 * vc/vc-hg.el (vc-hg-dir-printer): Fix use of case.
1396 2011-03-15 Chong Yidong <cyd@stupidchicken.com>
1398 * startup.el (command-line): Update package subdirectory regexp.
1400 2011-03-15 Stefan Monnier <monnier@iro.umontreal.ca>
1402 * allout.el (allout-abbreviate-flattened-numbering)
1403 (allout-mode-deactivate-hook): Fix up obsolescence "date".
1405 * subr.el (read-char-choice): Only show the cursor after the prompt,
1406 not after the answer.
1408 2011-03-15 Kevin Ryde <user42@zip.com.au>
1410 * help-fns.el (variable-at-point): Skip leading quotes, if any
1413 2011-03-15 Stefan Monnier <monnier@iro.umontreal.ca>
1415 * emacs-lisp/bytecomp.el (byte-compile-save-excursion): Change the
1418 2011-03-14 Michael Albinus <michael.albinus@gmx.de>
1420 * shell.el (shell): When called interactively, offer to change the
1421 shell file name on remote hosts.
1423 2011-03-13 Teodor Zlatanov <tzz@lifelogs.com>
1425 * net/ldap.el (ldap-search-internal): Add `auth-source-search'
1426 integration for LDAP parameters. The host, base, user or binddn,
1427 and secret tokens can be specified in a netrc file, for instance.
1428 This is optional because an `auth-source' parameter must be
1429 specified in the search attributes.
1431 2011-03-13 Juanma Barranquero <lekktu@gmail.com>
1433 * help.el (describe-mode): Link to the mode's definition (bug#8185).
1435 2011-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
1437 * ebuff-menu.el (electric-buffer-menu-mode-map): Move initialization
1438 into declaration. Remove redundant and harmful binding.
1440 2011-03-12 Eli Zaretskii <eliz@gnu.org>
1442 * files.el (file-ownership-preserved-p): Pass `integer' as an
1443 explicit 2nd argument to `file-attributes'. If the file's owner
1444 is the Administrators group on Windows, and the current user is
1445 Administrator, consider that a match.
1447 * server.el (server-ensure-safe-dir): Consider server directory
1448 safe on MS-Windows if its owner is the Administrators group while
1449 the current Emacs user is Administrator. Use `=' to compare
1450 numerical UIDs, since they could be integers or floats.
1452 2011-03-12 Juanma Barranquero <lekktu@gmail.com>
1454 * vc/vc-bzr.el (vc-bzr-state): Handle bzr 2.3.0 (follow-up to bug#8170).
1456 2011-03-12 Michael Albinus <michael.albinus@gmx.de>
1458 Sync with Tramp 2.2.1.
1460 * net/tramp-sh.el (tramp-methods): Exchange "%k" marker with options.
1462 * net/trampver.el: Update release number.
1464 2011-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
1466 * progmodes/compile.el (compilation--previous-directory): Fix up
1467 various nil/dead-marker mismatches (bug#8014).
1468 (compilation-directory-properties, compilation-error-properties):
1469 Don't call it at a position past the one we're about to change.
1471 * emacs-lisp/bytecomp.el (byte-compile-make-obsolete-variable):
1472 Disable obsolescence warnings in the file that declares it.
1474 2011-03-11 Ken Manheimer <ken.manheimer@gmail.com>
1476 * allout-widgets.el (allout-widgets-tally):
1477 Initialize allout-widgets-tally as a hash table rather than nil to
1478 prevent mode-line redisplay warnings. Also, clarify the module
1479 description and fix a comment typo.
1481 2011-03-11 Juanma Barranquero <lekktu@gmail.com>
1483 * help-fns.el (describe-variable): Don't complete keywords.
1484 Suggested by Teodor Zlatanov <tzz@lifelogs.com>.
1486 2011-03-10 Chong Yidong <cyd@stupidchicken.com>
1488 * emacs-lisp/package.el (package-version-join): Impose a standard
1489 string representation for pre/alpha/beta version lists.
1490 (package-unpack-single): Standardize the directory name by passing
1491 it through package-version-join.
1492 (package-strip-rcs-id): Accept any version string that does not
1493 signal an error in version-to-list.
1495 2011-03-10 Michael Albinus <michael.albinus@gmx.de>
1497 * simple.el (delete-trailing-whitespace): Return nil for the
1498 benefit of `write-file-functions'.
1500 2011-03-10 Glenn Morris <rgm@gnu.org>
1502 * vc/vc-hg.el (vc-hg-pull, vc-hg-merge-branch): Use vc-hg-program.
1504 * vc/vc-git.el (vc-git-program): New option.
1505 (vc-git-branches, vc-git-pull, vc-git-merge-branch, vc-git-command)
1506 (vc-git--call): Use it.
1508 * eshell/esh-util.el (eshell-condition-case): Doc fix.
1510 * cus-edit.el (Custom-newline): If no button at point, look
1511 for a subgroup button at start-of-line. (Bug#2298)
1513 * mail/rmail.el (rmail-msgend, rmail-msgbeg): Doc fixes.
1515 2011-03-10 Julien Danjou <julien@danjou.info>
1517 * avoid.el (mouse-avoidance-ignore-p): Do not move the cursor if
1518 `cursor-type' is nil.
1520 2011-03-09 Jay Belanger <jay.p.belanger@gmail.com>
1522 * calc/calc.el (calc-mode-map): Don't bind "C-_" to `calc-missing-key'.
1524 2011-03-09 Ken Manheimer <ken.manheimer@gmail.com>
1526 * allout.el Summary: Change so yank of distinctive-bullet items
1527 preserves the existing header prefix, rebulleting it if necessary,
1528 rather than replacing it. This is necessary for proper operation
1529 of cooperative addons like allout-widgets.
1530 (allout-make-topic-prefix, allout-rebullet-heading): Change
1531 SOLICIT arg to INSTEAD, and interpret additionally a string value
1532 as alternate bullet to be used, instead of prompting the user for
1535 2011-03-09 Michael Albinus <michael.albinus@gmx.de>
1537 * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
1538 Do not use `tramp-file-name-port', because this returns also
1539 `tramp-default-port'.
1541 2011-03-09 Deniz Dogan <deniz.a.m.dogan@gmail.com>
1543 * net/rcirc.el (rcirc-handler-001): Remove useless
1544 with-rcirc-process-buffer.
1545 (rcirc-check-auth-status): Swap arguments to string-match.
1547 2011-03-09 Glenn Morris <rgm@gnu.org>
1549 * shell.el (shell-mode):
1550 Set comint-input-ring-size from HISTSIZE. (Bug#7889)
1552 * progmodes/gdb-mi.el (gdb): Improve 2010-12-08 change.
1553 Check for GDBHISTFILE, HISTSIZE, etc. (Bug#7889)
1555 2011-03-08 Chong Yidong <cyd@stupidchicken.com>
1557 * emacs-lisp/package.el (package-refresh-contents)
1558 (package-menu-execute): Use condition-case-no-debug.
1560 2011-03-08 Michael Albinus <michael.albinus@gmx.de>
1562 * simple.el (shell-command-to-string): Use `process-file'.
1564 * emacs-lisp/package.el (package-tar-file-info): Handle also
1567 * emacs-lisp/package-x.el (package-upload-buffer-internal):
1568 Use `equal' for upload base check.
1570 2011-03-08 Arni Magnusson <arnima@hafro.is> (tiny change)
1572 * textmodes/texinfo.el (texinfo-environments):
1573 Add deftypecv, deftypeivar, deftypemethod, deftypeop, html. (Bug#2783)
1575 2011-03-08 Glenn Morris <rgm@gnu.org>
1577 * cus-start.el (cursor-in-non-selected-windows):
1578 Fix :set quoting oddness. (Bug#8192)
1580 * font-lock.el (lisp-font-lock-keywords-1): Don't highlight `)'
1581 in some setf expressions. (Bug#2159)
1583 2011-03-08 Chong Yidong <cyd@stupidchicken.com>
1585 * custom.el (custom-available-themes): Return themes in
1588 See ChangeLog.15 for earlier changes.
1594 Copyright (C) 2011 Free Software Foundation, Inc.
1596 This file is part of GNU Emacs.
1598 GNU Emacs is free software: you can redistribute it and/or modify
1599 it under the terms of the GNU General Public License as published by
1600 the Free Software Foundation, either version 3 of the License, or
1601 (at your option) any later version.
1603 GNU Emacs is distributed in the hope that it will be useful,
1604 but WITHOUT ANY WARRANTY; without even the implied warranty of
1605 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1606 GNU General Public License for more details.
1608 You should have received a copy of the GNU General Public License
1609 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.