ChangeLog 694 KB
Newer Older
Stefan Monnier's avatar
Stefan Monnier committed
1
2014-09-22  Kan-Ru Chen  <kanru@kanru.info>
2 3 4 5 6

	* window.el (fit-window-to-buffer): When counting buffer width,
	count the whole visible buffer.  Correctly convert the body-height
	to pixel size for window-text-pixel-size (Bug#18498).

7 8 9
2014-09-22  Sam Steingold  <sds@gnu.org>

	* progmodes/sql.el (sql-product-alist): Improve the Vertica entry.
Sam Steingold's avatar
oops  
Sam Steingold committed
10
	(sql-execute): Use `special-mode'.
11

12 13
2014-09-22  Stefan Monnier  <monnier@iro.umontreal.ca>

14 15
	Add pcase-defmacro, as well as `quote' and `app' patterns.
	* loadup.el: Increase max-lisp-eval-depth when macroexpanding macroexp.
16 17 18 19
	* emacs-lisp/pcase.el: Allow (F . ARGS) in `app' patterns.
	(pcase--funcall, pcase--eval): New functions.
	(pcase--u1): Use them for guard, pred, let, and app.
	(\`): Use the new feature to generate better code for vector patterns.
20 21 22 23 24 25 26 27 28 29 30 31
	* emacs-lisp/pcase.el: Use pcase-defmacro to handle backquote.
	(pcase--upat): Remove.
	(pcase--macroexpand): Don't hardcode handling of `.
	(pcase--split-consp, pcase--split-vector): Remove.
	(pcase--split-equal): Disregard ` since it's expanded away.
	(pcase--split-member): Optimize for quote rather than for `.
	(pcase--split-pred): Optimize for quote rather than for `.
	(pcase--u1): Remove handling of ` (and of `or' and `and').
	Quote non-selfquoting values when passing them to `eq'.
	Drop `app's let-binding if the variable is not used.
	(pcase--q1): Remove.
	(`): Define as a pattern macro.
32 33 34 35 36 37 38 39 40
	* emacs-lisp/pcase.el (pcase--match): New smart-constructor function.
	(pcase--expand pcase--q1, pcase--app-subst-match): Use it.
	(pcase--macroexpand): Handle self-quoting patterns here, expand them to
	quote patterns.
	(pcase--split-match): Don't hoist or/and here any more.
	(pcase--split-equal): Optimize quote patterns as well as ` patterns.
	(pcase--flip): New helper macro.
	(pcase--u1): Optimize the memq case directly.
	Don't handle neither self-quoting nor and/or patterns any more.
41 42 43
	* emacs-lisp/pcase.el (pcase-defmacro): New macro.
	(pcase--macroexpand): New function.
	(pcase--expand): Use it.
44 45 46 47 48
	* emacs-lisp/pcase.el (pcase--app-subst-match, pcase--app-subst-rest):
	New optimization functions.
	(pcase--u1): Add support for `quote' and `app'.
	(pcase): Document them in the docstring.

49 50 51 52 53 54 55 56 57 58 59 60
2014-09-22  Stefan Monnier  <monnier@iro.umontreal.ca>

	Use lexical-bindin in Ibuffer.
	* ibuffer.el (ibuffer-do-toggle-read-only): `arg' is unused.
	(ibuffer-compile-format): Simplify.
	(ibuffer-clear-summary-columns): Simplify.
	* ibuf-ext.el (ibuffer-generate-filter-groups): Don't use the third
	elem of dotimes when we don't refer to the iteration var from it.
	(ibuffer-toggle-sorting-mode): Avoid add-to-list.
	* ibuf-macs.el (define-ibuffer-column, define-ibuffer-op):
	Silence byte-compiler.

61 62
2014-09-22  Stefan Monnier  <monnier@iro.umontreal.ca>

63 64 65
	* font-lock.el (font-lock-compile-keyword): Don't confuse a lambda
	expression for a list.

66 67 68
	* emacs-lisp/bytecomp.el (byte-compile-lambda): Don't add fundoc usage
	for functions with no arguments.

69 70 71
	* mpc.el (mpc-data-directory): Use locate-user-emacs-file.
	(mpc-volume-refresh): Make sure the corresponding header-line is updated.

72 73
2014-09-17  Tom Willemse  <tom@ryuslash.org>  (tiny change)

74 75 76
	* simple.el (clone-indirect-buffer): Mention the return value
	(bug#18478).

77 78 79
	* progmodes/prog-mode.el (prog-mode-hook): Replace reference to
	Text mode in docstring (bug#18464).

80 81 82 83 84
2014-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>

	* progmodes/perl-mode.el (perl-syntax-propertize-function):
	Accept underscores in identifiers after "sub" (bug#18502).

85 86 87 88 89 90 91 92 93
2014-09-21  Tassilo Horn  <tsdh@gnu.org>

	* textmodes/reftex-sel.el (reftex-select-label-mode)
	(reftex-select-bib-mode, reftex-insert-docstruct): Derive modes
	from special-mode (instead of fundamental-mode) and propertize
	with font-lock-face instead of just face. (Bug#18496)

	* textmodes/reftex-toc.el (reftex-toc-mode, reftex-toc): Ditto.

94 95 96 97
2014-09-19  Dmitry Gutov  <dgutov@yandex.ru>

	* emacs-lisp/lisp.el (lisp-completion-at-point): Only calculate
	`table-etc' when `end' is non-nil.
Dmitry Gutov's avatar
Dmitry Gutov committed
98 99 100
	(lisp-completion-at-point): Move `end' back if it's after quote.
	If in comment or string, only complete when after backquote.
	(Bug#18265)
101 102 103
	(lisp-completion-at-point): Don't use
	`lisp--local-variables-completion-table' in the
	`lisp--form-quoted-p' case.
104

105 106 107 108 109 110 111 112
2014-09-19  Dmitry Gutov  <dgutov@yandex.ru>

	* emacs-lisp/lisp.el (lisp--expect-function-p)
	(lisp--form-quoted-p): New functions.
	(lisp-completion-at-point): Use them to see if we're completing a
	variable reference, a function name, or just any symbol.
	http://lists.gnu.org/archive/html/emacs-devel/2014-02/msg00229.html

113 114 115 116 117 118
2014-09-18  Ivan Kanis  <ivan@kanis.fr>

	* net/shr.el, net/eww.el: Don't override `shr-width', but
	introduce a new variable `shr-internal-width'.  This allows users
	to specify a width themselves.

119 120 121 122
2014-09-18  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* image-mode.el (image-toggle-display-image): If we have a
	`fit-width' or a `fit-height', don't limit the size of the image
123
	to the window size, because that doesn't preserve the aspect ratio.
124 125
	* image-mode.el: Move defvars earlier to avoid a byte-compilation
	warning.
126

127 128 129 130 131
2014-09-17  Reuben Thomas  <rrt@sc3d.org>

	* progmodes/js.el: Add interpreter-mode-alist support for various
	JavaScript interpreters.

132 133 134 135 136 137 138 139 140 141
2014-09-17  Paul Eggert  <eggert@cs.ucla.edu>

	Don't assume 'grep' supports GREP_OPTIONS.
	The GREP_OPTIONS environment variable is planned to be marked
	obsolescent in GNU grep, due to problems in its use, so stop
	relying on it.
	* progmodes/grep.el (grep-highlight-matches): Document this.
	(grep-process-setup): Do not set GREP_OPTIONS.
	(grep-compute-defaults): Use an explicit --color option if supported.

142 143 144 145 146
2014-09-16  Stefan Monnier  <monnier@iro.umontreal.ca>

	* msb.el (msb--make-keymap-menu, msb-menu-bar-update-buffers):
	Don't add outdated key-shortcut cache (bug#18482).

147
2014-09-15  Glenn Morris  <rgm@gnu.org>
148 149 150 151

	* image.el (image-multi-frame-p): Fix thinko - do not force
	a delay if none was specified.  (Bug#18334)

152
2014-09-15  Kan-Ru Chen  <kanru@kanru.info>
153 154 155

	* window.el (fit-window-to-buffer): Doc fix.

156
2014-09-15  Ivan Shmakov  <ivan@siamics.net>  (tiny change)
157 158 159 160

	* desktop.el (desktop-create-buffer): Check that buffers are still live
	before burying them (bug#18373).

161
2014-09-15  Glenn Morris  <rgm@gnu.org>
162 163 164 165

	* calendar/diary-lib.el (diary-list-entries):
	Restore 24.3 display behavior.  (Bug#18381)

166
2014-09-15  Eli Zaretskii  <eliz@gnu.org>
167 168 169 170 171 172 173

	* mouse.el (mouse-drag-line): On text-mode frames, count the mode
	line and header line as 1 pixel.  This fixes the 1-"pixel" (row)
	discrepancy between window-pixel-edges and mouse events, and
	avoids moving mode line up when the mouse click is on the modeline
	and no drag is attempted.

174 175 176 177 178
2014-09-14  Daniel Colascione  <dancol@dancol.org>

	* register.el (insert-register): Change default interactive
	insertion mode.

179 180 181 182 183 184 185 186 187
2014-09-14  Michael Albinus  <michael.albinus@gmx.de>

	* net/tramp-cache.el (tramp-flush-file-function): Simplify check.
	Suppress debug messages.

	* net/tramp.el (tramp-file-name-handler):
	* net/tramp-gvfs.el (tramp-gvfs-url-file-name): Apply `cons' where
	appropriate.

188 189 190 191 192 193
2014-09-13  Christopher Schmidt  <ch@ristopher.com>

	* calendar/calendar.el (calendar-update-mode-line):
	Do not overwrite mode-line-format if calendar-mode-line-format is
	nil.  (Bug#18467)

194 195 196 197 198 199
2014-09-13  Leo Liu  <sdl.web@gmail.com>

	* emacs-lisp/pcase.el (pcase--dontwarn-upats): New var.
	(pcase--expand): Use it.
	(pcase-exhaustive): New macro.  (Bug#16567)

Stefan Monnier's avatar
Stefan Monnier committed
200 201
	* emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
	Add pcase-exhaustive.
202

203 204 205 206
2014-09-13  Eli Zaretskii  <eliz@gnu.org>

	* mail/rmailmm.el (rmail-mime-insert-html): Decode the HTML part
	using the specified transfer-encoding, if any, or 'undecided'.
207 208
	(rmail-mime-render-html-shr): Bind shr-width to nil, so lines are
	broken at the window margin.
209

210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
2013-12-27  Ken Olum  <kdo@cosmos.phy.tufts.edu>

	Support rendering of HTML parts in Rmail (bug#4258).
	* mail/rmailmm.el (rmail-mime-process): Handle text/html
	separately from other text/ types.  Suppress tagline for
	multipart body.
	(rmail-mime-parse): Don't change visibility of tagline here.
	(rmail-mime-set-bulk-data, rmail-mime-insert-bulk):
	Handle text/html specially.
	(rmail-mime-render-html-function,rmail-mime-prefer-html): New variables.
	(rmail-mime-insert-html, rmail-mime-render-html-shr)
	(rmail-mime-render-html-lynx): New functions.
	(rmail-mime-fix-inserted-faces): New function.
	(rmail-mime-process-multipart): Find the best part to show
	following rmail-mime-prefer-html if set.
	(rmail-mime-searching): New variable.
	(rmail-search-mime-message): Bind rmail-mime-searching to
	suppress rendering while searching.

Sam Steingold's avatar
Sam Steingold committed
229 230 231 232 233 234 235 236
2014-09-12  Sam Steingold  <sds@gnu.org>

	* progmodes/sql.el (sql-product-alist): Add vertica.
	(sql-vertica-program, sql-vertica-options)
	(sql-vertica-login-params, sql-comint-vertica, sql-vertica):
	New functions and variables to support Vertica.
	Inspired by code by Roman Scherer <roman@burningswell.com>.

Paul Eggert's avatar
Paul Eggert committed
237 238 239 240 241 242
2014-09-11  Paul Eggert  <eggert@cs.ucla.edu>

	* ses.el (ses-file-format-extend-parameter-list): Rename from
	ses-file-format-extend-paramter-list, to correct a misspelling.
	All uses changed.

243 244 245 246 247 248 249 250 251 252
2014-09-10  Alan Mackenzie  <acm@muc.de>

	CC Mode: revert recent changes and fix bug 17463 (cc-langs.elc
	gets loaded at run-time).
	* progmodes/cc-langs.el (c-no-parens-syntax-table): Rename the
	c-lang-const to c-make-no-parens-syntax-table and correct the
	logic.
	(c-no-parens-syntax-table): Correct the logic of the
	c-lang-defvar.

253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
2014-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>

	CC-mode: Set open-paren-in-column-0-is-defun-start to nil;
	plus misc cleanup.
	* progmodes/cc-mode.el (c-basic-common-init):
	Set open-paren-in-column-0-is-defun-start.
	(adaptive-fill-first-line-regexp, font-lock-syntactic-keywords):
	Remove declarations, unused.
	(run-mode-hooks): Remove declaration.
	(font-lock-defaults): Use plain `defvar' to declare.
	(c-run-mode-hooks): Test existence of run-mode-hooks with fboundp.
	* progmodes/cc-langs.el (c-filter-ops): Avoid `setq'.
	(c-make-mode-syntax-table): Don't micro-optimize.
	(c-keywords, c-keyword-member-alist): Simplify.
	(c-kwds-lang-consts): Don't eval at compile-time.
	(c-primary-expr-regexp): Comment out unused vars.
	* progmodes/cc-fonts.el (c-font-lock-context): Declare at top-level.
	(c-font-byte-compile): New var.
	(c--compile): New function.  Use it instead of `byte-compile'.
	(c-cpp-matchers): Quote the value returned by
	`c-make-syntactic-matcher' in case it's not self-evaluating.
	(c-basic-matchers-before): Avoid a plain MATCHER as keyword, wrap it in
	parentheses instead (in case MATCHER happens to be a list).
	(c-font-lock-enum-tail): Remove unused var `start'.
	(c-font-lock-objc-methods): Silence byte-compiler warnings.
	* progmodes/cc-engine.el (c-syntactic-re-search-forward): Sink an `if'
	test into an argument.
	* progmodes/cc-defs.el (c-point, c-major-mode-is, c-put-char-property)
	(c-get-char-property): Don't use `eval' just to unquote a constant.
	(c-use-extents): Remove.  Use (featurep 'xemacs), compiled
	more efficiently.
	(c-put-char-property-fun): Don't call `byte-compile' by hand.
	(c-clear-char-property, c-clear-char-properties): Check that `property'
	is a quoted constant.
	(c-emacs-features): Remove `infodock', `syntax-properties', and
	`pps-extended-state' (never used), `8-bit' and `1-bit' (use (featurep
	'xemacs) instead).  Use `with-temp-buffer' and let-bind vars after
	changing buffer, so we don't have to setq them again afterwards.
	(c-lang-const): Remove redundant symbolp assertions.
	(c-find-assignment-for-mode): Use `or'.
	* Makefile.in (compile-one-process): Remove cc-mode dependency.

295 296 297 298
2014-09-09  Sam Steingold  <sds@gnu.org>

	* progmodes/sql.el (sql-default-directory): Fix type annotation.

299 300 301 302 303 304
2014-09-09  Stefan Monnier  <monnier@iro.umontreal.ca>

	* progmodes/cc-awk.el: Remove unneeded cc-bytecomp use.
	Change doc comments into docstrings.
	* Makefile.in: Remove cc-awk dependency.

305 306 307 308
2014-09-08  Sam Steingold  <sds@gnu.org>

	* progmodes/sql.el (sql-send-line-and-next): New command,
	bound to C-c C-n.
309 310
	(sql-show-sqli-buffer): Display the buffer instead of its name and
	bind the command to C-c C-z.
311 312 313
	(sql-default-directory): New user option.
	(sql-product-interactive): Bind `default-directory' to it to
	enable remote connections using Tramp.
314 315
	(sql-set-sqli-buffer): Call `sql-product-interactive' when no
	suitable buffer is available.
316

317 318
2014-09-08  Glenn Morris  <rgm@gnu.org>

319 320 321 322
	* calendar/calendar.el (calendar-basic-setup):
	Fix calendar-view-holidays-initially-flag and fancy display.
	* calendar/diary-lib.el (diary-live-p): Doc fix.

323 324 325
	* calendar/calendar.el (calendar-basic-setup):
	Avoid clobbering calendar with diary.  (Bug#18381)

326
2014-09-08  Stefan Monnier  <monnier@iro.umontreal.ca>
327 328 329

	* vc/vc-dir.el (vc-dir-update): Don't burp in corner case.

330
2014-09-08  Lars Ljung  <lars@matholka.se>  (tiny change)
331 332 333 334

	* isearch.el (isearch-yank-word-or-char): Obey superword-mode
	as well (bug#18400).

335
2014-09-08  Eli Zaretskii  <eliz@gnu.org>
336 337 338

	* subr.el (posn-actual-col-row): Doc fix.  (Bug#18385)

Leo Liu's avatar
Leo Liu committed
339 340 341 342 343 344
2014-09-06  Leo Liu  <sdl.web@gmail.com>

	* emacs-lisp/pcase.el (pcase): Doc fix.
	(pcase--split-vector): New function.
	(pcase--q1): Support vector qpattern.  (Bug#18327)

345 346 347 348 349 350
2014-09-05  Sam Steingold  <sds@gnu.org>

	* textmodes/tex-mode.el (tex-print-file-extension): New user
	option.
	(tex-print): Use it instead of the hard-coded string.

351 352 353 354 355
2014-09-05  Michael Albinus  <michael.albinus@gmx.de>

	* net/tramp-sh.el (tramp-sh-handle-start-file-process):
	Expand `default-directory'.

356 357
2014-09-05  Martin Rudalics  <rudalics@gmx.at>

Stefan Monnier's avatar
Stefan Monnier committed
358 359
	* scroll-bar.el (horizontal-scroll-bars-available-p):
	New function.
360 361 362 363 364
	(horizontal-scroll-bar-mode): Rewrite using
	horizontal-scroll-bars-available-p.
	* menu-bar.el (menu-bar-showhide-scroll-bar-menu): Rewrite using
	horizontal-scroll-bars-available-p.

365 366 367 368 369 370 371
2014-09-05  Stefan Monnier  <monnier@iro.umontreal.ca>

	* subr.el (call-process-shell-command, process-file-shell-command):
	Make the `args' obsolete (bug#18409).
	(start-process-shell-command, start-file-process-shell-command):
	Use `declare'.

372 373 374 375 376
2014-09-05  Jay Belanger  <jay.p.belanger@gmail.com>

	* calc/calc-forms.el (math-normalize-hms): Do a better check for
	"negative" hms forms.

377 378 379 380 381
2014-09-04  Rasmus Pank Roulund  <emacs@pank.eu>

	* vc/vc-git.el (vc-git-conflicted-files): Fix bug when git status
	returns nil (bug#18391).

382 383 384 385 386 387 388 389
2014-09-04  Stefan Monnier  <monnier@iro.umontreal.ca>

	* emacs-lisp/eldoc.el (eldoc-function-argstring): Don't strip
	terminating paren (bug#18352).
	(eldoc-last-data-store): Return cached data.
	(eldoc-get-var-docstring): Avoid setq.
	(eldoc-get-fnsym-args-string): Clarify data flow.

390 391 392 393 394 395
2014-09-04  Thierry Volpiatto  <thierry.volpiatto@gmail.com>

	* emacs-lisp/eldoc.el (eldoc-highlight-function-argument): Handle the
	case where we're currently providing part of the &rest arg after some
	&key args, as in define-ibuffer-op (bug#18048).

396 397 398 399 400 401 402 403 404
2014-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>

	* progmodes/which-func.el (which-func-ff-hook): Obey pre-existing
	buffer-local setting of which-func-mode.
	(which-func-mode): Use defvar-local.
	(which-function-mode): Don't reset which-func-mode in each buffer since
	it might have been set by someone else.
	(which-func-update-ediff-windows): Check which-function-mode.

405 406 407 408 409 410 411 412 413 414 415 416 417
2014-09-03  Martin Rudalics  <rudalics@gmx.at>

	* frame.el (frame-initialize): Remove horizontal-scroll-bars
	from frame-initial-frame-alist.
	* scroll-bar.el (previous-horizontal-scroll-bar-mode)
	(horizontal-scroll-bar-mode-explicit)
	(set-horizontal-scroll-bar-mode, get-horizontal-scroll-bar-mode)
	(toggle-horizontal-scroll-bar): Remove.
	(horizontal-scroll-bar-mode): Remove defcustom.
	(horizontal-scroll-bar-mode): Fix doc-string.
	(scroll-bar-toolkit-scroll)
	(scroll-bar-toolkit-horizontal-scroll): Add doc-strings stubs.

418
2014-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
419

420 421 422 423 424 425 426 427
	* emacs-lisp/package.el (package-generate-description-file):
	Properly quote the arguments (bug#18332).  Change second arg.
	(package--alist-to-plist-args): Rename from package--alist-to-plist and
	quote the elements.
	(package--make-autoloads-and-stuff): Fix the test for pre-existence of
	the *-pkg.el file.  Adjust to new calling convention of
	package-generate-description-file.

428 429 430
	* progmodes/gud.el (gud-gdb-completion-at-point): Add hack (bug#18282).
	(gud-gdb-completions): Remove obsolete workaround.

431
2014-09-03  Eli Zaretskii  <eliz@gnu.org>
432 433 434 435 436 437 438 439

	* subr.el (posn-col-row): Revert the change from commit
	2010-11-13T21:07:58Z!eliz@gnu.org, which
	was inadvertently merged from emacs-23 release branch in 2010-11-18T03:54:14Z!monnier@iro.umontreal.ca
	monnier@iro.umontreal.ca-20101118035414-yvlg7k7dk4k4l3q, and
	introduced an off-by-one error in the reported row when there is a
	header line.  (Bug#18384)

440
2014-09-03  Fabián Ezequiel Gallina  <fgallina@gnu.org>
441 442 443 444

	* progmodes/python.el (python-indent-post-self-insert-function):
	Avoid electric colon at beginning-of-defun.  (Bug#18228)

445
2014-09-03  Glenn Morris  <rgm@gnu.org>
446 447

	* tutorial.el (tutorial--display-changes):
448
	Fix 2014-08-01 change.  (Bug#18382)
449

450
2014-09-03  Ken Brown  <kbrown@cornell.edu>
451 452 453 454

	* startup.el (fancy-splash-frame): Extend the fix for Bug#16014 to
	the Cygwin-w32 build.  (Bug#18347)

455
2014-09-03  Glenn Morris  <rgm@gnu.org>
456 457 458 459

	* tar-mode.el (tar--extract, tar-extract):
	Avoid permanently disabling undo in extracted buffers.  (Bug#18344)

460 461 462 463 464
2014-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>

	* progmodes/sh-script.el (sh-font-lock-quoted-subshell): Try to better
	handle multiline elements (bug#18380).

465 466 467 468 469 470
2014-09-01  Eli Zaretskii  <eliz@gnu.org>

	* ls-lisp.el (ls-lisp-use-string-collate)
	(ls-lisp-UCA-like-collation): New defcustoms.
	(ls-lisp-string-lessp): Use them to control sorting by file
	names.  (Bug#18051)
471 472 473
	(ls-lisp-version-lessp): New function.
	(ls-lisp-handle-switches): Use it to implement the -v switch of
	GNU ls.
474
	(ls-lisp--insert-directory): Mention the -v switch in the doc string.
475

476 477 478 479 480 481
2014-08-31  Christoph Scholtes  <cschol2112@gmail.com>

	* ibuffer.el: Replace mode-specific quit function with
	`quit-window' via `special-mode'.
	(ibuffer-mode-map): Use keybindings from special-mode-map instead
	of local overrides.
482 483
	(ibuffer): Don't store previous windows configuration.
	Let `quit-window' handle restoring.
484 485 486 487
	(ibuffer-quit): Remove function. Use `quit-window' instead.
	(ibuffer-restore-window-config-on-quit): Remove variable.
	(ibuffer-prev-window-config): Remove variable.

488 489 490 491 492
2014-08-29  Michael Heerdegen  <michael_heerdegen@web.de>

	* emacs-lisp/easy-mmode.el (define-minor-mode): Use mode function
	name instead of variable name in hook docstring.  (Bug#18349)

493 494 495 496 497 498 499
2014-08-29  Martin Rudalics  <rudalics@gmx.at>

	* window.el (display-buffer-at-bottom): Prefer bottom-left
	window to other bottom windows.  Reuse a bottom window if it
	shows the buffer already.  Suggested by Juri Linkov
	<juri@jurta.org> in discussion of (Bug#18181).

500 501 502 503 504
2014-08-29  Leo Liu  <sdl.web@gmail.com>

	* files.el (minibuffer-with-setup-hook): Allow (:append FUN) to
	append to minibuffer-setup-hook.  (Bug#18341)

505 506 507 508 509 510 511 512 513 514 515 516 517 518 519
2014-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>

	* progmodes/cc-defs.el: Expose c-lanf-defconst's expressions to the
	byte-compiler.
	(lookup-syntax-properties): Silence byte-compiler.
	(c-lang-defconst): Quote the code with `lambda' rather than with
	`quote'.
	(c-lang-const): Avoid unneeded setq.
	(c-lang-constants-under-evaluation): Add docstring.
	(c-lang--novalue): New constant.
	(c-find-assignment-for-mode): Use it instead of c-lang-constants.
	(c-get-lang-constant): Same here.
	Get the mode's value using `funcall' now that the code is quoted
	with `lambda'.

520 521 522 523 524
2014-08-28  Michael Albinus  <michael.albinus@gmx.de>

	* net/tramp.el (tramp-handle-shell-command): Use `display-buffer'.
	(Bug#18326)

525 526 527 528 529
2014-08-28  Martin Rudalics  <rudalics@gmx.at>

	* scroll-bar.el (scroll-bar-horizontal-drag-1): Handle new
	interpretation of `portion-whole'.

530
2014-08-28  Michael Albinus  <michael.albinus@gmx.de>
531 532 533

	* net/tramp-adb.el: Spell author name correctly.

534
2014-08-28  João Távora  <joaotavora@gmail.com>
535 536 537 538

	* net/shr.el (shr-expand-url): Plain expand-file-name is not enough;
	use url-expand-file-name.  (Bug#18310)

539
2014-08-28  Glenn Morris  <rgm@gnu.org>
540 541 542 543

	* emulation/cua-rect.el (cua--highlight-rectangle):
	Avoid error at point-min.  (Bug#18309)

544
2014-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>
545

546 547 548
	* progmodes/python.el (python-shell-prompt-detect): Remove redundant
	executable-find (bug#18244).

549 550
	* simple.el (self-insert-uses-region-functions): Defvar.

551 552 553 554
2014-08-28  Glenn Morris  <rgm@gnu.org>

	* subr.el (remq): Revert 2014-08-25 doc change (not always true).

555 556 557 558
2014-08-27  Dmitry Antipov  <dmantipov@yandex.ru>

	* startup.el (normal-top-level): Now use internal--top-level-message.

559 560 561 562
2014-08-26  Dmitry Antipov  <dmantipov@yandex.ru>

	* startup.el (normal-top-level): Use top-level-message.

563 564 565 566 567
2014-08-25  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* net/shr.el (shr-copy-url): Encode copied URL to avoid getting
	URLs containing spaces and the like.

Christoph Scholtes's avatar
Christoph Scholtes committed
568 569 570 571
2014-08-25  Christoph Scholtes  <cschol2112@gmail.com>

	* subr.el (remq): Fix docstring (Bug#18253).

572 573 574 575
2014-08-25  Christoph Scholtes  <cschol2112@gmail.com>

	* replace.el (query-replace): Fix typo in docstring (Bug#18320).

576 577
2014-08-24  Alan Mackenzie  <acm@muc.de>

578
	Handle C++11's "auto" and "decltype" constructions.
579
	* progmodes/cc-engine.el (c-forward-type): Enhance to recognise
580
	and return 'decltype.
581
	(c-forward-decl-or-cast-1): New let variables backup-kwd-sym,
582 583
	prev-kwd-sym, new-style-auto.  Enhance to handle the new "auto"
	keyword.
584
	* progmodes/cc-fonts.el (c-font-lock-declarations): Handle the
585
	"decltype" keyword.
586 587
	(c-font-lock-c++-new): Handle "decltype" constructions.
	* progmodes/cc-langs.el (c-auto-ops, c-auto-ops-re):
588
	New c-lang-defconsts/defvars.
589 590 591 592
	(c-haskell-op, c-haskell-op-re): New c-lang-defconsts/defvars.
	(c-typeof-kwds, c-typeof-key): New c-lang-defconsts/defvars.
	(c-typeless-decl-kwds): Append "auto" onto the C++ value.
	(c-not-decl-init-keywords): Also exclude c-typeof-kwds from value.
593

594
	Make ">>" act as double template ender in C++ Mode.
595
	* progmodes/cc-langs.el (c->-op-cont-tokens): New lang-const split
596
	off from c->-op-cont-re.
597 598 599
	(c->-op-cont-tokens): Change to use the above.
	(c->-op-without->-cont-regexp): New lang-const.
	* progmodes/cc-engine.el (c-forward-<>-arglist-recur):
600
	Use c->-op-without->-cont-regexp in place of c->-op-cont-tokens.
601 602


603 604 605 606 607
2014-08-23  Alan Mackenzie  <acm@muc.de>

	* progmodes/cc-fonts.el (c-font-lock-declarators): Fix infinite
	loop, bug #18306.  The bug was introduced on 2014-08-02.

608 609
2014-08-21  Eli Zaretskii  <eliz@gnu.org>

610 611
	* textmodes/texnfo-upd.el (texinfo-specific-section-type):
	Don't recognize a Top node if there are other sectioning commands
612 613 614 615
	earlier in the Texinfo file.  This fixes a bug in
	texinfo-make-menu and avoids inflooping in
	texinfo-all-menus-update when they are invoked on texinfo.texi.

616 617 618 619 620 621 622 623
2014-08-21  Martin Rudalics  <rudalics@gmx.at>

	* window.el (window--side-window-p): New function.
	(split-window, window-splittable-p): Use window--side-window-p to
	determine whether WINDOW can be split (Bug#18304).
	* calendar/calendar.el (calendar-basic-setup): Fix one call of
	`window-splittable-p' and add another (Bug#18304).

624 625 626 627 628
2014-08-20  Sam Steingold  <sds@gnu.org>

	* progmodes/python.el (python-new-pythonpath): Extract from
	`python-shell-calculate-process-environment'.

629 630 631 632 633 634 635 636 637 638 639 640 641 642
2014-08-18  Thierry Volpiatto  <thierry.volpiatto@gmail.com>

	* emacs-lisp/eldoc.el (eldoc-highlight-function-argument): Add support
	for &key args (bug#18048).

2014-08-18  Stefan Monnier  <monnier@iro.umontreal.ca>

	* emacs-lisp/eldoc.el (eldoc-argument-case): Obsolete and change default.
	(eldoc-function-argstring-format): Remove.
	(eldoc-function-argstring): Always return upcase args.
	Use help-make-usage.  Don't add parens.
	(eldoc-get-fnsym-args-string): Don't obey eldoc-argument-case since
	it's too late to do it right (bug#18048).

643 644 645 646 647 648 649
2014-08-18  Eli Zaretskii  <eliz@gnu.org>

	* scroll-bar.el (scroll-bar-horizontal-drag-1)
	(scroll-bar-toolkit-horizontal-scroll): When determining the
	paragraph direction, use the buffer of the window designated in
	the event.

650 651 652 653 654
2014-08-16  Andreas Schwab  <schwab@linux-m68k.org>

	* vc/diff-mode.el (diff-fixup-modifs): Handle empty line in
	context of unified diff.

655 656 657 658 659 660 661 662 663 664 665 666
2014-08-16  Paul Eggert  <eggert@cs.ucla.edu>

	Add dependencies to fix loaddefs race during parallel builds.
	Without this, for example, 'make -j bootstrap' can fail and report
	"Opening input file: no such file or directory,
	.../lisp/calendar/diary-loaddefs.el ... recipe for target
	'calendar/hol-loaddefs.el' failed", where the hol-loaddefs.el rule
	got confused because diary-loaddefs.el was being built in parallel.
	* Makefile.in ($(CAL_DIR)/diary-loaddefs.el):
	Depend on $(CAL_DIR)/cal-loaddefs.el.
	($(CAL_DIR)/hol-loaddefs.el): Depend on $(CAL_DIR)/diary-loaddefs.el.

667 668 669 670 671
2014-08-16  Martin Rudalics  <rudalics@gmx.at>

	* scroll-bar.el (scroll-bar-horizontal-drag-1): Use cdr of
	portion-whole for scrolling right-to-left text.

672
2014-08-15  Leo Liu  <sdl.web@gmail.com>
673 674 675 676

	* speedbar.el (speedbar-generic-list-tag-p): Allow special
	elements from imenu.

677
2014-08-15  Glenn Morris  <rgm@gnu.org>
678

679 680
	* subr.el (with-output-to-temp-buffer): Doc fix; from elisp manual.

681 682 683 684 685
2014-08-13  Jan Nieuwenhuizen  <janneke@gnu.org>

	* progmodes/compile.el (compilation-error-regexp-alist-alist):
	Add Guile regexpses.

686 687 688 689
2014-08-13  Jan Nieuwenhuizen  <janneke@gnu.org>

	* progmodes/gud.el (guiler): New function.  Starts the Guile REPL;
	add Guile debugger support for GUD.
690

Stefan Monnier's avatar
Stefan Monnier committed
691 692 693 694 695 696 697 698
2014-08-13  Stefan Monnier  <monnier@iro.umontreal.ca>

	* obsolete/mouse-sel.el (mouse-sel-mode): Use add/remove-function.
	(mouse-sel--ignore): New function.
	(mouse-sel-has-been-enabled, mouse-sel-original-bindings)
	(mouse-sel-original-interprogram-cut-function)
	(mouse-sel-original-interprogram-paste-function): Remove.

699 700
2014-08-13  Eric S. Raymond  <esr@thyrsus.com>

Glenn Morris's avatar
Glenn Morris committed
701
	* vc/vc-git.el (vc-git-resolve-when-done): New function.
Glenn Morris's avatar
Glenn Morris committed
702 703 704 705
	Call "git add" when there are no longer conflict markers.

2014-08-13  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>

Glenn Morris's avatar
Glenn Morris committed
706
	* vc/vc-git.el (vc-git-find-file-hook): New function.
Glenn Morris's avatar
Glenn Morris committed
707
	Adds support for calling smerge (and resolve) on a conflicted file.
708
	(vc-git-conflicted-files): New function.
Glenn Morris's avatar
Glenn Morris committed
709
	Useful in itself and a step towards better smerge support.
710

711 712
2014-08-12  Stefan Monnier  <monnier@iro.umontreal.ca>

713
	* mpc.el (mpc-reorder): Don't bother splitting the "active" elements
714 715
	to the first part if they're the same as the selection.

716 717 718 719 720 721
2014-08-12  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* image-mode.el (image-transform-reset): New command and menu item.
	(image-mode-map): Rearrange the menu items to put presumably more
	obscure items at the end.

722 723 724 725 726
2014-08-12  Juri Linkov  <juri@jurta.org>

	* vc/vc-annotate.el (vc-annotate-background-mode):
	Use `with-demoted-errors' instead of `ignore-errors'.  (Bug#18189)

727 728 729 730
2014-08-12  Stefan Monnier  <monnier@iro.umontreal.ca>

	* files.el (out-of-memory-warning-percentage): Turn it off by default.

731 732 733 734 735
2014-08-11  Sam Steingold  <sds@gnu.org>

	* textmodes/sgml-mode.el (sgml-validate-command): Set depending on
	the presence of known validators (tidy, (o)nsgmls).

736 737 738 739 740 741 742
2014-08-11  Ulf Jasper  <ulf.jasper@web.de>

	Newsticker: introduce `newsticker-treeview-date-format'. (Bug#17227)

	* net/newst-treeview.el (newsticker-treeview-date-format): New.
	(newsticker--treeview-list-add-item): Use `newsticker-treeview-date-format'.

743 744 745 746 747 748 749
2014-08-11  Glenn Morris  <rgm@gnu.org>

	* files.el (basic-save-buffer-2): Revert 2013-01-31 change, which
	chose coding system for writing before backing up, since it causes
	a more serious problem than the one it solves.  (Closes Bug#18141,
	reopens Bug#13522.)

750
2014-08-11  Martin Rudalics  <rudalics@gmx.at>
751

752
	* window.el (window-total-size): Make doc-string more self-contained.
753 754 755 756 757

	* window.el (display-buffer-below-selected): Restore original
	behavior if buffer is already displayed in the window below the
	selected one (Bug#18181).

758
2014-08-11  Stefan Monnier  <monnier@iro.umontreal.ca>
759 760 761 762

	* mouse.el (mouse--down-1-maybe-follows-link): Don't convert the down
	event (bug#18212).

763
2014-08-11  Eli Zaretskii  <eliz@gnu.org>
Eli Zaretskii's avatar
Eli Zaretskii committed
764 765 766

	* info.el (info): Doc fix.

767
2014-08-11  Stefan Monnier  <monnier@iro.umontreal.ca>
768 769 770 771

	* info.el (Info-mode-map): Override a global down-mouse-2 binding
	(bug#18212).

772
2014-08-11  Eli Zaretskii  <eliz@gnu.org>
773 774 775

	* simple.el (default-line-height): A floating-point value of
	line-spacing means a fraction of the default frame font's height,
776 777
	not of the font currently used by the 'default' face.
	Truncate the pixel value, like the display engine does.
778 779 780
	(window-screen-lines): Use window-inside-pixel-edges for
	determining the window height in pixels.  (Bug#18195)

781 782 783 784
2014-08-11  Grégoire Jadi  <daimrod@gmail.com>

	* leim/quail/latin-post.el: Transform " __" into " _".  (Bug#18023)

785 786 787 788
2014-08-10  Ulf Jasper  <ulf.jasper@web.de>

	Enumerate evaluated sexp diary entries (Bug#7911).
	* calendar/icalendar.el (icalendar-export-sexp-enumerate-all)
Glenn Morris's avatar
Glenn Morris committed
789 790
	(icalendar-export-sexp-enumeration-days): New.
	(icalendar-export-region): Now `icalendar--convert-to-ical'
791 792
	returns a cons cell or a list of cons cells.
	(icalendar--convert-to-ical): Take care of
Glenn Morris's avatar
Glenn Morris committed
793 794 795 796 797
	`icalendar-export-sexp-enumerate-all'.  Return (a list of) cons cells.
	(icalendar--convert-ordinary-to-ical)
	(icalendar--convert-weekly-to-ical, icalendar--convert-yearly-to-ical)
	(icalendar--convert-block-to-ical, icalendar--convert-block-to-ical)
	(icalendar--convert-float-to-ical, icalendar--convert-cyclic-to-ical)
798 799
	(icalendar--convert-anniversary-to-ical): Return cons cell.
	(icalendar--convert-sexp-to-ical): Enumerate evaluated sexp
Glenn Morris's avatar
Glenn Morris committed
800
	entries.  Return (list of) cons cells.
801

802 803 804 805 806
2014-08-09  Juri Linkov  <juri@jurta.org>

	* vc/vc-annotate.el (vc-annotate-background-mode): Add :set
	to reevaluate `vc-annotate-color-map'.  (Bug#18189)

807 808 809 810 811 812 813
2014-08-09  Alan Mackenzie  <acm@muc.de>

	* progmodes/cc-fonts.el (c-font-lock-declarators): Remove check
	for top-level that can cause unacceptable slow-down in scrolling.
	See email Subject: Huge {...} blocks in C/C++ again, from Dmitry
	Antipov from 2013-10-14 in emacs-devel.

814 815 816 817 818 819
2014-08-08  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>

	* ibuffer.el (ibuffer-mode-map): Use toggle button for
	`ibuffer-auto-mode' menu entry.
	(ibuffer-mode-hook): Add `ibuffer-auto-mode' customization option.

820 821
2014-08-08  Matthias Meulien  <orontee@gmail.com>

822 823
	* progmodes/prog-mode.el (prog-mode-hook): Make customizable.
	(Bug#16394)
824

825 826 827 828 829
2014-08-07  Martin Rudalics  <rudalics@gmx.at>

	* window.el (window--min-size-1): Explicitly set WINDOW arg in
	calls of window-min-pixel-height and window-min-pixel-width.

830 831 832 833 834 835 836 837 838 839 840 841
2014-08-07  Reuben Thomas  <rrt@sc3d.org>

	* progmodes/ada-mode.el:
	* net/tramp.el (tramp-handle-file-symlink-p):
	* net/tramp-ftp.el (tramp-ftp-file-name-handler): Remove a comment
	about VMS, which we no longer support.
	* progmodes/ada-xref.el (ada-xref-current): Remove mention of VMS,
	and fix a FIXME, using convert-standard-filename in place of
	removed ada-convert-file-name.

2014-08-07  Eli Zaretskii  <eliz@gnu.org>

Glenn Morris's avatar
Glenn Morris committed
842
	* files.el (auto-mode-alist): Remove support for VMS from a pattern.
843

844 845 846
2014-08-07  Reuben Thomas  <rrt@sc3d.org>

	Refer to MS-DOS using the same name everywhere.
Glenn Morris's avatar
Glenn Morris committed
847 848
	* arc-mode.el, files.el, frame.el: ``MS-DOG'', ``MSDOG'' and
	``msdog'' become ``MS-DOS''.
849

850 851 852 853 854
2014-08-07  Michael Albinus  <michael.albinus@gmx.de>

	* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
	Use cached "remote-copy-args" value, if available.  (Bug#18199)

855 856
2014-08-07  Leo Liu  <sdl.web@gmail.com>

857 858
	* help.el (temp-buffer-setup-hook,temp-buffer-show-hook):
	Revert change on 2014-03-22.
859

860 861
2014-08-06  Ulf Jasper  <ulf.jasper@web.de>

Glenn Morris's avatar
Glenn Morris committed
862
	* calendar/icalendar.el (icalendar--diarytime-to-isotime)
863 864 865 866
	(icalendar--convert-ordinary-to-ical): Allow for missing minutes
	(Bug#13750).


867 868
2014-08-05  Lars Magne Ingebrigtsen  <larsi@gnus.org>

869
	* image-mode.el (image-toggle-display-image): Always rescale images
870 871
	to not be bigger than the current window.

872 873 874 875 876 877
2014-08-05  Eric Brown  <brown@fastmail.fm>  (tiny change)

	* net/eww.el (eww-bookmarks-directory): New variable.
	(eww-write-bookmarks): Use it.
	(eww-read-bookmarks): Ditto.

878 879 880 881
2014-08-05  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* net/shr.el (shr-copy-url): Also copy the image URL.

882 883 884 885 886
2014-08-05  Michael Albinus  <michael.albinus@gmx.de>

	* net/tramp-cache.el (tramp-flush-file-function): Suppress function
	also for Tramp working buffers.

887 888 889 890
2014-08-04  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	* progmodes/python.el: Fix completions inside (i)pdb.
	(python-shell-completion-pdb-string-code): Make obsolete.
891 892
	(python-shell-completion-get-completions):
	Use python-shell-completion-string-code resending setup code
893 894
	continuously for (i)pdb.

895 896 897 898 899 900
2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>

	* rect.el (rectangle--default-line-number-format): Rename
	from misspelled rectange--default-line-number-format (Bug#18045).
	All uses changed.

Paul Eggert's avatar
Paul Eggert committed
901 902 903 904 905 906 907 908
2014-08-03  Paul Eggert  <eggert@cs.ucla.edu>

	Don't mishandle year-9999 dates (Bug#18176).
	* calendar/parse-time.el (parse-time-rules):
	Allow years up to most-positive-fixnum.
	* calendar/time-date.el (date-to-time):
	Pass "Specified time is not representable" errors through.

909 910 911 912 913 914 915 916
2014-08-02  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	* progmodes/python.el: Completion code cleanups.
	(python-shell-completion-get-completions): Detect and send import
	statements directly to completion function.
	(python-shell-completion-at-point): Simplify prompt calculation
	and import vs input completion logic.

917 918
2014-08-02  Alan Mackenzie  <acm@muc.de>

919 920
	Fix confusion in C++ file caused by comma in "= {1,2},".
	Bug #17756.
921 922 923 924 925 926 927 928
	* progmodes/cc-engine.el (c-beginning-of-statement-1): In checking
	for a statement boundary marked by "}", check there's no "="
	before the "{".
	(c-guess-basic-syntax CASE 9B): Call c-beginning-of-statement with
	non-nil `comma-delim' argument.
	* progmodes/cc-fonts.el (c-font-lock-declarators): Parse an
	initializer expression more accurately.

929 930 931 932 933 934
	Correct loop termination condition in c-syntactic-skip-backward.
	* progmodes/cc-engine.el (c-syntactic-skip-backward): Correct for
	the situation where, after moving back out of a literal,
	skip-chars-backward doesn't move further, yet checks have still to
	be done.

Glenn Morris's avatar
Glenn Morris committed
935
2014-08-01  Eli Zaretskii  <eliz@gnu.org>
936 937 938 939

	* tutorial.el (tutorial--display-changes): Accept punctuation
	characters before the key binding.  (Bug#18146)

940 941 942 943 944 945 946
2014-07-31  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	* progmodes/python.el: Shell output capture enhancements.
	(python-shell-accept-process-output): New function.
	(inferior-python-mode)
	(python-shell-send-setup-code): Use it.

Glenn Morris's avatar
Glenn Morris committed
947
2014-07-30  Christophe Deleuze  <christophe.deleuze@free.fr>  (tiny change)
948

949 950
	* calendar/icalendar.el (icalendar--decode-isodatetime):
	Use actual current-time-zone when converting to local time. (Bug#15408)
951

952 953 954 955 956
2014-07-29  Martin Rudalics  <rudalics@gmx.at>

	* window.el (window--state-put-2): Handle horizontal scroll
	bars, if present.

Rüdiger Sonderfeld's avatar
Rüdiger Sonderfeld committed
957 958 959 960 961 962
2014-07-29  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>

	* menu-bar.el (menu-bar-update-buffers): Update item list format
	in `buffers-menu' to confirm with changes to `get_keyelt'
	(r117463).  (Bug#18016)

963 964 965 966 967
2014-07-28  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	* progmodes/python.el (inferior-python-mode): Make input prompts
	read-only.

968 969 970 971 972 973 974 975
2014-07-28  Emilio C. Lopes  <eclig@gmx.net>

	* net/tramp-sh.el (tramp-get-remote-python): Also search for
	executables named "python2" or "python3".
	(tramp-get-remote-uid-with-python): Use parentheses around
	arguments to `print' to make it compatible with Python 3.
	(tramp-get-remote-gid-with-python): Ditto.  (Bug#18118)

976
2014-07-28  Eli Zaretskii  <eliz@gnu.org>
977 978 979 980

	* window.el (window--pixel-to-total): Use FRAME's root window, not
	that of the selected frame.  (Bug#18112, Bug#16674)

981
2014-07-28  Andreas Schwab  <schwab@linux-m68k.org>
Andreas Schwab's avatar
Andreas Schwab committed
982 983 984 985

	* textmodes/tex-mode.el (tex-font-lock-verb): Doc fix.
	(Bug#18117)

986
2014-07-28  Fabián Ezequiel Gallina  <fgallina@gnu.org>
987 988 989

	* progmodes/python.el (inferior-python-mode): Doc fix.

990
2014-07-28  Stephen Berman  <stephen.berman@gmx.net>
991 992 993 994

	* calendar/todo-mode.el (todo-edit-item--next-key): If next key is
	not a character, ignore it instead of raising an error.

995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007
	* calendar/todo-mode.el: Fix handling of marked items and make
	minor code improvements.
	(todo-edit-item): If there are marked items, ensure user can only
	invoke editing commands that work with marked items.
	(todo-edit-item--text): When there are marked items, make it a
	noop if invoked with point not on an item; otherwise, ensure it
	applies only to item at point.
	(todo-item-undone): If there are marked not-done items, return
	point to its original position before signaling user error.
	(todo--user-error-if-marked-done-item): New function.
	(todo-edit-item--header, todo-edit-item--diary-inclusion)
	(todo-item-done): Use it.

1008
2014-07-28  Glenn Morris  <rgm@gnu.org>
1009

1010 1011 1012
	* files.el (toggle-read-only): Re-add basic doc-string.
	* vc/vc-hooks.el (vc-toggle-read-only): Tweak obsolescence mesage.

1013 1014 1015 1016
	* progmodes/prolog.el (prolog-mode-keybindings-edit):
	Replace missing `switch-to-prolog' with `run-prolog'.
	(switch-to-prolog): Define as (obsolete) alias, as in 23.4.

1017
2014-07-28  Stephen Berman  <stephen.berman@gmx.net>
1018 1019 1020 1021

	* calendar/todo-mode.el (todo-set-top-priorities): Fix overwriting
	of file-wide setting when changing category-wide setting.

1022 1023 1024 1025 1026
2014-07-28  Stephen Berman  <stephen.berman@gmx.net>

	* doc-view.el (doc-view-open-text): Don't require that the
	document is saved in a file (e.g., email attachment).

1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039
2014-07-28  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	Parse completion input in a iPython friendly way.  (Bug#18084)
	* progmodes/python.el
	(python-shell-completion-at-point): Rename from
	python-shell-completion-complete-at-point.
	(inferior-python-mode): Use it.
	(python-completion-at-point): Rename from
	python-completion-complete-at-point.  Parse input up to first
	backward occurrence of whitespace, open-paren, close-paren or
	string delimiter.
	(python-mode): Use it.

1040 1041 1042 1043 1044 1045
2014-07-28  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	Prevent Python process shell buffer to pop twice.
	* progmodes/python.el (python-shell-switch-to-shell): Do not call
	pop-to-buffer.

1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057
2014-07-28  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	* progmodes/python.el
	(python-shell-with-shell-buffer): New macro.
	(python-shell-font-lock-get-or-create-buffer)
	(python-shell-font-lock-kill-buffer)
	(python-shell-font-lock-with-font-lock-buffer)
	(python-shell-font-lock-cleanup-buffer)
	(python-shell-font-lock-toggle): Use it.
	(python-shell-font-lock-turn-on)
	(python-shell-font-lock-turn-off): Use it.  Make command.

1058 1059 1060
2014-07-28  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	Grab all Python process output before inferior-python-mode hooks.
1061 1062
	* progmodes/python.el (inferior-python-mode):
	Call accept-process-output and sit-for to ensure all output for process
1063
	has been received before running hooks.
1064 1065
	(python-shell-internal-get-or-create-process):
	Cleanup accept-process-output and sit-for calls.
1066

1067 1068 1069
2014-07-28  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	More robust shell startup and code setup.
1070 1071
	* progmodes/python.el (python-shell-make-comint):
	Remove accept-process-output call.
1072 1073 1074 1075 1076 1077
	(python-shell-get-buffer): Return current buffer if major-mode is
	inferior-python-mode.
	(python-shell-get-or-create-process): Use it.
	(python-shell-send-setup-code): Send all setup code in one string,
	output success message and accept-process-output.

1078 1079
2014-07-27  Eli Zaretskii  <eliz@gnu.org>

1080 1081
	* scroll-bar.el (scroll-bar-toolkit-horizontal-scroll):
	Add rudimentary support for bidirectional text.
1082

1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118
2014-07-27  Martin Rudalics  <rudalics@gmx.at>

	* frame.el (frame-notice-user-settings): Rewrite using
	frame-initial-frame-tool-bar-height.
	* menu-bar.el (menu-bar-horizontal-scroll-bar)
	(menu-bar-no-horizontal-scroll-bar): New functions.
	(menu-bar-showhide-scroll-bar-menu): Add bindings for horizontal
	scroll bars.
	* scroll-bar.el (scroll-bar-lines)
	(set-horizontal-scroll-bar-mode)
	(get-horizontal-scroll-bar-mode, horizontal-scroll-bar-mode)
	(scroll-bar-horizontal-drag-1, scroll-bar-horizontal-drag)
	(scroll-bar-toolkit-horizontal-scroll): New functions.
	(horizontal-scroll-bar-mode)
	(previous-horizontal-scroll-bar-mode)
	(horizontal-scroll-bar-mode-explicit): New variables.
	(horizontal-scroll-bar-mode): New option.
	(toggle-horizontal-scroll-bar): Do something.
	(top-level): Bind horizontal-scroll-bar mouse-1.
	* startup.el (tool-bar-originally-present): Remove variable.
	(command-line): Don't set tool-bar-originally-present.
	* window.el (window-min-height): Update doc-string.
	(window--dump-frame): Dump horizontal scroll bar values.
	(window--min-size-1): Handle minibuffer window separately.
	Count in margins and horizontal scroll bar.  Return safe value
	iff IGNORE equals 'safe.
	(frame-windows-min-size): New function (used by frame resizing
	routines).
	(fit-frame-to-buffer, fit-window-to-buffer): Count in horizontal
	scroll bars.
	(window--sanitize-window-sizes): New function.
	(window-split-min-size): Remove.
	(split-window): Count divider-width.  Don't use
	`window-split-min-size' any more.  Reword error messages.
	Sanitize windows sizes after splitting.

Thien-Thi Nguyen's avatar
Thien-Thi Nguyen committed
1119 1120 1121 1122 1123 1124 1125 1126 1127
2014-07-27  Thien-Thi Nguyen  <ttn@gnu.org>

	Use `defvar-local' more.
	* progmodes/hideshow.el
	(hs-c-start-regexp, hs-block-start-regexp)
	(hs-block-start-mdata-select, hs-block-end-regexp)
	(hs-forward-sexp-func, hs-adjust-block-beginning): ...here;
	remove corresponding `make-variable-buffer-local' top-level calls.

1128 1129 1130 1131 1132 1133 1134 1135 1136
2014-07-27  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	Cleanup error signals.  (Bug#18067)
	* progmodes/python.el
	(python-indent-shift-left): Use user-error instead.
	(python-shell-prompt-detect): Use lwarn with python group.
	(python-completion-complete-at-point)
	(python-eldoc--get-doc-at-point): Don't signal error.

1137 1138 1139 1140 1141 1142 1143 1144
2014-07-27  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	Support for packages in Python shell.  (Bug#13570)
	* progmodes/python.el (python-shell--package-depth): New var.
	(python-shell-package-enable): New command.
	(python-util-list-directories, python-util-list-files)
	(python-util-list-packages): New functions.

1145 1146 1147 1148 1149 1150 1151 1152 1153
2014-07-27  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	Faster comint output.  (Bug#16875)
	* progmodes/python.el:
	(python-comint-output-filter-function): Make obsolete.
	(python-comint-postoutput-scroll-to-bottom): New function.
	(inferior-python-mode): Set comint-output-filter-functions to a
	minimum.

1154 1155 1156 1157 1158
2014-07-27  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	* progmodes/python.el (python-shell-font-lock-post-command-hook):
	Safeguard current point and undo history.

1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182
2014-07-26  Fabián Ezequiel Gallina  <fgallina@gnu.org>

	Robust shell syntax highlighting.  (Bug#18084, Bug#16875)
	* progmodes/python.el:
	(python-shell-prompt-input-regexps): Add iPython block prompt.
	(python-shell-output-syntax-table): Delete var.
	(python-shell-font-lock-with-font-lock-buffer): New macro.
	(python-shell-font-lock-get-or-create-buffer)
	(python-shell-font-lock-kill-buffer)
	(python-shell-font-lock-cleanup-buffer)
	(python-shell-font-lock-post-command-hook)
	(python-shell-font-lock-turn-off): New functions.
	(python-shell-font-lock-turn-on): New function.
	(inferior-python-mode): Use it.
	(python-shell-font-lock-toggle): New command.
	(python-shell-font-lock-enable): Rename from
	python-shell-enable-font-lock.
	(run-python-internal): Use it.
	(python-shell-font-lock-comint-output-filter-function): New function.
	(python-shell-comint-end-of-output-p): New function.
	(python-shell-output-filter): Use it.
	(python-util-comint-last-prompt): New function.
	(python-util-text-properties-replace-name): New function.

1183 1184 1185 1186 1187 1188
2014-07-25  Glenn Morris  <rgm@gnu.org>

	* vc/ediff-init.el (ediff-toggle-read-only-function):
	* vc/ediff-util.el (ediff-toggle-read-only):
	Replace obsolete toggle-read-only with read-only-mode.

1189 1190 1191 1192 1193
2014-07-24  Michael Albinus  <michael.albinus@gmx.de>

	* net/tramp-cache.el (tramp-flush-file-function): Wrap the code
	with `save-match-data'.  (Bug#18095)

1194 1195 1196 1197 1198 1199
2014-07-21  Vincent Belaïche  <vincentb1@users.sourceforge.net>

	* ses.el (ses-truncate-cell): Use cl-progv instead of eval in
	order to ensure that row and col are lexically bound inside the
	evaluated sexp.

1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213
2014-07-21  Glenn Morris  <rgm@gnu.org>

	* progmodes/hideif.el (hide-ifdef-mode-submap):
	Also substitute read-only-mode.
	* bindings.el (mode-line-toggle-read-only):
	* bs.el (bs-toggle-readonly):
	* buff-menu.el (Buffer-menu-toggle-read-only):
	* dired.el (dired-toggle-read-only):
	* files.el (view-read-only, find-file-read-only)
	(find-file-read-only-other-window)
	(find-file-read-only-other-frame):
	* progmodes/hideif.el (hide-ifdef-toggle-outside-read-only):
	Doc fixes re toggle-read-only.

1214
2014-07-21  Fabián Ezequiel Gallina  <fgallina@gnu.org>
1215 1216 1217 1218 1219

	* progmodes/python.el: Add comment about pipe buffering and
	solutions for missing/delayed output in inferior Python shells.
	(Bug#17304)

1220 1221 1222
	* progmodes/python.el (python-mode): Don't set
	mode-require-final-newline.  (Bug#17990)

1223 1224 1225 1226 1227 1228 1229 1230 1231 1232
	Make python.el work with IPython automatically.  (Bug#15510)
	* progmodes/python.el:
	(python-shell-completion-setup-code): New value supporting iPython.
	(python-shell-completion-string-code): New value supporting iPython.
	(python-shell-completion-get-completions): Use them.
	(python-shell-completion-module-string-code): Make obsolete.
	(python-shell-prompt-input-regexps)
	(python-shell-prompt-output-regexps): Add safeguard for ipdb.
	(python-shell-output-filter): Fix comment typo.

1233
	Fix Python shell prompts detection for remote hosts.
1234 1235
	* progmodes/python.el (python-shell-prompt-detect):
	Replace call-process with process-file and make it more robust.
1236

1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263
	Autodetect Python shell prompts.  (Bug#17370)
	* progmodes/python.el:
	(python-shell-interpreter-interactive-arg)
	(python-shell-prompt-detect-enabled)
	(python-shell-prompt-detect-failure-warning)
	(python-shell-prompt-input-regexps)
	(python-shell-prompt-output-regexps): New vars.
	(python-shell-prompt-calculated-input-regexp)
	(python-shell-prompt-calculated-output-regexp): New vars.
	(python-shell-get-process-name)
	(python-shell-internal-get-process-name)
	(python-shell-output-filter)
	(python-shell-completion-get-completions): Use them.
	(python-shell-prompt-detect)
	(python-shell-prompt-validate-regexps): New functions.
	(python-shell-prompt-set-calculated-regexps): New function.
	(inferior-python-mode): Use it.  Also honor overriden
	python-shell-interpreter and python-shell-interpreter-args.
	(python-shell-make-comint): Honor overriden
	python-shell-interpreter and python-shell-interpreter-args.
	(python-shell-get-or-create-process): Make it testable by allowing
	to call run-python non-interactively.
	(python-util-valid-regexp-p): New function.
	(python-shell-prompt-regexp, python-shell-prompt-block-regexp)
	(python-shell-prompt-output-regexp)
	(python-shell-prompt-pdb-regexp): Use it as defcustom :safe.

1264 1265
2014-07-21  Stefan Monnier  <monnier@iro.umontreal.ca>

1266 1267 1268 1269
	* emacs-lisp/smie.el (smie-config--guess-1): Split from
	smie-config--guess.
	(smie-config--guess): Use it.

1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282
	* emacs-lisp/edebug.el: Use nadvice.
	(edebug-original-read): Remove.
	(edebug--read): Rename from edebug-read and add `orig' arg.
	(edebug-uninstall-read-eval-functions)
	(edebug-install-read-eval-functions): Use nadvice.
	(edebug-read-sexp, edebug-read-storing-offsets, edebug-read-symbol)
	(edebug-read-and-maybe-wrap-form1, edebug-instrument-callee)
	(edebug-read-string, edebug-read-function): Use just `read'.
	(edebug-original-debug-on-entry): Remove.
	(edebug--debug-on-entry): Rename from edebug-debug-on-entry and add
	`orig' arg.
	(debug-on-entry): Override with nadvice.

1283 1284 1285
	* mouse.el (tear-off-window): Rename from mouse-tear-off-window since
	it also makes sense to bind it to a non-mouse event.

1286 1287
	* vc/vc-bzr.el (vc-bzr-shelve): Make it operate on fileset.

1288 1289
2014-07-19  Stefan Monnier  <monnier@iro.umontreal.ca>

1290 1291 1292
	* xt-mouse.el (xterm-mouse-event): Don't assume last-click is non-nil
	(bug#18015).

1293 1294 1295
	* rect.el (rectangle--string-preview): Don't assume there
	a non-nil default (bug#17984).

1296 1297 1298 1299 1300
2014-07-16  Glenn Morris  <rgm@gnu.org>

	* desktop.el (after-init-hook): Disable startup frame restoration
	in non-graphical situations.  (Bug#17693)

1301 1302 1303
	* vc/vc-dispatcher.el (vc-log-edit): Do set up the log buffer
	if it was "empty", or used for a different set of files.  (Bug#17884)

1304
2014-07-16  Eli Zaretskii  <eliz@gnu.org>
1305 1306 1307 1308 1309

	* bindings.el (mode-line-remote): If default-directory is not a
	string, don't call file-remote-p on it; instead state in the
	help-echo that it is nil.  (Bug#17986)

1310 1311 1312 1313 1314 1315 1316 1317
2014-07-14  Daniel Colascione  <dancol@dancol.org>

	* progmodes/cc-langs.el: Change comments from `cl-macroexpand-all'
	to `macroexpand-all'

	* progmodes/cc-defs.el (c-lang-defconst-eval-immediately):
	Use `macroexpand-all' instead of `cl-macroexpand-all'.

1318 1319 1320 1321 1322 1323
2014-07-12  Paul Eggert  <eggert@cs.ucla.edu>

	Fix bug: C-x v v discarded existing log message (Bug#17884).
	* vc/vc-dispatcher.el (vc-log-edit):
	Don't clobber an already-existing log message.

1324
2014-07-12  Glenn Morris  <rgm@gnu.org>
1325 1326 1327 1328

	* vc/log-edit.el (log-edit-changelog-entries):
	Check for a visited-but-never-saved ChangeLog.

1329
2014-07-12  Stefan Monnier  <monnier@iro.umontreal.ca>
1330

1331 1332 1333
	* vc/log-edit.el (log-edit-changelog-entries): Don't both visiting
	a non-existing file (bug#17970).