ChangeLog 303 KB
Newer Older
1 2 3 4 5 6
2013-10-03  Daiki Ueno  <ueno@gnu.org>

	* epg.el (epg-verify-file): Add a comment saying that it does not
	notify verification error as a return value nor a signal.
	(epg-verify-string): Ditto.

7 8 9 10 11
2013-10-02  Kevin Rodgers  <kevin.d.rodgers@gmail.com>

	* progmodes/compile.el (compilation-start): Try globbing the arg to
	`cd' (bug#15417).

Michael Albinus's avatar
Michael Albinus committed
12 13 14 15 16 17 18 19
2013-10-02  Michael Albinus  <michael.albinus@gmx.de>

	Sync with Tramp 2.2.8.

	* net/tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers):
	* net/tramp-cache.el (tramp-cache-print): Use `tramp-compat-funcall'.
	* net/trampver.el: Update release number.

20 21 22 23 24
2013-10-01  Jan Djärv  <jan.h.d@swipnet.se>

	* term/ns-win.el (ns-initialize-window-system): Set locale-coding-system
	and default-process-coding-system for darwin only.

25 26 27 28
2013-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>

	* emacs-lisp/package.el (package-desc): Simplify (bug#15495).

29 30 31 32
2013-10-01  Mitchel Humpherys  <mitch.special@gmail.com>  (tiny change)

	* vc/vc-git.el (vc-git-grep): Disable pager.

33 34
2013-10-01  Dmitry Gutov  <dgutov@yandex.ru>

35 36 37 38
	* emacs-lisp/package.el (package-buffer-info, describe-package-1):
	Use :url instead of :homepage, as per
	http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00622.html

39 40 41
	* newcomment.el (comment-beginning): When `comment-use-syntax' is
	non-nil, use `syntax-ppss' (Bug#15251).

42 43
2013-09-30  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>

44 45
	* progmodes/octave.el (inferior-octave-startup-file):
	Prefer ~/.emacs.d/init_octave.m.
46

47 48
2013-09-29  Dmitry Gutov  <dgutov@yandex.ru>

49 50 51
	* emacs-lisp/package.el (package-desc-from-define):
	Accept additional arguments as plist, convert them to an alist and store
	them in the `extras' slot.
52 53 54 55 56 57 58 59 60 61 62
	(package-generate-description-file): Convert extras alist back to
	plist and append to the `define-package' form arguments.
	(package--alist-to-plist): New function.
	(package--ac-desc): Add `extras' slot.
	(package--add-to-archive-contents): Check if the archive-contents
	vector is long enough, and if it is, pass its `extras' slot value
	to `package-desc-create'.
	(package-buffer-info): Call `lm-homepage', pass the returned value
	to `package-desc-from-define'.
	(describe-package-1): Render the homepage button (Bug#13291).

63 64
	* emacs-lisp/package-x.el (package-upload-buffer-internal):
	Pass `extras' slot from `package-desc' to `package-make-ac-desc'.
65

66 67 68 69 70
2013-09-29  Jan Djärv  <jan.h.d@swipnet.se>

	* term/ns-win.el (ns-initialize-window-system): Set locale-coding-system
	and default-process-coding-system to utf-8-unix (Bug#15402).

71 72 73 74
2013-09-29  Xue Fuqiao  <xfq.free@gmail.com>

	* subr.el (looking-back): Do not recommend using looking-back.

75 76 77 78 79 80 81 82 83 84 85 86
2013-09-28  Alan Mackenzie  <acm@muc.de>

	Fix indentation/fontification of Java enum with "implements".

	* progmodes/cc-langs.el (c-postfix-decl-spec-key): New variable, a
	regexp which matches "implements", etc., in Java.
	* progmodes/cc-engine.el (c-inside-bracelist-p): Check for extra
	specifier clauses coming after "enum".
	* progmodes/cc-fonts.el (c-font-lock-declarations)
	(c-font-lock-enum-tail): Check for extra specifier clauses coming
	after "enum".

87 88 89 90 91
2013-09-28  Jan Djärv  <jan.h.d@swipnet.se>

	* faces.el (region): Change ns_selection_color to
	ns_selection_fg_color, add ns_selection_bg_color.

92 93
2013-09-28  Leo Liu  <sdl.web@gmail.com>

94 95 96
	* progmodes/octave.el (inferior-octave-completion-table)
	(inferior-octave-completion-at-point): Minor tweaks.

97 98 99 100 101
	* textmodes/ispell.el (ispell-lookup-words): Rename from
	lookup-words.  (Bug#15460)
	(lookup-words): Obsolete.
	(ispell-complete-word, ispell-command-loop): All uses changed.

102 103 104 105 106 107
2013-09-28  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>

	* lisp/progmodes/octave.el (octave-mode-map): Bind octave-send-buffer.
	(octave-mode-menu): Add octave-send-buffer.
	(octave-send-buffer): New function.

108 109 110 111 112 113 114 115 116
2013-09-28  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>

	* lisp/progmodes/octave.el (octave-mode-map): Add key binding for
	octave-lookfor.
	(octave-mode-menu): Add octave-lookfor.
	(inferior-octave-mode-map, octave-help-mode-map): Bind C-ha to
	octave-lookfor.
	(octave-lookfor): New function.

Stefan Monnier's avatar
Stefan Monnier committed
117 118 119 120 121 122 123 124 125 126 127 128 129 130
2013-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>

	* emacs-lisp/cl-macs.el:
	(cl--loop-destr-temps): Remove.
	(cl--loop-iterator-function): Rename from cl--loop-map-form and change
	its convention.
	(cl--loop-set-iterator-function): New function.
	(cl-loop): Adjust accordingly, so as not to use cl-subst.
	(cl--parse-loop-clause): Adjust all uses of cl--loop-map-form.
	Bind `it' with `let' instead of substituting it with `cl-subst'.
	(cl--unused-var-p): New function.
	(cl--loop-let): Don't use the cl--loop-destr-temps hack any more.
	Eliminate some unused variable warnings (bug#15326).

131 132 133 134 135 136 137 138
2013-09-27  Tassilo Horn  <tsdh@gnu.org>

	* doc-view.el (doc-view-scale-reset): Rename from
	`doc-view-reset-zoom-level'.
	(doc-view-scale-adjust): New command.
	(doc-view-mode-map): Remap `text-scale-adjust' bindings to
	`doc-view-scale-adjust'.

139 140 141 142 143 144
2013-09-26  Tassilo Horn  <tsdh@gnu.org>

	* doc-view.el (doc-view-reset-zoom-level): New command.
	(doc-view-mode-map): Remap text-scale-adjust bindings to doc-view
	zoom commands (bug#15466).

145 146 147 148
2013-09-26  Kenichi Handa  <handa@gnu.org>

	* international/quail.el (quail-help): Make it not a command.

149 150 151 152 153
2013-09-26  Leo Liu  <sdl.web@gmail.com>

	* minibuffer.el (completion-all-sorted-completions): Make args
	optional as they are.

154 155 156 157 158
2013-09-25  Daniel Colascione  <dancol@dancol.org>

	* emacs-lisp/cl-macs.el (cl-type-spec): Tell edebug what type
	specs are and that they're not evaluated.

159 160 161 162 163 164
2013-09-24  Sam Steingold  <sds@gnu.org>

	* midnight.el (clean-buffer-list-kill-regexps)
	(clean-buffer-list-kill-buffer-names): Update for the new Man
	buffer naming which includes the object name.

165 166 167 168 169 170 171
2013-09-23  Stefan Monnier  <monnier@iro.umontreal.ca>

	* eshell/esh-cmd.el (eshell--sep-terms): New var.
	(eshell-parse-command, eshell-parse-pipeline): Use it since
	eshell-separate-commands requires a dynamic scoped var.
	Reported by Jan Moringen <jmoringe@techfak.uni-bielefeld.de>.

172 173 174 175 176
2013-09-23  Leo Liu  <sdl.web@gmail.com>

	* autoinsert.el (auto-insert-alist): Make the value of
	lexical-binding match its file setting.

177 178
2013-09-23  Juanma Barranquero  <lekktu@gmail.com>

179 180
	* vc/vc-sccs.el (vc-sccs-search-project-dir): Mark unused argument.

181 182 183 184 185
	* autoarg.el (autoarg-kp-digit-argument):
	* electric.el (Electric-command-loop):
	* kmacro.el (kmacro-step-edit-insert):
	Do not set universal-argument-num-events.

186 187 188 189
2013-09-22  Leo Liu  <sdl.web@gmail.com>

	* files.el (interpreter-mode-alist): Add octave.

190 191 192 193 194 195 196 197 198
2013-09-21  Alan Mackenzie  <acm@muc.de>

	C++: fontify identifier in declaration following "public:" correctly.
	* progmodes/cc-langs.el (c-decl-start-colon-kwd-re): New lang var
	to match "public", etc.
	(c-decl-prefix-re): Add ":" into the C++ value.
	* progmodes/cc-engine.el (c-find-decl-prefix-search): Refactor a
	bit.  Add a check for a ":" preceded by "public", etc.

199 200 201 202 203
2013-09-21  Eli Zaretskii  <eliz@gnu.org>

	* files.el (auto-mode-alist): Support OBJFILE-gdb.gdb script files
	recognized by GDB 7.5 and later.

204 205 206 207
2013-09-21  Xue Fuqiao  <xfq.free@gmail.com>

	* vc/vc-dir.el (vc-dir-mode-map): Add keybinding for vc-log-incoming.

208 209 210 211 212
2013-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>

	* subr.el (internal--call-interactively): New const.
	(called-interactively-p): Use it (bug#3984).

213 214 215
2013-09-20  Xue Fuqiao  <xfq.free@gmail.com>

	* vc/pcvs.el (cvs-mode-ignore):
216 217
	* vc/vc-cvs.el (vc-cvs-ignore, vc-cvs-append-to-ignore):
	Rename cvs-append-to-ignore to vc-cvs-append-to-ignore.
218

219 220 221 222 223 224 225 226 227 228
2013-09-19  Stefan Monnier  <monnier@iro.umontreal.ca>

	* eshell/em-ls.el: Use advice.  Remove redundant :group keywords.
	(eshell-ls-orig-insert-directory): Remove.
	(eshell-ls-unload-hook): Not a defcustom any more.  Use advice-remove.
	(eshell-ls-use-in-dired): Use advice-add/remove.
	(eshell-ls--insert-directory): Rename from eshell-ls-insert-directory.
	Add `orig-fun' arg for use in :around advice.
	Make it check (redundantly) eshell-ls-use-in-dired.

229 230
2013-09-19  Glenn Morris  <rgm@gnu.org>

231 232
	* emacs-lisp/cl-macs.el (cl-defsubst): Remove unused local `pbody'.

233 234
	* simple.el (x-selection-owner-p, x-selection-exists-p): Declare.

235 236
	* emacs-lisp/eieio.el (class-parent): Undo previous change.

237 238 239 240 241 242 243 244 245 246 247 248 249
2013-09-19  Michael Albinus  <michael.albinus@gmx.de>

	* net/tramp-sh.el (tramp-get-remote-id): Do not raise an error.
	(tramp-get-remote-uid-with-id, tramp-get-remote-gid-with-id)
	(tramp-get-remote-python): New defuns.
	(tramp-get-remote-uid-with-perl)
	(tramp-get-remote-gid-with-perl): New defuns.  Perl code
	contributed by yary <not.com@gmail.com> (tiny change).
	(tramp-get-remote-uid-with-python)
	(tramp-get-remote-gid-with-python): New defuns.  Python code
	contributed by Andrey Tykhonov <atykhonov@gmail.com> (tiny change).
	(tramp-get-remote-uid, tramp-get-remote-gid): Use new defuns.

250 251
2013-09-19  Glenn Morris  <rgm@gnu.org>

252 253
	* emacs-lisp/eieio.el (class-parent): Don't use defalias with macros.

254 255 256
	* eshell/em-unix.el (eshell-remove-entries):
	Rename argument to avoid name-clash with global `top-level'.

Glenn Morris's avatar
Glenn Morris committed
257 258 259 260
	* eshell/esh-proc.el (eshell-kill-process-function):
	Remove eshell-reset-after-proc from eshell-kill-hook if present.
	(eshell-reset-after-proc): Remove unused arg `proc'.

261 262 263
	* eshell/esh-util.el (eshell-read-hosts-file): Use `filename' arg.
	(directory-files-and-attributes): Mark unused arg.

264 265 266
	* eshell/em-unix.el (eshell-remove-entries):
	Remove unused arg `path'.  Update callers.

267 268 269
	* eshell/em-hist.el (eshell-hist-parse-arguments):
	Remove unused arg `silent'.  Update callers.

270 271 272 273 274
	* eshell/em-ls.el (eshell-ls-use-in-dired): Use `symbol' arg.
	Fix (f)boundp mix-up.

	* eshell/em-smart.el (eshell-smart-scroll-window)
	(eshell-disable-after-change):
Glenn Morris's avatar
Glenn Morris committed
275
	* eshell/em-term.el (eshell-term-sentinel): Mark unused arg.
276

277 278 279 280 281 282
2013-09-18  Alan Mackenzie  <acm@muc.de>

	Fix fontification of type when followed by "const".
	* progmodes/cc-engine.el (c-forward-decl-or-cast-1): Don't exclude
	"known" types from fontification.

283 284
2013-09-18  Glenn Morris  <rgm@gnu.org>

285 286 287
	* emacs-lisp/chart.el (x-display-color-cells): Declare.
	(chart-face-list): Drop Emacsen without display-color-p.

288 289 290
	* net/eww.el (libxml-parse-html-region): Declare.
	(eww-display-html): Explicit error if no libxml2 support.

291 292
	* doc-view.el (doc-view-mode): Silence --without-x compilation.

293 294
	* image.el (image-type-from-buffer, image-multi-frame-p):
	Remove --without-x warning/error.
295

296
	* mouse.el (mouse-yank-primary):
297
	* term.el (term-mouse-paste):
298 299
	Reorder to silence --without-x compilation.

300 301
	* mpc.el (doc-view-mode): Silence --without-x compilation.

302 303 304
	* mail/rmailmm.el (rmail-mime-set-bulk-data):
	Silence --without-x compilation.

305 306 307
	* progmodes/gud.el (gud-find-file, gud-mode):
	Silence --without-x compilation.
	(tooltip-mode): Declare.
308

Glenn Morris's avatar
Glenn Morris committed
309 310 311
	* wdired.el (dired-backup-overwrite): Remove declaration.
	(wdired-mode-map): Add doc string.

312 313
	* custom.el (x-get-resource): Declare.

314 315 316
	* eshell/em-glob.el (ange-cache):
	* eshell/em-unix.el (ange-cache): Declare.

317 318
	* faces.el (x-display-list, x-open-connection, x-get-resource):
	Declare.
319 320 321 322

	* follow.el (scroll-bar-toolkit-scroll, scroll-bar-drag)
	(scroll-bar-scroll-up, scroll-bar-scroll-down, mwheel-scroll):
	Declare.
323

324
	* frame.el (x-display-grayscale-p, x-display-name): Declare.
325

326 327
	* net/gnutls.el (gnutls-log-level): Declare.

328 329
	* net/shr.el (image-size, image-animate): Declare.

330 331
	* simple.el (font-info): Declare.

332 333
	* subr.el (x-popup-dialog): Declare.

334 335 336 337
	* term/common-win.el (x-select-enable-primary)
	(x-last-selected-text-primary, x-last-selected-text-clipboard):
	Declare.

338 339
	* term/ns-win.el (x-handle-args): Declare.

340 341
	* term/x-win.el (x-select-enable-clipboard): Declare.

342 343
	* term/w32-win.el (create-default-fontset): Declare.

344 345 346
	* w32-common-fns.el (x-server-version, x-select-enable-clipboard):
	Declare.

347 348 349 350
	* window.el (x-display-pixel-height, tool-bar-lines-needed): Declare.
	(fit-frame-to-buffer): Explicit error if --without-x.
	(mouse-autoselect-window-select): Silence compiler.

351 352 353 354 355
	* dframe.el (x-sensitive-text-pointer-shape, x-pointer-shape): Declare.

	* eshell/em-cmpl.el (eshell-complete-parse-arguments):
	* eshell/em-hist.el (eshell/history, eshell-isearch-backward):
	* eshell/em-pred.el (eshell-parse-modifiers, eshell-pred-file-time):
356
	* eshell/esh-util.el (eshell-sublist):
357 358 359 360
	Remove unused local variables.

	* eshell/esh-io.el (x-select-enable-clipboard): Declare.

361 362 363 364
	* textmodes/two-column.el: Make 2C-split work for --without-x.
	(scroll-bar-columns): Autoload.
	(top-level): Require fringe when compiling.

365 366 367 368
2013-09-18  Leo Liu  <sdl.web@gmail.com>

	* subr.el (add-hook): Robustify to handle closure as well.

369 370 371 372
2013-09-17  Glenn Morris  <rgm@gnu.org>

	* simple.el (messages-buffer-mode-map): Unbind "g".

373 374
2013-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>

375 376 377
	* help-mode.el (help-mode-finish): Use derived-mode-p.
	Remove obsolete highlighting.

378 379 380 381 382
	* play/life.el (life-mode): Use define-derived-mode.  Derive from
	special-mode.
	(life): Let-bind inhibit-read-only.
	(life-setup): Avoid `setq'.  Use `life-mode'.

383 384 385 386
	* emacs-lisp/package.el (package-generate-autoloads): Remove `require'
	which should not be needed any more.
	(package-menu-refresh, package-menu-describe-package): Use user-error.

387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402
	* eshell/esh-cmd.el (eshell-post-rewrite-command-function): New var.
	(eshell-post-rewrite-command-hook): Make obsolete.
	(eshell-parse-command): Simplify.
	(eshell-structure-basic-command): Remove unused arg `vocal-test'.
	(eshell--cmd): Declare.
	(eshell-parse-pipeline): Remove unused var `final-p'.
	Pass a dynvar to eshell-post-rewrite-command-hook.
	Implement the new eshell-post-rewrite-command-function.
	(eshell-invoke-directly): Remove unused arg `input'.
	* eshell/esh-io.el (eshell-io-initialize):
	Use eshell-post-rewrite-command-function (bug#15399).
	(eshell--apply-redirections): Rename from eshell-apply-redirections;
	adjust to new calling convention.
	(eshell-create-handles): Rename args to avoid clashing with dynvar
	`standard-output'.

403 404 405 406 407 408
2013-09-17  Glenn Morris  <rgm@gnu.org>

	* simple.el (messages-buffer-mode): New major mode.
	(messages-buffer): New function.
	* startup.el (normal-top-level): Switch mode of *Messages* buffer.
	* emacs-lisp/ert.el (ert--force-message-log-buffer-truncation)
Glenn Morris's avatar
Glenn Morris committed
409
	(ert-run-test): Use `messages-buffer' function.
410
	(ert--force-message-log-buffer-truncation): Ignore read-only.
Glenn Morris's avatar
Glenn Morris committed
411 412
	* help.el (view-echo-area-messages): Use `messages-buffer' function.
	* mail/emacsbug.el (report-emacs-bug): Use `messages-buffer' function.
413

414
2013-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
415 416 417

	* subr.el (eval-after-load): Preserve evaluation order (bug#15389).

418 419
	* abbrev.el (abbrev--check-chars): Fix thinko (bug#15329).

420 421
2013-09-16  Stefan Monnier  <monnier@iro.umontreal.ca>

422 423 424 425 426 427 428 429 430 431 432 433 434 435
	* icomplete.el (icomplete-in-buffer): New var.
	(icomplete-pre-command-hook, icomplete-post-command-hook): Remove those
	vars and replace them with functions.
	(icomplete-minibuffer-setup): Adjust accordingly.
	(icomplete--completion-table, icomplete--completion-predicate)
	(icomplete--field-string, icomplete--field-beg, icomplete--field-end):
	New functions.
	(icomplete-forward-completions, icomplete-backward-completions)
	(icomplete-simple-completing-p, icomplete-exhibit)
	(icomplete-completions): Use them.
	(icomplete--in-region-buffer): New var.
	(icomplete--in-region-setup): New function.
	(icomplete-mode): Use it.

436 437 438 439 440 441 442 443 444 445 446 447 448 449
	* eshell/esh-opt.el: Fix last change to set lexical-vars properly
	(bug#15379).
	(eshell--do-opts): Rename from eshell-do-opt, remove arg `body-fun',
	return args and options.
	(eshell-eval-using-options): Use the new return value of
	eshell--do-opts to set the options's vars in their scope.
	(eshell--set-option): Rename from eshell-set-option.
	Add arg `opt-vals'.
	(eshell--process-option): Rename from eshell-process-option.
	Add arg `opt-vals'.
	(eshell--process-args): Use an `opt-vals' alist to store the options's
	values during their processing and return them additionally to the
	remaining args.

450 451 452 453 454 455
2013-09-15  Dmitry Gutov  <dgutov@yandex.ru>

	* progmodes/ruby-mode.el (ruby-operator-re): Consider line
	continuation character an operator, as far as indentation is
	concerned (Bug#15369).

456 457 458 459 460
2013-09-15  Martin Rudalics  <rudalics@gmx.at>

	* window.el (window--state-put-2): Don't process buffer state
	when buffer doesn't exist any more (Bug#15382).

461 462
2013-09-15  Glenn Morris  <rgm@gnu.org>

463 464 465
	* eshell/em-unix.el (eshell/rm):
	Make -f ignore missing files.  (Bug#15373)

466 467 468 469
	* eshell/esh-cmd.el (eshell--local-vars): New variable.  (Bug#15372)
	(eshell-rewrite-for-command): Add for loop vars to eshell--local-vars.
	* eshell/esh-var.el (eshell-get-variable): Respect eshell--local-vars.

470 471 472 473
2013-09-14  Glenn Morris  <rgm@gnu.org>

	* eshell/esh-var.el (eshell-variable-aliases-list): Fix doc typo.

474 475 476 477 478
2013-09-13  Glenn Morris  <rgm@gnu.org>

	* dired-x.el (dired-guess-shell-alist-user): Doc fix.
	(dired-guess-default): Make `file' available in the env.  (Bug#15363)

479 480 481 482
2013-09-13  Dmitry Antipov  <dmantipov@yandex.ru>

	* frame.el (x-focus-frame): Mark as declared in frame.c.

483 484 485 486 487 488 489 490
2013-09-13  Stefan Monnier  <monnier@iro.umontreal.ca>

	* ls-lisp.el: Use advice-add.
	(original-insert-directory): Remove.
	(ls-lisp--insert-directory): Rename from insert-directory; add
	`orig-fun' argument.
	(insert-directory): Advise.

491 492 493 494 495
2013-09-13  Eli Zaretskii  <eliz@gnu.org>

	* term.el (term-emulate-terminal): Decode the command string
	before passing it to term-command-hook.  (Bug#15337)

496 497
2013-09-13  Glenn Morris  <rgm@gnu.org>

498 499
	* eshell/esh-util.el (ange-cache): Move declaration earlier.

500 501
	* eshell/esh-ext.el (eshell-search-path): Declare.

502 503 504
	* eshell/em-prompt.el (eshell/pwd): Autoload it.
	Otherwise an error occurs if eshell-dirs module not loaded.

505 506
	* progmodes/gdb-mi.el (gud-cont, gud-step): Declare.

507 508 509 510 511 512 513 514 515 516 517 518 519
2013-09-13  Michael Albinus  <michael.albinus@gmx.de>

	* net/tramp.el (tramp-check-proper-method-and-host): Rename it from
	`tramp-check-proper-host'.  Check for a valid method name.

	* net/tramp-adb.el (tramp-adb-maybe-open-connection):
	* net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
	* net/tramp-sh.el (tramp-maybe-open-connection):
	* net/tramp-smb.el (tramp-smb-maybe-open-connection): Call it.

	* net/tramp-cache.el (tramp-cache-print): Don't print text properties
	also for hash values.

520 521
2013-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>

522 523 524
	* term/ns-win.el (parameters): Don't declare as dynamic.
	(before-make-frame-hook): Don't add ineffective function.

525 526
	* eshell/*.el: Use lexical-binding (bug#15231).

527 528
2013-09-12  Kenichi Handa  <handa@gnu.org>

529
	* composite.el (compose-gstring-for-graphic): Handle enclosing mark.
530

531 532
2013-09-12  Glenn Morris  <rgm@gnu.org>

533
	* vc/vc-svn.el (vc-svn-dir-status-files, vc-svn-dir-extra-headers)
534
	(vc-svn-ignore, vc-svn-retrieve-tag): Mark unused arguments.
535

536 537 538
	* subr.el (do-after-load-evaluation): Also give compiler warnings
	when obsolete files are used (except by obsolete files).

539 540 541
	* vc/vc-svn.el (vc-svn-parse-status): If there are multiple files
	in the status output, assume `filename' is the first.  (Bug#15322)

542 543
	* vc/vc.el (vc-deduce-fileset): Doc fix.

544 545 546 547
	* calc/calc-help.el (Info-goto-node):
	* progmodes/cperl-mode.el (Info-find-node):
	* vc/ediff.el (Info-goto-node): Update declarations.

548 549
	* vc/vc-dispatcher.el (vc-dir-refresh): Declare.

550
	* vc/vc-bzr.el (vc-compilation-mode): Declare.
551 552 553 554
	(vc-bzr-pull): Require vc-dispatcher.
	* vc/vc-git.el (vc-compilation-mode): Declare.
	(vc-git-pull): Require vc-dispatcher.

555 556
	* progmodes/ruby-mode.el (ruby-syntax-propertize-function): Declare.

557 558
	* progmodes/octave.el (help-button-action): Declare.

559 560 561 562
	* shell.el (shell-directory-tracker): Output error as a message
	rather than just returning it as a string.
	(shell-process-pushd): Remove useless use of message.

563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578
	* dframe.el (dframe-timer-fn):
	* files.el (dir-locals-read-from-file):
	* mpc.el (mpc--status-timer-run, mpc--status-idle-timer-run)
	(mpc-format):
	* reveal.el (reveal-post-command):
	* saveplace.el (load-save-place-alist-from-file):
	* shell.el (shell-resync-dirs):
	* w32-common-fns.el (x-get-selection-value):
	* emacs-lisp/copyright.el (copyright-find-copyright):
	* emacs-lisp/eldoc.el (eldoc-print-current-symbol-info):
	* emulation/tpu-edt.el (tpu-copy-keyfile):
	* play/bubbles.el (bubbles--mark-neighbourhood):
	* progmodes/executable.el
	(executable-make-buffer-file-executable-if-script-p):
	* term/pc-win.el (x-get-selection-value): Use with-demoted-errors.

579 580
2013-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>

581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608
	Cleanup Eshell to rely less on dynamic scoping.
	* eshell/esh-opt.el (eshell-eval-using-options): Don't bind usage-msg,
	last-value, and ext-command here.  Bind `args' closer to `body'.
	(temp-args, last-value, usage-msg, ext-command, args): Don't defvar.
	(eshell--args): Declare new dynamic var.
	(eshell-do-opt): Add argument `args'.  Bind our own usage-msg,
	last-value, and ext-command.  Pass `args' to `body'.
	(eshell-process-args): Bind eshell--args.
	(eshell-set-option): Use eshell--args.
	* eshell/eshell.el (eshell): Use derived-mode-p.
	* eshell/esh-var.el (eshell-parse-variable): Use backquote.
	(eshell-parse-variable-ref): Remove unused vars `end' and `err'.
	(eshell-glob-function): Declare.
	* eshell/esh-util.el: Require cl-lib.
	(eshell-read-hosts-file): Avoid add-to-list.
	* eshell/esh-cmd.el (eshell-parse-lisp-argument): Remove unused var
	`err'.
	* eshell/em-unix.el (compilation-scroll-output, locate-history-list):
	Declare.
	(eshell/diff): Remove unused var `err'.
	* eshell/em-rebind.el (eshell-delete-backward-char): Remove unused arg
	`killflag'.
	* eshell/em-pred.el (eshell-parse-modifiers): Remove unused var `err'.
	* eshell/em-ls.el (eshell-ls-highlight-alist): Move defvars before
	first use.
	* eshell/em-glob.el (eshell-glob-matches, message-shown):
	Move declaration before first use.
	* eshell/em-alias.el (eshell-maybe-replace-by-alias): Use backquotes.
609 610 611
	* autorevert.el (auto-revert-notify-handler): Use `cl-dolist' since we
	rely on cl-return.

612 613 614 615 616
2013-09-12  Glenn Morris  <rgm@gnu.org>

	* term/ns-win.el (global-map): Remove binding for ispell-next,
	deleted 1999-05-29.  (Bug#15357)

617 618
2013-09-11  Glenn Morris  <rgm@gnu.org>

619 620
	* echistory.el (electric-command-history): Remove call to deleted func.

621 622
	* play/landmark.el (landmark-mode): Fix typos.

623 624 625
	* vc/vc-cvs.el (cvs-append-to-ignore): Fix arg spec.
	Check cvs-sort-ignore-file is bound.

626 627
	* savehist.el: No need for cl when compiling on Emacs.

628 629
2013-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>

630 631
	* eshell/esh-mode.el (eshell-mode-syntax-table): Fix up initialization
	(bug#15338).
632 633
	(eshell-self-insert-command, eshell-send-invisible):
	Remove unused argument.
634 635 636
	(eshell-handle-control-codes): Remove unused var `orig'.
	Avoid delete-backward-char.

637 638
	* files.el (set-auto-mode): Simplify a bit further.

639 640 641 642 643 644 645 646 647
2013-09-11  Glenn Morris  <rgm@gnu.org>

	* files.el (interpreter-mode-alist): Remove \\` \\' parts.
	(set-auto-mode): Don't regexp-quote elements.
	* progmodes/python.el (interpreter-mode-alist): Remove \\` \\'.
	* progmodes/cc-mode.el (interpreter-mode-alist):
	* progmodes/ruby-mode.el (interpreter-mode-alist):
	Revert previous change.

648 649
2013-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>

650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681
	* play/snake.el (snake-mode):
	* play/mpuz.el (mpuz-mode):
	* play/landmark.el (lm-mode):
	* play/blackbox.el (blackbox-mode):
	* play/5x5.el (5x5-mode):
	* obsolete/options.el (Edit-options-mode):
	* net/quickurl.el (quickurl-list-mode):
	* net/newst-treeview.el (newsticker-treeview-mode):
	* mail/rmailsum.el (rmail-summary-mode):
	* mail/mspools.el (mspools-mode):
	* locate.el (locate-mode):
	* ibuffer.el (ibuffer-mode):
	* emulation/ws-mode.el (wordstar-mode):
	* emacs-lisp/debug.el (debugger-mode):
	* array.el (array-mode):
	* net/eudc.el (eudc-mode): Use define-derived-mode.
	* net/mairix.el (mairix-searches-mode-font-lock-keywords):
	Move initialization into declaration.
	(mairix-searches-mode): Use define-derived-mode.
	* net/eudc-hotlist.el (eudc-hotlist-mode): Use define-derived-mode.
	(eudc-edit-hotlist): Use dolist.
	* man.el (Man-mode-syntax-table): Rename from man-mode-syntax-table.
	(Man-mode): Use define-derived-mode.
	* info.el (Info-edit-mode-map): Rename from Info-edit-map.
	(Info-edit-mode): Use define-derived-mode.
	(Info-cease-edit): Use Info-mode.
	* eshell/esh-mode.el (eshell-mode-syntax-table): Move initialization
	into declaration.
	(eshell-mode): Use define-derived-mode.
	* chistory.el (command-history-mode-map): Rename from
	command-history-map.
	(command-history-mode): Use define-derived-mode.
682
	(Command-history-setup): Remove function.
683 684 685 686 687 688 689 690 691 692
	* calc/calc.el (calc-trail-mode-map): New var.
	(calc-trail-mode): Use define-derived-mode.
	(calc-trail-buffer): Set calc-main-buffer manually.
	* bookmark.el (bookmark-insert-annotation): New function.
	(bookmark-edit-annotation): Use it.
	(bookmark-edit-annotation-mode): Make it a proper major mode.
	(bookmark-send-edited-annotation): Use derived-mode-p.
	* arc-mode.el (archive-mode): Move kill-all-local-variables a tiny bit
	closer to its ideal place.  Use \' to match EOS.

693 694
	* profiler.el (profiler-calltree-find): Use function-equal.

695 696
2013-09-10  Glenn Morris  <rgm@gnu.org>

697 698 699 700 701 702 703 704 705 706
	* files.el (interpreter-mode-alist): Convert to regexps.
	(set-auto-mode): Adapt for this.  (Bug#15306)
	* progmodes/cperl-mode.el (cperl-clobber-mode-lists):
	Comment out unused variable.
	* progmodes/cc-mode.el (interpreter-mode-alist):
	* progmodes/python.el (interpreter-mode-alist):
	* progmodes/ruby-mode.el (interpreter-mode-alist): Convert to regexps.
	* progmodes/sh-script.el (sh-set-shell):
	No longer use interpreter-mode-alist to get list of shells.

707 708
	* progmodes/cc-mode.el (awk-mode): Remove duplicate autoload.

709 710
2013-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>

711
	* simple.el: Use set-temporary-overlay-map for universal-argument.
712
	(universal-argument-map): Don't use default-bindings (bug#15317).
713 714 715 716 717 718 719 720 721 722 723
	Bind switch-frame explicitly.  Replace universal-argument-minus with
	a conditional binding.
	(universal-argument-num-events, saved-overriding-map): Remove.
	(restore-overriding-map): Remove.
	(universal-argument--mode): Rename from save&set-overriding-map,
	and rewrite.
	(universal-argument, universal-argument-more, negative-argument)
	(digit-argument): Adjust accordingly.
	(universal-argument-minus): Remove.
	(universal-argument-other-key): Remove.

724 725
	* subr.el (with-demoted-errors): Add `format' argument.

726 727 728 729 730 731 732 733 734 735 736 737
2013-09-10  Michael Albinus  <michael.albinus@gmx.de>

	* net/tramp.el (tramp-cleanup): Remove.  Functionality added to
	`tramp-cleanup-connection'.

	* net/tramp-cmds.el (tramp-cleanup-connection): Add optional
	parameters KEEP-DEBUG and KEEP-PASSWORD.

	* net/tramp.el (tramp-file-name-handler):
	* net/tramp-adb.el (tramp-adb-maybe-open-connection):
	* net/tramp-sh.el (tramp-open-connection-setup-interactive-shell)
	(tramp-maybe-open-connection):
738 739
	* net/tramp-smb.el (tramp-smb-maybe-open-connection):
	Use `tramp-cleanup-connection'.
740

741 742
	* net/tramp-sh.el (tramp-maybe-open-connection):
	Catch 'uname-changed inside the progress reporter.
743

744 745
2013-09-10  Glenn Morris  <rgm@gnu.org>

746 747
	* simple.el (read-minibuffer): Unbreak it.  (Bug#15318)

748 749 750
	* dired-x.el (dired-mark-sexp): Unbreak for systems where ls
	returns "alternate access method" in mode (eg "-rw-r--r--.").

751 752 753 754 755
2013-09-08  Glenn Morris  <rgm@gnu.org>

	* saveplace.el (load-save-place-alist-from-file):
	Demote errors.  (Bug#15305)

756 757 758 759 760 761
2013-09-08  Michael Albinus  <michael.albinus@gmx.de>

	Improve compatibility with older Emacsen, and XEmacs.

	* net/tramp.el (tramp-find-method, tramp-find-user): Call `propertize'
	only if it is bound.  It isn't for XEmacs.
762 763
	(with-tramp-progress-reporter): Do not let-bind `result'.
	This yields to scoping errors in XEmacs.
764 765 766 767 768
	(tramp-handle-make-auto-save-file-name): New function, moved from
	tramp-sh.el.

	* net/tramp-adb.el (tramp-adb-file-name-handler-alist): Add handler
	for `make-auto-save-file-name'.
769 770
	(tramp-adb--gnu-switches-to-ash):
	Use `tramp-compat-replace-regexp-in-string'.
771 772 773 774 775 776 777

	* net/tramp-cache.el (tramp-cache-print): Call
	`substring-no-properties' only if it is bound.  It isn't for XEmacs.

	* net/tramp-cmds.el (tramp-bug): Call `propertize' only if it is
	bound.  It isn't for XEmacs.

778 779
	* net/tramp-compat.el (tramp-compat-copy-file):
	Catch `wrong-number-of-arguments' error.
780 781 782 783 784 785 786 787 788 789
	(tramp-compat-replace-regexp-in-string): New defun.

	* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add handler
	for `make-auto-save-file-name'.
	(tramp-gvfs-handle-copy-file): Use `tramp-compat-funcall' for
	`copy-file'.
	(tramp-gvfs-file-gvfs-monitor-file-process-filter)
	(tramp-gvfs-file-name): Use `tramp-compat-replace-regexp-in-string'.
	(tramp-synce-list-devices): Use `push' instead of `pushnew'.

790 791
	* net/tramp-gw.el (tramp-gw-open-network-stream):
	Use `tramp-compat-replace-regexp-in-string'.
792

793 794
	* net/tramp-sh.el (tramp-sh-file-name-handler-alist):
	Call `tramp-handle-make-auto-save-file-name'.
795 796
	(tramp-sh-handle-make-auto-save-file-name): Move to tramp.el.
	(tramp-sh-file-gvfs-monitor-dir-process-filter)
797 798
	(tramp-sh-file-inotifywait-process-filter):
	Use `tramp-compat-replace-regexp-in-string'.
799 800 801 802
	(tramp-compute-multi-hops): Use `push' instead of `pushnew'.

	* net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add handler
	for `make-auto-save-file-name'.
803 804
	(tramp-smb-handle-copy-directory):
	Call `tramp-compat-replace-regexp-in-string'.
805 806 807 808 809 810 811
	(tramp-smb-get-file-entries): Use `push' instead of `pushnew'.
	(tramp-smb-handle-copy-file): Improve error message.
	(tramp-smb-handle-rename-file): Rename directly only in case
	`newname' does not exist yet.  This is a restriction of smbclient.
	(tramp-smb-maybe-open-connection): Rerun the function only when
	`auth-sources' is non-nil.

812 813 814 815 816
2013-09-08  Kenichi Handa  <handa@gnu.org>

	* international/characters.el: Set category "^"	(Combining) for
	more characters.

817 818 819 820 821 822
2013-09-07  Alan Mackenzie  <acm@muc.de>

	Correctly fontify Java class constructors.
	* progmodes/cc-langs.el (c-type-decl-suffix-key): Now matches ")"
	in Java Mode.
	(c-recognize-typeless-decls): Set the Java value to t.
823 824
	* progmodes/cc-engine.el (c-forward-decl-or-cast-1):
	While handling a "(", add a check for, effectively, Java, and handle a
825 826
	"typeless" declaration there.

827 828 829 830 831
2013-09-07  Roland Winkler  <winkler@gnu.org>

	* textmodes/bibtex.el (bibtex-biblatex-entry-alist): Add optional
	field subtitle for entry type book.

832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875
2013-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>

	* minibuffer.el: Make minibuffer-complete call completion-in-region
	rather than other way around.
	(completion--some, completion-pcm--find-all-completions):
	Don't delay signals when debugging.
	(minibuffer-completion-contents): Beware fields within the
	minibuffer contents.
	(completion-all-sorted-completions): Use defvar-local.
	(completion--do-completion, completion--cache-all-sorted-completions)
	(completion-all-sorted-completions, minibuffer-force-complete):
	Add args `beg' and `end'.
	(completion--in-region-1): New fun, extracted from minibuffer-complete.
	(minibuffer-complete): Use completion-in-region.
	(completion-complete-and-exit): New fun, extracted from
	minibuffer-complete-and-exit.
	(minibuffer-complete-and-exit): Use it.
	(completion--complete-and-exit): Rename from
	minibuffer--complete-and-exit.
	(completion-in-region--single-word): New function, extracted from
	minibuffer-complete-word.
	(minibuffer-complete-word): Use it.
	(display-completion-list): Make `common-substring' argument obsolete.
	(completion--in-region): Call completion--in-region-1 instead of
	minibuffer-complete.
	(completion-help-at-point): Pass boundaries to
	minibuffer-completion-help as args rather than via an overlay.
	(completion-pcm--string->pattern): Use `any-delim'.
	(completion-pcm--optimize-pattern): New function.
	(completion-pcm--pattern->regex): Handle `any-delim'.
	* icomplete.el (icomplete-forward-completions)
	(icomplete-backward-completions, icomplete-completions):
	Adjust calls to completion-all-sorted-completions and
	completion--cache-all-sorted-completions.
	(icomplete-with-completion-tables): Default to t.
	* emacs-lisp/crm.el (crm--current-element): Rename from
	crm--select-current-element.  Don't put an overlay but return the
	boundaries instead.
	(crm--completion-command): Take two new args to bind to the boundaries.
	(crm-completion-help): Adjust accordingly.
	(crm-complete): Use completion-in-region.
	(crm-complete-word): Use completion-in-region--single-word.
	(crm-complete-and-exit): Use completion-complete-and-exit.

876 877 878 879 880
2013-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>

	* dired-x.el (dired-mark-sexp): Bind the vars lexically rather
	than dynamically.

881 882 883 884 885 886 887
2013-09-06  Juri Linkov  <juri@jurta.org>

	* info.el (Info-display-images-node): When image file doesn't exist
	display text version of the image if it's provided in the Info file.
	Otherwise, display the location of missing image from SRC attribute.
	Add help-echo text property from ALT attribute.  (Bug#15279)

888 889 890 891 892 893 894 895 896 897 898 899 900
2013-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>

	* abbrev.el (edit-abbrevs-mode-map): Rename from edit-abbrevs-map.
	(edit-abbrevs-mode): Use define-derived-mode.

	* epa.el (epa--encode-coding-string, epa--decode-coding-string)
	(epa--select-safe-coding-system, epa--derived-mode-p): Make it obvious
	that it's defined.
	(epa-key-list-mode, epa-key-mode, epa-info-mode):
	Use define-derived-mode.

	* epg.el (epg-start-encrypt): Minor CSE simplification.

901 902 903 904 905 906 907 908
2013-09-06  William Xu  <william.xwl@gmail.com>

	* arc-mode.el: Add support for 7za (bug#15264).
	(archive-7z-program): New var.
	(archive-zip-extract, archive-zip-expunge, archive-zip-update)
	(archive-zip-update-case, archive-7z-extract, archive-7z-expunge)
	(archive-7z-update, archive-zip-extract, archive-7z-summarize): Use it.

Michael Albinus's avatar
Michael Albinus committed
909 910 911 912 913 914 915 916 917 918 919 920 921 922
2013-09-06  Michael Albinus  <michael.albinus@gmx.de>

	Remove URL syntax.

	* net/tramp.el (tramp-syntax, tramp-prefix-format)
	(tramp-postfix-method-format, tramp-prefix-ipv6-format)
	(tramp-postfix-ipv6-format, tramp-prefix-port-format)
	(tramp-postfix-host-format, tramp-file-name-regexp)
	(tramp-completion-file-name-regexp)
	(tramp-completion-dissect-file-name)
	(tramp-handle-substitute-in-file-name): Remove 'url case.
	(tramp-file-name-regexp-url)
	(tramp-completion-file-name-regexp-url): Remove constants.

923 924 925 926
2013-09-06  Glenn Morris  <rgm@gnu.org>

	* replace.el (replace-string): Doc fix re start/end.  (Bug#15275)

927 928 929 930 931
2013-09-05  Dmitry Gutov  <dgutov@yandex.ru>

	* progmodes/ruby-mode.el (ruby-font-lock-keywords): Move "Perl-ish
	keywords" below "here-doc beginnings" (Bug#15270).

932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952
2013-09-05  Stefan Monnier  <monnier@iro.umontreal.ca>

	* subr.el (pop): Use `car-safe'.
	* emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Remove hack
	to detect unused `pop' return value.

	* progmodes/python.el (python-nav-beginning-of-block): Remove unused
	var `block-regexp'.
	(python-nav--forward-sexp): Remove unused var `re-search-fn'.
	(python-fill-string): Remove unused var `marker'.
	(python-skeleton-add-menu-items): Remove unused var `items'.

	* international/mule-cmds.el: Require CL.
	(find-coding-systems-for-charsets): Avoid add-to-list.
	(sanitize-coding-system-list): New function, extracted from
	select-safe-coding-system-interactively.
	(select-safe-coding-system-interactively): Use it.
	(read-input-method-name): Accept symbols for `default'.

	* emacs-lisp/advice.el (defadvice): Add indent rule.

Daniel Hackney's avatar
Daniel Hackney committed
953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975
2013-09-05  Daniel Hackney  <dan@haxney.org>

	* dired-x.el:
	* net/ange-ftp.el:
	* net/browse-url.el:
	* net/dbus.el:
	* net/eudc.el:
	* net/eudcb-ldap.el:
	* net/eww.el:
	* net/imap.el:
	* printing.el:
	* vc/ediff-diff.el:
	* vc/ediff-init.el:
	* vc/ediff-merg.el:
	* vc/ediff-mult.el:
	* vc/ediff-util.el:
	* vc/ediff-wind.el:
	* vc/ediff.el:
	* vc/emerge.el:
	* vc/pcvs.el:
	* vc/vc-annotate.el: Prefix unused arguments with `_' to silence
	byte compiler.  Remove some unused let-bound variables.

976 977 978 979 980
2013-09-05  Stefan Monnier  <monnier@iro.umontreal.ca>

	* emacs-lisp/cconv.el: Use `car-safe' rather than `car' to access
	a "ref-cell", since it gets better optimized (bug#14883).

981 982 983 984
2013-09-05  Glenn Morris  <rgm@gnu.org>

	* progmodes/cc-awk.el (c-forward-sws): Declare.

985 986 987 988 989 990
2013-09-04  Glenn Morris  <rgm@gnu.org>

	* generic-x.el [rul-generic-mode]: Require cc-mode.
	(c++-mode-syntax-table): Declare.
	(rul-generic-mode-syntax-table): Init in the defvar.

991 992
2013-09-04  Stefan Monnier  <monnier@iro.umontreal.ca>

Stefan Monnier's avatar
Stefan Monnier committed
993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016
	* vc/vc-dispatcher.el (vc-run-delayed): New macro.
	(vc-do-command, vc-set-async-update):
	* vc/vc-mtn.el (vc-mtn-dir-status):
	* vc/vc-hg.el (vc-hg-dir-status, vc-hg-dir-status-files)
	(vc-hg-pull, vc-hg-merge-branch):
	* vc/vc-git.el (vc-git-dir-status-goto-stage, vc-git-pull)
	(vc-git-merge-branch):
	* vc/vc-cvs.el (vc-cvs-print-log, vc-cvs-dir-status)
	(vc-cvs-dir-status-files):
	* vc/vc-bzr.el (vc-bzr-pull, vc-bzr-merge-branch, vc-bzr-dir-status)
	(vc-bzr-dir-status-files):
	* vc/vc-arch.el (vc-arch-dir-status): Use vc-run-delayed.
	* vc/vc-annotate.el: Use lexical-binding.
	(vc-annotate-display-select, vc-annotate): Use vc-run-delayed.
	(vc-sentinel-movepoint): Declare.
	(vc-annotate): Don't use `goto-line'.
	* vc/vc.el (vc-diff-internal): Prefer a closure to `(lambda...).
	(vc-diff-internal, vc-log-internal-common): Use vc-run-delayed.
	(vc-sentinel-movepoint): Declare.
	* vc/vc-svn.el: Use lexical-binding.
	(vc-svn-dir-status, vc-svn-dir-status-files): Use vc-run-delayed.
	* vc/vc-sccs.el:
	* vc/vc-rcs.el: Use lexical-binding.

1017 1018 1019
	* autorevert.el (auto-revert-notify-handler): Explicitly ignore
	`deleted'.  Don't drop errors silently.

1020 1021
	* emacs-lisp/gv.el (gv-get): Warn about CL-compiled places.

Xue Fuqiao's avatar
Xue Fuqiao committed
1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032
2013-09-04  Xue Fuqiao  <xfq.free@gmail.com>

	* vc/vc.el (vc-ignore): Rewrite.
	(vc-default-ignore): New function.
	(vc-default-ignore-completion-table): Use find-ignore-file.

	* vc/vc-bzr.el (vc-bzr-ignore, vc-bzr-ignore-completion-table):
	* vc/vc-git.el (vc-git-ignore, vc-git-ignore-completion-table):
	* vc/vc-hg.el (vc-hg-ignore, vc-hg-ignore-completion-table):
	Remove.  Most code moved to vc.el.

1033 1034
2013-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>

1035
	* net/tramp-gvfs.el (tramp-gvfs-mount-spec, tramp-synce-list-devices):
1036 1037 1038 1039
	* net/tramp-smb.el (tramp-smb-get-file-entries):
	* net/tramp-sh.el (tramp-sh-handle-insert-directory)
	(tramp-compute-multi-hops): Fix misuses of `add-to-list'.

1040 1041 1042 1043 1044 1045 1046
	* net/eww.el (eww-display-raw): Remove unused argument `charset'.
	Update call to it.
	(eww-change-select): Remove unused var `properties'.
	(eww-make-unique-file-name): Remove unused var `base'.

	* finder.el (finder-compile-keywords): Don't mess with windows.

1047 1048
	* calculator.el (calculator-funcall): Fix typo in last change.

1049 1050
	* vc/vc-git.el (vc-git-checkin): Make it possible to commit a merge.

1051 1052 1053
	* emacs-lisp/package.el (package-activate-1): Don't let a missing
	<pkg>-autoloads.el file stop us.

1054
	* net/tramp.el (with-parsed-tramp-file-name): Silence compiler
1055
	warnings, and factor out common code.
1056

1057 1058 1059 1060 1061 1062
2013-09-03  Dmitry Gutov  <dgutov@yandex.ru>

	* progmodes/ruby-mode.el (ruby-calculate-indent): Consider
	two-character operators and whether the character preceding them
	changes their meaning (Bug#15208).

1063 1064 1065
2013-09-02  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	Format code sent to Python shell for robustness.
1066 1067
	* progmodes/python.el (python-shell-buffer-substring):
	New function.
1068 1069
	(python-shell-send-region, python-shell-send-buffer): Use it.

1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081
2013-09-02  Michael Albinus  <michael.albinus@gmx.de>

	* net/tramp-compat.el (tramp-compat-user-error): Move it ...
	* net/tramp.el (tramp-user-error): ... here.
	(tramp-find-method, tramp-check-proper-host)
	(tramp-dissect-file-name, tramp-debug-message)
	(tramp-handle-shell-command):
	* net/tramp-adb.el (tramp-adb-handle-shell-command):
	* net/tramp-gvfs.el (tramp-gvfs-file-name-handler): Adapt callees.

	* net/tramp-cache.el (tramp-cache-print): Don't print text properties.

1082 1083 1084 1085 1086 1087
2013-09-02  Martin Rudalics  <rudalics@gmx.at>

	* avoid.el (mouse-avoidance-point-position)
	(mouse-avoidance-too-close-p): Handle case where posn-at-point
	returns nil.

1088 1089 1090 1091
2013-09-02  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	* progmodes/python.el (python-shell-completion-get-completions):
	Drop use of deleted `comint-last-prompt-overlay'.
1092
	(python-nav-if-name-main): New command.
1093

1094 1095
2013-09-01  Glenn Morris  <rgm@gnu.org>

1096 1097 1098 1099
	* Makefile.in (setwins, setwins_almost, setwins_for_subdirs):
	Avoid leading space in $wins.  Otherwise the sed command used by
	eg compile-main ends up containing "/*.el".  (Bug#15170)

1100 1101
	* frame.el (frame-background-mode): Doc fix.  (Bug#15226)

1102 1103 1104 1105 1106
2013-08-30  Glenn Morris  <rgm@gnu.org>

	* emacs-lisp/bytecomp.el (byte-recompile-directory):
	Fix is-this-a-directory logic.  (Bug#15220)

1107 1108
2013-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>

1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135
	* textmodes/css-mode.el: Use SMIE.
	(css-smie-grammar): New var.
	(css-smie--forward-token, css-smie--backward-token)
	(css-smie-rules): New functions.
	(css-mode): Use them.
	(css-navigation-syntax-table): Remove var.
	(css-backward-sexp, css-forward-sexp, css-indent-calculate-virtual)
	(css-indent-calculate, css-indent-line): Remove functions.

	Misc changes to reduce use of `(lambda...); and other cleanups.
	* cus-edit.el: Use lexical-binding.
	(customize-push-and-save, customize-apropos)
	(custom-buffer-create-internal): Use closures.
	* progmodes/bat-mode.el (bat-mode-syntax-table): "..." are strings.
	* progmodes/ada-xref.el: Use setq.
	* net/tramp.el (with-tramp-progress-reporter): Avoid setq.
	* dframe.el: Use lexical-binding.
	(dframe-frame-mode): Fix calling convention for hooks.  Use a closure.
	* speedbar.el (speedbar-frame-mode): Adjust call accordingly.
	* descr-text.el: Use lexical-binding.
	(describe-text-widget, describe-text-sexp, describe-property-list):
	Use closures.
	* comint.el (comint-history-isearch-push-state): Use a closure.
	* calculator.el: Use lexical-binding.
	(calculator-number-to-string): Make it work with lexical-binding.
	(calculator-funcall): Same and use cl-letf.

1136 1137 1138 1139
	* emacs-lisp/lisp.el (lisp--company-doc-buffer)
	(lisp--company-doc-string, lisp--company-location): New functions.
	(lisp-completion-at-point): Use them to improve Company support.

1140 1141 1142 1143 1144 1145 1146 1147 1148
	* progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for formal
	params of lambda expressions.
	(ruby-smie--implicit-semi-p): Refine rule (bug#15208).
	(ruby-smie--opening-pipe-p): New function.
	(ruby-smie--forward-token, ruby-smie--backward-token): Handle Ruby
	symbols and matched |...| for formal params.
	(ruby-smie-rules): Don't let the formal params of a "do" prevent it
	from being treated as hanging.  Handle "rescue".

1149 1150 1151 1152 1153
2013-08-29  Glenn Morris  <rgm@gnu.org>

	* progmodes/cc-engine.el (c-pull-open-brace):
	Move definition before use.

1154 1155 1156 1157 1158 1159 1160
2013-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>

	* emacs-lisp/cl-macs.el (cl-defsubst): Make it clear that args
	are immutable.  Don't use `unsafe' any more.
	(cl--defsubst-expand): Don't substitute at the same time as keeping
	a residual unused let-binding.  Don't use `unsafe' any more.

1161 1162
2013-08-29  Glenn Morris  <rgm@gnu.org>

1163 1164 1165
	* calendar/cal-china.el (calendar-chinese-year-cache):
	Recenter on 2015.

1166 1167 1168
	* nxml/nxml-util.el (nxml-debug-clear-inside):
	Use cl-loop rather than loop.

1169 1170
	* net/eww.el (eww-mode-map): Lower-case menu bar entries look bad.

1171 1172
	* progmodes/sh-script.el (sh-builtins) <bash>: Add some bash4-isms.

1173 1174
2013-08-28  Glenn Morris  <rgm@gnu.org>

1175 1176
	* progmodes/antlr-mode.el: No need to require cc-mode twice.

1177 1178
	* progmodes/cc-bytecomp.el (cc-require): Handle uncompiled case.

1179 1180
	* progmodes/cc-mode.el (c-define-abbrev-table): Handle NAME unbound.

1181 1182
2013-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>

1183 1184 1185 1186
	* simple.el (repeat-complex-command--called-interactively-skip):
	New function.
	(repeat-complex-command): Use it (bug#14136).

1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199
	* progmodes/cc-mode.el: Minor cleanup of var declarations.
	(c-define-abbrev-table): Add `doc' argument.
	(c-mode-abbrev-table, c++-mode-abbrev-table)
	(objc-mode-abbrev-table, java-mode-abbrev-table)
	(idl-mode-abbrev-table, pike-mode-abbrev-table)
	(awk-mode-abbrev-table): Use it.
	(c-mode-syntax-table, c-mode-map, c++-mode-syntax-table)
	(c++-mode-map, objc-mode-syntax-table, objc-mode-map)
	(java-mode-syntax-table, java-mode-map, idl-mode-syntax-table)
	(idl-mode-map, pike-mode-syntax-table, pike-mode-map, awk-mode-map):
	Move initialization into the declaration; and remove any
	autoload cookie.

1200 1201 1202
	* epg.el (epg--process-filter): Use with-current-buffer, save-excursion
	and dynamic let binding.

1203 1204
	* vc/smerge-mode.el: Remove redundant :group args.

1205 1206 1207
	* emacs-lisp/package.el (package-activate-1): Don't add unnecessarily
	to load-path.

1208 1209 1210 1211 1212 1213 1214
2013-08-28  Juri Linkov  <juri@jurta.org>

	* isearch.el (isearch-reread-key-sequence-naturally): Use non-nil
	arg DONT-DOWNCASE-LAST of `read-key-sequence'.
	(isearch-other-meta-char): Handle an undefined shifted printing
	character by downshifting it.  (Bug#15200)

1215 1216 1217 1218 1219
2013-08-28  Juri Linkov  <juri@jurta.org>

	* isearch.el (isearch-search): Change regexp error message for
	non-regexp searches.  (Bug#15166)

1220 1221 1222 1223 1224
2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>

	* Makefile.in (SHELL): Now @SHELL@, not /bin/sh,
	for portability to hosts where /bin/sh has problems.

1225 1226 1227 1228
2013-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>

	* emacs-lisp/cconv.el (cconv--analyse-function): Improve warning.

1229 1230 1231 1232 1233
2013-08-27  Juri Linkov  <juri@jurta.org>

	* isearch.el (isearch-other-meta-char): Don't store kmacro commands
	in the keyboard macro.  (Bug#15126)

1234 1235 1236 1237 1238 1239
2013-08-27  Juri Linkov  <juri@jurta.org>

	* isearch.el (isearch-quote-char): Comment out converting unibyte
	to multibyte, thus syncing with its `quoted-insert' counterpart.
	(Bug#15166)

1240 1241 1242
2013-08-27  Martin Rudalics  <rudalics@gmx.at>

	* window.el (display-buffer-use-some-window): Add missing
1243 1244
	argument in call of get-largest-window (Bug#15185).
	Reported by Stephen Leake.
1245

1246
2013-08-27  Glenn Morris  <rgm@gnu.org>
1247 1248 1249

	* emacs-lisp/package.el (package-buffer-info): Fix message typo.

1250 1251 1252 1253 1254
2013-08-27  Stefan Monnier  <monnier@iro.umontreal.ca>

	* progmodes/python.el (python-font-lock-keywords): Don't return nil
	from a matcher-function unless there's no more matches (bug#15161).

1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268
2013-08-26  Michael Albinus  <michael.albinus@gmx.de>

	* minibuffer.el: Revert change from 2013-08-20.

	* net/tramp.el (tramp-find-method, tramp-find-user): Mark result
	with text property `tramp-default', if appropriate.
	(tramp-check-proper-host): New defun.
	(tramp-dissect-file-name): Do not check hostname.  Revert change
	of 2013-03-18.
	(tramp-backtrace): Make VEC-OR-PROC optional.

	* net/tramp-adb.el (tramp-adb-maybe-open-connection):
	* net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
	* net/tramp-sh.el (tramp-maybe-open-connection):
1269 1270
	* net/tramp-smb.el (tramp-smb-maybe-open-connection):
	Apply `tramp-check-proper-host'.
1271

1272 1273 1274 1275 1276
2013-08-26  Tassilo Horn  <tsdh@gnu.org>

	* epa-hook.el (epa-file-encrypt-to): Quote `safe-local-variable'
	lambda expression in order to have `describe-variable' display it.

1277 1278 1279 1280 1281
2013-08-26  Michael Albinus  <michael.albinus@gmx.de>

	* net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime):
	BUF can be optional.  (Bug#15186)

1282 1283 1284 1285 1286
2013-08-25  Xue Fuqiao  <xfq.free@gmail.com>

	* progmodes/flymake.el (flymake-get-real-file-name-function):
	Fix broken customization.  (Bug#15184)

1287 1288
2013-08-25  Alan Mackenzie  <acm@muc.de>

1289 1290 1291 1292 1293 1294
	Improve indentation of bracelists defined by macros (without "=").

	* progmodes/cc-engine.el (c-inside-bracelist-p): When a macro
	expansion begins with "{", regard it as bracelist when it doesn't
	contain a ";".

1295 1296 1297 1298 1299 1300 1301 1302
	Parse C++ inher-intro when there's a template split over 2 lines.

	* progmodes/cc-engine.el (c-guess-basic-syntax CASE 5C): Code more
	rigorously the search for "class" etc. followed by ":".

	* progmodes/cc-langs.el (c-opt-<>-sexp-key): Make the value for
	random languages a regexp which never matches rather than nil.

1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318
	Handle "/"s more accurately in test for virtual semicolons (AWK Mode).

	* progmodes/cc-awk.el (c-awk-one-line-possibly-open-string-re)
	(c-awk-regexp-one-line-possibly-open-char-list-re)
	(c-awk-one-line-possibly-open-regexp-re)
	(c-awk-one-line-non-syn-ws*-re): Remove.
	(c-awk-possibly-open-string-re, c-awk-non-/-syn-ws*-re)
	(c-awk-space*-/-re, c-awk-space*-regexp-/-re)
	(c-awk-space*-unclosed-regexp-/-re): New constants.
	(c-awk-at-vsemi-p): Reformulate better to recognize "/"s which
	aren't regexp delimiters.

	* progmodes/cc-engine.el (c-crosses-statement-barrier-p): Add in
	handling for a rare situation in AWK Mode involving unterminated
	strings/regexps.

1319 1320
2013-08-23  Glenn Morris  <rgm@gnu.org>

1321 1322
	* files.el (auto-mode-alist): Use sh-mode for .bash_history.

1323 1324
	* files.el (interpreter-mode-alist): Use tcl-mode for expect scripts.

1325 1326
	* files.el (create-file-buffer): If the result would begin with
	spaces, prepend a "|" instead of removing them.  (Bug#15162)
1327

1328 1329
2013-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>

1330 1331 1332
	* textmodes/fill.el (fill-match-adaptive-prefix): Don't throw away
	text-properties (bug#15155).

1333 1334 1335 1336 1337
	* calc/calc-keypd.el (calc-keypad-execute): `x-flush-mouse-queue' doesn't
	exist any more.
	(calc-keypad-redraw): Remove unused var `pad'.
	(calc-keypad-press): Remove unused var `menu'.

1338 1339
2013-08-23  Martin Rudalics  <rudalics@gmx.at>

1340 1341
	* window.el (display-buffer-pop-up-frame):
	Call pop-up-frame-function with BUFFER current so `make-frame' will
1342 1343
	use it as the new frame's buffer (Bug#15133).

1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356
2013-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>

	* calendar/timeclock.el: Minor cleanups.
	(timeclock-ask-before-exiting, timeclock-use-display-time):
	Use `symbol'.
	(timeclock-modeline-display): Define as alias before the
	actual definition.
	(timeclock-mode-line-display): Use define-minor-mode.
	(timeclock-day-list-template): Make it a function, add an argument.
	(timeclock-day-list-required, timeclock-day-list-length)
	(timeclock-day-list-debt, timeclock-day-list-span)
	(timeclock-day-list-break): Adjust calls accordingly.

1357 1358 1359 1360 1361
2013-08-21  Stefan Monnier  <monnier@iro.umontreal.ca>

	* emacs-lisp/pp.el (pp-eval-expression, pp-macroexpand-expression):
	Use read--expression so that completion works again.

1362 1363 1364 1365 1366
2013-08-21  Sam Steingold  <sds@gnu.org>

	Add rudimentary inferior shell interaction
	* progmodes/sh-script.el (sh-shell-process): New buffer-local variable.
	(sh-set-shell): Reset it.
1367 1368
	(sh-show-shell, sh-cd-here, sh-send-line-or-region-and-step):
	New commands (bound to C-c C-z, C-c C-d, and C-c C-n).
Sam Steingold's avatar