]> code.delx.au - gnu-emacs/blob - ChangeLog.2
Merge emacs-25 into master (using imerge)
[gnu-emacs] / ChangeLog.2
1 2015-12-27 Lars Ingebrigtsen <larsi@gnus.org>
2
3 * shr.el (shr-descend): Allow using lambdas in external functions.
4
5 2015-12-25 Stefan Monnier <monnier@iro.umontreal.ca>
6
7 * admin/gitmerge.el: Tweaks that seemed necessary
8
9 * admin/gitmerge.el (gitmerge-skip-regexp): Remove "sync".
10 (gitmerge-maybe-resume): Provide explicit empty commit message.
11
12 2015-12-25 Łukasz Stelmach <stlman@poczta.fm> (tiny change)
13
14 Use a different port for TLS erc
15
16 * lisp/erc/erc.el (erc-default-port-tls): New variable
17 (bug#19497).
18 * lisp/erc/erc.el (erc-tls): Use it.
19
20 2015-12-25 Alain Schneble <a.s@realize.ch>
21
22 Make relative URL parsing and resolution consistent with RFC 3986 (bug#22044)
23
24 * test/lisp/url/url-parse-tests.el: Add tests covering url-generic-parse-url.
25 * test/lisp/url/url-expand-tests.el: Add tests covering url-expand-file-name.
26 * lisp/url/url-parse.el (url-generic-parse-url): Keep empty fragment
27 information in URL-struct.
28 * lisp/url/url-parse.el (url-path-and-query): Do not artificially turn empty
29 path and query into nil path and query, respectively.
30 * lisp/url/url-expand.el (url-expander-remove-relative-links): Do not turn
31 empty path into an absolute ("/") path.
32 * lisp/url/url-expand.el (url-expand-file-name): Properly resolve
33 fragment-only URIs. Do not just return them unchanged.
34 * lisp/url/url-expand.el (url-default-expander): An empty path in the relative
35 reference URI should not drop the last segment.
36
37 2015-12-25 Alain Schneble <a.s@realize.ch>
38
39 Make relative URL parsing and resolution consistent with RFC 3986 (bug#22044)
40
41 * test/lisp/url/url-parse-tests.el: Add tests covering url-generic-parse-url.
42 * test/lisp/url/url-expand-tests.el: Add tests covering url-expand-file-name.
43 * lisp/url/url-parse.el (url-generic-parse-url): Keep empty fragment
44 information in URL-struct.
45 * lisp/url/url-parse.el (url-path-and-query): Do not artificially turn empty
46 path and query into nil path and query, respectively.
47 * lisp/url/url-expand.el (url-expander-remove-relative-links): Do not turn
48 empty path into an absolute ("/") path.
49 * lisp/url/url-expand.el (url-expand-file-name): Properly resolve
50 fragment-only URIs. Do not just return them unchanged.
51 * lisp/url/url-expand.el (url-default-expander): An empty path in the relative
52 reference URI should not drop the last segment.
53
54 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
55
56 Let url use default file modes when copying files
57
58 * lisp/url/url-handlers.el (url-copy-file): Use default file
59 modes when copying files (bug#11400).
60
61 2015-12-25 Devon Sean McCullough <Emacs-Hacker2012@jovi.net>
62
63 Doc fix for url-http
64
65 * lisp/url/url-http.el (url-http): Document better return values
66 (bug#13187) (tiny change)
67
68 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
69
70 * eww.el (eww-display-html): Support <button> tags (bug#20485).
71
72 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
73
74 Made ffap-url-p a defun instead of a defsubst
75
76 * lisp/ffap.el (ffap-url-p): Change from defsusbt to defun,
77 since there doesn't seem to be much of a reason for it to be a
78 defsubst (bug#18203).
79
80 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
81
82 Add a command to view files in the browser to dired
83
84 * lisp/dired.el (dired-mode-map): Add the `W' command
85 (bug#18810).
86
87 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
88
89 Allow http://user:pass@foo/ URLs again
90
91 * lisp/url/url-auth.el (url-basic-auth): Allow explicit
92 user/passwords in URLs (bug#19046).
93
94 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
95
96 * eww.el (eww-mode-map): Fix command name of eww-toggle-colors.
97
98 2015-12-25 Samer Masterson <samer@samertm.com>
99
100 Autoload url-insert-buffer-contents
101
102 * lisp/url/url-handlers.el: Add autoload cookie so that
103 `package-list-packages' doesn't bug out (bug#21927) (tiny change)
104
105 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
106
107 Allow toggling colors in eww
108
109 * doc/misc/eww.texi (Basics): Mention "C".
110
111 * lisp/net/eww.el (eww-toggle-colors): New command and keystroke.
112
113 * lisp/net/shr.el (shr-use-colors): New variable.
114 (shr-colorize-region): Use it.
115
116 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
117
118 Follow meta refresh tags in eww
119
120 * eww.el (eww-tag-meta): Follow meta refresh tags (bug#22234).
121
122 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
123
124 More eww file name coding fixes
125
126 * eww.el (eww-decode-url-file-name): Use the base coding
127 system to check for encodability.
128
129 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
130
131 Always save eww history
132
133 * eww.el (eww-setup-buffer): Always save history, even when
134 called from outside the eww buffer (bug#19638).
135
136 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
137
138 Default web pages to right-to-left
139
140 * eww.el (eww-mode): Most web pages are left-to-right, so make
141 that the default (bug#19801).
142
143 * shr.el (shr-tag-html): Respect "dir" attributes
144 (left-to-right, right-to-left).
145
146 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
147
148 Make toggling checkboxes work again
149
150 * eww.el (eww-update-field): Make toggling checkboxes work
151 again (bug#21881).
152
153 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
154
155 Don't store cookies with empty names
156
157 * lisp/url/url-cookie.el (url-cookie-store): Refuse to store
158 cookies with empty names (bug#21936).
159
160 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
161
162 Stop rendering HTML before specdlr exhaustion
163
164 Fixes: 22117
165
166 * shr.el (shr-descend): Stop rendering before we run out of
167 specpdl room (bug#22117).
168
169 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
170
171 Use cl-reduce, not reduce.
172
173 2015-12-25 Lars Ingebrigtsen <larsi@gnus.org>
174
175 Allow several <tbody> tags in shr
176
177 * shr.el (shr-table-body): New function to find the real body
178 of a table.
179 (shr-tag-table): Use it to render several <tbody> tags in a
180 table (bug#22170).
181
182 2015-12-24 Lars Ingebrigtsen <larsi@gnus.org>
183
184 Make prettier unique file names in eww
185
186 (eww-make-unique-file-name): Make unique file names by making
187 files like foo(2).jpg instead of foo(1)(2).jpg.
188
189 2015-12-24 Lars Ingebrigtsen <larsi@gnus.org>
190
191 Decode hex-encoded URLs before using them as file names
192
193 * eww.el (eww-decode-url-file-name): New function.
194 (eww-download-callback): Use it to decode file names before
195 saving them.
196
197 2015-12-24 Ashish SHUKLA <ashish.is@lostca.se>
198
199 Add FreeBSD cert bundle
200
201 * doc/misc/emacs-gnutls.texi (Help For Users): Document
202 FreeBSD bundle.
203
204 * lisp/net/gnutls.el (gnutls-trustfiles): Add FreeBSD cert bundle.
205
206 2015-12-24 Lars Ingebrigtsen <larsi@gnus.org>
207
208 Allow overriding shr functions from eww
209
210 * eww.el (eww-display-html): Allow overriding elements in
211 `shr-external-rendering-functions'.
212
213 2015-12-24 Lars Ingebrigtsen <larsi@gnus.org>
214
215 Ignore invalid SVG images
216
217 * shr.el (shr-tag-svg): Ignore SVG images that have no width
218 or height, because these can't be displayed by ImageMagick,
219 anyway.
220
221 2015-12-24 Lars Ingebrigtsen <larsi@gnus.org>
222
223 shr table rendering fix
224
225 * shr.el (shr-tag-table): Allow rendering body-less tables
226 that have headers.
227
228 2015-12-22 Sam Steingold <sds@gnu.org>
229
230 clipboard should still work even if interprogram-* is disabled
231
232 (clipboard-yank): When `interprogram-cut-function' is nil,
233 bind it to `gui-selection-value' - the default value.
234 (clipboard-kill-region, clipboard-kill-ring-save): When
235 `interprogram-paste-function' is nil, bind it to `gui-select-text' -
236 the default value.
237
238 2015-12-18 Phillip Lord <phillip.lord@russet.org.uk>
239
240 Fix bootstrap issue with dired-loaddefs
241
242 * lisp/dired.el: Autoloads for secondary files loaded optionally.
243
244 2015-12-17 Phillip Lord <phillip.lord@russet.org.uk>
245
246 dired generate autoloads to non-versioned file.
247
248 * lisp/dired.el: Remove autoloads.
249 * lisp/Makefile.in: Add dired to autogenel.
250 * lisp/dired-aux.el,lisp/dired-x.el: Update file local.
251 * test/lisp/dired-tests.el: Add new test.
252
253 2015-12-17 Phillip Lord <phillip.lord@russet.org.uk>
254
255 eieio generate autoloads to non-versioned file.
256
257 * lisp/Makefile.in: eieio-loaddefs add to autogenel.
258 * lisp/emacs-lisp/eieio.el,lisp/emacs-lisp/eieio-core.el:
259 Remove autoloads.
260 * lisp/emacs-lisp/eieio-compat.el,lisp/emacs-lisp/eieio-custom.el,
261 lisp/emacs-lisp/eieio-opt.el: Update file local.
262 * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: New test.
263
264 2015-12-17 Phillip Lord <phillip.lord@russet.org.uk>
265
266 htmlfontify generate autoload to non-versioned file.
267
268 * lisp/Makefile.in: Add htmlfontity-loaddefs to autogenel.
269 * lisp/hfy-cmap.el: Update file local.
270 * lisp/htmlfontify.el: Remove autoloads, add require.
271 * test/lisp/htmlfontify-tests.el: Test autoload functionality.
272
273 2015-12-17 Phillip Lord <phillip.lord@russet.org.uk>
274
275 ibuffer generate autoloads to non-versioned file.
276
277 * lisp/Makefile.in: Add ibuffer-loaddefs to autogenel.
278 * lisp/ibuf-ext.el: Update file local.
279 * lisp/ibuffer.el: Remove autoloads and add a require.
280 * test/lisp/ibuffer-tests.el: Test that autoload is working.
281
282 2015-12-17 Phillip Lord <phillip.lord@russet.org.uk>
283
284 rmail generate autoloads to non-versioned file.
285
286 * lisp/Makefile.in: Add rmail-loaddefs.el to autogenel.
287 * lisp/mail/rmail.el: Remove autoloads, add require.
288 * lisp/mail/rmailedit.el,lisp/mail/rmailkwd.el,
289 lisp/mail/rmailmm.el,lisp/mail/rmailmsc.el,
290 lisp/mail/rmailsort.el,lisp/mail/rmailsum.el,
291 lisp/mail/undigest.el: Update file-local.
292 * test/lisp/mail/rmail-tests.el:
293
294 2015-12-17 Phillip Lord <phillip.lord@russet.org.uk>
295
296 Add autoload-force target.
297
298 * lisp/Makefile.in (autoload-force): New target.
299
300 2015-12-17 Phillip Lord <phillip.lord@russet.org.uk>
301
302 ps-print generate autoloads to non versioned file.
303
304 * lisp/Makefile.in: Add ps-print-loaddefs.el to autogen list.
305 * lisp/ps-print.el: Remove autoloads.
306 * lisp/ps-mule.el: Update file-local.
307 * test/lisp/ps-print-tests.el: Test autoload functionality.
308
309 2015-12-17 Phillip Lord <phillip.lord@russet.org.uk>
310
311 reftex generate autoloads to non versioned file.
312
313 * lisp/Makefile.in: Add reftex-loaddefs to autogen files
314 * lisp/textmodes/reftex.el: Remove autoloads.
315 * lisp/textmodes/reftex-auc.el,lisp/textmodes/reftex-cite.el,
316 lisp/textmodes/reftex-dcr.el,lisp/textmodes/reftex-global.el,
317 lisp/textmodes/reftex-index.el,lisp/textmodes/reftex-parse.el,
318 lisp/textmodes/reftex-ref.el,lisp/textmodes/reftex-sel.el,
319 lisp/textmodes/reftex-toc.el: Update autoload file-local.
320 * test/lisp/textmodes/reftex-tests.el: Add test of an autoloaded
321 function.
322
323 2015-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
324
325 * lisp/calculator.el (calculator-define-key): Undo last change
326
327 Make map argument mandatory instead (bug#22106).
328 (calculator-add-operators): Pass the argument that's not optional any more.
329
330 2015-12-03 Glenn Morris <rgm@gnu.org>
331
332 * Makefile.in: Avoid duplication.
333
334 (have-tests): New rule.
335 (check, check-maybe): Use it.
336
337 2015-12-02 Phillip Lord <phillip.lord@russet.org.uk>
338
339 make check unconditional, check-maybe top-level.
340
341 * Makefile.in: Add check-maybe target.
342 * test/Makefile.in: Restore unconditional behaviour to make check.
343
344 2015-12-01 Phillip Lord <phillip.lord@russet.org.uk>
345
346 Tests now support out-of-source-build.
347
348 * tests/Makefile.in,test/make-test-deps.emacs-lisp: Remove assumptions
349 about current working directory.
350
351 2015-12-01 Artur Malabarba <bruce.connor.am@gmail.com>
352
353 * lisp/emacs-lisp/let-alist.el: Now an Elpa :core package
354
355 2015-11-30 Phillip Lord <phillip.lord@russet.org.uk>
356
357 Improve documentation and clean up.
358
359 * test/Makefile.in: Improve documentation, use EMACS variable
360 correctly, and clean up makefile rules.
361
362 2015-11-30 Phillip Lord <phillip.lord@russet.org.uk>
363
364 Update file headers for name change.
365
366 * (test/src/decompress-tests.el, test/src/alloc-tests.el): Update headers.
367
368 2015-11-30 Phillip Lord <phillip.lord@russet.org.uk>
369
370 Test files renamed to new scheme.
371
372 * (finalizer-tests.el): Now renamed alloc-tests.el
373 * (zlib-tests.el): Now renamed decompress-tests.el.
374
375 2015-11-30 Phillip Lord <phillip.lord@russet.org.uk>
376
377 Tests now depend on source files
378
379 * test/Makefile.in: Include dependences from tests to source files.
380 * test/make-test-deps.emacs-lisp: New file
381 * .gitignore: Ignore generated make include file
382
383 2015-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
384
385 * lisp/progmodes/which-func.el: Improve disabling the mode
386
387 Use lexical-binding.
388 (which-func-modes, which-func-non-auto-modes, which-func-maxout)
389 (which-func, which-func-format): Remove redundant :group arg.
390 (which-func-try-to-enable): New function.
391 (which-func-ff-hook, which-function-mode): Use it.
392 (mode-line-misc-info): Add ourselves here instead of in bindings.el.
393 * lisp/bindings.el (mode-line-misc-info): Remove which-func-mode entry.
394
395 2015-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
396
397 * lisp/calculator.el (calculator-define-key): Silence warning
398
399 ...about unknown calculator-mode-map.
400
401 2015-11-29 Eli Barzilay <eli@barzilay.org>
402
403 * lisp/calculator.el: more improvements and bugfixes.
404
405 - Mark `calculator-paste-decimals' as obsolete. (It wasn't having an
406 effect anyway.)
407
408 - Simplify `calculator-number-to-string' by throwing most of the work
409 onto `number-to-string', leaving just some tweaks for decimal inputs.
410 This leads to some minor changes, for example, pasting "1x1" in hex
411 mode would warn that "x" is ignored and result in "11" (and it wasn't
412 done in decimal mode), whereas now it just ignores everything from the
413 "x" and on and result in a "1" just like in decimal input mode. Also,
414 overflows are left for `number-to-string' to deal with.
415
416 - `calculator-paste' is very simple as a result.
417
418 - Extend the simplified `calculator-paste': with a prefix argument it
419 pastes a string as if the characters were entered. This can be used
420 to reduce expressions, but note that it's a simple literal operation,
421 so precedence can be messed, a number can be paster while entering a
422 number, spaces and newlines matter, etc.
423
424 - Fix a minor bug where "e+" in hex mode wouldn't use "+" as an
425 operator.
426
427 - Fix a bug in `calculator-put-value': avoid grouping in the display
428 that is used to construct `calculator-curnum'. This would trigger
429 when pasting or getting a value from a register in some radix mode
430 with a large enough value. Another fix: make the output radix equal
431 the input one, otherwise numbers could be converted twice.
432
433 2015-11-29 Eli Barzilay <eli@barzilay.org>
434
435 * lisp/calculator.el: Re-do key bindings.
436
437 Use a helper function that arranges a parent keymap that binds alternate
438 case keys so if some letter key is unbound and it's un/shifted version
439 is, it will get used. This makes the global-map trickery unnecessary.
440
441 Also switch to passing strings that name keys through `kbd'.
442
443 2015-11-29 Eli Barzilay <eli@barzilay.org>
444
445 * lisp/calculator.el: improve radix modes
446
447 Fix prompt for some input radix with decimal output (eg, "BD" instead of
448 the incorrect "B="); also, some minor docstring tweaks for these.
449
450 2015-11-29 Eli Barzilay <eli@barzilay.org>
451
452 * lisp/calculator.el: better reading of register names
453
454 Use `register-read-with-preview' with a dynamically bound
455 `register-alist' and a proper preview function to read register names.
456
457 2015-11-29 Eli Barzilay <eli@barzilay.org>
458
459 * lisp/calculator.el: General improvements
460
461 Use things like `when', `unless', and `push'.
462
463 Improve `calculator-last-input' so it doesn't barf when hitting `F1' in
464 non-electric mode.
465
466 2015-11-28 Michael Albinus <michael.albinus@gmx.de>
467
468 Fix a problem with gfilenotify in filenotify-tests.el
469
470 * test/lisp/filenotify-tests.el
471 (file-notify--test-expected-events): Remove.
472 (file-notify--test-cleanup): Do not set that variable.
473 (file-notify--test-with-events): EVENTS can also be a list of lists.
474 (file-notify-test02-events, file-notify-test04-file-validity):
475 Adapt expected result.
476
477 2015-11-28 Eli Zaretskii <eliz@gnu.org>
478
479 * .gitignore: Adjust to changes in 'test' directory structure.
480
481 2015-11-28 Eli Zaretskii <eliz@gnu.org>
482
483 Fix test/manual/etags/Makefile
484
485 * test/manual/etags/Makefile (ETAGS_PROG, CTAGS_PROG): Adjust to
486 changes in 'test' directory structure.
487
488 2015-11-27 Phillip Lord <phillip.lord@russet.org.uk>
489
490 Exclude resource dirs from search for tests.
491
492 * test/Makefile.in: Test file locations are now found with find
493 rather than using finds native functions.
494
495 2015-11-27 Phillip Lord <phillip.lord@russet.org.uk>
496
497 Add test targets without directory names.
498
499 * (test/Makefile.in): Extend test_template to add two targets for each
500 file.
501
502 2015-11-27 Artur Malabarba <bruce.connor.am@gmail.com>
503
504 * lisp/emacs-lisp/package.el: Require url-handlers
505
506 2015-11-27 Phillip Lord <phillip.lord@russet.org.uk>
507
508 Move elisp-mode-tests to new function names.
509
510 * test/lisp/progmodes/elisp-mode-tests.el (find-defsdefun-c-defvar-c,
511 find-defs-defun-el-defvar-c): Call `elisp--xref-find-definitions'.
512
513 2015-11-27 Juanma Barranquero <lekktu@gmail.com>
514
515 * lisp/emacs-lisp/package.el: Declare `url-insert-buffer-contents'
516
517 2015-11-26 Phillip Lord <phillip.lord@russet.org.uk>
518
519 Merge branch 'feature/standard-test-location'
520
521 2015-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
522
523 * lisp/emacs-lisp/eieio.el: Add some default implementations
524
525 (standard-class): Mark it obsolete.
526 (slot-missing): Give it a default implementation.
527 (destructor): Simplify and mark it obsolete.
528 (object-print): Give it a default implementation.
529 (eieio-change-class): Rename from change-class.
530 (change-class): Redefine as obsolete alias.
531
532 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
533
534 Some final fixes in file notification before merging with master
535
536 * lisp/filenotify.el (file-notify--rm-descriptor): Remove WHAT arg.
537 (file-notify-callback): Improve check for `stopped' event. Call
538 `file-notify-rm-watch' rather than `file-notify--rm-descriptor'.
539 (file-notify-add-watch): In case FILE is not a directory, call the
540 file monitor for the kqueue backend. Otherwise, call the
541 directory monitor for the upper directory.
542
543 * src/inotify.c (inotifyevent_to_event): Extract file name from
544 watch_object if the event doesn't provide it.
545 (Finotify_add_watch): Add file name to watch_object.
546
547 * test/automated/file-notify-tests.el (file-notify--test-timeout):
548 Use different timeouts for different libraries.
549 (file-notify--test-with-events): Suppress lock files. Flush
550 outstanding events before running the body.
551 (file-notify-test02-events, file-notify-test04-file-validity): Do
552 not skip cygwin tests. Add additional test for file creation.
553 Adapt expected result for different backends.
554 (file-notify-test03-autorevert): Some of the tests don't work for
555 w32notify.
556 (file-notify-test06-many-events): Rename into both directions.
557
558 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
559
560 Rework file notifications, kqueue has problems with directory monitors
561
562 * lisp/filenotify.el (file-notify-add-watch): Call the native
563 add-watch function on the file, not on the dir.
564
565 * src/kqueue.c (kqueue_compare_dir_list): Make also bookkeeping
566 about already deleted entries.
567
568 * test/automated/auto-revert-tests.el
569 (auto-revert-test01-auto-revert-several-files): Do not call "cp -f"
570 since this deletes the target file first.
571
572 * test/automated/file-notify-tests.el (file-notify--test-event-test):
573 Make stronger checks.
574 (file-notify-test01-add-watch, file-notify-test02-events)
575 (file-notify-test04-file-validity, file-notify-test05-dir-validity):
576 Rewrite in order to call file monitors but directory monitors.
577 (file-notify-test06-many-events): Ler rename work in both directions.
578
579 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
580
581 Continue with pending events
582
583 * src/kqueue.c (pending_events): Remove global variable.
584 (kqueue_compare_dir_list): Create `write' event for not used
585 pending events.
586 (globals_of_kqueue): Remove initialization of pending_events.
587
588 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
589
590 Improve loops in file-notify-test06-many-events
591
592 * test/automated/file-notify-tests.el (file-notify-test06-many-events):
593 Use `read-event' pauses for the `write-file' loops; otherwise
594 events are lost in inotify and gfilenotify cases.
595
596 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
597
598 Handle more complex rename operation in kqueue
599
600 * src/kqueue.c (pending_events): New variable.
601 (kqueue_compare_dir_list): Handle more complex rename operation.
602 (globals_of_kqueue): Initialize pending_events.
603
604 * test/automated/file-notify-tests.el (file-notify-test06-many-events):
605 Adapt expected events in the `rename-file' case.
606 (file-notify-test06-many-events-remote): Declare.
607
608 2015-11-25 Wolfgang Jenkner <wjenkner@inode.at>
609
610 New test with a larger number of events
611
612 * test/automated/file-notify-tests.el (file-notify--test-with-events):
613 Make timeout heuristically depend on the number of events.
614
615 (file-notify-test06-many-events): Use it for new test.
616
617 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
618
619 Further fixes for kqueue
620
621 * lisp/filenotify.el (file-notify-callback): Raise also event if
622 directory name matches.
623 (file-notify-add-watch): Add `create' to the flags for `kqueue'.
624
625 * src/kqueue.c (kqueue_generate_event): Use watch_object as
626 argument instead of ident. Remove callback argument. Adapt
627 callees. Check actions whether they are monitored flags.
628
629 * test/automated/file-notify-tests.el (file-notify--test-library):
630 New defun.
631 (file-notify-test00-availability, file-notify-test02-events)
632 (file-notify-test04-file-validity)
633 (file-notify-test05-dir-validity): Use it.
634 (file-notify-test02-events, file-notify-test04-file-validity): Add
635 `read-event' calls between different file actions, in order to
636 give the backends a chance to rais an event. Needed especially
637 for kqueue. In case of deleting a directory, there are two
638 `deleted' events.
639
640 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
641
642 Code cleanup of kqueue.c
643
644 * src/kqueue.c (kqueue_directory_listing): Skip "." and "..".
645 (kqueue_compare_dir_list): Do not loop when calling
646 directory_files_internal. Remove checks for "." and "..", this is
647 done in kqueue_directory_listing now.
648 (Fkqueue_add_watch): Check for proper emacs_open flags.
649
650 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
651
652 Doc changes for kqueue
653
654 * doc/lispref/os.texi (File Notifications): Add kqueue as backend.
655 Fix some glitches in the example.
656
657 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
658
659 Finish implementation in kqueue.c
660
661 * src/kqueue.c (kqueue_directory_listing, kqueue_callback):
662 Simplify access to list.
663 (kqueue_compare_dir_list): Simplify access to list. Raise
664 `delete' event if directory does not exist any longer. Otherwise,
665 wait until directory contents has changed. Fix error in check.
666
667 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
668
669 * lisp/filenotify.el (file-notify-add-watch): Fix thinko.
670
671 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
672
673 More work on kqueue
674
675 * lisp/filenotify.el (file-notify-callback): Handle also the
676 `rename' event from kqueue.
677 (file-notify-add-watch): Do not register an entry twice.
678
679 * src/kqueue.c (kqueue_directory_listing): New function.
680 (kqueue_generate_event): New argument FILE1. Adapt callees.
681 (kqueue_compare_dir_list): Rewrite in order to make it more robust.
682
683 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
684
685 Implement directory events
686
687 * lisp/filenotify.el (file-notify-handle-event)
688 (file-notify-callback): Remove traces.
689
690 * src/kqueue.c: Include <sys/time.h>.
691 (kqueue_generate_event, kqueue_compare_dir_list): New functions.
692 (kqueue_callback): Use them. Call kevent() with a zero timeout.
693 (Fkqueue_add_watch): Adapt docstring. Support directory events.
694 Compute initial directory listing. Close file descriptor in case
695 of errors.
696 (syms_of_kqueue): Declare Qcreate.
697
698 2015-11-25 Wolfgang Jenkner <wjenkner@inode.at>
699
700 Build fixes for kqueue support
701
702 * src/kqueue.c (Fkqueue_add_watch): O_BINARY is not a POSIX open(3)
703 flag.
704
705 * configure.ac (HAVE_KQUEUE): There is no pkg-config module for native
706 kqueue on *BSD.
707
708 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
709
710 Continue kqueue implementation
711
712 * lisp/filenotify.el (file-notify-handle-event)
713 (file-notify-callback): Enable trace messages.
714
715 * src/kqueue.c: Include also <sys/types.h>.
716 (kqueue_callback): Remove watch in case of NOTE_DELETE or NOTE_RENAME.
717 (Fkqueue_rm_watch, Fkqueue_valid_p): New functions.
718 (syms_of_kqueue): Add them.
719
720 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
721
722 Work on kqueue
723
724 * lisp/filenotify.el (file-notify--library)
725 (file-notify-descriptors, file-notify-callback)
726 (file-notify-add-watch, file-notify-rm-watch)
727 (file-notify-valid-p): Add kqueue support.
728
729 * src/keyboard.c (make_lispy_event): Check also for HAVE_KQUEUE.
730
731 2015-11-25 Michael Albinus <michael.albinus@gmx.de>
732
733 Add kqueue support
734
735 * configure.ac (--with-file-notification): Add kqueue.
736 (top): Remove special test for "${HAVE_NS}" and
737 ${with_file_notification}, this is handled inside gfilenotify
738 tests. Add kqueue tests. Use NOTIFY_CFLAGS and NOTIFY_LIBS
739 instead of library specific variables.
740
741 * src/Makefile.in: Use NOTIFY_CFLAGS and NOTIFY_LIBS.
742
743 * src/emacs.c (main): Call globals_of_kqueue and syms_of_kqueue.
744
745 * src/kqueue.c: New file.
746
747 * src/lisp.h: Declare extern globals_of_kqueue and syms_of_kqueue.
748
749 2015-11-24 Phillip Lord <phillip.lord@russet.org.uk>
750
751 Update elisp-mode-tests for changed file location.
752
753 * test/lisp/progmodes/elisp-mode-tests.el:
754
755 2015-11-24 Phillip Lord <phillip.lord@russet.org.uk>
756
757 Exclude manual tests from Makefile
758
759 * test/Makefile.in:
760
761 2015-11-24 Phillip Lord <phillip.lord@russet.org.uk>
762
763 Move package test files to new directory.
764
765 * test/lisp/emacs-lisp/package-tests.el: Update resoruce file location.
766 * test/data/package: Moved to test/lisp/emacs-lisp/package-resources
767
768 2015-11-24 Phillip Lord <phillip.lord@russet.org.uk>
769
770 Restore delete Makefiles and fix .gitignore.
771
772 * .gitignore: Update Makefiles to changed locations
773 * test/lisp/progmodes/flymake-resources/Makefile,
774 test/manual/etags/Makefile,
775 test/manual/etags/make-src/Makefile,
776 test/manual/indent/Makefile: Restored and moved to new location.
777
778 2015-11-24 Phillip Lord <phillip.lord@russet.org.uk>
779
780 Test infrastructure: updates after directory move
781
782 * (test/Makefile.in): Support directories several levels deep.
783 * (test/data/flymake): Rename to test/lisp/progmodes/flymake-resources.
784 * (test/lisp/progmodes/flymake-tests.el): Support renamed resource directory.
785
786 2015-11-24 Phillip Lord <phillip.lord@russet.org.uk>
787
788 Rename all test files to reflect source layout.
789
790 * CONTRIBUTE,Makefile.in,configure.ac: Update to reflect
791 test directory moves.
792 * test/file-organisation.org: New file.
793 * test/automated/Makefile.in
794 test/automated/data/decompress/foo.gz
795 test/automated/data/epg/pubkey.asc
796 test/automated/data/epg/seckey.asc
797 test/automated/data/files-bug18141.el.gz
798 test/automated/data/flymake/test.c
799 test/automated/data/flymake/test.pl
800 test/automated/data/package/archive-contents
801 test/automated/data/package/key.pub
802 test/automated/data/package/key.sec
803 test/automated/data/package/multi-file-0.2.3.tar
804 test/automated/data/package/multi-file-readme.txt
805 test/automated/data/package/newer-versions/archive-contents
806 test/automated/data/package/newer-versions/new-pkg-1.0.el
807 test/automated/data/package/newer-versions/simple-single-1.4.el
808 test/automated/data/package/package-test-server.py
809 test/automated/data/package/signed/archive-contents
810 test/automated/data/package/signed/archive-contents.sig
811 test/automated/data/package/signed/signed-bad-1.0.el
812 test/automated/data/package/signed/signed-bad-1.0.el.sig
813 test/automated/data/package/signed/signed-good-1.0.el
814 test/automated/data/package/signed/signed-good-1.0.el.sig
815 test/automated/data/package/simple-depend-1.0.el
816 test/automated/data/package/simple-single-1.3.el
817 test/automated/data/package/simple-single-readme.txt
818 test/automated/data/package/simple-two-depend-1.1.el
819 test/automated/abbrev-tests.el
820 test/automated/auto-revert-tests.el
821 test/automated/calc-tests.el
822 test/automated/icalendar-tests.el
823 test/automated/character-fold-tests.el
824 test/automated/comint-testsuite.el
825 test/automated/descr-text-test.el
826 test/automated/electric-tests.el
827 test/automated/cl-generic-tests.el
828 test/automated/cl-lib-tests.el
829 test/automated/eieio-test-methodinvoke.el
830 test/automated/eieio-test-persist.el
831 test/automated/eieio-tests.el
832 test/automated/ert-tests.el
833 test/automated/ert-x-tests.el
834 test/automated/generator-tests.el
835 test/automated/let-alist.el
836 test/automated/map-tests.el
837 test/automated/advice-tests.el
838 test/automated/package-test.el
839 test/automated/pcase-tests.el
840 test/automated/regexp-tests.el
841 test/automated/seq-tests.el
842 test/automated/subr-x-tests.el
843 test/automated/tabulated-list-test.el
844 test/automated/thunk-tests.el
845 test/automated/timer-tests.el
846 test/automated/epg-tests.el
847 test/automated/eshell.el
848 test/automated/faces-tests.el
849 test/automated/file-notify-tests.el
850 test/automated/auth-source-tests.el
851 test/automated/gnus-tests.el
852 test/automated/message-mode-tests.el
853 test/automated/help-fns.el
854 test/automated/imenu-test.el
855 test/automated/info-xref.el
856 test/automated/mule-util.el
857 test/automated/isearch-tests.el
858 test/automated/json-tests.el
859 test/automated/bytecomp-tests.el
860 test/automated/coding-tests.el
861 test/automated/core-elisp-tests.el
862 test/automated/decoder-tests.el
863 test/automated/files.el
864 test/automated/font-parse-tests.el
865 test/automated/lexbind-tests.el
866 test/automated/occur-tests.el
867 test/automated/process-tests.el
868 test/automated/syntax-tests.el
869 test/automated/textprop-tests.el
870 test/automated/undo-tests.el
871 test/automated/man-tests.el
872 test/automated/completion-tests.el
873 test/automated/dbus-tests.el
874 test/automated/newsticker-tests.el
875 test/automated/sasl-scram-rfc-tests.el
876 test/automated/tramp-tests.el
877 test/automated/obarray-tests.el
878 test/automated/compile-tests.el
879 test/automated/elisp-mode-tests.el
880 test/automated/f90.el
881 test/automated/flymake-tests.el
882 test/automated/python-tests.el
883 test/automated/ruby-mode-tests.el
884 test/automated/subword-tests.el
885 test/automated/replace-tests.el
886 test/automated/simple-test.el
887 test/automated/sort-tests.el
888 test/automated/subr-tests.el
889 test/automated/reftex-tests.el
890 test/automated/sgml-mode-tests.el
891 test/automated/tildify-tests.el
892 test/automated/thingatpt.el
893 test/automated/url-future-tests.el
894 test/automated/url-util-tests.el
895 test/automated/add-log-tests.el
896 test/automated/vc-bzr.el
897 test/automated/vc-tests.el
898 test/automated/xml-parse-tests.el
899 test/BidiCharacterTest.txt
900 test/biditest.el
901 test/cedet/cedet-utests.el
902 test/cedet/ede-tests.el
903 test/cedet/semantic-ia-utest.el
904 test/cedet/semantic-tests.el
905 test/cedet/semantic-utest-c.el
906 test/cedet/semantic-utest.el
907 test/cedet/srecode-tests.el
908 test/cedet/tests/test.c
909 test/cedet/tests/test.el
910 test/cedet/tests/test.make
911 test/cedet/tests/testdoublens.cpp
912 test/cedet/tests/testdoublens.hpp
913 test/cedet/tests/testfriends.cpp
914 test/cedet/tests/testjavacomp.java
915 test/cedet/tests/testnsp.cpp
916 test/cedet/tests/testpolymorph.cpp
917 test/cedet/tests/testspp.c
918 test/cedet/tests/testsppcomplete.c
919 test/cedet/tests/testsppreplace.c
920 test/cedet/tests/testsppreplaced.c
921 test/cedet/tests/testsubclass.cpp
922 test/cedet/tests/testsubclass.hh
923 test/cedet/tests/testtypedefs.cpp
924 test/cedet/tests/testvarnames.c
925 test/etags/CTAGS.good
926 test/etags/ETAGS.good_1
927 test/etags/ETAGS.good_2
928 test/etags/ETAGS.good_3
929 test/etags/ETAGS.good_4
930 test/etags/ETAGS.good_5
931 test/etags/ETAGS.good_6
932 test/etags/a-src/empty.zz
933 test/etags/a-src/empty.zz.gz
934 test/etags/ada-src/2ataspri.adb
935 test/etags/ada-src/2ataspri.ads
936 test/etags/ada-src/etags-test-for.ada
937 test/etags/ada-src/waroquiers.ada
938 test/etags/c-src/a/b/b.c
939 test/etags/c-src/abbrev.c
940 test/etags/c-src/c.c
941 test/etags/c-src/dostorture.c
942 test/etags/c-src/emacs/src/gmalloc.c
943 test/etags/c-src/emacs/src/keyboard.c
944 test/etags/c-src/emacs/src/lisp.h
945 test/etags/c-src/emacs/src/regex.h
946 test/etags/c-src/etags.c
947 test/etags/c-src/exit.c
948 test/etags/c-src/exit.strange_suffix
949 test/etags/c-src/fail.c
950 test/etags/c-src/getopt.h
951 test/etags/c-src/h.h
952 test/etags/c-src/machsyscalls.c
953 test/etags/c-src/machsyscalls.h
954 test/etags/c-src/sysdep.h
955 test/etags/c-src/tab.c
956 test/etags/c-src/torture.c
957 test/etags/cp-src/MDiagArray2.h
958 test/etags/cp-src/Range.h
959 test/etags/cp-src/burton.cpp
960 test/etags/cp-src/c.C
961 test/etags/cp-src/clheir.cpp.gz
962 test/etags/cp-src/clheir.hpp
963 test/etags/cp-src/conway.cpp
964 test/etags/cp-src/conway.hpp
965 test/etags/cp-src/fail.C
966 test/etags/cp-src/functions.cpp
967 test/etags/cp-src/screen.cpp
968 test/etags/cp-src/screen.hpp
969 test/etags/cp-src/x.cc
970 test/etags/el-src/TAGTEST.EL
971 test/etags/el-src/emacs/lisp/progmodes/etags.el
972 test/etags/erl-src/gs_dialog.erl
973 test/etags/f-src/entry.for
974 test/etags/f-src/entry.strange.gz
975 test/etags/f-src/entry.strange_suffix
976 test/etags/forth-src/test-forth.fth
977 test/etags/html-src/algrthms.html
978 test/etags/html-src/index.shtml
979 test/etags/html-src/software.html
980 test/etags/html-src/softwarelibero.html
981 test/etags/lua-src/allegro.lua
982 test/etags/objc-src/PackInsp.h
983 test/etags/objc-src/PackInsp.m
984 test/etags/objc-src/Subprocess.h
985 test/etags/objc-src/Subprocess.m
986 test/etags/objcpp-src/SimpleCalc.H
987 test/etags/objcpp-src/SimpleCalc.M
988 test/etags/pas-src/common.pas
989 test/etags/perl-src/htlmify-cystic
990 test/etags/perl-src/kai-test.pl
991 test/etags/perl-src/yagrip.pl
992 test/etags/php-src/lce_functions.php
993 test/etags/php-src/ptest.php
994 test/etags/php-src/sendmail.php
995 test/etags/prol-src/natded.prolog
996 test/etags/prol-src/ordsets.prolog
997 test/etags/ps-src/rfc1245.ps
998 test/etags/pyt-src/server.py
999 test/etags/tex-src/gzip.texi
1000 test/etags/tex-src/nonewline.tex
1001 test/etags/tex-src/testenv.tex
1002 test/etags/tex-src/texinfo.tex
1003 test/etags/y-src/atest.y
1004 test/etags/y-src/cccp.c
1005 test/etags/y-src/cccp.y
1006 test/etags/y-src/parse.c
1007 test/etags/y-src/parse.y
1008 test/indent/css-mode.css
1009 test/indent/js-indent-init-dynamic.js
1010 test/indent/js-indent-init-t.js
1011 test/indent/js-jsx.js
1012 test/indent/js.js
1013 test/indent/latex-mode.tex
1014 test/indent/modula2.mod
1015 test/indent/nxml.xml
1016 test/indent/octave.m
1017 test/indent/pascal.pas
1018 test/indent/perl.perl
1019 test/indent/prolog.prolog
1020 test/indent/ps-mode.ps
1021 test/indent/ruby.rb
1022 test/indent/scheme.scm
1023 test/indent/scss-mode.scss
1024 test/indent/sgml-mode-attribute.html
1025 test/indent/shell.rc
1026 test/indent/shell.sh
1027 test/redisplay-testsuite.el
1028 test/rmailmm.el
1029 test/automated/buffer-tests.el
1030 test/automated/cmds-tests.el
1031 test/automated/data-tests.el
1032 test/automated/finalizer-tests.el
1033 test/automated/fns-tests.el
1034 test/automated/inotify-test.el
1035 test/automated/keymap-tests.el
1036 test/automated/print-tests.el
1037 test/automated/libxml-tests.el
1038 test/automated/zlib-tests.el: Files Moved.
1039
1040 2015-11-20 Michael Albinus <michael.albinus@gmx.de>
1041
1042 Rework file notifications, kqueue has problems with directory monitors
1043
1044 * lisp/filenotify.el (file-notify-add-watch): Call the native
1045 add-watch function on the file, not on the dir.
1046
1047 * src/kqueue.c (kqueue_compare_dir_list): Make also bookkeeping
1048 about already deleted entries.
1049
1050 * test/automated/auto-revert-tests.el
1051 (auto-revert-test01-auto-revert-several-files): Do not call "cp -f"
1052 since this deletes the target file first.
1053
1054 * test/automated/file-notify-tests.el (file-notify--test-event-test):
1055 Make stronger checks.
1056 (file-notify-test01-add-watch, file-notify-test02-events)
1057 (file-notify-test04-file-validity, file-notify-test05-dir-validity):
1058 Rewrite in order to call file monitors but directory monitors.
1059 (file-notify-test06-many-events): Ler rename work in both directions.
1060
1061 2015-11-19 Michael Albinus <michael.albinus@gmx.de>
1062
1063 Continie with pending events
1064
1065 * src/kqueue.c (pending_events): Remove global variable.
1066 (kqueue_compare_dir_list): Create `write' event for not used
1067 pending events.
1068 (globals_of_kqueue): Remove initialization of pending_events.
1069
1070 2015-11-19 Michael Albinus <michael.albinus@gmx.de>
1071
1072 Improve loops in file-notify-test06-many-events
1073
1074 * test/automated/file-notify-tests.el (file-notify-test06-many-events):
1075 Use `read-event' pauses for the `write-file' loops; otherwise
1076 events are lost in inotify and gfilenotify cases.
1077
1078 2015-11-19 Michael Albinus <michael.albinus@gmx.de>
1079
1080 Handle more complex rename operation in kqueue
1081
1082 * src/kqueue.c (pending_events): New variable.
1083 (kqueue_compare_dir_list): Handle more complex rename operation.
1084 (globals_of_kqueue): Initialize pending_events.
1085
1086 * test/automated/file-notify-tests.el (file-notify-test06-many-events):
1087 Adapt expected events in the `rename-file' case.
1088 (file-notify-test06-many-events-remote): Declare.
1089
1090 2015-11-18 Wolfgang Jenkner <wjenkner@inode.at>
1091
1092 New test with a larger number of events.
1093
1094 * test/automated/file-notify-tests.el (file-notify--test-with-events):
1095 Make timeout heuristically depend on the number of events.
1096
1097 (file-notify-test06-many-events): Use it for new test.
1098
1099 2015-11-18 Michael Albinus <michael.albinus@gmx.de>
1100
1101 Further fixes for kqueue.
1102
1103 * lisp/filenotify.el (file-notify-callback): Raise also event if
1104 directory name matches.
1105 (file-notify-add-watch): Add `create' to the flags for `kqueue'.
1106
1107 * src/kqueue.c (kqueue_generate_event): Use watch_object as
1108 argument instead of ident. Remove callback argument. Adapt
1109 callees. Check actions whether they are monitored flags.
1110
1111 * test/automated/file-notify-tests.el (file-notify--test-library):
1112 New defun.
1113 (file-notify-test00-availability, file-notify-test02-events)
1114 (file-notify-test04-file-validity)
1115 (file-notify-test05-dir-validity): Use it.
1116 (file-notify-test02-events, file-notify-test04-file-validity): Add
1117 `read-event' calls between different file actions, in order to
1118 give the backends a chance to rais an event. Needed especially
1119 for kqueue. In case of deleting a directory, there are two
1120 `deleted' events.
1121
1122 2015-11-17 Michael Albinus <michael.albinus@gmx.de>
1123
1124 Code cleanup of kqueue.c
1125
1126 * src/kqueue.c (kqueue_directory_listing): Skip "." and "..".
1127 (kqueue_compare_dir_list): Do not loop when calling
1128 directory_files_internal. Remove checks for "." and "..", this is
1129 done in kqueue_directory_listing now.
1130 (Fkqueue_add_watch): Check for proper emacs_open flags.
1131
1132 2015-11-16 Michael Albinus <michael.albinus@gmx.de>
1133
1134 Doc changes for kqueue
1135
1136 * doc/lispref/os.texi (File Notifications): Add kqueue as backend.
1137 Fix some glitches in the example.
1138
1139 2015-11-16 Michael Albinus <michael.albinus@gmx.de>
1140
1141 Finish implementation in kqueue.c
1142
1143 * src/kqueue.c (kqueue_directory_listing, kqueue_callback):
1144 Simplify access to list.
1145 (kqueue_compare_dir_list): Simplify access to list. Raise
1146 `delete' event if directory does not exist any longer. Otherwise,
1147 wait until directory contents has changed. Fix error in check.
1148
1149 2015-11-16 Michael Albinus <michael.albinus@gmx.de>
1150
1151 * lisp/filenotify.el (file-notify-add-watch): Fix thinko.
1152
1153 2015-11-15 Michael Albinus <michael.albinus@gmx.de>
1154
1155 More work on kqueue
1156
1157 * lisp/filenotify.el (file-notify-callback): Handle also the
1158 `rename' event from kqueue.
1159 (file-notify-add-watch): Do not register an entry twice.
1160
1161 * src/kqueue.c (kqueue_directory_listing): New function.
1162 (kqueue_generate_event): New argument FILE1. Adapt callees.
1163 (kqueue_compare_dir_list): Rewrite in order to make it more robust.
1164
1165 2015-11-14 Michael Albinus <michael.albinus@gmx.de>
1166
1167 Implement directory events
1168
1169 * lisp/filenotify.el (file-notify-handle-event)
1170 (file-notify-callback): Remove traces.
1171
1172 * src/kqueue.c: Include <sys/time.h>.
1173 (kqueue_generate_event, kqueue_compare_dir_list): New functions.
1174 (kqueue_callback): Use them. Call kevent() with a zero timeout.
1175 (Fkqueue_add_watch): Adapt docstring. Support directory events.
1176 Compute initial directory listing. Close file descriptor in case
1177 of errors.
1178 (syms_of_kqueue): Declare Qcreate.
1179
1180 2015-11-11 Wolfgang Jenkner <wjenkner@inode.at>
1181
1182 Build fixes for kqueue support.
1183
1184 * src/kqueue.c (Fkqueue_add_watch): O_BINARY is not a POSIX open(3)
1185 flag.
1186
1187 * configure.ac (HAVE_KQUEUE): There is no pkg-config module for native
1188 kqueue on *BSD.
1189
1190 2015-11-11 Michael Albinus <michael.albinus@gmx.de>
1191
1192 Continue kqueue implementation
1193
1194 * lisp/filenotify.el (file-notify-handle-event)
1195 (file-notify-callback): Enable trace messages.
1196
1197 * src/kqueue.c: Include also <sys/types.h>.
1198 (kqueue_callback): Remove watch in case of NOTE_DELETE or NOTE_RENAME.
1199 (Fkqueue_rm_watch, Fkqueue_valid_p): New functions.
1200 (syms_of_kqueue): Add them.
1201
1202 2015-11-11 Michael Albinus <michael.albinus@gmx.de>
1203
1204 Work on kqueue
1205
1206 * lisp/filenotify.el (file-notify--library)
1207 (file-notify-descriptors, file-notify-callback)
1208 (file-notify-add-watch, file-notify-rm-watch)
1209 (file-notify-valid-p): Add kqueue support.
1210
1211 * src/keyboard.c (make_lispy_event): Check also for HAVE_KQUEUE.
1212
1213 2015-11-11 Michael Albinus <michael.albinus@gmx.de>
1214
1215 Add kqueue support
1216
1217 * configure.ac (--with-file-notification): Add kqueue.
1218 (top): Remove special test for "${HAVE_NS}" and
1219 ${with_file_notification}, this is handled inside gfilenotify
1220 tests. Add kqueue tests. Use NOTIFY_CFLAGS and NOTIFY_LIBS
1221 instead of library specific variables.
1222
1223 * src/Makefile.in: Use NOTIFY_CFLAGS and NOTIFY_LIBS.
1224
1225 * src/emacs.c (main): Call globals_of_kqueue and syms_of_kqueue.
1226
1227 * src/kqueue.c: New file.
1228
1229 * src/lisp.h: Declare extern globals_of_kqueue and syms_of_kqueue.
1230
1231 2015-11-21 Wilson Snyder <wsnyder@wsnyder.org>
1232
1233 verilog-mode.el: Commentary and fix pre-Emacs 21 behavior.
1234
1235 * verilog-mode.el (verilog-save-font-no-change-functions):
1236 Commentary and fix pre-Emacs 21 behavior.
1237
1238 2015-11-19 Przemysław Wojnowski <esperanto@cumego.com>
1239
1240 Use obarray functions from obarray.
1241
1242 * lisp/abbrev.el (copy-abbrev-table, abbrev-table-p, make-abbrev-table,
1243 abbrev-table-get, abbrev-table-put, abbrev-table-empty-p,
1244 clear-abbrev-table, define-abbrev, abbrev--symbol, abbrev-table-menu):
1245 delegate to obarray.el functions.
1246 * lisp/loadup.el: load obarray before abbrev
1247 * test/automated/abbrev-tests.el: new tests
1248
1249 2015-11-18 Christian Schwarzgruber <c.schwarzgruber.cs@gmail.com> (tiny change)
1250
1251 epa.el: Add option to replace original text
1252
1253 * lisp/epa.el (epa-replace-original-text): New user option.
1254 (Bug#21947)
1255
1256 2015-11-18 Mark Oteiza <mvoteiza@udel.edu>
1257
1258 Add interactive seek command.
1259
1260 * lisp/mpc.el (mpc-cmd-seekcur): New function.
1261 (mpc-seek-current): New command.
1262 (mpc-mode-menu): Add entry for mpc-seek-current
1263 (mpc-mode-map): Bind mpc-seek-current to "g"
1264
1265 2015-11-18 Mark Oteiza <mvoteiza@udel.edu>
1266
1267 Fix issue where a new tempfile was created every refresh
1268
1269 * lisp/mpc.el (mpc-format): Leave dir as relative path
1270
1271 2015-11-18 Stefan Monnier <monnier@iro.umontreal.ca>
1272
1273 * lisp/progmodes/cc-defs.el: Use with-silent-modifications
1274
1275 (c-save-buffer-state): Use with-silent-modifications when available.
1276 (c--macroexpand-all): Check macroexpand-all directly rather than
1277 c--mapcan-status.
1278
1279 2015-11-18 Stefan Monnier <monnier@iro.umontreal.ca>
1280
1281 * lisp/loadup.el: Set max-lisp-eval-depth here
1282
1283 * lisp/Makefile.in (BIG_STACK_DEPTH, BIG_STACK_OPTS): Remove.
1284 (BYTE_COMPILE_FLAGS): Adjust accordingly.
1285
1286 2015-11-17 João Távora <joaotavora@gmail.com>
1287
1288 Minor fix to comment indentation and typo in last commit
1289
1290 * linum.el (linum-update-window): Fix comment indentation and a
1291 typo.
1292
1293 2015-11-17 João Távora <joaotavora@gmail.com>
1294
1295 linum-mode plays more nicely with other margin-setting extensions
1296
1297 linum.el will only modify the left margin if it needs to, and will
1298 only reset the it back to 0 if it guesses that no-one has touched that
1299 margin in the meantime.
1300
1301 As such, this is a more of a workaround than an actual fix, but fixes
1302 the problems described in bug#20674 regarding the interaction with
1303 modes such as darkroom-mode and olivetti-mode.
1304
1305 A similar fix was commited to nlinum.el in ELPA.git's
1306 e7f5f549fbfb740b911fb7f33b42381ecece56d8
1307
1308 * linum.el (linum-delete-overlays): Restore margins more
1309 criteriously.
1310 (linum-update-window): Set margins more criteriously.
1311
1312 2015-11-16 Daiki Ueno <ueno@gnu.org>
1313
1314 * lisp/image-mode.el: Support encrypted file
1315
1316 (image-toggle-display-image): Read content from the buffer instead
1317 of the file, if the buffer holds a decrypted data. (Bug#21870)
1318
1319 2015-11-15 Juanma Barranquero <lekktu@gmail.com>
1320
1321 * lisp/progmodes/verilog-mode.el (verilog-save-buffer-state): Add backquote
1322
1323 2015-11-15 Artur Malabarba <bruce.connor.am@gmail.com>
1324
1325 * lisp/emacs-lisp/package.el: Fix a decoding issue
1326
1327 (package--with-response-buffer): Use `url-insert-buffer-contents'.
1328 The previous code had some issues with decoding. Refactoring that
1329 function allows us to use the decoding from url-handlers while still
1330 treating both sync and async requests the same.
1331
1332 * lisp/url/url-handlers.el (url-insert-file-contents): Move some code to
1333 `url-insert-buffer-contents'.
1334 (url-insert-buffer-contents): New function
1335
1336 2015-11-15 Artur Malabarba <bruce.connor.am@gmail.com>
1337
1338 * lisp/emacs-lisp/package.el: Refactor -with-work-buffer-async
1339
1340 (package--with-work-buffer-async): Reimplement as
1341 `package--with-response-buffer'.
1342 (package--with-work-buffer): Mark obsolete.
1343 (package--with-response-buffer): New macro. This is a more self
1344 contained and less contrived version of
1345 `package--with-work-buffer-async'. It uses keyword arguments,
1346 doesn't have async on the name, doesn't fallback on
1347 `package--with-work-buffer', and has _much_ simpler error
1348 handling.
1349
1350 (package--check-signature, package--download-one-archive)
1351 (package-install-from-archive, describe-package-1): Use it.
1352
1353 (package--download-and-read-archives): Let
1354 `package--download-one-archive' take care of calling
1355 `package--update-downloads-in-progress'.
1356
1357 2015-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
1358
1359 * lisp/progmodes/verilog-mode.el: Use with-silent-modifications
1360
1361 (verilog-save-buffer-state): Use with-silent-modifications when available.
1362 (verilog-save-font-no-change-functions): Don't bind
1363 before/after-change-functions if it's not needed.
1364
1365 2015-11-14 Xue Fuqiao <xfq.free@gmail.com>
1366
1367 * CONTRIBUTE: Remove information about feature freeze.
1368
1369 Merge branch 'release-process-lowercase'
1370
1371 2015-11-14 Xue Fuqiao <xfq.free@gmail.com>
1372
1373 Document the release process
1374
1375 * admin/notes/versioning: Add information about RC releases.
1376 * admin/release-process: Document the release process.
1377 * admin/authors.el (authors-ignored-files):
1378 * admin/README: Change FOR-RELEASE to release-process.
1379 * CONTRIBUTE:
1380 * admin/notes/bugtracker: Don't mention FOR-RELEASE.
1381
1382 2015-11-14 Xue Fuqiao <xfq.free@gmail.com>
1383
1384 * admin/release-process: Rename from admin/FOR-RELEASE.
1385
1386 2015-11-14 David Engster <deng@randomsample.de>
1387
1388 gitmerge: Fix git log command
1389
1390 * admin/gitmerge.el (gitmerge-missing): Use '--left-only' since we
1391 only want commits from the branch that is to be merged.
1392 (gitmerge-setup-log-buffer): Use the same symmetric range as in
1393 `gitmerge-missing'.
1394
1395 2015-11-14 David Engster <deng@randomsample.de>
1396
1397 gitmerge: Try to detect cherry-picks
1398
1399 * admin/gitmerge.el (gitmerge-default-branch): Change to
1400 origin/emacs-25.
1401 (gitmerge-missing): Use symmetric difference ('...') between
1402 branch and master so that cherry-picks can be detected.
1403
1404 2015-11-14 Eli Zaretskii <eliz@gnu.org>
1405
1406 Increment Emacs version on master branch
1407
1408 * lisp/cus-edit.el (customize-changed-options-previous-release):
1409 Increase previous version to 24.5.
1410
1411 * configure.ac:
1412 * msdos/sed2v2.inp: Bump version to 25.1.50.
1413
1414 2015-11-14 Xue Fuqiao <xfq.free@gmail.com>
1415
1416 Mention CONTRIBUTE in README, since it was moved from etc/ to root.
1417 * etc/TODO: Remove the reference to `etc/CONTRIBUTE'.
1418 * README: Mention CONTRIBUTE.
1419
1420 2015-11-13 Wilson Snyder <wsnyder@wsnyder.org>
1421
1422 Update verilog-mode.el to 2015-11-09-b121d60-vpo
1423
1424 * verilog-mode.el (verilog-auto, verilog-delete-auto)
1425 (verilog-modi-cache-results, verilog-save-buffer-state)
1426 (verilog-save-font-no-change-functions): When internally suppressing
1427 change functions, use `inhibit-modification-hooks' and call
1428 `after-change-funtions' to more nicely work with user hooks.
1429 Reported by Stefan Monnier.
1430 (verilog-auto, verilog-delete-auto, verilog-delete-auto-buffer):
1431 Create `verilog-delete-auto-buffer' to avoid double-calling
1432 fontification hooks.
1433 (verilog-restore-buffer-modified-p, verilog-auto)
1434 (verilog-save-buffer-state): Prefer restore-buffer-modified-p over
1435 set-buffer-modified-p. Reported by Stefan Monnier.
1436 (verilog-diff-auto, verilog-diff-buffers-p)
1437 (verilog-diff-ignore-regexp): Add `verilog-diff-ignore-regexp'.
1438 (verilog-auto-inst-port, verilog-read-sub-decls-expr): Fix
1439 AUTOINST with unpacked dimensional parameters, bug981. Reported by
1440 by Amol Nagapurkar.
1441 (verilog-read-decls, verilog-read-sub-decls-line): Avoid unneeded
1442 properties inside internal structures. No functional change
1443 intended.
1444
1445 2015-11-13 Dmitry Gutov <dgutov@yandex.ru>
1446
1447 Use generic dispatch for xref backends
1448
1449 * lisp/progmodes/xref.el (xref-backend-functions):
1450 New variable.
1451 (xref-find-function): Remove.
1452 (xref-find-backend)
1453 (xref--etags-backend): New functions.
1454 (xref-identifier-at-point-function)
1455 (xref-identifier-completion-table-function): Remove.
1456 (xref-backend-definitions, xref-backend-references)
1457 (xref-backend-apropos, xref-backend-identifier-at-point)
1458 (xref-backend-identifier-completion-table):
1459 New generic functions.
1460
1461 * lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
1462 Add `elisp--xref-backend' to the beginning of
1463 `xref-backend-functions', locally. Delete references to
1464 removed functions and vars.
1465 (elisp-xref-find): Remove.
1466 (elisp--xref-backend): New function.
1467 (elisp--xref-find-references, elisp--xref-find-apropos)
1468 (elisp--xref-identifier-completion-table):
1469 Turn into appropriately named generic methods.
1470
1471 * lisp/progmodes/etags.el (etags-xref-find): Remove.
1472 (xref-backend-identifier-completion-table)
1473 (xref-backend-references, xref-backend-definitions)
1474 (xref-backend-apropos): New generic methods.
1475
1476 2015-11-13 Juri Linkov <juri@linkov.net>
1477
1478 Support rectangular regions for more commands
1479
1480 * lisp/simple.el (region-extract-function): Handle the arg
1481 value ‘bounds’.
1482 (region-insert-function): New function.
1483 (shell-command-on-region): Add arg ‘region-noncontiguous-p’.
1484 If non-nil, operate on multiple chunks.
1485 (region-noncontiguous-p): New function.
1486
1487 * lisp/rect.el: Add function rectangle--insert-region
1488 around region-insert-function.
1489 (extract-rectangle-bounds): New function.
1490 (rectangle--extract-region): Handle the arg value ‘bounds’.
1491 (rectangle--insert-region): New function.
1492
1493 * lisp/emulation/cua-rect.el: Add function cua--insert-rectangle
1494 around region-insert-function.
1495 (cua--extract-rectangle-bounds): New function.
1496 (cua--rectangle-region-extract): Handle the arg value ‘bounds’.
1497
1498 * lisp/replace.el (query-replace, query-replace-regexp): Add arg
1499 ‘region-noncontiguous-p’. Use ‘use-region-p’.
1500 (query-replace-regexp-eval, map-query-replace-regexp)
1501 (replace-string, replace-regexp): Use ‘use-region-p’.
1502 (keep-lines, flush-lines, how-many): Use ‘use-region-p’.
1503 (perform-replace): Add arg ‘region-noncontiguous-p’.
1504 If non-nil, operate on multiple chunks.
1505
1506 * src/casefiddle.c (Fdowncase_region): Add arg ‘region-noncontiguous-p’.
1507 If non-nil, operate on multiple chunks. (Bug#19829)
1508
1509 2015-11-13 Dmitry Gutov <dgutov@yandex.ru>
1510
1511 Handle multiple matches on the same line; add highlighting
1512
1513 * lisp/progmodes/xref.el (xref-location-marker): Interpret the
1514 column value in characters.
1515 (xref--collect-matches): Rename from `xref--collect-match'.
1516 Search for all matches in the hit line. Add `highlight' face to
1517 the matched region in the summary. Update both callers.
1518
1519 2015-11-13 Dmitry Gutov <dgutov@yandex.ru>
1520
1521 Replace xref-match-bounds with xref-match-length
1522
1523 Relying on xref-location-marker to point to the beginning of the match
1524
1525 * lisp/progmodes/xref.el (xref-match-bounds): Remove.
1526 (xref-match-length): Add.
1527 (xref-make-match): Change the arguments.
1528 (xref--match-buffer-bounds): Remove.
1529 (xref-match-item): Store length, instead of end-column.
1530 (xref-pulse-momentarily)
1531 (xref--collect-match)
1532 (xref--query-replace-1): Update accordingly.
1533 (xref-query-replace): Ditto. And check that the search results
1534 are up-to-date.
1535
1536 2015-11-13 Paul Eggert <eggert@cs.ucla.edu>
1537
1538 Merge from gnulib
1539
1540 This incorporates:
1541 2015-11-13 xalloc-oversized: improve performance with GCC 5
1542 * lib/xalloc-oversized.h: Copy from gnulib.
1543
1544 2015-11-13 Paul Eggert <eggert@cs.ucla.edu>
1545
1546 Spruce up ftfont.c memory allocation
1547
1548 * src/ftfont.c (setup_otf_gstring):
1549 Avoid O(N**2) behavior when reallocating.
1550 (ftfont_shape_by_flt): Prefer xpalloc to xrealloc when
1551 reallocating buffers; this simplifies the code. Do not trust
1552 mflt_run to leave the output areas unchanged on failure, as
1553 this isn’t part of its interface spec.
1554
1555 2015-11-13 Paul Eggert <eggert@cs.ucla.edu>
1556
1557 Port recent XCB changes to 64-bit ‘long int’
1558
1559 For historical reasons, libX11 represents 32-bit values like Atoms as
1560 ‘long int’ even on platforms where ‘long int’ is 64 bits. XCB doesn’t
1561 do that, so adapt the recent XCB code to behave properly on 64-bit
1562 platforms. Also, fix what appears to be a bug in the interpretation
1563 of xcb_get_property_value_length, at least on my Fedora platform
1564 which is running libxcb-1.11-5.fc21.
1565 * src/xfns.c (x_real_pos_and_offsets):
1566 * src/xterm.c (get_current_wm_state):
1567 xcb_get_property_value_length returns a byte count, not a word count.
1568 For 32-bit quantities, xcb_get_property_value returns a vector
1569 of 32-bit words, not of (possibly 64-bit) long int.
1570
1571 2015-11-13 Paul Eggert <eggert@cs.ucla.edu>
1572
1573 * src/undo.c (run_undoable_change): Now static.
1574
1575 2015-11-13 Eli Zaretskii <eliz@gnu.org>
1576
1577 Remove support for ':timeout' from w32 tray notifications
1578
1579 * src/w32fns.c (Fw32_notification_notify): Delete the code that
1580 supports ':timeout'.
1581 (syms_of_w32fns): Don't DEFSYM ':timeout'. This avoids clashes
1582 with dbusbind.c when D-Bus is compiled in.
1583
1584 * doc/lispref/os.texi (Desktop Notifications): Don't mention
1585 ':timeout'.
1586
1587 2015-11-13 Juanma Barranquero <lekktu@gmail.com>
1588
1589 * test/automated/simple-test.el: Add test for bug#20698 (bug#21885)
1590 (simple-test--transpositions): New macro.
1591 (simple-transpose-subr): New test.
1592
1593 2015-11-13 Juanma Barranquero <lekktu@gmail.com>
1594
1595 * lisp/progmodes/elisp-mode.el: Declare function `project-roots'
1596
1597 2015-11-13 Juanma Barranquero <lekktu@gmail.com>
1598
1599 * src/undo.c: Small fixes for previous change
1600 (run_undoable_change): Mark void argument list.
1601 (record_property_change): Remove unused variable `boundary'.
1602
1603 2015-11-13 Eli Zaretskii <eliz@gnu.org>
1604
1605 Add a few more variables to redisplay--variables
1606
1607 * lisp/frame.el (redisplay--variables): Add bidi-paragraph-direction
1608 and bidi-display-reordering to the list.
1609
1610 2015-11-13 Eli Zaretskii <eliz@gnu.org>
1611
1612 * lisp/loadup.el: Enlarge the size of the hash table to 80000.
1613
1614 2015-11-13 Eli Barzilay <eli@barzilay.org>
1615
1616 Fix point positioning after transposing with negative arg
1617
1618 * lisp/simple.el (transpose-subr): When invoked with a negative
1619 argument, move point to after the transposed text, like we do
1620 when invoked with a positive argument. (Bug#21885)
1621
1622 2015-11-13 Eli Zaretskii <eliz@gnu.org>
1623
1624 Fix last change in shr.el
1625
1626 * lisp/net/shr.el (shr--have-one-fringe-p): Rename from
1627 have-fringes-p. All callers changed. Doc fix. (Bug#21895)
1628
1629 2015-11-13 Eli Zaretskii <eliz@gnu.org>
1630
1631 Fix last change
1632
1633 * src/w32fns.c (syms_of_w32fns) [WINDOWSNT && !HAVE_DBUS]:
1634 Don't DEFSYM tray notification symbols if D-Bus is being used.
1635
1636 2015-11-13 Eli Zaretskii <eliz@gnu.org>
1637
1638 Another fix for MinGW64 and Cygwin builds due to notifications
1639
1640 * src/w32fns.c: Ifdef away tray notification code if D-Bus is
1641 being compiled into Emacs.
1642 (syms_of_w32fns) [WINDOWSNT && !HAVE_DBUS]: Don't defsubr
1643 Sw32_notification_notify and Sw32_notification_close if the code
1644 is not compiled. Reported by Andy Moreton <andrewjmoreton@gmail.com>.
1645
1646 2015-11-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1647
1648 Remove intern calls and XXX comments from Fx_export_frames
1649
1650 * src/xfns.c (Fx_export_frames): Use Qpdf, Qpng, Qpostscript, and
1651 Qsvg instead of intern calls. Use "postscript" instead of "ps"
1652 for consistency with image types. Remove XXX comments.
1653 (syms_of_xfns) <Qpdf>: DEFSYM it.
1654
1655 2015-11-12 Eric Hanchrow <eric.hanchrow@gmail.com>
1656
1657 shr: don't invoke unbound function (Bug#21895)
1658
1659 * lisp/net/shr.el (have-fringes-p): New function.
1660 (shr-insert-document, shr-fill-text): Use it.
1661
1662 2015-11-12 Juanma Barranquero <lekktu@gmail.com>
1663
1664 * test/automated/keymaps-test.el: Fix test to make it repeatable
1665
1666 (keymap-store_in_keymap-FASTINT-on-nonchars): Reset Buffer-menu-mode-map
1667 entry to its initial value to make the test repeatable in interactive
1668 sessions (assuming it doesn't fail and crashes Emacs, of course).
1669
1670 2015-11-12 Artur Malabarba <bruce.connor.am@gmail.com>
1671
1672 * test/automated/cl-lib-tests.el (cl-lib-struct-constructors):
1673 Small fix.
1674
1675 2015-11-12 Phillip Lord <phillip.lord@newcastle.ac.uk>
1676
1677 The heuristic that Emacs uses to add an `undo-boundary' has been
1678 reworked, as it interacts poorly with functions on `post-command-hook'
1679 or `after-change-functions'.
1680
1681 * lisp/simple.el: New section added.
1682 * src/cmds.c (remove_excessive_undo_boundaries): Now in lisp.
1683 (self_insert_command): Calls simple.el to amalgamate.
1684 (delete_char): Calls simple.el to amalgamate.
1685 * src/keyboard.c (last_undo_boundary): Removed.
1686 * src/undo.c (run_undoable_change): New function.
1687
1688 2015-11-12 Juri Linkov <juri@linkov.net>
1689
1690 Bind [?\S-\ ] to previous line command in Dired-like modes
1691
1692 * lisp/arc-mode.el (archive-mode-map):
1693 * lisp/dired.el (dired-mode-map):
1694 * lisp/proced.el (proced-mode-map):
1695 * lisp/vc/vc-dir.el (vc-dir-mode-map):
1696 Bind [?\S-\ ] to previous line command.
1697 (Bug#20790)
1698
1699 2015-11-12 Eli Zaretskii <eliz@gnu.org>
1700
1701 Fix the MinGW64 and Cygwin-w32 builds
1702
1703 * src/w32fns.c (MYNOTIFYICONDATAW_V1_SIZE)
1704 (MYNOTIFYICONDATAW_V2_SIZE, MYNOTIFYICONDATAW_V3_SIZE): Define and
1705 use instead of the corresponding NOTIFYICONDATAW_Vn_SIZE macros,
1706 which cause trouble with MinGW42 headers. Ifdef away tray
1707 notifications code for Cygwin. Reported by Andy Moreton
1708 <andrewjmoreton@gmail.com>.
1709
1710 2015-11-12 Simen Heggestøyl <simenheg@gmail.com>
1711
1712 Enable sorting of JSON object keys when encoding
1713
1714 * lisp/json.el (json-encoding-object-sort-predicate): New variable
1715 for specifying a sorting predicate for JSON objects during encoding.
1716 (json--plist-to-alist): New utility function.
1717 (json-encode-hash-table): Re-use `json-encode-alist' when object keys
1718 are to be sorted.
1719 (json-encode-alist): Sort output by
1720 `json-encoding-object-sort-predicate, when set.
1721 (json-encode-plist): Re-use `json-encode-alist' when object keys are
1722 to be sorted.
1723 (json-pretty-print-buffer-ordered): New command to pretty print the
1724 buffer with object keys sorted alphabetically.
1725 (json-pretty-print-ordered): New command to pretty print the region
1726 with object keys sorted alphabetically.
1727
1728 * test/automated/json-tests.el (test-json-plist-to-alist)
1729 (test-json-encode-plist, test-json-encode-hash-table)
1730 (test-json-encode-alist-with-sort-predicate)
1731 (test-json-encode-plist-with-sort-predicate): New tests.
1732
1733 * etc/NEWS: Add an entry for the new commands.
1734
1735 2015-11-12 Juanma Barranquero <lekktu@gmail.com>
1736
1737 * test/automated/keymap-tests.el: New test file.
1738
1739 2015-11-12 Ken Raeburn <raeburn@raeburn.org>
1740
1741 Speed up x_real_pos_and_offsets using XCB
1742
1743 * src/xfns.c (x_real_pos_and_offsets) [USE_XCB]: Add XCB flavors of
1744 all X calls, and pipeline requests when possible, collecting results
1745 later. Eliminate use of x_catch_errors (and thus XSync) in XCB case.
1746
1747 2015-11-12 Ken Raeburn <raeburn@raeburn.org>
1748
1749 Enable use of XCB for checking window manager state
1750
1751 * src/xterm.c (get_current_wm_state) [USE_XCB]: Use XCB calls instead
1752 of XGetWindowProperty plus error-catching, since we can explicitly
1753 check for errors in the XCB version. This eliminates 3 XSync calls on
1754 top of the round-trip actually fetching the information.
1755
1756 2015-11-12 Ken Raeburn <raeburn@raeburn.org>
1757
1758 Detect XCB and save a connection handle
1759
1760 * configure.ac: If using X11, check for XCB libraries and header.
1761 * src/Makefile.in (XCB_LIBS): Define.
1762 (LIBX_EXTRA): Include it.
1763
1764 * src/xterm.h [USE_XCB]: Include X11/Xlib-xcb.h.
1765 (struct x_display_info) [USE_XCB]: Add an XCB connection handle field.
1766 * src/xterm.c (x_term_init) [USE_XCB]: Initialize the new field.
1767
1768 2015-11-12 Ken Raeburn <raeburn@raeburn.org>
1769
1770 Reduce some data dependencies between X calls
1771
1772 Gains nothing in the traditional-Xlib code, but more closely aligns
1773 with how the XCB version will work.
1774
1775 * src/xfns.c (x_real_pos_and_offsets): When translating coordinates,
1776 send coordinates (0,0) to the X server and add in the real coordinates
1777 after getting the response. Move XGetGeometry for outer window inside
1778 error-trapping block. Use DPY variable more, since it's available.
1779
1780 2015-11-12 Ken Raeburn <raeburn@raeburn.org>
1781
1782 Use color cache for creating bitmap
1783
1784 * src/image.c (x_create_bitmap_from_xpm_data) [ALLOC_XPM_COLORS]:
1785 Set attributes to use the caching color allocator. Initialize and
1786 free the cache.
1787
1788 2015-11-12 Eli Barzilay <eli@barzilay.org>
1789
1790 Add "^" to the interactive specs of `dired-next/previous-line'
1791
1792 * lisp/dired.el (dired-next-line, dired-previous-line): It makes sense
1793 to bind these commands to the arrow keys, and that means that they work
1794 better with a "^" in the `interactive' declaration so selection works
1795 as expected.
1796
1797 2015-11-11 Thomas Fitzsimmons <fitzsim@fitzsim.org>
1798
1799 Sync with soap-client repository, version 3.0.2
1800
1801 * soap-client.el: Bump version to 3.0.2.
1802
1803 * soap-client.el (soap-warning): Use format, not format-message.
1804
1805 * soap-client.el: Add cl-lib to Package-Requires. Require cl-lib.
1806 (soap-validate-xs-simple-type): Use cl-labels instead of cl-flet.
1807
1808 * soap-client.el: Support Emacs versions that do not have
1809 define-error.
1810
1811 * soap-inspect.el: Remove version header.
1812
1813 * soap-client.el, soap-inspect.el, jira2.el: Fix first line header
1814 format.
1815
1816 2015-11-11 Alan Mackenzie <acm@muc.de>
1817
1818 CC Mode: Respect users' settings of open-paren-in-column-0-is-defun-start
1819
1820 * lisp/progmodes/cc-engine.el (c-backward-single-comment)
1821 (c-backward-comments, c-invalidate-state-cache-1, c-parse-state-1)
1822 (c-guess-basic-syntax):
1823 Remove bindings of open-paren-in-column-0-is-defun-start to nil.
1824 (c-get-fallback-scan-pos): "New" function (existed several years ago).
1825 (c-parse-state-get-strategy): Reintroduce the 'BOD strategy, using
1826 c-get-fallback-scan-pos.
1827 (c-parse-state-1): Handle 'BOD strategy.
1828
1829 * lisp/progmodes/cc-mode.el (c-before-change, c-after-change)
1830 (c-font-lock-fontify-region): Remove bindings of
1831 open-paren-in-column-0-is-defun-start to nil.
1832
1833 * doc/misc/cc-mode.texi (Performance Issues)
1834 (Limitations and Known Bugs): Fix mix up between @chapter and @appendix.
1835
1836 2015-11-11 Artur Malabarba <bruce.connor.am@gmail.com>
1837
1838 * lisp/obarray.el: Fix shadowed variables.
1839 (obarray-map, obarray-remove, obarray-put, obarray-get):
1840 Change OBARRAY arg to OB to avoid shadowing ‘obarray’.
1841
1842 2015-11-11 Eli Zaretskii <eliz@gnu.org>
1843
1844 Avoid error in submitting a form with EWW
1845
1846 * lisp/gnus/mm-url.el (mm-url-form-encode-xwfu): Allow argument
1847 CHUNK to be nil. (Bug#21881)
1848
1849 2015-11-11 Nicolas Petton <nicolas@petton.fr>
1850
1851 Rename seq-p and map-p to seqp and mapp
1852
1853 * lisp/emacs-lisp/seq.el (seqp): New name.
1854 * lisp/emacs-lisp/map.el (mapp): New name.
1855 * doc/lispref/sequences.texi: Update the documentation for seqp.
1856 * test/automated/map-tests.el: Update the tests for mapp.
1857
1858 2015-11-11 Nicolas Petton <nicolas@petton.fr>
1859
1860 Rename obarray-p to obarrayp
1861
1862 * lisp/obarray.el (obarrayp): New name.
1863 * test/automated/obarray-tests.el: Update the tests.
1864
1865 2015-11-11 Nicolas Petton <nicolas@petton.fr>
1866
1867 Rename obarray-foreach to obarray-map
1868
1869 * lisp/obarray.el (obarray-map): New name.
1870 * test/automated/obarray-tests.el: Update the corresponding tests.
1871
1872 2015-11-11 Przemysław Wojnowski <esperanto@cumego.com>
1873
1874 New file with obarray functions
1875
1876 * lisp/obarray.el: Basic obarray functions extracted from abbrev.el.
1877 * test/automated/obarray-tests.el: New file.
1878
1879 2015-11-11 Eli Zaretskii <eliz@gnu.org>
1880
1881 Implement tray notifications for MS-Windows
1882
1883 * src/w32fns.c (MY_NOTIFYICONDATAW): New typedef.
1884 (NOTIFYICONDATAW_V1_SIZE, NOTIFYICONDATAW_V2_SIZE)
1885 (NOTIFYICONDATAW_V3_SIZE, NIF_INFO, NIIF_NONE, NIIF_INFO)
1886 (NIIF_WARNING, NIIF_ERROR, EMACS_TRAY_NOTIFICATION_ID)
1887 (EMACS_NOTIFICATION_MSG): New macros.
1888 (NI_Severity): New enumeration.
1889 (get_dll_version, utf8_mbslen_lim, add_tray_notification)
1890 (delete_tray_notification, Fw32_notification_notify)
1891 (Fw32_notification_close): New functions.
1892 (syms_of_w32fns): Defsubr functions exposed to Lisp. DEFSYM
1893 keywords used by w32-notification-notify.
1894
1895 * doc/lispref/os.texi (Desktop Notifications): Describe the native
1896 w32 tray notifications.
1897
1898 2015-11-11 Michael Albinus <michael.albinus@gmx.de>
1899
1900 Optimize `file-equal-p' and `file-in-directory-p' in Tramp
1901
1902 * lisp/net/tramp.el (tramp-handle-file-equal-p)
1903 (tramp-handle-file-in-directory-p): New defuns. Suggested by
1904 Harvey Chapman <hchapman@3gfp.com>.
1905
1906 * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
1907 * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
1908 * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
1909 * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): Use them.
1910
1911 2015-11-10 Karl Fogel <kfogel@red-bean.com>
1912
1913 * CONTRIBUTE: Encourage adding tests.
1914
1915 Based on this post from John Wiegley:
1916
1917 From: "John Wiegley" <johnw@newartisans.com>
1918 Subject: Re: [Emacs-diffs] master 1f02cbe: Fix bug#21766 and add test
1919 To: Juanma Barranquero <lekktu@gmail.com>
1920 Cc: emacs-diffs@gnu.org, bruce.connor.am@gmail.com,
1921 emacs-devel <emacs-devel@gnu.org>
1922 Date: Wed, 28 Oct 2015 18:45:29 -0700
1923 Message-ID: <m2y4emqwg6.fsf@newartisans.com>
1924
1925 https://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02372.html
1926
1927 2015-11-10 David Reitter <david.reitter@gmail.com>
1928
1929 Avoid creating notification objects when possible
1930
1931 * src/nsterm.m (windowWillEnterFullScreen, windowWillExitFullScreen:)
1932 (windowDidEnterFullScreen, windowDidExitFullScreen): Provide convenience
1933 functions that do not require a notification object. When needed,
1934 define NSWindowDidEnterFullScreenNotification to allow for compilation
1935 on OS X 10.6.8.
1936
1937 2015-11-10 Paul Eggert <eggert@cs.ucla.edu>
1938
1939 Move INTEGER_TO_CONS body out of .h file
1940
1941 * src/data.c (INTBIG_TO_LISP): New macro, with most
1942 of the contents of the old INTEGER_TO_CONS.
1943 (intbig_to_lisp, uintbig_to_lisp): New functions.
1944 * src/lisp.h (INTEGER_TO_CONS):
1945 Simplify by using EXPR_SIGNED and the new functions.
1946 This shrinks code size a bit, and makes it easier to
1947 put a breakpoint on handling of large integers.
1948
1949 2015-11-10 Paul Eggert <eggert@cs.ucla.edu>
1950
1951 Merge from gnulib
1952
1953 This incorporates:
1954 2015-11-10 intprops: new public macro EXPR_SIGNED
1955 2015-11-10 intprops: fix typo in clang port
1956 * lib/intprops.h: Copy from gnulib.
1957
1958 2015-11-10 Paul Eggert <eggert@cs.ucla.edu>
1959
1960 Spelling fixes
1961
1962 * lisp/net/soap-inspect.el (soap-inspect-xs-simple-type):
1963 Fix misspelling in output.
1964
1965 2015-11-10 Artur Malabarba <bruce.connor.am@gmail.com>
1966
1967 * doc/lispref/variables.texi (Directory Local Variables):
1968 Document dir-locals wildcards.
1969
1970 * lisp/files.el (dir-locals-file): Point to Info node.
1971
1972 * doc/emacs/custom.texi (Directory Variables):
1973 Document dir-locals wildcards.
1974
1975 * etc/NEWS: Document new functionality.
1976
1977 2015-11-10 Artur Malabarba <bruce.connor.am@gmail.com>
1978
1979 * lisp/files.el: Don't allow customization of dir-locals sorting.
1980 In retrospect, this is not a good idea for the same reason that
1981 `dir-locals-file' is a defconst, because it is important that this
1982 behaviour be "uniform across different environments and users".
1983 Sure, the user can still change the sorting with a hack, but we
1984 shouldn't encourage them to change it.
1985 (dir-locals--all-files): Return list in the order returned by
1986 `file-expand-wildcards'.
1987 (file-expand-wildcards): Document the sorting predicate used.
1988 (dir-locals-sort-predicate): Delete variable.
1989
1990 2015-11-10 Artur Malabarba <bruce.connor.am@gmail.com>
1991
1992 * lisp/files.el (dir-locals-read-from-file): Better handle errors.
1993
1994 * lisp/isearch.el (search-default-regexp-mode): Change default value.
1995
1996 2015-11-10 Artur Malabarba <bruce.connor.am@gmail.com>
1997
1998 * lisp/files.el (dir-locals-find-file): Don't stop at unreadable files.
1999 `locate-dominating-file' will now keep looking if the files it finds in
2000 a given directory are unreadable (or not files).
2001
2002 2015-11-10 Artur Malabarba <bruce.connor.am@gmail.com>
2003
2004 * lisp/files.el (dir-locals-file): Allow wildcards.
2005 (dir-locals-find-file, dir-locals-collect-variables)
2006 (dir-locals-read-from-file): Update accordingly.
2007 (hack-dir-local-variables): Rename a local variable.
2008
2009 * lisp/files-x.el (modify-dir-local-variable): Update accordingly.
2010
2011 * lisp/help-fns.el (describe-variable): Update accordingly.
2012
2013 * .gitignore: Add .dir-locals?.el.
2014
2015 2015-11-10 Artur Malabarba <bruce.connor.am@gmail.com>
2016
2017 * lisp/emacs-lisp/map.el (map-merge-with): New function.
2018
2019 * test/automated/map-tests.el (test-map-merge-with): New test.
2020
2021 2015-11-09 Karl Fogel <kfogel@red-bean.com>
2022
2023 Fix some recently-perturbed bookmark autoloads
2024
2025 * lisp/bookmark.el (bookmark-set-internal): Remove unnecessary autoload.
2026 (bookmark-set): Restore autoload.
2027 (bookmark-set-no-overwrite): Add autoload.
2028
2029 Thanks to Juanma Barranquero for noticing the autoload problems
2030 introduced by my recent commit adding/changing the above functions
2031 (Sun Nov 8 14:16:43 2015 -0500, git commit 3812e17978).
2032
2033 2015-11-09 Noah Friedman <friedman@splode.com>
2034
2035 * etc/emacs-buffer.gdb (ydump-buffer): Handle case where gap is at
2036 the start of buffer. I don't recall if older versions of gdb were
2037 less strict but you cannot dump a 0-length range in gdb 7.9.1.
2038
2039 2015-11-09 Dmitry Gutov <dgutov@yandex.ru>
2040
2041 * lisp/progmodes/project.el: Update Commentary.
2042
2043 Merge branch 'project-next'
2044
2045 2015-11-09 Dmitry Gutov <dgutov@yandex.ru>
2046
2047 Fold `project-ask-user' into `project-current'
2048
2049 * lisp/progmodes/project.el (project-find-functions):
2050 Remove `project-ask-user'.
2051 (project-ask-user): Remove function and the corresponding
2052 `project-roots' implementation.
2053 (project-current): Add a new argument, MAYBE-PROMPT. Prompt the
2054 user in case there's no project in the current directory. Update
2055 all callers.
2056
2057 2015-11-09 Karl Fogel <kfogel@red-bean.com>
2058
2059 When VC detects a conflict, specify which file
2060
2061 * lisp/vc/vc.el (vc-message-unresolved-conflicts): New function.
2062 * lisp/vc/vc-svn.el (vc-svn-find-file-hook):
2063 * lisp/vc/vc-hg.el (vc-hg-find-file-hook):
2064 * lisp/vc/vc-bzr.el (vc-bzr-find-file-hook):
2065 * lisp/vc/vc-git.el (vc-git-find-file-hook): Use above new function
2066 to display a standard message that specifies the conflicted file.
2067
2068 Before this change, the message VC used for indicating a conflicted
2069 file was just "There are unresolved conflicts in this file" without
2070 naming the file (and this language was duplicated in several places).
2071 After this change, it's "There are unresolved conflicts in file FOO"
2072 (and this language is now centralized in one function in vc.el).
2073
2074 Justification: It's important for the message to name the conflicted
2075 file because the moment when VC realizes a file is conflicted does not
2076 always come interactively. For example, some people automatically
2077 find a set of Org Mode files on startup, and may keep those .org files
2078 under version control. If any of the files are conflicted, the user
2079 just sees some messages fly by, and might later check the "*Messages*"
2080 buffer to find out what files were conflicted. I'm not saying this
2081 happened to me or anything; it's a purely hypothetical example.
2082
2083 2015-11-09 Eli Zaretskii <eliz@gnu.org>
2084
2085 Fix assertion violation in define-key
2086
2087 * src/keymap.c (store_in_keymap): Don't use XFASTINT on non-character
2088 objects. Reported by Drew Adams <drew.adams@oracle.com>
2089 and Juanma Barranquero <lekktu@gmail.com>.
2090
2091 2015-11-09 Dima Kogan <dima@secretsauce.net>
2092
2093 Fix a memory leak in GC of font cache
2094
2095 * src/alloc.c (compact_font_cache_entry): Don't GC unmarked font
2096 entities if some of the fonts it references are marked. This
2097 plugs a memory leak. (Bug#21556)
2098
2099 2015-11-09 Paul Eggert <eggert@cs.ucla.edu>
2100
2101 Use INT_ADD_WRAPV etc. to check integer overflow
2102
2103 * src/alloc.c (xnmalloc, xnrealloc, xpalloc, Fmake_string):
2104 * src/buffer.c (record_overlay_string, overlay_strings):
2105 * src/casefiddle.c (casify_object):
2106 * src/ccl.c (Fccl_execute_on_string):
2107 * src/character.c (char_width, c_string_width, lisp_string_width)
2108 (count_size_as_multibyte, string_escape_byte8):
2109 * src/coding.c (coding_alloc_by_realloc, produce_chars):
2110 * src/data.c (arith_driver):
2111 * src/dispnew.c (realloc_glyph_pool, init_display):
2112 * src/editfns.c (styled_format):
2113 * src/fns.c (Ffillarray):
2114 * src/ftfont.c (ftfont_shape_by_flt):
2115 * src/gnutls.c (gnutls_hex_string):
2116 * src/gtkutil.c (get_utf8_string):
2117 * src/image.c (x_to_xcolors, x_detect_edges, png_load_body):
2118 * src/keymap.c (Fkey_description):
2119 * src/lisp.h (SAFE_ALLOCA_LISP):
2120 * src/term.c (encode_terminal_code):
2121 * src/tparam.c (tparam1):
2122 * src/xselect.c (x_property_data_to_lisp):
2123 * src/xsmfns.c (smc_save_yourself_CB):
2124 * src/xterm.c (x_term_init):
2125 When checking for integer overflow, prefer INT_MULTIPLY_WRAPV to
2126 more-complicated code involving division and/or
2127 INT_MULTIPLY_OVERFLOW, and similarly for INT_ADD_WRAPV and
2128 subtraction and/or INT_ADD_OVERFLOW.
2129 * src/casefiddle.c (casify_object): Simplify multibyte size check.
2130 * src/character.c: Remove some obsolete ‘#ifdef emacs’s.
2131 * src/data.c (arith_driver): Also check for division overflow,
2132 as that’s now possible given that the accumulator can now contain
2133 any Emacs integer.
2134 * src/lisp.h (lisp_word_count): Remove; no longer used.
2135
2136 2015-11-08 Dmitry Gutov <dgutov@yandex.ru>
2137
2138 Make sure that the ignore file exists
2139
2140 * lisp/vc/vc.el (vc-default-ignore-completion-table):
2141 Make sure that the ignore file exists.
2142
2143 2015-11-08 Michael Sperber <mike@xemacs.org>
2144
2145 * gnus-sum.el (gnus-summary-backend-map): Bind B-backspace to
2146 `gnus-summary-delete-article` in a way that also works on XEmacs.
2147
2148 2015-11-08 Simen Heggestøyl <simenheg@gmail.com>
2149
2150 Add support for retrieving paths to JSON elements
2151
2152 Add support for retrieving the path to a JSON element. This can for
2153 instance be useful to retrieve paths in deeply nested JSON
2154 structures.
2155
2156 * lisp/json.el (json-pre-element-read-function)
2157 (json-post-element-read-function): New variables to hold pre- and post
2158 read callback functions for `json-read-array' and `json-read-object'.
2159 (json--path): New variable used internally by `json-path-to-position'.
2160 (json--record-path, json--check-position): New functions used
2161 internally by `json-path-to-position'.
2162 (json-path-to-position): New function for retrieving the path to a
2163 JSON element at a given position.
2164 (json-read-object, json-read-array): Call
2165 `json-pre-element-read-function' and `json-post-element-read-function'
2166 when set.
2167
2168 * test/automated/json-tests.el (test-json-path-to-position-with-objects)
2169 (test-json-path-to-position-with-arrays)
2170 (test-json-path-to-position-no-match): New tests for
2171 `json-path-to-position'.
2172
2173 2015-11-08 Karl Fogel <kfogel@red-bean.com>
2174
2175 * etc/NEWS: Mention new `bookmark-set-no-overwrite'.
2176
2177 This really should been part of my previous commit
2178 (Sun Nov 8 14:16:43 2015 -0500, git commit 3812e17978).
2179
2180 2015-11-08 Karl Fogel <kfogel@red-bean.com>
2181
2182 Offer non-overwrite bookmark setter (Bug#15746)
2183
2184 * lisp/bookmark.el (bookmark-set-internal): New helper function to do
2185 what `bookmark-set' used to do, but with more choices for overwrite
2186 vs push, and with minor changes to the interactive prompt format.
2187 (bookmark-set): Rewrite as wrapper around above.
2188 If overwriting, inform the user of that in the prompt.
2189 (bookmark-set-no-overwrite): New function, also done as wrapper.
2190 Bind to "M" in `ctl-x-r-map' autoloads.
2191 (bookmark-map): Similarly bind "M" here.
2192
2193 2015-11-08 Paul Eggert <eggert@cs.ucla.edu>
2194
2195 * src/unexelf.c (NEW_PROGRAM_H): Remove unused macro (Bug#20614).
2196
2197 2015-11-08 Alan Modra <amodra@gmail.com>
2198
2199 ELF unexec: Don't insert a new section
2200
2201 Reuse the .bss section instead, making it SHT_PROGBITS. This way we
2202 don't need to mess with symbol st_shndx, or section sh_link and
2203 sh_info.
2204
2205 This does lead to eu-elflint complaints about symbols defined in .bss
2206 with a needed version, because normally it is undefined symbols that
2207 have needed versions; Defined symbols have version definitions.
2208 The exception is symbols defined by the linker in .dynbss for
2209 variables copied from a shared library in order to avoid text
2210 relocations, with copy relocs to copy their initial values from the
2211 shared library. These symbols are both defined and have needed
2212 versions, and eu-elflink only expects to see them in SHT_NOBITS
2213 sections. Of course there is no real problem with having such symbols
2214 in SHT_PROGBITS sections. glibc ld.so handles them fine.
2215
2216 * src/unexelf.c: Delete outdated comments.
2217 (PATCH_INDEX): Delete.
2218 (find_section): Delete.
2219 (unexec): Don't add a new section. Instead reuse the last bss
2220 section, extending it to cover dumped data. Make bss sections
2221 SHT_PROGBITS. Remove all patching of sh_link, sh_info and
2222 st_shndx. Rename bss sections.
2223
2224 2015-11-08 Alan Modra <amodra@gmail.com>
2225
2226 ELF unexec: Drive from PT_LOAD header rather than sections
2227
2228 This rewrites bss handling in the ELF unexec code. Finding bss
2229 sections by name results in complicated code that
2230 - does not account for all names of possible bss sections,
2231 - assumes specific ordering of bss sections,
2232 - can wrongly choose a SHT_NOBITS section not in the bss segment,
2233 - incorrectly calculates bss size (no accounting for alignment gaps),
2234 - assumes .data and .bss are in the same segment.
2235
2236 All of these problems and more are solved by finding the bss segment
2237 in PT_LOAD headers, ie. the address range included in p_memsz but not
2238 p_filesz of the last PT_LOAD header, then matching SHT_NOBITS sections
2239 in that address range.
2240
2241 * src/unexelf.c: Delete old ppc comment.
2242 (OLD_PROGRAM_H): Define.
2243 (round_up): Delete.
2244 (unexec): Don't search for bss style sections by name. Instead,
2245 use the last PT_LOAD header address range covered by p_memsz
2246 but not p_filesz and match any SHT_NOBITS section in that
2247 address range. Simplify initialisation of section header vars.
2248 Don't assume that section headers are above bss segment. Move
2249 copying of bss area out of section loop. Align .data2 section
2250 to 1, since it now covers the entire bss area. For SHT_NOBITS
2251 sections in the bss segment, leave sh_addr and sh_addralign
2252 unchanged, but correct sh_offset. Clear memory corresponding
2253 to SHT_NOBITS .plt section. Delete comment and hacks for
2254 sections partly overlapping bss range now that the full range
2255 is properly calculated. Delete now dead .sbss code.
2256 (Bug#20614)
2257
2258 2015-11-08 Alan Modra <amodra@gmail.com>
2259
2260 ELF unexec: R_*_NONE relocs
2261
2262 These should be ignored on all targets.
2263
2264 * src/unexelf.c (unexec): Ignore R_*_NONE relocs for any target,
2265 not just Alpha. Comment on reloc size assumption.
2266
2267 2015-11-08 Alan Modra <amodra@gmail.com>
2268
2269 ELF unexec: _OBJC_ symbols in bss sections
2270
2271 This code assumed that there was only one bss section. Rather than
2272 checking for a particular index, check the section type. Also, handle
2273 the possibility that the section was SHT_NOBITS originally and is
2274 unchanged, in which case no clearing is needed (and sh_offset isn't
2275 necessarily valid, which can lead to a wild memset).
2276
2277 * src/unexelf.c (unexec): Properly handle _OBJC_ symbols in
2278 bss sections.
2279
2280 2015-11-08 Alan Modra <amodra@gmail.com>
2281
2282 ELF unexec: Symbol table patching
2283
2284 No st_shndx value larger than SHN_LORESERVE should be changed.
2285 * src/unexelf.c (unexec): Don't adjust any st_shndx larger than
2286 SHN_LORESERVE. Error on SHN_XINDEX.
2287
2288 2015-11-08 Alan Modra <amodra@gmail.com>
2289
2290 ELF unexec: Merge Alpha and MIPS COFF debug handling
2291
2292 * src/unexelf.c (unexec): Merge Alpha and MIPS COFF debug handling.
2293 Don't find .mdebug section index, find the section in the loop.
2294 Allow for unlikely possibility that .mdebug is located at sh_offset
2295 before bss segment, by calculating move from difference in
2296 sh_offset rather than just assuming new_data2_size. Simplify
2297 cbLineOffset handling.
2298
2299 2015-11-08 Alan Modra <amodra@gmail.com>
2300
2301 ELF unexec: Tidy code
2302
2303 Separate out some of the more mechanical changes so following patches
2304 are smaller.
2305
2306 * src/unexelf.c (unexec): Rearrange initialisation of program
2307 header vars. Use pointer vars in loops rather than indexing
2308 section header array via macros. Simplify _OBJC_ sym code
2309 and reloc handling code.
2310
2311 2015-11-08 Alan Modra <amodra@gmail.com>
2312
2313 ELF unexec: Correct section header index
2314
2315 First a small fix. The code incorrectly uses "NEW_SECTION_H (n)" when
2316 it should have been using "NEW_SECTION_H (nn)" to find the name of the
2317 section currently being processed. Of course, before the bss
2318 sections, n and nn have the same value, so this doesn't matter except
2319 in the case of .sbss. For .sbss this probably meant .bss (most likely
2320 the next section) was copied from memory. A later patch removes the
2321 bogus .sbss handling anyway.
2322
2323 * src/unexelf.c (unexec): Use correct index to look up names.
2324
2325 2015-11-08 Michael Albinus <michael.albinus@gmx.de>
2326
2327 Fix Bug#21841
2328
2329 * lisp/filenotify.el (file-notify--rm-descriptor):
2330 Use `descriptor' instead of computing its value.
2331 (file-notify--descriptor): Additional argument FILE. Adapt all callees.
2332 (file-notify-rm-watch): Use `descriptor' when calling file name handler.
2333 (Bug#21841)
2334
2335 2015-11-08 Dmitry Gutov <dgutov@yandex.ru>
2336
2337 Remove dirs in vc project roots from the the vc project library roots
2338
2339 * lisp/progmodes/project.el (project-library-roots):
2340 Remove directories inside the project roots from the result.
2341 (http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg00536.html)
2342
2343 2015-11-07 Dmitry Gutov <dgutov@yandex.ru>
2344
2345 Move and rename xref-find-regexp to the project package
2346
2347 * lisp/progmodes/project.el (project-find-regexp)
2348 (project--read-regexp)
2349 (project--find-regexp-in): New functions.
2350
2351 * lisp/progmodes/xref.el (xref--find-xrefs): Extract from
2352 xref--show-xrefs. Use in existing callers in place of that
2353 function.
2354 (xref--show-xrefs): Only do the "show" part.
2355 (xref-find-regexp): Rename, more or less, to
2356 project-or-libraries-find-regexp.
2357
2358 2015-11-06 Dmitry Gutov <dgutov@yandex.ru>
2359
2360 Abolish temporary buffer management for xref
2361
2362 * lisp/progmodes/xref.el (xref--temporary-buffers)
2363 (xref--current)
2364 (xref--inhibit-mark-current)
2365 (xref--mark-selected): Remove. Remove all references.
2366 (xref--show-xrefs): Do not construct the
2367 list of the temporary buffers, nor pass it along.
2368
2369 2015-11-06 Dmitry Gutov <dgutov@yandex.ru>
2370
2371 Rename "search path" to "library roots"
2372
2373 * lisp/emacs-lisp/cl-seq.el (cl-set-difference): Retain the order
2374 of the elements from CL-LIST1.
2375
2376 * test/automated/cl-lib-tests.el (cl-lib-test-set-functions):
2377 Update WRT to the above change.
2378
2379 * lisp/progmodes/project.el (project-search-path-function): Rename
2380 to project-library-roots-function, update the documentation and
2381 references.
2382 (project-search-path): Likewise, to project-library-roots.
2383 (project-roots): Clarify documentation.
2384 (project-vc-search-path): Likewise, to project-vc-library-roots.
2385 (project-library-roots): In addition to the renames, thread the
2386 results through file-name-as-directory.
2387 (project-prune-directories): Accept a variable number of
2388 arguments. Rename to project-combine-directories.
2389 (project-subtract-directories): New function.
2390
2391 * lisp/progmodes/elisp-mode.el (elisp--xref-find-references):
2392 Append project-roots and project-library-roots together.
2393
2394 * lisp/progmodes/etags.el (etags--xref-find-references): Ditto.
2395
2396 2015-11-08 Paul Eggert <eggert@cs.ucla.edu>
2397
2398 Prefer xpalloc to doubling buffers by hand
2399
2400 * src/lread.c (grow_read_buffer): New function, which uses xpalloc.
2401 (read1): Use it for simplicity.
2402 * src/macros.c (store_kbd_macro_char):
2403 * src/minibuf.c (read_minibuf_noninteractive):
2404 * src/term.c (encode_terminal_code):
2405 * src/xrdb.c (magic_db):
2406 Prefer xpalloc to growing buffers by hand.
2407 This doesn’t fix any bugs, but simplifies the code a bit.
2408
2409 2015-11-08 Paul Eggert <eggert@cs.ucla.edu>
2410
2411 Merge from gnulib
2412
2413 This incorporates:
2414 2015-11-05 timespec-sub: fix overflow bug; add tests
2415 2015-11-04 intprops: revise _WRAPV macros, revert _OVERFLOW
2416 2015-11-03 intprops: add parentheses
2417 * lib/intprops.h, lib/timespec-add.c, lib/timespec-sub.c:
2418 Copy from gnulib.
2419
2420 2015-11-07 David Reitter <david.reitter@gmail.com>
2421
2422 Provide NS notification objects where required to eliminate warnings
2423
2424 * nsterm.m (windowDidResize:, toggleFullScreen:):
2425 Call notification functions with notification objects
2426 as per delegate APIs.
2427
2428 2015-11-07 Noam Postavsky <npostavs@users.sourceforge.net>
2429
2430 Add test for bug #21824
2431
2432 * test/automated/buffer-tests.el: New file.
2433 (overlay-modification-hooks-message-other-buf): New test.
2434
2435 2015-11-07 Kelvin White <kwhite@gnu.org>
2436
2437 * lisp/erc/erc-pcomplete.el (pcomplete-erc-nicks): Fix bug#18771.
2438
2439 2015-11-07 David Reitter <david.reitter@gmail.com>
2440
2441 Ignore fullscreen exit notifications on NS when frame is dead
2442
2443 * nsterm.m (windowDidResize:, windowWillExitFullScreen:)
2444 (windowDidExitFullScreen:): Return if frame is dead.
2445 These functions may be called when a fullscreen frame
2446 is closed; they are called before, not after.
2447
2448 May address Bug#21428.
2449
2450 2015-11-07 Eli Zaretskii <eliz@gnu.org>
2451
2452 Speed up lookup in redisplay--variables
2453
2454 * lisp/frame.el (redisplay--variables): Make it a hash-table.
2455
2456 * src/xdisp.c (maybe_set_redisplay): Access redisplay--variables
2457 as a hash-table. This speeds up this function by an order of
2458 magnitude: where previously a setq was slowed down by 100% by
2459 introducing the maybe_set_redisplay test, it is now only 5%
2460 slower.
2461 (syms_of_xdisp) <redisplay--variables>: Doc fix.
2462
2463 2015-11-07 Artur Malabarba <bruce.connor.am@gmail.com>
2464
2465 * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a bug.
2466
2467 The defsubst was being created as:
2468 (cl-defsubst name (args) ("DOC") ...)
2469
2470 * test/automated/cl-lib-tests.el (cl-lib-struct-constructors):
2471 Add test.
2472
2473 2015-11-07 Mihai Olteanu <mihai_olteanu@fastmail.fm> (tiny change)
2474
2475 Update doc string of hexl-mode
2476
2477 * lisp/hexl.el (hexl-mode): Doc fix. (Bug#21800)
2478
2479 2015-11-07 Eli Zaretskii <eliz@gnu.org>
2480
2481 Fix error in copy-abbrev-table
2482
2483 * lisp/abbrev.el (define-abbrev): Don't erase the :abbrev-table-modiff
2484 property of the abbrev-table. (Bug#21828)
2485
2486 * test/automated/abbrev-tests.el: New file.
2487
2488 2015-11-07 Michael Albinus <michael.albinus@gmx.de>
2489
2490 Add test to auto-revert-tests.el for Bug#21841
2491
2492 * test/automated/auto-revert-tests.el
2493 (auto-revert-test01-auto-revert-several-files): New test.
2494 (auto-revert-test02-auto-revert-tail-mode)
2495 (auto-revert-test03-auto-revert-mode-dired): Rename them.
2496
2497 2015-11-07 Martin Rudalics <rudalics@gmx.at>
2498
2499 * doc/lispref/windows.texi (Coordinates and Windows): Fix typo.
2500
2501 2015-11-07 Martin Rudalics <rudalics@gmx.at>
2502
2503 In x_consider_frame_title don't set title of tooltip frames
2504
2505 * src/xdisp.c (x_consider_frame_title): Return immediately for
2506 tooltip frames to avoid displaying empty tooltips.
2507
2508 2015-11-06 Anders Lindgren <andlind@gmail.com>
2509
2510 Fixed NextStep fullscreen problem (bug#21770).
2511
2512 * src/nsterm.m (ns_constrain_all_frames): Don't constrain
2513 fullscreen frames.
2514
2515 2015-11-06 Eli Zaretskii <eliz@gnu.org>
2516
2517 Ensure redisplay after evaluation
2518
2519 * lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp):
2520 Revert last change.
2521 * lisp/frame.el (redisplay--variables): Populate the
2522 redisplay--variables list.
2523 * src/xdisp.c (maybe_set_redisplay): New function.
2524 (syms_of_xdisp) <redisplay--variables>: New variable.
2525 * src/window.h (maybe_set_redisplay): Declare prototype.
2526 * src/data.c (set_internal): Call maybe_set_redisplay. (Bug#21835)
2527
2528 2015-11-06 Artur Malabarba <bruce.connor.am@gmail.com>
2529
2530 * test/automated/subr-tests.el (subr-test-when): Fix again.
2531
2532 2015-11-06 Eli Zaretskii <eliz@gnu.org>
2533
2534 Don't invoke overlay modification hooks in wrong buffer
2535
2536 * src/buffer.c (report_overlay_modification): When called with
2537 AFTER non-zero, don't invoke overlay modification hooks if the
2538 buffer recorded in last_overlay_modification_hooks is different
2539 from the current buffer. (Bug#21824)
2540
2541 2015-11-06 Juanma Barranquero <lekktu@gmail.com>
2542
2543 * admin/notes/repo: Fix a few obsolete references to Bazaar.
2544
2545 2015-11-06 Artur Malabarba <bruce.connor.am@gmail.com>
2546
2547 * test/automated/subr-tests.el (subr-test-when): Fix test.
2548
2549 2015-11-06 Martin Rudalics <rudalics@gmx.at>
2550
2551 Avoid division by zero crash observed by Yuan MEI
2552
2553 See http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg00194.html.
2554
2555 * src/dispnew.c (required_matrix_height, required_matrix_width):
2556 Avoid division by zero.
2557 * src/xterm.c (x_term_init): Init dpyinfo->smallest_font_height and
2558 dpyinfo->smallest_char_width to 1.
2559
2560 2015-11-06 Eli Zaretskii <eliz@gnu.org>
2561
2562 Ensure redisplay after "C-x C-e"
2563
2564 * lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp): Make sure
2565 redisplay happens to account for any side effects of the evaluated
2566 sexp. (Bug#21835)
2567
2568 2015-11-06 Michael Albinus <michael.albinus@gmx.de>
2569
2570 Skip some file notification tests for cygwin
2571
2572 * test/automated/file-notify-tests.el (file-notify--test-with-events):
2573 Remove argument TIMEOUT. Adapt all callees.
2574 (file-notify-test02-events, file-notify-test04-file-validity):
2575 Skip for cygwin. (Bug#21804)
2576
2577 2015-11-05 Stephen Leake <stephen_leake@stephe-leake.org>
2578
2579 * lisp/progmodes/xref.el: Require semantic/symref during compilation.
2580
2581 2015-11-05 Daiki Ueno <ueno@gnu.org>
2582
2583 Suppress redundant Pinentry startup messages
2584
2585 * lisp/net/pinentry.el (pinentry-start): Add optional QUIET argument.
2586 * lisp/epg.el: Declare `pinentry-start'.
2587 (epg--start): Call `pinentry-start' with QUIET argument set.
2588
2589 2015-11-05 Xue Fuqiao <xfq.free@gmail.com>
2590
2591 * doc/emacs/ack.texi (Acknowledgments): Updates.
2592
2593 2015-11-05 Juanma Barranquero <lekktu@gmail.com>
2594
2595 * test/automated/elisp-mode-test.el: Silence some run-time warnings.
2596 (xref-elisp-deftest): Bind `find-file-suppress-same-file-warnings' to t.
2597
2598 2015-11-05 Tassilo Horn <tsdh@gnu.org>
2599
2600 * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist):
2601 Add prettification support for \times.
2602
2603 2015-11-05 Juanma Barranquero <lekktu@gmail.com>
2604
2605 * test/automated/process-tests.el: Skip tests when bash is unavailable.
2606 (process-test-sentinel-accept-process-output)
2607 (process-test-sentinel-sit-for): skip-unless bash executable found.
2608
2609 2015-11-05 Eli Zaretskii <eliz@gnu.org>
2610
2611 Add test for bug #21831
2612
2613 * test/automated/process-tests.el
2614 (start-process-should-not-modify-arguments): New test. (Bug#21831)
2615 Suggested by Nicolas Richard <youngfrog@members.fsf.org>
2616
2617 2015-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
2618
2619 * lisp/emacs-lisp/eieio-compat.el: Typo caught by tests.
2620
2621 (eieio--generic-static-object-generalizer): Fix typo.
2622 * test/automated/eieio-tests.el: Byte-compile it again. It looks
2623 like the underlying cause of bug#17852 was fixed in the mean time.
2624
2625 2015-11-04 Artur Malabarba <bruce.connor.am@gmail.com>
2626
2627 Revert "* lisp/subr.el (when): Use `macroexp-progn'"
2628
2629 This reverts commit 8e843831eaf271801836b7a3e4dd3b4fb0bb72b8.
2630 It breaks bootstrapping (duh).
2631
2632 2015-11-04 Artur Malabarba <bruce.connor.am@gmail.com>
2633
2634 * lisp/files.el (report-errors): Obsolete.
2635
2636 (normal-mode, hack-local-variables, dir-locals-find-file):
2637 Use `with-demoted-errors' instead.
2638
2639 2015-11-04 Artur Malabarba <bruce.connor.am@gmail.com>
2640
2641 * lisp/subr.el (when): Use `macroexp-progn'.
2642
2643 * test/automated/subr-tests.el (subr-test-when): New test.
2644
2645 2015-11-04 Juanma Barranquero <lekktu@gmail.com>
2646
2647 * lisp/progmodes/xref.el: Doc fixes.
2648 (xref-make-file-location, xref-make-buffer-location, xref-make)
2649 (xref-make-bogus-location, xref-make-match): Add cross-references.
2650 (xref--insert-xrefs): Fix typo in docstring.
2651
2652 2015-11-04 Anders Lindgren <andlind@gmail.com>
2653
2654 Render fringe bitmaps correctly on NextStep (bug#21301)
2655
2656 The fringe bitmaps were inverted, the background was not transparent,
2657 the image data was horizontally mirrored, and periodic fringe bitmaps
2658 were not supported.
2659
2660 * src/nsimage.m ([EmacsImage initFromXBM:width:height:fg:bg:]):
2661 When both background and foreground colors are 0, set the background
2662 alpha channel to 0 (making the background transparent). When
2663 copying the image data, do this from the most significant bit
2664 (leftmost) to the least (rightmost), to avoid mirroring.
2665 * src/nsterm.m (ns_draw_fringe_bitmap): Don't invert the image bits.
2666 Add support for periodic images (e.g. the empty line indicator).
2667
2668 2015-11-03 Michael Heerdegen <michael_heerdegen@web.de>
2669
2670 * lisp/emacs-lisp/pcase.el (pcase): Tweak docstring.
2671
2672 2015-11-03 Nicolas Petton <nicolas@petton.fr>
2673
2674 * admin/MAINTAINERS: Add seq-tests.el, map-tests.el, and thunk-tests.el.
2675
2676 * admin/MAINTAINERS: Add thunk.el.
2677
2678 2015-11-03 Jay Belanger <jay.p.belanger@gmail.com>
2679
2680 * lisp/calc/calc (calc-bug-address): Change maintainer address.
2681
2682 2015-11-03 Michael Albinus <michael.albinus@gmx.de>
2683
2684 Fix a stupid error in gfilenotify.c
2685
2686 * src/gfilenotify.c (dir_monitor_callback): Cancel monitor only,
2687 if we've got a `deleted' signal AND the file name is the watched one.
2688
2689 2015-11-03 Stephen Leake <stephen_leake@stephe-leake.org>
2690
2691 Fix Bug#21816; case insensitive file system in elisp-mode-tests.el
2692
2693 * test/automated/elisp-mode-tests.el (xref-elisp-test-run):
2694 Use case-insensitive string compare for file names.
2695 (emacs-test-dir): Add 'downcase' to cause case differences (at
2696 least on my system).
2697
2698 2015-11-02 Juanma Barranquero <lekktu@gmail.com>
2699
2700 flymake-tests.el (warning-predicate-rx-gcc): Fix check
2701
2702 * test/automated/flymake-tests.el (warning-predicate-rx-gcc):
2703 Also check that "make" is available, not just "gcc".
2704
2705 2015-11-02 Ken Brown <kbrown@cornell.edu>
2706
2707 Document behavior of collation on Cygwin
2708
2709 * test/automated/fns-tests.el (fns-tests-collate-sort): Mark as
2710 expected failure on Cygwin.
2711 * doc/lispref/strings.texi (Text Comparison): Document that
2712 punctuation and whitespace are not ignored for sorting on Cygwin.
2713
2714 2015-11-02 Dani Moncayo <dmoncayo@gmail.com>
2715
2716 * build-aux/msys-to-w32: Prevent double slashes in w32 path list.
2717
2718 2015-11-01 Glenn Morris <rgm@gnu.org>
2719
2720 * lisp/progmodes/f90.el (f90-no-block-limit): Add associate.
2721 (Bug#21794)
2722 * test/automated/f90.el (f90-test-bug21794): New test.
2723
2724 2015-11-01 Juanma Barranquero <lekktu@gmail.com>
2725
2726 Fix incompatibility with TCC in test for bug#18745
2727
2728 * test/automated/process-tests.el (process-test-quoted-batfile):
2729 Remove spaces unrelated to the bug being tested.
2730
2731 2015-11-01 Michael Albinus <michael.albinus@gmx.de>
2732
2733 Improve completion in tramp-gvfs.el
2734
2735 * lisp/net/tramp-gvfs.el (tramp-zeroconf-parse-device-names):
2736 Rename from `tramp-zeroconf-parse-service-device-names'.
2737 (tramp-zeroconf-parse-webdav-device-names): Remove. Code merged
2738 with `tramp-zeroconf-parse-device-names'.
2739 (tramp-gvfs-parse-device-names): New defun.
2740 (top): Use it when `tramp-zeroconf-parse-device-names' is not
2741 applicable.
2742
2743 * lisp/net/tramp.el (tramp-set-completion-function): The argument
2744 could also be a zeroconf service type.
2745
2746 2015-10-31 Thomas Fitzsimmons <fitzsim@fitzsim.org>
2747
2748 * lisp/net/ntlm.el: Change version to 2.0.0.
2749
2750 2015-10-31 Juanma Barranquero <lekktu@gmail.com>
2751
2752 Fix bug#21762
2753 * lisp/progmodes/python.el (python-syntax-closing-paren-p): Check with
2754 `eql' instead of `=' to accommodate the case that (syntax-after (point))
2755 returns nil.
2756 * test/automated/python-tests.el (python-indent-inside-paren-7):
2757 New test.
2758
2759 2015-10-31 Juanma Barranquero <lekktu@gmail.com>
2760
2761 * test/automated/python-tests.el: Avoid warnings.
2762 (python-tests-with-temp-buffer, python-tests-with-temp-file):
2763 Bind `python-indent-guess-indent-offset' to nil.
2764
2765 2015-10-31 Juanma Barranquero <lekktu@gmail.com>
2766
2767 * src/alloc.c: Silence compiler warnings.
2768 (pointers_fit_in_lispobj_p, mmap_lisp_allowed_p): #ifdef DOUG_LEA_MALLOC.
2769
2770 2015-10-31 Jackson Ray Hamilton <jackson@jacksonrayhamilton.com>
2771
2772 * etc/NEWS: Fix js-jsx-mode entry punctuation.
2773
2774 2015-10-31 Jackson Ray Hamilton <jackson@jacksonrayhamilton.com>
2775
2776 Add JSX indentation via js-jsx-mode (Bug#21799)
2777
2778 * progmodes/js.el: Add JSX indentation support.
2779 (js--jsx-end-tag-re)
2780 (js--jsx-after-tag-re): New variables.
2781 (js--jsx-find-before-tag)
2782 (js--jsx-indented-element-p)
2783 (js--as-sgml)
2784 (js--expression-in-sgml-indent-line)
2785 (js-jsx-indent-line)
2786 (js-jsx-mode): New functions.
2787 * test/indent/js-jsx.el: New file.
2788 * etc/NEWS: Add information about js-jsx-mode.
2789
2790 2015-10-31 Michael Albinus <michael.albinus@gmx.de>
2791
2792 Minor fix in filenotify.el
2793
2794 * lisp/filenotify.el (file-notify--event-file-name)
2795 (file-notify--event-file1-name): Normalize result with
2796 `directory-file-name'.
2797
2798 2015-10-31 Eli Zaretskii <eliz@gnu.org>
2799
2800 Avoid errors in redisplay--pre-redisplay-functions
2801
2802 * lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Don't
2803 use 'bobp', instead compare window-point with 1. (Bug#21730)
2804
2805 2015-10-30 Paul Eggert <eggert@cs.ucla.edu>
2806
2807 Merge from gnulib
2808
2809 This incorporates:
2810 2015-10-30 intprops: add WRAPV and const flavors for GCC 5
2811 2015-10-25 stdalign: port to Sun C 5.9
2812 * doc/misc/texinfo.tex, lib/intprops.h, lib/stdalign.in.h:
2813 Copy from gnulib.
2814
2815 2015-10-30 Eli Zaretskii <eliz@gnu.org>
2816
2817 * src/w32proc.c (_NLSCMPERROR): Fix a typo in the name of this macro.
2818 (w32_compare_strings): Adjust for the correction.
2819
2820 2015-10-30 Michael Albinus <michael.albinus@gmx.de>
2821
2822 * test/automated/vc-tests.el (vc-test--state)
2823 (vc-test--working-revision, vc-test--checkout-model):
2824 Add result messages.
2825
2826 2015-10-30 Artur Malabarba <bruce.connor.am@gmail.com>
2827
2828 * test/automated/faces-tests.el: Add another test
2829
2830 2015-10-30 Artur Malabarba <bruce.connor.am@gmail.com>
2831
2832 * lisp/faces.el (faces--attribute-at-point): Fix bug
2833 introduced by previous commit.
2834
2835 2015-10-30 Artur Malabarba <bruce.connor.am@gmail.com>
2836
2837 * test/automated/faces-tests.el: New file.
2838
2839 2015-10-30 Artur Malabarba <bruce.connor.am@gmail.com>
2840
2841 * lisp/faces.el: Refactor common code and fix a bug.
2842 (faces--attribute-at-point): New function. Fix a bug when the
2843 face at point is a list of faces and the desired attribute is not
2844 on the first one.
2845 (foreground-color-at-point, background-color-at-point): Use it.
2846
2847 2015-10-30 Przemysław Wojnowski <esperanto@cumego.com>
2848
2849 * etc/tutorials/TUTORIAL.translators: Fix PL names.
2850
2851 2015-10-30 Juanma Barranquero <lekktu@gmail.com>
2852
2853 * lisp/character-fold.el: Provide `character-fold'.
2854
2855 2015-10-30 Tassilo Horn <tsdh@gnu.org>
2856
2857 * etc/themes/tsdh-dark-theme.el (tsdh-dark): Add more faces
2858 for Gnus and ivy.
2859
2860 2015-10-30 Michael Albinus <michael.albinus@gmx.de>
2861
2862 Some minor fixes for tramp-gvfs.el
2863
2864 * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
2865 An attribute returned by gvfs-info might be empty. In case of
2866 undetermined uid or gid, return "UNKNOWN" or -1, respectively.
2867 (tramp-zeroconf-parse-service-device-names): New defun.
2868 Derived from `tramp-zeroconf-parse-workstation-device-names'.
2869 (top): Add completion functions for "afp" and "smb" methods.
2870
2871 2015-10-30 Artur Malabarba <bruce.connor.am@gmail.com>
2872
2873 * test/automated/character-fold-tests.el: New file
2874
2875 2015-10-30 Artur Malabarba <bruce.connor.am@gmail.com>
2876
2877 * test/automated/sort-tests.el: New file.
2878 Tests in this file are randomly generated and then tested with
2879 regular, reverse, and case-fold sorting.
2880
2881 2015-10-30 Eli Zaretskii <eliz@gnu.org>
2882
2883 Describe known problems with pinning Emacs to taskbar
2884
2885 * etc/PROBLEMS: Describe the problem with pinning Emacs to taskbar
2886 on Windows 10. For the details, see the discussion starting at
2887 http://lists.gnu.org/archive/html/help-emacs-windows/2015-09/msg00000.html.
2888
2889 2015-10-30 Artur Malabarba <bruce.connor.am@gmail.com>
2890
2891 * lisp/isearch.el: Avoid an error that blocks isearch.
2892 (isearch-update): Don't error if `isearch--current-buffer' has
2893 been killed.
2894
2895 * test/automated/isearch-tests.el (isearch--test-update):
2896 New file.
2897
2898 2015-10-30 Phil Sainty <psainty@orcon.net.nz>
2899
2900 Fix documentation of 'beginning/end-of-buffer'
2901
2902 * lisp/simple.el (beginning-of-buffer, end-of-buffer): Clarify
2903 conditions under which the mark will be pushed at the previous
2904 position. (Bug#21748)
2905
2906 2015-10-30 Tassilo Horn <tsdh@gnu.org>
2907
2908 Add RefTeX feature idea: editing RefTeX TOC buffers
2909
2910 More face defs for ivy, swiper, ace-window, eshell
2911
2912 2015-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
2913
2914 * lisp/gnus/auth-source.el: Silence lexical-binding warnings.
2915 (auth-source-netrc-use-gpg-tokens): Simplify (symbol-value 'VAR) to
2916 just VAR.
2917 (auth-source-backend-parse): Use make-instance.
2918 (auth-source-search): Remove unused key args.
2919 Remove unused vars `accessor-key' and `backend'. Avoid `eval'.
2920 (auth-source-search-backends): Use slot names rather than their initarg.
2921 (auth-source-netrc-create):
2922 (auth-source-delete):
2923 (auth-source-secrets-create, auth-source-plstore-search)
2924 (auth-source-macos-keychain-create, auth-source-macos-keychain-search)
2925 (auth-source-plstore-create, auth-source-netrc-search)
2926 (auth-source-netrc-parse): Remove unused key args.
2927 (auth-source-forget+): Simplify the arglist.
2928 (auth-source-macos-keychain-search-items)
2929 (auth-source-token-passphrase-callback-function): Mark unused args.
2930 (auth-source-epa-extract-gpg-token): Remove unused var `plain'.
2931 (pp-escape-newlines): Declare.
2932 (auto-source--symbol-keyword): New function.
2933 (auth-source-plstore-create, auth-source-netrc-create)
2934 (auth-source-netrc-normalize): Use it.
2935 (auth-source-netrc-search): Don't pass :delete to
2936 auth-source-netrc-parse since it doesn't use it.
2937 (auth-source-plstore-create, auth-source-netrc-create): Use plist-get
2938 symbol-value to index in keyword args.
2939 (auth-source-macos-keychain-result-append): Avoid setq.
2940 (auth-source-netrc-create): Remove unused vars `file' and `add'.
2941 (auth-source-user-or-password): Remove unused var `cname'.
2942
2943 2015-10-29 Juri Linkov <juri@linkov.net>
2944
2945 * lisp/dired.el (dired-unmark-all-files-query): Declare.
2946 (dired-unmark-all-files): Let-bind it and use instead of ‘query’.
2947 (Bug#21746)
2948
2949 2015-10-29 Juri Linkov <juri@linkov.net>
2950
2951 * lisp/ielm.el (ielm-indent-line): Use non-nil arg of comint-bol
2952 to go to the beginning of text line instead of command line.
2953 http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02360.html
2954
2955 2015-10-29 Eli Zaretskii <eliz@gnu.org>
2956
2957 Fix encoding of saving *Help* buffers
2958
2959 * lisp/help-fns.el (describe-function-1): If we use curved quotes,
2960 set help buffer's buffer-file-coding-system to UTF-8. (Bug#21780)
2961
2962 2015-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
2963
2964 * lisp/emacs-lisp/cl-generic.el: Add (major-mode MODE) context.
2965 (cl--generic-derived-specializers): New function.
2966 (cl--generic-derived-generalizer): New generalizer.
2967 (cl-generic-generalizers): New specializer (derived-mode MODE).
2968 (cl--generic-split-args): Apply the rewriter, if any.
2969 (cl-generic-define-context-rewriter): New macro.
2970 (major-mode): Use it to define a new context-rewriter, so we can write
2971 `(major-mode MODE)' instead of `(major-mode (derived-mode MODE))'.
2972
2973 * lisp/frame.el (window-system): New context-rewriter so we can write
2974 `(window-system VAL)' instead of (window-system (eql VAL)).
2975 (cl--generic-split-args): Apply the rewriter, if any.
2976 (frame-creation-function): Use the new syntax.
2977
2978 * lisp/term/x-win.el (window-system-initialization)
2979 (handle-args-function, frame-creation-function)
2980 (gui-backend-set-selection, gui-backend-selection-owner-p)
2981 (gui-backend-selection-exists-p, gui-backend-get-selection):
2982 * lisp/term/w32-win.el (window-system-initialization)
2983 (handle-args-function, frame-creation-function)
2984 (gui-backend-set-selection, gui-backend-get-selection)
2985 (gui-backend-selection-owner-p, gui-backend-selection-exists-p):
2986 * lisp/term/pc-win.el (gui-backend-get-selection)
2987 (gui-backend-selection-exists-p, gui-backend-selection-owner-p)
2988 (gui-backend-set-selection, window-system-initialization)
2989 (frame-creation-function, handle-args-function):
2990 * lisp/term/ns-win.el (window-system-initialization)
2991 (handle-args-function, frame-creation-function)
2992 (gui-backend-set-selection, gui-backend-selection-exists-p)
2993 (gui-backend-get-selection):
2994 * lisp/startup.el (handle-args-function):
2995 * lisp/term/xterm.el (gui-backend-get-selection)
2996 (gui-backend-set-selection): Use the new syntax.
2997
2998 2015-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
2999
3000 * test/indent/css-mode.css: Add tests for url(...) syntax.
3001
3002 2015-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
3003
3004 * lisp/emacs-lisp/smie.el: Use `declare' for `pure'.
3005 (smie-precs->prec2, smie-merge-prec2s, smie-bnf->prec2)
3006 (smie-prec2->grammar): Use `declare'.
3007
3008 2015-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
3009
3010 * lisp/emacs-lisp/cl-generic.el: Accommodate future changes.
3011 (cl--generic-generalizer): Add `name' field.
3012 (cl-generic-make-generalizer): Add corresponding `name' argument.
3013 (cl-generic-define-generalizer): New macro.
3014 (cl--generic-head-generalizer, cl--generic-eql-generalizer)
3015 (cl--generic-struct-generalizer, cl--generic-typeof-generalizer)
3016 (cl--generic-t-generalizer): Use it.
3017 (cl-generic-ensure-function): Add `noerror' argument.
3018 (cl-generic-define): Use it so we don't follow aliases.
3019 (cl-generic-define-method): Preserve pre-existing ordering of methods.
3020 (cl--generic-arg-specializer): New function.
3021 (cl--generic-cache-miss): Use it.
3022 (cl-generic-generalizers): Only fset a temporary definition
3023 during bootstrap.
3024 (cl--generic-struct-tag, cl--generic-struct-specializers):
3025 Allow extra arguments.
3026
3027 * lisp/emacs-lisp/eieio-compat.el
3028 (eieio--generic-static-symbol-generalizer)
3029 (eieio--generic-static-object-generalizer):
3030 Use cl-generic-define-generalizer.
3031 (eieio--generic-static-symbol-specializers): Allow extra arguments.
3032
3033 * lisp/emacs-lisp/eieio-core.el (eieio--generic-generalizer)
3034 (eieio--generic-subclass-generalizer):
3035 Use cl-generic-define-generalizer.
3036 (eieio--generic-subclass-specializers): Allow extra arguments.
3037
3038 2015-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
3039
3040 * lisp/emacs-lisp/bytecomp.el (compile-defun): Add defvars in scope.
3041
3042 2015-10-29 Michael Albinus <michael.albinus@gmx.de>
3043
3044 Add "afp" method to Tramp
3045
3046 * doc/misc/tramp.texi (GVFS based methods): Describe `afp' method.
3047
3048 * lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "afp" method.
3049 (tramp-gvfs-handle-expand-file-name)
3050 (tramp-gvfs-handler-mounted-unmounted)
3051 (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec)
3052 (tramp-gvfs-maybe-open-connection): Support also "afp".
3053 (tramp-gvfs-handle-file-attributes): Handle the case of empty
3054 "owner::user" and "owner::group" entries.
3055
3056 2015-10-29 Andy Moreton <andrewjmoreton@gmail.com>
3057
3058 Handle negative coordinates in ‘x_calc_absolute_position’
3059
3060 * src/w32term.c (x_calc_absolute_position): Find display origin to
3061 allow for negative coordinates.
3062
3063 2015-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3064
3065 (internal--syntax-propertize): Save match-data here (bug#21766)
3066
3067 * lisp/emacs-lisp/syntax.el (internal--syntax-propertize): Save match-data.
3068 * lisp/simple.el (delete-trailing-whitespace): Undo last change.
3069
3070 2015-10-28 Dmitry Gutov <dgutov@yandex.ru>
3071
3072 Don't require default-directory to end with a slash
3073
3074 * doc/lispref/files.texi (Magic File Names): Document the change
3075 in unhandled-file-name-directory.
3076
3077 * lisp/url/url-handlers.el
3078 (url-handler-unhandled-file-name-directory): Update accordingly.
3079
3080 * src/buffer.c (default-directory): Update the docsting.
3081
3082 * src/fileio.c (unhandled-file-name-directory): Default to calling
3083 `file-name-as-directory'
3084 (http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02294.html).
3085
3086 2015-10-28 Artur Malabarba <bruce.connor.am@gmail.com>
3087
3088 * lisp/isearch.el: Delete some outdated comments.
3089
3090 2015-10-28 Vibhav Pant <vibhavp@gmail.com>
3091
3092 Fix eshell/clear not working if the output has a small line count
3093
3094 * lisp/eshell/esh-mode.el (eshell/clear): Use (window-size) as the
3095 number of newlines to be inserted. This fixes the issue where
3096 eshell/clear wouldn't work if the prompt was not at the bottom of the
3097 window, and the output wasn't too long.
3098
3099 2015-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3100
3101 * lisp/files.el (write-file): Use vc-refresh-state.
3102
3103 * lisp/autorevert.el (auto-revert-handler): Use vc-refresh-state.
3104
3105 * lisp/vc/pcvs.el (cvs-revert-if-needed): Use vc-refresh-state.
3106
3107 2015-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3108
3109 * lisp/emacs-lisp/macroexp.el: Tweak macroexp-if optimizations.
3110 (macroexp-unprogn): Make sure we never return an empty list.
3111 (macroexp-if): Remove unused (and unsafe) optimization.
3112 Optimize (if A T (if B T E)) into (if (or A B) T E) instead, which does
3113 occur occasionally.
3114
3115 2015-10-28 Juanma Barranquero <lekktu@gmail.com>
3116
3117 Fix bug#21766 and add test
3118 * lisp/simple.el (delete-trailing-whitespace): Save match data when
3119 calling `skip-syntax-backward'.
3120 * test/automated/simple-test.el (simple-delete-trailing-whitespace):
3121 New test.
3122
3123 2015-10-28 Artur Malabarba <bruce.connor.am@gmail.com>
3124
3125 * doc/lispref/sequences.texi (Sequence Functions): Fix typo.
3126
3127 2015-10-28 Paul Eggert <eggert@cs.ucla.edu>
3128
3129 * src/dispnew.c (init_display): Simplify overflow checking.
3130
3131 2015-10-28 Artur Malabarba <bruce.connor.am@gmail.com>
3132
3133 * lisp/character-fold.el (character-fold-to-regexp): Fix case
3134 where string ends in space
3135
3136 2015-10-28 Artur Malabarba <bruce.connor.am@gmail.com>
3137
3138 * lisp/emacs-lisp/seq.el (seq-mapn): New function.
3139
3140 * doc/lispref/sequences.texi (Sequence Functions): Document seq-mapn.
3141
3142 2015-10-28 Artur Malabarba <bruce.connor.am@gmail.com>
3143
3144 * lisp/character-fold.el: Make compatible with lax-whitespace.
3145 (character-fold-to-regexp): Rework internals to play nice with
3146 lax-whitespacing.
3147
3148 When the user types a space, we want to match the table entry for
3149 ?\s, which is generally a regexp like "[ ...]". However, the
3150 `search-spaces-regexp' variable doesn't "see" spaces inside these
3151 regexp constructs, so we need to use "\\( \\|[ ...]\\)" instead (to
3152 manually expose a space).
3153
3154 Furthermore, the lax search engine acts on a bunch of spaces, not
3155 on individual spaces, so if the string contains sequential spaces
3156 like " ", we need to keep them grouped together like this:
3157 "\\( \\|[ ...][ ...]\\)".
3158
3159 2015-10-28 Artur Malabarba <bruce.connor.am@gmail.com>
3160
3161 * lisp/isearch.el: Refactor momentary messages.
3162 (isearch--momentary-message): New function.
3163 (isearch-toggle-lax-whitespace, isearch-toggle-case-fold)
3164 (isearch-toggle-invisible): Use it.
3165
3166 2015-10-28 Artur Malabarba <bruce.connor.am@gmail.com>
3167
3168 * lisp/isearch.el: Define all toggles with `isearch-define-mode-toggle'.
3169 (isearch-define-mode-toggle): New macro.
3170 (isearch-toggle-invisible): Rename to
3171 `isearch-define-mode-toggle'.
3172 (isearch-toggle-case-fold, isearch-toggle-invisible)
3173 (isearch-toggle-regexp, isearch-toggle-lax-whitespace): Define
3174 with `isearch-define-mode-toggle'.
3175
3176 2015-10-28 Michael Albinus <michael.albinus@gmx.de>
3177
3178 Avoid using `add-to-list' on a let-local var in tramp-smb.el
3179
3180 * lisp/net/tramp-compat.el (tramp-compat-delete-dups): New defun.
3181 * lisp/net/tramp-smb.el (tramp-smb-handle-directory-files): Use it.
3182
3183 2015-10-28 Michael Albinus <michael.albinus@gmx.de>
3184
3185 * lisp/net/tramp-smb.el (tramp-smb-handle-directory-files):
3186 Revert 692bce5b9eccfae19ae2a5a23a9ccd8d6bf86076, `delete-dups'
3187 does not exist in XEmacs 21.4.
3188
3189 2015-10-28 Anders Lindgren <andlind@gmail.com>
3190
3191 Fixed OS X startup crash
3192
3193 Input events started to arrive before ns_term_init() was finished.
3194 Solved by blocking input. This also seems to correct the "You
3195 can't open the application "Emacs" because it may be damaged or
3196 incomplete" error issued when double-clicking on the Emacs
3197 application.
3198
3199 * nsterm.m (ns_constrain_all_frames, ns_init_term): Block input.
3200 * nsterm.m (ns_send_appdefined, EmacsApp): Trace output.
3201
3202 2015-10-28 Artur Malabarba <bruce.connor.am@gmail.com>
3203
3204 * src/process.c (Fget_buffer_process): Improve docstring.
3205 Document the fact that it doesn't return dead processes.
3206
3207 2015-10-28 Anders Lindgren <andlind@gmail.com>
3208
3209 Fix incorrect NextStep tool-bar-mode -- wrong number of rows in frame.
3210
3211 * nsterm.h (struct ns_output): New flag, in_animation.
3212 * nsfns.m (Fx_create_frame): Initialize in_animation flag.
3213 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Set
3214 in_animation flag around call to "setVisible". Set new tool bar
3215 height before call to setVisible.
3216 * nsterm.m (x_set_window_size): Don't call [view setRow:
3217 andColumns:] as this fools the subsequent call to updateFrameSize
3218 from performing the real resize.
3219 (windowDidResize): Don't update anything when in_animation is
3220 non-zero.
3221
3222 Trace output.
3223
3224 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar)
3225 (EmacsToolbar):
3226 * nsterm.m (x_set_window_size, updateFrameSize)
3227 ([EmacsView setRows: andColumns:])
3228
3229 2015-10-28 Nicolas Petton <nicolas@petton.fr>
3230
3231 * lisp/emacs-lisp/thunk.el (thunk-delay): Fix the macro.
3232
3233 2015-10-28 Tassilo Horn <tsdh@gnu.org>
3234
3235 Prettify TeX macros not ending in a word char
3236
3237 * lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p):
3238 Prettify macros which don't end in a word character.
3239
3240 2015-10-27 Dmitry Gutov <dgutov@yandex.ru>
3241
3242 Pipe Hg commit descriptions through 'tabindent'
3243
3244 * lisp/vc/vc-hg.el (vc-hg-log-format): Pipe commit description
3245 through 'tabindent'.
3246 (vc-hg-log-view-mode): Set tab-width to 2 locally.
3247 (http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02259.html)
3248
3249 2015-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
3250
3251 * lisp/net/tramp-smb.el: Avoid using `add-to-list' on a let-local var.
3252 (tramp-smb-handle-directory-files): Use `delete-dups'.
3253
3254 * lisp/net/tramp.el (auto-save-file-name-transforms): Declare.
3255
3256 2015-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
3257
3258 * lisp/international/ccl.el: Use lexical-binding.
3259 (ccl-compile-if): Remove unused var `false-ic'.
3260 (ccl-compile-write-repeat): Remove unused var `i'.
3261 (ccl-compile-map-single): Remove unused var `id'.
3262 (ccl-dump, ccl-dump-binary): Use explicit let-binding to bind the
3263 dynamic var `ccl-code'.
3264
3265 2015-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
3266
3267 * lisp/json.el (json-new-object): Optimize trivial `list' call.
3268
3269 2015-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
3270
3271 * lisp/help.el: Fix bug with incorrect arglist string.
3272 (help-add-fundoc-usage): Don't mistake a mis-formatted string
3273 for a list.
3274
3275 2015-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
3276
3277 * lisp/gnus/gnus-topic.el: Silence some warnings.
3278 (gnus-topic-prepare-topic): Remove unused var `topic'.
3279 (gnus-topic-remove-topic): Mark unused arg `hide'.
3280 (gnus-tmp-header): Declare.
3281 (gnus-topic-goto-missing-group): Remove unused var `entry'.
3282 (gnus-topic-unmark-topic): Mark unused arg `dummy'.
3283 (gnus-topic-copy-matching): Mark unused arg `copyp'.
3284 Move initialization of `topic' into its declaration.
3285
3286 2015-10-27 Stephen Leake <stephen_leake@stephe-leake.org>
3287
3288 Minor CEDET fixes
3289
3290 * lisp/cedet/cedet-global.el (cedet-gnu-global-gtags-call):
3291 Handle warnings from gtags about invalid options.
3292 (cedet-gnu-global-create/update-database): Do incremental update
3293 properly.
3294
3295 * lisp/cedet/ede/generic.el (ede-enable-generic-projects):
3296 Get monotone root right.
3297
3298 2015-10-27 Michael Albinus <michael.albinus@gmx.de>
3299
3300 Fall back to polling in autorevert when needed
3301
3302 * lisp/autorevert.el (auto-revert-notify-handler): When a
3303 `stopped' event arrives from file notification, fall back to polling.
3304
3305 * test/automated/file-notify-tests.el
3306 (file-notify-test03-autorevert): Extend test for polling when file
3307 notification ceases to work.
3308
3309 2015-10-27 Dmitry Gutov <dgutov@yandex.ru>
3310
3311 Show full commit messages in 'hg log' when appropriate
3312
3313 * lisp/vc/vc-hg.el (vc-hg-log-format): New variable.
3314 (vc-hg-print-log, vc-hg-expanded-log-entry): Use it.
3315 (http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02191.html)
3316
3317 2015-10-27 Nicolas Petton <nicolas@petton.fr>
3318
3319 Use a plain SVG file for the icon
3320
3321 * etc/images/icons/hicolor/scalable/apps/emacs.svg: Use a plain SVG
3322 format instead of the Inkscape SVG format.
3323
3324 2015-10-27 Michael Albinus <michael.albinus@gmx.de>
3325
3326 Fix subtle bug in auto-revert-tests.el
3327
3328 * test/automated/auto-revert-tests.el
3329 (auto-revert-test02-auto-revert-mode-dired): Narrow *Messages*
3330 buffer where it belongs to. (Bug#21668)
3331
3332 2015-10-26 Nicolas Petton <nicolas@petton.fr>
3333
3334 * lisp/emacs-lisp/map.el: Better docstrings.
3335
3336 * lisp/emacs-lisp/seq.el: Better docstrings.
3337
3338 * lisp/emacs-lisp/seq.el: Rename all seq arguments to sequence.
3339
3340 2015-10-26 Phillip Lord <phillip.lord@russet.org.uk>
3341
3342 * lisp/emacs-lisp/ert.el: Print results without newline escaping.
3343
3344 2015-10-26 Stephen Leake <stephen_leake@stephe-leake.org>
3345
3346 Clarify that load-path contents should be directory file names
3347
3348 * doc/lispref/files.texi (Directory Names): Define and use "directory
3349 file name". Recommend `expand-file-name'.
3350
3351 * src/lread.c (load-path): Fix doc string; elements are directory file
3352 names.
3353
3354 2015-10-26 Eli Zaretskii <eliz@gnu.org>
3355
3356 Fix simple-test.el test
3357
3358 * test/automated/simple-test.el (simple-test--dummy-buffer):
3359 Make sure indentation doesn't use TABs, otherwise the 6th test
3360 might fail.
3361
3362 2015-10-26 Mark Oteiza <mvoteiza@udel.edu>
3363
3364 * lisp/net/eww.el (eww-bookmark-prepare): Use truncate-string-to-width.
3365 `substring' does not account for full width characters.
3366
3367 2015-10-26 Michael Albinus <michael.albinus@gmx.de>
3368
3369 Further work on `stopped' events in filenotify.el
3370
3371 * doc/lispref/os.texi (File Notifications): Rework examples.
3372
3373 * lisp/filenotify.el (file-notify--rm-descriptor): Optional parameter.
3374 (file-notify--rm-descriptor, file-notify-callback): Improve check
3375 for sending `stopped' event.
3376 (file-notify-add-watch): Check for more events for `inotify'.
3377
3378 * test/automated/file-notify-tests.el
3379 (file-notify--test-expected-events): New defvar.
3380 (file-notify--test-with-events): Use it.
3381 (file-notify--test-cleanup): Make it more robust when deleting
3382 directories.
3383 (file-notify--test-event-test): Check also for watched directories.
3384 (file-notify--test-event-handler): Suppress temporary .#files.
3385 (file-notify-test02-events, file-notify-test04-file-validity):
3386 Rework `stopped' events.
3387 (file-notify-test05-dir-validity): Wait for events when appropriate.
3388
3389 2015-10-26 Artur Malabarba <bruce.connor.am@gmail.com>
3390
3391 * src/keyboard.c (post-command-hook): Shorten docstring.
3392
3393 2015-10-26 Tassilo Horn <tsdh@gnu.org>
3394
3395 Fix infinite loop in sh-script's SMIE code
3396
3397 * lisp/progmodes/sh-script.el (sh-smie-sh-forward-token): Fix infinite
3398 loop (bug#21747).
3399
3400 2015-10-25 Artur Malabarba <bruce.connor.am@gmail.com>
3401
3402 * lisp/isearch.el (search-default-regexp-mode): Revert to nil.
3403 Character-fold search _still_ doesn't play well with
3404 lax-whitespace. So disable it by default (again) for now.
3405
3406 2015-10-25 Artur Malabarba <bruce.connor.am@gmail.com>
3407
3408 * lisp/isearch.el: No visual feedback for default search mode.
3409 During an isearch where character-folding is the default, we don't
3410 want to take up minibuffer space just to tell the user that
3411 "Char-fold " is on. The same goes for other modes, if the user
3412 changes the default. In contrast, if the user toggles OFF the
3413 default mode, they should see "Literal", to distinguish it from
3414 the default mode.
3415 (isearch--describe-regexp-mode): Return "" if describing the
3416 default mode, and return "literal " if describing a plain search
3417 and it is not default.
3418
3419 2015-10-25 Artur Malabarba <bruce.connor.am@gmail.com>
3420
3421 * test/automated/simple-test.el: New file.
3422 Define tests for `newline' and `open-line'.
3423
3424 2015-10-25 Artur Malabarba <bruce.connor.am@gmail.com>
3425
3426 * lisp/simple.el (open-line): Integrate with electric-indent-mode.
3427 Also run `post-self-insert-hook' when called interactively.
3428
3429 2015-10-25 Artur Malabarba <bruce.connor.am@gmail.com>
3430
3431 * lisp/simple.el (open-line): Fix docstring.
3432 Also explain apparently redundant line.
3433
3434 2015-10-25 Thomas Fitzsimmons <fitzsim@fitzsim.org>
3435 Alexandru Harsanyi <AlexHarsanyi@gmail.com>
3436
3437 Sync with soap-client repository, version 3.0.1
3438
3439 * lisp/net/soap-client.el, lisp/net/soap-inspect.el:
3440 Bump version to 3.0.1.
3441
3442 * lisp/net/soap-client.el, lisp/net/soap-inspect.el: Update home page.
3443
3444 2015-10-25 Eli Zaretskii <eliz@gnu.org>
3445
3446 * lisp/progmodes/grep.el (grep): Doc fix. (Bug#21754)
3447
3448 2015-10-25 Artur Malabarba <bruce.connor.am@gmail.com>
3449
3450 * src/keyboard.c (post-command-hook): Extend the docstring.
3451 Mainly, explain how to use it without hanging Emacs, or giving the
3452 impression that it is hanging. Also mention `pre-command-hook'.
3453 (pre-command-hook): Mention `post-command-hook'.
3454
3455 2015-10-25 Artur Malabarba <bruce.connor.am@gmail.com>
3456
3457 * lisp/custom.el (custom-declare-variable): Shorten code again.
3458 Without using pcase this time. We can't use pcase because it is
3459 loaded after custom in loadup.el. Also add a comment explaining
3460 this to future dummies like me.
3461
3462 2015-10-25 Michael Albinus <michael.albinus@gmx.de>
3463
3464 * doc/lispref/os.texi (File Notifications): Document `stopped event'.
3465
3466 2015-10-25 Michael Albinus <michael.albinus@gmx.de>
3467
3468 Introduce `stopped' event in file notification
3469
3470 * lisp/filenotify.el (file-notify--rm-descriptor): New defun.
3471 (file-notify-rm-watch): Use it.
3472 (file-notify-callback): Implement `stopped' event.
3473 (file-notify-add-watch): Mention `stopped' in the docstring.
3474 Check, that upper directory exists.
3475
3476 * test/automated/file-notify-tests.el (file-notify-test01-add-watch):
3477 Add two test cases.
3478 (file-notify-test02-events): Handle also `stopped' event.
3479 (file-notify-test04-file-validity): Add another test case.
3480
3481 2015-10-25 Paul Eggert <eggert@cs.ucla.edu>
3482
3483 Revert commit that broke 'make bootstrap'
3484
3485 * lisp/custom.el (custom-declare-variable): Revert commit
3486 79fac080d277fed07b3c192890ad59d36d9f83b6. custom.el needs to work
3487 even when pcase has not been defined yet, when doing bootstrapping.
3488
3489 2015-10-25 Paul Eggert <eggert@cs.ucla.edu>
3490
3491 Port recent inline functions fix to Standard C
3492
3493 * src/lisp.h (LISP_MACRO_DEFUN, LISP_MACRO_DEFUN_VOID): Remove.
3494 All uses rewritten to define the function directly rather than to
3495 use a macro to define the function. This conforms to Standard C,
3496 which does not allow stray semicolons at the top level. I hope it
3497 also avoids the problems with TAGS. Those macros, though clever,
3498 were pretty confusing anyway, and it wasn’t clear they were worth
3499 the aggravation even without the TAGS problem.
3500
3501 2015-10-24 Artur Malabarba <bruce.connor.am@gmail.com>
3502
3503 * lisp/isearch.el: Make character-fold search the default again.
3504
3505 2015-10-24 Artur Malabarba <bruce.connor.am@gmail.com>
3506
3507 * lisp/character-fold.el: Many improvements.
3508 (character-fold-search-forward, character-fold-search-backward):
3509 New command.
3510 (character-fold-to-regexp): Remove lax-whitespace hack.
3511 (character-fold-search): Remove variable. Only isearch and
3512 query-replace use char-folding, and they both have their own
3513 variables to configure that.
3514
3515 2015-10-24 Artur Malabarba <bruce.connor.am@gmail.com>
3516
3517 * lisp/isearch.el: Generalize definition of regexp-function toggles.
3518 (isearch-specify-regexp-function): New macro for specifying
3519 possible values of `isearch-regexp-function'.
3520 (isearch-toggle-character-fold, isearch-toggle-symbol)
3521 (isearch-toggle-word): Define with `isearch-specify-regexp-function'.
3522
3523 2015-10-24 Artur Malabarba <bruce.connor.am@gmail.com>
3524
3525 * lisp/isearch.el (search-default-regexp-mode): New variable.
3526 (isearch-mode): Use it.
3527
3528 2015-10-24 Artur Malabarba <bruce.connor.am@gmail.com>
3529
3530 * lisp/isearch.el (search-exit-option, search-slow-window-lines)
3531 (search-slow-speed, search-upper-case)
3532 (search-nonincremental-instead, search-whitespace-regexp)
3533 (search-invisible, isearch-hide-immediately)
3534 (isearch-resume-in-command-history, search-ring-max)
3535 (regexp-search-ring-max, search-ring-update, search-highlight)
3536 (isearch-fail): Delete :group entries.
3537
3538 2015-10-24 Artur Malabarba <bruce.connor.am@gmail.com>
3539
3540 * lisp/custom.el (custom-declare-variable): Shorten code a bit.
3541
3542 2015-10-24 Juanma Barranquero <lekktu@gmail.com>
3543
3544 addpm.c: Silence some warnings.
3545
3546 * nt/addpm.c (DdeCommand): Cast pData argument of DdeClientTransaction
3547 to LPBYTE.
3548 (add_registry): Pass NULL to optional lpClass argument of
3549 RegCreateKeyEx, not an empty string.
3550
3551 2015-10-24 Juanma Barranquero <lekktu@gmail.com>
3552
3553 addpm.c: Do not add obsolete GTK libraries to the path.
3554
3555 * nt/addpm.c (REG_GTK, REG_RUNEMACS_PATH): Delete.
3556 (add_registry): Remove variables `size' and `gtk_key'.
3557 Do not add the GTK DLL directory to the library search path; it is
3558 confusing behavior (in particular, the same Emacs version with and
3559 without invoking addpm will use a different path), and the GTK image
3560 libraries are obsolete anyway.
3561
3562 2015-10-24 Juanma Barranquero <lekktu@gmail.com>
3563
3564 addpm.c: Replace existing registry entries, but do not create new ones
3565
3566 * nt/addpm.c (add_registry): If the Emacs registry key exists, replace
3567 existing values from previous versions, but do not add new ones; the
3568 key could exist for other reasons unrelated to old Emacsen, like X-style
3569 resources, or to set some environment variables like HOME or LANG, and
3570 in that case we don't want to populate it with obsolete values.
3571
3572 2015-10-24 Juanma Barranquero <lekktu@gmail.com>
3573
3574 * nt/addpm.c (add_registry): Do not compute unused return value.
3575
3576 2015-10-24 Juanma Barranquero <lekktu@gmail.com>
3577
3578 addpm.c: Don't pass REG_OPTION_NON_VOLATILE to RegOpenKeyEx
3579
3580 * nt/addpm.c (add_registry): Pass 0 to ulOptions argument of
3581 RegOpenKeyEx, not REG_OPTION_NON_VOLATILE. This doesn't change
3582 current behavior because REG_OPTION_NON_VOLATILE is defined to
3583 be 0L anyway, but that option is actually documented only for
3584 RegCreateKeyEx.
3585
3586 2015-10-24 Juanma Barranquero <lekktu@gmail.com>
3587
3588 * src/w32notify.c (Fw32notify_add_watch): Fix version check.
3589
3590 2015-10-24 Eli Zaretskii <eliz@gnu.org>
3591
3592 Update frame title when redisplay scrolls selected window
3593
3594 * src/xdisp.c (redisplay_window): Reconsider the frame's title
3595 when the mode-line of the frame's selected window needs to be
3596 updated.
3597
3598 2015-10-24 Eli Zaretskii <eliz@gnu.org>
3599
3600 Update frame title when scrolling the selected window
3601
3602 * src/window.c (wset_update_mode_line): New function, sets either
3603 the window's update_mode_line flag or the global update_mode_lines
3604 variable.
3605 (Fset_window_start, set_window_buffer, window_scroll_pixel_based)
3606 (window_scroll_line_based): Call it instead of only setting the
3607 window's update_mode_line flag.
3608
3609 2015-10-24 Eli Zaretskii <eliz@gnu.org>
3610
3611 An even better fix for bug#21739
3612
3613 * src/window.c (set_window_buffer): If the window is the frame's
3614 selected window, set update_mode_lines, not the window's
3615 update_mode_line flag.
3616 * src/buffer.c (Fkill_buffer): Undo last change.
3617 (set_update_modelines_for_buf): Function deleted.
3618
3619 2015-10-24 Thomas Fitzsimmons <fitzsim@fitzsim.org>
3620 Alexandru Harsanyi <AlexHarsanyi@gmail.com>
3621
3622 Sync with soap-client repository, version 3.0.0
3623
3624 * lisp/net/soap-client.el, lisp/net/soap-inspect.el:
3625 Bump version to 3.0.0.
3626
3627 * lisp/net/soap-inspect.el: Merge in changes from Emacs master branch.
3628
3629 * lisp/net/soap-client.el: Merge in changes from Emacs master branch.
3630
3631 * lisp/net/soap-inspect.el: Shorten first line description.
3632
3633 * lisp/net/soap-client.el: Make a small whitespace fix.
3634
3635 * lisp/net/soap-inspect.el: Update copyright years.
3636
3637 * lisp/net/soap-client.el (soap-encoded-namespaces): Move above
3638 first use in soap-encode-xs-element.
3639
3640 * lisp/net/soap-client.el (soap-type-is-array?): new defun
3641 (soap-encode-xs-element): handle array elements in this function
3642 (soap-encode-xs-complex-type): flag error if asked to encode an
3643 array type, this is handled in `soap-encode-xs-element'
3644
3645 * lisp/net/soap-inspect.el (soap-inspect-xs-attribute-group):
3646 Do not print type for attribute group.
3647
3648 * lisp/net/soap-inspect.el (soap-sample-value-for-xs-attribute-group)
3649 New function.
3650 (soap-inspect-xs-attribute-group): Likewise.
3651
3652 * lisp/net/soap-inspect.el
3653 (soap-resolve-references-for-xs-attribute-group): Resolve
3654 references of attributes in an attribute group.
3655
3656 * lisp/net/soap-client.el (soap-decode-xs-attributes): Process attribute
3657 type directly, not through soap-wsdl-get.
3658
3659 * lisp/net/soap-client.el (soap-xs-parse-attribute): Leave reference
3660 nil if reference attribute is nil.
3661
3662 * lisp/net/soap-client.el (soap-resolve-references-for-xs-attribute):
3663 Convert XML schema attributes to xsd:string.
3664
3665 * lisp/net/soap-inspect.el (soap-sample-value-for-xs-attribute):
3666 New function.
3667 (soap-sample-value-for-xs-simple-type): Prepend attributes to result.
3668 (soap-sample-value-for-xs-complex-type): Likewise.
3669 (soap-inspect-xs-attribute): New function.
3670 (soap-inspect-xs-simple-type): Print attributes.
3671 (soap-inspect-xs-complex-type): Likewise.
3672
3673 * lisp/net/soap-inspect.el (soap-resolve-references-for-xs-simple-type):
3674 Resolve references for attributes.
3675 (soap-resolve-references-for-xs-complex-type): Likewise.
3676
3677 * lisp/net/soap-client.el (soap-xml-node-find-matching-child):
3678 Rename from soap-xml-node-first-child.
3679 (soap-xs-parse-attribute): Call soap-xml-node-find-matching-child.
3680 (soap-xs-parse-simple-type): Likewise.
3681
3682 * lisp/net/soap-client.el (soap-invoke-async): Add error checking.
3683
3684 * lisp/net/soap-client.el (soap-invoke-internal): New function.
3685 (soap-invoke-async): Call soap-invoke-internal.
3686 (soap-invoke): Likewise.
3687
3688 * lisp/net/soap-client.el (soap-invoke-async): Ensure buffer passed to
3689 url-retrieve callback is killed.
3690
3691 * lisp/net/soap-client.el (soap-parse-wsdl-phase-validate-node):
3692 Rename function.
3693 (soap-parse-wsdl-phase-fetch-imports): Likewise.
3694 (soap-parse-wsdl-phase-parse-schema): Likewise.
3695 (soap-parse-wsdl-phase-fetch-schema): Likewise.
3696 (soap-parse-wsdl-phase-finish-parsing): Likewise.
3697 (soap-parse-wsdl): Update calls.
3698
3699 * lisp/net/soap-client.el (soap-invoke-async): Fix callback invocation.
3700
3701 * lisp/net/soap-client.el (soap-invoke-async): New function.
3702 (soap-invoke): Reimplement using soap-invoke-async.
3703
3704 * lisp/net/soap-client.el (soap-parse-server-response):
3705 Improve docstring.
3706 (soap-invoke): Inline call to soap-parse-server-response.
3707
3708 * lisp/net/soap-client.el (soap-decode-xs-complex-type):
3709 Prevent incorrect warning.
3710
3711 * lisp/net/soap-client.el (soap-parse-server-response):
3712 Rename soap-process-url-response. Destroy the mime part.
3713 (soap-invoke): Call soap-parse-server-response.
3714
3715 * lisp/net/soap-client.el: Update copyright date.
3716
3717 * lisp/net/soap-client.el: Fix checkdoc issues.
3718
3719 * lisp/net/soap-client.el: Fix indentation and long lines.
3720
3721 * lisp/net/soap-client.el (soap-time-format): Remove variable.
3722 (soap-encode-xs-basic-type): Simplify date-time format detection.
3723 (soap-decode-xs-basic-type): Remove soap-time-format support.
3724
3725 * lisp/net/soap-client.el (soap-process-url-response): New function.
3726 (soap-fetch-xml-from-url): Call soap-process-url-response.
3727 (soap-parse-wsdl-phase-1): New function.
3728 (soap-parse-wsdl-phase-2): Likewise.
3729 (soap-parse-wsdl-phase-3): Likewise.
3730 (soap-parse-wsdl-phase-4): Likewise.
3731 (soap-parse-wsdl-phase-5): Likewise.
3732 (soap-parse-wsdl): Call phase functions.
3733
3734 * lisp/net/soap-client.el (soap-decode-xs-basic-type):
3735 Remove one-argument and call.
3736
3737 * lisp/net/soap-client.el (soap-decode-date-time): Improve docstring.
3738
3739 * lisp/net/soap-client.el (soap-xmlschema-imports): Remove variable.
3740 (soap-parse-schema): Add wsdl argument. Look up XML schema
3741 imports from wsdl.
3742 (soap-load-wsdl): Do not set soap-xmlschema-imports.
3743 (soap-parse-wsdl): Get XML schema imports from wsdl.
3744
3745 * lisp/net/soap-client.el (soap-current-file): Remove variable.
3746 (soap-wsdl): Add current-file slot.
3747 (soap-fetch-xml-from-url): Add wsdl argument. Look up current
3748 file from wsdl.
3749 (soap-fetch-xml-from-file): Likewise.
3750 (soap-fetch-xml): Likewise.
3751 (soap-load-wsdl): Always create wsdl object first.
3752 (soap-parse-wsdl): Pass wsdl to soap-fetch-xml.
3753
3754 * lisp/net/soap-client.el (soap-xs-element): Add is-group slot.
3755 (soap-xs-parse-element): Set is-group slot.
3756 (soap-resolve-references-for-xs-element): Skip is-group elements.
3757 (soap-xs-complex-type): Add is-group slot.
3758 (soap-xs-parse-complex-type): Set is-group slot.
3759 (soap-xs-parse-sequence): Parse xsd:group elements.
3760 (soap-resolve-references-for-xs-complex-type): Inline elements
3761 from referenced xsd:group nodes.
3762 (soap-parse-schema): Parse xsd:group nodes.
3763
3764 * lisp/net/soap-client.el (soap-invoke):
3765 Don't set url-http-version to 1.0.
3766
3767 * lisp/net/soap-client.el (soap-decode-xs-complex-type):
3768 Allow choice nodes to accept multiple values.
3769
3770 * lisp/net/soap-client.el (soap-encode-body): Check parameters argument
3771 for extra header values.
3772
3773 * lisp/net/soap-client.el (soap-well-known-xmlns):
3774 Add wsa and wsaw tags.
3775 (soap-operation): Add input-action and output-action slots.
3776 (soap-parse-operation): Parse wsaw:Action nodes.
3777 (soap-encode-body): Encode service-url for WS-Addressing.
3778 (soap-create-envelope): Likewise.
3779 (soap-invoke): Update soap-create-envelope call to provide
3780 service-url argument.
3781
3782 * lisp/net/soap-client.el (soap-decode-xs-complex-type):
3783 Support xsi:type override attribute.
3784 (soap-decode-array): Likewise.
3785
3786 * lisp/net/soap-client.el (soap-parse-schema):
3787 Handle location attribute.
3788
3789 * lisp/net/soap-client.el (soap-decode-type): Check that multiRef
3790 matched validation regexp.
3791
3792 * lisp/net/soap-client.el (soap-encode-xs-simple-type):
3793 Encode xsd:list nodes.
3794 (soap-decode-xs-simple-type): Decode xsd:list nodes.
3795
3796 * lisp/net/soap-client.el (soap-get-candidate-elements):
3797 Fix reference handling.
3798
3799 * lisp/net/soap-client.el (soap-xs-simple-type): Add is-list slot.
3800 (soap-xs-parse-simple-type): Call soap-xs-add-list for xsd:list nodes.
3801 (soap-xs-add-list): New function.
3802
3803 * lisp/net/soap-client.el (soap-encode-xs-element): When a boolean is
3804 expected, interpret nil as "false".
3805
3806 * lisp/net/soap-client.el (soap-make-xs-basic-types): Add gYearMonth,
3807 gYear, gMonthDay, gDay and gMonth.
3808
3809 * lisp/net/soap-client.el (soap-time-format): New variable.
3810 (soap-encode-xs-basic-type): Handle dateTime, time, date,
3811 gYearMonth, gYear, gMonthDay, gDay and gMonth.
3812 (soap-decode-date-time): New function.
3813 (soap-decode-xs-basic-type): Use soap-decode-date-time.
3814
3815 * lisp/net/soap-client.el (soap-encode-xs-basic-type): Validate value
3816 after encoding.
3817 (soap-decode-xs-basic-type): Validate value before decoding.
3818
3819 * lisp/net/soap-client.el (soap-validate-xs-basic-type): New function.
3820 (soap-validate-xs-simple-type): Call soap-validate-xs-basic-type.
3821
3822 * lisp/net/soap-client.el (soap-xs-add-union): Append result to base
3823 instead of overwriting it.
3824 (soap-validate-xs-simple-type): Add union support.
3825
3826 * lisp/net/soap-client.el (soap-xs-add-restriction): Translate pattern
3827 to Emacs regexp using xsdre-translate.
3828 (soap-validate-xs-simple-type): Validate value against pattern.
3829
3830 * lisp/net/soap-client.el (soap-xs-add-union): Preserve WSDL order of
3831 inline simpleType nodes.
3832 (soap-decode-type): Handle union types.
3833
3834 * lisp/net/soap-client.el (soap-decode-xs-attributes): Decode basic-type
3835 attributes.
3836
3837 * lisp/net/soap-client.el (soap-get-xs-attributes-from-groups): Rename
3838 from soap-xs-attribute-group-consolidate, all callers updated
3839 (soap-get-xs-attributes): Rename from
3840 soap-xs-attributes-consolidate, all callers updated
3841
3842 * lisp/net/soap-client.el (soap-xs-type): Add attribute-group slot.
3843 (soap-xs-attribute-group): New type.
3844 (soap-xs-parse-attribute-group): New function.
3845 (soap-resolve-references-for-xs-attribute-group): Likewise.
3846 (soap-xs-add-extension): Handle attribute groups.
3847 (soap-resolve-references-for-xs-simple-type): Likewise.
3848 (soap-xs-parse-complex-type): Likewise.
3849 (soap-xs-parse-extension-or-restriction): Likewise.
3850 (soap-resolve-references-for-xs-complex-type): Likewise.
3851 (soap-xs-attribute-group-consolidate): New function.
3852 (soap-xs-attributes-consolidate): Handle attribute groups.
3853 (soap-parse-schema): Likewise.
3854
3855 * lisp/net/soap-client.el (soap-encode-xs-basic-type):
3856 Fix boolean encoding.
3857
3858 * lisp/net/soap-client.el (soap-encode-xs-complex-type): Print ref
3859 element names in warnings.
3860
3861 * lisp/net/soap-client.el (soap-decode-xs-complex-type): Fix splicing.
3862
3863 * lisp/net/soap-client.el (soap-decode-xs-complex-type):
3864 Eliminate invalid warnings for choice types.
3865
3866 * lisp/net/soap-client.el (soap-encode-xs-complex-type-attributes):
3867 Also encode base type attributes.
3868
3869 * lisp/net/soap-client.el (soap-encode-xs-complex-type): Fix compilation
3870 warning. Print e-name in warnings, or element if e-name is nil.
3871
3872 * lisp/net/soap-client.el (soap-xs-element): Add alternatives slot.
3873 (soap-xs-parse-element): Set substitution-group.
3874 (soap-resolve-references-for-xs-element): Populate alternatives slot.
3875 (soap-get-candidate-elements): New function.
3876 (soap-encode-xs-complex-type): Iterate through all candidate elements.
3877 Handle types with nil type indicator. Fix warning logic.
3878
3879 * lisp/net/soap-client.el (soap-current-wsdl): Move declaration
3880 earlier in the file to prevent compiler warning.
3881
3882 * lisp/net/soap-client.el (soap-node-optional): New function.
3883 (soap-node-multiple): Likewise.
3884 (soap-xs-parse-element): Call soap-node-optional and
3885 soap-node-multiple.
3886 (soap-xs-complex-type): Add optional? and multiple? slots.
3887 (soap-xml-get-children-fq): New function.
3888 (soap-xs-element-get-fq-name): Likewise.
3889 (soap-xs-complex-type-optional-p): Likewise.
3890 (soap-xs-complex-type-multiple-p): Likewise.
3891 (soap-xs-attributes-consolidate): Likewise.
3892 (soap-decode-xs-attributes): Likewise.
3893 (soap-decode-xs-complex-type): Decode types with nil type indicator.
3894 Support children that use local namespaces. Decode attributes.
3895 Add type considerations to optional? and multiple? warnings.
3896
3897 * lisp/net/soap-client.el (soap-xs-parse-extension-or-restriction):
3898 Store parsed attributes.
3899 (soap-encode-xs-complex-type-attributes): Encode custom attributes.
3900
3901 * lisp/net/soap-client.el (soap-encode-xs-complex-type-attributes):
3902 Don't add the xsi:type attribute (Exchange refuses requests which have
3903 this attribute).
3904
3905 * lisp/net/soap-client.el, soap-inspect.el: Convert to lexical binding,
3906 correct compiler warnings about unused function arguments and
3907 local variables.
3908
3909 * lisp/net/soap-client.el (soap-decode-xs-complex-type): Handle nil
3910 type indicator.
3911 (soap-parse-envelope): Handle response headers.
3912 (soap-parse-response): Likewise. Only return non-nil decoded values.
3913
3914 * lisp/net/soap-client.el (soap-validate-xs-simple-type):
3915 Return validated value.
3916
3917 * lisp/net/soap-client.el (soap-xs-parse-element)
3918 (soap-xs-parse-simple-type)
3919 (soap-xs-parse-complex-type)
3920 (soap-parse-message)
3921 (soap-parse-operation): Add the current namespace to the element
3922 being created.
3923 (soap-resolve-references-for-xs-element)
3924 (soap-resolve-references-for-xs-simple-type)
3925 (soap-resolve-references-for-xs-complex-type)
3926 (soap-resolve-references-for-operation): Resolve the namespace to
3927 the namespace tag.
3928 (soap-make-wsdl): specify a namespace tag when creating the xsd
3929 and soapenc namespaces
3930 (soap-wsdl-resolve-references): don't update namespace tags in
3931 elements here
3932 (soap-parse-port-type): bind the urn: to soap-target-xmlns
3933 (soap-encode-body): don't add nil namespace tags to
3934 soap-encoded-namespaces
3935
3936 * lisp/net/soap-inspect.el: Use `soap-make-wsdl` to construct the object
3937 for registering the soap-inspect method. Make debbugs tests pass.
3938 * lisp/net/soap-client.el (soap-decode-any-type): Use soap-l2fq on the
3939 type name, also skip string only nodes when decoding a structure.
3940 (soap-xs-parse-complex-type): (BUG) Dispatch parsing for choice
3941 types too.
3942 (soap-encode-body): Grab the header value from the param table.
3943
3944 * lisp/net/soap-client.el (soap-should-encode-value-for-xs-element):
3945 New function.
3946 (soap-encode-xs-element): Don't encode nil value unless needed.
3947
3948 * lisp/net/soap-client.el (soap-bound-operation): New slot `soap-body`.
3949 (soap-parse-binding): Parse the message parts required in the body.
3950 (soap-encode-body): Encode only the parts that are declared to be
3951 part of the body.
3952
3953 * lisp/net/soap-client.el (soap-encode-xs-element): use the fq name
3954 when writing out the tag.
3955 (soap-encode-body): Remove hack that inserts the xmlns in the
3956 element attributes list.
3957
3958 * lisp/net/soap-client.el (soap-xs-attribute): Add "default" slot.
3959 (soap-xs-parse-attribute): Default slot is set from the XML
3960 "fixed" attribute.
3961 (soap-encode-xs-complex-type-attributes): Encode any attributes
3962 that have a default value. Also, don't put the xsi:nil attribute
3963 when the complex type has no content anyway.
3964
3965 * lisp/net/soap-client.el (soap-well-known-xmlns):
3966 Add the xml namespace.
3967 (soap-local-xmlns): Start with the xml namespace.
3968 (soap-xml-node-first-child): Skip xsd:annotation nodes too.
3969 (soap-make-xs-basic-types): More xsd types added.
3970 (soap-encode-xs-basic-type, soap-decode-xs-basic-type):
3971 Handle "language", "time", "date", "nonNegativeInteger".
3972 (soap-resolve-references-for-xs-element): Don't signal an error if
3973 the element does not have a type.
3974 (soap-xs-parse-simple-type): Subtypes are handled with ecase,
3975 added stum for xsd:list.
3976 (soap-xs-add-union): Call soap-l2fq on all union members.
3977 (soap-xs-add-extension): Call soap-l2fq on the base member.
3978 (soap-resolve-references-for-xs-simple-type): Don't signal an
3979 error if the simple type has no base.
3980 (soap-resolve-references-for-xs-simple-type): Bugfix, call
3981 soap-wsdl-get on each type of the base.
3982
3983 * lisp/net/soap-client.el (soap-resolve-references-for-xs-attribute):
3984 Referenced type can be eiher a simple type or a basic type.
3985 (soap-xs-add-restriction)
3986 (soap-xs-parse-extension-or-restriction): Use `soap-l2fq' on base.
3987 (soap-make-xs-basic-types)
3988 (soap-encode-xs-basic-type, soap-decode-xs-basic-type):
3989 Add support for more XMLSchema basic types.
3990 (soap-current-file, soap-xmlschema-imports): New defvars.
3991 (soap-parse-schema): Add locations from xsd:import tags to
3992 `soap-xmlschema-imports'.
3993 (soap-wsdl): Make destructor private.
3994 (soap-make-wsdl): New defun, SOAP-WSDL object constructor.
3995 (soap-wsdl-add-alias): Check if we try to replace aliases.
3996 (soap-fetch-xml-from-url, soap-fetch-xml-from-file)
3997 (soap-fetch-xml): New defuns.
3998 (soap-load-wsdl): Update to load the WSDL from either a file or
3999 an url.
4000 (soap-load-wsdl-from-url): Now an alias to `soap-load-wsdl'.
4001 (soap-parse-wsdl): Process wsdl:import tags and imports from
4002 `soap-xmlschema-imports'.
4003 * lisp/net/soap-client.el (soap-l2wk): Bugfix: call symbolp instead of
4004 symbol-name.
4005 (soap-l2fq): Make the name part always a string.
4006 (soap-name-p): New defun, used for name tests.
4007
4008 * lisp/net/soap-inspect.el (soap-sample-value-for-xs-complex-type):
4009 Supply sample values for choice types with a special tag.
4010 * lisp/net/soap-client.el (soap-encode-xs-complex-type):
4011 Handle anonymous elements correctly.
4012 (soap-encode-value): Accept nodes that have no namespace tag.
4013
4014 * lisp/net/soap-client.el (soap-invoke): Encode the string for
4015 `url-request-data' as UTF-8. Fixes issue 16.
4016
4017 2015-10-24 Nicolas Petton <nicolas@petton.fr>
4018
4019 Update the new icon
4020
4021 Move the E slightly to the right in the circle.
4022
4023 * etc/images/icons/hicolor/128x128/apps/emacs.png:
4024 * etc/images/icons/hicolor/16x16/apps/emacs.png:
4025 * etc/images/icons/hicolor/24x24/apps/emacs.png:
4026 * etc/images/icons/hicolor/32x32/apps/emacs.png:
4027 * etc/images/icons/hicolor/48x48/apps/emacs.png:
4028 * etc/images/icons/hicolor/scalable/apps/emacs.svg:
4029 * nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns:
4030 * nt/icons/emacs.ico: New icom update.
4031
4032 2015-10-24 Eli Zaretskii <eliz@gnu.org>
4033
4034 Avoid missing inline functions from lisp.h in TAGS
4035
4036 * src/lisp.h (LISP_MACRO_DEFUN): Mention in the commentary the
4037 need to end each invocation with a semi-colon.
4038 Add a semi-colon at the end of each invocation of LISP_MACRO_DEFUN
4039 and LISP_MACRO_DEFUN_VOID. This is to avoid missing in TAGS
4040 inline functions defined immediately after each invocation, and
4041 also avoid tagging every invocation of these macros.
4042
4043 2015-10-24 Eli Zaretskii <eliz@gnu.org>
4044
4045 A better fix for bug#21739
4046
4047 * src/buffer.c (set_update_modelines_for_buf): New function.
4048 (Fkill_buffer): Use it to set the global variable
4049 update_mode_lines if the killed buffer was displayed in some
4050 window. Don't set windows_or_buffers_changed. This is a better
4051 fix for bug#21739 than the previous fix, since it will cause only
4052 redisplay of mode lines, not of entire windows, but will still
4053 catch attention of x_consider_frame_title in xdisp.c, which
4054 redraws the frame title.
4055
4056 2015-10-24 Tassilo Horn <tsdh@gnu.org>
4057
4058 * lisp/dired-aux.el (dired-compress-files-alist): Add support for
4059 tar.bz2 and tar.xz archives.
4060
4061 2015-10-23 Eli Zaretskii <eliz@gnu.org>
4062
4063 Fix infloop in redisplay introduced by a recent change
4064
4065 * src/xdisp.c (redisplay_internal): Avoid inflooping when
4066 redisplaying the selected window sets the selected frame's
4067 redisplay flag. (Bug#21745)
4068
4069 2015-10-23 Nicolas Petton <nicolas@petton.fr>
4070
4071 * lisp/emacs-lisp/thunk.el: Better documentation.
4072
4073 2015-10-23 Nicolas Petton <nicolas@petton.fr>
4074
4075 Replace the old icon for Windows and Mac OSX
4076
4077 * nt/icons/emacs.ico:
4078 * nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns:
4079 Use the new icons.
4080
4081 2015-10-23 Stephen Leake <stephen_leake@stephe-leake.org>
4082
4083 * lisp/emacs-lisp/package.el (package-autoload-ensure-default-file):
4084 `load-path' should contain only directory names.
4085
4086 2015-10-23 Nicolas Petton <nicolas@petton.fr>
4087
4088 New library thunk.el
4089
4090 thunk.el is extracted from stream.el in ELPA, with additional tests.
4091
4092 * lisp/emacs-lisp/thunk.el: New file.
4093 * test/automated/thunk-tests.el: New file.
4094 * etc/NEWS: Add information about thunk.el
4095
4096 2015-10-23 Michael Albinus <michael.albinus@gmx.de>
4097
4098 Fix bug#21669
4099
4100 * lisp/filenotify.el (file-notify-rm-watch): Improve check for
4101 calling low-level functions.
4102
4103 * test/automated/file-notify-tests.el (file-notify--test-timeout):
4104 Decrase to 6 seconds for remote directories.
4105 (file-notify-test02-events): Expect different number of
4106 `attribute-changed' events for the local and remote cases. Apply
4107 short delays between the operations, in order to receive all
4108 events in the remote case. Combine `attribute-change' tests.
4109 (Bug#21669)
4110
4111 2015-10-23 Eli Zaretskii <eliz@gnu.org>
4112
4113 Decode the HTML source when displaying it in EWW
4114
4115 * lisp/net/eww.el (eww-view-source): Decode the HTML source
4116 according to its headers.
4117
4118 2015-10-23 Nicolas Petton <nicolas@petton.fr>
4119
4120 New default icon
4121
4122 * etc/images/icons/hicolor/128x128/apps/emacs23.png:
4123 * etc/images/icons/hicolor/16x16/apps/emacs23.png:
4124 * etc/images/icons/hicolor/24x24/apps/emacs23.png:
4125 * etc/images/icons/hicolor/32x32/apps/emacs23.png:
4126 * etc/images/icons/hicolor/48x48/apps/emacs23.png:
4127 * etc/images/icons/hicolor/scalable/apps/emacs23.svg:
4128 * etc/images/icons/hicolor/scalable/mimetypes/emacs-document23.svg:
4129 Move the old logo files to emacs23.*.
4130 * etc/images/icons/hicolor/128x128/apps/emacs.png:
4131 * etc/images/icons/hicolor/16x16/apps/emacs.png:
4132 * etc/images/icons/hicolor/24x24/apps/emacs.png:
4133 * etc/images/icons/hicolor/32x32/apps/emacs.png:
4134 * etc/images/icons/hicolor/48x48/apps/emacs.png:
4135 * etc/images/icons/hicolor/scalable/apps/emacs.svg:
4136 * etc/images/icons/hicolor/scalable/mimetypes/emacs-document.svg:
4137 New files.
4138 * etc/images/icons/README: Update the copyright information.
4139
4140 2015-10-23 Eli Zaretskii <eliz@gnu.org>
4141
4142 Fix redisplay of frame title when current buffer is killed
4143
4144 * src/buffer.c (Fkill_buffer): Set windows_or_buffers_changed to a
4145 non-zero value, to redisplay more than just the affected windows.
4146 (Bug#21739)
4147
4148 2015-10-23 Anders Lindgren <andlind@gmail.com>
4149
4150 NextStep maximization and NSTRACE rewrite
4151
4152 Full-height, full-width, and maximized windows now cover the
4153 entire screen (except the menu bar), including the part where the
4154 system dock is placed. The system zoom animation is no longer
4155 used.
4156
4157 Made NonMaximized->FullWidth->FullHeight->NonMaximized restore the
4158 original size.
4159
4160 * src/nsterm.m (ns_menu_bar_height): New function, return height of
4161 the menu bar, or 0 when it's hidden.
4162 (constrain_frame_rect): New function for constraining a frame.
4163 (ns_constrain_all_frames): Set frame size explicitly rather than
4164 relying on the system doing it for us by writing back the current
4165 frame size.
4166 (windowWillUseStandardFrame): Register non-maximized width or
4167 height as new user size. When entering full width or height,
4168 the other size component is taken from the user size.
4169 (fullscreenState): New method for accessing the fullscreen state.
4170 (constrainFrameRect): Restrict frame to be placed under the menu bar,
4171 if present. The old version, sometimes, restricted the height of a
4172 frame to the screen, this version never does this.
4173 (zoom): Perform zoom by setting the frame to the full size of the
4174 screen (minus the menu bar). The default system function, with the
4175 zoom animation, is no longer used, as the final frame size doesn't
4176 cover the entire screen.
4177
4178 Rework how to constrain resizing to the character grid. The old
4179 system used "resizeIncrements" in NSWindows. However, once a frame
4180 was resized so that it was not aligned to the text grid, it
4181 remained unaligned even after a resize. In addition, it conflicted
4182 when resizing a fullheight window.
4183
4184 * src/nsterm.m (windowWillResize): Restrict frame size to text grid,
4185 unless when pixelwise frame resizing is enabled.
4186 (updateFrameSize, initFrameFromEmacs)
4187 (toggleFullScreen, handleFS): Don't set resizeIncrements.
4188
4189 Redesign the NS trace system. The call structure is represented
4190 using indentations and vertical lines. The NSTRACE macro accepts
4191 printf-style arguments. New macros for printing various
4192 information.
4193
4194 * src/nsterm.h (NSTRACE_ENABLED): Macro to enable trace system.
4195 (NSTRACE, NSTRACE_WHEN, NSTRACE_UNLESS): Macros to start a new
4196 block (typically a function), accept printf-style arguments.
4197 (NSTRACE_MSG): Macro for extra information, accepts
4198 printf-style arguments.
4199 (NSTRACE_what): Macros for printing various types.
4200 (NSTRACE_FMT_what): Macro with printf format string snippets.
4201 (NSTRACE_ARG_what): Macros for passing printf-style arguments,
4202 corresponds to NSTRACE_FMT_what.
4203 (NSTRACE_RETURN): Macro to print return value, accept
4204 printf-style arguments.
4205 (NSTRACE_RETURN_what): Macros to print return value for
4206 various types.
4207
4208 * nsterm.m: Remove old NSTRACE macro
4209 * src/nsterm.m (nstrace_num): Trace counter.
4210 (nstrace_depth): Current call depth.
4211 (nstrace_leave): NSTRACE support function, called when the
4212 local variable "nstrace_enabled" goes out of scope using the
4213 "cleanup" extension.
4214 (ns_print_fullscreen_type_name): NSTRACE_FSTYPE support function.
4215 (constrain_frame_rect, ns_constrain_all_frames)
4216 (ns_update_auto_hide_menu_bar, ns_update_begin)
4217 (ns_update_window_begin, update_window_end, ns_update_end)
4218 (ns_focus, ns_unfocus, ns_ring_bell, ns_frame_raise_lower)
4219 (ns_frame_rehighlight, x_make_frame_visible)
4220 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
4221 (x_destroy_window, x_set_offset, x_set_window_size)
4222 (ns_fullscreen_hook, ns_lisp_to_color, ns_color_to_lisp)
4223 (ns_defined_color, frame_set_mouse_pixel_position)
4224 (note_mouse_movement, ns_mouse_position, ns_frame_up_to_date)
4225 (ns_define_frame_cursor, x_get_keysym_name, ns_redraw_scroll_bars)
4226 (ns_clear_frame, ns_clear_frame_area, ns_scroll_run)
4227 (ns_after_update_window_line, ns_shift_glyphs_for_insert)
4228 (dumpcursor, ns_draw_vertical_window_border)
4229 (ns_draw_window_divider, ns_draw_relief)
4230 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
4231 (ns_dumpglyphs_image, ns_draw_glyph_string, ns_send_appdefined)
4232 (ns_read_socket, ns_select, ns_set_vertical_scroll_bar)
4233 (ns_set_horizontal_scroll_bar, ns_condemn_scroll_bars)
4234 (ns_redeem_scroll_bar, ns_judge_scroll_bars, ns_delete_terminal)
4235 (ns_create_terminal, ns_term_init, sendEvent)
4236 (applicationDidFinishLaunching, applicationDidBecomeActive)
4237 (timeout_handler, fd_handler, EmacsView_dealloc, changeFont)
4238 (acceptsFirstResponder, resetCursorRects, keyDown, mouseDown)
4239 (deltaIsZero, rightMouseDown, otherMouseDown, mouseUp)
4240 (rightMouseUp, otherMouseUp, scrollWheel, mouseMoved)
4241 (mouse_autoselect_window, in_window, mouseDragged)
4242 (rightMouseDragged, otherMouseDragged, windowShouldClose)
4243 (updateFrameSize, windowWillResize, windowDidResize)
4244 (windowDidBecomeKey, windowDidResignKey, windowWillMiniaturize)
4245 (initFrameFromEmacs, windowDidMove, windowDidDeminiaturize)
4246 (windowDidExpose, windowDidMiniaturize, windowWillEnterFullScreen)
4247 (windowDidEnterFullScreen, windowWillExitFullScreen)
4248 (windowDidExitFullScreen, toggleFullScreen, handleFS, setFSValue)
4249 (mouseEntered, mouseExited, menuDown, toolbarClicked, drawRect)
4250 (draggingEntered, performDragOperation, validRequestorForSendType)
4251 (setMiniwindowImage, constrainFrameRect, performZoom, zoom)
4252 (EmacsScroller_initFrame, EmacsScroller_setFrame)
4253 (EmacsScroller_dealloc, condemn, reprieve, judge)
4254 (resetCursorRects, setPosition, EmacsScroller_mouseDown)
4255 (EmacsScroller_mouseDragged, syms_of_nsterm): Use new trace system.
4256
4257 * nsfns.m: Remove old NSTRACE macro
4258 * src/nsfns.m (x_set_icon_name, ns_set_name, x_explicitly_set_name)
4259 (x_implicitly_set_name, x_set_title, ns_set_name_as_filename)
4260 (ns_implicitly_set_icon_type, x_set_icon_type): Use new trace system.
4261
4262 * nsimage.m: Remove old NSTRACE macro
4263 * src/nsimage.m (ns_image_from_XBM, ns_image_for_XPM)
4264 (ns_image_from_bitmap_file, ns_load_image): Use new trace system.
4265
4266 * nsmenu.m: Remove old NSTRACE macro
4267 * src/nsmenu.m (ns_update_menubar, ns_menu_show, ns_popup_dialog):
4268 Use new trace system.
4269
4270 2015-10-22 Katsumi Yamaoka <yamaoka@jpl.org>
4271
4272 No need to use eval-and-compile
4273
4274 * lisp/gnus/auth-source.el: Do require epg (when compiling) before
4275 autoload epg functions.
4276
4277 2015-10-22 Katsumi Yamaoka <yamaoka@jpl.org>
4278
4279 Fix auth-source-epa-make-gpg-token compilation (bug#21724)
4280
4281 * lisp/gnus/auth-source.el: Add eval-and-compile to autoloads for
4282 epg-context-set-passphrase-callback, epg-decrypt-string, and
4283 epg-encrypt-string; require epg when compiling for the setf-method
4284 for epg-context-armor. (bug#21724)
4285
4286 2015-10-22 Eli Zaretskii <eliz@gnu.org>
4287
4288 Include file cleanup for w32 files in src directory
4289
4290 * src/w32xfns.c: Don't include keyboard.h, window.h, charset.h,
4291 fontset.h, blockinput.h.
4292 * src/w32uniscribe.c: Don't include dispextern.h, character.h,
4293 charset.h, fontset.h.
4294 * src/w32term.c: Don't include systty.h, systime.h, charset.h,
4295 character.h, ccl.h, dispextern.h, disptab.h, intervals.h,
4296 process.h, atimer.h, keymap.h, w32heap.h. Include bitmap/gray.xbm
4297 in an ifdef-ed away block.
4298 Include fcntl.h for CYGWIN.
4299 (set_frame_param): Remove unused function.
4300 * src/w32select.c: Don't include charset.h and composite.h.
4301 (setup_config, Fw32_get_clipboard_data): Avoid compiler warnings
4302 due to pointer signedness mismatches.
4303 * src/w32reg.c (w32_get_string_resource): Avoid compiler warnings
4304 due to pointer signedness mismatches.
4305 * src/w32proc.c: Include unistd.h. Don't include systime.h,
4306 process.h, dispextern.h.
4307 (sys_spawnve, Fw32_short_file_name, Fw32_long_file_name)
4308 (Fw32_application_type): Avoid compiler warnings due to pointer
4309 signedness mismatches.
4310 * src/w32menu.c: Don't include keymap.h, termhooks.h, window.h,
4311 character.h, charset.h, dispextern.h.
4312 (simple_dialog_show, add_menu_item): Avoid compiler warnings due
4313 to pointer signedness mismatches.
4314 * src/w32inevt.c: Don't include dispextern.h, window.h,
4315 termhooks.h, w32heap.h.
4316 * src/w32font.c: Don't include dispextern.h, character.h,
4317 charset.h, fontset.h, font.h.
4318 (intern_font_name, add_font_entity_to_list)
4319 (registry_to_w32_charset, w32_to_x_charset, fill_in_logfont)
4320 (list_all_matching_fonts): Avoid compiler warnings due to pointer
4321 signedness mismatches.
4322 * src/w32fns.c: Don't include character.h, intervals.h,
4323 dispextern.h, epaths.h, charset.h, ccl.h, fontset.h, systime.h,
4324 termhooks.h, w32heap.h, bitmap/gray.xbm, font.h, w32font.h.
4325 (w32_color_map_lookup, add_system_logical_colors_to_map)
4326 (x_decode_color, x_set_name, FPRINTF_WM_CHARS, Fxw_color_defined_p)
4327 (Fxw_color_values, x_display_info_for_name, Fset_message_beep)
4328 (x_create_tip_frame, Fx_file_dialog, Fsystem_move_file_to_trash)
4329 (w32_parse_hot_key, Ffile_system_info, w32_kbd_patch_key): Avoid
4330 compiler warnings, mainly due to pointer signedness mismatches.
4331 (unwind_create_frame_1): Remove unused function.
4332 * src/w32console.c: Don't include character.h, disptab.h, frame.h,
4333 window.h, termhooks.h, dispextern.h.
4334 (w32con_write_glyphs, w32con_write_glyphs_with_face): Fix pointer
4335 signedness mismatch.
4336 * src/w32.c: Include c-strcase.h and systty.h. Don't include
4337 w32heap.h.
4338
4339 2015-10-22 Tassilo Horn <tsdh@gnu.org>
4340
4341 Improve doc-view wrt. auto-revert-mode
4342
4343 * lisp/doc-view.el (doc-view-revert-buffer): Don't revert when file
4344 is corrupted (bug#21729).
4345 (doc-view-mode): Set doc-view-revert-buffer as revert-buffer-function.
4346
4347 2015-10-22 Oleh Krehel <ohwoeowho@gmail.com>
4348
4349 Describe dired-do-compress-to in the manual
4350
4351 * etc/NEWS: Update.
4352
4353 * lisp/dired-aux.el: Fix typo.
4354
4355 * doc/emacs/dired.texi: Add entry.
4356
4357 2015-10-22 Jürgen Hötzel <juergen@archlinux.org>
4358
4359 Further fix for proper locale handling in tramp-gvfs.el
4360
4361 * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
4362 Just suppress LC_MESSAGES locale category settings.
4363
4364 2015-10-21 Paul Eggert <eggert@cs.ucla.edu>
4365
4366 New lispref section “Security Considerations”
4367
4368 This attempts to document some of the issues recently discussed
4369 on emacs-devel, and to indicate other such issues. The section
4370 could be a lot longer.
4371 * doc/lispref/os.texi (Security Considerations):
4372 New node.
4373 * doc/lispref/elisp.texi (Top):
4374 * doc/lispref/processes.texi (Shell Arguments):
4375 * lisp/subr.el (shell-quote-argument):
4376 * src/callproc.c (syms_of_callproc):
4377 Reference it.
4378
4379 2015-10-21 Paul Eggert <eggert@cs.ucla.edu>
4380
4381 Merge from gnulib
4382
4383 This incorporates:
4384 2015-10-18 stdalign: work around pre-4.9 GCC x86 bug
4385 2015-10-18 time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
4386 * doc/misc/texinfo.tex, lib/stdalign.in.h, lib/time_rz.c:
4387 Copy from gnulib.
4388
4389 2015-10-21 Katsumi Yamaoka <yamaoka@jpl.org>
4390
4391 * lisp/gnus/mailcap.el (mailcap-mime-data): Remove fboundp checks.
4392 (mailcap-viewer-passes-test): Do it instead. Thanks to Stefan Monnier.
4393
4394 2015-10-21 Ken Brown <kbrown@cornell.edu>
4395
4396 Further include-file cleanup
4397
4398 * src/sheap.c: Include stdlib.h.
4399 * src/unexcw.c: Include string.h.
4400
4401 2015-10-21 Eli Zaretskii <eliz@gnu.org>
4402
4403 Fix logic in 'server-kill-emacs-query-function'
4404
4405 * lisp/server.el (server-kill-emacs-query-function): Correct the
4406 logic that controls whether the user is asked for confirmation.
4407 (Bug#21723)
4408
4409 2015-10-21 Artur Malabarba <bruce.connor.am@gmail.com>
4410
4411 * lisp/isearch.el (isearch-search-fun-default): Simplify logic.
4412 (isearch--lax-regexp-function-p): New function.
4413
4414 2015-10-21 Artur Malabarba <bruce.connor.am@gmail.com>
4415
4416 * lisp/isearch.el: Support lax-whitespace in regexp-function searches.
4417 (isearch-search-fun-default): Let-bind `search-spaces-regexp'
4418 around `isearch-regexp-function'.
4419
4420 2015-10-21 Artur Malabarba <bruce.connor.am@gmail.com>
4421
4422 * lisp/isearch.el: Rename word search to regexp-function search.
4423 `isearch-word' went well beyond its original purpose, and the name
4424 no longer makes sense. It is now called
4425 `isearch-regexp-function', and its value should always be a function
4426 that converts a string to a regexp (though setting it to t is still
4427 supported for now).
4428 (isearch-word): Make obsolete.
4429 (isearch-regexp-function): New variable.
4430 (isearch-mode, isearch-done, isearch--state, isearch--set-state)
4431 (with-isearch-suspended, isearch-toggle-regexp)
4432 (isearch-toggle-word, isearch-toggle-symbol)
4433 (isearch-toggle-character-fold, isearch-query-replace)
4434 (isearch-occur, isearch-highlight-regexp)
4435 (isearch-search-and-update, isearch-message-prefix)
4436 (isearch-search-fun-default, isearch-search)
4437 (isearch-lazy-highlight-new-loop, isearch-lazy-highlight-search):
4438 Use it.
4439 (isearch-lazy-highlight-regexp-function): New var.
4440 (isearch-lazy-highlight-word): Make obsolete.
4441 (isearch--describe-regexp-mode): New function.
4442 (isearch--describe-word-mode): Make obsolete.
4443
4444 * lisp/info.el (Info-isearch-search):
4445 * lisp/replace.el (replace-search, replace-highlight):
4446 * lisp/obsolete/longlines.el (longlines-search-function):
4447 * lisp/hexl.el (hexl-isearch-search-function):
4448 * lisp/cedet/semantic/senator.el (senator-isearch-search-fun):
4449 Use the new var.
4450
4451 2015-10-21 Oleh Krehel <ohwoeowho@gmail.com>
4452
4453 Add dired-do-compress-to command bound to "c"
4454
4455 * lisp/dired-aux.el (dired-shell-command): Use the caller's
4456 `default-directory', return the result of `process-file'.
4457 (dired-compress-file-suffixes): Add comment on why "tar -zxf" isn't
4458 used by default.
4459 (dired-compress-files-alist): New defvar.
4460 (dired-do-compress-to): New command.
4461
4462 * lisp/dired.el (dired-mode-map): Bind `dired-do-compress-to' to "c".
4463 (dired-do-compress-to): Add an autoload entry.
4464
4465 * etc/NEWS: Add two entries.
4466
4467 2015-10-21 Tassilo Horn <tsdh@gnu.org>
4468
4469 Make RefTeX work with LaTeX subfiles package
4470
4471 * lisp/textmodes/reftex.el (reftex-TeX-master-file): Recognize subfiles
4472 document class argument as master file for referencing purposes.
4473
4474 2015-10-21 Katsumi Yamaoka <yamaoka@jpl.org>
4475
4476 * lisp/gnus/mailcap.el (mailcap-mailcap-entry-passes-test): Doc fix.
4477
4478 2015-10-20 Paul Eggert <eggert@cs.ucla.edu>
4479
4480 Include-file cleanup for src directory
4481
4482 Omit ‘#include "foo.h"’ unless the file needs foo.h (Bug#21707).
4483 In a few cases, add ‘#include "foo.h"’ if the file needs foo.h
4484 but does not include it directly. As a general rule, a source
4485 file should include foo.h if it needs the interfaces that foo.h
4486 defines.
4487 * src/alloc.c: Don’t include process.h. Include dispextern.h,
4488 systime.h.
4489 * src/atimer.c: Don’t include blockinput.h.
4490 * src/buffer.c: Include coding.h, systime.h. Don’t include
4491 keyboard.h, coding.h.
4492 * src/callint.c: Don’t include commands.h, keymap.h.
4493 * src/callproc.c: Don’t include character.h, ccl.h, composite.h,
4494 systty.h, termhooks.h.
4495 * src/casetab.c: Don’t include character.h.
4496 * src/category.c: Don’t include charset.h, keymap.h.
4497 * src/ccl.h: Don’t include character.h.
4498 * src/character.c: Don’t include charset.h.
4499 * src/charset.c: Don’t include disptab.h.
4500 * src/chartab.c: Don’t include ccl.h.
4501 * src/cm.c: Don’t include frame.h, termhooks.h.
4502 * src/cmds.c: Don’t include window.h, dispextern.h.
4503 * src/coding.c: Don’t include window.h, frame.h.
4504 * src/composite.c: Include composite.h. Don’t include window.h,
4505 font.h.
4506 * src/data.c: Don’t include syssignal.h, termhooks.h, font.h.
4507 * src/dbusbind.c: Don’t include frame.h.
4508 * src/decompress.c: Don’t include character.h.
4509 * src/dired.c: Don’t include character.h, commands.h, charset.h.
4510 * src/dispnew.c: Don’t include character.h, indent.h, intervals.h,
4511 process.h, timespec.h. Include systime.h.
4512 * src/doc.c: Include coding.h. Don’t include keyboard.h.
4513 * src/editfns.c: Include composite.h. Don’t include frame.h.
4514 * src/emacs.c: Include fcntl.h, coding.h. Don’t include
4515 commands.h, systty.h..
4516 * src/fileio.c: Don’t include intervals.h, dispextern.h.
4517 Include composite.h.
4518 * src/filelock.c: Don’t include character.h, systime.h.
4519 * src/fns.c: Don’t include time.h, commands.h, keyboard.h,
4520 keymap.h, frame.h, blockinput.h, xterm.h. Include composite.h.
4521 * src/font.c: Include termhooks.h.
4522 * src/font.h: Don’t include ccl.h, frame.h. Add forward decls of
4523 struct composition_it, struct face, struct glyph_string.
4524 * src/fontset.c: Don’t include buffer.h, ccl.h, keyboard.h,
4525 intervals.h, window.h, termhooks.h.
4526 * src/frame.c: Don’t include character.h, commands.h, font.h.
4527 * src/frame.h: Don’t include dispextern.h.
4528 * src/fringe.c: Don’t include character.h.
4529 * src/ftcrfont.c: Don’t include dispextern.h, frame.h,
4530 character.h, charset.h, fontset.h.
4531 * src/ftfont.c: Don’t include frame.h, blockinput.h, coding.h,
4532 fontset.h.
4533 * src/ftxfont.c: Don’t include dispextern.h, character.h,
4534 charset.h, fontset.h.
4535 * src/gfilenotify.c: Don’t include frame.h, process.h.
4536 * src/gtkutil.c: Include dispextern.h, frame.h, systime.h.
4537 Don’t include syssignal.h, buffer.h, charset.h, font.h.
4538 * src/gtkutil.h: Don’t include frame.h.
4539 * src/image.c: Include fcntl.h and stdio.h instead of sysstdio.h.
4540 Don’t include character.h.
4541 * src/indent.c: Don’t include keyboard.h, termchar.h.
4542 * src/inotify.c: Don’t include character.h, frame.h.
4543 * src/insdel.c: Include composite.h. Don’t include blockinput.h.
4544 * src/intervals.c: Don’t include character.h, keyboard.h.
4545 * src/intervals.h: Don’t include dispextern.h, composite.h.
4546 * src/keyboard.c: Don’t include sysstdio.h, disptab.h, puresize.h.
4547 Include coding.h.
4548 * src/keyboard.h: Don’t incldue systime.h.
4549 * src/keymap.c: Don’t include charset.h, frame.h.
4550 * src/lread.c: Include dispextern.h and systime.h.
4551 Don’t include frame.h. Include systime.h.
4552 * src/macros.c: Don’t include commands.h, character.h, buffer.h.
4553 * src/menu.c: Include character.h, coding.h. Don’t include
4554 dispextern.h.
4555 * src/menu.h: Don’t include systime.h.
4556 * src/minibuf.c: Don’t include commands.h, dispextern.h, syntax.h,
4557 intervals.h, termhooks.h.
4558 * src/print.c: Include coding.h. Don’t include keyboard.h,
4559 window.h, dispextern.h, termchar.h, termhooks.h, font.h.
4560 Add forward decl of struct terminal.
4561 * src/process.c: Don’t include termhooks.h, commands.h,
4562 dispextern.h, composite.h.
4563 * src/region-cache.c: Don’t include character.h.
4564 * src/scroll.c: Don’t include keyboard.h, window.h.
4565 * src/search.c: Don’t include category.h, commands.h.
4566 * src/sound.c: Don’t include dispextern.h.
4567 * src/syntax.c: Don’t include command.h, keymap.h.
4568 * src/sysdep.c: Don’t include window.h, dispextern.h.
4569 * src/systime.h: Use ‘#ifdef emacs’, not ‘#ifdef EMACS_LISP_H’,
4570 * src/term.c: Don’t include systty.h, intervals.h, xterm.h.
4571 * src/terminal.c: Include character.h.
4572 Don’t include charset.h, coding.h.
4573 * src/textprop.c: Don’t include character.h.
4574 * src/undo.c: Don’t include character.h, commands.h, window.h.
4575 * src/unexsol.c: Don’t include character.h, charset.h.
4576 * src/widget.c: Include widget.h. Don’t include keyboard.h,
4577 window.h, dispextern.h, blockinput.h, character.h, font.h.
4578 * src/widgetprv.h: Don’t include widget.h.
4579 * src/window.c: Don’t include character.h, menu.h, intervals.h.
4580 * src/xdisp.c: Include composite.h, systime.h. Don’t include
4581 macros.h, process.h.
4582 * src/xfaces.c: Don’t include charset.h, keyboard.h, termhooks.h,
4583 intervals.h.
4584 * src/xfns.c: Don’t include menu.h, character.h, intervals.h,
4585 epaths.h, fontset.h, systime.h, atimer.h, termchar.h.
4586 * src/xfont.c: Don’t include dispextern.h, fontset.h, ccl.h.
4587 * src/xftfont.c: Don’t include dispextern.h, character.h, fontset.h.
4588 * src/xgselect.c: Don’t include timespec.h, frame.h.
4589 Include systime.h.
4590 * src/xgselect.h: Don’t include time.h.
4591 Use a forward decl to struct timespec instead.
4592 * src/xmenu.c: Don’t include keymap.h, character.h, charset.h,
4593 dispextern.h. Include systime.h.
4594 * src/xml.c: Don’t include character.h.
4595 * src/xrdb.c [USE_MOTIF]: Don’t include keyboard.h.
4596 * src/xselect.c: Don’t include dispextern.h, character.h,
4597 buffer.h, process.h.
4598 * src/xsmfns.c: Don’t include systime.h, sysselect.h.
4599 * src/xterm.c: Don’t include syssignal.h, charset.h, disptab.h,
4600 intervals.h process.h, keymap.h, xgselect.h. Include composite.h.
4601
4602 2015-10-20 Paul Eggert <eggert@cs.ucla.edu>
4603
4604 (/ N) now returns the reciprocal of N
4605
4606 This is more compatible with Common Lisp and XEmacs (Bug#21690). See:
4607 http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg01053.html
4608 * lisp/color.el (color-hue-to-rgb, color-hsl-to-rgb)
4609 (color-xyz-to-srgb, color-xyz-to-lab):
4610 * lisp/emacs-lisp/cl-extra.el (cl-float-limits):
4611 * lisp/net/shr-color.el (shr-color-hue-to-rgb)
4612 (shr-color-hsl-to-rgb-fractions):
4613 Exploit the change to simplify the code a bit.
4614 * lisp/emacs-lisp/bytecomp.el (byte-compile-quo):
4615 Don’t complain about single-argument calls to ‘/’.
4616 * src/data.c (arith_driver, float_arith_driver):
4617 Implement the change.
4618
4619 2015-10-20 Dmitry Gutov <dgutov@yandex.ru>
4620
4621 Call vc-dir-refresh after stash operations
4622
4623 * lisp/vc/vc-git.el (vc-git-stash-apply-at-point)
4624 (vc-git-stash-pop-at-point): Call vc-dir-refresh (bug#13960).
4625
4626 * lisp/vc/vc-dir.el (vc-dir-resynch-file): Expand FNAME as well,
4627 since it can be abbreviated (as returned by vc-find-root).
4628
4629 2015-10-20 Dmitry Gutov <dgutov@yandex.ru>
4630
4631 * lisp/vc/vc-svn.el:
4632 * lisp/vc/vc-mtn.el:
4633 * lisp/vc/vc-hg.el:
4634 * lisp/vc/vc-cvs.el:
4635 * lisp/vc/vc-git.el:
4636 * lisp/vc/vc-bzr.el: Don't declare vc-exec-after anymore.
4637 Its usages have been replaced with vc-run-delayed.
4638
4639 2015-10-20 Dima Kogan <dima@secretsauce.net>
4640
4641 Fix memory leak in fontset handling
4642
4643 * src/font.c (copy_font_spec): Make a deep copy of the input
4644 argument FONT. (Bug#21651)
4645
4646 2015-10-20 Michael Sperber <mike@xemacs.org>
4647
4648 * lisp/gnus/mailcap.el (mailcap-mime-data):
4649 Conditonalize `doc-view-mode', which does not exist on XEmacs.
4650
4651 2015-10-20 Oleh Krehel <ohwoeowho@gmail.com>
4652
4653 Update the way directories are compressed
4654
4655 * lisp/dired-aux.el (dired-compress-file-suffixes): Update the recipe
4656 for *.tar.gz decompression to use a pipe.
4657 Add an entry for the default directory compression (to *.tar.g).
4658 (dired-compress-file): Update.
4659
4660 See https://lists.gnu.org/archive/html/emacs-devel/2015-10/msg00949.html.
4661
4662 2015-10-20 Michael Sperber <mike@xemacs.org>
4663
4664 Unbreak `group' option for `mail-sources'
4665
4666 * nnml.el (nnml-retrieve-groups, nnml-request-scan):
4667 * nnmail.el (nnmail-get-new-mail-per-group)
4668 (nnmail-get-new-mail-1): Unbreak `group' option for `mail-sources'.
4669
4670 2015-10-19 Nicolas Petton <nicolas@petton.fr>
4671
4672 New function seq-position
4673
4674 * lisp/emacs-lisp/seq.el (seq-position): New function.
4675 * test/automated/seq-tests.el: New tests for seq-position.
4676 * doc/lispref/sequences.texi: Add documentation for `seq-position'.
4677
4678 2015-10-19 Ken Brown <kbrown@cornell.edu>
4679
4680 Enable --with-wide-int build on 32-bit Cygwin
4681
4682 * src/sheap.c (STATIC_HEAP_SIZE): Remove distinction between x86
4683 and x86_64 to enable --with-wide-int build on 32-bit Cygwin.
4684
4685 2015-10-19 Glenn Morris <rgm@gnu.org>
4686
4687 * doc/emacs/ack.texi (Acknowledgments): Small, sad, update.
4688
4689 2015-10-19 Eli Zaretskii <eliz@gnu.org>
4690
4691 Resurrect image loading under auto-image-file-mode
4692
4693 * src/image.c (x_find_image_fd): Handle the case of -2 returned by
4694 'openp' specially. This special case was lost in the changes on
4695 2015-08-18. (Bug#21685)
4696
4697 2015-10-19 Eli Zaretskii <eliz@gnu.org>
4698
4699 Fix return value of 'set-file-extended-attributes'
4700
4701 * lisp/files.el (set-file-extended-attributes): Return non-nil
4702 when setting either ACLs or SELinux context succeeds. Document
4703 the return value. (Bug#21699)
4704
4705 * doc/lispref/files.texi (Changing Files): Document the return
4706 value of set-file-extended-attributes.
4707
4708 2015-10-19 Eli Zaretskii <eliz@gnu.org>
4709
4710 Improve documentation of functions that change files
4711
4712 * doc/lispref/files.texi (Changing Files): Document that these
4713 functions signal an error on failure.
4714
4715 2015-10-18 Eli Zaretskii <eliz@gnu.org>
4716
4717 Fix doc string of 'shell-quote-argument'
4718
4719 * lisp/subr.el (shell-quote-argument): Doc fix. (Bug#21702)
4720
4721 2015-10-18 Michael Albinus <michael.albinus@gmx.de>
4722
4723 Some minor Tramp changes
4724
4725 * doc/misc/tramp.texi (Obtaining Tramp): Add http git cloning.
4726
4727 * lisp/net/tramp.el (tramp-handle-make-auto-save-file-name):
4728 Expand `tramp-auto-save-directory'.
4729
4730 2015-10-18 Michael Albinus <michael.albinus@gmx.de>
4731
4732 Minor edits in Tramp
4733
4734 * lisp/net/tramp-adb.el (directory-listing-before-filename-regexp):
4735 Declare it.
4736
4737 * lisp/net/tramp-compat.el (directory-listing-before-filename-regexp):
4738 Remove declaration.
4739
4740 2015-10-17 Mark Oteiza <mvoteiza@udel.edu>
4741
4742 * lisp/emacs-lisp/eldoc.el: Add back-to-indentation to the command list.
4743
4744 2015-10-17 Eli Zaretskii <eliz@gnu.org>
4745
4746 Avoid crashes when redisplayng a window changes faces or fonts
4747
4748 * src/xdisp.c (redisplay_internal): If redisplaying the selected
4749 window or one of the frames turns on the frame's 'redisplay' flag,
4750 redisplay again. (Bug#21428)
4751
4752 * src/frame.c (x_set_font): Set the frame's 'fonts_changed' flag.
4753
4754 2015-10-17 Michael Albinus <michael.albinus@gmx.de>
4755
4756 Solve timimg issues in file-notify-tests.el
4757
4758 * test/automated/file-notify-tests.el (file-notify-test02-events):
4759 Rectify `attribute-change' tests. There are timing issues with
4760 gfilenotify. (Bug#21669)
4761
4762 2015-10-16 Paul Eggert <eggert@cs.ucla.edu>
4763
4764 Fix quoting of data within htmlfontify doc
4765
4766 * doc/misc/htmlfontify.texi (Data Structures, Customization):
4767 Fix quoting of data structures. A Lisp quote is needed only
4768 when data appears within Lisp code.
4769
4770 2015-10-16 Artur Malabarba <bruce.connor.am@gmail.com>
4771
4772 * lisp/emacs-lisp/package.el: Reload archive-contents if
4773 priorities change.
4774 (package--old-archive-priorities): New variable.
4775 (package-read-all-archive-contents, package-menu--refresh): Use it
4776 to decide when the `package-archive-contents' needs to be read
4777 again.
4778
4779 2015-10-16 Paul Eggert <eggert@cs.ucla.edu>
4780
4781 Make src headers idempotent and standalone
4782
4783 Redo src/*.h so that each include file is idempotent (that is, can
4784 be included multiple times with the latter inclusions having no
4785 effect) and standalone (that is, can be included by itself,
4786 with no include file other than config.h needed as a prerequisite).
4787 This is standard practice in GNU programs nowadays.
4788 * lwlib/lwlib-widget.h, src/buffer.h, src/category.h, src/character.h:
4789 * src/charset.h, src/coding.h, src/commands.h, src/disptab.h:
4790 * src/fontset.h, src/gnutls.h, src/indent.h, src/keymap.h, src/macros.h:
4791 * src/regex.h [emacs]:
4792 * src/syntax.h, src/systty.h, src/termhooks.h:
4793 Include lisp.h, for Lisp_Object.
4794 * src/buffer.h, src/category.h, src/cm.h, src/commands.h, src/disptab.h:
4795 * src/indent.h, src/intervals.h, src/keyboard.h, src/macros.h:
4796 * src/process.h, src/puresize.h, src/region-cache.h, src/syntax.h:
4797 * src/syssignal.h, src/sysstdio.h, src/systty.h, src/termchar.h:
4798 * src/termopts.h, src/tparam.h, src/unexec.h:
4799 Protect against multiple inclusion.
4800 * src/buffer.h: Include character.h, for STRING_CHAR.
4801 * src/emacsgtkfixed.h (struct frame):
4802 * src/fontset.h (struct face):
4803 * src/region-cache.h (struct buffer):
4804 * src/termhooks.h (struct glyph):
4805 * src/xsettings.h (struct x_display_info):
4806 Add possibly-forward decl.
4807 * src/syntax.h: Include buffer.h, for BVAR.
4808 * src/sysselect.h: Include lisp.h, for eassume.
4809 * src/termchar.h: Include <stdio.h>, for FILE.
4810 * src/widget.h: Include <X11/IntrinsicP.h>, for Widget.
4811 * src/xsettings.h: Include <X11/Xlib.h>, for XEvent.
4812
4813 2015-10-16 Jürgen Hötzel <juergen@archlinux.org>
4814
4815 Handle symlink targets containing spaces in tramp-gvfs.el
4816
4817 * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
4818 Handle symlink targets containing spaces.
4819
4820 2015-10-16 Artur Malabarba <bruce.connor.am@gmail.com>
4821
4822 * lisp/custom.el (custom-theme-load-path): Demote to defvar.
4823
4824 `custom-theme-load-path' was a defcustom, but it shouldn't be for the
4825 same reason that `load-path' shouldn't. Setting it via the customize
4826 interface is a trap for the user.
4827
4828 Installed themes commonly add themselves to this variable, which means
4829 its value is not fit for being saved (it will permanently remember dirs
4830 that don't exist anymore).
4831
4832 This is aggravated by the fact that Emacs always applies the `user'
4833 theme on top of any theme that's loaded, since this will apply the old
4834 variable value and remove any new directories that had been recently
4835 added by themes themselves.
4836
4837 Not to mention, we already have `custom-theme-directory', which is safe
4838 to customize.
4839
4840 2015-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
4841
4842 * lisp/mpc.el: Rename the new toggling commands.
4843 (mpc-toggle-consume, mpc-toggle-repeat, mpc-toggle-single)
4844 (mpc-toggle-shuffle): Add "-toggle" in the name.
4845
4846 2015-10-16 Eli Zaretskii <eliz@gnu.org>
4847
4848 Improve the doc string of 'completion-boundaries'
4849
4850 * lisp/minibuffer.el (completion-boundaries): Rename the argument
4851 TABLE to COLLECTION, for consistency with other high-level
4852 completion functions. Document how COLLECTION is called if it
4853 is a function. (Bug#21644)
4854
4855 2015-10-16 Oleh Krehel <ohwoeowho@gmail.com>
4856
4857 * lisp/dired-aux.el (dired-shell-command): Fix compile warning.
4858
4859 2015-10-16 Oleh Krehel <ohwoeowho@gmail.com>
4860
4861 Make dired-do-compress work for *.zip files
4862
4863 * lisp/dired-aux.el (dired-check-process): Transform the top-level
4864 comment into a docstring.
4865 (dired-shell-command): New command. This mirrors
4866 `dired-check-process', but is more user-friendly for passing
4867 arguments.
4868 (dired-compress-file-suffixes): Allow to specify the command switches
4869 along with input (%i) and output (%o) inside the PROGRAM part.
4870 Add an entry for *.zip files, and update the entry for *.tar.gz files
4871 to the new style. Update the docstring.
4872 (dired-compress-file): When PROGRAM matches %i or %o, use the new
4873 logic.
4874 (dired-update-file-line): Avoid an error when at end of buffer.
4875
4876 Fixes bug#21637.
4877
4878 2015-10-16 Eli Zaretskii <eliz@gnu.org>
4879
4880 Minor improvement in documentation of internals
4881
4882 * doc/lispref/internals.texi (Writing Emacs Primitives): Document QUIT.
4883
4884 2015-10-16 Eli Zaretskii <eliz@gnu.org>
4885
4886 Improve documentation of COLLECTION in completion functions
4887
4888 * doc/lispref/minibuf.texi (Minibuffer Completion): Add a
4889 cross-reference to "Programmed Completion".
4890
4891 * src/minibuf.c (Fcompleting_read): Improve the doc string.
4892 (Bug#21644)
4893
4894 2015-10-16 Eli Zaretskii <eliz@gnu.org>
4895
4896 Add more release info to etc/HISTORY
4897
4898 * etc/HISTORY: Add more release information about 19.x and 20.x
4899 versions.
4900
4901 2015-10-15 Paul Eggert <eggert@cs.ucla.edu>
4902
4903 New file etc/HISTORY
4904
4905 * admin/FOR-RELEASE: Procedure for etc/HISTORY.
4906 * etc/HISTORY: New file.
4907 * etc/NEWS: Mention it.
4908
4909 2015-10-15 Dmitry Gutov <dgutov@yandex.ru>
4910
4911 js-mode: Don't misindent generator methods
4912
4913 * lisp/progmodes/js.el (js--looking-at-operator-p): Distinguish
4914 generator methods from multiplication operator
4915 (https://github.com/mooz/js2-mode/issues/275).
4916
4917 2015-10-15 Paul Eggert <eggert@cs.ucla.edu>
4918
4919 Fix animation timeout delay calculation
4920
4921 * lisp/image.el (image-animate-timeout):
4922 Don’t assume speed is floating-point.
4923
4924 2015-10-15 Mark Oteiza <mvoteiza@udel.edu>
4925
4926 Add commands for controlling MPD modes
4927
4928 * lisp/mpc.el (mpc-cmd-consume, mpc-cmd-random, mpc-cmd-repeat)
4929 (mpc-cmd-single): New functions.
4930 (mpc-consume, mpc-repeat, mpc-single, mpc-shuffle): New commands.
4931 (mpc-mode-menu): Add new commands as menu items.
4932
4933 2015-10-15 Dmitry Gutov <dgutov@yandex.ru>
4934
4935 Refer to `(elisp)Basic Completion' in completing-read docstring
4936
4937 * src/minibuf.c (Fcompleting_read): Refer to `(elisp)Basic
4938 Completion' in the docstring (bug#21644).
4939
4940 2015-10-14 Mark Oteiza <mvoteiza@udel.edu>
4941
4942 * lisp/mpc.el (mpc-format): Always push form to pred
4943
4944 2015-10-14 Paul Eggert <eggert@cs.ucla.edu>
4945
4946 Spelling fixes
4947
4948 * configure.ac (bitmapdir): Fix misspelling of bmd_acc.
4949 * test/automated/coding-tests.el (ert-test-coding-bogus-coding-systems):
4950 Fix misspelling of nonexistent file name.
4951
4952 2015-10-14 Mark Oteiza <mvoteiza@udel.edu>
4953
4954 * lisp/mpc.el (mpc-mode-menu, mpc-toggle-play): Fix docstrings
4955
4956 2015-10-14 Michael Albinus <michael.albinus@gmx.de>
4957
4958 Some editing fixes in Tramp
4959
4960 * lisp/net/tramp-gvfs.el:
4961 * doc/misc/tramp.texi: "customer option" -> "custom option".
4962
4963 * lisp/net/tramp.el (tramp-completion-function-alist): Fix docstring.
4964
4965 2015-10-14 Jürgen Hötzel <juergen@archlinux.org>
4966
4967 Use proper localization in tramp-gvfs.el
4968
4969 * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
4970 Suppress localized settings in order to proper parse gfvs output.
4971
4972 2015-10-14 Warren Lynn <wrn.lynn@gmail.com> (tiny change)
4973
4974 * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
4975 Quote argument in proper order. (Bug#21562)
4976
4977 2015-10-14 Nicolas Petton <nicolas@petton.fr>
4978
4979 Fix typos in docstrings
4980
4981 * lisp/emacs-lisp/map.el:
4982 * lisp/emacs-lisp/seq.el: Fix typos in the docstrings of the pcase
4983 macros.
4984
4985 2015-10-14 Mark Oteiza <mvoteiza@udel.edu>
4986
4987 * lisp/mpc.el (mpc-volume-refresh): Check if buffer is live.
4988
4989 2015-10-14 Oleh Krehel <ohwoeowho@gmail.com>
4990
4991 Make dired-jump work with tar-subfile-mode
4992
4993 * lisp/dired-x.el (dired-jump): When in `tar-subfile-mode', instead of
4994 emitting an error, switch to `tar-superior-buffer'.
4995
4996 2015-10-14 Juanma Barranquero <lekktu@gmail.com>
4997
4998 * .gitignore: Add build-aux/ar-lib.
4999
5000 2015-10-14 Nicolas Petton <nicolas@petton.fr>
5001
5002 Better docstrings in seq.el and map.el
5003
5004 * lisp/emacs-lisp/map.el:
5005 * lisp/emacs-lisp/seq.el: Improve the docstring for the pcase patterns.
5006
5007 2015-10-14 Paul Eggert <eggert@cs.ucla.edu>
5008
5009 Merge from gnulib
5010
5011 This incorporates:
5012 2015-10-13 binary-io, u64, unistd: port to strict C
5013 2015-09-26 c-ctype: do not worry about EBCDIC + char signed
5014 2015-09-25 c-ctype: port better to z/OS EBCDIC
5015 2015-09-25 gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
5016 * doc/misc/texinfo.tex, lib/binary-io.c, lib/c-ctype.h, lib/u64.c:
5017 * lib/unistd.c, m4/gnulib-common.m4, m4/gnulib-comp.m4:
5018 Copy from gnulib.
5019
5020 2015-10-14 Paul Eggert <eggert@cs.ucla.edu>
5021
5022 Take XPNTR private
5023
5024 * src/alloc.c (PURE_POINTER_P): Remove.
5025 All uses replaced with PURE_P.
5026 (XPNTR_OR_SYMBOL_OFFSET): New function.
5027 (XPNTR): Move here from lisp.h.
5028 Reimplement in terms of XPNTR_OR_SYMBOL_OFFSET.
5029 (mark_maybe_object, valid_lisp_object_p, survives_gc_p):
5030 Remove unnecessary cast.
5031 (purecopy): Use XPNTR_OR_SYMBOL_OFFSET instead of XPNTR,
5032 to avoid an unnecessary runtime test for symbols.
5033 * src/lisp.h (lisp_h_XPNTR, XPNTR): Remove, moving XPNTR to alloc.c.
5034 Only alloc.c needs XPNTR now.
5035
5036 2015-10-13 Mark Oteiza <mvoteiza@udel.edu>
5037
5038 Add MPC play/pause command
5039
5040 * lisp/mpc.el (mpc-toggle-play): New command.
5041 (mpc-mode-map): Bind it to "s".
5042 (mpc-mode-menu): Add corresponding menu item.
5043
5044 2015-10-13 Mark Oteiza <mvoteiza@udel.edu>
5045
5046 Add bindings and menu items for prev and next tracks
5047
5048 * lisp/mpc.el (mpc-mode-map): Bind ">" to mpc-next,
5049 "<" to mpc-prev.
5050 (mpc-mode-menu): Add corresponding menu items
5051
5052 2015-10-13 Ken Raeburn <raeburn@raeburn.org>
5053
5054 Reduce face-related consing during frame creation.
5055
5056 * faces.el (face--attributes-unspecified): Compute the "unspecified"
5057 attribute list once.
5058 (face-spec-reset-face): Use it instead of building the list.
5059
5060 2015-10-13 Ken Raeburn <raeburn@permabit.com>
5061
5062 Do process ConfigureNotify events indicating size changes.
5063
5064 * src/xterm.c (handle_one_xevent): If consecutive ConfigureNotify
5065 events don't have the same size, process each one.
5066
5067 2015-10-13 Mark Oteiza <mvoteiza@udel.edu>
5068
5069 Derive mpc-mode from special-mode
5070
5071 lisp/mpc.el (mpc-mode-map): Make from sparse keymap. Unbind g.
5072 (mpc-mode): Derive from special mode.
5073 (mpc-songs-mode-map): Don't set parent keymap.
5074
5075 2015-10-13 Mark Oteiza <mvoteiza@udel.edu>
5076
5077 Fix error messages for when covers are not found.
5078
5079 The last change to mpc-format let the binding to file call
5080 mpc-file-local-copy with nil argument. Instead, employ if-let here
5081 so nil bindings don't result in needless computation and errors.
5082 * lisp/mpc.el: Require 'subr-x at compile time.
5083 * lisp/mpc.el (mpc-format): Use if-let.
5084
5085 2015-10-13 Oleh Krehel <ohwoeowho@gmail.com>
5086
5087 Make dired-do-compress work for *.tar.gz files
5088
5089 * lisp/dired-aux.el (dired-compress-file-suffixes): Associate
5090 "tar -zxvf" to *.tar.gz; update docstring.
5091
5092 (dired-compress-file): Allow to specify switches after the command in
5093 `dired-compress-file-suffixes'.
5094
5095 2015-10-13 Oleh Krehel <ohwoeowho@gmail.com>
5096
5097 Make dired-do-compress work for directories
5098
5099 * lisp/dired-aux.el (dired-compress-file): When FILE is a directory,
5100 instead of emitting an error, call "tar -czf FILE.tar.gz FILE".
5101 Also convert the top comment into a docstring.
5102
5103 2015-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
5104
5105 * lisp/mpc.el (mpc-songs-refresh): Don't side-effect `active'
5106
5107 ... since it might come straight from the memoizing table.
5108
5109 2015-10-13 Juanma Barranquero <lekktu@gmail.com>
5110
5111 * src/w32fns.c (x_change_tool_bar_height): Remove unused variable frame.
5112
5113 2015-10-13 Mark Oteiza <mvoteiza@udel.edu>
5114
5115 Use special-mode in eww list modes
5116
5117 * lisp/net/eww.el (eww-bookmark-mode, eww-history-mode)
5118 (eww-buffers-mode): Derive from special-mode and remove redundant
5119 setting of buffer-read-only.
5120 (eww-mode-map): Remove redundant keymap parent setting.
5121 (eww-bookmark-mode-map, eww-history-mode-map, eww-buffers-mode-map):
5122 Remove redundant keymap suppressions and mappings.
5123
5124 2015-10-13 Martin Rudalics <rudalics@gmx.at>
5125
5126 Allow setting frame pixel sizes from frame parameters (Bug#21415)
5127
5128 Also fix some misfeatures in frame (re-)sizing code, add more
5129 debugging information and remove some dead code.
5130
5131 * lisp/frame.el (frame-notice-user-settings, make-frame): Change
5132 parameter names when setting `frame-size-history'.
5133 (frame--size-history): New function.
5134
5135 * src/frame.c (frame_inhibit_resize): If frame has not been made
5136 yet, return t if inhibit_horizontal_resize or
5137 inhibit_vertical_resize bit have been set.
5138 (adjust_frame_size): Simplify.
5139 (make_frame): Initialize inhibit_horizontal_resize,
5140 inhibit_vertical_resize, tool_bar_redisplayed, tool_bar_resized.
5141 (Fframe_after_make_frame): Reset inhibit_horizontal_resize and
5142 inhibit_vertical_resize slots.
5143 (x_set_frame_parameters): Handle `text-pixels' specification for
5144 width and height parameters. Don't consider new_height or
5145 new_width changes. Call adjust_frame_size instead of
5146 Fset_frame_size.
5147 (x_figure_window_size): Two new arguments x_width and y_width
5148 returning frame's figures width and height. Calculate tool bar
5149 height before frame sizes so SET_FRAME_HEIGHT can pick it up.
5150 Handle `text-pixels' specification for width and height
5151 parameters.
5152 (Qtext_pixels, Qx_set_frame_parameters, Qset_frame_size)
5153 (Qx_set_window_size_1, Qx_set_window_size_2)
5154 (Qx_set_window_size_3, Qx_set_menu_bar_lines)
5155 (Qupdate_frame_menubar, Qfree_frame_menubar_1)
5156 (Qfree_frame_menubar_2): New symbols.
5157 * src/frame.h (structure frame): New booleans
5158 tool_bar_redisplayed, tool_bar_resized,
5159 inhibit_horizontal_resize, inhibit_vertical_resize.
5160 (x_figure_window_size): Update external declaration.
5161 * src/gtkutil.c (xg_frame_set_char_size): Set size hints before
5162 calling gtk_window_resize.
5163 (update_frame_tool_bar): Make inhibiting of frame resizing more
5164 discriminative. Set tool_bar_resized bit.
5165 * src/nsfns.m (x_set_tool_bar_lines): Make inhibiting of frame
5166 resizing more discriminative. Call adjust_frame_size instead of
5167 x_set_window_size.
5168 (Fx_create_frame): Handle x_width and x_height if
5169 set by x_figure_window_size.
5170 * src/nsterm.m (x_set_window_size): For GNUSTEP build don't
5171 subtract 3 from tool bar height.
5172 (x_set_window_size): Add frame_size_history_add call.
5173 (x_new_font): Call adjust_frame_size instead of
5174 x_set_window_size.
5175 * src/w32fns.c (x_change_tool_bar_height): Reset
5176 tool_bar_redisplayed and tool_bar_resized bits when adding tool
5177 bar. Make inhibiting of frame resizing more discriminative.
5178 (w32_wnd_proc): Remove dead code in WM_WINDOWPOSCHANGING case.
5179 (Fx_create_frame): Handle x_width and x_height if set by
5180 x_figure_window_size. Set size hints before adjusting frame size.
5181 (x_create_tip_frame): Adjust x_figure_window_size call.
5182 * src/w32term.c (x_set_window_size): Add frame_size_history_add
5183 call.
5184 * src/widget.c (set_frame_size): Remove dead code. Add
5185 frame_size_history_add call. When frame_resize_pixelwise is t
5186 use FRAME_PIXEL_WIDTH and FRAME_PIXEL_HEIGHT instead of
5187 pixel_width and pixel_height.
5188 (update_various_frame_slots): Remove dead code.
5189 (EmacsFrameResize): Add more information in
5190 frame_size_history_add call.
5191 (EmacsFrameQueryGeometry): Round only when frame_resize_pixelwise
5192 is not set.
5193 * src/xdisp.c (redisplay_tool_bar): Set tool_bar_redisplayed bits.
5194 * src/xfns.c (x_set_menu_bar_lines): Change argument name.
5195 (x_change_tool_bar_height): Reset tool_bar_redisplayed and
5196 tool_bar_resized bits when adding tool bar. Make inhibiting of
5197 frame resizing more discriminative.
5198 (Fx_create_frame): Handle x_width and x_height if set by
5199 x_figure_window_size. Set size hints before adjusting frame size.
5200 (x_create_tip_frame): Adjust x_figure_window_size call.
5201 * src/xmenu.c (update_frame_menubar): Don't handle Lucid specially.
5202 (set_frame_menubar): On Lucid never add core-border-width to
5203 avoid that adding XtNinternalBorderWidth adds it again.
5204 (free_frame_menubar): Handle frame_inhibit_resize true for Motif.
5205 * src/xterm.c (x_new_font): In non-toolkit case handle size
5206 change of menu bar.
5207 (x_set_window_size_1): Fix calls to frame_size_history_add.
5208 (x_wm_set_size_hint): Remove dead code. Set
5209 size_hints.min_width and size_hints.min_height to base_width and
5210 base_height.
5211
5212 2015-10-13 Michael Albinus <michael.albinus@gmx.de>
5213
5214 * test/automated/file-notify-tests.el (file-notify--test-timeout):
5215 Add docstring. Increase to 10 seconds for remote
5216 directories. (Bug#21669)
5217
5218 2015-10-12 Paul Eggert <eggert@cs.ucla.edu>
5219
5220 Unmacroize ebrowse.c and etags.c a bit
5221
5222 * lib-src/ebrowse.c (READ_CHUNK_SIZE): Now an enum constant.
5223 (streq, filename_eq, set_flag, has_flag): Now inline functions.
5224 (set_flag): First arg is now an address, not an lvalue.
5225 All callers changed.
5226 (filename_eq, set_flag, has_flag):
5227 Rename from FILENAME_EQ, SET_FLAG, HAS_FLAG.
5228 All callers changed.
5229 * lib-src/etags.c (streq, strcaseeq, strneq, strncaseeq):
5230 Now inline functions. Remove asserts that are unnecessary these
5231 days (and in some cases were too-generous anyway).
5232
5233 2015-10-12 Mark Oteiza <mvoteiza@udel.edu>
5234
5235 Use highlight for current items
5236
5237 * lisp/mpc.el (mpc-select-make-overlay, mpc-tagbrowser-all-select):
5238 Apply highlight face instead of region face.
5239
5240 2015-10-12 Mark Oteiza <mvoteiza@udel.edu>
5241
5242 Search for more cover image names in MPC
5243
5244 * lisp/mpc.el (mpc-format): Also look for .folder.jpg or folder.jpg
5245 case insensitively
5246
5247 2015-10-12 Juanma Barranquero <lekktu@gmail.com>
5248
5249 Remove or comment out unused variables
5250
5251 * src/w32fns.c (x_set_mouse_color): Comment out variables cursor,
5252 nontext_cursor, mode_cursor, hand_cursor and count.
5253 (x_change_tool_bar_height): Remove variable old_text_height.
5254 (deliver_wm_chars): Remove variable strip_Alt.
5255 (Fw32_shell_execute): Remove variable document_a.
5256 (Fw32_frame_geometry): Remove variable fullboth.
5257 * src/w32term.c (w32_setup_relief_color): Comment out variable
5258 w32_display_info.
5259 (w32_horizontal_scroll_bar_handle_click): Remove variables start, end.
5260 (w32_read_socket): Comment out variables rows, columns.
5261 * src/w32uniscribe.c (uniscribe_check_otf_1): Remove variable rest.
5262
5263 2015-10-12 Juanma Barranquero <lekktu@gmail.com>
5264
5265 * src/w32proc.c (sys_select): Fix bitwise test.
5266
5267 2015-10-12 Eli Zaretskii <eliz@gnu.org>
5268
5269 Minor typo corrections in doc strings
5270
5271 * lisp/menu-bar.el (popup-menu, popup-menu-normalize-position):
5272 Doc fixes.
5273
5274 2015-10-12 Eli Zaretskii <eliz@gnu.org>
5275
5276 * nt/INSTALL: Recommend MSYS Automake/Autoconf from ezwinports.
5277
5278 2015-10-12 Eli Zaretskii <eliz@gnu.org>
5279
5280 Attempt to avoid crashes in plist-member
5281
5282 * src/fns.c (Fplist_member): Don't call QUIT between a CONSP test
5283 and a call to XCDR. (Bug#21655)
5284
5285 2015-10-12 Mike FABIAN <mfabian@redhat.com>
5286
5287 * lisp/select.el (gui-get-primary-selection): In
5288 gui-get-primary-selection use gui--selection-value-internal (Bug#20906)
5289
5290 2015-10-12 Tassilo Horn <tsdh@gnu.org>
5291
5292 Support RTF in doc-view
5293
5294 * lisp/doc-view.el (doc-view-set-doc-type): Add entry for RTF extension.
5295
5296 2015-10-12 Juanma Barranquero <lekktu@gmail.com>
5297
5298 * src/w32fns.c (get_wm_chars): Increment counter, not pointer.
5299
5300 2015-10-11 Nicolas Petton <nicolas@petton.fr>
5301
5302 Replace the usage of an obsolete function in auth-source.el
5303
5304 * lisp/gnus/auth-source.el (auth-source-epa-make-gpg-token):
5305 Replace an usage of `epg-context-set-armor' with `setf'.
5306
5307 2015-10-11 Nicolas Petton <nicolas@petton.fr>
5308
5309 * lisp/gnus/auth-source.el: Use sharp-quoting with functions.
5310
5311 2015-10-11 Jay Belanger <jay.p.belanger@gmail.com>
5312
5313 Have calc-yank recognize numbers in different bases.
5314
5315 * lisp/calc/calc-yank.el (math-number-regexp): New function.
5316 (calc-yank): Use `math-number-regexp' to recognize numbers.
5317
5318 2015-10-11 Ken Raeburn <raeburn@raeburn.org>
5319
5320 Handle an opaque-move X11 window manager operation more efficiently
5321
5322 * src/xterm.c (handle_one_xevent): If a ConfigureNotify event is
5323 followed by more ConfigureNotify events for the same window, process
5324 only the last one.
5325
5326 2015-10-11 Ken Raeburn <raeburn@raeburn.org>
5327
5328 Fix cursor setting for tip frame; re-enable cursor generation
5329
5330 * src/xfns.c (x_create_tip_frame): Include the cursor in the window
5331 attributes sent when creating the new X window. Don't skip setting
5332 the pointerColor parameter.
5333
5334 2015-10-11 Ken Raeburn <raeburn@raeburn.org>
5335
5336 Rewrite x_set_mouse_color to sync less
5337
5338 We can track serial numbers of X requests and correlate error events
5339 with the associated requests. This way we can identify errors for
5340 specific calls without having to use XSync after every one.
5341
5342 * src/xfns.c (enum mouse_cursor): New type.
5343 (struct mouse_cursor_types, struct mouse_cursor_data): New types.
5344 (mouse_cursor_types): New array listing the Lisp variables and default
5345 cursor appearances for each cursor type.
5346 (x_set_mouse_color_handler): New function; checks error event serial
5347 number against submitted requests.
5348 (x_set_mouse_color): Updated to use the new error handler callback,
5349 and to be more table-driven, to simplify repetitious code.
5350
5351 2015-10-11 Ken Raeburn <raeburn@raeburn.org>
5352
5353 Add x_catch_errors_with_handler
5354
5355 * src/xterm.c (struct x_error_message_stack): Add new fields for a
5356 callback function and associated data pointer.
5357 (x_error_catcher): If the callback function is set, call it after
5358 saving the error message string.
5359 (x_catch_errors_with_handler): Renamed from x_catch_errors but now
5360 accepts a callback function and data pointer.
5361 (x_catch_errors): Now a wrapper function.
5362 * src/xterm.h (x_special_error_handler): New typedef.
5363 (x_catch_errors_with_handler): Declare.
5364
5365 2015-10-11 Ken Raeburn <raeburn@raeburn.org>
5366
5367 Introduce x_uncatch_errors_after_check to reduce XSync calls
5368
5369 Both x_had_errors_p and x_check_errors call XSync, so if they're
5370 immediately followed by x_uncatch_errors, its XSync call will be
5371 redundant, resulting in a wasted round trip to the X server.
5372
5373 * src/xterm.c (x_uncatch_errors_after_check): New routine; a copy of
5374 x_uncatch_errors without the XSync call.
5375 (XTmouse_position, x_wm_supports):
5376 * src/xfns.c (x_set_mouse_color):
5377 * src/xmenu.c (Fx_menu_bar_open_internal):
5378 * src/xselect.c (x_own_selection, x_get_foreign_selection):
5379 (Fx_get_atom_name): Call it instead of x_uncatch_errors.
5380 * src/xterm.h (x_uncatch_errors_after_check): Declare.
5381
5382 2015-10-10 Jay Belanger <jay.p.belanger@gmail.com>
5383
5384 Document the optional prefix to `calc-yank'
5385
5386 * doc/misc/calc.texi (Yanking into the Stack): Document the optional
5387 prefix to `calc-yank'.
5388 * lisp/calc/calc-yank.el (calc-yank): Ensure that things killed from
5389 the Calc buffer are yanked back unchanged.
5390
5391 2015-10-10 Mark Oteiza <mvoteiza@udel.edu>
5392
5393 * lisp/calendar/calendar.el: Display buffer before executing body.
5394
5395 In each use of this macro, the modeline is derived from a window width
5396 calculation, which will be wrong if (display-buffer) splits the window
5397 horizontally.
5398
5399 2015-10-10 Paul Eggert <eggert@cs.ucla.edu>
5400
5401 Use ‘echo’ safely with ‘\’ or leading ‘-’
5402
5403 POSIX says that ‘echo FOO’ produces implementation-defined output
5404 if FOO contains leading ‘-’, or ‘\’ anywhere, so don’t assume GNU
5405 behavior in that case.
5406 * Makefile.in (removenullpaths): Remove.
5407 (epaths-force): Rewrite to avoid the need for ‘echo’.
5408 (install-etc): Be clearer about escaping the shell metacharacters
5409 ‘\’ and ‘$’.
5410 * Makefile.in (install-arch-indep, install-etcdoc):
5411 * admin/charsets/mapconv, admin/merge-gnulib, admin/merge-pkg-config:
5412 * admin/quick-install-emacs, build-aux/gitlog-to-emacslog:
5413 * configure.ac, lib-src/rcs2log, make-dist:
5414 * src/Makefile.in (lisp.mk):
5415 Don’t assume ‘echo’ outputs ‘\’ and leading ‘-’ unscathed.
5416 For example, use ‘printf '%s\n' "$foo"’ rather than ‘echo "$foo"’
5417 if $foo can contain arbitrary characters.
5418 * lisp/Makefile.in (TAGS): Use ‘ls’, not ‘echo’, to avoid ‘\’ issues.
5419 * doc/lispref/two-volume.make (vol1.pdf):
5420 * test/etags/make-src/Makefile (web ftp publish):
5421 Use ‘printf’ rather than ‘echo -e’.
5422
5423 2015-10-10 Kaushal Modi <kaushal.modi@gmail.com>
5424
5425 Allow numbers with different radixes to be yanked.
5426
5427 * lisp/calc/calc-yank.el (calc-yank): Allow radixes besides the
5428 default base 10.
5429
5430 2015-10-10 Paul Eggert <eggert@cs.ucla.edu>
5431
5432 Improve CHECK_IMPURE and PURE_P speedup
5433
5434 * src/data.c (Faset): Use XVECTOR and XSTRING rather than XPNTR.
5435
5436 2015-10-10 Jay Belanger <jay.p.belanger@gmail.com>
5437
5438 Use events instead of chars to keep track of steps.
5439
5440 * lisp/calc/calc-prog.el (calc-kbd-loop): Use events instead of chars
5441 to keep track of steps.
5442
5443 2015-10-10 Paul Eggert <eggert@cs.ucla.edu>
5444
5445 Fix --enable-gcc-warnings problem with older GCC
5446
5447 * src/puresize.h: Add INLINE_HEADER_BEGIN, INLINE_HEADER_END.
5448 This is for building with --enable-gcc-warnings with
5449 GCC 4.6 through 5.0.
5450
5451 2015-10-10 Eli Zaretskii <eliz@gnu.org>
5452
5453 Fix vertical-motion in truncated lines that end in a stretch
5454
5455 * src/indent.c (Fvertical_motion): Expect overshoot when point is
5456 beyond window margin and lines are truncated, even if we have a
5457 stretch at point. (Bug#21468)
5458
5459 2015-10-10 Eli Zaretskii <eliz@gnu.org>
5460
5461 Avoid link-time errors due to inline functions
5462
5463 * src/emacs.c: Include puresize.h, to avoid link-time errors in
5464 unoptimized builds due to PURE_P and CHECK_IMPURE, which are now
5465 inline functions.
5466
5467 2015-10-10 Andreas Schwab <schwab@linux-m68k.org>
5468
5469 * src/data.c (Faset): Fix last change.
5470
5471 2015-10-10 Paul Eggert <eggert@cs.ucla.edu>
5472
5473 CHECK_IMPURE and PURE_P speedup
5474
5475 * src/intervals.c (create_root_interval):
5476 Do CHECK_IMPURE only for strings; not needed for buffers.
5477 Prefer ! STRINGP to BUFFERP, for a tad more speed.
5478 * src/puresize.h (CHECK_IMPURE, PURE_P):
5479 Now inline functions instead of macros.
5480 (PURE_P): Don’t use XPNTR; that is now the caller’s responsibility.
5481 All callers changed.
5482 (CHECK_IMPURE): New argument PTR, to save us the work of running XPNTR.
5483 All callers changed.
5484
5485 2015-10-09 Noah Friedman <friedman@splode.com>
5486
5487 (tramp-open-connection-setup-interactive-shell): Send -onlcr as well.
5488
5489 2015-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
5490
5491 * lisp/progmodes/cc-mode.el (c-after-font-lock-init): Only *move*
5492
5493 our after-change-function, rather than re-adding it if it was removed.
5494
5495 2015-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
5496
5497 * lisp/cedet/ede: Silence some compiler warnings
5498
5499 * lisp/cedet/ede.el: Require cl-lib. Silence some compiler warnings.
5500 (ede-menu-obj-of-class-p): Use cl-some rather than `eval'.
5501 (ede-apply-object-keymap, ede-reset-all-buffers)
5502 (ede-auto-add-to-target): Use dolist.
5503 (ede-new, ede-flush-deleted-projects, ede-global-list-sanity-check):
5504 Use field names rather than initarg names in `oref'.
5505 (ede-load-project-file): Remove unused var `file'.
5506 (ede-map-any-target-p): Use cl-some rather than ede-map-targets.
5507 (ede-set): Remove unused var `a'.
5508
5509 * lisp/cedet/ede/emacs.el: Silence some compiler warnings.
5510 (ede-project-autoload): Avoid the old-style "name" argument.
5511 (ede-emacs-find-matching-target): Use field names rather than initarg
5512 names in `oref'.
5513
5514 * lisp/cedet/ede/linux.el: Silence some compiler warnings.
5515 (ede-linux-load, ede-project-autoload): Avoid the old-style
5516 "name" argument.
5517 (ede-linux-find-matching-target): Use field names rather than initarg
5518 names in `oref'.
5519
5520 2015-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
5521
5522 * lisp/textmodes/reftex.el: Silence byte-compiler warnings.
5523
5524 2015-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
5525
5526 * lisp/progmodes/prolog.el (prolog-smie-rules): Try and avoid
5527 indenting too far after ":-".
5528
5529 2015-10-09 Eli Zaretskii <eliz@gnu.org>
5530
5531 Update case-table and categories of recently added characters
5532
5533 * lisp/international/characters.el: Update information about Latin
5534 Extended-C, Latin Extended-D, Latin Extended-E, Cyrillic Extended,
5535 Georgian, Glagolitic, Deseret, Old Hungarian, and Warang Citi
5536 blocks. (Byug#21654)
5537
5538 2015-10-09 Martin Rudalics <rudalics@gmx.at>
5539
5540 * src/frame.c (adjust_frame_size): In minibuffer-only windows
5541 don't count minibuffer height twice. (Bug#21643)
5542
5543 2015-10-09 Eli Zaretskii <eliz@gnu.org>
5544
5545 Avoid inflooping in font-lock
5546
5547 * lisp/font-lock.el (font-lock-extend-region-wholelines): Bind
5548 inhibit-field-text-motion around the call to
5549 line-beginning-position, to avoid inflooping. (Bug#21615)
5550
5551 2015-10-09 Tassilo Horn <tsdh@gnu.org>
5552
5553 Refactor duplicated code; ensure default is in completions
5554
5555 * lisp/textmodes/reftex-cite.el (reftex--query-search-regexps):
5556 New function.
5557 (reftex-extract-bib-entries): Use it.
5558 (reftex-extract-bib-entries-from-thebibliography): Use it.
5559
5560 2015-10-09 Vincent Belaïche <vincentb1@users.sourceforge.net>
5561
5562 * doc/misc/autotype.texi (Skeletons as Abbrevs): "if" -> "ifst"
5563 in the example.
5564
5565 2015-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
5566
5567 * lisp/calc/calc.el: Silence byte-compiler warnings.
5568 (calc-scan-for-dels): Use ignore-errors.
5569 (calc-dispatch, calc-do-dispatch): Make unused arg optional.
5570 (calc-read-key-sequence): Remove unused var `prompt2'.
5571 (calc-kill-stack-buffer): Remove unused var `buflist'.
5572 (calc): Remove unused var `oldbuf'.
5573 (calc-refresh): Use inhibit-read-only.
5574 (calc-can-abbrev-vectors): Declare.
5575 (calc-record): Remove unused var `mainbuf'.
5576 (math-sub-bignum): Remove unused var `sum'.
5577 (math-svo-c, math-svo-wid, math-svo-off): Declare.
5578
5579 2015-10-08 Daiki Ueno <ueno@gnu.org>
5580
5581 Use g_clear_error instead of g_error_free
5582
5583 * src/image.c: Define g_clear_error instead of g_error_free.
5584 (init_svg_functions): Resolve symbol g_clear_error instead of
5585 g_error_free.
5586 (svg_load_image): Use g_clear_error instead of g_error_free, to
5587 suppress GLib warnings when ERR is not set. See bug#21641.
5588
5589 2015-10-08 Paul Eggert <eggert@cs.ucla.edu>
5590
5591 * src/image.c (image_size_error): Simplify.
5592
5593 2015-10-08 Paul Eggert <eggert@cs.ucla.edu>
5594
5595 Fix problems caught with --enable-gcc-warnings
5596
5597 * src/image.c (lookup_rgb_color):
5598 * src/xfns.c (x_defined_color):
5599 * src/xterm.c (x_parse_color):
5600 Remove unused locals.
5601
5602 2015-10-08 Jay Belanger <jay.p.belanger@gmail.com>
5603
5604 * lisp/calc/calc.el (calc-digit-start-entry): Fix typo.
5605
5606 2015-10-08 Jay Belanger <jay.p.belanger@gmail.com>
5607
5608 Format initial input uniformly
5609
5610 * lisp/calc/calc.el (calc-digit-start-entry): New function.
5611 * lisp/calc/calc.el (calcDigit-start):
5612 * lisp/calc/calc-aent.el (calc-alg-digit-entry):
5613 Use `calc-digit-start-entry' to format input.
5614
5615 2015-10-08 Ken Raeburn <raeburn@raeburn.org>
5616
5617 Disable non-working pointerColor setting for X tooltip frame
5618
5619 It generates a bunch of server traffic, but there's some bug wherein
5620 the new mouse cursor settings don't seem to get used. In most
5621 situations the cursor isn't likely to be seen anyway, so it's not
5622 urgent to fix.
5623
5624 * src/xfns.c (x_create_tip_frame): Don't set pointerColor.
5625
5626 2015-10-08 Ken Raeburn <raeburn@raeburn.org>
5627
5628 Reduce some unnecessary X calls
5629
5630 * src/xfns.c (x_real_pos_and_offsets): Remove a redundant XGetGeometry
5631 call. If border width is wanted, get it from the XGetGeometry call
5632 instead of calling XGetWindowAttributes on the same window. Skip some
5633 X calls if we've already detected an error from the X server.
5634 * src/xterm.c (x_wm_supports): Delete x_sync before x_had_errors_p.
5635 (handle_one_xevent): Delete XSync call before x_uncatch_errors.
5636
5637 2015-10-08 Ken Raeburn <raeburn@raeburn.org>
5638
5639 Reduce color allocation/query traffic in the TrueColor case
5640
5641 When working with an X visual with TrueColor class, pixel values can
5642 be generated from the RGB values according to mask value provided by
5643 the server on connection. Some of the image-handling code was already
5644 doing this.
5645
5646 * src/xterm.h (x_make_truecolor_pixel): New function; code taken from
5647 lookup_rgb_color.
5648 (x_mutable_colormap): New function.
5649 * src/image.c (lookup_rgb_color): Move pixel composition code to
5650 x_make_truecolor_pixel.
5651 (x_kill_gs_process): Call x_mutable_colormap.
5652 * src/xfaces.c (x_free_colors, x_free_dpy_colors): Call
5653 x_mutable_colormap.
5654 * src/xftfont.c (xftfont_get_colors): Call x_query_colors.
5655 * src/xterm.c (x_query_colors): For a TrueColor display, decompose the
5656 pixel value into RGB values directly, and don't send a request to the
5657 server.
5658 (x_alloc_nearest_color): For a TrueColor display, construct the pixel
5659 value with x_make_truecolor_pixel.
5660 (x_copy_color): For an immutable color map, just return the provided
5661 pixel value.
5662
5663 2015-10-08 Ken Raeburn <raeburn@raeburn.org>
5664
5665 Cache XParseColor results in the X display info structure
5666
5667 With repeated lookups of foreground and background colors for multiple
5668 faces per frame, we issue a lot of redundant color name lookups to the
5669 X server, waiting every time for the response. On a remote network
5670 with, say, 30ms round-trip time, this can add nearly a full second to
5671 creation of a new frame.
5672
5673 * src/gtkutil.c (xg_check_special_colors): Call x_parse_color.
5674 * src/image.c (get_spec_bg_or_alpha_as_argb):
5675 (xpm_init_color_cache, xpm_lookup_color):
5676 * src/xfns.c (x_defined_color):
5677 * src/xterm.c (x_parse_color): New function; caches color names not
5678 starting with "#" in the display-info structure.
5679 (x_delete_display): Delete the cache content.
5680 * src/xterm.h (struct color_name_cache_entry): New type.
5681 (x_parse_color): Declare.
5682 (struct x_display_info): Add a new field for the cache.
5683
5684 2015-10-07 Stefan Monnier <monnier@iro.umontreal.ca>
5685
5686 * src/syntax.c (syms_of_syntax): Make syntax-propertize--done local.
5687
5688 2015-10-07 Eli Zaretskii <eliz@gnu.org>
5689
5690 Fix segfault in image_size_error
5691
5692 * src/image.c (image_size_error): Pass a Lisp string to
5693 image_error, not a C string. (Bug#21641)
5694
5695 2015-10-07 Simen Heggestøyl <simenheg@gmail.com>
5696
5697 Highlight CSS variable definitions
5698
5699 * lisp/textmodes/css-mode.el (css-nmstart-re): Tweak regexp to accept
5700 CSS variables. (Bug#21638)
5701
5702 2015-10-07 Artur Malabarba <bruce.connor.am@gmail.com>
5703
5704 * test/automated/tabulated-list-test.el: New file.
5705 Test bug#21639 and some basic functionality.
5706
5707 2015-10-07 Artur Malabarba <bruce.connor.am@gmail.com>
5708
5709 * lisp/emacs-lisp/tabulated-list.el (tabulated-list-sort):
5710 Check if column can be sorted before trying. (Bug#21639)
5711
5712 2015-10-07 Nicolas Richard <youngfrog@members.fsf.org>
5713
5714 Add test for `self-insert-command' (bug#21633)
5715
5716 * test/automated/cmds-tests.el: New file.
5717
5718 2015-10-07 Martin Rudalics <rudalics@gmx.at>
5719
5720 * src/window.c (resize_frame_windows): Don't set root window's
5721 top position when resizing horizontally.
5722
5723 2015-10-07 Artur Malabarba <bruce.connor.am@gmail.com>
5724
5725 * lisp/progmodes/prog-mode.el (prettify-symbols-alist):
5726 Document more possible values.
5727
5728 2015-10-06 Stefan Monnier <monnier@iro.umontreal.ca>
5729
5730 * lisp/textmodes/tex-mode.el: Use lexical-binding.
5731
5732 2015-10-06 Stefan Monnier <monnier@iro.umontreal.ca>
5733
5734 * lisp/indent.el (indent--default-inside-comment): New function.
5735 (indent-for-tab-command): Use it for `noindent' indentation.
5736
5737 2015-10-06 Paul Eggert <eggert@cs.ucla.edu>
5738
5739 Fix bug in GC_CHECK_MARKED_OBJECTS check
5740
5741 * src/alloc.c (mark_object): Fix bug in checking code.
5742 When GC_CHECK_MARKED_OBJECTS is defined, the bug caused
5743 CHECK_ALLOCATED_AND_LIVE_SYMBOL to repeatedly do the
5744 CHECK_ALLOCATED and CHECK_LIVE tests for the first symbol in each
5745 bucket. The bug did not affect behavior either in the normal case
5746 where GC_CHECK_MARKED_OBJECTS is not defined, or where Emacs does
5747 not have an internal error that a properly-written
5748 CHECK_ALLOCATED_AND_LIVE_SYMBOL would detect.
5749
5750 2015-10-06 Tassilo Horn <tsdh@gnu.org>
5751
5752 * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist):
5753 Add prettified version for \\Bbb{Q}.
5754
5755 2015-10-06 Artur Malabarba <bruce.connor.am@gmail.com>
5756
5757 * test/automated/package-test.el (package-test-install-single):
5758 Add a test for bug#21625.
5759
5760 2015-10-06 Aaron Ecay <aaronecay@gmail.com>
5761
5762 * lisp/emacs-lisp/package.el (package-install): Fix error when pkg is
5763 not a package-desc object. Also clarify documentation. (Bug#21625)
5764
5765 2015-10-06 Eli Zaretskii <eliz@gnu.org>
5766
5767 Fix display of characters adjacent to ZWJ and ZWNJ
5768
5769 * src/bidi.c (bidi_resolve_neutral): Treat all Bn (a.k.a. "control")
5770 characters the same as directional formatting controls.
5771 (bidi_level_of_next_char): Include all Bn characters in rule L1,
5772 as mandated by the UBA.
5773
5774 2015-10-06 Andreas Schwab <schwab@suse.de>
5775
5776 * src/cmds.c (Fself_insert_command): Don't use XFASTINT on a negative
5777 number. (Bug#21633)
5778
5779 2015-10-05 Xue Fuqiao <xfq.free@gmail.com>
5780
5781 * doc/lispref/objects.texi (Window Type): Add a cross reference.
5782
5783 * src/buffer.c (syms_of_buffer): Typo fix. (Bug#21622)
5784
5785 2015-10-05 Eli Zaretskii <eliz@gnu.org>
5786
5787 * lisp/language/misc-lang.el (composition-function-table):
5788 Fix entries for Arabic and Syriac.
5789
5790 2015-10-05 Damien Cassou <damien@cassou.me>
5791
5792 Add first unit tests for auth-source.el
5793
5794 * test/automated/auth-source-tests.el: New file.
5795
5796 2015-10-05 Eli Zaretskii <eliz@gnu.org>
5797
5798 Remove redundant redisplay code
5799
5800 * src/xdisp.c (redisplay_internal, try_cursor_movement)
5801 (try_window_reusing_current_matrix, try_window_id): Remove
5802 redundant restrictions on redisplay optimizations based on the
5803 frame's 'redisplay' flag. See
5804 http://osdir.com/ml/general/2015-10/msg02110.html for the relevant
5805 discussions.
5806
5807 2015-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
5808
5809 * src/xdisp.c (windows_or_buffers_changed): Improve docstring.
5810
5811 2015-10-04 Xue Fuqiao <xfq.free@gmail.com>
5812
5813 Update tutorials/TUTORIAL.cn
5814
5815 * etc/tutorials/TUTORIAL.cn: Improve translation.
5816
5817 2015-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5818
5819 * src/macfont.m (macfont_encode_char, syms_of_macfont):
5820 Remove unused vars.
5821
5822 2015-10-04 Stefan Merten <stefan@merten-home.de>
5823
5824 Pull in version numbers from rst.el upstream release.
5825
5826 * lisp/textmodes/rst.el (rst-cvs-header, rst-svn-rev)
5827 (rst-svn-timestamp, rst-official-version)
5828 (rst-official-cvs-rev, rst-package-emacs-version-alist):
5829 Update version numbers.
5830
5831 2015-10-04 Eli Zaretskii <eliz@gnu.org>
5832
5833 * test/automated/coding-tests.el: New file.
5834
5835 2015-10-04 Michael Albinus <michael.albinus@gmx.de>
5836
5837 Improve XEmacs compatibility of Tramp
5838
5839 * lisp/net/tramp-compat.el (directory-listing-before-filename-regexp):
5840 Declare if it doesn't exist.
5841 (file-remote-p): Remove defalias, which was necessary for GNU Emacs 21.
5842 (redisplay): Make it an alias if it doesn't exist.
5843
5844 * lisp/net/tramp.el (tramp-get-remote-tmpdir): Don't use
5845 `file-remote-p' (due to XEmacs compatibility).
5846
5847 * lisp/net/trampver.el (locate-dominating-file)
5848 (tramp-compat-replace-regexp-in-string): Autoload.
5849 (tramp-repository-get-version): Do not dupe byte-compiler.
5850
5851 2015-09-02 K. Handa <handa@gnu.org>
5852
5853 fix for the case that M17N_FLT_USE_NEW_FEATURE is not defined
5854
5855 * src/ftfont.c (ftfont_drive_otf) [not M17N_FLT_USE_NEW_FEATURE]:
5856 Adjusted for the change of type of elements in the array
5857 MFLTGlyphString.glyphs.
5858
5859 2015-10-04 Eli Zaretskii <eliz@gnu.org>
5860 Michael Heerdegen <michael_heerdegen@web.de>
5861
5862 shr: fix too long lines in rendered buffers (Bug#21012)
5863
5864 * lisp/net/shr.el (shr-insert-document, shr-fill-text):
5865 Correct calculation of available width.
5866 (shr-find-fill-point): Don't overflow window edge if shr-kinsoku-shorten
5867 is nil.
5868
5869 2015-10-04 Vincent Belaïche <vincentb1@users.sourceforge.net>
5870
5871 Restore blank line before next section, erroneously erased
5872 in my previous commit
5873
5874 * etc/compilation.txt (symbol ant): Add an additional trailing blank
5875 line to this section, so that there are two of them immediately before
5876 the next section.
5877
5878 2015-10-04 Vincent Belaïche <vincentb1@users.sourceforge.net>
5879
5880 Support MSW filename style for ant compilation error regexp
5881
5882 * etc/compilation.txt (symbol ant):
5883 * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
5884 Support MSW filename style.
5885
5886 2015-10-03 Paul Eggert <eggert@cs.ucla.edu>
5887
5888 * nt/INSTALL: Minor spelling and quote fixes.
5889
5890 * lisp/ibuffer.el: Fix docstring length (Bug#21541).
5891
5892 2015-10-03 Simen Heggestøyl <simenheg@gmail.com>
5893
5894 Maintain ordering of JSON object keys by default
5895
5896 * lisp/json.el (json-object-type): Mention order handling in doc-string.
5897 (json--plist-reverse): New utility function.
5898 (json-read-object): Maintain ordering for alists and plists.
5899 (json-pretty-print): Ensure that ordering is maintained.
5900
5901 * test/automated/json-tests.el (test-json-plist-reverse): New test for
5902 `json--plist-reverse'.
5903 (json-read-simple-alist): Update test to accommodate for changes in
5904 `json-read-object'.
5905
5906 * etc/NEWS: Document the new behavior of the pretty printing functions.
5907
5908 2015-10-03 Andreas Schwab <schwab@linux-m68k.org>
5909
5910 * src/coding.c (complement_process_encoding_system): Revert last change.
5911
5912 2015-10-03 Ulf Jasper <ulf.jasper@web.de>
5913
5914 * admin/MAINTAINERS: Add entry for Ulf Jasper.
5915
5916 2015-10-03 Xue Fuqiao <xfq.free@gmail.com>
5917
5918 Doc fix for `defmacro'
5919
5920 * doc/lispref/objects.texi (Macro Type): `defmacro' is a macro now.
5921
5922 2015-10-03 Andreas Schwab <schwab@linux-m68k.org>
5923
5924 More validatation of coding systems
5925
5926 * src/fileio.c (Finsert_file_contents): Remove redundant
5927 coding-system check.
5928 (choose_write_coding_system): Likewise.
5929 * src/coding.c (complement_process_encoding_system): Check argument
5930 for valid coding system.
5931
5932 2015-10-03 Eli Zaretskii <eliz@gnu.org>
5933
5934 Avoid crashes in coding_inherit_eol_type
5935
5936 * src/coding.c (coding_inherit_eol_type): Check the validity of
5937 the arguments. Suggested by Andreas Schwab <schwab@linux-m68k.org>.
5938 (Bug#21602)
5939
5940 2015-10-03 Eli Zaretskii <eliz@gnu.org>
5941
5942 More validatation of coding system in 'write-region'
5943
5944 * src/coding.c (choose_write_coding_system): More validation of
5945 coding-system from various sources. Suggested by Andreas Schwab
5946 <schwab@linux-m68k.org>. (Bug#21602)
5947
5948 2015-10-03 Eli Zaretskii <eliz@gnu.org>
5949
5950 Avoid crashes due to invalid coding-system
5951
5952 * src/fileio.c (choose_write_coding_system)
5953 (Finsert_file_contents): Check validity of coding-system-for-write
5954 and coding-system-for-read bound by the caller. (Bug#21602)
5955
5956 2015-10-03 Tassilo Horn <tsdh@gnu.org>
5957
5958 Adapt to new prettify-symbols-unprettify-at-point default
5959
5960 * etc/NEWS: Mention that unprettication of symbol at point is off
5961 by default.
5962
5963 2015-10-03 Tassilo Horn <tsdh@gnu.org>
5964
5965 Revert my two recent process.c changes
5966
5967 Revert "Improve last commit to process.c" and "Remove callback-handled
5968 channels from Available set" because they did not fix bug#21313.
5969
5970 This reverts commits bfa1aa8e2bdaf14adbbf1e9e824051d3f740694c and
5971 27f871907cc24f33a7d12ac3a4ab71a88f0bc554.
5972
5973 2015-10-02 Markus Triska <triska@metalevel.at>
5974
5975 * lisp/progmodes/prolog.el: Update and extend operator table.
5976 (prolog-smie-grammar): Add multifile, public etc.
5977
5978 2015-10-02 Paul Eggert <eggert@cs.ucla.edu>
5979
5980 Allow autogen even when Git is not installed
5981
5982 * autogen.sh: Test ‘git status’ before trying to use Git.
5983
5984 2015-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
5985
5986 * lisp/vc/vc-git.el (vc-git-region-history): Handle local changes.
5987 Adjust lto/lfrom when we have uncommitted changes.
5988
5989 2015-10-02 Paul Eggert <eggert@cs.ucla.edu>
5990
5991 Fix problems found by clang 3.5.0
5992
5993 * src/cmds.c (Fdelete_char): Don’t assume XINT returns int.
5994 * src/font.c (font_parse_family_registry):
5995 Use &"str"[X] instead of "str"+X, to pacify clang -Wstring-plus-int.
5996
5997 2015-10-02 Eli Zaretskii <eliz@gnu.org>
5998
5999 * nt/INSTALL: Update instructions for running autogen.sh.
6000
6001 * nt/INSTALL: Point to ezwinports for libXpm binaries.
6002
6003 2015-10-02 Daniel Colascione <dancol@dancol.org>
6004
6005 Fix winner in cl-lib not loaded case
6006
6007 * lisp/winner.el (winner-change-fun): Don't use cl-lib functions
6008 without requiring CL
6009
6010 2015-10-02 Paul Eggert <eggert@cs.ucla.edu>
6011
6012 Fix a few problems with directed quotes
6013
6014 This is in response to a problem report by Kaushal Modi in:
6015 http://bugs.gnu.org/21588#25
6016 * lisp/cedet/mode-local.el (describe-mode-local-overload):
6017 * lisp/emacs-lisp/bytecomp.el (byte-compile-fix-header):
6018 * lisp/info-xref.el (info-xref-check-all-custom):
6019 * lisp/mail/emacsbug.el (report-emacs-bug-hook):
6020 Prefer directed to undirected single quotes in diagnostics.
6021
6022 2015-10-01 Eli Zaretskii <eliz@gnu.org>
6023
6024 Revert "Attempt to fix slow redisplay caused by last changes"
6025
6026 * src/xdisp.c (try_window_id, try_window_reusing_current_matrix)
6027 (try_cursor_movement): Don't relax requirements for redisplay
6028 optimizations for the selected frame. (Bug#21597)
6029
6030 This reverts commit c4c1fb97727ff52bcfa83ad5ed94a64a93d12e59.
6031
6032 2015-10-01 Eli Zaretskii <eliz@gnu.org>
6033
6034 Fix slow redisplay when daemon frame exists
6035
6036 * src/xdisp.c (redisplay_internal): Don't consider daemon frames
6037 when looking for frames that need to be redisplayed. (Bug#21597)
6038
6039 2015-10-01 Eli Zaretskii <eliz@gnu.org>
6040
6041 Attempt to fix slow redisplay caused by last changes
6042
6043 * src/xdisp.c (try_window_id, try_window_reusing_current_matrix)
6044 (try_cursor_movement): Relax requirements for redisplay
6045 optimizations for the selected frame. (Bug#21597)
6046
6047 2015-10-01 Stephen Leake <stephen_leake@stephe-leake.org>
6048
6049 * src/dired.c (Ffile_name_completion, Ffile_name_all_completions):
6050 Improve doc string.
6051
6052 2015-10-01 Stephen Leake <stephen_leake@stephe-leake.org>
6053
6054 * lisp/minibuffer.el (minibuffer-completion-help):
6055 Set default base-size, in case completion table does not set it.
6056
6057 2015-10-01 Eli Zaretskii <eliz@gnu.org>
6058
6059 Fix GUD display of GDB output with non-ASCII text
6060
6061 * lisp/progmodes/gdb-mi.el (gdb-mi-decode-strings): New defcustom.
6062 (gdb-mi-decode): New function.
6063 (gud-gdbmi-marker-filter): If gdb-mi-decode-strings is non-nil,
6064 decode octal escapes in GDB output. (Bug#21572)
6065
6066 2015-10-01 Eli Zaretskii <eliz@gnu.org>
6067
6068 * nt/INSTALL: Document where to find XPM support files.
6069
6070 2015-10-01 Tassilo Horn <tsdh@gnu.org>
6071
6072 Un- and re-prettification are not exclusive
6073
6074 * lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook):
6075 Re-apply prettification to previous symbol also when unprettifying
6076 next one.
6077
6078 2015-10-01 Tassilo Horn <tsdh@gnu.org>
6079
6080 Don't unprettify symbol at point by default
6081
6082 * lisp/progmodes/prog-mode.el (prettify-symbols-unprettify-at-point):
6083 Default to disabled (nil).
6084
6085 2015-09-30 Artur Malabarba <bruce.connor.am@gmail.com>
6086
6087 * lisp/progmodes/prog-mode.el (prettify-symbols-unprettify-at-point):
6088 Support unprettifying when point is after a symbol.
6089
6090 * etc/NEWS: Document `prettify-symbols-unprettify-at-point'.
6091
6092 2015-09-30 Eli Zaretskii <eliz@gnu.org>
6093
6094 Avoid assertion violations in push_prefix_prop
6095
6096 * src/xdisp.c (push_prefix_prop): Avoid assertion violations when
6097 a line that has a line-prefix defined starts with an image. (Bug#21428)
6098
6099 2015-09-30 Eli Zaretskii <eliz@gnu.org>
6100
6101 Disable some display optimizations when frames need redisplay
6102
6103 These optimizations were previously disabled by the
6104 windows_or_buffers_changed flag, which now is not set
6105 when only some frames need to be redrawn.
6106 * src/xdisp.c (redisplay_internal): Redisplay any frame whose
6107 'redisplay' flag is set.
6108 (try_window_reusing_current_matrix, try_window_id)
6109 (try_cursor_movement): Disable these optimizations when the
6110 frame's 'redisplay' flag is set.
6111
6112 2015-09-30 Tassilo Horn <tsdh@gnu.org>
6113
6114 Don't modify buffer by unprettification
6115
6116 * lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
6117 (prettify-symbols--post-command-hook, prettify-symbols-mode): Don't
6118 modify buffer when setting/removing custom prettify-symbols-start/end
6119 text properties. Add them to font-lock-extra-managed-props, too.
6120
6121 2015-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6122
6123 Try to avoid redisplaying all frames when creating a new one
6124
6125 * src/xfns.c (x_set_menu_bar_lines, x_change_tool_bar_height):
6126 * src/xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
6127 (Finternal_set_lisp_face_attribute, update_face_from_frame_parameter):
6128 * src/frame.c (x_set_screen_gamma): Set the specific frame's
6129 `redisplay' bit rather than windows_or_buffers_changed.
6130
6131 * src/window.c (apply_window_adjustment): Remove redundant setting of
6132 windows_or_buffers_changed.
6133
6134 * src/xdisp.c (redisplay_internal): Set the specific frame's
6135 `redisplay' bit rather than update_mode_lines in response to
6136 cursor_type_changed.
6137 (syms_of_xdisp): Use hash-tables for redisplay_*_cause tables.
6138 (AINC): Adjust accordingly.
6139
6140 2015-09-30 Tassilo Horn <tsdh@gnu.org>
6141
6142 Implement unprettification of symbol at point
6143
6144 * lisp/progmodes/prog-mode.el: Implement feature for unprettifying the
6145 symbol at point.
6146 (prettify-symbols--current-symbol-bounds): New variable.
6147 (prettify-symbols--post-command-hook): New function.
6148 (prettify-symbols-unprettify-at-point): New defcustom.
6149 (prettify-symbols-mode): Use it.
6150 (prettify-symbols--compose-symbol): Use them.
6151
6152 2015-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6153
6154 * src/macfont.m (mac_font_descriptor_supports_languages):
6155 Regard "zh" as synonym of "zh-Hans".
6156
6157 2015-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6158
6159 Work around crash when displaying etc/HELLO on OS X 10.11
6160
6161 * src/macfont.m (mac_font_get_weight)
6162 (mac_font_descriptor_get_adjusted_weight): New functions.
6163 (macfont_store_descriptor_attributes): Adjust weight.
6164
6165 2015-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6166
6167 * src/macfont.m: Fix compilation with USE_CT_GLYPH_INFO.
6168
6169 2015-09-30 Nicolas Petton <nicolas@petton.fr>
6170
6171 * lisp/arc-mode.el (archive-rar-summarize): Better alignment
6172 of the columns.
6173
6174 2015-09-30 Nicolas Petton <nicolas@petton.fr>
6175
6176 Use unar and lsar to handle RAR archives in arc-mode
6177
6178 * lisp/arc-mode.el (archive-rar-extract, archive-extract-by-file): Rely
6179 on unar and lsar instead of unrar-free for RAR archives (bug#17663).
6180
6181 2015-09-30 Wieland Hoffmann <themineo@gmail.com> (tiny change)
6182
6183 Clarify :create in auth-source's docs
6184
6185 * lisp/gnus/auth-source.el (auth-source-search):
6186 Clarify :create's meaning.
6187
6188 2015-09-30 Phil Sainty <psainty@orcon.net.nz>
6189
6190 Avoid empty -path arguments in rgrep
6191
6192 * lisp/progmodes/grep.el (rgrep-default-command): Remove nil from
6193 the list produced according to grep-find-ignored-directories,
6194 before passing it to Find/Grep invocation. (Bug#21548)
6195
6196 2015-09-30 Eli Zaretskii <eliz@gnu.org>
6197
6198 Clarify documentation of pos-visible-in-window-p
6199
6200 * src/window.c (Fpos_visible_in_window_p): Clarify the meaning of
6201 t for POS. See
6202 http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg01040.html
6203 for the original report.
6204
6205 * doc/lispref/windows.texi (Window Start and End): Clarify the
6206 meaning of t for the POSITION argument of pos-visible-in-window-p.
6207
6208 2015-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
6209
6210 * lisp/progmodes/prolog.el: Fix various indentation cases.
6211 (prolog-operator-chars): New const (add \\).
6212 (prolog-smie-forward-token, prolog-smie-backward-token): Use it.
6213 (prolog-smie-rules): Add rules according to bug#21526.
6214
6215 2015-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
6216
6217 * lisp/progmodes/sh-script.el: Old "dumb" continued line indent.
6218 (sh-indent-after-continuation): Add new value `always' (bug#17620)
6219 (sh-smie-sh-rules): Remove old handling of continued lines.
6220 (sh-smie--indent-continuation): New function.
6221 (sh-set-shell): Use it.
6222
6223 2015-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
6224
6225 * lisp/progmodes/octave.el: Use grammar more; Handle enumeration fun.
6226 Remove redundant :group keyword args.
6227 (octave-begin-keywords, octave-else-keywords, octave-end-keywords):
6228 Remove variables.
6229 (octave-operator-table, octave-smie-bnf-table): Use let-when-compile to
6230 turn them into compile-time variables.
6231 Auto-generate the "foo ... end" rules from the "foo ... endfoo" rules.
6232 Add rules for break, continue, return, global, and persistent.
6233 Refine the rule for "until".
6234 (octave-smie--funcall-p, octave-smie--end-index-p)
6235 (octave-smie--in-parens-p): New functions.
6236 (octave-smie-backward-token, octave-smie-forward-token): Use them to
6237 distinguish the "enumeration" function and the "end" index from
6238 their corresponding keywords.
6239 (octave--block-offset-keywords): New constant.
6240 (octave-smie-rules): Use it. Adjust rules for new global/persistent
6241 parsing.
6242 (octave-reserved-words): Redefine using octave-smie-grammar.
6243 (octave-font-lock-keywords): Use octave-smie--funcall-p and
6244 octave-smie--end-index-p.
6245
6246 2015-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
6247
6248 * lisp/emacs-lisp/lisp-mode.el (let-when-compile): Work like let*.
6249
6250 2015-09-29 Eli Zaretskii <eliz@gnu.org>
6251
6252 * nt/INSTALL: Remove references to GTK site.
6253 That site no longer offers Windows downloads.
6254
6255 2015-09-29 Eli Zaretskii <eliz@gnu.org>
6256
6257 * nt/INSTALL: Add instructions for installing Git.
6258
6259 2015-09-29 Katsumi Yamaoka <yamaoka@jpl.org>
6260
6261 * lisp/net/shr.el (shr-colorize-region): Allow 88-color tty to
6262 use colors. Suggested by Eli Zaretskii.
6263
6264 2015-09-28 Katsumi Yamaoka <yamaoka@jpl.org>
6265
6266 * lisp/net/shr.el (shr-colorize-region): Don't do it on a system
6267 not supporting 256 above colors (bug#21557).
6268
6269 2015-09-28 Dmitry Gutov <dgutov@yandex.ru>
6270
6271 Revert "Don't rely on defaults in decoding UTF-8 encoded Lisp files"
6272
6273 This reverts commit db828f62f6f17414fbbc3206dac123dc73dd6055.
6274
6275 2015-09-28 Nicolas Petton <nicolas@petton.fr>
6276
6277 Add documentation for seq.el
6278
6279 * doc/lispref/sequences.texi: Add documentation regarding extending
6280 seq.el, as well as missing documentation for seq-elt, seq-length, seq-p,
6281 seq-do and seq-map.
6282
6283 2015-09-28 Nicolas Petton <nicolas@petton.fr>
6284
6285 Better documentation for seq-some
6286
6287 * doc/lispref/sequences.texi:
6288 * lisp/emacs-lisp/seq.el: Update the documentation of seq-some to
6289 guarantee that the returned value is the first non-nil value that
6290 resulted from applying the predicate.
6291
6292 2015-09-28 Nicolas Petton <nicolas@petton.fr>
6293
6294 * lisp/arc-mode.el: Sharp-quote function arguments.
6295
6296 2015-09-28 Eli Zaretskii <eliz@gnu.org>
6297
6298 Avoid redisplay error in ediff-regions-wordwise
6299
6300 * lisp/vc/ediff-util.el
6301 (ediff-clone-buffer-for-region-comparison): Make sure the mark is
6302 set before activating it. (Bug#21567)
6303
6304 2015-09-28 Eli Zaretskii <eliz@gnu.org>
6305
6306 Another attempt to fix crashes due to prematurely freed faces
6307
6308 * src/xdisp.c (redisplay_internal): Inhibit freeing of realized
6309 faces for as long as we might have desired matrices that reference
6310 those faces. (Bug#21428)
6311
6312 2015-09-28 Tassilo Horn <tsdh@gnu.org>
6313
6314 Add auctex development list email address
6315
6316 2015-09-28 Tassilo Horn <tsdh@gnu.org>
6317
6318 * admin/MAINTAINERS: Add entries for AUCTeX team and myself.
6319
6320 2015-09-28 Arash Esbati <esbati@gmx.de> (tiny change)
6321
6322 Improve wrapfig package support and caption parsing
6323
6324 * lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin):
6325 Correct description string and add wraptable environment.
6326 (reftex-default-context-regexps): Improve caption regexp.
6327
6328 2015-09-28 Anders Lindgren <andlind@gmail.com>
6329
6330 Respect value of frame_resize_pixelwise when handling fullscreen state
6331
6332 * src/nsterm.m (handleFS): Respect frame_resize_pixelwise when
6333 setting size increments.
6334
6335 2015-09-27 Michael Albinus <michael.albinus@gmx.de>
6336
6337 * src/gfilenotify.c (Fgfile_add_watch): Cleanup temporary variable.
6338
6339 2015-09-27 Simen Heggestøyl <simenheg@gmail.com>
6340
6341 Add prettify-symbols-alist for js-mode
6342
6343 * lisp/progmodes/js.el (js--prettify-symbols-alist): New defconst.
6344 (js-mode): Use it.
6345
6346 2015-09-27 Eli Zaretskii <eliz@gnu.org>
6347
6348 * nt/subdirs.el: File deleted (no longer used).
6349
6350 2015-09-26 Alan Mackenzie <acm@muc.de>
6351
6352 Fix follow-scroll-up/down, making them replacements for scroll-up/down
6353
6354 1. Allow point to move between follow windows in scroll operations.
6355 2. Fix bug where `right-char' just before EOB caused spurious scrolling,
6356 when EOB was isolated in the last follow window.
6357
6358 * lisp/follow.el (follow-fixed-window): New variable.
6359 (follow-get-scrolled-point): New function.
6360 (follow-scrol-up, follow-scroll-down): Add autoload cookies.
6361 Reformulate the code. Put `scroll-command' properties on the functions.
6362 Correct minor errors in ...-down's doc string and code.
6363 (follow-calc-win-end): Amend incomplete doc string. Use
6364 `pos-visible-in-window-p' to check whether EOB is in the window.
6365 (follow-estimate-first-window-start): Correct an off-by-1 error.
6366 (follow-adjust-window): Add handling for explicit scrolling operations.
6367
6368 2015-09-26 Paul Eggert <eggert@cs.ucla.edu>
6369
6370 * admin/MAINTAINERS: Add self, plus list some more files
6371 sans maintaners.
6372
6373 2015-09-26 Zachary Kanfer <zkanfer@gmail.com> (tiny change)
6374
6375 New DWIM commands for changing letter-case
6376
6377 * lisp/simple.el (upcase-dwim, downcase-dwim, capitalize-dwim):
6378 New functions. (Bug#21501)
6379
6380 2015-09-26 Eli Zaretskii <eliz@gnu.org>
6381
6382 * etc/PROBLEMS: Document problems with pasting on MS-Windows.
6383
6384 2015-09-26 Eli Zaretskii <eliz@gnu.org>
6385
6386 Make face realization be more frame-specific
6387
6388 * src/frame.h (struct f): New flag face_change.
6389 * src/xfaces.c (Finternal_make_lisp_face)
6390 (Finternal_copy_lisp_face, Finternal_set_lisp_face_attribute)
6391 (update_face_from_frame_parameter): Set the face_change flag only
6392 for the frame whose faces are affected.
6393 * src/xdisp.c (init_iterator): If a frame's face_change flag is
6394 set, free faces only on that frame.
6395 (redisplay_internal): Disable "display optimization 1" if the
6396 frame's face_change flag is set.
6397 (redisplay_window): Don't allow skipping a window's redisplay if
6398 its frame's face_change flag is set.
6399 * src/frame.c (x_set_screen_gamma): Instead of calling
6400 Fclear_face_cache, call clear_face_cache and set
6401 windows_or_buffers_changed to a non-zero value. This avoids
6402 setting the global face_change flag that triggers face realization
6403 on all frames and thorough redisplay of all of them.
6404
6405 * lisp/term/tty-colors.el (tty-register-default-colors): Don't
6406 clear face cache if the selected frame is a GUI frame.
6407
6408 2015-09-26 Tassilo Horn <tsdh@gnu.org>
6409
6410 Remove font-latex specific check
6411
6412 * lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p):
6413 Use syntax-ppss data to identify verbatim contents.
6414
6415 2015-09-25 Tassilo Horn <tsdh@gnu.org>
6416
6417 * lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p):
6418 Fix some false negatives.
6419
6420 2015-09-25 Eli Zaretskii <eliz@gnu.org>
6421
6422 Reorder Windows version in Emacs manifests
6423
6424 * nt/emacs-x64.manifest:
6425 * nt/emacs-x86.manifest: Reorder Windows version from lowest to
6426 highest.
6427
6428 2015-09-25 Eli Zaretskii <eliz@gnu.org>
6429
6430 Update Emacs manifest files for Windows 10
6431
6432 * nt/emacs-x86.manifest:
6433 * nt/emacs-x64.manifest: Declare compatibility with Windows 10.
6434
6435 2015-09-25 Eli Zaretskii <eliz@gnu.org>
6436
6437 Avoid non-ASCII decoding errors in C src files
6438
6439 * src/nsterm.m:
6440 * src/lisp.h:
6441 * src/editfns.c:
6442 * src/doprnt.c: Add 'coding' cookies -- these files include
6443 Unicode characters and should be decoded as UTF-8.
6444
6445 2015-09-25 Alan Mackenzie <acm@muc.de>
6446
6447 Resurrect edebug-set-initial-mode, repurposing it to set the global mode
6448
6449 * lisp/emacs-lisp/edebug.el (edebug-initial-mode-alist): Uncomment, and
6450 amend to match current modes and functions.
6451 (edebug-set-initial-mode): Uncomment and change from setting a defun's
6452 `edebug-initial-mode''s property to setting the variable
6453 `edebug-initial-mode'.
6454 (top level): Create new binding C-x C-a C-m for
6455 `edebug-set-initial-mode'.
6456
6457 * doc/lispref/edebug.texi (Edebug Execution Modes): Document
6458 `edebug-set-initial-mode' and its new key binding.
6459 (Edebug Options): Mention the new command in the pertinent place.
6460
6461 * etc/NEWS: Write entry for this change.
6462
6463 2015-09-25 Eli Zaretskii <eliz@gnu.org>
6464
6465 Avoid non-ASCII decoding errors in Texinfo files
6466
6467 * doc/misc/tramp.texi:
6468 * doc/lispref/strings.texi:
6469 * doc/lispref/positions.texi:
6470 * doc/lispref/help.texi:
6471 * doc/lispref/functions.texi:
6472 * doc/lispintro/emacs-lisp-intro.texi:
6473 * doc/emacs/text.texi:
6474 * doc/emacs/modes.texi:
6475 * doc/emacs/mini.texi:
6476 * doc/emacs/display.texi:
6477 * doc/emacs/custom.texi:
6478 * doc/emacs/basic.texi: Add 'coding' cookies -- these files use
6479 Unicode characters and should be decoded as UTF-8.
6480 * doc/lispref/frames.texi (Size Parameters): Don't use a non-ASCII
6481 apostrophe unnecessarily.
6482
6483 2015-09-25 Paul Eggert <eggert@cs.ucla.edu>
6484
6485 Merge from gnulib
6486
6487 This incorporates:
6488 2015-09-25 c-ctype: rewrite to use inline functions
6489 2015-09-24 maint: add coding cookies to non-ASCII sources
6490 2015-09-24 gitlog-to-changelog: trim only trailing whitespaces
6491 * build-aux/gitlog-to-changelog, doc/misc/texinfo.tex:
6492 * lib/acl-internal.c, lib/acl-internal.h, lib/c-ctype.c:
6493 * lib/c-ctype.h, lib/get-permissions.c, lib/qcopy-acl.c:
6494 * lib/set-permissions.c:
6495 Copy from gnulib.
6496
6497 2015-09-24 Paul Eggert <eggert@cs.ucla.edu>
6498
6499 Update publicsuffix.txt from upstream
6500
6501 * etc/publicsuffix.txt: Update from
6502 https://publicsuffix.org/list/effective_tld_names.dat
6503 dated 2015-09-24 17:29:21 UTC.
6504
6505 2015-09-24 Eli Zaretskii <eliz@gnu.org>
6506
6507 Prevent timers from messing up TTY menus
6508
6509 * src/term.c (tty_menu_activate): Inhibit redisplay for as long as
6510 the TTY menu is open. (Bug#21530)
6511
6512 2015-09-24 Paul Eggert <eggert@cs.ucla.edu>
6513
6514 No need to mention K&R C in c-mode intro
6515
6516 2015-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
6517
6518 Fix recent bootstrap problems
6519
6520 * src/syntax.c (parse_sexp_propertize): Fix last fix.
6521 * lisp/nxml/nxml-mode.el (nxml-comment-quote-nested): Fix paren typo.
6522 * lisp/emacs-lisp/lisp-mode.el: Require cl-lib for cl-progv.
6523
6524 2015-09-24 Michael Albinus <michael.albinus@gmx.de>
6525
6526 * src/gfilenotify.c (Fgfile_add_watch): Decrease polling rate.
6527
6528 2015-09-23 Ivan Andrus <darthandrus@gmail.com>
6529
6530 Properly quote nested xml comments (Bug#6267) (Bug#20001)
6531
6532 * lisp/nxml/nxml-mode.el (nxml-comment-quote-nested): New function.
6533 (nxml-mode): Set comment-quote-nested-function.
6534
6535 2015-09-23 Ivan Andrus <darthandrus@gmail.com>
6536
6537 Allow major-modes full control over quoting nested comments
6538
6539 * lisp/newcomment.el (comment-quote-nested-function): New variable.
6540 (comment-quote-nested-default): New function.
6541 (comment-quote-nested): Use `comment-quote-nested-function'.
6542
6543 2015-09-23 Paul Eggert <eggert@cs.ucla.edu>
6544
6545 Prefer CALLN in a few more places
6546
6547 * src/macfont.m (macfont_set_family_cache):
6548 * src/nsterm.m (append2):
6549 * src/xterm.c (x_cr_export_frames):
6550 Prefer CALLN to allocating the arg arrays by hand.
6551
6552 2015-09-23 Michael Albinus <michael.albinus@gmx.de>
6553
6554 Adapt file-notify-test02-events test case
6555
6556 * test/automated/file-notify-tests.el (file-notify-test02-events):
6557 Create a new watch for every test.
6558
6559 2015-09-23 Michael Albinus <michael.albinus@gmx.de>
6560
6561 Continue gfilenotify.c implementation of missing parts
6562
6563 * lisp/filenotify.el (file-notify-add-watch): Append `flags' to
6564 `gfile-add-watch' call.
6565 (file-notify-rm-watch): Modify `file-notify-descriptors' only
6566 after calling the low level functions.
6567
6568 * src/gfilenotify.c (dir_monitor_callback): Check, whether
6569 event_type is expected.
6570 (Fgfile_add_watch): Allow also `change'and `attribute-change' for FLAGS.
6571 (Fgfile_rm_watch): Fix typo.
6572 (syms_of_gfilenotify): Declare Qchange and Qattribute_change.
6573
6574 2015-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
6575
6576 * src/syntax.c (parse_sexp_propertize): Handle spurious
6577 e_property_truncated flag.
6578 (update_syntax_table_forward): Remove invalid assertion.
6579
6580 2015-09-23 Eli Zaretskii <eliz@gnu.org>
6581
6582 * src/xdisp.c (produce_stretch_glyph): Support ':relative-width'
6583 space display spec on text-mode terminals, by calling
6584 PRODUCE_GLYPHS instead of x_produce_glyphs. Remove the
6585 HAVE_WINDOW_SYSTEM guards from the supporting code, as well as the
6586 test for a GUI frame.
6587
6588 2015-09-23 Oleh Krehel <ohwoeowho@gmail.com>
6589
6590 Move let-when-compile to lisp-mode.el
6591
6592 This fixes the bootstrapping problem of `let-when-compile' using
6593 `cl-progv' while being in subr.el (i.e. before cl stuff was loaded).
6594
6595 2015-09-23 Thomas Fitzsimmons <fitzsim@fitzsim.org>
6596
6597 * lisp/url/url-http.el (url-http-parse-headers): Do not
6598 automatically include Authorization header in redirect.
6599 (Bug#21350)
6600
6601 2015-09-22 Eli Zaretskii <eliz@gnu.org>
6602
6603 Clarify documentation of ':relative-width'
6604
6605 * doc/lispref/display.texi (Specified Space): Document that
6606 ':relative-width' is only supported on GUI frames.
6607
6608 2015-09-22 Eli Zaretskii <eliz@gnu.org>
6609
6610 Fix 'current-column' in presence of :relative-width
6611
6612 * src/indent.c (check_display_width): Support ':relative-width'
6613 in a display spec that specifies a stretch glyph. (Bug#21533)
6614
6615 2015-09-22 Ken Manheimer <ken.manheimer@gmail.com>
6616
6617 Reformat the pdbtrack remote-file fix ChangeLog.2 entry
6618
6619 ... to conform better to CONTRIBUTE guidelines.
6620
6621 2015-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
6622
6623 * lisp/progmodes/prolog.el: Fix indentation of empty line
6624
6625 * lisp/emacs-lisp/smie.el (smie-rules-function): Document new
6626 `empty-line-token' element.
6627 (smie-indent-empty-line): New function.
6628 (smie-indent-functions): Add it.
6629
6630 * lisp/progmodes/prolog.el (prolog-smie-rules): Fix :list-intro
6631 behavior and use the new `empty-line-token' element (bug#21526).
6632 (prolog-mode-variables): Fix comment-start-skip setting to match
6633 comment-start.
6634
6635 * test/indent/prolog.prolog: Add nested indentation tests.
6636
6637 * lisp/newcomment.el (comment-normalize-vars): Fix default value of
6638 comment-start-skip not to misuse submatch 1.
6639
6640 2015-09-22 Alan Mackenzie <acm@muc.de>
6641
6642 Make description of `edebug-initial-mode' user friendly
6643
6644 Fixes bug#21365.
6645
6646 * dec/lispref/edebug.texi (Edebug Execution Modes): Change the
6647 description of `edebug-initial-mode' from that of its implementation
6648 to that of its visual effect and use. Move the paragraph higher up.
6649
6650 2015-09-22 Eli Zaretskii <eliz@gnu.org>
6651
6652 lisp/progmodes/gud.el (gud-format-command): Fix last commit
6653
6654 * lisp/progmodes/gud.el (gud-format-command): Don't use Tramp internal
6655 functions 'tramp-file-name-localname' and 'tramp-dissect-file-name'.
6656
6657 2015-09-22 Tassilo Horn <tsdh@gnu.org>
6658
6659 Improve last commit to process.c
6660
6661 2015-09-22 Michael Albinus <michael.albinus@gmx.de>
6662
6663 Implement gfile-valid-p
6664
6665 * lisp/filenotify.el (file-notify-callback): Fix typo.
6666 (gfile-valid-p): Remove defalias.
6667
6668 * src/gfilenotify.c (dir_monitor_callback): Cancel the monitor if
6669 the file or directory to be watched is deleted.
6670 (Fgfile_add_watch): Make watch_object a triple.
6671 (Fgfile_rm_watch): Check, whether watch is cancelled already.
6672 (Fgfile_valid_p): New defun.
6673 (syms_of_gfilenotify): Declare Sgfile_valid_p.
6674
6675 2015-09-22 Tassilo Horn <tsdh@gnu.org>
6676
6677 Remove callback-handled channels from Available set
6678
6679 * src/process.c (wait_reading_process_output): Remove channel from
6680 Available set if it is handled by a callback, e.g., dbus or
6681 inotify (bug#21313).
6682
6683 2015-09-21 Mark Oteiza <mvoteiza@udel.edu>
6684
6685 Use lunate epsilon for TeX \epsilon
6686
6687 * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist):
6688 Add \varepsilon using GREEK SMALL LETTER EPSILON, and change
6689 \epsilon to use GREEK LUNATE EPSILON SYMBOL
6690
6691 2015-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
6692
6693 * lisp/progmodes/prolog.el: Fix nested electric if-then-else
6694
6695 * lisp/progmodes/prolog.el (prolog-find-unmatched-paren): Use innermost
6696 rather than outermost paren (bug#21526).
6697
6698 2015-09-21 Paul Eggert <eggert@cs.ucla.edu>
6699
6700 Improve git diff hunk headers for .el, .texi
6701
6702 Problem reported by Alan Mackenzie in:
6703 http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00826.html
6704 * .gitattributes (*.el, *.texi): New patterns.
6705 * autogen.sh: Configure diff.elisp.xfuncname and
6706 diff.texinfo.xfuncname if using Git.
6707
6708 2015-09-21 Eli Zaretskii <eliz@gnu.org>
6709
6710 Don't rely on defaults in decoding UTF-8 encoded Lisp files
6711
6712 * lisp/replace.el:
6713 * lisp/textmodes/rst.el:
6714 * lisp/whitespace.el: Add an explicit UTF-8 encoding tag.
6715
6716 2015-09-21 Paul Eggert <eggert@cs.ucla.edu>
6717
6718 Clarify or replace a few \u escapes
6719
6720 * doc/lispref/nonascii.texi (Character Properties)
6721 More-detailed commentary for \u escapes.
6722 * lisp/progmodes/python.el (python--prettify-symbols-alist):
6723 * lisp/replace.el (query-replace-from-to-separator):
6724 * lisp/textmodes/rst.el (rst-bullets, rst-re-alist-def)
6725 (rst-mode-syntax-table):
6726 * lisp/whitespace.el (whitespace-display-mappings):
6727 Prefer actual character to \u escape when this makes the code
6728 easier to follow in the usual case where Unicode chars can be
6729 displayed.
6730
6731 2015-09-21 Paul Eggert <eggert@cs.ucla.edu>
6732
6733 Pacify GCC -Wmaybe-uninitialized in xdisp.c
6734
6735 * src/xdisp.c (face_before_or_after_it_pos): Use do-while rather
6736 than while loop to avoid GCC -Wmaybe-uninitialized diagnostic with
6737 charpos. The loop should always execute at least once anyway.
6738
6739 2015-09-21 Tassilo Horn <tsdh@gnu.org>
6740
6741 Signal error on invalid regexp
6742
6743 * lisp/textmodes/reftex-cite.el (reftex-extract-bib-entries):
6744 Signal an error when the user tries searching with a regexp
6745 matching the empty string.
6746
6747 2015-09-21 Eli Zaretskii <eliz@gnu.org>
6748
6749 Another fix of file-notify-tests for w32notify
6750
6751 * test/automated/file-notify-tests.el (file-notify-test02-events):
6752 Further adaptation for w32notify: reduce the number of expected
6753 'changed' events. (Bug#21435)
6754
6755 2015-09-21 Michael Albinus <michael.albinus@gmx.de>
6756
6757 Adapt tests and manual for w32notify
6758
6759 * doc/lispref/os.texi (File Notifications): w32notify does not
6760 send `attribute-changed' events.
6761
6762 * test/automated/file-notify-tests.el (file-notify--test-with-events):
6763 Simplify parameters. Adapt all callees.
6764 (file-notify-test02-events): w32notify does not send
6765 `attribute-changed' events.
6766 (file-notify-test04-file-validity, file-notify-test05-dir-validity):
6767 Do not skip in case of w32notify. Simply ignore this part of the test.
6768
6769 2015-09-21 Dima Kogan <dima@secretsauce.net>
6770
6771 Fix setting breakpoints when remote-debugging
6772
6773 * lisp/progmodes/gud.el (gud-format-command): Send localized file
6774 names to the debugger running on the remote. (Bug#13304)
6775
6776 2015-09-21 Nicolas Petton <nicolas@petton.fr>
6777
6778 Better docstring and parameter name for seq-find
6779
6780 * lisp/emacs-lisp/seq.el (seq-find): Improve the docstring and rename
6781 the parameter `sentinel' to `default'.
6782
6783 * doc/lispref/sequences.texi (Sequence Functions): Update the
6784 documentation for `seq-find' accordingly.
6785
6786 2015-09-21 Eli Zaretskii <eliz@gnu.org>
6787
6788 Avoid infinite recursion while displaying box face
6789
6790 * src/xdisp.c (face_before_or_after_it_pos): Fix calculation of
6791 the previous string/buffer character position under bidi
6792 iteration. (Bug#21428)
6793
6794 2015-09-21 Anders Lindgren <andlind@gmail.com>
6795
6796 Keep upper edge unchanged when changing size of NS frame
6797
6798 * src/nsterm.m (x_set_window_size): Keep upper frame edge unchanged
6799 (Bug#21415).
6800
6801 2015-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
6802
6803 * lisp/progmodes/prolog.el: Improve handling of if/then/else.
6804 (prolog-smie-rules): Accommodate standard if/then/else special
6805 indentation.
6806 (prolog-mode): Add . to electric-indent-chars.
6807 (prolog-electric--if-then-else): Re-indent the line before adding space
6808 after the new char (bug#21526).
6809
6810 2015-09-20 Mark Oteiza <mvoteiza@udel.edu>
6811
6812 Add prettify symbols to python-mode
6813
6814 * lisp/progmodes/python.el (python-prettify-symbols-alist):
6815 New variable.
6816 (python-mode): Use it
6817
6818 2015-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
6819
6820 * lisp/emacs-lisp/syntax.el (syntax-begin-function): Make obsolete.
6821
6822 2015-09-20 Jostein Kjønigsen <jostein@secure.kjonigsen.net> (tiny change)
6823
6824 (compilation-error-regexp-alist-alist): Tone down guile-file
6825
6826 * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
6827 Make guile-file a bit less enthusiastic (bug#21496).
6828
6829 2015-09-20 Drew Csillag <drew@thecsillags.com>
6830
6831 * lisp/progmodes/m4-mode.el (m4-font-lock-keywords):
6832 Fix m4_* highlighting.
6833
6834 * lisp/progmodes/m4-mode.el (m4-font-lock-keywords): Fix recognition
6835 of commands when they have a "m4_" prefix.
6836
6837 2015-09-20 Paul Eggert <eggert@cs.ucla.edu>
6838
6839 '.' -> `.' in doc string
6840
6841 * lisp/emacs-lisp/timer.el (run-at-time): In doc string, quote
6842 individual chars with grave quotes instead of straight quotes, as
6843 this works better when they are translated to curved quotes.
6844
6845 2015-09-20 Michael Albinus <michael.albinus@gmx.de>
6846
6847 Improve file notifications, especially for Tramp
6848
6849 * doc/lispref/files.texi (Magic File Names):
6850 Mention `file-notify-valid-p'.
6851
6852 * doc/lispref/os.texi (File Notifications):
6853 Describe `file-notify-valid-p'.
6854
6855 * etc/NEWS: Add `file-notify-valid-p'.
6856
6857 * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
6858 Improve implementation.
6859 (tramp-gvfs-monitor-file-process-filter): Rename from
6860 `tramp-gvfs-file-gvfs-monitor-file-process-filter'. Delete
6861 process if appropriate.
6862
6863 * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
6864 Improve implementation.
6865 (tramp-sh-gvfs-monitor-dir-process-filter): Rename from
6866 `tramp-sh-file-gvfs-monitor-dir-process-filter'. Delete process
6867 if appropriate.
6868 (tramp-sh-inotifywait-process-filter): Rename from
6869 `tramp-sh-file-inotifywait-process-filter'. Delete process if
6870 appropriate.
6871
6872 * lisp/net/tramp.el (tramp-handle-file-notify-rm-watch):
6873 Use `delete-process'.
6874 (tramp-handle-file-notify-valid-p): Check also, that file or
6875 directory to be watched still exists.
6876
6877 * test/automated/file-notify-tests.el (file-notify--test-timeout):
6878 New defun. Use it at all places a timeout is needed.
6879 (file-notify--test-cleanup): Delete directories recursively.
6880 Cleanup also Tramp connections.
6881 (file-notify-test02-events): Add tests for `attribute-change'.
6882 (file-notify-test04-file-validity, file-notify-test05-dir-validity):
6883 Add tests for `file-notify-rm-watch'.
6884
6885 2015-09-20 Paul Eggert <eggert@cs.ucla.edu>
6886
6887 Use %s to format strings instead of splicing them
6888
6889 If FOO might contain quotes that are part of a file or variable
6890 name, the quotes should not be translated when showing FOO’s name
6891 in a diagnostic. So, for example, (message (concat (FOO ": bar")))
6892 is not quite right, as it would translate FOO’s quotes.
6893 Change it to (message "%s: bar" FOO) instead.
6894 * lisp/allout.el (allout-process-exposed):
6895 * lisp/calc/calc-ext.el (calc-do-prefix-help):
6896 * lisp/calc/calc-store.el (calc-store-into):
6897 * lisp/calendar/todo-mode.el (todo-category-completions):
6898 * lisp/cedet/semantic/complete.el (semantic-completion-message):
6899 * lisp/org/ob-latex.el (convert-pdf):
6900 * lisp/org/org-crypt.el (org-crypt-check-auto-save):
6901 * lisp/org/ox-latex.el (org-latex-compile):
6902 * lisp/org/ox-man.el (org-man-compile):
6903 * lisp/org/ox-odt.el (org-odt--export-wrap):
6904 * lisp/org/ox-texinfo.el (org-texinfo-compile):
6905 * lisp/progmodes/ruby-mode.el (ruby-in-ppss-context-p):
6906 * lisp/progmodes/verilog-mode.el (verilog-batch-execute-func)
6907 (verilog-signals-combine-bus, verilog-read-defines)
6908 (verilog-getopt-file, verilog-expand-dirnames)
6909 (verilog-modi-lookup, verilog-modi-modport-lookup-one):
6910 * lisp/term/ns-win.el (ns-spi-service-call):
6911 Use %s to avoid translating quotes of file names etc. in diagnostics.
6912
6913 2015-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
6914
6915 * lisp/progmodes/js.el (js--syntax-begin-function): Remove.
6916 (js-mode): Don't set syntax-begin-function.
6917
6918 2015-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
6919
6920 * lisp/font-lock.el (font-lock-compile-keywords): Don't assume
6921 syntax-begin-function is a symbol.
6922
6923 2015-09-20 Eli Zaretskii <eliz@gnu.org>
6924
6925 Improve documentation of 'run-at-time'
6926 * lisp/emacs-lisp/timer.el (run-at-time): Improve the doc string.
6927 In particular, don't refer to 'diary-entry-time', because it is
6928 unavailable until diary-lib is loaded. Also, refer to
6929 'timer-duration-words', not 'timer-duration', as the latter's doc
6930 string says nothing about the accepted strings.
6931
6932 2015-09-19 Jay Belanger <jay.p.belanger@gmail.com>
6933
6934 * lisp/calc/calc-ext.el (calc-do-prefix-help): Tidy up error message.
6935
6936 2015-09-19 Ken Manheimer <ken.manheimer@gmail.com>
6937
6938 Repair pdbtrack remote file tracking
6939 * lisp/progmodes/python.el (python-pdbtrack-set-tracked-buffer):
6940 Rectify pdbtrack so it follows transitions from one remote source
6941 file to the next.
6942
6943 2015-09-19 Artur Malabarba <bruce.connor.am@gmail.com>
6944
6945 * lisp/emacs-lisp/timer.el (run-at-time): Docstring formatting.
6946
6947 2015-09-19 Eli Zaretskii <eliz@gnu.org>
6948
6949 Adapt vc-src to the old-new vc-checkin API
6950 * lisp/vc/vc-src.el (vc-src-checkin): Accept and ignore an
6951 additional optional parameter.
6952
6953 2015-09-19 Simen Heggestøyl <simenheg@gmail.com>
6954
6955 Add overflow module to CSS property list
6956 * lisp/textmodes/css-mode.el (css-property-ids): Add properties
6957 from CSS Overflow Module Level 3.
6958
6959 2015-09-19 Eli Zaretskii <eliz@gnu.org>
6960
6961 Fix documentation of "C-u C-x v v"
6962 * doc/emacs/maintaining.texi (Advanced C-x v v): Make the
6963 documentation of "C-u C-x v v" match what the code does.
6964
6965 Resurrect the ability to specify a revision in vc-next-action
6966 * lisp/vc/vc-bzr.el (vc-bzr-checkin):
6967 * lisp/vc/vc-dav.el (vc-dav-checkin):
6968 * lisp/vc/vc-git.el (vc-git-checkin):
6969 * lisp/vc/vc-hg.el (vc-hg-checkin):
6970 * lisp/vc/vc-mtn.el (vc-mtn-checkin): Accept and silently ignore
6971 an additional optional argument, the revision to checkin.
6972 * lisp/vc/vc-sccs.el (vc-sccs-checkin):
6973 * lisp/vc/vc-cvs.el (vc-cvs-checkin):
6974 * lisp/vc/vc-rcs.el (vc-rcs-checkin): Allow to optionally specify
6975 a revision to checkin.
6976 * lisp/vc/vc.el (vc-next-action): Allow to optionally specify the
6977 revision when checking in files.
6978 See http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00688.html
6979 for the details.
6980
6981 2015-09-18 Wilson Snyder <wsnyder@wsnyder.org>
6982
6983 * lisp/progmodes/verilog-mode.el (verilog-forward-sexp-function)
6984 (verilog-decls-princ, verilog-modport-princ)
6985 (verilog-modi-modport-lookup-one): Fix checkdoc warnings.
6986
6987 2015-09-17 Jay Belanger <jay.p.belanger@gmail.com>
6988
6989 Fix the routine for help on Calc's prefixes
6990 * lisp/calc/calc-ext.el (calc-prefix-help-retry): New variable.
6991 (calc-do-prefix-help): Use `read-char' to determine the next Calc
6992 command.
6993
6994 2015-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6995
6996 * lisp/font-lock.el (font-lock-beginning-of-syntax-function): Remove.
6997 (font-lock-fontify-block): Don't let-bind it.
6998 (font-lock-compile-keywords): Don't use it.
6999 (font-lock-set-defaults): Don't set it. Allow the variable alist to
7000 start one slot earlier, instead.
7001 * lisp/emacs-lisp/syntax.el (font-lock-beginning-of-syntax-function):
7002 Don't declare.
7003 (syntax-ppss): Don't use it either.
7004 * lisp/font-core.el (font-lock-defaults): Remove SYNTAX-BEGIN
7005 from docstring.
7006 * doc/emacs/display.texi (Font Lock): Don't mention
7007 font-lock-beginning-of-syntax-function.
7008 * doc/lispref/modes.texi (Font Lock Basics): Update description of
7009 font-lock-defaults.
7010 (Syntactic Font Lock): Remove font-lock-beginning-of-syntax-function.
7011 * lisp/loadhist.el (unload-feature-special-hooks):
7012 Remove font-lock-beginning-of-syntax-function.
7013 * lisp/obsolete/lazy-lock.el (lazy-lock-fontify-region):
7014 * lisp/emacs-lisp/lisp.el (beginning-of-defun-raw): Don't let-bind
7015 font-lock-beginning-of-syntax-function.
7016
7017 2015-09-17 Paul Eggert <eggert@cs.ucla.edu>
7018
7019 Backslash cleanup in Elisp source files
7020 This patch should not change behavior. It typically omits backslashes
7021 where they are redundant (e.g., in the string literal "^\$").
7022 In a few places, insert backslashes where they make regular
7023 expressions clearer: e.g., replace "^\*" (equivalent to "^*") with
7024 "^\\*", which has the same effect as a regular expression.
7025 Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs,
7026 and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion with
7027 RCS IDs, as that makes it clearer that the backslash is intended.
7028
7029 Some more minor backslash fixes
7030 * test/automated/compile-tests.el (compile-tests--test-regexps-data):
7031 * test/automated/info-xref.el (info-xref-test-write-file):
7032 Double backslashes in strings.
7033
7034 Fix several backslash typos in Elisp strings
7035 * lisp/calendar/todo-mode.el (todo-files, todo-rename-file)
7036 (todo-find-filtered-items-file, todo-reset-nondiary-marker)
7037 (todo-reset-done-string, todo-reset-comment-string)
7038 (todo-reset-highlight-item):
7039 * lisp/erc/erc-networks.el (erc-networks-alist):
7040 * lisp/gnus/gnus-art.el (gnus-button-handle-library):
7041 * lisp/gnus/gnus-group.el (gnus-read-ephemeral-gmane-group-url):
7042 * lisp/gnus/nntp.el (nntp-via-shell-prompt)
7043 (nntp-telnet-shell-prompt):
7044 * lisp/gnus/spam-report.el (spam-report-gmane-regex):
7045 * lisp/image-dired.el (image-dired-rotate-original):
7046 (image-dired-get-exif-file-name):
7047 * lisp/international/latin1-disp.el (latin1-display-ucs-per-lynx):
7048 * lisp/mail/undigest.el (rmail-digest-parse-rfc1153strict):
7049 * lisp/mh-e/mh-letter.el (mh-file-is-vcard-p):
7050 * lisp/mh-e/mh-mime.el (mh-file-mime-type-substitutions):
7051 * lisp/net/shr-color.el (shr-color->hexadecimal):
7052 * lisp/org/org-bibtex.el (org-bibtex-fields):
7053 * lisp/org/org-docview.el (org-docview-export):
7054 * lisp/org/org-entities.el (org-entities):
7055 * lisp/org/ox-icalendar.el (org-icalendar-cleanup-string):
7056 * lisp/progmodes/cperl-mode.el (cperl-indent-exp):
7057 * lisp/progmodes/ebnf2ps.el (ebnf-file-suffix-regexp)
7058 (ebnf-style-database):
7059 * lisp/progmodes/idlw-help.el (idlwave-do-context-help1):
7060 * lisp/progmodes/ruby-mode.el (ruby-imenu-create-index-in-block):
7061 * lisp/progmodes/sql.el (sql-product-alist):
7062 * lisp/progmodes/verilog-mode.el (verilog-error-regexp-emacs-alist)
7063 (verilog-error-font-lock-keywords)
7064 (verilog-assignment-operator-re):
7065 * lisp/progmodes/vhdl-mode.el (vhdl-compiler-alist):
7066 * lisp/textmodes/reftex-parse.el (reftex-parse-from-file):
7067 * lisp/vc/add-log.el (change-log-version-number-regexp-list):
7068 Fix typo by replacing ‘\’ with ‘\\’ in a string literal.
7069 For example, to get the regular expression ‘\.’ use the string
7070 literal "\\.", not "\." (which is equivalent to ".").
7071 * lisp/emulation/viper-util.el (viper-glob-unix-files):
7072 Remove stray ‘\j’ from string.
7073 * lisp/gnus/nntp.el (nntp-via-shell-prompt)
7074 (nntp-telnet-shell-prompt):
7075 Treat > like $ when matching a shell prompt.
7076 * lisp/progmodes/make-mode.el (makefile-browse):
7077 Properly quote a diagnostic.
7078
7079 Fix minor quoting problems in diagnostics
7080 * lisp/tutorial.el (tutorial--describe-nonstandard-key):
7081 * lisp/vc/ediff-ptch.el (ediff-fixup-patch-map):
7082 Follow text-quoting-style in diagnostic, and quote a file name.
7083
7084 2015-09-17 Eli Zaretskii <eliz@gnu.org>
7085
7086 * doc/lispref/frames.texi (Cursor Parameters):
7087 Document 'x-stretch-cursor'.
7088
7089 2015-09-16 Paul Eggert <eggert@cs.ucla.edu>
7090
7091 Omit unnecessary \ before paren in C docstrings
7092 Although \( is needed in docstrings in Elisp code, it is not needed in
7093 docstrings in C code, since C function definitiions do not start with
7094 a parenthesis. The backslashes made the docstrings a bit harder to
7095 read and to format in columns. Also, some C docstrings had ( in
7096 column 1 and this did not appear to be causing any problems. So,
7097 simplify C docstrings by replacing \( with ( and \) with ).
7098
7099 A few more minor quoting fixes in a script and a text file
7100
7101 Minor quoting fixes in scripts and doc
7102 Prefer straight quotes in random script files, as they are not
7103 converted. Prefer grave quotes in a couple of places in the manual
7104 that were missed earlier, as these quotes are converted.
7105
7106 Minor backslash fixes in manuals and scripts
7107 * Makefile.in (install-arch-indep):
7108 * admin/charsets/compact.awk:
7109 * admin/charsets/gb180302.awk (gb_to_index):
7110 * admin/charsets/gb180304.awk (gb_to_index):
7111 Avoid undefined behavior in Awk regular expression backslashes.
7112 * doc/misc/efaq.texi (Matching parentheses):
7113 Omit unnecessary backslashes.
7114 * doc/misc/gnus-faq.texi (FAQ 5-8):
7115 Avoid undefined behavior in suggested sed backslash usage.
7116
7117 Add -Wswitch to --enable-gcc-warnings
7118 Make --enable-gcc-warnings a bit pickier, by also using -Wswitch.
7119 * configure.ac (WERROR_CFLAGS): Don’t add -Wno-switch.
7120 * lib-src/etags.c (main, consider_token, C_entries):
7121 * src/coding.c (encode_invocation_designation):
7122 * src/data.c (Ftype_of):
7123 * src/eval.c (Fdefvaralias, default_toplevel_binding)
7124 (Fbacktrace__locals, mark_specpdl):
7125 * src/lisp.h (record_xmalloc):
7126 * src/syntax.c (scan_lists, scan_sexps_forward):
7127 * src/window.c (window_relative_x_coord):
7128 * src/xdisp.c (push_it, pop_it):
7129 * src/xterm.c (xg_scroll_callback, x_check_fullscreen):
7130 Error out or do nothing (as appropriate) if a switch statement
7131 with an enum value does not cover all of the enum.
7132 * src/dispextern.h (struct iterator_stack_entry.u.comp):
7133 Remove unused member discovered by using -Wswitch.
7134 * src/lisp.h (record_xmalloc): Add a ‘+ 0’ to pacify -Wswitch.
7135 * src/vm-limit.c (check_memory_limits):
7136 Simplify warning-diagnostic computation by using a table.
7137
7138 etags ‘fatal’ function is now printf-like
7139 * lib-src/etags.c (fatal): Now printf-like. All callers changed.
7140 Also, now static; not clear why it needed to be extern.
7141 (verror): New function, with most of the old contents of ‘error’.
7142 (fatal, error): Use it.
7143
7144 2015-09-16 Eli Zaretskii <eliz@gnu.org>
7145
7146 More adaptations in file-notify-tests.el
7147 * test/automated/file-notify-tests.el
7148 (file-notify-test05-dir-validity): Skip for w32notify in
7149 batch-mode. (Bug#21432)
7150
7151 2015-09-16 Michael Albinus <michael.albinus@gmx.de>
7152
7153 Adapt test in file-notify-tests.el
7154 * test/automated/file-notify-tests.el
7155 (file-notify-test04-file-validity): Skip for w32notify in
7156 batch-mode. Add test lost last commit.
7157
7158 2015-09-16 Dima Kogan <dima@secretsauce.net>
7159
7160 winner no longer holds on to dead frames
7161 * lisp/winner.el (winner-change-fun): Cull dead frames.
7162 This prevents a potentially massive memory leak. See:
7163 http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00619.html
7164
7165 2015-09-16 Michael Albinus <michael.albinus@gmx.de>
7166
7167 Use common report_file_notify_error function
7168 * src/fileio.c (report_file_notify_error): New function.
7169 * src/inotify.c (report_inotify_error): Remove function.
7170 (inotify_callback, symbol_to_inotifymask, Finotify_add_watch)
7171 (Finotify_rm_watch): Use report_file_notify_error.
7172 * src/lisp.h (report_file_notify_error): Declare external function.
7173 * src/w32notify.c (report_w32notify_error): Remove function.
7174 (Fw32notify_add_watch, Fw32notify_rm_watch):
7175 Use report_file_notify_error.
7176
7177 2015-09-16 Jay Belanger <jay.p.belanger@gmail.com>
7178
7179 Fix documentation.
7180 * doc/misc/calc.texi (Single-Variable Statistics): Fix the wording of
7181 the documentation of the root mean square.
7182
7183 2015-09-16 Martin Rudalics <rudalics@gmx.at>
7184
7185 Remove tool_bar_redisplayed_once and associated code.
7186 * src/frame.h (tool_bar_redisplayed_once): Remove slot.
7187 * src/frame.c (make_frame, x_set_font): Remove initialization of
7188 f->tool_bar_redisplayed_once.
7189 * src/w32fns.c (x_change_tool_bar_height):
7190 * src/xfns.c (x_change_tool_bar_height): Don't check for
7191 f->tool_bar_redisplayed_once.
7192 * src/xdisp.c (redisplay_internal): Remove handling of
7193 f->tool_bar_redisplayed_once.
7194
7195 2015-09-16 Eli Zaretskii <eliz@gnu.org>
7196
7197 Restore some of the quoting in the manuals
7198 * doc/lispref/windows.texi (Coordinates and Windows)
7199 (Coordinates and Windows):
7200 * doc/lispref/variables.texi (Lexical Binding)
7201 (File Local Variables):
7202 * doc/lispref/text.texi (Format Properties):
7203 * doc/lispref/symbols.texi (Symbol Components):
7204 * doc/lispref/strings.texi (Creating Strings):
7205 * doc/lispref/sequences.texi (Sequence Functions):
7206 * doc/lispref/searching.texi (Regexp Special, Regexp Search)
7207 (Search and Replace):
7208 * doc/lispref/processes.texi (Bindat Spec):
7209 * doc/lispref/os.texi (Idle Timers):
7210 * doc/lispref/objects.texi (Basic Char Syntax):
7211 * doc/lispref/numbers.texi (Float Basics, Random Numbers):
7212 * doc/lispref/nonascii.texi (Character Properties):
7213 * doc/lispref/modes.texi (Major Mode Conventions, Mode Hooks)
7214 (Mode Line Variables):
7215 * doc/lispref/minibuf.texi (Text from Minibuffer):
7216 * doc/lispref/loading.texi (Autoload):
7217 * doc/lispref/keymaps.texi (Controlling Active Maps):
7218 * doc/lispref/frames.texi (Frame Layout, Size and Position)
7219 (Size Parameters, Implied Frame Resizing):
7220 * doc/lispref/files.texi (Changing Files, Magic File Names):
7221 * doc/lispref/eval.texi (Self-Evaluating Forms):
7222 * doc/lispref/display.texi (Progress, Abstract Display)
7223 (Abstract Display Example, Bidirectional Display):
7224 * doc/lispref/commands.texi (Event Mod):
7225 * doc/emacs/windows.texi (Displaying Buffers):
7226 * doc/emacs/trouble.texi (Bug Criteria, Checklist):
7227 * doc/emacs/text.texi (Enriched Text):
7228 * doc/emacs/programs.texi (MixedCase Words):
7229 * doc/emacs/picture-xtra.texi (Insert in Picture)
7230 (Tabs in Picture):
7231 * doc/emacs/misc.texi (Emacs Server, Printing):
7232 * doc/emacs/mini.texi (Minibuffer History):
7233 * doc/emacs/maintaining.texi (Old Revisions, VC Change Log)
7234 (Pulling / Pushing):
7235 * doc/emacs/killing.texi (Yanking, Cut and Paste, Clipboard):
7236 * doc/emacs/help.texi (Help, Help Echo):
7237 * doc/emacs/glossary.texi (Glossary):
7238 * doc/emacs/frames.texi (Mouse Commands, Creating Frames)
7239 (Frame Commands):
7240 * doc/emacs/files.texi (Reverting, Saving, Directories):
7241 * doc/emacs/entering.texi (Exiting):
7242 * doc/emacs/emacs.texi (Top):
7243 * doc/emacs/cmdargs.texi (Window Size X, Icons X):
7244 * doc/emacs/anti.texi (Antinews): Restore quoting of text where
7245 appropriate or replace quoting with @dfn.
7246 * doc/misc/ediff.texi (Window and Frame Configuration):
7247 * doc/lispref/processes.texi (Network Feature Testing):
7248 * doc/lispref/display.texi (Display Margins): Quote the phrase
7249 after "a.k.a." where appropriate.
7250
7251 2015-09-16 Tassilo Horn <tsdh@gnu.org>
7252
7253 Clarify reftex-extra-bindings docs
7254 * lisp/textmodes/reftex-vars.el (reftex-extra-bindings):
7255 * doc/misc/reftex.texi (Key Bindings): Document that the variable
7256 only has an effect at load-time.
7257
7258 2015-09-16 Daniel McClanahan <danieldmcclanahan@gmail.com> (tiny change)
7259
7260 * lisp/emacs-lisp/lisp-mode.el (lisp--el-match-keyword): Fix
7261 search argument. (Bug#21492) (Bug#21493)
7262
7263 2015-09-16 Tassilo Horn <tsdh@gnu.org>
7264
7265 * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist):
7266 Add pretty symbols for \qquad and \varrho.
7267
7268 2015-09-15 Jay Belanger <jay.p.belanger@gmail.com>
7269
7270 Add new functions for the root mean square of a (Calc) vector
7271 * lisp/calc/calc-stats.el (calcFunc-rms, calc-vector-rms):
7272 New functions.
7273 * lisp/calc/calc-ext.el (calc-init-extensions): Add keybinding for
7274 `calc-vector-rms', add autoloads for `calc-vector-rms' and
7275 `calcFunc-rms'.
7276 * lisp/calc/calc-map.el (calc-u-oper-keys): Add entry for
7277 `calcFunc-rms'.
7278 * lisp/calc/calc-menu.el (calc-vectors-menu): Add entry for
7279 `calc-vector-rms'.
7280 * doc/misc/calc.texi (Single-Variable Statistics): Document the rms
7281 command.
7282
7283 2015-09-15 Stephen Leake <stephen_leake@stephe-leake.org>
7284
7285 Add monotone EDE generic project
7286 * lisp/cedet/ede/generic.el (ede-enable-generic-projects):
7287 Add monotone generic project.
7288
7289 Revert premature commit
7290 * doc/lispref/files.texi: Revert premature commit of change to
7291 file-name-all-completions.
7292
7293 Fix a bug in elisp--xref-find-definitions related to cl-generic defaults
7294 * lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions): Fix bug
7295 with cl-generic defaults.
7296 (elisp--xref-find-references): Add doc string.
7297 * test/automated/elisp-mode-tests.el (xref-elisp-generic-*): Improve
7298 tests to find bug.
7299
7300 Fix bugs in eieio-oref-default related to class symbols
7301 * lisp/emacs-lisp/eieio-core.el (class-p): Handle symbol properly.
7302 (eieio-oref-default): Handle class properly.
7303
7304 2015-09-15 Paul Eggert <eggert@cs.ucla.edu>
7305
7306 Quote “fullboth” when defining it
7307 * doc/lispref/frames.texi (Size Parameters): Use @dfn for “fullboth”
7308 and rewrite the containing paragraph, which was awkward. (Bug#21472).
7309
7310 2015-09-15 Eli Zaretskii <eliz@gnu.org>
7311
7312 Minor doc fix in emacs/ack.texi
7313 * doc/emacs/ack.texi (Acknowledgments): Fix an xref missing the
7314 first argument.
7315
7316 2015-09-15 Michael Albinus <michael.albinus@gmx.de>
7317
7318 Adapt tests in auto-revert-tests.el
7319 * test/automated/auto-revert-tests.el (auto-revert--timeout):
7320 Make it a defconst.
7321 (auto-revert--wait-for-revert): New defun.
7322 (auto-revert-test00-auto-revert-mode)
7323 (auto-revert-test01-auto-revert-tail-mode)
7324 (auto-revert-test02-auto-revert-mode-dired): Use it.
7325
7326 2015-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7327
7328 * lisp/emacs-lisp/lisp-mode.el (lisp-mode-symbol-regexp): New const.
7329 Use it everywhere "\\(\\sw\\|\\s_\\|\\\\.\\)+" was used.
7330 (cl-lib-fdefs): Add defgeneric.
7331 (cl-kw): Add all elements of eieio-kw and cl-lib-kw.
7332 (eieio-kw, cl-lib-kw, el-kw): Remove.
7333
7334 2015-09-15 Paul Eggert <eggert@cs.ucla.edu>
7335
7336 Quote less in manuals
7337 The manuals often used quotes ``...'' when it is better to use @dfn or
7338 @code or capitalized words or no quoting at all. For example, there is
7339 no need for the `` and '' in “if a variable has one effect for
7340 @code{nil} values and another effect for ``non-@code{nil}'' values”.
7341 Reword the Emacs, Lisp intro, and Lisp reference manuals to eliminate
7342 unnecessary quoting like this, and to use @dfn etc. instead when called
7343 for (Bug#21472).
7344
7345 2015-09-15 Mark Oteiza <mvoteiza@udel.edu>
7346
7347 * lisp/custom.el (load-theme): Only compute hash when needed.
7348
7349 2015-09-15 Paul Eggert <eggert@cs.ucla.edu>
7350
7351 Pacify --enable-gcc-warnings
7352 * src/inotify.c (report_inotify_error): Declare it _Noreturn.
7353
7354 2015-09-15 Michael Albinus <michael.albinus@gmx.de>
7355
7356 Improve error reports in inotify.c
7357 * src/inotify.c (report_inotify_error): New function. Clone of
7358 report_w32notify_error.
7359 (inotify_callback, symbol_to_inotifymask, Finotify_add_watch)
7360 (Finotify_rm_watch): Use it.
7361
7362 2015-09-15 Eli Zaretskii <eliz@gnu.org>
7363
7364 Fix the file-notify tests for watch validation on w32
7365 * test/automated/file-notify-tests.el
7366 (file-notify-test04-file-validity): Move the directory deletion
7367 out of the file-notify--test-with-events macro.
7368 (file-notify-test04-file-validity)
7369 (file-notify-test05-dir-validity): Enlarge the timeout of
7370 read-event to 0.5, as 0.1 is borderline on w32. (Bug#21432)
7371
7372 2015-09-15 Tassilo Horn <tsdh@gnu.org>
7373
7374 Use OPEN BOX instead of space for \quad.
7375 * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Use OPEN BOX
7376 character for \quad instead of a space.
7377
7378 2015-09-15 Eli Zaretskii <eliz@gnu.org>
7379
7380 Add missing *.pbm images
7381 * etc/images/connect.pbm: New file.
7382 * etc/images/custom/down-pushed.pbm: New file.
7383 * etc/images/custom/down.pbm: New file.
7384 * etc/images/custom/right-pushed.pbm: New file.
7385 * etc/images/custom/right.pbm: New file.
7386 * etc/images/describe.pbm: New file.
7387 * etc/images/disconnect.pbm: New file.
7388 * etc/images/ezimage/bits.pbm: New file.
7389 * etc/images/ezimage/bitsbang.pbm: New file.
7390 * etc/images/ezimage/box-minus.pbm: New file.
7391 * etc/images/ezimage/box-plus.pbm: New file.
7392 * etc/images/ezimage/box.pbm: New file.
7393 * etc/images/ezimage/checkmark.pbm: New file.
7394 * etc/images/ezimage/dir-minus.pbm: New file.
7395 * etc/images/ezimage/dir-plus.pbm: New file.
7396 * etc/images/ezimage/dir.pbm: New file.
7397 * etc/images/ezimage/doc-minus.pbm: New file.
7398 * etc/images/ezimage/doc-plus.pbm: New file.
7399 * etc/images/ezimage/doc.pbm: New file.
7400 * etc/images/ezimage/info.pbm: New file.
7401 * etc/images/ezimage/key.pbm: New file.
7402 * etc/images/ezimage/label.pbm: New file.
7403 * etc/images/ezimage/lock.pbm: New file.
7404 * etc/images/ezimage/mail.pbm: New file.
7405 * etc/images/ezimage/page-minus.pbm: New file.
7406 * etc/images/ezimage/page-plus.pbm: New file.
7407 * etc/images/ezimage/page.pbm: New file.
7408 * etc/images/ezimage/tag-gt.pbm: New file.
7409 * etc/images/ezimage/tag-minus.pbm: New file.
7410 * etc/images/ezimage/tag-plus.pbm: New file.
7411 * etc/images/ezimage/tag-type.pbm: New file.
7412 * etc/images/ezimage/tag-v.pbm: New file.
7413 * etc/images/ezimage/tag.pbm: New file.
7414 * etc/images/ezimage/unlock.pbm: New file.
7415 * etc/images/gnus/important.pbm: New file.
7416 * etc/images/gnus/mail-send.pbm: New file.
7417 * etc/images/gnus/receipt.pbm: New file.
7418 * etc/images/gnus/toggle-subscription.pbm: New file.
7419 * etc/images/gnus/unimportant.pbm: New file.
7420 * etc/images/gud/all.pbm: New file.
7421 * etc/images/gud/rcont.pbm: New file.
7422 * etc/images/gud/recstart.pbm: New file.
7423 * etc/images/gud/recstop.pbm: New file.
7424 * etc/images/gud/rfinish.pbm: New file.
7425 * etc/images/gud/rnext.pbm: New file.
7426 * etc/images/gud/rnexti.pbm: New file.
7427 * etc/images/gud/rstep.pbm: New file.
7428 * etc/images/gud/rstepi.pbm: New file.
7429 * etc/images/gud/thread.pbm: New file.
7430 * etc/images/lock-broken.pbm: New file.
7431 * etc/images/lock-ok.pbm: New file.
7432 * etc/images/lock.pbm: New file.
7433 * etc/images/mail/copy.pbm: New file.
7434 * etc/images/mail/forward.pbm: New file.
7435 * etc/images/mail/not-spam.pbm: New file.
7436 * etc/images/mail/outbox.pbm: New file.
7437 * etc/images/mail/preview.pbm: New file.
7438 * etc/images/mail/save-draft.pbm: New file.
7439 * etc/images/mh-logo.pbm: New file.
7440 * etc/images/mpc/add.pbm: New file.
7441 * etc/images/mpc/ffwd.pbm: New file.
7442 * etc/images/mpc/next.pbm: New file.
7443 * etc/images/mpc/pause.pbm: New file.
7444 * etc/images/mpc/play.pbm: New file.
7445 * etc/images/mpc/prev.pbm: New file.
7446 * etc/images/mpc/rewind.pbm: New file.
7447 * etc/images/mpc/stop.pbm: New file.
7448 * etc/images/redo.pbm: New file.
7449 * etc/images/smilies/braindamaged.pbm: New file.
7450 * etc/images/smilies/cry.pbm: New file.
7451 * etc/images/smilies/dead.pbm: New file.
7452 * etc/images/smilies/evil.pbm: New file.
7453 * etc/images/smilies/forced.pbm: New file.
7454 * etc/images/smilies/grin.pbm: New file.
7455 * etc/images/smilies/indifferent.pbm: New file.
7456 * etc/images/sort-ascending.pbm: New file.
7457 * etc/images/sort-column-ascending.pbm: New file.
7458 * etc/images/sort-criteria.pbm: New file.
7459 * etc/images/sort-descending.pbm: New file.
7460 * etc/images/sort-row-ascending.pbm: New file.
7461 * etc/images/unchecked.pbm: New file.
7462 * etc/images/zoom-in.pbm: New file.
7463 * etc/images/README: Update instructions for PBM files.
7464
7465 Add separator.pbm tool-bar image
7466 * etc/images/separator.pbm: New file. Having it avoids the side
7467 effect of changing the tool-bar height when the default font's size
7468 changes and XPM image support is not available, due to the SPC
7469 characters that are left in the Lisp string used to display the tool
7470 bar, because there are no images to display instead of those SPC
7471 characters.
7472
7473 Make show-paren-match face visible on mono-color displays
7474 * lisp/faces.el (show-paren-match): Use the underline face for
7475 mono-color displays. (Bug#21481)
7476
7477 2015-09-14 Paul Eggert <eggert@cs.ucla.edu>
7478
7479 Don’t double-encode non-ASCII mail clipboard
7480 * lisp/mail/mailclient.el (mailclient-send-it):
7481 Also fix the case when mailclient-place-body-on-clipboard-flag
7482 is non-nil. Problem reported by Eli Zaretskii (Bug#21471#37).
7483
7484 2015-09-14 Michael Albinus <michael.albinus@gmx.de>
7485
7486 Adapt file-notify-tests.el test cases
7487 * lisp/filenotify.el (file-notify-rm-watch): Ignore `file-notify-error'.
7488 * src/inotify.c (Finotify_valid_p): Adapt docstring.
7489 * test/automated/file-notify-tests.el
7490 (file-notify-test03-autorevert)
7491 (file-notify-test04-file-validity)
7492 (file-notify-test04-file-validity-remote)
7493 (file-notify-test05-dir-validity)
7494 (file-notify-test05-dir-validity-remote): Adapt docstring.
7495 (file-notify-test04-file-validity): Let events arrive before
7496 calling final `file-notify-valid-p'. Do not ignore errors.
7497 (file-notify-test05-dir-validity): Do not manipulate
7498 `temporary-file-directory', it isn't necessary. Let events arrive
7499 before calling final `file-notify-valid-p'. Do not ignore errors.
7500
7501 2015-09-14 Paul Eggert <eggert@cs.ucla.edu>
7502
7503 Don’t double-encode non-ASCII for mail client
7504 * lisp/mail/mailclient.el (mailclient-encode-string-as-url):
7505 Use RFC 6068’s list of unreserved characters.
7506 (mailclient-send-it): When encoding the body as a URL,
7507 first decode it as per Content-Type: and Content-Transfer-Encoding:,
7508 as URLs must use percent-encoded UTF-8 (Bug#21471).
7509 * doc/misc/url.texi (mailto): Update RFC number.
7510
7511 2015-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
7512
7513 * lisp/progmodes/cc-langs.el (c-make-init-lang-vars-fun): Use dolist.
7514
7515 2015-09-14 Alan Mackenzie <acm@muc.de>
7516
7517 Replace `cadar' with `cadr/car', since `cadar' is problematic on Emacs
7518 (c-make-init-lang-vars-fun): Replace two occurrences of `cadar' with
7519 `cadr/car'.
7520
7521 2015-09-14 Eli Zaretskii <eliz@gnu.org>
7522
7523 Clarify documentation of char-table extra slots
7524 * doc/lispref/sequences.texi (Char-Tables): Clarify that extra
7525 slot numbers are zero-based. (Bug#21467)
7526
7527 2015-09-14 Alan Mackenzie <acm@muc.de>
7528
7529 Elisp mode: Make font-lock and imenu handle escaped characters in symbols
7530 Fixes bug#21449.
7531 * lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression)
7532 (lisp--el-match-keyword, lisp-el-font-lock-keywords-1)
7533 (lisp-cl-font-lock-keywords-1, lisp-el-font-lock-keywords-2)
7534 (lisp-cl-font-lock-keywords-2, lisp-string-in-doc-position-p):
7535 Insert "\\|\\\\." into regexps which match symbols.
7536
7537 2015-09-14 Eli Zaretskii <eliz@gnu.org>
7538
7539 Improve the doc string of w32notify-valid-p
7540 * src/w32notify.c (Fw32notify_valid_p): Mention in the doc string
7541 that removing a watch makes its object invalid.
7542
7543 2015-09-14 Tassilo Horn <tsdh@gnu.org>
7544
7545 Fix tests for file-notify-valid-p
7546 * test/automated/file-notify-tests.el (file-notify--test-cleanup):
7547 Use delete-directory to delete file-notify--test-tmpfile if it is
7548 a directory. Likewise for file-notify--test-tmpfile1.
7549 (file-notify-test04-file-validity)
7550 (file-notify-test05-dir-validity): Delete the parent directory of
7551 the test. Ignore errors when cleaning up after the test.
7552
7553 2015-09-14 Eli Zaretskii <eliz@gnu.org>
7554
7555 Report file-notify-error in w32notify.c
7556 * src/w32notify.c (report_w32notify_error): New function.
7557 (Fw32notify_add_watch, Fw32notify_rm_watch): Use it to report
7558 errors, instead of calling report_file_error. (Bug#21432)
7559
7560 Implement w32notify-valid-p
7561 * src/w32notify.c (Fw32notify_valid_p): New function. (Bug#21432)
7562 * lisp/filenotify.el (w32notify-valid-p): No longer an alias for
7563 'identity'.
7564
7565 2015-09-14 Tassilo Horn <tsdh@gnu.org>
7566
7567 Test file-notify-valid-p
7568 * test/automated/file-notify-tests.el
7569 (file-notify-test04-file-validity, file-notify-test05-dir-validity):
7570 New tests.
7571
7572 2015-09-13 Eli Zaretskii <eliz@gnu.org>
7573
7574 Fix markup in ELisp manual
7575 * doc/lispref/frames.texi (Font and Color Parameters): Fix markup
7576 of the 'alpha' parameter value. (Bug#21470)
7577
7578 2015-09-13 Michael Albinus <michael.albinus@gmx.de>
7579
7580 Introduce `file-notify-valid-p'
7581 * lisp/filenotify.el (file-notify-valid-p): New defun.
7582 (gfile-valid-p, w32notify-valid-p): Make them an alias to `identity'.
7583 * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist)
7584 * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
7585 * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist)
7586 * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
7587 <file-notify-valid-p>: Add handler.
7588 * lisp/net/tramp.el (tramp-file-name-for-operation):
7589 Add `file-notify-valid-p'.
7590 (tramp-handle-file-notify-valid-p): New defun.
7591 * src/inotify.c (Finotify_valid_p): New defun.
7592 (syms_of_inotify): Declare Sinotify_valid_p.
7593
7594 2015-09-13 Paul Eggert <eggert@cs.ucla.edu>
7595
7596 Port Unicode char detection to FreeBSD+svgalib
7597 Problem reported by Ashish SHUKLA in:
7598 http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00531.html
7599 * configure.ac: Check for struct unipair.unicode instead of for
7600 <linux/kd.h>, since that’s more specific to what the code
7601 actually needs.
7602 * src/terminal.c: Use HAVE_STRUCT_UNIPAIR_UNICODE, not HAVE_LINUX_KD_H.
7603
7604 * src/indent.c (Fvertical_motion): Simplify bugfix (Bug#21468).
7605
7606 2015-09-13 Eli Zaretskii <eliz@gnu.org>
7607
7608 Fix vertical cursor motion across overlay strings with newlines
7609 * src/indent.c (Fvertical_motion): Don't leave point in the middle
7610 of an overlay string with newlines, as that will position the
7611 cursor after the string at whatever column is there. (Bug#21468)
7612
7613 2015-09-12 Michael Albinus <michael.albinus@gmx.de>
7614
7615 Fix tests in file-notify-tests.el
7616 * test/automated/file-notify-tests.el: Remove Tramp declarations.
7617 (file-notify-test00-availability): Print remote command w/o Tramp
7618 internal functions.
7619 (file-notify-test02-events, file-notify-test02-events-remote):
7620 Adapt docstring.
7621 (file-notify-test03-autorevert): Use `format-message' when
7622 inspecting *Messages* buffer.
7623
7624 2015-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7625
7626 Bind inhibit-modification-hooks rather than a/b-c-f
7627 * lisp/wid-edit.el (widget-editable-list-insert-before)
7628 (widget-editable-list-delete-at):
7629 * lisp/progmodes/cperl-mode.el (cperl-find-pods-heres)
7630 (cperl-font-lock-unfontify-region-function):
7631 * lisp/progmodes/antlr-mode.el (save-buffer-state-x):
7632 * lisp/obsolete/longlines.el (longlines-mode):
7633 * lisp/obsolete/fast-lock.el (save-buffer-state):
7634 * lisp/mouse.el (mouse-save-then-kill-delete-region):
7635 * lisp/gnus/message.el (message-hide-headers):
7636 * lisp/eshell/esh-mode.el (eshell-send-input, eshell-output-filter):
7637 * lisp/ibuffer.el (ibuffer-update-title-and-summary)
7638 (ibuffer-redisplay-engine): Bind inhibit-modification-hooks to t rather
7639 than after/before-change-functions to nil.
7640
7641 2015-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7642
7643 (jit-lock-deferred-fontify): Pay attention to skipped redisplays
7644 * lisp/jit-lock.el (jit-lock-deferred-fontify): Make sure we refresh
7645 the buffers, even if the forced redisplay is interrupted.
7646
7647 * lisp/emacs-lisp/eieio-core.el (class-p): Accept class objects
7648
7649 Merge syntax-propertize--done and parse-sexp-propertize-done
7650 * lisp/emacs-lisp/syntax.el (syntax-propertize--done): Remove.
7651 (syntax-propertize): Set syntax-propertize--done even if
7652 syntax-propertize-function is nil. Avoid recursive invocations.
7653 (syntax-propertize-chunks): New var.
7654 (internal--syntax-propertize): Use it. Rename from syntax--jit-propertize.
7655 Simplify.
7656 (parse-sexp-propertize-function): Don't set any more.
7657 * src/syntax.c (SETUP_SYNTAX_TABLE): Call parse_sexp_propertize as needed.
7658 (parse_sexp_propertize): Don't assume charpos is not yet propertized.
7659 Call Qinternal__syntax_propertize instead of
7660 Vparse_sexp_propertize_function. Truncate e_property if needed.
7661 (update_syntax_table_forward): Streamline.
7662 (syms_of_syntax): Define Qinternal__syntax_propertize.
7663 (syntax_propertize__done): Rename from parse_sexp_propertize_done.
7664
7665 2015-09-11 Paul Eggert <eggert@cs.ucla.edu>
7666
7667 Prefer straight quoting in some text files
7668 Mostly this just changes ` to ' in static text. Some exceptions:
7669 * INSTALL.REPO: Use curved quotes, as the diagnostic in question
7670 typically does that now.
7671 * admin/quick-install-emacs (TRY, top level):
7672 Use straight quoting in diagnostics.
7673 * src/README: Fix working-directory confusion.
7674
7675 * CONTRIBUTE: Move send-email here from git-workflow.
7676
7677 2015-09-11 Michael Albinus <michael.albinus@gmx.de>
7678
7679 Improve file notifications in Tramp
7680 * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
7681 Set proper events to watch for.
7682 (tramp-sh-file-gvfs-monitor-dir-process-filter): Report only
7683 watched events.
7684
7685 2015-09-11 Eli Zaretskii <eliz@gnu.org>
7686
7687 Fix NS build with --enable-checking='glyphs'
7688 * src/nsfns.m (unwind_create_frame): Make the preprocessor
7689 conditionals for referencing 'dpyinfo' consistent throughout the
7690 function. (Bug#21426)
7691
7692 2015-09-10 Nicolas Petton <nicolas@petton.fr>
7693
7694 Add seq-find
7695 This function is similar to `seq-some' but returns the found element.
7696 In the cases where nil can be the found element, a sentinel optional
7697 argument can be provided to avoid ambiguities.
7698 * lisp/emacs-lisp/seq.el (seq-find): New function.
7699 * test/automated/seq-tests.el (test-seq-find): Add tests for `seq-find'.
7700 * doc/lispref/sequences.texi (Sequence Functions): Add documentation for
7701 seq-find.
7702
7703 2015-09-10 Tassilo Horn <tsdh@gnu.org>
7704
7705 Document file-notify--test-with-events.
7706 * test/automated/file-notify-tests.el (file-notify--test-with-events):
7707 Add docstring.
7708
7709 2015-09-10 Michael Albinus <michael.albinus@gmx.de>
7710
7711 Report used native library in file-notify-tests.el
7712 * test/automated/file-notify-tests.el
7713 (tramp-get-remote-gvfs-monitor-dir)
7714 (tramp-get-remote-inotifywait): Declare them.
7715 (file-notify-test00-availability): Print used native library.
7716
7717 2015-09-10 Mark Oteiza <mvoteiza@udel.edu>
7718
7719 * lisp/mpc.el (mpc--proc-connect): Use file-name-absolute-p.
7720 (mpc-file-local-copy): Check for absolute path. Check more config
7721 locations.
7722
7723 2015-09-10 Eli Zaretskii <eliz@gnu.org>
7724
7725 Improve documentation of categories
7726 * doc/lispref/syntax.texi (Categories): Clarify the example of
7727 using define-category and modify-category-entry. (Bug#21448)
7728
7729 2015-09-10 Paul Eggert <eggert@cs.ucla.edu>
7730
7731 Revert some stray curved quotes I missed earlier
7732 Problem reported by David Kastrup in:
7733 http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00440.html
7734 * lisp/international/mule-cmds.el (leim-list-header):
7735 Use format-message with an ASCII-only format.
7736
7737 Prefer NUMBERP to spelling it out
7738 * src/editfns.c (styled_format):
7739 * src/frame.h (NUMVAL):
7740 * src/image.c (parse_image_spec):
7741 * src/lisp.h (CHECK_NUMBER_OR_FLOAT)
7742 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER):
7743 * src/process.c (Fsignal_process):
7744 * src/xdisp.c (calc_pixel_width_or_height, on_hot_spot_p):
7745 * src/xfaces.c (check_lface_attrs):
7746 * src/xselect.c (x_fill_property_data, x_send_client_event):
7747 Use NUMBERP rather than INTEGERP || FLOATP.
7748
7749 2015-09-10 Tassilo Horn <tsdh@gnu.org>
7750
7751 Improve file-notify-tests
7752 * test/automated/file-notify-tests.el: Use lexical-binding.
7753 (file-notify--test-cleanup): New function.
7754 (file-notify-test00-availability, file-notify-test01-add-watch)
7755 (file-notify-test02-events, file-notify-test03-autorevert): Use it.
7756 (file-notify--test-with-events): New macro.
7757 (file-notify-test02-events): Use it.
7758
7759 2015-09-10 Paul Eggert <eggert@cs.ucla.edu>
7760
7761 Add patch-sending instructions to git-workflow
7762 From a suggestion by Mitchel Humpherys in:
7763 http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00421.html
7764 * admin/notes/git-workflow (Sending patches): New section.
7765
7766 Port to GIFLIB 5.0.6 and later
7767 Problem reported by Mitchel Humpherys in:
7768 http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00420.html
7769 * src/image.c (HAVE_GIFERRORSTRING) [HAVE_GIF]: New macro.
7770 (GifErrorString, init_gif_functions) [HAVE_GIF && WINDOWSNT]:
7771 (gif_load) [HAVE_GIF]: Use it.
7772
7773 2015-09-10 Glenn Morris <rgm@gnu.org>
7774
7775 * lisp/cedet/ede/auto.el (ede-project-autoload): Doc fix.
7776
7777 2015-09-09 Glenn Morris <rgm@gnu.org>
7778
7779 * test/automated/file-notify-tests.el (file-notify-test02-events):
7780 Fix recent change.
7781
7782 2015-09-09 Paul Eggert <eggert@cs.ucla.edu>
7783
7784 Refix movemail GCC pacification
7785 Problem reported by Ken Brown in:
7786 http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00406.html
7787 * lib-src/movemail.c (main): Fix previous change.
7788
7789 2015-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7790
7791 * lisp/calendar/time-date.el (time-to-seconds, time-less-p):
7792 Mark unused vars with underscore.
7793
7794 * src/syntax.c (SETUP_SYNTAX_TABLE): Move truncation...
7795 (parse_sexp_propertize): ...from here.
7796
7797 * lisp/filenotify.el: Use lexical-binding
7798 (file-notify-add-watch): Avoid add-to-list.
7799
7800 2015-09-09 Tassilo Horn <tsdh@gnu.org>
7801
7802 Start checking event types in file-notify tests
7803 * test/automated/file-notify-tests.el (file-notify--test-events):
7804 New variable.
7805 (file-notify--test-event-handler): Append received event to
7806 file-notify--test-events for later analysis.
7807 (file-notify-test02-events): Assert that the expected notifications have
7808 arrived in the expected order.
7809
7810 2015-09-09 Paul Eggert <eggert@cs.ucla.edu>
7811
7812 Merge from gnulib and texinfo
7813 This incorporates:
7814 2015-08-03 Improve port of stdalign to C++11
7815 * lib/stdalign.in.h: Copy from gnulib.
7816 * doc/misc/texinfo.tex: Copy from texinfo.
7817
7818 2015-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7819
7820 Make syntax.c call syntax-propertize on demand
7821 * lisp/emacs-lisp/syntax.el (syntax--jit-propertize): New function.
7822 (parse-sexp-propertize-function): Use it.
7823 (syntax-propertize): Disable parse-sexp-propertize-function.
7824 * src/syntax.c (parse_sexp_propertize, update_syntax_table_forward):
7825 New functions.
7826 (syms_of_syntax): New vars `parse-sexp-propertize-done' and
7827 `parse-sexp-propertize-function'.
7828 * src/syntax.h (struct gl_state_s): Add `e_property_truncated' field.
7829 (UPDATE_SYNTAX_TABLE_FORWARD): Use update_syntax_table_forward.
7830 (SETUP_BUFFER_SYNTAX_TABLE): Set e_property_truncated.
7831 * lisp/progmodes/elisp-mode.el (elisp-byte-code-syntax-propertize):
7832 Don't assume `point' is set.
7833
7834 2015-09-09 Eli Zaretskii <eliz@gnu.org>
7835
7836 Fix indentation of an @example in ELisp manual
7837 * doc/lispref/syntax.texi (Categories): Untabify the example.
7838 (Bug#21448)
7839
7840 2015-09-09 Paul Eggert <eggert@cs.ucla.edu>
7841
7842 Define internal-char-font even if --without-x
7843 The function is used now even in non-graphical environments.
7844 Problem reported by Glenn Morris in:
7845 http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00401.html
7846 * src/font.c (Finternal_char_font): Move here ...
7847 * src/fontset.c (Finternal_char_font): ... from here.
7848
7849 2015-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7850
7851 * lisp/emacs-lisp/cl-generic.el (cl-generic-generalizers):
7852 Remove warning.
7853
7854 2015-09-09 Eli Zaretskii <eliz@gnu.org>
7855
7856 Fix display of complex local data types in GDB-MI
7857 * lisp/progmodes/gdb-mi.el (gdb-locals-handler-custom): If a
7858 variable has no value, display "<complex data type>" as a
7859 placeholder, instead of a confusing "nil". (Bug#21438)
7860
7861 2015-09-09 Oleh Krehel <ohwoeowho@gmail.com>
7862
7863 Remove redundant redefinition of seq-drop-while from seq.el
7864 * lisp/emacs-lisp/seq.el (seq-drop-while): Define only once.
7865
7866 2015-09-09 Phil Sainty <psainty@orcon.net.nz>
7867
7868 * lisp/emacs-lisp/package.el (package--ensure-init-file):
7869 More robust check for `package-initialize' calls in init file.
7870 This function accepts an optional argument, but calls passing
7871 an argument would not have been detected.
7872
7873 2015-09-09 Paul Eggert <eggert@cs.ucla.edu>
7874
7875 Port movemail to RHEL 6 with --enable-gcc-warnings
7876 * lib-src/movemail.c (main): Declare local only if needed.
7877
7878 Port recent Linux console changes to RHEL 6
7879 * src/terminal.c [HAVE_LINUX_KD_H]: Include <sys/ioctl.h>.
7880
7881 Improvements for curved quotes on Linux consule
7882 This should help Emacs work better out-of-the-box on Linux consoles,
7883 which have only limited support for displaying Unicode characters.
7884 Also, undo the recent change that caused text-quoting-style to
7885 affect quote display on terminals, so that the two features are
7886 independent. See Alan Mackenzie in:
7887 http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00244.html
7888 Finally, add a style parameter to startup--setup-quote-display,
7889 so that this function can also be invoked after startup, with
7890 different styles depending on user preference at the time.
7891 * configure.ac: Check for linux/kd.h header.
7892 * doc/emacs/display.texi (Text Display): Document quote display.
7893 * doc/lispref/display.texi (Active Display Table):
7894 * etc/NEWS:
7895 * lisp/startup.el (startup--setup-quote-display, command-line):
7896 text-quoting-style no longer affects quote display.
7897 * doc/lispref/frames.texi (Terminal Parameters): Fix typo.
7898 * lisp/international/mule-util.el (char-displayable-p):
7899 * lisp/startup.el (startup--setup-quote-display):
7900 On a text terminal supporting glyph codes, use the reported
7901 glyph codes instead of the terminal coding system, as this
7902 is more accurate on the Linux console.
7903 * lisp/startup.el (startup--setup-quote-display):
7904 New optional arg STYLE.
7905 * src/fontset.c (Finternal_char_font):
7906 Report glyph codes for a text terminal, if they are available.
7907 Currently this is supported only for the Linux console.
7908 * src/termhooks.h (struct terminal): New member glyph-code-table.
7909 * src/terminal.c [HAVE_LINUX_KD_H]: Include <errno.h>, <linux/kd.h>.
7910 (calculate_glyph_code_table) [HAVE_LINUX_KD_H]: New function.
7911 (terminal_glyph_code): New function.
7912
7913 2015-09-08 Juri Linkov <juri@linkov.net>
7914
7915 * lisp/info.el (Info-fontify-node): Don't stop at the non-title
7916 underline. (Bug#21433)
7917
7918 2015-09-08 Stefan Monnier <monnier@iro.umontreal.ca>
7919
7920 * lisp/calendar/time-date.el (with-decoded-time-value): Fix debug spec.
7921
7922 2015-09-08 Tassilo Horn <tsdh@gnu.org>
7923
7924 Fix double-reporting of rename events with inotify
7925 * lisp/filenotify.el (file-notify-callback): Fix double-reporting
7926 of rename events with inotify (bug#21435).
7927
7928 2015-09-08 Vasilij Schneidermann <v.schneidermann@gmail.com> (tiny change)
7929
7930 * lisp/play/tetris.el (tetris-move-down): New command (bug#21360).
7931 (tetris-mode-map): Use it.
7932
7933 2015-09-08 Stefan Monnier <monnier@iro.umontreal.ca>
7934
7935 Remove a few simple cases of global redisplay
7936 * src/dispnew.c (redraw_frame): Don't redisplay all frames.
7937 * src/xdisp.c (echo_area_display): Set the frame's `redisplay' bit
7938 rather than returning a "resized_p" boolean.
7939 (redisplay_internal): Adjust call accordingly.
7940 * src/xfaces.c (free_realized_faces): Don't redisplay all frames.
7941 (free_all_realized_faces): Set windows_or_buffers_changed so as to ease
7942 tracking of this undesirable situation.
7943
7944 * src/process.c (status_notify): Avoid global redisplay (bug#11822)
7945 * src/process.c (status_notify): Only set the update_mode_line on the
7946 relevant buffers rather than setting it globally.
7947
7948 2015-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7949
7950 * lisp/electric.el (electric-quote-post-self-insert-function):
7951 Don't use syntax-ppss if comment-use-syntax is nil (e.g. message-mode).
7952 (electric-quote-mode): Activate everywhere in message-mode.
7953
7954 2015-09-07 Paul Eggert <eggert@cs.ucla.edu>
7955
7956 Go back to grave quoting in source-code docstrings etc.
7957 This reverts almost all my recent changes to use curved quotes
7958 in docstrings and/or strings used for error diagnostics.
7959 There are a few exceptions, e.g., Bahá’í proper names.
7960 * admin/unidata/unidata-gen.el (unidata-gen-table):
7961 * lisp/abbrev.el (expand-region-abbrevs):
7962 * lisp/align.el (align-region):
7963 * lisp/allout.el (allout-mode, allout-solicit-alternate-bullet)
7964 (outlineify-sticky):
7965 * lisp/apropos.el (apropos-library):
7966 * lisp/bookmark.el (bookmark-default-annotation-text):
7967 * lisp/button.el (button-category-symbol, button-put)
7968 (make-text-button):
7969 * lisp/calc/calc-aent.el (math-read-if, math-read-factor):
7970 * lisp/calc/calc-embed.el (calc-do-embedded):
7971 * lisp/calc/calc-ext.el (calc-user-function-list):
7972 * lisp/calc/calc-graph.el (calc-graph-show-dumb):
7973 * lisp/calc/calc-help.el (calc-describe-key)
7974 (calc-describe-thing, calc-full-help):
7975 * lisp/calc/calc-lang.el (calc-c-language)
7976 (math-parse-fortran-vector-end, math-parse-tex-sum)
7977 (math-parse-eqn-matrix, math-parse-eqn-prime)
7978 (calc-yacas-language, calc-maxima-language, calc-giac-language)
7979 (math-read-giac-subscr, math-read-math-subscr)
7980 (math-read-big-rec, math-read-big-balance):
7981 * lisp/calc/calc-misc.el (calc-help, report-calc-bug):
7982 * lisp/calc/calc-mode.el (calc-auto-why, calc-save-modes)
7983 (calc-auto-recompute):
7984 * lisp/calc/calc-prog.el (calc-fix-token-name)
7985 (calc-read-parse-table-part, calc-user-define-invocation)
7986 (math-do-arg-check):
7987 * lisp/calc/calc-store.el (calc-edit-variable):
7988 * lisp/calc/calc-units.el (math-build-units-table-buffer):
7989 * lisp/calc/calc-vec.el (math-read-brackets):
7990 * lisp/calc/calc-yank.el (calc-edit-mode):
7991 * lisp/calc/calc.el (calc, calc-do, calc-user-invocation):
7992 * lisp/calendar/appt.el (appt-display-message):
7993 * lisp/calendar/diary-lib.el (diary-check-diary-file)
7994 (diary-mail-entries, diary-from-outlook):
7995 * lisp/calendar/icalendar.el (icalendar-export-region)
7996 (icalendar--convert-float-to-ical)
7997 (icalendar--convert-date-to-ical)
7998 (icalendar--convert-ical-to-diary)
7999 (icalendar--convert-recurring-to-diary)
8000 (icalendar--add-diary-entry):
8001 * lisp/calendar/time-date.el (format-seconds):
8002 * lisp/calendar/timeclock.el (timeclock-mode-line-display)
8003 (timeclock-make-hours-explicit, timeclock-log-data):
8004 * lisp/calendar/todo-mode.el (todo-prefix, todo-delete-category)
8005 (todo-item-mark, todo-check-format)
8006 (todo-insert-item--next-param, todo-edit-item--next-key)
8007 (todo-mode):
8008 * lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
8009 * lisp/cedet/mode-local.el (describe-mode-local-overload)
8010 (mode-local-print-binding, mode-local-describe-bindings-2):
8011 * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
8012 * lisp/cedet/srecode/srt-mode.el (srecode-macro-help):
8013 * lisp/cus-start.el (standard):
8014 * lisp/cus-theme.el (describe-theme-1):
8015 * lisp/custom.el (custom-add-dependencies, custom-check-theme)
8016 (custom--sort-vars-1, load-theme):
8017 * lisp/descr-text.el (describe-text-properties-1, describe-char):
8018 * lisp/dired-x.el (dired-do-run-mail):
8019 * lisp/dired.el (dired-log):
8020 * lisp/emacs-lisp/advice.el (ad-read-advised-function)
8021 (ad-read-advice-class, ad-read-advice-name, ad-enable-advice)
8022 (ad-disable-advice, ad-remove-advice, ad-set-argument)
8023 (ad-set-arguments, ad--defalias-fset, ad-activate)
8024 (ad-deactivate):
8025 * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand)
8026 (byte-compile-unfold-lambda, byte-optimize-form-code-walker)
8027 (byte-optimize-while, byte-optimize-apply):
8028 * lisp/emacs-lisp/byte-run.el (defun, defsubst):
8029 * lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode)
8030 (byte-compile-log-file, byte-compile-format-warn)
8031 (byte-compile-nogroup-warn, byte-compile-arglist-warn)
8032 (byte-compile-cl-warn)
8033 (byte-compile-warn-about-unresolved-functions)
8034 (byte-compile-file, byte-compile--declare-var)
8035 (byte-compile-file-form-defmumble, byte-compile-form)
8036 (byte-compile-normal-call, byte-compile-check-variable)
8037 (byte-compile-variable-ref, byte-compile-variable-set)
8038 (byte-compile-subr-wrong-args, byte-compile-setq-default)
8039 (byte-compile-negation-optimizer)
8040 (byte-compile-condition-case--old)
8041 (byte-compile-condition-case--new, byte-compile-save-excursion)
8042 (byte-compile-defvar, byte-compile-autoload)
8043 (byte-compile-lambda-form)
8044 (byte-compile-make-variable-buffer-local, display-call-tree)
8045 (batch-byte-compile):
8046 * lisp/emacs-lisp/cconv.el (cconv-convert, cconv--analyze-use):
8047 * lisp/emacs-lisp/chart.el (chart-space-usage):
8048 * lisp/emacs-lisp/check-declare.el (check-declare-scan)
8049 (check-declare-warn, check-declare-file)
8050 (check-declare-directory):
8051 * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine)
8052 (checkdoc-message-text-engine):
8053 * lisp/emacs-lisp/cl-extra.el (cl-parse-integer)
8054 (cl--describe-class):
8055 * lisp/emacs-lisp/cl-generic.el (cl-defgeneric)
8056 (cl--generic-describe, cl-generic-generalizers):
8057 * lisp/emacs-lisp/cl-macs.el (cl--parse-loop-clause, cl-tagbody)
8058 (cl-symbol-macrolet):
8059 * lisp/emacs-lisp/cl.el (cl-unload-function, flet):
8060 * lisp/emacs-lisp/copyright.el (copyright)
8061 (copyright-update-directory):
8062 * lisp/emacs-lisp/edebug.el (edebug-read-list):
8063 * lisp/emacs-lisp/eieio-base.el (eieio-persistent-read):
8064 * lisp/emacs-lisp/eieio-core.el (eieio--slot-override)
8065 (eieio-oref):
8066 * lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor):
8067 * lisp/emacs-lisp/eieio-speedbar.el:
8068 (eieio-speedbar-child-make-tag-lines)
8069 (eieio-speedbar-child-description):
8070 * lisp/emacs-lisp/eieio.el (defclass, change-class):
8071 * lisp/emacs-lisp/elint.el (elint-file, elint-get-top-forms)
8072 (elint-init-form, elint-check-defalias-form)
8073 (elint-check-let-form):
8074 * lisp/emacs-lisp/ert.el (ert-get-test, ert-results-mode-menu)
8075 (ert-results-pop-to-backtrace-for-test-at-point)
8076 (ert-results-pop-to-messages-for-test-at-point)
8077 (ert-results-pop-to-should-forms-for-test-at-point)
8078 (ert-describe-test):
8079 * lisp/emacs-lisp/find-func.el (find-function-search-for-symbol)
8080 (find-function-library):
8081 * lisp/emacs-lisp/generator.el (iter-yield):
8082 * lisp/emacs-lisp/gv.el (gv-define-simple-setter):
8083 * lisp/emacs-lisp/lisp-mnt.el (lm-verify):
8084 * lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
8085 * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p):
8086 * lisp/emacs-lisp/nadvice.el (advice--make-docstring)
8087 (advice--make, define-advice):
8088 * lisp/emacs-lisp/package-x.el (package-upload-file):
8089 * lisp/emacs-lisp/package.el (package-version-join)
8090 (package-disabled-p, package-activate-1, package-activate)
8091 (package--download-one-archive)
8092 (package--download-and-read-archives)
8093 (package-compute-transaction, package-install-from-archive)
8094 (package-install, package-install-selected-packages)
8095 (package-delete, package-autoremove, describe-package-1)
8096 (package-install-button-action, package-delete-button-action)
8097 (package-menu-hide-package, package-menu--list-to-prompt)
8098 (package-menu--perform-transaction)
8099 (package-menu--find-and-notify-upgrades):
8100 * lisp/emacs-lisp/pcase.el (pcase-exhaustive, pcase--u1):
8101 * lisp/emacs-lisp/re-builder.el (reb-enter-subexp-mode):
8102 * lisp/emacs-lisp/ring.el (ring-previous, ring-next):
8103 * lisp/emacs-lisp/rx.el (rx-check, rx-anything)
8104 (rx-check-any-string, rx-check-any, rx-check-not, rx-=)
8105 (rx-repeat, rx-check-backref, rx-syntax, rx-check-category)
8106 (rx-form):
8107 * lisp/emacs-lisp/smie.el (smie-config-save):
8108 * lisp/emacs-lisp/subr-x.el (internal--check-binding):
8109 * lisp/emacs-lisp/tabulated-list.el (tabulated-list-put-tag):
8110 * lisp/emacs-lisp/testcover.el (testcover-1value):
8111 * lisp/emacs-lisp/timer.el (timer-event-handler):
8112 * lisp/emulation/viper-cmd.el (viper-toggle-parse-sexp-ignore-comments)
8113 (viper-toggle-search-style, viper-kill-buffer)
8114 (viper-brac-function):
8115 * lisp/emulation/viper-macs.el (viper-record-kbd-macro):
8116 * lisp/env.el (setenv):
8117 * lisp/erc/erc-button.el (erc-nick-popup):
8118 * lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login, english):
8119 * lisp/eshell/em-dirs.el (eshell/cd):
8120 * lisp/eshell/em-glob.el (eshell-glob-regexp)
8121 (eshell-glob-entries):
8122 * lisp/eshell/em-pred.el (eshell-parse-modifiers):
8123 * lisp/eshell/esh-opt.el (eshell-show-usage):
8124 * lisp/facemenu.el (facemenu-add-new-face)
8125 (facemenu-add-new-color):
8126 * lisp/faces.el (read-face-name, read-face-font, describe-face)
8127 (x-resolve-font-name):
8128 * lisp/files-x.el (modify-file-local-variable):
8129 * lisp/files.el (locate-user-emacs-file, find-alternate-file)
8130 (set-auto-mode, hack-one-local-variable--obsolete)
8131 (dir-locals-set-directory-class, write-file, basic-save-buffer)
8132 (delete-directory, copy-directory, recover-session)
8133 (recover-session-finish, insert-directory)
8134 (file-modes-char-to-who, file-modes-symbolic-to-number)
8135 (move-file-to-trash):
8136 * lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer):
8137 * lisp/find-cmd.el (find-generic, find-to-string):
8138 * lisp/finder.el (finder-commentary):
8139 * lisp/font-lock.el (font-lock-fontify-buffer):
8140 * lisp/format.el (format-write-file, format-find-file)
8141 (format-insert-file):
8142 * lisp/frame.el (get-device-terminal, select-frame-by-name):
8143 * lisp/fringe.el (fringe--check-style):
8144 * lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
8145 * lisp/help-fns.el (help-fns--key-bindings)
8146 (help-fns--compiler-macro, help-fns--parent-mode)
8147 (help-fns--obsolete, help-fns--interactive-only)
8148 (describe-function-1, describe-variable):
8149 * lisp/help.el (describe-mode)
8150 (describe-minor-mode-from-indicator):
8151 * lisp/image.el (image-type):
8152 * lisp/international/ccl.el (ccl-dump):
8153 * lisp/international/fontset.el (x-must-resolve-font-name):
8154 * lisp/international/mule-cmds.el (prefer-coding-system)
8155 (select-safe-coding-system-interactively)
8156 (select-safe-coding-system, activate-input-method)
8157 (toggle-input-method, describe-current-input-method)
8158 (describe-language-environment):
8159 * lisp/international/mule-conf.el (code-offset):
8160 * lisp/international/mule-diag.el (describe-character-set)
8161 (list-input-methods-1):
8162 * lisp/mail/feedmail.el (feedmail-run-the-queue):
8163 * lisp/mouse.el (minor-mode-menu-from-indicator):
8164 * lisp/mpc.el (mpc-playlist-rename):
8165 * lisp/msb.el (msb--choose-menu):
8166 * lisp/net/ange-ftp.el (ange-ftp-shell-command):
8167 * lisp/net/imap.el (imap-interactive-login):
8168 * lisp/net/mairix.el (mairix-widget-create-query):
8169 * lisp/net/newst-backend.el (newsticker--sentinel-work):
8170 * lisp/net/newst-treeview.el (newsticker--treeview-load):
8171 * lisp/net/rlogin.el (rlogin):
8172 * lisp/obsolete/iswitchb.el (iswitchb-possible-new-buffer):
8173 * lisp/obsolete/otodo-mode.el (todo-more-important-p):
8174 * lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
8175 * lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
8176 * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
8177 * lisp/org/ob-core.el (org-babel-goto-named-src-block)
8178 (org-babel-goto-named-result):
8179 * lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
8180 * lisp/org/ob-ref.el (org-babel-ref-resolve):
8181 * lisp/org/org-agenda.el (org-agenda-prepare):
8182 * lisp/org/org-clock.el (org-clock-notify-once-if-expired)
8183 (org-clock-resolve):
8184 * lisp/org/org-ctags.el (org-ctags-ask-rebuild-tags-file-then-find-tag):
8185 * lisp/org/org-feed.el (org-feed-parse-atom-entry):
8186 * lisp/org/org-habit.el (org-habit-parse-todo):
8187 * lisp/org/org-mouse.el (org-mouse-popup-global-menu)
8188 (org-mouse-context-menu):
8189 * lisp/org/org-table.el (org-table-edit-formulas):
8190 * lisp/org/ox.el (org-export-async-start):
8191 * lisp/proced.el (proced-log):
8192 * lisp/progmodes/ada-mode.el (ada-get-indent-case)
8193 (ada-check-matching-start, ada-goto-matching-start):
8194 * lisp/progmodes/ada-prj.el (ada-prj-display-page):
8195 * lisp/progmodes/ada-xref.el (ada-find-executable):
8196 * lisp/progmodes/ebrowse.el (ebrowse-tags-apropos):
8197 * lisp/progmodes/etags.el (etags-tags-apropos-additional):
8198 * lisp/progmodes/flymake.el (flymake-parse-err-lines)
8199 (flymake-start-syntax-check-process):
8200 * lisp/progmodes/python.el (python-shell-get-process-or-error)
8201 (python-define-auxiliary-skeleton):
8202 * lisp/progmodes/sql.el (sql-comint):
8203 * lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
8204 * lisp/progmodes/vhdl-mode.el (vhdl-widget-directory-validate):
8205 * lisp/recentf.el (recentf-open-files):
8206 * lisp/replace.el (query-replace-read-from)
8207 (occur-after-change-function, occur-1):
8208 * lisp/scroll-bar.el (scroll-bar-columns):
8209 * lisp/server.el (server-get-auth-key):
8210 * lisp/simple.el (execute-extended-command)
8211 (undo-outer-limit-truncate, list-processes--refresh)
8212 (compose-mail, set-variable, choose-completion-string)
8213 (define-alternatives):
8214 * lisp/startup.el (site-run-file, tty-handle-args, command-line)
8215 (command-line-1):
8216 * lisp/subr.el (noreturn, define-error, add-to-list)
8217 (read-char-choice, version-to-list):
8218 * lisp/term/common-win.el (x-handle-xrm-switch)
8219 (x-handle-name-switch, x-handle-args):
8220 * lisp/term/x-win.el (x-handle-parent-id, x-handle-smid):
8221 * lisp/textmodes/reftex-ref.el (reftex-label):
8222 * lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
8223 * lisp/textmodes/two-column.el (2C-split):
8224 * lisp/tutorial.el (tutorial--describe-nonstandard-key)
8225 (tutorial--find-changed-keys):
8226 * lisp/type-break.el (type-break-noninteractive-query):
8227 * lisp/wdired.el (wdired-do-renames, wdired-do-symlink-changes)
8228 (wdired-do-perm-changes):
8229 * lisp/whitespace.el (whitespace-report-region):
8230 Prefer grave quoting in source-code strings used to generate help
8231 and diagnostics.
8232 * lisp/faces.el (face-documentation):
8233 No need to convert quotes, since the result is a docstring.
8234 * lisp/info.el (Info-virtual-index-find-node)
8235 (Info-virtual-index, info-apropos):
8236 Simplify by generating only curved quotes, since info files are
8237 typically that ways nowadays anyway.
8238 * lisp/international/mule-diag.el (list-input-methods):
8239 Don’t assume text quoting style is curved.
8240 * lisp/org/org-bibtex.el (org-bibtex-fields):
8241 Revert my recent changes, going back to the old quoting style.
8242
8243 2015-09-07 Artur Malabarba <bruce.connor.am@gmail.com>
8244
8245 * lisp/emacs-lisp/package.el: Reduce autoloading before compiling.
8246 (package--autoloads-file-name)
8247 (package--activate-autoloads-and-load-path): New function.
8248 (package-activate-1): Delegate autoloading and load-path
8249 configuration to `package--activate-autoloads-and-load-path'.
8250 (package--compile): Before compilation, call
8251 `package--activate-autoloads-and-load-path' instead of
8252 `package-activate-1'.
8253
8254 2015-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8255
8256 * src/keyboard.c (read_key_sequence): Complete last fix (bug#21403).
8257
8258 2015-09-07 Eli Zaretskii <eliz@gnu.org>
8259
8260 Fix deletion of symlinks to directories on MS-Windows
8261 * src/w32.c (sys_unlink): If 'unlink' fails, and the argument is a
8262 symlink to a directory, try again with 'rmdir'.
8263 (is_symlink): If the argument is a symlink to a directory, set a
8264 bit in the return value to indicate that fact.
8265
8266 2015-09-07 Artur Malabarba <bruce.connor.am@gmail.com>
8267
8268 * lisp/emacs-lisp/package.el (package-initialize): Set enable-at-startup
8269 When `package-initialize' is called as part of loading the init file,
8270 the user probably doesn't want it to be called again afterwards.
8271 In this situation, `package-initialize' now sets
8272 `package-enable-at-startup' to nil to prevent that. The user can have
8273 the old behavior by setting this variable to t after the call to
8274 `package-initialize'. (Bug#21423)
8275 * doc/emacs/package.texi (Package Installation): Document it.
8276 * doc/lispref/package.texi (Packaging Basics): Document it.
8277 * etc/NEWS: Document it.
8278
8279 2015-09-06 Thomas Fitzsimmons <fitzsim@fitzsim.org>
8280
8281 Bump version of ntlm.el to 2.00
8282 * lisp/net/ntlm.el: Bump version to 2.00. New maintainer.
8283 Add comm keyword.
8284
8285 2015-09-06 Adam Sjøgren <asjo@koldfront.dk>
8286
8287 * doc/misc/gnus.texi (Mail Source Specifiers):
8288 Allow :mailbox to be a list.
8289
8290 2015-09-06 Dmitry Gutov <dgutov@yandex.ru>
8291
8292 * lisp/progmodes/etags.el (etags-tags-completion-table):
8293 Allow even one non-regular character before the implicit tag name.
8294 Reported at http://emacs.stackexchange.com/questions/15269/.
8295
8296 2015-09-06 Thomas Fitzsimmons <fitzsim@fitzsim.org>
8297
8298 Add support for NTLMv2 authentication
8299 * lisp/net/ntlm.el (ntlm): New customization group.
8300 (ntlm-compatibility-level): New defcustom.
8301 (ntlm-compute-timestamp): New function.
8302 (ntlm-generate-nonce): Likewise.
8303 (ntlm-build-auth-response): Add support for NTLMv2 authentication.
8304
8305 2015-09-06 Artur Malabarba <bruce.connor.am@gmail.com>
8306
8307 * lisp/emacs-lisp/package.el: Rename custom faces.
8308 All of the recently introduced faces, like `package-name-face', have
8309 been renamed to no end in `-face' to comply with the convention
8310 described in (info "(elisp) Defining Faces").
8311 (package-name, package-description)
8312 (package-status-built-in, package-status-external)
8313 (package-status-available, package-status-new)
8314 (package-status-held, package-status-disabled)
8315 (package-status-installed, package-status-dependency)
8316 (package-status-unsigned, package-status-incompat)
8317 (package-status-avail-obso): New faces.
8318 (package-menu--print-info-simple): Use them.
8319
8320 2015-09-06 Adam Sjøgren <asjo@koldfront.dk>
8321
8322 mail-source.el: Make the imap mail-source's :mailbox handle a list
8323 * lisp/gnus/mail-source.el (mail-source-fetch-imap):
8324 Allow :mailbox to be a list.
8325
8326 2015-09-06 Eric Abrahamsen <eric@ericabrahamsen.net>
8327
8328 nnimap.el: Handle nil arg to nnimap-request-group
8329 * lisp/gnus/nnimap.el (nnimap-request-group): Handle nil "info" arg.
8330 This arg isn't always passed in, check it's not nil before making it
8331 into a list. The active arg will also be nil if the group is new,
8332 check for that.
8333
8334 2015-09-06 Michael Albinus <michael.albinus@gmx.de>
8335
8336 File notifications: Support renaming over directory boundaries
8337 * lisp/filenotify.el (file-notify-handle-event):
8338 (file-notify--pending-event): Adapt docstring.
8339 (file-notify--descriptor, file-notify-callback): Reimplement in
8340 order to support renaming over directory boundaries.
8341 (file-notify-add-watch): Adapt `file-notify--descriptor' call.
8342 * doc/lispref/os.texi (File Notifications): Remove limitation of
8343 file renaming to the same directory.
8344
8345 2015-09-05 Paul Eggert <eggert@cs.ucla.edu>
8346
8347 Spelling fix (Bug#21420)
8348
8349 2015-09-05 Nicolas Petton <nicolas@petton.fr>
8350
8351 Improve the semantic of map-some
8352 Update map-some to return the returned by the predicate, similar to
8353 seq-some.
8354 * lisp/emacs-lisp/map.el (map-some): Update the function to return the
8355 return value of the predicate.
8356 * test/automated/map-tests.el (test-map-some): Update the test to check
8357 for non-nil values only.
8358
8359 Rename map-contains-key-p and map-some-p
8360 Remove the "-p" suffix from both function names.
8361 * lisp/emacs-lisp/map.el (map-contains-key, map-some):
8362 Rename the functions.
8363 * test/automated/map-tests.el (test-map-contains-key, test-map-some):
8364 Update both test functions.
8365
8366 Improve the semantic of seq-some
8367 Update seq-some to return non-nil if the predicate returns non-nil for
8368 any element of the seq, in which case the returned value is the one
8369 returned by the predicate.
8370 * lisp/emacs-lisp/seq.el (seq-some): Update the function and its
8371 docstring.
8372 * test/automated/seq-tests.el (test-seq-some): Add a regression test.
8373 * doc/lispref/sequences.texi (Sequence Functions): Update the
8374 documentation for seq-some.
8375
8376 Rename seq-some-p to seq-some and seq-contains-p to seq-contains
8377 * lisp/emacs-lisp/seq.el (seq-some, seq-contains): Rename the functions
8378 without the "-p" prefix.
8379 * test/automated/seq-tests.el (test-seq-some, test-seq-contains): Update
8380 the tests accordingly.
8381 * doc/lispref/sequences.texi (Sequence Functions): Update the
8382 documentation for seq.el.
8383
8384 2015-09-05 Paul Eggert <eggert@Penguin.CS.UCLA.EDU>
8385
8386 text-quoting-style for usage of fn names with ‘’
8387 * lisp/help.el (help--docstring-quote): Don’t assume
8388 text-quoting-style is ‘curve’ when generating usage strings for
8389 functions whose names contain curved quotes.
8390
8391 2015-09-05 Paul Eggert <eggert@cs.ucla.edu>
8392
8393 Fix fix for describe-function keybinding confusion
8394 This fixes a bug introduced by the previous patch.
8395 * lisp/help-fns.el (help-fns--signature):
8396 Last arg of help-fns--signature is now a buffer, or nil if a
8397 raw signature is wanted. All callers changed.
8398 (describe-function-1): Use this to do the right thing with signatures.
8399
8400 2015-09-05 Johan Bockgård <bojohan@gnu.org>
8401
8402 * doc/lispref/frames.texi (Mouse Tracking): Fix typo.
8403
8404 Use PAT rather than UPAT in pcase macros
8405 * lisp/emacs-lisp/cl-macs.el (cl-struct) <pcase-defmacro>:
8406 * lisp/emacs-lisp/eieio.el (eieio) <pcase-defmacro>: Use PAT rather
8407 than UPAT.
8408
8409 2015-09-05 Paul Eggert <eggert@cs.ucla.edu>
8410
8411 Fix describe-function keybinding confusion
8412 * lisp/help-fns.el (describe-function-1): Compute signature
8413 in the original buffer, not in standard-output, so that
8414 substitute-command-keys uses the proper keybindings.
8415 This fixes Bug#21412, introduced in commit
8416 2015-06-11T10:23:46-0700!eggert@cs.ucla.edu.
8417
8418 2015-09-05 Xue Fuqiao <xfq.free@gmail.com>
8419
8420 * doc/emacs/programs.texi (Program Modes): Remove an index entry.
8421
8422 2015-09-05 Robert Pluim <rpluim@gmail.com> (tiny change)
8423
8424 Avoid read error messages from 'inotify'
8425 * src/process.c (wait_reading_process_output): Add a
8426 'tls_available' set and manipulate it instead of 'Available' when
8427 checking TLS inputs. Assign the value to 'Available' only if we
8428 find any TLS data waiting to be read. This avoids error messages
8429 from 'inotify' that tries to read data it shouldn't. (Bug#21337)
8430
8431 2015-09-05 Eli Zaretskii <eliz@gnu.org>
8432
8433 Avoid errors in thing-at-point with 2nd argument non-nil
8434 * lisp/thingatpt.el (thing-at-point): Only call 'length' on
8435 sequences. (Bug#21391)
8436
8437 2015-09-05 Philip <pipcet@gmail.com> (tiny change)
8438
8439 Fix segfaults due to using a stale face ID
8440 * src/xdisp.c (forget_escape_and_glyphless_faces): New function.
8441 (display_echo_area_1, redisplay_internal): Call it to avoid
8442 reusing stale face IDs for 'escape-glyph' and 'glyphless-char'
8443 faces, which could case a segfault if the frame's face cache was
8444 freed since the last redisplay. (Bug#21394)
8445 * src/xfaces.c (free_realized_faces):
8446 Call forget_escape_and_glyphless_faces.
8447 * src/dispextern.h (forget_escape_and_glyphless_faces): Add prototype.
8448
8449 2015-09-04 Paul Eggert <eggert@cs.ucla.edu>
8450
8451 Fix minor problems with " in manual
8452
8453 2015-09-04 Michael Albinus <michael.albinus@gmx.de>
8454
8455 * doc/misc/tramp.texi (Frequently Asked Questions): New item for ad-hoc
8456 multi-hop files.
8457
8458 2015-09-04 Paul Eggert <eggert@cs.ucla.edu>
8459
8460 Support automated ‘make check’ in non-C locale
8461 This lets the builder optionally test Emacs behavior in other locales.
8462 The C locale is still the default for tests.
8463 * test/automated/Makefile.in (TEST_LOCALE): New macro.
8464 (emacs): Use it.
8465 * test/automated/flymake-tests.el (flymake-tests--current-face):
8466 Use C locale for subprocesses so that tests behave as expected.
8467 * test/automated/python-tests.el:
8468 (python-shell-prompt-validate-regexps-1)
8469 (python-shell-prompt-validate-regexps-2)
8470 (python-shell-prompt-validate-regexps-3)
8471 (python-shell-prompt-validate-regexps-4)
8472 (python-shell-prompt-validate-regexps-5)
8473 (python-shell-prompt-validate-regexps-6)
8474 (python-shell-prompt-set-calculated-regexps-1):
8475 Adjust expected output to match locale.
8476 * test/automated/tildify-tests.el (tildify-test--test)
8477 (tildify-space-test--test, tildify-space-undo-test--test):
8478 This test assumes UTF-8 encoding.
8479
8480 2015-09-03 Paul Eggert <eggert@cs.ucla.edu>
8481
8482 Fix some more docstring etc. quoting problems
8483 Mostly these fixes prevent the transliteration of apostrophes
8484 that should stay apostrophes. Also, prefer curved quotes in
8485 Bahá’í proper names, as that’s the preferred Bahá’í style and
8486 these names are chock-full of non-ASCII characters anyway.
8487 * lisp/emacs-lisp/eieio-core.el (eieio-defclass-autoload)
8488 (eieio-defclass-internal):
8489 * lisp/emacs-lisp/eieio.el (defclass):
8490 * lisp/hi-lock.el (hi-lock-mode):
8491 Don’t transliterate Lisp apostrophes when generating a
8492 doc string or diagnostic.
8493 * lisp/international/mule-diag.el (list-coding-systems-1):
8494 * lisp/international/ogonek.el (ogonek-jak, ogonek-how):
8495 * lisp/mail/sendmail.el (sendmail-query-user-about-smtp):
8496 * lisp/vc/ediff-mult.el (ediff-redraw-registry-buffer):
8497 * lisp/vc/ediff-ptch.el (ediff-fixup-patch-map):
8498 Substitute quotes before putting them in the help buffer.
8499
8500 2015-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8501
8502 Re-add the notion of echo_prompt lost in the translation
8503 * src/keyboard.h (struct kboard): Replace echo_after_prompt with new
8504 echo_prompt which contains the actual string. Update all uses.
8505 * src/keyboard.c (kset_echo_prompt): New function.
8506 (echo_update): Add echo_prompt at the very beginning.
8507 (read_char): Remove workaround for bug#19875, not needed any more.
8508 (read_key_sequence): Set echo_prompt rather than echo_string
8509 (bug#21403).
8510 (mark_kboards): Mark echo_prompt.
8511
8512 Fix disassembly of non-compiled lexical functions (bug#21377)
8513 * lisp/emacs-lisp/bytecomp.el (byte-compile): Handle `closure' arg.
8514 * lisp/emacs-lisp/disass.el: Use lexical-binding.
8515 (disassemble): Recognize `closure's as well.
8516 (disassemble-internal): Use indirect-function and
8517 help-function-arglist, and accept `closure's.
8518 (disassemble-internal): Use interactive-form.
8519 (disassemble-1): Use functionp.
8520
8521 * lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p):
8522 Don't compose inside verbatim blocks!
8523
8524 2015-09-03 Mark Oteiza <mvoteiza@udel.edu>
8525
8526 * lisp/thingatpt.el (thing-at-point-uri-schemes): Add "man:"
8527 (bug#19441).
8528
8529 * lisp/mpc.el (mpc--proc-connect): Handle unix sockets (bug#19394).
8530
8531 2015-09-03 Dmitry Gutov <dgutov@yandex.ru>
8532
8533 vc-git-mode-line-string: Explicitly re-apply the face
8534 * lisp/vc/vc-git.el (vc-git-mode-line-string): Explicitly re-apply
8535 the face (bug#21404).
8536
8537 2015-09-02 Paul Eggert <eggert@cs.ucla.edu>
8538
8539 Treat initial-scratch-message as a doc string
8540 * doc/emacs/building.texi (Lisp Interaction):
8541 * doc/lispref/os.texi (Startup Summary):
8542 * etc/NEWS: Document this.
8543 * lisp/startup.el (initial-scratch-message):
8544 Look up find-file’s key rather than hardcoding it.
8545 (command-line-1): Substitute the doc string.
8546 This also substitutes the quotes, which will help test display
8547 quoting at startup.
8548
8549 Fix describe-char bug with glyphs on terminals
8550 * lisp/descr-text.el (describe-char): Terminals can have glyphs in
8551 buffers too, so don’t treat them differently from graphic displays.
8552 Without this fix, describe-char would throw an error on a terminal
8553 if given a glyph with a non-default face.
8554
8555 Follow text-quoting-style in display table init
8556 This attempts to fix a problem reported by Alan Mackenzie in:
8557 http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00112.html
8558 * doc/lispref/display.texi (Active Display Table):
8559 Mention how text-quoting-style affects it.
8560 * doc/lispref/help.texi (Keys in Documentation):
8561 Say how to set text-quoting-style in ~/.emacs.
8562 * etc/NEWS: Document the change.
8563 * lisp/startup.el (startup--setup-quote-display):
8564 Follow user preference if text-quoting-style is set.
8565 (command-line): Setup quote display again if user expresses
8566 a preference in .emacs.
8567
8568 2015-09-02 K. Handa <handa@gnu.org>
8569
8570 Fix typo
8571 * src/ftfont.c (ftfont_drive_otf): otf_positioning_type_components_mask
8572 -> OTF_positioning_type_components_mask.
8573
8574 Fix previous change
8575 * src/ftfont.c (ftfont_drive_otf): Remember some bits of
8576 OTF_Glyph->positioning_type in MFLTGlyphFT->libotf_positioning_type.
8577
8578 2015-09-01 David Caldwell <david@porkrind.org> (tiny change)
8579
8580 * lisp/vc/vc-hooks.el (vc-refresh-state): New command.
8581 Rename from vc-find-file-hook and make interactive.
8582 (vc-find-file-hook): Redefine as obsolete alias.
8583
8584 2015-09-01 Paul Eggert <eggert@cs.ucla.edu>
8585
8586 Escape ` and ' in doc
8587 Escape apostrophes and grave accents in docstrings if they are
8588 are supposed to stand for themselves and are not quotes. Remove
8589 apostrophes from docstring examples like ‘'(calendar-nth-named-day
8590 -1 0 10 year)’ that confuse source code with data. Do some other
8591 minor docstring fixups as well, e.g., insert a missing close quote.
8592
8593 2015-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
8594
8595 Generalize the prefix-command machinery of C-u
8596 * lisp/simple.el (prefix-command-echo-keystrokes-functions)
8597 (prefix-command-preserve-state-hook): New hooks.
8598 (internal-echo-keystrokes-prefix): New function.
8599 (prefix-command--needs-update, prefix-command--last-echo): New vars.
8600 (prefix-command-update, prefix-command-preserve): New functions.
8601 (reset-this-command-lengths): New compatibility definition.
8602 (universal-argument--mode): Call prefix-command-update.
8603 (universal-argument, universal-argument-more, negative-argument)
8604 (digit-argument): Call prefix-command-preserve-state.
8605 * src/keyboard.c: Call internal-echo-keystrokes-prefix to build
8606 the "prefix argument" to echo.
8607 (this_command_key_count_reset, before_command_key_count)
8608 (before_command_echo_length): Delete variables.
8609 (echo_add_key): Always add a space.
8610 (echo_char): Remove.
8611 (echo_dash): Don't give up when this_command_key_count is 0, since that
8612 is now the case after a prefix command.
8613 (echo_update): New function, extracted from echo_now.
8614 (echo_now): Use it.
8615 (add_command_key, read_char, record_menu_key): Remove old disabled code.
8616 (command_loop_1): Don't refrain from pushing an undo boundary when
8617 prefix-arg is set. Remove other prefix-arg special case, now handled
8618 directly in the prefix commands instead. But call echo_now if there's
8619 a prefix state to echo.
8620 (read_char, record_menu_key): Use echo_update instead of echo_char.
8621 (read_key_sequence): Use echo_now rather than echo_dash/echo_char.
8622 (Freset_this_command_lengths): Delete function.
8623 (syms_of_keyboard): Define Qinternal_echo_keystrokes_prefix.
8624 (syms_of_keyboard): Don't defsubr Sreset_this_command_lengths.
8625 * lisp/simple.el: Use those new hooks for C-u.
8626 (universal-argument--description): New function.
8627 (prefix-command-echo-keystrokes-functions): Use it.
8628 (universal-argument--preserve): New function.
8629 (prefix-command-preserve-state-hook): Use it.
8630 (command-execute): Call prefix-command-update if needed.
8631 * lisp/kmacro.el (kmacro-step-edit-prefix-commands)
8632 (kmacro-step-edit-prefix-index): Delete variables.
8633 (kmacro-step-edit-query, kmacro-step-edit-insert): Remove ad-hoc
8634 support for prefix arg commands.
8635 (kmacro-step-edit-macro): Don't bind kmacro-step-edit-prefix-index.
8636 * lisp/emulation/cua-base.el (cua--prefix-override-replay)
8637 (cua--shift-control-prefix): Use prefix-command-preserve-state.
8638 Remove now unused arg `arg'.
8639 (cua--prefix-override-handler, cua--prefix-repeat-handler)
8640 (cua--shift-control-c-prefix, cua--shift-control-x-prefix):
8641 Update accordingly.
8642 (cua--prefix-override-timeout): Don't call reset-this-command-lengths
8643 any more.
8644 (cua--keep-active, cua-exchange-point-and-mark): Don't set mark-active
8645 if the mark is not set.
8646
8647 2015-09-01 Paul Eggert <eggert@cs.ucla.edu>
8648
8649 Rework quoting in Emacs Lisp Introduction
8650 * doc/lispintro/emacs-lisp-intro.texi (Sample let Expression)
8651 (if in more detail, type-of-animal in detail, else): Rework the
8652 early example to use " rather than ' so that we don’t burden
8653 complete novices with the low-priority detail of text quoting style.
8654 (Complete zap-to-char, kill-region, Complete copy-region-as-kill)
8655 (kill-new function, kill-ring-yank-pointer)
8656 (Complete forward-sentence, Loading Files)
8657 (Code for current-kill, Code for current-kill, yank):
8658 Resurrect the Emacs 22 versions of the code, which uses grave
8659 quoting style in doc strings.
8660 (Complete zap-to-char): Mention how quoting works in doc strings.
8661
8662 Setup quote display only if interactive
8663 * lisp/startup.el (command-line):
8664 Skip call to startup--setup-quote-display if noninteractive.
8665 Without this change, python-shell-prompt-validate-regexps-1
8666 fails in test/automated/python-tests.el when run in an
8667 en_US.utf8 locale on Fedora.
8668
8669 2015-09-01 Katsumi Yamaoka <yamaoka@jpl.org>
8670
8671 Use defalias at the top level
8672 * lisp/gnus/gnus-util.el (gnus-format-message):
8673 * lisp/net/tls.el (tls-format-message): Use defalias at the top level
8674 so as to make eval-and-compile unnecessary. Thanks to Stefan Monnier.
8675
8676 2015-09-01 Paul Eggert <eggert@cs.ucla.edu>
8677
8678 terminal-init-w32console mimicks command-line
8679 Problem reported by Eli Zaretskii.
8680 * lisp/startup.el (startup--setup-quote-display):
8681 New function, refactored from a part of ‘command-line’.
8682 (command-line): Use it.
8683 * lisp/term/w32console.el (terminal-init-w32console):
8684 Use it, so that this function stays consistent with ‘command-line’.
8685
8686 Display replacement quotes with shadow glyphs
8687 * lisp/startup.el (command-line): When displaying ASCII
8688 replacements for curved quotes, use a shadow glyph instead of a
8689 regular one, to avoid ambiguity.
8690
8691 2015-09-01 Michael Albinus <michael.albinus@gmx.de>
8692
8693 * lisp/net/tramp-sh.el (tramp-methods) <sudo>: Mask "Password:".
8694
8695 2015-09-01 Paul Eggert <eggert@cs.ucla.edu>
8696
8697 Docstring fixes re quotes in C code
8698 Fix some docstring quoting problems, mostly by escaping apostrophe.
8699
8700 2015-09-01 Michael Albinus <michael.albinus@gmx.de>
8701
8702 Some Tramp password fixes
8703 * lisp/net/tramp.el (tramp-clear-passwd): Clear also the passwords
8704 of the hops.
8705 * lisp/net/tramp-sh.el (tramp-methods) <sudo>: Move "-p" "Password:"
8706 at the beginning of the command. Otherwise, it could be
8707 interpreted as password prompt if the remote host echoes the
8708 command.
8709 (tramp-remote-coding-commands): Add "openssl enc -base64".
8710
8711 2015-09-01 Dmitry Gutov <dgutov@yandex.ru>
8712
8713 Make vc-git-working-revision always return the commit hash
8714 * lisp/vc/vc-git.el (vc-git-working-revision):
8715 Return the commit hash (bug#21383).
8716 (vc-git--symbolic-ref): New function, extracted from above.
8717 (vc-git-mode-line-string): Use it.
8718
8719 2015-09-01 K. Handa <handa@gnu.org>
8720
8721 Use the new type MFLTGlyphFT for MFLTGlyphString.glyphs
8722 * src/ftfont.c (MFLTGlyphFT): New type.
8723 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_drive_otf)
8724 (ftfont_shape_by_flt): Make MFLTGlyphFT the actual type of
8725 elements in the array MFLTGlyphString.glyphs.
8726
8727 2015-09-01 Stephen Leake <stephen_leake@stephe-leake.org>
8728
8729 Improve comments in elisp-mode.el, elisp-mode-tests.el
8730 * lisp/progmodes/elisp-mode.el: Clean up FIXMEs, comments.
8731
8732 Delete Emacs 25 test in mode-local.el
8733 * lisp/cedet/mode-local.el (describe-mode-local-overload):
8734 Fix missed an edit in previous commit.
8735
8736 Show all known mode-local overrides in *Help*
8737 * lisp/cedet/mode-local.el (describe-mode-local-overload):
8738 Assume Emacs 25. Add all known mode-local overrides.
8739
8740 2015-09-01 Katsumi Yamaoka <yamaoka@jpl.org>
8741
8742 * lisp/gnus/gnus-sum.el (gnus-summary-search-article):
8743 Ensure that the article where the search word is found is displayed
8744 and pointed to in the summary buffer.
8745
8746 2015-08-31 Zachary Kanfer <zkanfer@gmail.com> (tiny change)
8747
8748 * lisp/newcomment.el (comment-dwim): Use `use-region-p'.
8749 When the region is active, but is empty (length 0), act as though
8750 the region was not active; that is, put a comment at the end of
8751 the line. (Bug#21119)
8752
8753 2015-08-31 Katsumi Yamaoka <yamaoka@jpl.org>
8754
8755 Port tls.el to older Emacs
8756 * lisp/net/tls.el (tls-format-message):
8757 Alias to format-message, or format if not available.
8758 (open-tls-stream): Use it.
8759
8760 2015-08-31 Rüdiger Sonderfeld <ruediger@c-plusplus.net>
8761
8762 hideif.el: Recognize .h++ as C++ header
8763 * lisp/progmodes/hideif.el (hide-ifdef-header-regexp): Add .h++.
8764
8765 isearch: Document character folding mode
8766 * lisp/isearch.el (isearch-forward):
8767 Mention `isearch-toggle-character-fold' in doc string.
8768
8769 2015-08-31 Paul Eggert <eggert@cs.ucla.edu>
8770
8771 Quoting fixes in ERC and Eshell
8772 * lisp/erc/erc-autoaway.el (erc-autoaway-set-away):
8773 * lisp/erc/erc-backend.el (define-erc-response-handler):
8774 * lisp/erc/erc-fill.el (erc-fill-static-center):
8775 * lisp/eshell/em-dirs.el (eshell-save-some-last-dir):
8776 * lisp/eshell/em-glob.el (eshell-glob-entries):
8777 * lisp/eshell/em-hist.el (eshell-save-some-history):
8778 * lisp/eshell/em-unix.el (eshell-remove-entries, eshell/rm)
8779 (eshell-shuffle-files):
8780 * lisp/eshell/esh-cmd.el (eshell-do-eval):
8781 * lisp/eshell/esh-proc.el (eshell-process-interact)
8782 (eshell-query-kill-processes):
8783 Respect ‘text-quoting-style’ in diagnostics and doc strings.
8784
8785 Quoting fixes in Gnus
8786 * lisp/gnus/gnus-agent.el:
8787 (gnus-agent-possibly-synchronize-flags-server):
8788 * lisp/gnus/gnus-art.el (gnus-article-browse-delete-temp-files):
8789 * lisp/gnus/gnus-eform.el (gnus-edit-form):
8790 * lisp/gnus/gnus-group.el (gnus-group-edit-group)
8791 (gnus-group-nnimap-edit-acl):
8792 * lisp/gnus/gnus-topic.el (gnus-topic-edit-parameters):
8793 * lisp/gnus/mail-source.el (mail-source-delete-old-incoming):
8794 * lisp/gnus/message.el (message-strip-subject-encoded-words)
8795 (message-check-recipients, message-send-form-letter):
8796 * lisp/gnus/mm-decode.el (mm-display-part):
8797 * lisp/gnus/mm-uu.el (mm-uu-pgp-signed-extract-1):
8798 * lisp/gnus/mml-smime.el (mml-smime-get-dns-cert)
8799 (mml-smime-get-ldap-cert):
8800 * lisp/gnus/spam-report.el (spam-report-process-queue):
8801 Respect ‘text-quoting-style’ in diagnostics.
8802 * lisp/gnus/gnus-art.el (article-display-face)
8803 * lisp/gnus/gnus-fun.el (gnus-display-x-face-in-from):
8804 Use straight quoting in email.
8805 * lisp/gnus/rfc2231.el (rfc2231-decode-encoded-string):
8806 Escape apostrophes in doc strings.
8807
8808 Quoting fixes in lisp mail, mh-e, net, url
8809 * lisp/mail/emacsbug.el (report-emacs-bug)
8810 (report-emacs-bug-hook): Use straight quotes in outgoing email,
8811 * lisp/mail/feedmail.el (feedmail-message-action-help-blat):
8812 * lisp/mail/rmail.el (rmail-unknown-mail-followup-to):
8813 * lisp/mail/rmailout.el (rmail-output-read-file-name):
8814 * lisp/net/imap.el (imap-interactive-login):
8815 * lisp/net/tls.el (open-tls-stream):
8816 * lisp/url/url-auth.el (url-register-auth-scheme):
8817 Respect ‘text-quoting-style’ in diagnostics.
8818 * lisp/mh-e/mh-e.el (mh-sortm-args):
8819 Quote docstring example using text quotes, not as a Lisp quote.
8820
8821 2015-08-31 Stephen Leake <stephen_leake@stephe-leake.org>
8822
8823 Fix some byte-compiler warnings in EDE
8824 This fixes a bug that caused ede-generic-new-autoloader to overwrite the
8825 existing autoloader list, rather than add to it.
8826 * lisp/cedet/ede/auto.el (ede-project-class-files): Delete obsolete name
8827 argument to eieio class constructor.
8828 (ede-show-supported-projects): New.
8829 (ede-add-project-autoload): Replace obsolete `eieio-object-name-string'
8830 with (oref ... name).
8831 (ede-auto-load-project): Use slot name, not initarg key.
8832 * lisp/cedet/ede/generic.el (ede-generic-load)
8833 (ede-generic-find-matching-target): Use slot name, not initarg key.
8834 (ede-find-target): Use oref-default on class name.
8835 (ede-generic-new-autoloader): Delete obsolete name argument to eieio
8836 class constructor.
8837 (ede-enable-generic-projects): Make project type names unique.
8838
8839 2015-08-31 Eli Zaretskii <eliz@gnu.org>
8840
8841 Fix directory accessibility tests for w32 network volumes
8842 * src/w32.c (faccessat): Don't fail with network volumes without a
8843 share.
8844 (w32_accessible_directory_p): Handle network volumes without a
8845 share.
8846
8847 Fix handling long file names in readdir on MS-Windows
8848 * src/w32.c (sys_readdir): Append "\*" to the directory after
8849 converting it to UTF-16/ANSI, not before, to avoid overflowing the
8850 260-character limit on file names in filename_to_utf16/ansi.
8851
8852 Make file-accessible-directory-p reliable on MS-Windows
8853 * src/w32.c (w32_accessible_directory_p): New function.
8854 * src/w32.h (w32_accessible_directory_p): Add prototype.
8855 * src/fileio.c (file_accessible_directory_p) [WINDOWSNT]: Call
8856 w32_accessible_directory_p to test a directory for accessibility
8857 by the current user. (Bug#21346)
8858 (Ffile_accessible_directory_p): Remove the w32 specific caveat
8859 from the doc string.
8860
8861 2015-08-31 Martin Rudalics <rudalics@gmx.at>
8862
8863 Don't call do_pending_window_change in signal handlers (Bug#21380)
8864 * src/gtkutil.c (xg_frame_resized):
8865 * src/xterm.c (x_set_window_size):
8866 * src/w32term.c (x_set_window_size): Don't call
8867 do_pending_window_change.
8868
8869 2015-08-31 Paul Eggert <eggert@cs.ucla.edu>
8870
8871 Quoting fixes in lisp/org
8872 * lisp/org/org-agenda.el (org-search-view, org-todo-list)
8873 (org-tags-view):
8874 * lisp/org/org-capture.el (org-capture-mode)
8875 * lisp/org/org-ctags.el (org-ctags-visit-buffer-or-file)
8876 (org-ctags-ask-append-topic):
8877 * lisp/org/org.el (org-time-string-to-time)
8878 (org-time-string-to-absolute):
8879 * lisp/org/org-ctags.el (org-ctags-visit-buffer-or-file)
8880 (org-ctags-ask-append-topic):
8881 * lisp/org/org.el (org-time-string-to-time)
8882 (org-time-string-to-absolute):
8883 Respect ‘text-quoting-style’ in diagnostics.
8884 * lisp/org/org-agenda.el (org-agenda-custom-commands)
8885 (org-agenda-dim-blocked-tasks): Plural of TODO is TODOs, not TODO’s.
8886 * lisp/org/org-capture.el (org-capture-fill-template):
8887 Avoid contraction in output file that might be ASCII.
8888 * lisp/org/org-compat.el (format-message):
8889 Define if not already defined, for backward compatibility.
8890 * lisp/org/org-src.el (org-edit-src-save):
8891 * lisp/org/org.el (org-cycle, org-ctrl-c-ctrl-c):
8892 Escape apostrophes in diagnostics.
8893
8894 Treat “instead” strings as docstrings
8895 * lisp/emacs-lisp/bytecomp.el (byte-compile-form):
8896 * lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
8897 Substitute quotes in instead strings.
8898
8899 2015-08-31 Nicolas Petton <nicolas@petton.fr>
8900
8901 Better documentation of seq-let
8902 * doc/lispref/sequences.texi (Sequence Functions): Rephrase the
8903 documentation of seq-let.
8904
8905 2015-08-31 Paul Eggert <eggert@cs.ucla.edu>
8906
8907 * lisp/international/ccl.el: Fix quoting.
8908
8909 Quoting fixes in lisp/international and lisp/leim
8910 * lisp/international/ccl.el (ccl-dump, ccl-dump-call):
8911 * lisp/international/ja-dic-utl.el (skkdic-lookup-key):
8912 * lisp/international/mule-cmds.el:
8913 (select-safe-coding-system-interactively, leim-list-file-name):
8914 * lisp/international/quail.el (quail-use-package, quail-help):
8915 * lisp/international/titdic-cnv.el (tit-process-header)
8916 (miscdic-convert):
8917 Respect text quoting style in doc strings and diagnostics.
8918 * lisp/international/quail.el (lisp/international/quail.el):
8919 * lisp/leim/quail/ethiopic.el ("ethiopic"):
8920 Escape apostrophes in doc strings.
8921
8922 Make ‘text-quoting-style’ a plain defvar
8923 It doesn’t need customization, as it’s likely useful only by experts.
8924 Suggested by Stefan Monnier in:
8925 http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg01020.html
8926 * lisp/cus-start.el: Remove doc.c section for builtin customized vars.
8927
8928 Quoting fixes in lisp/textmodes
8929 * lisp/textmodes/bibtex.el (bibtex-validate)
8930 (bibtex-validate-globally, bibtex-search-entries):
8931 * lisp/textmodes/ispell.el (ispell-command-loop):
8932 * lisp/textmodes/page-ext.el (search-pages, pages-directory):
8933 * lisp/textmodes/texinfmt.el (texinfmt-version)
8934 (texinfo-format-region, texinfo-format-buffer-1):
8935 * lisp/textmodes/two-column.el (2C-split):
8936 Respect text quoting style in doc strings and diagnostics.
8937 * lisp/textmodes/conf-mode.el (conf-mode-map, conf-quote-normal):
8938 * lisp/textmodes/sgml-mode.el (sgml-specials, sgml-mode):
8939 Escape apostrophes in doc strings.
8940
8941 Documentation fixes re quotes
8942 Prefer curved quotes in examples if users will typically see
8943 curved quotes when the examples run.
8944 Mention format-message when appropriate.
8945 Don’t use @code in examples.
8946 Quote an apostrophe with @kbd.
8947
8948 Quoting fixes in lisp/progmodes
8949 * lisp/progmodes/cc-engine.el (c-bos-report-error):
8950 * lisp/progmodes/cpp.el (cpp-edit-reset):
8951 * lisp/progmodes/ebrowse.el (ebrowse-tags-apropos):
8952 * lisp/progmodes/etags.el (etags-tags-apropos-additional)
8953 (etags-tags-apropos, list-tags, tags-apropos):
8954 * lisp/progmodes/executable.el (executable-set-magic):
8955 * lisp/progmodes/octave.el (octave-sync-function-file-names)
8956 (octave-help, octave-find-definition-default-filename)
8957 (octave-find-definition):
8958 Respect text quoting style in doc strings and diagnostics.
8959 * lisp/progmodes/cc-langs.el (c-populate-syntax-table):
8960 * lisp/progmodes/verilog-mode.el (verilog-auto-reset-widths):
8961 * lisp/progmodes/vhdl-mode.el (vhdl-electric-quote):
8962 Escape apostrophes in doc strings.
8963 * lisp/progmodes/cmacexp.el (c-macro-expansion):
8964 Use straight quoting in ASCII comment.
8965 * lisp/progmodes/idlwave.el (idlwave-auto-fill-split-string)
8966 (idlwave-pad-keyword):
8967 * lisp/progmodes/vhdl-mode.el (vhdl-widget-directory-validate)
8968 (vhdl-electric-open-bracket, vhdl-electric-close-bracket):
8969 (vhdl-electric-semicolon, vhdl-electric-comma)
8970 (vhdl-electric-period, vhdl-electric-equal):
8971 Use directed quotes in diagnostics and doc strings.
8972
8973 2015-08-30 Xue Fuqiao <xfq.free@gmail.com>
8974
8975 Minor documentation and NEWS tweak
8976 * doc/lispintro/emacs-lisp-intro.texi (fwd-para let):
8977 Add an index entry.
8978 * etc/NEWS: Fix a typo in character-fold-to-regexp.
8979
8980 2015-08-30 Michael Albinus <michael.albinus@gmx.de>
8981
8982 * lisp/net/tramp-sh.el (tramp-convert-file-attributes):
8983 Revert patch from 2015-08-24. Tramp shall behave like for local files.
8984 * test/automated/tramp-tests.el (tramp-test18-file-attributes):
8985 Adapt test.
8986
8987 2015-08-30 Paul Eggert <eggert@cs.ucla.edu>
8988
8989 Text quoting fixes in cedet, emulation, emacs-lisp
8990 * lisp/cedet/ede.el (ede-check-project-directory):
8991 * lisp/cedet/semantic/analyze/debug.el
8992 (semantic-analyzer-debug-insert-include-summary):
8993 * lisp/cedet/semantic/bovine/c.el (semantic-c-describe-environment):
8994 * lisp/cedet/semantic/decorate/include.el
8995 (semantic-decoration-unknown-include-describe)
8996 (semantic-decoration-all-include-summary):
8997 * lisp/cedet/semantic/ia.el (semantic-ia-fast-jump):
8998 * lisp/emulation/edt.el (edt-load-keys):
8999 * lisp/emulation/viper-cmd.el
9000 (viper-display-current-destructive-command)
9001 (viper-query-replace, viper-brac-function):
9002 * lisp/emulation/viper-ex.el (viper-get-ex-token, ex-compile):
9003 * lisp/emulation/viper-macs.el (viper-unrecord-kbd-macro):
9004 Respect text quoting style in doc string or diagnostic.
9005 * lisp/cedet/mode-local.el (describe-mode-local-overload):
9006 Use format-message to avoid overtranslating quotes.
9007 * lisp/emacs-lisp/checkdoc.el (checkdoc-in-sample-code-p):
9008 Escape an apostrophe in a docstring.
9009 * lisp/emacs-lisp/warnings.el (lwarn): Fix doc string.
9010
9011 2015-08-29 Daniel Colascione <dancol@dancol.org>
9012
9013 Fix which-func for curly quotes: look for symbol, not message
9014 * lisp/progmodes/which-func.el (which-func-ff-hook): Look for new
9015 imenu-unavailable error symbol instead of trying to match message
9016 exactly.
9017 * lisp/imenu.el (imenu-unavailable): New error.
9018 (imenu-unavailable-error): New function.
9019
9020 2015-08-29 Eli Zaretskii <eliz@gnu.org>
9021
9022 Fix Python tests on MS-Windows
9023 * test/automated/python-tests.el
9024 (python-shell-calculate-command-1): Run python-shell-interpreter
9025 through shell-quote-argument before comparing with what
9026 python-shell-calculate-command returns.
9027 (python-shell-calculate-pythonpath-1)
9028 (python-shell-calculate-pythonpath-2)
9029 (python-shell-calculate-process-environment-2): Use path-separator
9030 instead of a literal ':'.
9031 (python-shell-calculate-exec-path-2)
9032 (python-shell-calculate-exec-path-3)
9033 (python-shell-calculate-exec-path-4)
9034 (python-shell-with-environment-1)
9035 (python-shell-with-environment-2): Run "/env/bin" through
9036 expand-file-name before comparing with exec-path. (Bug#21375)
9037
9038 2015-08-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9039
9040 Use Core Text types/functions/variables/enumerators directly
9041 * src/macfont.h (FontDescriptorRef, FontRef, FontSymbolicTraits)
9042 (CharacterCollection): Remove typedefs. All uses replaced with
9043 definitions.
9044 (MAC_FONT_NAME_ATTRIBUTE, MAC_FONT_FAMILY_NAME_ATTRIBUTE)
9045 (MAC_FONT_TRAITS_ATTRIBUTE, MAC_FONT_SIZE_ATTRIBUTE)
9046 (MAC_FONT_CASCADE_LIST_ATTRIBUTE)
9047 (MAC_FONT_CHARACTER_SET_ATTRIBUTE, MAC_FONT_LANGUAGES_ATTRIBUTE)
9048 (MAC_FONT_FORMAT_ATTRIBUTE, MAC_FONT_SYMBOLIC_TRAIT)
9049 (MAC_FONT_WEIGHT_TRAIT, MAC_FONT_WIDTH_TRAIT)
9050 (MAC_FONT_SLANT_TRAIT): Remove macros. All uses replaced with
9051 definitions.
9052 (MAC_FONT_TRAIT_ITALIC, MAC_FONT_TRAIT_BOLD)
9053 (MAC_FONT_TRAIT_MONO_SPACE, MAC_FONT_TRAIT_COLOR_GLYPHS)
9054 (MAC_FONT_FORMAT_BITMAP)
9055 (MAC_CHARACTER_COLLECTION_IDENTITY_MAPPING)
9056 (MAC_CHARACTER_COLLECTION_ADOBE_JAPAN1): Remove enumerators.
9057 All uses replaced with definitions.
9058 (kCTFontTraitItalic, kCTFontTraitBold, kCTFontTraitMonoSpace)
9059 (kCTFontTraitColorGlyphs, kCTCharacterCollectionIdentityMapping)
9060 (kCTCharacterCollectionAdobeJapan1 kCTFontOrientationDefault):
9061 Add compatibility enumerators for older versions.
9062 (mac_font_descriptor_create_with_attributes)
9063 (mac_font_descriptor_create_matching_font_descriptors)
9064 (mac_font_descriptor_create_matching_font_descriptor)
9065 (mac_font_descriptor_copy_attribute)
9066 (mac_font_descriptor_supports_languages)
9067 (mac_font_create_with_name, mac_font_get_size)
9068 (mac_font_copy_family_name, mac_font_copy_character_set)
9069 (mac_font_get_glyphs_for_characters, mac_font_get_ascent)
9070 (mac_font_get_descent, mac_font_get_leading)
9071 (mac_font_get_underline_position)
9072 (mac_font_get_underline_thickness, mac_font_copy_graphics_font)
9073 (mac_font_copy_non_synthetic_table): Remove macros. All uses
9074 replaced with definitions.
9075 (mac_font_create_preferred_family_for_attributes)
9076 (mac_font_get_advance_width_for_glyph)
9077 (mac_font_get_bounding_rect_for_glyph)
9078 (mac_font_create_available_families, mac_font_shape):
9079 Remove macros for renamed functions.
9080 (mac_nsctfont_copy_font_descriptor): Remove unused macro.
9081 * src/macterm.m (mac_font_descriptor_supports_languages):
9082 Rename from mac_ctfont_descriptor_supports_languages.
9083 (mac_font_create_preferred_family_for_attributes): Rename from
9084 mac_ctfont_create_preferred_family_for_attributes.
9085 (mac_font_get_advance_width_for_glyph): Rename from
9086 mac_ctfont_get_advance_width_for_glyph.
9087 Use kCTFontOrientationDefault also for older versions.
9088 (mac_font_get_bounding_rect_for_glyph): Rename from
9089 mac_ctfont_get_bounding_rect_for_glyph.
9090 Use kCTFontOrientationDefault also for older versions.
9091 (mac_font_create_available_families): Rename from
9092 mac_ctfont_create_available_families.
9093 (mac_font_equal_in_postscript_name): Rename from
9094 mac_ctfont_equal_in_postscript_name. All uses changed.
9095 (mac_font_create_line_with_string_and_font): Rename from
9096 mac_ctfont_create_line_with_string_and_font. All uses changed.
9097 (mac_font_shape): Rename from mac_ctfont_shape.
9098 (mac_font_family_compare): Remove unused declaration.
9099
9100 2015-08-29 Paul Eggert <eggert@cs.ucla.edu>
9101
9102 Fix minor text quoting in calc, calendar, vc
9103 * lisp/calc/calc-ext.el (calc-shift-Z-prefix-help):
9104 * lisp/calc/calc-help.el (calc-j-prefix-help):
9105 * lisp/calc/calc-misc.el (calc-help):
9106 * lisp/calc/calc.el (calc-algebraic-mode, calc-mode):
9107 Escape an apostrophe in a docstring.
9108 * lisp/calc/calc-forms.el (calc-hms-notation):
9109 * lisp/calc/calc-mode.el (calc-display-raw, calc-algebraic-mode):
9110 Escape an apostrophe in a diagnostic.
9111 * lisp/calc/calc-misc.el (calc-help):
9112 * lisp/calendar/diary-lib.el (diary-include-files):
9113 * lisp/calendar/todo-mode.el (todo-prefix, todo-item-mark):
9114 * lisp/vc/diff-mode.el (diff-delete-trailing-whitespace):
9115 * lisp/vc/ediff-diff.el (ediff-same-contents):
9116 * lisp/vc/ediff-merg.el (ediff-re-merge):
9117 * lisp/vc/ediff-ptch.el (ediff-patch-file-internal):
9118 * lisp/vc/ediff-util.el (ediff-test-save-region)
9119 (ediff-status-info):
9120 * lisp/vc/ediff.el (ediff-merge-revisions)
9121 (ediff-merge-revisions-with-ancestor):
9122 * lisp/vc/pcvs.el (cvs-mode-checkout, cvs-vc-command-advice):
9123 * lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
9124 Respect text quoting style in doc string or diagnostic.
9125 * lisp/calc/calc-prog.el (calc-kbd-push, calc-kbd-pop):
9126 * lisp/vc/add-log.el (change-log-goto-source):
9127 Avoid double-formatting.
9128 * lisp/vc/ediff-init.el (format-message):
9129 New backward-compatibility alias.
9130
9131 2015-08-28 Paul Eggert <eggert@cs.ucla.edu>
9132
9133 Fix minor text quoting problems in lisp top level
9134 * lisp/apropos.el (apropos-describe-plist):
9135 * lisp/cus-theme.el (customize-themes):
9136 * lisp/dired.el (dired-log):
9137 * lisp/help-fns.el (describe-variable):
9138 * lisp/hexl.el (hexl-insert-multibyte-char):
9139 * lisp/info.el (Info-finder-find-node):
9140 * lisp/json.el (json-read-string):
9141 * lisp/novice.el (disabled-command-function)
9142 (disabled-command-function):
9143 * lisp/startup.el (normal-mouse-startup-screen):
9144 * lisp/woman.el (WoMan-log, WoMan-warn):
9145 Respect text quoting style in doc string or diagnostic.
9146 * lisp/replace.el (replace-character-fold):
9147 * src/syntax.c (Fmodify_syntax_entry):
9148 Escape an apostrophe in a docstring.
9149 * lisp/tempo.el (tempo-define-template):
9150 Remove confusing apostrophe from docstring.
9151 * lisp/whitespace.el (whitespace-mark-x):
9152 Use directed quotes in docstring.
9153
9154 2015-08-28 Simen Heggestøyl <simenheg@gmail.com>
9155
9156 Fix indentation rule in css-mode
9157 * lisp/textmodes/css-mode.el (css-smie-rules): Fix indentation of
9158 brackets in presence of pseudo-selectors. (Bug#21328)
9159
9160 2015-08-28 Eli Zaretskii <eliz@gnu.org>
9161
9162 Fix a bug in recording a macro while flyspell-mode is active
9163 * lisp/subr.el (sit-for): Don't call read-event when recording a
9164 macro. (Bug#21329)
9165
9166 2015-08-27 Paul Eggert <eggert@Penguin.CS.UCLA.EDU>
9167
9168 Tweak startup screen quoting
9169 * lisp/startup.el (normal-splash-screen): Use standard
9170 "M-" abbrevation rather than a confusingly-different one.
9171 (normal-no-mouse-startup-screen): Follow ‘text-quoting-style’.
9172
9173 2015-08-27 Paul Eggert <eggert@cs.ucla.edu>
9174
9175 Add test case for ‘format’ bug and refactor
9176 * src/editfns.c (styled_format): Refactor internally, mostly by
9177 moving declarations closer to uses. This should not affect behavior.
9178 * test/automated/textprop-tests.el (textprop-tests-format): New test.
9179
9180 Fix ‘format’ bug with property offsets
9181 * src/editfns.c (styled_format): Fix recently-introduced ‘format’
9182 bug in calculating string property offsets (Bug#21351).
9183
9184 Use straight quotes in lib-src diagnostics
9185 These auxiliary programs can’t use Emacs’s text-quoting-style,
9186 and it’s too much trouble to redo that mechanism by hand.
9187 So just use straight quotes for now.
9188 * lib-src/ebrowse.c (main):
9189 * lib-src/emacsclient.c (decode_options, main):
9190 * lib-src/etags.c (Ada_help, default_C_help, Cplusplus_help)
9191 (Forth_help, HTML_help, Lisp_help, Makefile_help, Objc_help)
9192 (Perl_help, PHP_help, Python_help, Scheme_help, TeX_help, auto_help)
9193 (none_help, print_language_names, print_help, add_regex)
9194 (suggest_asking_for_help):
9195 * lib-src/make-docfile.c (write_c_args, scan_c_stream):
9196 Use straight quotes in diagnostics.
9197
9198 ‘text-quoting-style’ fixes for admin
9199 * admin/admin.el (cusver-scan, cusver-check):
9200 * admin/authors.el (authors-canonical-file-name):
9201 * admin/bzrmerge.el (bzrmerge-missing):
9202 Respect ‘text-quoting-style’ in diagnostics.
9203
9204 2015-08-26 Paul Eggert <eggert@cs.ucla.edu>
9205
9206 Assume GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS
9207 This removes the need for GCPRO1 etc. Suggested by Stefan Monnier in:
9208 http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00918.html
9209 * doc/lispref/internals.texi (Writing Emacs Primitives):
9210 * etc/NEWS:
9211 Document the change.
9212 * src/alloc.c (gcprolist, dump_zombies, MAX_ZOMBIES, zombies)
9213 (nzombies, ngcs, avg_zombies, max_live, max_zombies, avg_live)
9214 (Fgc_status, check_gcpros, relocatable_string_data_p, gc-precise):
9215 * src/bytecode.c (mark_byte_stack) [BYTE_MARK_STACK]:
9216 * src/eval.c (gcpro_level) [DEBUG_GCPRO]:
9217 * src/lisp.h (struct handler.gcpro, struct gcpro, GC_MARK_STACK)
9218 (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
9219 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
9220 (BYTE_MARK_STACK, GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6)
9221 (GCPRO7, UNGCPRO, RETURN_UNGCPRO):
9222 Remove. All uses removed. The code now assumes
9223 GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS.
9224 * src/bytecode.c (relocate_byte_stack):
9225 Rename from unmark_byte_stack, since it now only relocates.
9226 All callers changed.
9227 * src/frame.c (make_frame): Add an IF_LINT to pacify GCC 5.2
9228 with GCPROs removed.
9229 * src/systime.h: Use EMACS_LISP_H as the canary instead of GCPRO1.
9230 * test/automated/finalizer-tests.el (finalizer-basic)
9231 (finalizer-circular-reference, finalizer-cross-reference)
9232 (finalizer-error):
9233 * test/automated/generator-tests.el (cps-test-iter-close-finalizer):
9234 Remove tests, as they depend on gc-precise.
9235
9236 2015-08-26 Nicolas Petton <nicolas@petton.fr>
9237
9238 Improve seq-concatenate for new sequence types
9239 Use the new `seq-into-sequence' in seqs passed to `seq-concatenate' to
9240 ensure that concatenation happens on sequences only. This makes it
9241 possible to use `seq-concatenate' for new types of seqs.
9242 * lisp/emacs-lisp/seq.el (seq-into-sequence, seq-concatenate):
9243 New function used in `seq-concatenate'.
9244 * test/automated/seq-tests.el (test-seq-into-sequence): New unit test
9245 for seq-into-sequence.
9246
9247 2015-08-26 Stephen Leake <stephen_leake@stephe-leake.org>
9248
9249 Add mode local overrides to xref-find-definitions
9250 * lisp/cedet/mode-local.el (xref-mode-local--override-present)
9251 (xref-mode-local-overload): New; add mode local overrides to
9252 xref-find-definitions.
9253 * test/automated/elisp-mode-tests.el: Add mode local override tests.
9254 (xref-elisp-test-run): Handle indented defuns.
9255 (xref-elisp-generic-*): Improve doc strings.
9256 * lisp/progmodes/elisp-mode.el (elisp-xref-find-def-functions): New.
9257 (elisp--xref-find-definitions): Use it.
9258
9259 Add mode local overrides to describe-function
9260 * lisp/cedet/mode-local.el (describe-mode-local-overload):
9261 New; add mode local overrides to describe-function.
9262 * etc/NEWS: Document change.
9263
9264 2015-08-26 Paul Eggert <eggert@cs.ucla.edu>
9265
9266 Prefer straight quoting in some etc text files
9267 These files are plain text and might be used by non-Emacs apps.
9268 They’re mostly ASCII, so just use straight quotes.
9269
9270 Fix quoting in ‘message_with_string’
9271 * src/nsfont.m (nsfont_open): Use directed quotes in format; they
9272 should work now.
9273 * src/xdisp.c (message_to_stderr): New function, refactored from
9274 part of ‘message3_nolog’.
9275 (message3_nolog): Use it.
9276 (message_with_string): Use it. Don’t mishandle NUL bytes when
9277 noninteractive. Prefer AUTO_STRING when it’s most likely faster.
9278 Use ‘format-message’, not ‘format’, so that quotes are translated.
9279
9280 2015-08-26 Eli Zaretskii <eliz@gnu.org>
9281
9282 Mention false positives of file-accessible-directory on w32
9283 * src/fileio.c (Ffile_accessible_directory_p): Doc fix.
9284 (Bug#21346)
9285
9286 2015-08-26 Paul Eggert <eggert@cs.ucla.edu>
9287
9288 Treat error strings as help
9289 * src/print.c (print_error_message): Translate quotes and command
9290 keys in errmsg so that users see, e.g., "Symbol’s value as
9291 variable is void: foo" when text-quoting-style is curved.
9292
9293 2015-08-26 Michael Albinus <michael.albinus@gmx.de>
9294
9295 * lisp/net/tramp-cache.el (top): Use `message', not `format-message'.
9296
9297 2015-08-26 Paul Eggert <eggert@cs.ucla.edu>
9298
9299 Top-level elisp files respect ‘text-quoting-style’
9300 In top-level elisp files, use format-message in diagnostic formats,
9301 so that they follow user preference as per ‘text-quoting-style’
9302 rather than being hard-coded to quote `like this'.
9303 * lisp/allout.el (allout-get-configvar-values):
9304 * lisp/apropos.el (apropos-symbols-internal):
9305 * lisp/dired-aux.el (dired-do-shell-command, dired-create-files)
9306 (dired-do-create-files-regexp, dired-create-files-non-directory):
9307 * lisp/dired-x.el (dired-do-run-mail):
9308 * lisp/dired.el (dired-log, dired-dnd-handle-local-file):
9309 * lisp/disp-table.el (standard-display-european):
9310 * lisp/find-dired.el (find-dired):
9311 * lisp/forms.el (forms-mode):
9312 * lisp/ido.el (ido-buffer-internal):
9313 * lisp/info.el (Info-index-next):
9314 * lisp/outline.el (outline-invent-heading):
9315 * lisp/printing.el (pr-ps-outfile-preprint, pr-i-ps-send):
9316 * lisp/proced.el (proced-log):
9317 * lisp/ps-print.el (ps-print-preprint, ps-get-size):
9318 * lisp/recentf.el (recentf-open-files, recentf-save-list):
9319 * lisp/savehist.el (savehist-save):
9320 * lisp/server.el (server-ensure-safe-dir):
9321 * lisp/ses.el (ses-rename-cell):
9322 * lisp/simple.el (list-processes--refresh):
9323 * lisp/startup.el (command-line):
9324 * lisp/strokes.el (strokes-unset-last-stroke)
9325 (strokes-execute-stroke):
9326 Use format-message so that quotes are restyled.
9327 * lisp/cus-edit.el (custom-raised-buttons, customize-browse):
9328 Don’t quote ‘raised’.
9329 * lisp/descr-text.el (describe-char):
9330 * lisp/dirtrack.el (dirtrack-debug-message):
9331 * lisp/hexl.el (hexl-insert-multibyte-char):
9332 Apply substitute-command-keys to help string.
9333 * lisp/wdired.el (wdired-do-renames, wdired-do-symlink-changes)
9334 (wdired-do-perm-changes):
9335 Let dired-log do the formatting.
9336
9337 2015-08-25 Paul Eggert <eggert@cs.ucla.edu>
9338
9339 Go back to grave quoting in Tramp
9340 * lisp/net/tramp-adb.el:
9341 * lisp/net/tramp-cache.el:
9342 * lisp/net/tramp-compat.el:
9343 * lisp/net/tramp-gvfs.el:
9344 * lisp/net/tramp-gw.el:
9345 * lisp/net/tramp-sh.el:
9346 * lisp/net/tramp-smb.el:
9347 * lisp/net/tramp.el:
9348 Stick with grave quoting in diagnostics strings. This is more
9349 portable to older Emacs, desirable for Tramp.
9350 * lisp/net/tramp-cache.el: Use ‘format-message’, not ‘format’,
9351 for diagnostic that needs requoting.
9352 * lisp/net/tramp-compat.el (format-message):
9353 Fall back on simple ‘format’, since that’s good enough now.
9354
9355 Go back to grave quoting in Gnus
9356 * lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
9357 * lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
9358 (gnus-agent-fetch-headers):
9359 * lisp/gnus/gnus-int.el (gnus-start-news-server):
9360 * lisp/gnus/gnus-registry.el:
9361 (gnus-registry--split-fancy-with-parent-internal)
9362 (gnus-registry-post-process-groups):
9363 * lisp/gnus/gnus-score.el (gnus-summary-increase-score):
9364 * lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
9365 * lisp/gnus/gnus-topic.el (gnus-topic-rename):
9366 * lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
9367 * lisp/gnus/spam.el (spam-check-blackholes):
9368 Stick with grave quoting in diagnostics strings. This is more
9369 portable to older Emacs, desirable for Gnus.
9370
9371 Fix customization of text-quoting-style
9372 * lisp/cus-edit.el (custom-guess-type, custom-variable-documentation):
9373 * lisp/wid-edit.el (widget-docstring):
9374 Get raw docstring here since it’s cooked later and should not be
9375 cooked twice.
9376 * lisp/cus-edit.el (custom-group-value-create):
9377 Cook the docstring before inserting it.
9378 * lisp/cus-start.el (text-quoting-style): Quote the customization
9379 docstrings according to the new rules. Give curved examples.
9380
9381 format-message now curves ` and '
9382 That way, the caller doesn’t have to use curved quotes to
9383 get diagnostics that match the text-quoting-style preferences.
9384 Suggested by Dmitry Gutov in:
9385 http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00893.html
9386 This means we no longer need %qs, so remove that format.
9387 While we’re at it, fix an unlikely bug and lessen the pressure
9388 on the garbage collector by processing the string once rather
9389 than twice in the usual case.
9390 * doc/lispref/strings.texi (Formatting Strings):
9391 * etc/NEWS: Document this.
9392 * lisp/subr.el (format-message): Remove; now done in C.
9393 * src/callint.c (Fcall_interactively):
9394 * src/editfns.c (Fmessage, Fmessage_box):
9395 Use Fformat_message instead of Finternal__text_restyle
9396 followed by Fformat.
9397 * src/doc.c (LSQM, RSQM): Remove; all uses changed to use
9398 uLSQM and uRSQM.
9399 (Fsubstitute_command_keys): Prefer AUTO_STRING to build_string
9400 when pure ASCII now suffices. Fix unlikely bug when parsing
9401 unibyte string containing non-ASCII bytes. Use inline code
9402 rather than memcpy, as it’s a tiny number of bytes.
9403 (Finternal__text_restyle): Remove; no longer used.
9404 (syms_of_doc): Don’t declare it.
9405 * src/editfns.c (Fformat): Rewrite in terms of new function
9406 ‘styled_format’.
9407 (Fformat_message): New function, moved here from subr.el.
9408 (styled_format): New function, with the old guts of Fformat,
9409 except it now optionally transliterates quotes, and it transliterates
9410 traditional grave accent and apostrophe quoting as well.
9411 Remove recently-added q flag; no longer needed or used.
9412 (syms_of_editfns): Define format-message.
9413 * src/lisp.h (uLSQM0, uLSQM1, uLSQM2, uRSQM0, uRSQM1, uRSQM2):
9414 Remove; no longer need to be global symbols.
9415 * src/xdisp.c (vadd_to_log): Use Fformat_message, not Fformat,
9416 so that callers can use `%s'.
9417 * src/image.c (image_size_error, xbm_load_image, xbm_load)
9418 (xpm_load, pbm_load, png_load_body, jpeg_load_body, tiff_load)
9419 (gif_load, imagemagick_load_image, imagemagick_load, svg_load)
9420 (svg_load_image, gs_load, x_kill_gs_process):
9421 * src/lread.c (load_warn_old_style_backquotes):
9422 * src/xfaces.c (load_pixmap):
9423 * src/xselect.c (x_clipboard_manager_error_1):
9424 Use `%s' instead of %qs in formats.
9425
9426 2015-08-25 Eli Zaretskii <eliz@gnu.org>
9427
9428 Minor fixes in doc/emacs/search.texi
9429 * doc/emacs/search.texi (Basic Isearch): Fix a typo.
9430 (Special Isearch): Use @w{} to generate several consecutive spaces
9431 with Texinfo 6. (Bug#21345)
9432
9433 2015-08-25 Michael Albinus <michael.albinus@gmx.de>
9434
9435 * lisp/net/tramp-sh.el (tramp-awk-encode, tramp-awk-decode)
9436 (tramp-awk-coding-test): New defconsts.
9437 (tramp-remote-coding-commands): Use them.
9438 (tramp-find-inline-encoding): Check for Perl only if necessary.
9439
9440 2015-08-25 Xue Fuqiao <xfq.free@gmail.com>
9441
9442 * doc/lispintro/emacs-lisp-intro.texi (Run a Program): Add some
9443 index entries for the special form `quote'.
9444
9445 2015-08-25 Paul Eggert <eggert@cs.ucla.edu>
9446
9447 Spelling fixes
9448
9449 Gnus format-message typo fix
9450 * lisp/gnus/gnus-util.el (gnus-format-message):
9451 Fix typo when running in older Emacs.
9452
9453 Prefer directed to neutral quotes in docstings and diagnostics.
9454 In docstrings, escape apostrophes that would otherwise be translated
9455 to curved quotes using the newer, simpler rules.
9456 * admin/unidata/unidata-gen.el (unidata-gen-table):
9457 * lisp/align.el (align-region):
9458 * lisp/allout.el (allout-mode, allout-solicit-alternate-bullet):
9459 * lisp/bookmark.el (bookmark-default-annotation-text):
9460 * lisp/calc/calc-aent.el (math-read-if, math-read-factor):
9461 * lisp/calc/calc-lang.el (math-read-giac-subscr)
9462 (math-read-math-subscr):
9463 * lisp/calc/calc-misc.el (report-calc-bug):
9464 * lisp/calc/calc-prog.el (calc-fix-token-name)
9465 (calc-read-parse-table-part):
9466 * lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
9467 * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
9468 * lisp/dabbrev.el (dabbrev-expand):
9469 * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
9470 * lisp/emacs-lisp/elint.el (elint-get-top-forms):
9471 * lisp/emacs-lisp/lisp-mnt.el (lm-verify):
9472 * lisp/emulation/viper-cmd.el (viper-toggle-search-style):
9473 * lisp/erc/erc-button.el (erc-nick-popup):
9474 * lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login):
9475 * lisp/eshell/em-dirs.el (eshell/cd):
9476 * lisp/eshell/em-glob.el (eshell-glob-regexp):
9477 * lisp/eshell/em-pred.el (eshell-parse-modifiers):
9478 * lisp/eshell/esh-arg.el (eshell-parse-arguments):
9479 * lisp/eshell/esh-opt.el (eshell-show-usage):
9480 * lisp/files-x.el (modify-file-local-variable):
9481 * lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer)
9482 (filesets-update-pre010505):
9483 * lisp/find-cmd.el (find-generic, find-to-string):
9484 * lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
9485 * lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
9486 (gnus-agent-fetch-headers):
9487 * lisp/gnus/gnus-int.el (gnus-start-news-server):
9488 * lisp/gnus/gnus-registry.el:
9489 (gnus-registry--split-fancy-with-parent-internal):
9490 * lisp/gnus/gnus-score.el (gnus-summary-increase-score):
9491 * lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
9492 * lisp/gnus/gnus-topic.el (gnus-topic-rename):
9493 * lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
9494 * lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
9495 * lisp/gnus/spam.el (spam-check-blackholes):
9496 * lisp/mail/feedmail.el (feedmail-run-the-queue):
9497 * lisp/mpc.el (mpc-playlist-rename):
9498 * lisp/net/ange-ftp.el (ange-ftp-shell-command):
9499 * lisp/net/mairix.el (mairix-widget-create-query):
9500 * lisp/net/tramp-cache.el:
9501 * lisp/obsolete/otodo-mode.el (todo-more-important-p):
9502 * lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
9503 * lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
9504 * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
9505 * lisp/org/ob-core.el (org-babel-goto-named-src-block)
9506 (org-babel-goto-named-result):
9507 * lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
9508 * lisp/org/ob-ref.el (org-babel-ref-resolve):
9509 * lisp/org/org-agenda.el (org-agenda-prepare):
9510 * lisp/org/org-bibtex.el (org-bibtex-fields):
9511 * lisp/org/org-clock.el (org-clock-notify-once-if-expired)
9512 (org-clock-resolve):
9513 * lisp/org/org-feed.el (org-feed-parse-atom-entry):
9514 * lisp/org/org-habit.el (org-habit-parse-todo):
9515 * lisp/org/org-mouse.el (org-mouse-popup-global-menu)
9516 (org-mouse-context-menu):
9517 * lisp/org/org-table.el (org-table-edit-formulas):
9518 * lisp/org/ox.el (org-export-async-start):
9519 * lisp/play/dunnet.el (dun-score, dun-help, dun-endgame-question)
9520 (dun-rooms, dun-endgame-questions):
9521 * lisp/progmodes/ada-mode.el (ada-goto-matching-start):
9522 * lisp/progmodes/ada-xref.el (ada-find-executable):
9523 * lisp/progmodes/antlr-mode.el (antlr-options-alists):
9524 * lisp/progmodes/flymake.el (flymake-parse-err-lines)
9525 (flymake-start-syntax-check-process):
9526 * lisp/progmodes/python.el (python-define-auxiliary-skeleton):
9527 * lisp/progmodes/sql.el (sql-comint):
9528 * lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
9529 * lisp/server.el (server-get-auth-key):
9530 * lisp/subr.el (version-to-list):
9531 * lisp/textmodes/reftex-ref.el (reftex-label):
9532 * lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
9533 * lisp/vc/ediff-diff.el (ediff-same-contents):
9534 * lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
9535 * test/automated/tramp-tests.el (tramp-test33-asynchronous-requests):
9536 Use directed rather than neutral quotes in diagnostics.
9537
9538 Treat ' like ’ even when not matching `
9539 This is simpler and easier to explain, and should encourage better
9540 typography. Do this in Electric Quote mode and when translating
9541 quotes in docstrings. Inspired by a suggestion by Dmitry Gutov in:
9542 https://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00806.html
9543 * doc/emacs/text.texi (Quotation Marks):
9544 * doc/lispref/help.texi (Keys in Documentation):
9545 * etc/NEWS:
9546 Document this.
9547 * lisp/electric.el (electric-quote-post-self-insert-function):
9548 * src/doc.c (Fsubstitute_command_keys):
9549 Always treat ' like ’ even when not matched by an open quote.
9550
9551 2015-08-25 Glenn Morris <rgm@gnu.org>
9552
9553 * doc/emacs/cal-xtra.texi (Holiday Customizing): Fix typo in example.
9554 * lisp/calendar/holidays.el (calendar-holidays): Fix doc typo.
9555
9556 2015-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9557
9558 * src/macfont.m (macfont_create_family_with_symbol):
9559 Accept localized names.
9560
9561 2015-08-24 Paul Eggert <eggert@cs.ucla.edu>
9562
9563 Tramp diagnostics as per ‘text-quoting-style’
9564 * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename)
9565 (tramp-adb-get-ls-command, tramp-adb-handle-make-directory)
9566 (tramp-adb-handle-delete-directory)
9567 (tramp-adb-handle-delete-file)
9568 (tramp-adb-handle-file-local-copy)
9569 (tramp-adb-handle-write-region, tramp-adb-handle-copy-file)
9570 (tramp-adb-send-command-and-check, tramp-adb-wait-for-output)
9571 (tramp-adb-maybe-open-connection):
9572 * lisp/net/tramp-cache.el:
9573 * lisp/net/tramp-compat.el (tramp-compat-temporary-file-directory)
9574 (tramp-compat-octal-to-decimal)
9575 (tramp-compat-coding-system-change-eol-conversion):
9576 * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler)
9577 (tramp-gvfs-do-copy-or-rename-file)
9578 (tramp-gvfs-handle-delete-directory)
9579 (tramp-gvfs-handle-delete-file)
9580 (tramp-gvfs-handle-expand-file-name)
9581 (tramp-gvfs-handle-file-local-copy)
9582 (tramp-gvfs-handle-file-notify-add-watch)
9583 (tramp-gvfs-handle-make-directory)
9584 (tramp-gvfs-handle-write-region, tramp-gvfs-url-file-name):
9585 * lisp/net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
9586 (tramp-gw-aux-proc-sentinel, tramp-gw-open-connection):
9587 * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
9588 (tramp-sh-handle-set-visited-file-modtime)
9589 (tramp-sh-handle-set-file-modes)
9590 (tramp-sh-handle-file-name-all-completions)
9591 (tramp-sh-handle-add-name-to-file, tramp-do-copy-or-rename-file)
9592 (tramp-do-copy-or-rename-file-directly)
9593 (tramp-do-copy-or-rename-file-out-of-band)
9594 (tramp-sh-handle-make-directory)
9595 (tramp-sh-handle-delete-directory, tramp-sh-handle-delete-file)
9596 (tramp-sh-handle-insert-directory, tramp-process-sentinel)
9597 (tramp-sh-handle-start-file-process)
9598 (tramp-sh-handle-file-local-copy)
9599 (tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
9600 (tramp-sh-handle-file-notify-add-watch, tramp-maybe-send-script)
9601 (tramp-find-file-exists-command, tramp-open-shell)
9602 (tramp-find-shell)
9603 (tramp-open-connection-setup-interactive-shell)
9604 (tramp-find-inline-encoding, tramp-find-inline-compress)
9605 (tramp-compute-multi-hops, tramp-maybe-open-connection)
9606 (tramp-wait-for-output, tramp-send-command-and-check)
9607 (tramp-send-command-and-read, tramp-get-remote-path)
9608 (tramp-get-ls-command, tramp-get-ls-command-with-dired)
9609 (tramp-get-ls-command-with-quoting-style)
9610 (tramp-get-test-command, tramp-get-remote-ln)
9611 (tramp-get-remote-perl, tramp-get-remote-stat)
9612 (tramp-get-remote-readlink, tramp-get-remote-trash)
9613 (tramp-get-remote-touch, tramp-get-remote-gvfs-monitor-dir)
9614 (tramp-get-remote-inotifywait, tramp-get-remote-id)
9615 (tramp-get-remote-python):
9616 * lisp/net/tramp-smb.el (tramp-smb-errors)
9617 (tramp-smb-handle-add-name-to-file, tramp-smb-handle-copy-file)
9618 (tramp-smb-handle-delete-directory)
9619 (tramp-smb-handle-delete-file)
9620 (tramp-smb-handle-file-local-copy)
9621 (tramp-smb-handle-make-directory)
9622 (tramp-smb-handle-make-directory-internal)
9623 (tramp-smb-handle-make-symbolic-link)
9624 (tramp-smb-handle-rename-file, tramp-smb-handle-set-file-acl)
9625 (tramp-smb-handle-set-file-modes)
9626 (tramp-smb-handle-write-region, tramp-smb-get-file-entries):
9627 * lisp/net/tramp.el (tramp-debug-message, tramp-error)
9628 (tramp-process-actions):
9629 Generate diagnostics according to ‘text-quoting-style’, by
9630 using curved quotes in format strings and ‘format-message’
9631 when appropriate.
9632 * lisp/net/tramp-compat.el (format-message):
9633 Define a replacement, if it’s an older version of Emacs
9634 that doesn’t have it already.
9635
9636 * etc/NEWS: Clarify text-quoting-style and electric-quote-mode.
9637
9638 2015-08-24 Xue Fuqiao <xfq.free@gmail.com>
9639
9640 Fix documentation for `save-excursion'
9641 * doc/lispref/positions.texi (Excursions):
9642 * doc/lispintro/emacs-lisp-intro.texi (save-excursion)
9643 (Template for save-excursion, Point and mark): `save-excursion'
9644 does not save&restore the mark any more.
9645
9646 2015-08-24 Michael Albinus <michael.albinus@gmx.de>
9647
9648 * lisp/net/tramp-sh.el (tramp-stat-marker, tramp-stat-quoted-marker):
9649 New defconsts.
9650 (tramp-do-file-attributes-with-stat)
9651 (tramp-do-directory-files-and-attributes-with-stat): Use them.
9652 (tramp-convert-file-attributes): Remove double slashes in symlinks.
9653 * test/automated/tramp-tests.el (tramp-test18-file-attributes):
9654 Handle symlinks with "//" in the file name.
9655
9656 Revert fbb5531fa11d13854b274d28ccd329c9b6652cfc for tramp.el.
9657
9658 2015-08-24 Nicolas Petton <nicolas@petton.fr>
9659
9660 Fix cl-subseq and cl-concatenate
9661 * lisp/emacs-lisp/cl-extra.el (cl-subseq, cl-concatenate): Do not use
9662 seq functions.
9663 * lisp/emacs-lisp/seq.el (seq-concatenate): Call cl-concatenate in
9664 seq-concatenate.
9665
9666 2015-08-24 Pip Cet <pipcet@gmail.com> (tiny change)
9667
9668 Fix full-screen code when there is no window manager (Bug#21317)
9669 * src/xterm.h (x_wm_supports): Declare external.
9670 * src/xterm.c (wm_suppports): Rename to `x_wm_supports', export.
9671 (do_ewmh_fullscreen, x_ewmh_activate_frame): Adjust for rename.
9672 (x_check_fullscreen): Call `x_wm_set_size_hint', restore
9673 `fullscreen' frame parameter.
9674 * src/gtkutil.c (x_wm_set_size_hint): Set size hints when running
9675 without a window manager.
9676
9677 2015-08-24 Glenn Morris <rgm@gnu.org>
9678
9679 * lisp/version.el (emacs-version): No longer include build host.
9680 * doc/lispref/intro.texi (Version Info): Update example.
9681
9682 2015-08-24 Paul Eggert <eggert@cs.ucla.edu>
9683
9684 * doc/lispref/elisp.texi: Fix typo in previous change.
9685
9686 More-conservative ‘format’ quote restyling
9687 Instead of restyling curved quotes for every call to ‘format’,
9688 create a new function ‘format-message’ that does the restyling,
9689 and using the new function instead of ‘format’ only in contexts
9690 where this seems appropriate.
9691 Problem reported by Dmitry Gutov and Andreas Schwab in:
9692 http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00826.html
9693 http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00827.html
9694 * doc/lispref/commands.texi (Using Interactive):
9695 * doc/lispref/control.texi (Signaling Errors, Signaling Errors):
9696 * doc/lispref/display.texi (Displaying Messages, Progress):
9697 * doc/lispref/elisp.texi:
9698 * doc/lispref/help.texi (Keys in Documentation):
9699 * doc/lispref/minibuf.texi (Minibuffer Misc):
9700 * doc/lispref/strings.texi (Formatting Strings):
9701 * etc/NEWS:
9702 Document the changes.
9703 * lisp/abbrev.el (expand-region-abbrevs):
9704 * lisp/apropos.el (apropos-library):
9705 * lisp/calc/calc-ext.el (calc-record-message)
9706 (calc-user-function-list):
9707 * lisp/calc/calc-help.el (calc-describe-key, calc-full-help):
9708 * lisp/calc/calc-lang.el (math-read-big-balance):
9709 * lisp/calc/calc-store.el (calc-edit-variable):
9710 * lisp/calc/calc-units.el (math-build-units-table-buffer):
9711 * lisp/calc/calc-yank.el (calc-edit-mode):
9712 * lisp/calendar/icalendar.el (icalendar-export-region)
9713 (icalendar--add-diary-entry):
9714 * lisp/cedet/mode-local.el (mode-local-print-binding)
9715 (mode-local-describe-bindings-2):
9716 * lisp/cedet/semantic/complete.el (semantic-completion-message):
9717 * lisp/cedet/semantic/edit.el (semantic-parse-changes-failed):
9718 * lisp/cedet/semantic/wisent/comp.el (wisent-log):
9719 * lisp/cedet/srecode/insert.el (srecode-insert-show-error-report):
9720 * lisp/descr-text.el (describe-text-properties-1, describe-char):
9721 * lisp/dframe.el (dframe-message):
9722 * lisp/dired-aux.el (dired-query):
9723 * lisp/emacs-lisp/byte-opt.el (byte-compile-log-lap-1):
9724 * lisp/emacs-lisp/bytecomp.el (byte-compile-log)
9725 (byte-compile-log-file, byte-compile-warn, byte-compile-form):
9726 * lisp/emacs-lisp/cconv.el (cconv-convert, cconv--analyze-use)
9727 (cconv-analyze-form):
9728 * lisp/emacs-lisp/check-declare.el (check-declare-warn):
9729 * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
9730 * lisp/emacs-lisp/cl-macs.el (cl-symbol-macrolet):
9731 * lisp/emacs-lisp/edebug.el (edebug-format):
9732 * lisp/emacs-lisp/eieio-core.el (eieio-oref):
9733 * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message)
9734 (eldoc-message):
9735 * lisp/emacs-lisp/elint.el (elint-file, elint-log):
9736 * lisp/emacs-lisp/find-func.el (find-function-library):
9737 * lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
9738 * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p):
9739 * lisp/emacs-lisp/nadvice.el (advice--make-docstring):
9740 * lisp/emacs-lisp/package.el (package-compute-transaction)
9741 (package-install-button-action, package-delete-button-action)
9742 (package-menu--list-to-prompt):
9743 * lisp/emacs-lisp/timer.el (timer-event-handler):
9744 * lisp/emacs-lisp/warnings.el (lwarn, warn):
9745 * lisp/emulation/viper-cmd.el:
9746 (viper-toggle-parse-sexp-ignore-comments)
9747 (viper-kill-buffer, viper-brac-function):
9748 * lisp/emulation/viper-macs.el (viper-record-kbd-macro):
9749 * lisp/facemenu.el (facemenu-add-new-face):
9750 * lisp/faces.el (face-documentation, read-face-name)
9751 (face-read-string, read-face-font, describe-face):
9752 * lisp/files.el (find-alternate-file, hack-local-variables)
9753 (hack-one-local-variable--obsolete, write-file)
9754 (basic-save-buffer, delete-directory):
9755 * lisp/format.el (format-write-file, format-find-file)
9756 (format-insert-file):
9757 * lisp/help-fns.el (help-fns--key-bindings)
9758 (help-fns--compiler-macro, help-fns--obsolete)
9759 (help-fns--interactive-only, describe-function-1)
9760 (describe-variable):
9761 * lisp/help.el (describe-mode):
9762 * lisp/info-xref.el (info-xref-output):
9763 * lisp/info.el (Info-virtual-index-find-node)
9764 (Info-virtual-index, info-apropos):
9765 * lisp/international/kkc.el (kkc-error):
9766 * lisp/international/mule-cmds.el:
9767 (select-safe-coding-system-interactively)
9768 (select-safe-coding-system, describe-input-method):
9769 * lisp/international/mule-conf.el (code-offset):
9770 * lisp/international/mule-diag.el (describe-character-set)
9771 (list-input-methods-1):
9772 * lisp/international/quail.el (quail-error):
9773 * lisp/minibuffer.el (minibuffer-message):
9774 * lisp/mpc.el (mpc--debug):
9775 * lisp/msb.el (msb--choose-menu):
9776 * lisp/net/ange-ftp.el (ange-ftp-message):
9777 * lisp/net/gnutls.el (gnutls-message-maybe):
9778 * lisp/net/newst-backend.el (newsticker--sentinel-work):
9779 * lisp/net/newst-treeview.el (newsticker--treeview-load):
9780 * lisp/net/nsm.el (nsm-query-user):
9781 * lisp/net/rlogin.el (rlogin):
9782 * lisp/net/soap-client.el (soap-warning):
9783 * lisp/net/tramp.el (tramp-debug-message):
9784 * lisp/nxml/nxml-outln.el (nxml-report-outline-error):
9785 * lisp/nxml/nxml-parse.el (nxml-parse-error):
9786 * lisp/nxml/rng-cmpct.el (rng-c-error):
9787 * lisp/nxml/rng-match.el (rng-compile-error):
9788 * lisp/nxml/rng-uri.el (rng-uri-error):
9789 * lisp/obsolete/iswitchb.el (iswitchb-possible-new-buffer):
9790 * lisp/org/org-ctags.el:
9791 (org-ctags-ask-rebuild-tags-file-then-find-tag):
9792 * lisp/proced.el (proced-log):
9793 * lisp/progmodes/ebnf2ps.el (ebnf-log):
9794 * lisp/progmodes/flymake.el (flymake-log):
9795 * lisp/progmodes/vhdl-mode.el (vhdl-warning-when-idle):
9796 * lisp/replace.el (occur-1):
9797 * lisp/simple.el (execute-extended-command)
9798 (undo-outer-limit-truncate, define-alternatives):
9799 * lisp/startup.el (command-line):
9800 * lisp/subr.el (error, user-error, add-to-list):
9801 * lisp/tutorial.el (tutorial--describe-nonstandard-key)
9802 (tutorial--find-changed-keys):
9803 * src/callint.c (Fcall_interactively):
9804 * src/editfns.c (Fmessage, Fmessage_box):
9805 Restyle the quotes of format strings intended for use as a
9806 diagnostic, when restyling seems appropriate.
9807 * lisp/subr.el (format-message): New function.
9808 * src/doc.c (Finternal__text_restyle): New function.
9809 (syms_of_doc): Define it.
9810
9811 2015-08-23 Paul Eggert <eggert@cs.ucla.edu>
9812
9813 * etc/NEWS: The new ‘q’ flag is not an incompatible change.
9814
9815 2015-08-23 Fabián Ezequiel Gallina <fgallina@gnu.org>
9816
9817 python.el: Fix python-shell-buffer-substring on indented code
9818 (Bug#21086)
9819 * lisp/progmodes/python.el (python-shell-buffer-substring):
9820 Respect current line indentation when calculating string.
9821 * test/automated/python-tests.el
9822 (python-shell-buffer-substring-10)
9823 (python-shell-buffer-substring-11)
9824 (python-shell-buffer-substring-12): New tests.
9825
9826 2015-08-23 Paul Eggert <eggert@cs.ucla.edu>
9827
9828 Fix minor glitches from ‘format’ reversion
9829 * doc/lispref/strings.texi (Formatting Strings):
9830 After reversion, ‘text-quoting-style’ is documented in ‘Keys in
9831 Documentation’, not below.
9832 * src/syntax.c (Finternal_describe_syntax_value):
9833 Prefer AUTO_STRING to build_string where either will do, as
9834 AUTO_STRING is a bit faster.
9835
9836 2015-08-23 Fabián Ezequiel Gallina <fgallina@gnu.org>
9837
9838 python.el: Defer shell setup code until first interactive prompt
9839 * lisp/progmodes/python.el
9840 (python-shell-comint-watch-for-first-prompt-output-filter):
9841 New function.
9842 (inferior-python-mode): Use it.
9843 (python-shell-first-prompt-hook): New hook.
9844 (python-shell-send-setup-code)
9845 (python-shell-completion-native-turn-on-maybe-with-msg): Attach to
9846 this hook instead of inferior-python-hook.
9847
9848 2015-08-23 Nicolas Petton <nicolas@petton.fr>
9849
9850 Remove the calls to `seq-into` from `seq-concatenate`
9851 Since most new types of seq would have to be defined as sequences (cons
9852 cells or CL structs, mostly), there is no need to convert the seqs to
9853 sequences (which can be a fairly expensive operation).
9854 * lisp/emacs-lisp/seq.el (seq-concatenate): Do not ensure that seqs are
9855 sequences.
9856
9857 2015-08-23 Fabián Ezequiel Gallina <fgallina@gnu.org>
9858
9859 python.el: Fix completion for pdb interactions
9860 * lisp/progmodes/python.el (python-shell-completion-setup-code):
9861 Simplify. Toggle print_mode for native wrapped completer.
9862 (python-shell-completion-native-setup): Ensure process buffer.
9863 Add print_mode attribute to completer wrapper to toggle returning
9864 or printing candidates.
9865 (python-shell-completion-native-get-completions): Cleanup.
9866 (python-shell-completion-get-completions): Cleanup.
9867 (python-shell-completion-at-point): Perform prompt checks.
9868 Force fallback completion in pdb interactions.
9869
9870 2015-08-23 Nicolas Petton <nicolas@petton.fr>
9871
9872 Make seq.el more extensible by using cl-defmethod
9873 * lisp/emacs-lisp/seq.el: Define seq.el functions using cl-defmethod to
9874 make it easier to extend seq.el with new "seq types".
9875 * test/automated/seq-tests.el (test-setf-seq-elt): New test.
9876 * lisp/emacs-lisp/cl-extra.el (cl-subseq): Move back the definition of
9877 subseq in cl-extra.el, and use it in seq.el.
9878
9879 2015-08-23 Fabián Ezequiel Gallina <fgallina@gnu.org>
9880
9881 python.el: Fix prompt detection with user overridden interpreter
9882 * lisp/progmodes/python.el (python-shell-prompt-detect):
9883 Honor buffer local python-shell-interpreter and
9884 python-shell-interpreter-interactive-arg.
9885
9886 2015-08-23 Eli Zaretskii <eliz@gnu.org>
9887
9888 Support exec-directory with non-ASCII characters on Windows
9889 * src/w32proc.c (sys_spawnve): Make sure exec-directory is encoded
9890 in the system's ANSI codepage, when it is used for invoking
9891 cmdproxy.
9892
9893 2015-08-23 Andreas Schwab <schwab@linux-m68k.org>
9894
9895 Revert "Extend ‘format’ to translate curved quotes"
9896 This reverts commit 244c801689d2f7a80480d83cd7d092d4762ebe08.
9897
9898 Revert "Prefer ‘format’ to ‘substitute-command-keys’"
9899 This reverts commit 6af5aad26411ffe21c3fe4bc5438347110910111.
9900
9901 2015-08-23 Xue Fuqiao <xfq.free@gmail.com>
9902
9903 * doc/lispintro/emacs-lisp-intro.texi (Switching Buffers):
9904 Clarify "invisible window".
9905
9906 2015-08-23 Xue Fuqiao <xfq.free@gmail.com>
9907
9908 * doc/emacs/modes.texi (Choosing Modes): Minor doc fix for
9909 magic-fallback-mode-alist.
9910
9911 2015-08-22 Fabián Ezequiel Gallina <fgallina@gnu.org>
9912
9913 python.el: fallback completion, ffap and eldoc setup enhancements
9914 Setup codes are now sent continuously so that the current frame is
9915 always taken into account. This allows working within debuggers
9916 and always keeping a fresh version of setup codes that will return
9917 proper results.
9918 * lisp/progmodes/python.el (python-shell-setup-codes): Cleanup.
9919 (python-shell-send-setup-code): Send code only when
9920 python-shell-setup-codes is non-nil.
9921 (python-shell-completion-string-code): Cleanup trailing newline.
9922 (python-shell-completion-get-completions): Always use
9923 python-shell-completion-setup-code.
9924 (python-ffap-setup-code): Work with any object, not only modules.
9925 (python-ffap-string-code): Cleanup trailing newline.
9926 (python-ffap-module-path): Always use python-ffap-setup-code.
9927 (python-eldoc-string-code): Cleanup trailing newline.
9928 (python-eldoc--get-doc-at-point): Always use
9929 python-eldoc-setup-code. Return non-nil only if docstring is
9930 found.
9931
9932 python.el: Increase native completion robustness
9933 * lisp/progmodes/python.el (python-shell-completion-native-setup):
9934 Make completer print real candidates and just return dummy ones to
9935 avoid input modification.
9936 (python-shell-completion-native-get-completions): Set
9937 comint-redirect-insert-matching-regexp to non-nil and make
9938 comint-redirect-finished-regexp match the last dummy candidate.
9939 Use python-shell-accept-process-output to wait for the full list
9940 of candidates.
9941
9942 2015-08-22 Eli Zaretskii <eliz@gnu.org>
9943
9944 Fix invocation of programs via cmdproxy.exe
9945 * src/w32proc.c (sys_spawnve): Use exec-directory, not
9946 invocation-directory, for finding cmdproxy.exe. When Emacs is
9947 run from the source tree, look for cmdproxy.exe in the same source
9948 tree. (Bug#21323)
9949
9950 2015-08-22 Simen Heggestøyl <simenheg@gmail.com>
9951
9952 Handle comments inside unquoted URIs in css-mode
9953 * lisp/textmodes/css-mode.el (css--uri-re): New defconst.
9954 (css-syntax-propertize-function): New defconst.
9955 (css--font-lock-keywords): Handle parens around unquoted URIs.
9956 (css-mode): Set `syntax-propertize-function'.
9957
9958 2015-08-22 Eli Zaretskii <eliz@gnu.org>
9959
9960 Support invocation of Hunspell with multiple dictionaries
9961 * lisp/textmodes/ispell.el (ispell-parse-hunspell-affix-file):
9962 Support lists of dictionaries of the form "DICT1,DICT2,...".
9963 (ispell-hunspell-add-multi-dic): New command. (Bug#20495)
9964
9965 Minor formatting changes in ispell.el
9966 * lisp/textmodes/ispell.el (ispell-create-debug-buffer)
9967 (ispell-print-if-debug, ispell-aspell-find-dictionary)
9968 (ispell-aspell-add-aliases, ispell-hunspell-dict-paths-alist)
9969 (ispell-hunspell-dictionary-alist)
9970 (ispell-hunspell-fill-dictionary-entry)
9971 (ispell-find-hunspell-dictionaries, ispell-send-replacement)
9972 (ispell-buffer-with-debug, ispell-complete-word)
9973 (ispell-current-dictionary, ispell-current-personal-dictionary)
9974 (ispell-accept-output, ispell-minor-mode)
9975 (ispell-personal-dictionary, ispell-dictionary-alist)
9976 (ispell-really-aspell, ispell-really-hunspell)
9977 (ispell-encoding8-command, ispell-aspell-supports-utf8)
9978 (ispell-aspell-dictionary-alist, ispell-set-spellchecker-params):
9979 Fix whitespace, inconsistent capitalization, and arguments in doc
9980 strings.
9981
9982 2015-08-22 Martin Rudalics <rudalics@gmx.at>
9983
9984 * lisp/window.el (adjust-window-trailing-edge): Fix bug where this
9985 function refused to resize a size-preserved window.
9986
9987 2015-08-22 Eli Zaretskii <eliz@gnu.org>
9988
9989 * doc/lispref/windows.texi (Selecting Windows): Improve
9990 documentation and indexing of 'window-use-time'.
9991
9992 2015-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
9993
9994 * lisp/progmodes/cc-vars.el, lisp/progmodes/cc-styles.el:
9995 * lisp/progmodes/cc-mode.el, lisp/progmodes/cc-menus.el:
9996 * lisp/progmodes/cc-langs.el, lisp/progmodes/cc-guess.el:
9997 * lisp/progmodes/cc-fonts.el, lisp/progmodes/cc-engine.el:
9998 * lisp/progmodes/cc-defs.el, lisp/progmodes/cc-cmds.el:
9999 * lisp/progmodes/cc-bytecomp.el, lisp/progmodes/cc-awk.el:
10000 * lisp/progmodes/cc-align.el, lisp/net/soap-client.el:
10001 Fix up commenting style.
10002
10003 2015-08-21 Paul Eggert <eggert@cs.ucla.edu>
10004
10005 text-quoting-style in emacs-lisp diagnostics
10006 * lisp/emacs-lisp/advice.el (ad-read-advised-function)
10007 (ad-read-advice-class, ad-read-advice-name, ad-enable-advice)
10008 (ad-disable-advice, ad-remove-advice, ad-set-argument)
10009 (ad-set-arguments):
10010 * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand)
10011 (byte-compile-unfold-lambda, byte-optimize-form-code-walker)
10012 (byte-optimize-while, byte-optimize-apply):
10013 * lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode)
10014 (byte-compile-log-file, byte-compile-format-warn)
10015 (byte-compile-nogroup-warn, byte-compile-arglist-warn)
10016 (byte-compile-cl-warn)
10017 (byte-compile-warn-about-unresolved-functions)
10018 (byte-compile-file, byte-compile-fix-header)
10019 (byte-compile--declare-var, byte-compile-file-form-defmumble)
10020 (byte-compile-form, byte-compile-normal-call)
10021 (byte-compile-variable-ref, byte-compile-variable-set)
10022 (byte-compile-subr-wrong-args, byte-compile-setq-default)
10023 (byte-compile-negation-optimizer)
10024 (byte-compile-condition-case--old)
10025 (byte-compile-condition-case--new, byte-compile-save-excursion)
10026 (byte-compile-defvar, byte-compile-autoload)
10027 (byte-compile-lambda-form)
10028 (byte-compile-make-variable-buffer-local, display-call-tree)
10029 (batch-byte-compile):
10030 * lisp/emacs-lisp/cconv.el (cconv-convert, cconv--analyze-use)
10031 (cconv-analyze-form):
10032 * lisp/emacs-lisp/chart.el (chart-space-usage):
10033 * lisp/emacs-lisp/check-declare.el (check-declare-scan)
10034 (check-declare-warn, check-declare-file)
10035 (check-declare-directory):
10036 * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine)
10037 (checkdoc-message-text-engine):
10038 * lisp/emacs-lisp/cl-extra.el (cl-parse-integer):
10039 * lisp/emacs-lisp/cl-macs.el (cl--parse-loop-clause, cl-tagbody)
10040 (cl-symbol-macrolet):
10041 * lisp/emacs-lisp/cl.el (cl-unload-function, flet):
10042 * lisp/emacs-lisp/copyright.el (copyright)
10043 (copyright-update-directory):
10044 * lisp/emacs-lisp/edebug.el (edebug-read-list):
10045 * lisp/emacs-lisp/eieio-base.el (eieio-persistent-read):
10046 * lisp/emacs-lisp/eieio-core.el (eieio--slot-override)
10047 (eieio-oref, eieio-oset-default):
10048 * lisp/emacs-lisp/eieio-speedbar.el:
10049 (eieio-speedbar-child-make-tag-lines)
10050 (eieio-speedbar-child-description):
10051 * lisp/emacs-lisp/eieio.el (defclass, change-class):
10052 * lisp/emacs-lisp/elint.el (elint-file, elint-get-top-forms)
10053 (elint-init-form, elint-check-defalias-form)
10054 (elint-check-let-form):
10055 * lisp/emacs-lisp/ert.el (ert-get-test):
10056 * lisp/emacs-lisp/find-func.el (find-function-search-for-symbol)
10057 (find-function-library):
10058 * lisp/emacs-lisp/generator.el (iter-yield):
10059 * lisp/emacs-lisp/gv.el (gv-define-simple-setter):
10060 * lisp/emacs-lisp/lisp-mnt.el (lm-verify):
10061 * lisp/emacs-lisp/package-x.el (package-upload-file):
10062 * lisp/emacs-lisp/package.el (package-version-join)
10063 (package-disabled-p, package-activate-1, package-activate)
10064 (package--download-one-archive)
10065 (package--download-and-read-archives)
10066 (package-compute-transaction, package-install-from-archive)
10067 (package-install, package-install-selected-packages)
10068 (package-delete, package-autoremove)
10069 (package-install-button-action, package-delete-button-action)
10070 (package-menu-hide-package, package-menu--list-to-prompt)
10071 (package-menu--perform-transaction)
10072 (package-menu--find-and-notify-upgrades):
10073 * lisp/emacs-lisp/pcase.el (pcase-exhaustive, pcase--u1):
10074 * lisp/emacs-lisp/re-builder.el (reb-enter-subexp-mode):
10075 * lisp/emacs-lisp/ring.el (ring-next, ring-previous):
10076 * lisp/emacs-lisp/rx.el (rx-check, rx-anything):
10077 * lisp/emacs-lisp/smie.el (smie-config-save):
10078 * lisp/emacs-lisp/subr-x.el (internal--check-binding):
10079 * lisp/emacs-lisp/testcover.el (testcover-1value):
10080 Use curved quotes in diagnostic format strings.
10081
10082 2015-08-21 Fabián Ezequiel Gallina <fgallina@gnu.org>
10083
10084 python.el: Ensure remote process-environment on non-interactive processes
10085 * lisp/progmodes/python.el
10086 (python-shell-tramp-refresh-process-environment): New function.
10087 (python-shell-with-environment): Use it.
10088 * test/automated/python-tests.el (python-shell-with-environment-2):
10089 Update.
10090
10091 python.el: Enhancements to process environment setup.
10092 * lisp/progmodes/python.el (python-shell-process-environment)
10093 (python-shell-extra-pythonpaths, python-shell-exec-path)
10094 (python-shell-virtualenv-root): Update docstring. Remove :safe.
10095 (python-shell-setup-codes): Remove :safe.
10096 (python-shell-remote-exec-path): New defcustom.
10097 (python-shell--add-to-path-with-priority): New macro.
10098 (python-shell-calculate-pythonpath): Give priority to
10099 python-shell-extra-pythonpaths. Update docstring.
10100 (python-shell-calculate-process-environment): Give priority to
10101 python-shell-process-environment. Update docstring.
10102 (python-shell-calculate-exec-path): Give priority to
10103 python-shell-exec-path and calculated virtualenv bin directory.
10104 Update docstring.
10105 (python-shell-tramp-refresh-remote-path): New function.
10106 (python-shell-with-environment): Use it when working remotely and
10107 do not modify tramp-remote-path. Allow nesting.
10108 (python-shell-calculate-command): Remove useless
10109 python-shell-with-environment call.
10110 * test/automated/python-tests.el (python-shell-calculate-pythonpath-1)
10111 (python-shell-calculate-pythonpath-2)
10112 (python-shell-calculate-process-environment-6)
10113 (python-shell-calculate-process-environment-7)
10114 (python-shell-calculate-process-environment-8)
10115 (python-shell-calculate-exec-path-3)
10116 (python-shell-calculate-exec-path-4)
10117 (python-shell-calculate-exec-path-5)
10118 (python-shell-calculate-exec-path-6)
10119 (python-shell-with-environment-3): New tests.
10120 (python-shell-calculate-process-environment-2)
10121 (python-shell-calculate-process-environment-3)
10122 (python-shell-calculate-process-environment-4)
10123 (python-shell-calculate-process-environment-5)
10124 (python-shell-calculate-exec-path-1)
10125 (python-shell-calculate-exec-path-2)
10126 (python-shell-with-environment-1)
10127 (python-shell-with-environment-2): Update and simplify.
10128
10129 2015-08-21 Paul Eggert <eggert@cs.ucla.edu>
10130
10131 Avoid hard-coding "M-x command" in docstrings
10132 * lisp/calendar/todo-mode.el (todo-mode):
10133 * lisp/desktop.el (desktop-save-mode):
10134 * lisp/edmacro.el (edit-kbd-macro):
10135 * lisp/emacs-lisp/package.el (package-menu-execute):
10136 * lisp/emulation/viper-cmd.el (viper-ask-level):
10137 * lisp/emulation/viper-init.el (viper-expert-level):
10138 * lisp/filesets.el (filesets-add-buffer):
10139 * lisp/follow.el (follow-mode):
10140 * lisp/gnus/auth-source.el (auth-sources):
10141 * lisp/international/ogonek.el (ogonek-informacja)
10142 (ogonek-information):
10143 * lisp/net/tramp.el (tramp-process-actions):
10144 * lisp/org/org-gnus.el (org-gnus-no-new-news):
10145 * lisp/org/org.el (org-ellipsis):
10146 * lisp/progmodes/python.el (python-shell-get-process-or-error):
10147 * lisp/progmodes/vhdl-mode.el (vhdl-mode):
10148 * lisp/server.el (server-start):
10149 * lisp/type-break.el (type-break-noninteractive-query):
10150 * lisp/userlock.el (ask-user-about-supersession-help):
10151 * lisp/whitespace.el (whitespace-report-region):
10152 Prefer (substitute-command-keys "`\\[foo-command]'")
10153 to "`M-x foo-command'" in docstrings and the like.
10154
10155 2015-08-21 Tassilo Horn <tsdh@gnu.org>
10156
10157 Use add-function for prettify-symbols-compose-predicate
10158 * lisp/textmodes/tex-mode.el (tex-common-initialization): Set
10159 prettify-symbols-compose-predicate in terms of add-function.
10160 * etc/NEWS: Mention prettify-symbols-compose-predicate and
10161 prettify-symbols-mode support in tex-mode.
10162
10163 2015-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
10164
10165 * lisp/emacs-lisp/smie.el (smie-indent-current-column): New fun.
10166 (smie-indent-exps, smie-indent-keyword): Use it.
10167 * test/indent/css-mode.css: Test alignment with leading comment.
10168
10169 2015-08-21 Paul Eggert <eggert@cs.ucla.edu>
10170
10171 Respect text-quoting-style in (*Finder*) menus
10172 * lisp/info.el (info--prettify-description):
10173 Treat description as a docstring, so that it's requoted as
10174 per text-quoting-style.
10175
10176 2015-08-21 Martin Rudalics <rudalics@gmx.at>
10177
10178 Document `window-use-time' in Elisp manual
10179 * doc/lispref/windows.texi (Selecting Windows): Document
10180 `window-use-time'.
10181
10182 2015-08-21 Eli Zaretskii <eliz@gnu.org>
10183
10184 * src/w32uniscribe.c (_WIN32_WINNT): Define to 0x0600.
10185 This is a cleaner fix for Bug#21260 than the previous change.
10186
10187 2015-08-21 Paul Eggert <eggert@cs.ucla.edu>
10188
10189 Respect text-quoting-style in calc
10190 In calc, tespect text-quoting-style preference in diagnostic
10191 formats and fix a few similar problems in docstrings.
10192 * lisp/calc/calc-aent.el (math-read-factor):
10193 * lisp/calc/calc-embed.el (calc-do-embedded):
10194 * lisp/calc/calc-ext.el (calc-user-function-list)
10195 * lisp/calc/calc-graph.el (calc-graph-show-dumb):
10196 * lisp/calc/calc-help.el (calc-describe-key)
10197 (calc-describe-thing):
10198 * lisp/calc/calc-lang.el (calc-c-language)
10199 (math-parse-fortran-vector-end, math-parse-tex-sum)
10200 (math-parse-eqn-matrix, math-parse-eqn-prime)
10201 (calc-yacas-language, calc-maxima-language, calc-giac-language)
10202 (math-read-big-rec, math-read-big-balance):
10203 * lisp/calc/calc-mode.el (calc-auto-why, calc-save-modes)
10204 (calc-auto-recompute):
10205 * lisp/calc/calc-prog.el (calc-user-define-invocation)
10206 (math-do-arg-check):
10207 * lisp/calc/calc-store.el (calc-edit-variable):
10208 * lisp/calc/calc-units.el (math-build-units-table-buffer):
10209 * lisp/calc/calc-vec.el (math-read-brackets):
10210 * lisp/calc/calc-yank.el (calc-edit-mode):
10211 * lisp/calc/calc.el (calc, calc-do, calc-user-invocation):
10212 Use curved quotes in diagnostic format strings.
10213 * lisp/calc/calc-help.el (calc-describe-thing):
10214 Format docstrings with substitute-command-keys.
10215 * lisp/calc/calc-help.el (calc-j-prefix-help):
10216 * lisp/calc/calc-misc.el (calc-help):
10217 * lisp/calc/calc-ext.el (calc-shift-Z-prefix-help):
10218 Escape a docstring "`".
10219
10220 2015-08-21 Eli Zaretskii <eliz@gnu.org>
10221
10222 Fix documentation of 'menu-set-font' and 'set-frame-font'
10223 * lisp/menu-bar.el (menu-set-font): Doc fix. (Bug#21303)
10224 * doc/lispref/frames.texi (Frame Font): Document that
10225 set-frame-font with the last argument 't' will also make the font
10226 the default for the future GUI frames.
10227
10228 Document '--create-frame' option to emacsclient
10229 * doc/emacs/misc.texi (emacsclient Options): Document the
10230 '--create-frame' option. (Bug#21308)
10231
10232 2015-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
10233
10234 * lisp/progmodes/js.el (js-mode): Don't eagerly syntax propertize.
10235
10236 2015-08-21 Eli Zaretskii <eliz@gnu.org>
10237
10238 Document 'get-mru-window' in the ELisp manual
10239 * doc/lispref/windows.texi (Cyclic Window Ordering): Document
10240 'get-mru-window'. (Bug#21306)
10241
10242 Clarify documentation of 'get-buffer-window-list'
10243 * doc/lispref/windows.texi (Buffers and Windows): Mention that the
10244 current window, if relevant, will be the first in the list
10245 returned by 'get-buffer-window-list'.
10246 * lisp/window.el (get-buffer-window-list): Doc fix. (Bug#21305)
10247
10248 2015-08-21 Vasilij Schneidermann <v.schneidermann@gmail.com>
10249
10250 In `ielm' use `pop-to-buffer-same-window' (Bug#20848)
10251 * lisp/ielm.el (ielm): Use `pop-to-buffer-same-window' instead of
10252 `switch-to-buffer'.
10253
10254 2015-08-21 Kaushal Modi <kaushal.modi@gmail.com> (tiny change)
10255
10256 In woman.el use `display-buffer' instead of `switch-to-buffer' (Bug#21047)
10257 * lisp/woman.el (woman-really-find-file, WoMan-find-buffer): Use
10258 `display-buffer' instead of `switch-to-buffer'.
10259
10260 2015-08-21 Paul Eggert <eggert@cs.ucla.edu>
10261
10262 Follow user preference in calendar diagnostics
10263 Respect text-quoting-style preference in diagnostic formats by
10264 using curved quotes (which are translated as per text-quoting-style)
10265 instead of grave accent and apostrophe (which are not).
10266 * lisp/calendar/appt.el (appt-display-message):
10267 * lisp/calendar/diary-lib.el (diary-check-diary-file)
10268 (diary-mail-entries, diary-from-outlook):
10269 * lisp/calendar/icalendar.el (icalendar-export-region)
10270 (icalendar--convert-float-to-ical)
10271 (icalendar--convert-date-to-ical)
10272 (icalendar--convert-ical-to-diary)
10273 (icalendar--convert-recurring-to-diary)
10274 (icalendar--add-diary-entry):
10275 * lisp/calendar/time-date.el (format-seconds):
10276 * lisp/calendar/timeclock.el (timeclock-mode-line-display)
10277 (timeclock-make-hours-explicit):
10278 * lisp/calendar/todo-mode.el (todo-prefix, todo-delete-category)
10279 (todo-item-mark, todo-check-format)
10280 (todo-insert-item--next-param, todo-edit-item--next-key)
10281 (todo-mode):
10282 Use curved quotes in diagnostic format strings.
10283 * lisp/calendar/icalendar.el (icalendar-import-format-sample):
10284 * test/automated/icalendar-tests.el (icalendar--import-format-sample):
10285 Just use straight quoting for simple test case.
10286
10287 2015-08-21 Michael Albinus <michael.albinus@gmx.de>
10288
10289 * src/gfilenotify.c (Fgfile_add_watch):
10290 Handle errors from g_file_monitor.
10291
10292 2015-08-21 Martin Rudalics <rudalics@gmx.at>
10293
10294 In frames.texi use "minibuffer-less frame" instead of "non-minibuffer frame"
10295 * doc/lispref/frames.texi (Frame Layout): Use "minibuffer-less
10296 frame" instead of "non-minibuffer frame".
10297
10298 Fix frame geometry related text
10299 * doc/lispref/frames.texi (Frame Layout):
10300 Rename `x-frame-geometry' to `frame-geometry'.
10301 * doc/lispref/frames.texi (Mouse Position):
10302 * doc/lispref/windows.texi (Coordinates and Windows):
10303 Use `set-mouse-absolute-pixel-position' instead of
10304 `x-set-mouse-absolute-pixel-position'.
10305
10306 Sanitize frame geometry related functions
10307 * src/nsfns.m (Fx_frame_geometry): Rename to Fns_frame_geometry.
10308 (Fx_frame_edges): Rename to Fns_frame_edges.
10309 * src/w32fns.c (Fx_frame_geometry): Rename to Fw32_frame_geometry.
10310 (Fx_frame_edges): Rename to Fw32_frame_edges.
10311 (Fx_mouse_absolute_pixel_position): Rename to
10312 Fw32_mouse_absolute_pixel_position.
10313 (Fx_set_mouse_absolute_pixel_position): Rename to
10314 Fw32_set_mouse_absolute_pixel_position.
10315 * lisp/frame.el (x-frame-geometry, w32-frame-geometry)
10316 (ns-frame-geometry, x-frame-edges, w32-frame-edges)
10317 (ns-frame-edges, w32-mouse-absolute-pixel-position)
10318 (x-mouse-absolute-pixel-position)
10319 (w32-set-mouse-absolute-pixel-position)
10320 (x-set-mouse-absolute-pixel-position): Declare.
10321 (frame-geometry, mouse-absolute-pixel-position)
10322 (set-mouse-absolute-pixel-position): New functions.
10323 (frame-edges): Rewrite in terms of x-/w32-/ns-frame-edges.
10324
10325 2015-08-21 Eli Zaretskii <eliz@gnu.org>
10326
10327 Fix MinGW64 build broken by latest w32uniscribe.c changes
10328 * src/w32uniscribe.c (UNISCRIBE_OPENTYPE): Define to 0x0100, for
10329 MinGW64. Reported by Andy Moreton <andrewjmoreton@gmail.com>.
10330 (Bug#21260)
10331
10332 2015-08-21 Tassilo Horn <tsdh@gnu.org>
10333
10334 Add TeX defaults for prettify-symbol-mode
10335 * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist):
10336 Rename from tex-prettify-symbols-alist.
10337 (tex--prettify-symbols-compose-p): New function.
10338 (tex-common-initialization): Use them as prettify-symbols-alist
10339 and prettify-symbols-compose-predicate.
10340
10341 Generalize prettify-symbols to arbitrary modes
10342 * lisp/progmodes/prog-mode.el
10343 (prettify-symbols-default-compose-p): New function.
10344 (prettify-symbols-compose-predicate): New variable.
10345 (prettify-symbols--compose-symbol): Use it.
10346
10347 2015-08-20 Paul Eggert <eggert@cs.ucla.edu>
10348
10349 Don't quote symbols 'like-this' in docstrings etc.
10350 * admin/unidata/uvs.el (uvs-insert-fields-as-bytes):
10351 * lisp/allout-widgets.el (allout-widgets-count-buttons-in-region):
10352 * lisp/allout.el (allout-add-resumptions, allout-mode):
10353 * lisp/calculator.el (calculator-operators):
10354 * lisp/cedet/data-debug.el (dd-propertize):
10355 * lisp/cedet/ede/proj-prog.el (ede-proj-target-makefile-program):
10356 * lisp/cedet/semantic/analyze/debug.el:
10357 (semantic-analyzer-debug-global-miss-text):
10358 * lisp/cedet/semantic/lex-spp.el:
10359 (semantic-lex-spp-replace-or-symbol-or-keyword):
10360 * lisp/cedet/semantic/symref.el:
10361 (semantic-symref-cleanup-recent-buffers-fcn):
10362 * lisp/cedet/semantic/tag.el (semantic-tag-class):
10363 * lisp/cedet/srecode/el.el (srecode-semantic-handle-:el-custom):
10364 * lisp/gnus/nnmairix.el (nnmairix-propagate-marks-upon-close):
10365 * lisp/gnus/pop3.el (pop3-authentication-scheme):
10366 * lisp/help-fns.el (describe-function-orig-buffer):
10367 * lisp/imenu.el (imenu--history-list):
10368 * lisp/mail/feedmail.el (feedmail-confirm-outgoing)
10369 (feedmail-display-full-frame, feedmail-deduce-bcc-where)
10370 (feedmail-queue-default-file-slug)
10371 (feedmail-queue-buffer-file-name):
10372 * lisp/net/mairix.el (mairix-searches-mode-map):
10373 * lisp/net/newst-backend.el (newsticker-retrieval-method)
10374 (newsticker-auto-mark-filter-list):
10375 * lisp/obsolete/vi.el (vi-mode):
10376 * lisp/progmodes/cc-engine.el (c-literal-type):
10377 * lisp/progmodes/cpp.el (cpp-face):
10378 * lisp/progmodes/ebrowse.el (ebrowse-electric-list-looper):
10379 * lisp/progmodes/elisp-mode.el (elisp--xref-make-xref):
10380 * lisp/progmodes/pascal.el (pascal-auto-lineup):
10381 * lisp/progmodes/prog-mode.el (prog-widen):
10382 * lisp/progmodes/verilog-mode.el (verilog-regexp-words)
10383 (verilog-auto-lineup, verilog-auto-reset-widths)
10384 (verilog-auto-arg-format, verilog-auto-inst-template-numbers):
10385 * lisp/textmodes/flyspell.el (flyspell-maybe-correct-transposition)
10386 (flyspell-maybe-correct-doubling):
10387 * lisp/textmodes/table.el (table-justify, table-justify-cell)
10388 (table-justify-row, table-justify-column, table-insert-sequence)
10389 (table--justify-cell-contents):
10390 * lisp/url/url-auth.el (url-get-authentication):
10391 * lisp/window.el (display-buffer-record-window):
10392 * lisp/xml.el (xml-parse-file, xml-parse-region):
10393 * src/gfilenotify.c (Fgfile_add_watch):
10394 Don't quote symbols with apostrophes in doc strings.
10395 Use asymmetric quotes instead.
10396 * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
10397 Likewise for symbol in diagnostic.
10398 * lisp/image.el (image-extension-data):
10399 * lisp/register.el (frame-configuration-to-register):
10400 * src/buffer.c (syms_of_buffer):
10401 Remove bogus apostrophes after symbols.
10402 * lisp/thumbs.el (thumbs-conversion-program):
10403 Quote Lisp string values using double-quotes, not apostrophes.
10404
10405 2015-08-20 Martin Rudalics <rudalics@gmx.at>
10406
10407 Describe frame geometry and related functions in Elisp manual
10408 * doc/lispref/display.texi (Size of Displayed Text, Line Height)
10409 (Showing Images): Update references.
10410 * doc/lispref/elisp.texi (Top): Update node listing.
10411 * doc/lispref/frames.texi (Frame Geometry): New node.
10412 Move `Size and Position' section here.
10413 (Size Parameters): Update references.
10414 (Mouse Position): Update references and nomenclature.
10415 Describe new functions `x-mouse-absolute-pixel-position' and
10416 `x-set-mouse-absolute-pixel-position'.
10417 * doc/lispref/windows.texi (Window Sizes): Update references.
10418 (Resizing Windows): Update references. Move description of
10419 `fit-frame-to-buffer' here.
10420 (Coordinates and Windows): Update nomenclature and references.
10421 Describe new arguments of `window-edges'. Comment out
10422 descriptions of `window-left-column', `window-top-line',
10423 `window-pixel-left' and `window-pixel-top'. Describe
10424 `window-absolute-pixel-position'.
10425
10426 2015-08-20 Alan Mackenzie <acm@muc.de>
10427
10428 Handling of `c-parse-state'. Fix low level bug.
10429 * lisp/progmodes/cc-engine.el (c-remove-stale-state-cache-backwards):
10430 Add "CASE 3.5" to handle `cache-pos' being only slightly before `here'.
10431
10432 2015-08-20 Andreas Politz <politza@hochschule-trier.de>
10433
10434 * lisp/wid-edit.el (widget-color--choose-action): Quit *Color*
10435 window instead of deleting it.
10436
10437 2015-08-20 Martin Rudalics <rudalics@gmx.at>
10438
10439 In w32fns.c's Fx_frame_geometry rewrite check whether frame has a titlebar
10440 * src/w32fns.c (Fx_frame_geometry): Use title_bar.rgstate[0] to
10441 determine whether frame has a titlebar.
10442 Suggested by Eli Zaretskii <eliz@gnu.org>
10443
10444 2015-08-20 Tassilo Horn <tsdh@gnu.org>
10445
10446 Add a prettify-symbols-alist for (La)TeX
10447 * lisp/textmodes/tex-mode.el (tex-prettify-symbols-alist):
10448 New variable holding an alist suitable as prettify-symbols-alist in
10449 (La)TeX modes.
10450
10451 2015-08-19 Alan Mackenzie <acm@muc.de>
10452
10453 Make electric-pair-mode, delete-selection-mode and CC Mode cooperate.
10454 Fixes debbugs#21275.
10455 In Emacs >= 25, let electric-pair-mode take precedence over
10456 delete-selection-mode.
10457 * lisp/delsel.el (delete-selection-uses-region-p): New function,
10458 previously a lambda expression in a property value for
10459 `self-insert-command'.
10460 (top-level): Set the `delete-selection' property of
10461 `self-insert-command' to `delete-selection-uses-region-p'.
10462 * lisp/progmodes/cc-cmds.el (top-level): Give the `delete-selection'
10463 property for c-electric-\(brace\|paren\) the value
10464 `delete-selection-uses-region-p' when the latter function exists.
10465
10466 2015-08-19 Paul Eggert <eggert@cs.ucla.edu>
10467
10468 Fix key binding quoting in tutorial *Help*
10469 * lisp/tutorial.el (tutorial--describe-nonstandard-key):
10470 When generating help for custom key bindings, use the user-preferred
10471 quoting style rather than hardcoding the grave style.
10472
10473 2015-08-19 Eli Zaretskii <eliz@gnu.org>
10474
10475 Improve and future-proof OTF fonts support in w32uniscribe.c
10476 * src/w32uniscribe.c (uniscribe_otf_capability): Add commentary
10477 about the expected results and why the new Uniscribe APIs are not
10478 used in this function.
10479 (ScriptGetFontScriptTags_Proc, ScriptGetFontLanguageTags_Proc)
10480 (ScriptGetFontFeatureTags_Proc): New function typedefs.
10481 (uniscribe_new_apis): New static variable.
10482 (uniscribe_check_features): New function, implements OTF features
10483 verification while correctly accounting for features in the list
10484 after the nil member, if any.
10485 (uniscribe_check_otf_1): New function, retrieves the features
10486 supported by the font for the requested script and language using
10487 the Uniscribe APIs available from Windows Vista onwards.
10488 (uniscribe_check_otf): If the new Uniscribe APIs are available,
10489 use them in preference to reading the font data directly. Call
10490 uniscribe_check_features to verify that the requested features are
10491 supported, replacing the original incomplete code.
10492 (syms_of_w32uniscribe): Initialize function pointers for the new
10493 Uniscribe APIs. (Bug#21260)
10494 (otf_features): Scan the script, langsys, and feature arrays back
10495 to front, so that the result we return has them in alphabetical
10496 order, like ftfont.c does.
10497 * src/w32fns.c (syms_of_w32fns) <w32-disable-new-uniscribe-apis>:
10498 New variable for debugging w32uniscribe.c code.
10499
10500 2015-08-19 Artur Malabarba <bruce.connor.am@gmail.com>
10501
10502 * lisp/isearch.el (isearch-search-fun-default): Revert a5bdb87
10503 Remove usage of `isearch-lax-whitespace' inside the `iearch-word'
10504 clause of `isearch-search-fun-default'. That lax variable does not
10505 refer to lax-whitespacing. Related to (bug#21777).
10506 This reverts commit a5bdb872edb9f031fe041faf9a8c0be432e5f64c.
10507 * lisp/character-fold.el (character-fold-search): Set to nil.
10508 Default to nil for now, until someone implements proper
10509 lax-whitespacing with char-fold searching.
10510
10511 2015-08-19 Martin Rudalics <rudalics@gmx.at>
10512
10513 Fix doc-string of `help-mode-finish'.
10514 * lisp/help-mode.el (help-mode-finish): Fix doc-string.
10515
10516 In nsimage.m include coding.h (Bug#21292)
10517 * src/nsimage.m (top-level): Include coding.h (Bug#21292).
10518
10519 Move window edge functions to Elisp.
10520 * src/window.c (Fwindow_edges, Fwindow_pixel_edges)
10521 (Fwindow_absolute_pixel_edges, Fwindow_inside_edges)
10522 (Fwindow_inside_pixel_edges, Fwindow_inside_absolute_pixel_edges):
10523 Move to window.el.
10524 (calc_absolute_offset): Remove.
10525 * lisp/frame.el (frame-edges): New function.
10526 * lisp/window.el (window-edges, window-pixel-edges)
10527 (window-absolute-pixel-edges): Move here from window.c.
10528 (window-body-edges, window-body-pixel-edges)
10529 (window-absolute-body-pixel-edges): Move here from window.c and
10530 rename "inside" to "body". Keep old names as aliases.
10531 (window-absolute-pixel-position): New function.
10532
10533 2015-08-19 Katsumi Yamaoka <yamaoka@jpl.org>
10534
10535 [Gnus]: Use overlay functions directly
10536 * lisp/gnus/gnus-art.el (gnus-mime-inline-part, gnus-mm-display-part)
10537 (gnus-insert-mime-button, gnus-mime-buttonize-attachments-in-header)
10538 (gnus-article-highlight-signature, gnus-article-extend-url-button)
10539 (gnus-article-add-button, gnus-insert-prev-page-button)
10540 (gnus-insert-next-page-button, gnus-insert-mime-security-button):
10541 * lisp/gnus/gnus-cite.el (gnus-cite-delete-overlays)
10542 (gnus-cite-add-face):
10543 * lisp/gnus/gnus-html.el (gnus-html-wash-tags):
10544 * lisp/gnus/gnus-salt.el (gnus-tree-read-summary-keys)
10545 (gnus-tree-recenter, gnus-highlight-selected-tree):
10546 * lisp/gnus/gnus-sum.el (gnus-summary-show-all-threads)
10547 (gnus-summary-show-thread, gnus-summary-hide-thread)
10548 (gnus-highlight-selected-summary):
10549 * lisp/gnus/gnus-util.el (gnus-put-overlay-excluding-newlines):
10550 * lisp/gnus/message.el (message-fix-before-sending)
10551 (message-toggle-image-thumbnails):
10552 * lisp/gnus/mm-decode.el (mm-convert-shr-links):
10553 * lisp/gnus/sieve.el (sieve-highlight, sieve-insert-scripts):
10554 Use overlay functions directly instead of using gnus-overlay-*,
10555 message-overlay-*, and sieve-overlay-*.
10556 * lisp/gnus/gnus-sum.el (gnus-remove-overlays):
10557 * lisp/gnus/gnus.el (gnus-make-overlay, gnus-copy-overlay)
10558 (gnus-delete-overlay, gnus-overlay-get, gnus-overlay-put)
10559 (gnus-move-overlay, gnus-overlay-buffer, gnus-overlay-start)
10560 (gnus-overlay-end, gnus-overlays-at, gnus-overlays-in):
10561 * lisp/gnus/message.el (message-delete-overlay, message-make-overlay)
10562 (message-overlay-get, message-overlay-put, message-overlays-in):
10563 * lisp/gnus/sieve.el (sieve-make-overlay, sieve-overlay-put)
10564 (sieve-overlays-at): Remove.
10565
10566 2015-08-19 Martin Rudalics <rudalics@gmx.at>
10567
10568 In w32fns.c condition TITLEBAR_INFO declaration on WINDOWS version
10569 * src/w32fns.c (TITLEBAR_INFO): Make it a typedef so MinGW64
10570 builds can use the declaration from the system headers.
10571 (GetTitleBarInfo_Proc, Fx_frame_geometry): Adapt to new
10572 definition of TITLEBAR_INFO.
10573 Suggested by Eli Zaretskii <eliz@gnu.org>
10574
10575 2015-08-19 Glenn Morris <rgm@gnu.org>
10576
10577 * lisp/gnus/nnmaildir.el (nnmaildir-flag-mark-mapping): Add "P".
10578
10579 2015-08-19 Paul Eggert <eggert@cs.ucla.edu>
10580
10581 Use new q ‘format’ flag when fixing quotes in C
10582 * src/image.c (image_size_error): New function. All uses of
10583 image_error with "Invalid image size ..." changed to use it.
10584 * src/image.c (image_size_error, xbm_load_image, xbm_load)
10585 (xpm_load, xpm_load_image, xpm_load, pbm_load, png_load_body)
10586 (jpeg_load_body, tiff_load, gif_load, imagemagick_load_image)
10587 (imagemagick_load, svg_load, svg_load_image, gs_load)
10588 (x_kill_gs_process):
10589 * src/lread.c (load_warn_old_style_backquotes):
10590 * src/xfaces.c (load_pixmap):
10591 * src/xselect.c (x_clipboard_manager_error_1):
10592 Use %qs, not uLSQM and uRSQM.
10593 * src/syntax.c (Finternal_describe_syntax_value):
10594 Prefer Fsubstitute_command_keys to Fformat, as this lets
10595 us use AUTO_STRING.
10596 * src/xdisp.c (vadd_to_log): Use AUTO_STRING on the format argument,
10597 as it's now guaranteed to be ASCII.
10598 * src/xselect.c (x_clipboard_manager_error_2):
10599 Avoid grave accent in low-level stderr diagnostic.
10600
10601 2015-08-19 Paul Eggert <eggert@Penguin.CS.UCLA.EDU>
10602
10603 New q flag for ‘format’
10604 * doc/lispref/processes.texi (Sentinels):
10605 Don't hardwire grave quoting style in example.
10606 * doc/lispref/strings.texi (Formatting Strings):
10607 * etc/NEWS:
10608 Document new q flag.
10609 * src/editfns.c (Fformat): Implement it.
10610
10611 2015-08-18 Daiki Ueno <ueno@gnu.org>
10612
10613 pinentry.el: Add debugging support
10614 * lisp/net/pinentry.el (pinentry-debug): New variable.
10615 (pinentry-debug-buffer): New variable.
10616 (pinentry--process-filter): Send input to the debug buffer, if
10617 `pinentry-debug' is set.
10618
10619 pinentry.el: Improve multiline prompt
10620 * lisp/net/pinentry.el (pinentry--prompt): Simplify the interface.
10621 (pinentry--process-filter): Use `pinentry--prompt' for CONFIRM
10622 command.
10623
10624 2015-08-18 Paul Eggert <eggert@cs.ucla.edu>
10625
10626 Fix multibyte confusion in diagnostics
10627 * src/print.c (print_error_message):
10628 Don't assume that the caller's name is unibyte.
10629 * src/xdisp.c (vadd_to_log):
10630 Don't assume that the formatted diagnostic is unibyte.
10631
10632 Fix file name encodings in diagnostics
10633 Also, close some minor races when opening image files, by opening
10634 them once instead of multiple times.
10635 * src/gtkutil.c (xg_get_image_for_pixmap):
10636 * src/image.c (xpm_load, tiff_load, gif_load, imagemagick_load)
10637 (svg_load):
10638 * src/nsimage.m (allocInitFromFile:):
10639 * src/xfns.c (xg_set_icon):
10640 Encode file name, since x_find_image_file no longer does that.
10641 * src/image.c (x_find_image_fd): New function.
10642 (x_find_image_file): Use it. Do not encode resulting file name,
10643 since callers sometimes need it decoded.
10644 (slurp_file): File arg is now a fd, not a file name.
10645 All callers changed. This saves us having to open the file twice.
10646 (xbm_load, xpm_load, pbm_load, png_load_body, jpeg_load_body)
10647 (svg_load):
10648 Use x_find_image_fd and fdopen to save a file-open.
10649 Report file name that failed.
10650 * src/lread.c (openp): If PREDICATE is t, open the file in binary mode.
10651
10652 2015-08-18 Dmitry Gutov <dgutov@yandex.ru>
10653
10654 Allow blink-matching-paren to jump off screen
10655 * doc/emacs/programs.texi (Matching): Mention the
10656 `blink-matching-paren' value `jump-offscreen'.
10657 * lisp/simple.el (blink-matching-paren): New possible value.
10658 (blink-matching-paren-on-screen): Clarify the docstring.
10659 (blink-matching-open): Handle `jump-offscreen' (bug#21286).
10660
10661 Refine the previous change
10662 * lisp/simple.el (blink-matching-open): Use minibuffer-message
10663 outside of save-excursion (bug#21286).
10664
10665 2015-08-18 Martin Rudalics <rudalics@gmx.at>
10666
10667 Rewrite and add frame geometry related functions.
10668 * src/frame.c (Fframe_position): New function.
10669 (Fset_frame_position): Rename parameters and rewrite doc-string.
10670 (syms_of_frame): Remove Qframe_position, Qframe_outer_size,
10671 Qtitle_height and Qframe_inner_size. Add Qouter_edges,
10672 Qouter_position, Qouter_size, Qnative_edges, Qinner_edges,
10673 Qtitle_bar_size.
10674 * src/nsfns.m (frame_geometry): New function.
10675 (Fx_frame_geometry): Call frame_geometry.
10676 (Fx_frame_edges): New function.
10677 * src/w32fns.c (C_CHILDREN_TITLEBAR, TITLEBAR_INFO)
10678 (GetTitleBarInfo_Proc): Define these so we can use the
10679 GetTitleBarInfo API.
10680 (Fw32_frame_menu_bar_size, Fw32_frame_rect): Remove.
10681 (Fx_frame_geometry): Rewrite.
10682 (Fx_frame_edges, Fx_mouse_absolute_pixel_position)
10683 (Fx_set_mouse_absolute_pixel_position): New functions.
10684 * src/xfns.c (frame_geometry): New function.
10685 (Fx_frame_geometry): Call frame_geometry.
10686 (Fx_frame_edges, Fx_mouse_absolute_pixel_position)
10687 (Fx_set_mouse_absolute_pixel_position): New functions.
10688
10689 2015-08-18 Michael Albinus <michael.albinus@gmx.de>
10690
10691 Improve Tramp's compatibility
10692 * lisp/net/tramp.el (tramp-get-method-parameter):
10693 * lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
10694 (tramp-adb-get-device):
10695 * lisp/net/trampver.el (tramp-repository-get-version):
10696 Use `tramp-compat-replace-regexp-in-string'.
10697
10698 2015-08-18 Pierre Téchoueyres <pierre.techoueyres@free.fr> (tiny change)
10699
10700 * lisp/net/tramp-cmds.el (tramp-reporter-dump-variable):
10701 Encode/decode string.
10702
10703 2015-08-18 Paul Eggert <eggert@cs.ucla.edu>
10704
10705 Clarify what happens to match data on failure
10706 Problem reported by Ernesto Alfonso (Bug#21279).
10707 * doc/lispref/searching.texi (Regexp Search, Simple Match Data):
10708 Document more carefully what happens to match data after a failed
10709 search.
10710 * src/search.c (Fmatch_beginning, Fmatch_end): Document that
10711 the return value is undefined if the last search failed.
10712 (Fmatch_data): Simplify doc string line 1.
10713
10714 2015-08-18 Daiki Ueno <ueno@gnu.org>
10715
10716 Revert "pinentry.el: Support external passphrase cache"
10717 This reverts commit e086e55a664ec27fbca7b3231c4b32cb78a89337.
10718 pinentry.el shouldn't directly interact with the secrets service,
10719 but ask the caller to cache the passphrase.
10720
10721 2015-08-17 Xue Fuqiao <xfq.free@gmail.com>
10722
10723 * doc/emacs/sending.texi (Mail Misc): Fix two index entries for
10724 Message mode hooks.
10725
10726 2015-08-17 Daiki Ueno <ueno@gnu.org>
10727
10728 epg.el: Make gpgconf output parsing future proof
10729 * lisp/epg.el (epg--start): Count the number of fields in "gpgconf
10730 --list-options" output.
10731
10732 pinentry.el: Support external passphrase cache
10733 * lisp/net/pinentry.el (pinentry-use-secrets): New user option.
10734 (pinentry--allow-external-password-cache): New local variable.
10735 (pinentry--key-info): New local variable.
10736 (secrets-enabled, secrets-search-items, secrets-get-secret):
10737 Declare.
10738 (pinentry--send-passphrase): New function, split from
10739 `pinentry--process-filter'.
10740 (pinentry--process-filter): Use secrets.el to retrieve passphrase
10741 from login keyring.
10742
10743 pinentry.el: Popup window for multiline prompt
10744 * lisp/net/pinentry.el (pinentry): New custom group.
10745 (pinentry-popup-prompt-window): New user option.
10746 (pinentry-prompt-window-height): New user option.
10747 (pinentry--prompt-buffer): New variable.
10748 (pinentry-prompt-mode-map): New variable.
10749 (pinentry-prompt-mode): New function.
10750 (pinentry--prompt): New function.
10751 (pinentry--process-filter): Use `pinentry--prompt' instead of
10752 `read-passwd' and `y-or-n-p'.
10753
10754 2015-08-17 Katsumi Yamaoka <yamaoka@jpl.org>
10755
10756 message.el: Silent the byte compiler
10757 * lisp/gnus/message.el (message-overlay-put, message-make-overlay)
10758 (message-kill-all-overlays, message-overlays-in, message-overlay-get)
10759 (message-delete-overlay, message-window-inside-pixel-edges):
10760 Declare before using.
10761
10762 * lisp/gnus/message.el (message-overlay-get, message-overlays-in)
10763 (message-window-inside-pixel-edges): XEmacs compatible functions.
10764
10765 2015-08-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
10766
10767 * lisp/gnus/message.el (message-toggle-image-thumbnails): New command.
10768
10769 2015-08-17 Noah Friedman <friedman@splode.com>
10770
10771 * lisp/simple.el (blink-matching-open): Restore point before
10772 calling minibuffer-message.
10773
10774 2015-08-17 Ronnie Schnell <ronnie@driver-aces.com>
10775
10776 * lisp/play/dunnet.el: Update version number in header (now
10777 matches help).
10778
10779 2015-08-17 Paul Eggert <eggert@cs.ucla.edu>
10780
10781 Curved quotes in --batch diagnostics in non-UTF-8
10782 When run with --batch, check that curved quotes are compatible with
10783 the system locale before outputting them in diagnostics.
10784 Problem reported by Eli Zaretskii in:
10785 http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00594.html
10786 * lisp/startup.el (command-line): Set internal--text-quoting-flag
10787 after the standard display table is initialized.
10788 * src/doc.c (default_to_grave_quoting_style): New function.
10789 (text_quoting_style): Use it.
10790 (text_quoting_flag): New static var, visible to Lisp as
10791 internal--text-quoting-flag.
10792 * src/emacs.c: Include <wchar.h> if available.
10793 (using_utf8): New function.
10794 (main): Use it to initialize text_quoting_flag.
10795 * src/regex.h (btowc) [WIDE_CHAR_SUPPORT && emacs]:
10796 Don't define, as it's not needed and it clashes with wchar.h.
10797
10798 2015-08-17 Glenn Morris <rgm@gnu.org>
10799
10800 * doc/misc/tramp.texi (Configuration): Reword to avoid warning
10801 from makeinfo about spurious "Note:" cross-reference, and for grammar.
10802
10803 2015-08-17 Ilya Zakharevich <ilya@math.berkeley.edu>
10804
10805 Minor change in variable initialization on MS-Windows
10806 * src/w32fns.c <after_dead_key>: Initialize to -1.
10807 (deliver_wm_chars): If after_deadkey is zero, don't set after_dead
10808 non-zero.
10809
10810 Fix a bug with LWindow key remapping on MS-Windows
10811 * src/w32fns.c (deliver_wm_chars): Fix a typo. (Bug#21276)
10812
10813 2015-08-17 Eli Zaretskii <eliz@gnu.org>
10814
10815 Improve fontset support for latest OTF script tags
10816 * lisp/international/fontset.el (otf-script-alist): Add some
10817 missing script tags.
10818 (setup-default-fontset): Include settings for v2 versions of the
10819 script tags used by some modern OTF/TTF fonts.
10820
10821 2015-08-17 Paul Eggert <eggert@cs.ucla.edu>
10822
10823 Spelling fixes
10824
10825 2015-08-16 Paul Eggert <eggert@cs.ucla.edu>
10826
10827 Use curved quotes in core elisp diagnostics
10828 In the core elisp files, use curved quotes in diagnostic formats,
10829 so that they follow user preference as per ‘text-quoting-style’
10830 rather than being hard-coded to quote `like this'.
10831 * lisp/abbrev.el (expand-region-abbrevs):
10832 * lisp/button.el (button-category-symbol, button-put)
10833 (make-text-button):
10834 * lisp/cus-start.el:
10835 * lisp/custom.el (custom-add-dependencies, custom-check-theme)
10836 (custom--sort-vars-1, load-theme):
10837 * lisp/emacs-lisp/byte-run.el (defun, defsubst):
10838 * lisp/emacs-lisp/cl-generic.el (cl-defgeneric)
10839 (cl-generic-generalizers):
10840 * lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
10841 * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p):
10842 * lisp/emacs-lisp/nadvice.el (advice--make-docstring)
10843 (advice--make, define-advice):
10844 * lisp/emacs-lisp/tabulated-list.el (tabulated-list-put-tag):
10845 * lisp/emacs-lisp/timer.el (timer-event-handler):
10846 * lisp/env.el (setenv):
10847 * lisp/facemenu.el (facemenu-add-new-face)
10848 (facemenu-add-new-color):
10849 * lisp/faces.el (face-documentation, read-face-name)
10850 (face-read-string, read-face-font, face-spec-set-match-display)
10851 (read-color, x-resolve-font-name):
10852 * lisp/files.el (locate-user-emacs-file, find-alternate-file)
10853 (set-auto-mode, hack-local-variables)
10854 (hack-one-local-variable--obsolete)
10855 (dir-locals-set-directory-class, write-file)
10856 (basic-save-buffer, delete-directory, copy-directory)
10857 (recover-session, recover-session-finish, insert-directory)
10858 (file-modes-char-to-who, file-modes-symbolic-to-number)
10859 (move-file-to-trash):
10860 * lisp/font-lock.el (font-lock-fontify-buffer):
10861 * lisp/format.el (format-write-file, format-find-file)
10862 (format-insert-file):
10863 * lisp/frame.el (get-device-terminal, select-frame-by-name):
10864 * lisp/fringe.el (fringe--check-style):
10865 * lisp/help.el (describe-minor-mode-from-indicator):
10866 * lisp/image.el (image-type):
10867 * lisp/international/fontset.el (x-must-resolve-font-name):
10868 * lisp/international/mule-cmds.el (prefer-coding-system)
10869 (select-safe-coding-system-interactively)
10870 (select-safe-coding-system, activate-input-method)
10871 (toggle-input-method, describe-current-input-method):
10872 * lisp/international/mule-conf.el (code-offset):
10873 * lisp/mouse.el (minor-mode-menu-from-indicator):
10874 * lisp/replace.el (query-replace-read-from)
10875 (occur-after-change-function, occur-1):
10876 * lisp/scroll-bar.el (scroll-bar-columns):
10877 * lisp/simple.el (execute-extended-command)
10878 (undo-outer-limit-truncate, compose-mail, set-variable)
10879 (choose-completion-string, define-alternatives):
10880 * lisp/startup.el (site-run-file, tty-handle-args)
10881 (command-line, command-line-1):
10882 * lisp/subr.el (noreturn, define-error, add-to-list)
10883 (read-char-choice):
10884 * lisp/term/common-win.el (x-handle-xrm-switch)
10885 (x-handle-name-switch, x-handle-args):
10886 * lisp/term/x-win.el (x-handle-parent-id, x-handle-smid):
10887 Use curved quotes in diagnostics.
10888 * lisp/international/mule.el (find-auto-coding):
10889 Use " to quote in a diagnostic, to be consistent with the rest of
10890 this file.
10891
10892 Convert lisp/term/x-win.el to UTF-8
10893 * lisp/term/x-win.el: Convert to UTF-8. This doesn't affect
10894 runtime behavior, and the file is multilingual so compile-time
10895 appearance shouldn't be an issue.
10896 * admin/notes/unicode: Document this.
10897
10898 2015-08-16 Wilson Snyder <wsnyder@wsnyder.org>
10899
10900 Update verilog-mode.el to 2015-05-14-6232468-vpo-GNU.
10901 * lisp/progmodes/verilog-mode.el: Fix some non-automated indent
10902 issues and comments, bug#943.
10903 (verilog-type-font-keywords): Cycle delay operators like ##1 and
10904 ##[0:$] are now highlighted in their entirety similarly to the #
10905 delay-control operator. Likewise, the followed-by operators #-#
10906 and #=# are no longer partially highlighed.
10907 (verilog-backward-syntactic-ws-quick)
10908 (verilog-skip-backward-comments): Minor performance improvements
10909 to buffer traversal functions for reduced latency.
10910 (verilog-calc-1, verilog-in-deferred-immediate-final-p): When the
10911 keyword 'final' follows 'assert/assume/cover', then it is part of
10912 a deferred immediate assertion item and should not be treated as a
10913 final construct for indentation. Reported by Yuri Sugihara.
10914 (verilog-do-indent): Virtual task/function/class definition lines
10915 should not be considered as declarations. Reported by Enzo Chi.
10916 (verilog-do-indent): Do not falsely indent to '=' of
10917 property/sequence operators on subsequent lines of a multi-line
10918 statement.
10919 (verilog-assignment-operator-re): Fix '!==' operator and add
10920 support for '<->', ':/', '#-#', and '#=#' operators.
10921 (verilog-calculate-indent, verilog-label-be): Enable
10922 case-sensitive regular expression parsing when looking for
10923 keywords.
10924 (verilog-calc-1): Detect 'pure virtual method' declarations which
10925 exist in abstract classes. Reported by Enzo Chi and Kaushal Modi.
10926 (verilog-backward-ws&directives): When moving back to the start of
10927 a line and the preceeding line ended with an escaped-newline, then
10928 jump up one line. This properly consumes a multi-line
10929 pre-processor directive. Reported by Kaushal Modi.
10930 (verilog-dpi-import-export-re, verilog-extended-complete-re)
10931 (verilog-calc-1): Teach verilog-mode to properly indent after a
10932 DPI import/export statement that resides outside of a module.
10933 Reported by Kaushal Modi.
10934 (verilog-extended-complete-re): Update regexp to match both
10935 "DPI-C" and "DPI". Reported by Kaushal Modi.
10936
10937 2015-08-15 Paul Eggert <eggert@cs.ucla.edu>
10938
10939 substitute-command-keys a few more doc strings
10940 * lisp/allout.el (outlineify-sticky):
10941 * lisp/files.el (hack-one-local-variable--obsolete):
10942 * lisp/help-fns.el (help-fns--obsolete, describe-variable):
10943 Use substitute-command-keys on some doc strings so that
10944 they don't use hard-coded key bindings or quoting styles.
10945
10946 Fix quoting in Fformat calls
10947 * src/image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load)
10948 (xpm_load, xpm_load_image, pbm_load, png_load_body)
10949 (jpeg_load_body, tiff_load, gif_load, imagemagick_load_image)
10950 (imagemagick_load, svg_load, svg_load_image, gs_load)
10951 (x_kill_gs_process):
10952 * src/lread.c (load_warn_old_style_backquotes):
10953 * src/xfaces.c (load_pixmap):
10954 * src/xselect.c (x_clipboard_manager_error_1):
10955 Quote diagnostics according to user preference when calling
10956 Fformat or its derivatives.
10957
10958 2015-08-15 Glenn Morris <rgm@gnu.org>
10959
10960 * admin/admin.el (set-version, set-copyright): Remove deleted files.
10961
10962 2015-08-15 Stephen Leake <stephen_leake@stephe-leake.org>
10963
10964 Allow describe-function helpers to access buffer-local values
10965 This will be used by cedet/mode-local.el `describe-mode-local-override'
10966 on `help-fns-describe-function-functions' in upstream CEDET.
10967 * lisp/help-fns.el (describe-function-orig-buffer): New, let-bound in
10968 `describe-function'.
10969 (describe-function): Bind it, save it on the help xref stack.
10970
10971 Handle pulse-background being nil
10972 * lisp/cedet/pulse.el (pulse-lighten-highlight): Inherit
10973 pulse-background, handle it being nil.
10974
10975 2015-08-15 Paul Eggert <eggert@cs.ucla.edu>
10976
10977 Fix "\`" confusion in Lisp strings
10978 * admin/authors.el (authors-canonical-author-name):
10979 Fix typo by using "\\`" not "\`" in string RE.
10980 * lisp/obsolete/complete.el (PC-complete-as-file-name):
10981 * lisp/obsolete/vi.el (vi-backward-blank-delimited-word):
10982 * lisp/progmodes/verilog-mode.el (verilog-mode-map):
10983 Use plain "`", not the equivalent-but-confusing "\`", in strings.
10984 * lisp/textmodes/texinfmt.el: Fix comment likewise.
10985
10986 2015-08-15 Dani Moncayo <dmoncayo@gmail.com>
10987
10988 * nt/zipdist.bat: Remove -- no longer used.
10989
10990 2015-08-15 Jürgen Hötzel <juergen@archlinux.org>
10991
10992 * lisp/net/tramp-sh.el (tramp-remote-selinux-p): Use "selinuxenabled"
10993 rather than "getenforce".
10994 (tramp-sh-handle-set-file-selinux-context): Do not
10995 cache SELinux context if not all context components are given.
10996
10997 2015-08-15 Eli Zaretskii <eliz@gnu.org>
10998
10999 Add doc strings to 2 help-mode.el functions
11000 * lisp/help-mode.el (help-mode-setup, help-mode-finish): Add doc
11001 strings. (Bug#21263)
11002
11003 Remove files used by the old MS-Windows specific build procedure
11004 * admin/unidata/makefile.w32-in:
11005 * doc/emacs/makefile.w32-in:
11006 * doc/lispintro/makefile.w32-in:
11007 * doc/lispref/makefile.w32-in:
11008 * doc/misc/makefile.w32-in:
11009 * leim/makefile.w32-in:
11010 * lib-src/makefile.w32-in:
11011 * lib/makefile.w32-in:
11012 * lisp/makefile.w32-in:
11013 * nt/INSTALL.OLD:
11014 * nt/config.nt:
11015 * nt/emacs-src.tags:
11016 * nt/envadd.bat:
11017 * nt/gmake.defs:
11018 * nt/makefile.w32-in:
11019 * nt/multi-install-info.bat:
11020 * nt/nmake.defs:
11021 * nt/paths.h:
11022 * src/makefile.w32-in: Files deleted.
11023 * nt/configure.bat: Remove everything except the blurb about the
11024 new build procedure.
11025 * make-dist: Remove references to makefile.w32-in in various
11026 directories, and to files in nt/ that were deleted.
11027 * etc/NEWS: Mention the fact that the files were dropped.
11028
11029 2015-08-15 Paul Eggert <eggert@cs.ucla.edu>
11030
11031 * doc/emacs/mule.texi (Charsets): Give fuller title for ISO-IR.
11032 (Bug#21248)
11033
11034 2015-08-14 Paul Eggert <eggert@cs.ucla.edu>
11035
11036 Default to inotify instead of gfile
11037 * configure.ac (with_file_notification): Fix typo that
11038 prevented suppression of file notification if HAVE_NS.
11039 (NOTIFY_OBJ): Prefer inotify to gfile if both exist and
11040 with_file_notification is 'yes' (Bug#21241).
11041 * etc/NEWS: Mention this.
11042
11043 Fix broken URLs for ISO-IR
11044 * doc/emacs/mule.texi (Charsets):
11045 * lisp/international/mule-conf.el:
11046 Fix broken URL (Bug#21248).
11047
11048 Low-level diagnostics now use ‘text-quoting-style’
11049 * src/doprnt.c (doprnt):
11050 Format ` and ' as per ‘text-quoting-style’.
11051 * src/xdisp.c (vmessage, message): Mention that the format should
11052 not contain ` or '.
11053
11054 Prefer ‘format’ to ‘substitute-command-keys’
11055 * src/character.h (uLSQM, uRSQM): Move here ...
11056 * src/doc.c (uLSQM, uRSQM): ... from here.
11057 * src/doc.c (Fsubstitute_command_keys):
11058 * src/syntax.c (Finternal_describe_syntax_value):
11059 * lisp/cedet/mode-local.el (mode-local-print-binding)
11060 (mode-local-describe-bindings-2):
11061 * lisp/cedet/srecode/srt-mode.el (srecode-macro-help):
11062 * lisp/cus-theme.el (describe-theme-1):
11063 * lisp/descr-text.el (describe-text-properties-1, describe-char):
11064 * lisp/emacs-lisp/cl-extra.el (cl--describe-class):
11065 * lisp/emacs-lisp/cl-generic.el (cl--generic-describe):
11066 * lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor):
11067 * lisp/emacs-lisp/package.el (describe-package-1):
11068 * lisp/faces.el (describe-face):
11069 * lisp/help-fns.el (help-fns--key-bindings)
11070 (help-fns--compiler-macro, help-fns--parent-mode)
11071 (help-fns--obsolete, help-fns--interactive-only)
11072 (describe-function-1, describe-variable):
11073 * lisp/help.el (describe-mode):
11074 Prefer ‘format’ to ‘substitute-command-keys’ when either will do
11075 to implement quoting style. This generally makes the code simpler.
11076
11077 Extend ‘format’ to translate curved quotes
11078 This is a followup to the recent doc string change, and deals with
11079 diagnostics and the like. This patch is more conservative than
11080 the doc string change, in that the behavior of ‘format’ changes
11081 only if its first arg contains curved quotes and the user prefers
11082 straight or grave quotes. (Come to think of it, perhaps we should
11083 be similarly conservative with doc strings too, but that can wait.)
11084 The upside of this conservatism is that existing usage is almost
11085 surely unaffected. The downside is that we'll eventually have to
11086 change Emacs's format strings to use curved quotes in places where
11087 the user might want curved quotes, but that's a simple and
11088 mechanical translation that I'm willing to do later. (Bug#21222)
11089 * doc/lispref/help.texi (Keys in Documentation):
11090 Move description of text-quoting-style from here ...
11091 * doc/lispref/strings.texi (Formatting Strings):
11092 ... to here, and describe new behavior of ‘format’.
11093 * etc/NEWS: Describe new behavior.
11094 * lisp/calc/calc-help.el (calc-describe-thing):
11095 * lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
11096 * lisp/info.el (Info-find-index-name):
11097 Use ‘concat’ rather than ‘format’ to avoid misinterpretation
11098 of recently-added curved quotes.
11099 * src/doc.c (uLSQM0, uLSQM1, uLSQM2, uRSQM0, uRSQM1, uRSQM2):
11100 Move from here ...
11101 * src/lisp.h: ... to here.
11102 * src/doc.c (text_quoting_style): New function.
11103 (Fsubstitute_command_keys): Use it.
11104 * src/editfns.c (Fformat): Implement new behavior.
11105 * src/lisp.h (enum text_quoting_style): New enum.
11106
11107 2015-08-14 Stefan Monnier <monnier@iro.umontreal.ca>
11108
11109 * src/keyboard.c: Use false/true instead of 0/1 for booleans.
11110 * src/keyboard.h (struct kboard): Mark kbd_queue_has_data as boolean.
11111
11112 2015-08-14 Michael Albinus <michael.albinus@gmx.de>
11113
11114 * lisp/net/tramp-sh.el (tramp-sh-handle-file-acl): Do not redirect
11115 stderr to /dev/null, this is done in `tramp-send-command-and-check'.
11116
11117 2015-08-14 Jürgen Hötzel <juergen@archlinux.org>
11118
11119 Flush file properties in Tramp
11120 * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-modes)
11121 (tramp-sh-handle-set-file-times):
11122 * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-modes)
11123 (tramp-adb-handle-set-file-times): Flush the file properties of
11124 the directory.
11125
11126 2015-08-14 Ronnie Schnell <ronnie@driver-aces.com>
11127
11128 * doc/emacs/misc.text (Amusements): Fixed typo.
11129
11130 2015-08-14 Eli Zaretskii <eliz@gnu.org>
11131
11132 Don't miss warnings about removing string text properties while dumping
11133 * src/alloc.c (purecopy): Warn about removing a string's text
11134 properties even when the same string was already pure-copied
11135 earlier.
11136 * lisp/progmodes/elisp-mode.el (elisp--xref-format)
11137 (elisp--xref-format-extra): Fix the commentary.
11138
11139 2015-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
11140
11141 * lisp/progmodes/sh-script.el (sh-mode): Handle .cshrc (bug#21049).
11142
11143 2015-08-13 Magnus Henoch <magnus.henoch@gmail.com>
11144
11145 * lisp/progmodes/compile.el: Use lexical-binding.
11146 (compilation-move-to-column): Assume 8-wide TABs (bug#21038).
11147
11148 2015-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
11149
11150 (uniquify-ask-about-buffer-names-p): Remove, unused (bug#21037)
11151 * lisp/uniquify.el: Remove redundant `:group's.
11152
11153 2015-08-13 Jürgen Hötzel <juergen@archlinux.org>
11154
11155 * lisp/net/tramp-adb.el
11156 (tramp-adb-handle-directory-files-and-attributes): Make a copy of
11157 result to prevent modification of the tramp-cache by side effects.
11158 Use the correct cache key.
11159
11160 2015-08-13 Paul Eggert <eggert@cs.ucla.edu>
11161
11162 Make add_to_log varargs
11163 * src/alloc.c (run_finalizer_handler):
11164 * src/charset.c (load_charset_map_from_vector):
11165 * src/nsimage.m (ns_load_image):
11166 * src/xfaces.c (load_pixmap, load_color2):
11167 Simplify, now that add_to_log has a variable number of args.
11168 * src/image.c (image_error): Take a variable number of args.
11169 Callers simplified.
11170 * src/lisp.h (add_to_log, vadd_to_log): Adjust to new APIs.
11171 * src/xdisp.c (format_nargs, vadd_to_log): New functions.
11172 (add_to_log): Make varargs, and reimplement in terms of vadd_to_log.
11173 * src/xfaces.c (merge_face_ref): Fix typo that omitted color name.
11174
11175 Optional args for holiday-greek-orthodox-easter
11176 * etc/NEWS: Document this.
11177 * lisp/calendar/holidays.el (holiday-greek-orthodox-easter):
11178 Add optional args N and STRING, mimicking the API and code of
11179 ‘holiday-easter-etc’. From suggestion by Foivos S. Zakkak (Bug#21256).
11180
11181 2015-08-13 Stephen Leake <stephen_leake@stephe-leake.org>
11182
11183 xref-find-definitions: Exclude more generic function items.
11184 * lisp/emacs-lisp/cl-generic.el (cl--generic-search-method):
11185 Add doc string.
11186 (cl--generic-find-defgeneric-regexp): New.
11187 (find-function-regexp-alist): Add it.
11188 * lisp/emacs-lisp/find-func.el (find-feature-regexp): Move here from
11189 elisp-mode.el, change to search for ";;; Code:"
11190 (find-alias-regexp): Move here from elisp-mode.el, cleaned up.
11191 (find-function-regexp-alist): Add them.
11192 * lisp/progmodes/elisp-mode.el:
11193 (elisp--xref-format, elisp--xref-format-extra): Change back to
11194 defvar due to bug#21237.
11195 (elisp--xref-find-definitions): Exclude co-located default methods for
11196 generic functions. Also exclude implicitly declared defgeneric.
11197 (elisp--xref-find-definitions): Handle C source properly. Exclude minor
11198 mode variables defined by 'define-minor-mode'.
11199 * test/automated/elisp-mode-tests.el: Declare generic functions, add
11200 tests for them.
11201 (xref-elisp-test-run): Fix bug.
11202 (emacs-test-dir): Improve initial value.
11203 (find-defs-defun-defvar-el): Don't expect defvar.
11204 (find-defs-feature-el): Match change to find-feature-regexp.
11205
11206 2015-08-13 Eli Zaretskii <eliz@gnu.org>
11207
11208 Improve warning about purecopy of strings with properties
11209 * src/alloc.c (purecopy): Show the offending string with the
11210 warning about removing its text properties.
11211
11212 2015-08-12 Alan Mackenzie <acm@muc.de>
11213
11214 Introduce new macros to cover Emacs's new names in cl-lib.el
11215 This also eliminates `mapcan' warnings in XEmacs.
11216 * lisp/progmodes/cc-defs.el (c--mapcan-status): New variable to
11217 characterise [X]Emacs versions.
11218 (top-level): Require either 'cl or 'cl-lib, depending on
11219 c--mapcan-status.
11220 Change this back to cc-external-require from an eval-when-compile
11221 require.
11222 (c--mapcan, c--set-difference, c--intersection, c--macroexpand-all)
11223 (c--delete-duplicates): New macros which expand into either old or new
11224 names.
11225 (c-make-keywords-re, c-lang-defconst, c-lang-const): Use the new macros
11226 rather than the old names.
11227 * lisp/progmodes/cc-engine.el (c-declare-lang-variables): Use c--mapcan
11228 rather than mapcan.
11229 * lisp/progmodes/cc-fonts.el (c-compose-keywords-list): Use c--mapcan.
11230 * lisp/progmodes/cc-langs.el (top-level): Require either 'cl or 'cl-lib,
11231 depending on c--mapcan-status.
11232 (c-filter-ops, c-all-op-syntax-tokens, c-assignment-op-regexp)
11233 (c-type-start-kwds, c-prefix-spec-kwds, c-specifier-key)
11234 (c-not-decl-init-keywords, c-not-primitive-type-keywords)
11235 (c-paren-any-kwds, c-<>-sexp-kwds, c-block-stmt-kwds, c-expr-kwds)
11236 (c-decl-block-key, c-keywords, c-keywords-obarray)
11237 (c-regular-keywords-regexp, c-primary-expr-regexp)
11238 (c-primary-expr-regexp, c-block-prefix-disallowed-chars)
11239 (c-known-type-key, c-nonlabel-token-key)
11240 (c-make-init-lang-vars-fun): Use the new macros rather than the old
11241 names.
11242
11243 2015-08-12 Oleh Krehel <ohwoeowho@gmail.com>
11244
11245 loadhist.el (read-feature): Conform to completing-read
11246 * lisp/loadhist.el (read-feature): According to `completing-read'
11247 documentation, if collection is a list, then it must be a list of
11248 strings, not a list of symbols like before.
11249
11250 2015-08-12 David Kastrup <dak@gnu.org>
11251
11252 Deal gracefully with up-events (Bug#19746)
11253 * src/keyboard.c (apply_modifiers_uncached, parse_solitary_modifier)
11254 (parse_modifiers_uncached): React gracefully to "up-" modifiers:
11255 those may easily be injected by user-level Lisp code.
11256 (read_key_sequence): Discard unbound up-events like unbound
11257 down-events: they are even more likely only relevant for special
11258 purposes.
11259 While Emacs will not produce up-events on its own currently (those are
11260 converted to drag or click events before being converted to
11261 Lisp-readable structures), the input queue can be made to contain them
11262 by synthesizing events to `unread-command-events'. Emacs should deal
11263 consistently with such events.
11264
11265 2015-08-12 Eli Zaretskii <eliz@gnu.org>
11266
11267 Fix display of thin lines whose newline has line-height property of t
11268 * src/xdisp.c (append_space_for_newline): Don't try to fix ascent
11269 and descent values of non-empty glyph rows, since they could have
11270 forced low values deliberately. (Bug#21243)
11271
11272 2015-08-12 Richard Stallman <rms@gnu.org>
11273
11274 Offer to combine multiple To or CC fields.
11275 * lisp/mail/sendmail.el (mail-combine-fields): New function.
11276 (mail-send): Call 'mail-combine-fields'.
11277
11278 Don't decrypt encrypted files.
11279 * lisp/mail/mail-utils.el (mail-file-babyl-p): Bind epa-inhibit to t.
11280
11281 Handle encrypted mbox files.
11282 * lisp/mail/rmailout.el (rmail-output-as-mbox): Decrypt and reencrypt
11283 the mbox file if necessary.
11284
11285 Re-enable mime processing after decryption. Add 'decrypt' keyword.
11286 * lisp/mail/rmail.el (rmail-epa-decrypt-1): New subroutine.
11287 (rmail-epa-decrypt): rmail-epa-decrypt-1 broken out.
11288 In a mime message, reenable Mime and show the parts that
11289 were shown before.
11290 Add keyword "decrypt" if anything decrypted.
11291
11292 epa-inhibit inhibits auto-recognition of .gpg files
11293 * lisp/epa-file.el (epa-inhibit): New variable.
11294 (epa-file-handler): Check epa-inhibit.
11295
11296 2015-08-12 Artur Malabarba <bruce.connor.am@gmail.com>
11297
11298 * lisp/emacs-lisp/lisp-mnt.el (lm-header): Add save-excursion.
11299
11300 2015-08-11 Fabián Ezequiel Gallina <fgallina@gnu.org>
11301
11302 Respect python.el imenu when semantic-mode is off
11303 Fixes bug#21220
11304 * lisp/cedet/semantic/wisent/python.el: Do not force
11305 wisent-python-default-setup on python-mode-hook.
11306
11307 2015-08-11 Paul Eggert <eggert@cs.ucla.edu>
11308
11309 Give names to Unicode code points in C code
11310 * src/character.h (NO_BREAK_SPACE, SOFT_HYPHEN)
11311 (ZERO_WIDTH_NON_JOINER, ZERO_WIDTH_JOINER, HYPHEN)
11312 (NON_BREAKING_HYPHEN, LEFT_SINGLE_QUOTATION_MARK)
11313 (RIGHT_SINGLE_QUOTATION_MARK, PARAGRAPH_SEPARATOR)
11314 (LEFT_POINTING_ANGLE_BRACKET, RIGHT_POINTING_ANGLE_BRACKET)
11315 (LEFT_ANGLE_BRACKET, RIGHT_ANGLE_BRACKET)
11316 (OBJECT_REPLACEMENT_CHARACTER):
11317 New named constants for Unicode code points.
11318 * src/bidi.c (bidi_fetch_char, CANONICAL_EQU):
11319 * src/composite.c (char_composable_p):
11320 * src/lread.c (readevalloop, read1):
11321 * src/xdisp.c (get_next_display_element):
11322 Use them.
11323 * src/doc.c (LEFT_SINGLE_QUOTATION_POINT):
11324 Remove; now in character.h.
11325
11326 2015-08-11 Stephen Leake <stephen_leake@stephe-leake.org>
11327
11328 elisp--xref-find-definitions handle cl-defstuct default constructor
11329 * lisp/progmodes/elisp-mode.el (elisp-xref-find): Add FIXME.
11330 (elisp--xref-format-extra): Rename from elisp--xref-format-cl-defmethod.
11331 (elisp--xref-find-definitions): Handle cl-defstuct default constructor.
11332 * test/automated/elisp-mode-tests.el (xref-elisp-test-run): Split out
11333 from xref-elisp-test for ease of debugging.
11334 (xref-elisp-deftest): Rename from xref-elisp-test.
11335 (find-defs-constructor): New test.
11336 (find-defs-defgeneric-el): Match batch test config.
11337 (compile): Required for find-defs compilation-minor-mode test.
11338 (find-defs-defvar-el): Match code change.
11339 (find-defs-face-el): Match code change.
11340 * lisp/progmodes/xref.el (xref-find-function, xref-find-definitions):
11341 Improve doc string.
11342
11343 2015-08-11 Stefan Monnier <monnier@iro.umontreal.ca>
11344
11345 * lisp/replace.el (perform-replace): Document `replacements'.
11346 (perform-replace): Move the description of the format of `replacements'
11347 from the body's comment to the doc string.
11348
11349 2015-08-11 Jürgen Hötzel <juergen@archlinux.org>
11350
11351 * lisp/net/tramp-adb.el (tramp-adb-prompt): Match leading escape
11352 sequence. Recent adb version send initial escape sequences, even
11353 when terminal type is set to TERM=dumb.
11354
11355 2015-08-10 Stephen Leake <stephen_leake@stephe-leake.org>
11356
11357 Rewrite elisp--xref-find-definitions to handle many more cases; add tests
11358 * lisp/progmodes/elisp-mode.el (elisp--xref-identifier-location):
11359 Function deleted.
11360 (elisp--xref-format-cl-defmethod): New defconst.
11361 (find-feature-regexp, find-alias-regexp): New defcustoms.
11362 (elisp--xref-make-xref): New function.
11363 (elisp--xref-find-definitions): Rewrite using the above, handle many
11364 more cases. Always output all available definitions.
11365 (xref-location-marker): No need for special cases.
11366 * test/automated/elisp-mode-tests.el: Add more tests of
11367 elisp--xref-find-definitions, improve current tests.
11368
11369 2015-08-10 Eli Zaretskii <eliz@gnu.org>
11370
11371 Fix recording of events pushed onto unread-command-events
11372 * src/keyboard.c (read_char): Make sure events read from
11373 unread-command-events and unread-post-input-method-events are
11374 always recorded by record_char. Reported by David Kastrup
11375 <dak@gnu.org>, see
11376 http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00193.html.
11377
11378 2015-08-10 Samer Masterson <samer@samertm.com>
11379
11380 Set file buffer as current for "--file"
11381 * lisp/startup.el (command-line-1): Set file buffer as current before
11382 it is displayed so it can be used with options like "--eval".
11383 (Bug#21095)
11384
11385 2015-08-10 Eli Zaretskii <eliz@gnu.org>
11386
11387 Avoid setting LC_NUMERIC on MS-Windows to anything but "C"
11388 * src/emacs.c (synchronize_locale) [WINDOWSNT]: Call fixup_locale
11389 after setting LC_ALL to the desired locale, to avoid affecting how
11390 numbers are read and printed. (Bug#21223)
11391
11392 2015-08-10 Alan Mackenzie <acm@muc.de>
11393
11394 Fix "Invalid search bound (wrong side of point)" in fontification
11395 * lisp/progmodes/cc-fonts.el (c-font-lock-declarators): After skipping
11396 an initialization expression, check point is not beyond the
11397 fontification limit.
11398
11399 2015-08-09 Paul Eggert <eggert@cs.ucla.edu>
11400
11401 Fix DPI calculation when Xft/DPI is default
11402 * src/xsettings.c (parse_settings): Don't use Xft/DPI default
11403 value of -1, which evaluates to 2**32 - 1 (Bug#21152).
11404 Remove unnecessary cast while we're in the neighborhood.
11405
11406 2015-08-09 Dmitry Gutov <dgutov@yandex.ru>
11407
11408 Add project-vc-search-path and project-vc-ignores
11409 * lisp/progmodes/project.el (project-vc): New group.
11410 (project-vc-search-path, project-vc-ignores): New variables.
11411 (project--value-in-dir): Utility function.
11412 (project-search-path, project-ignores): Use them.
11413 * lisp/progmodes/xref.el (xref--rgrep-command): Only replace `./'
11414 at bos. Don't add extra `/'. Don't prepend with `*' if replaced.
11415
11416 2015-08-09 Paul Eggert <eggert@cs.ucla.edu>
11417
11418 Fix some minor quoting issues with grave accent
11419 * src/dispnew.c (add_window_display_history) [GLYPH_DEBUG]:
11420 Remove redundant quotes.
11421 * src/doc.c (uLSQM, uRSQM): New macros.
11422 * src/doc.c (Fsubstitute_command_keys):
11423 * src/syntax.c (Finternal_describe_syntax_value): Follow the user
11424 preference for quotes rather than hardcoding the ‘grave’ style.
11425 * src/regex.c (PUSH_FAILURE_POINT, POP_FAILURE_POINT)
11426 (re_match_2_internal) [DEBUG]: In debugging output, quote C
11427 strings with "...", not `...'.
11428
11429 ChangeLog.2 ignores remote-tracking merges
11430 * build-aux/gitlog-to-emacslog: Ignore commit logs matching
11431 "Merge remote-tracking branch '.*'" too. See Eli Zaretskii in:
11432 http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00384.html
11433
11434 2015-08-09 Nicolas Richard <youngfrog@members.fsf.org>
11435
11436 Use kpsewhich in ffap-latex-mode, if available
11437 * lisp/ffap.el (ffap-latex-guess-rules): New variable.
11438 (ffap-latex-mode): Use kpsewhich if available.
11439
11440 ffap: disallow braces in filenames for tex modes
11441 * lisp/ffap.el (ffap-string-at-point-mode-alist): Don't allow
11442 braces in tex-related modes.
11443
11444 Remove useless backslashes from ffap-string-at-point-mode-alist
11445 * lisp/ffap.el (ffap-string-at-point-mode-alist): Remove useless and
11446 misleading backslashes from default value.
11447
11448 Augment docstring of ffap-string-at-point-mode-alist
11449 * lisp/ffap.el (ffap-string-at-point-mode-alist): Describe how BEG
11450 and END are handled.
11451
11452 2015-08-09 Paul Eggert <eggert@cs.ucla.edu>
11453
11454 * lisp/org/org-src.el (org-edit-src-code)
11455 (org-edit-fixed-width-region):
11456 * lisp/simple.el (completion-setup-function):
11457 Remove calls to substitute-command-keys that always just return
11458 their argument.
11459
11460 2015-08-09 Daiki Ueno <ueno@gnu.org>
11461
11462 * lisp/epa.el (epa-exit-buffer-function): Set to `quit-window'.
11463 (Bug#21210)
11464
11465 2015-08-09 Ivan Kanis <ivan@kanis.fr>
11466
11467 Fix link to source code in help window
11468 * lisp/help-fns.el (find-lisp-object-file-name): Remove code that
11469 will never work due to Glenn Morris change a6d63d9 on Apr 20 2013
11470 'No longer include timestamp in header of .elc files'. Add code
11471 that will return .el source file in load-path.
11472
11473 2015-08-09 Artur Malabarba <bruce.connor.am@gmail.com>
11474
11475 * lisp/isearch.el (isearch-search-fun-default): (Bug#21164)
11476 Respect `isearch-lax-whitespace' when searching through
11477 `isearch-word'.
11478
11479 2015-08-08 Stefan Monnier <monnier@iro.umontreal.ca>
11480
11481 * test/automated/ert-tests.el (ert-test-deftest): Add FIXME.
11482
11483 * org.el: Fix up some lexical scoping warnings, and use dolist
11484 * lisp/org/org.el (org-set-regexps-and-options-for-tags, org-goto-map)
11485 (org-set-regexps-and-options, org-assign-fast-keys)
11486 (org-contextualize-keys, org-contextualize-validate-key)
11487 (org-notes-order-reversed-p, org-local-logging, org-map-entries)
11488 (org-find-olp, org-find-exact-heading-in-directory)
11489 (org-cycle-agenda-files, org-release-buffers, org-fill-template)
11490 (org-agenda-prepare-buffers, org-occur-in-agenda-files)
11491 (org-replace-escapes): Use dolist.
11492 (org-mode): Optimize away XEmacs-only code.
11493 (org-refile-get-targets): Remove unused var `f'.
11494 (org-fast-todo-selection): Remove unused var `e'.
11495 (org-make-tags-matcher): Use dolist. Remove unused var `term'.
11496 (org-fast-tag-selection): Use dolist. Remove unused var `e'.
11497 (org-format-latex): Use dolist. Remove unused var `e'.
11498 (org-toggle-heading): Access vars lexically rather than dynamically.
11499 (org-backward-sentence, org-forward-sentence, org-meta-return)
11500 (org-kill-line): Mark arg as unused.
11501 (org-submit-bug-report): Silence compiler warning.
11502 (org-occur-in-agenda-files): Don't use add-to-list on local vars.
11503 (org-get-cursor-date): Remove unused var `tm'.
11504 (org-comment-or-uncomment-region): Use standard name `_'.
11505 (reftex-docstruct-symbol, reftex-cite-format): Declare to
11506 silence byte-compiler.
11507 (org-reftex-citation): Add `org--' prefix to dynamically scoped
11508 `rds' var.
11509
11510 2015-08-08 Paul Eggert <eggert@cs.ucla.edu>
11511
11512 Electric quote if coding is undecided or no conv
11513 * lisp/electric.el (electric--insertable-p): Also say that a
11514 string is insertable if the buffer file coding system is undecided
11515 or uses no conversion, as curved quotes will work in either case.
11516
11517 * configure.ac (HAVE_STACK_OVERFLOW_HANDLING): Simplify configuration.
11518
11519 2015-08-08 Eli Zaretskii <eliz@gnu.org>
11520
11521 Fix overlay string display regressions introduced in Emacs 24.5
11522 * src/xdisp.c (pop_it): Reset the flag to ignore overlays at this
11523 buffer position, if we move the iterator to a new position as
11524 result of jumping over text covered by a "replacing" display
11525 property.
11526 * test/redisplay-testsuite.el (test-redisplay-4): Add 2 new tests.
11527
11528 Support recovery from C stack overflow on MS-Windows
11529 * src/w32fns.c (w32_reset_stack_overflow_guard)
11530 (stack_overflow_handler): New functions for handling C stack
11531 overflow exceptions.
11532 (my_exception_handler): Handle EXCEPTION_STACK_OVERFLOW exceptions
11533 specially, and zero out except_addr if we do.
11534 (globals_of_w32fns): Initialize dwMainThreadId in non-interactive
11535 mode.
11536 * src/sysdep.c [HAVE_STACK_OVERFLOW_HANDLING]: Add !WINDOWSNT to
11537 the condition, as HAVE_STACK_OVERFLOW_HANDLING is now defined for
11538 the MinGW build, but the code guarded by that is for Posix hosts.
11539 * src/keyboard.c (command_loop) [WINDOWSNT]:
11540 Call w32_reset_stack_overflow_guard.
11541 * nt/inc/ms-w32.h (sigjmp_buf): New typedef.
11542 (sigsetjmp): New macro.
11543 (w32_reset_stack_overflow_guard): Declare the prototype.
11544 * configure.ac (HAVE_STACK_OVERFLOW_HANDLING): Set to 1 for MinGW.
11545
11546 2015-08-07 Phillip Lord <phillip.lord@newcastle.ac.uk>
11547
11548 Improve error signalling for seq-subseq
11549 * lisp/seq.el (seq-subseq): The existing behavior is to error
11550 when indexes are too large, but to silently ignore numbers which
11551 are too negative for lists. String and vector handling errors in
11552 both cases. This has been regularized. Error signaling behavior
11553 has been explicitly added to the doc string.
11554
11555 * lisp/cl-extra.el (cl-subseq): Defers to (seq-subseq) and is
11556 therefore also impacted by this change. Update the doc string
11557 to reflect this.
11558
11559 * test/automated/seq-tests.el (test-seq-subseq): Tests have been
11560 added for these exceptional cases, as well as one non exceptional
11561 base case.
11562
11563 2015-08-07 Jürgen Hötzel <juergen@archlinux.org>
11564
11565 Improve error checking in tramp-adb.el
11566 * lisp/net/tramp-adb.el (tramp-adb-ls-output-name-less-p):
11567 Improve error checking. "ls -l" on Android in Enforcing mode can
11568 print "lstat './FILENAME failed: Permission denied".
11569
11570 2015-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
11571
11572 * lisp/emacs-lisp/cl-generic.el (cl--generic-struct-tag): Don't burp on
11573 non-struct vectors.
11574
11575 2015-08-07 Stephen Leake <stephen_leake@stephe-leake.org>
11576
11577 Fix typo in lisp/window.el, more `display-buffer-use-some-frame'
11578 * lisp/window.el: Fix typo that broke build.
11579 (display-buffer--action-function-custom-type):
11580 Add `display-buffer-use-some-frame'.
11581 (display-buffer): Add `display-buffer-use-some-frame' to doc string.
11582
11583 Add support for 'inhibit-same-window in 'display-buffer-use-some-frame'
11584 * lisp/window.el (display-buffer-use-some-frame): Add support for
11585 'inhibit-same-window in alist.
11586 * doc/windows.texi (display-buffer-use-some-frame): Doc support for
11587 'inhibit-same-window in alist.
11588
11589 2015-08-07 Eli Zaretskii <eliz@gnu.org>
11590
11591 Avoid infinite loop in display of invisible text in strings
11592 * src/xdisp.c (handle_invisible_prop): If the next change of
11593 invisibility spec does not mean the beginning of a visible text,
11594 update the string position from which to start the search for the
11595 next invisibility change. This avoids an infinite loop when we
11596 have more than one invisibility spec that are made inactive by
11597 buffer-invisibility-spec. Simplify code. (Bug#21200)
11598 * test/redisplay-testsuite.el (test-redisplay-4): Add a test case
11599 for the situation that caused bug #21200.
11600
11601 2015-08-06 Artur Malabarba <bruce.connor.am@gmail.com>
11602
11603 * lisp/emacs-lisp/package.el: Simplify describe-package-1
11604 (package-help-section-name-face): New face.
11605 (package--print-help-section): New function.
11606 (describe-package-1): Refactor section printing.
11607 (package-make-button): Use face instead of font-lock-face, which
11608 doesn't work on buttons.
11609
11610 * lisp/emacs-lisp/package.el: Define custom faces
11611 (package-name-face, package-description-face)
11612 (package-status-built-in-face, package-status-external-face)
11613 (package-status-available-face, package-status-new-face)
11614 (package-status-held-face, package-status-disabled-face)
11615 (package-status-installed-face, package-status-dependency-face)
11616 (package-status-unsigned-face, package-status-incompat-face)
11617 (package-status-avail-obso-face): New faces.
11618 (package-menu--print-info-simple): Use them.
11619
11620 2015-08-05 Paul Eggert <eggert@cs.ucla.edu>
11621
11622 Fix some confusion with ‘format’
11623 * lisp/allout-widgets.el (allout-widgets-before-change-handler)
11624 (allout-graphics-modification-handler):
11625 Protect arbitrary string in a format context with "%s" format.
11626 * lisp/avoid.el:
11627 * lisp/cedet/semantic/bovine/scm.el: Fix comment.
11628 * lisp/calendar/icalendar.el (icalendar--convert-sexp-to-ical):
11629 * lisp/erc/erc-button.el (erc-button-beats-to-time):
11630 * lisp/gnus/message.el (message-send-form-letter):
11631 * lisp/org/ob-core.el (org-babel-check-evaluate)
11632 (org-babel-confirm-evaluate):
11633 * lisp/org/ob-fortran.el (org-babel-fortran-var-to-fortran):
11634 * lisp/org/ox-latex.el (org-latex-compile):
11635 * lisp/org/ox-man.el (org-man-compile):
11636 * lisp/org/ox-odt.el (org-odt-template):
11637 * lisp/org/ox-texinfo.el (org-texinfo-compile):
11638 * lisp/progmodes/prolog.el (prolog-help-info)
11639 (prolog-view-predspec):
11640 * lisp/progmodes/ruby-mode.el (ruby-parse-partial):
11641 * lisp/progmodes/verilog-mode.el (verilog-showscopes):
11642 * lisp/textmodes/rst.el (rst-replace-lines):
11643 Change (message (format ...)) to (message ...), and likewise
11644 for ‘error’. This lessens the probability of confusion when the
11645 output of ‘format’ contains ‘%’.
11646
11647 2015-08-05 Artur Malabarba <bruce.connor.am@gmail.com>
11648
11649 * lisp/replace.el (replace-character-fold): Default to nil.
11650
11651 * lisp/character-fold.el: Fix lax whitespace.
11652 (character-fold-table): Don't make space match other whitespace chars.
11653 (character-fold-to-regexp): Simplify lax behavior.
11654
11655 2015-08-05 Dmitry Gutov <dgutov@yandex.ru>
11656
11657 Preserve window point in xref-find-definitions-other-window
11658 Fix the problem reported by Ingo Logmar in
11659 http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00152.html
11660 * lisp/progmodes/xref.el (xref--goto-char): Extract from
11661 xref--goto-location.
11662 (xref--pop-to-location): Use it. Replace xref--goto-location with
11663 a direct xref-location-marker call.
11664 (xref--show-location): Likewise.
11665 (xref--display-position): Use xref--goto-char.
11666
11667 * lisp/progmodes/project.el: Add a paragraph to the front matter.
11668
11669 2015-08-04 David Kastrup <dak@gnu.org>
11670
11671 * lisp/vc/emerge.el (emerge-show-file-name):
11672 * lisp/progmodes/vhdl-mode.el (vhdl-electric-dash)
11673 (vhdl-comment-insert, vhdl-hooked-abbrev):
11674 * lisp/progmodes/octave.el (inferior-octave-dynamic-list-input-ring):
11675 * lisp/progmodes/fortran.el (fortran-window-create-momentarily):
11676 * lisp/progmodes/ebrowse.el (ebrowse-hack-electric-buffer-menu):
11677 * lisp/progmodes/cperl-mode.el (cperl-putback-char):
11678 * lisp/obsolete/vip.el (vip-escape-to-emacs)
11679 (vip-prefix-arg-value, vip-prefix-arg-com):
11680 * lisp/obsolete/terminal.el (te-escape-extended-command-unread):
11681 * lisp/leim/quail/tibetan.el (quail-tibetan-update-translation)
11682 (quail-tibkey-update-translation):
11683 * lisp/leim/quail/lrt.el (quail-lrt-update-translation):
11684 * lisp/leim/quail/lao.el (quail-lao-update-translation):
11685 * lisp/leim/quail/japanese.el (quail-japanese-update-translation)
11686 (quail-japanese-self-insert-and-switch-to-alpha):
11687 * lisp/leim/quail/hangul.el (hangul2-input-method)
11688 (hangul3-input-method, hangul390-input-method):
11689 * lisp/language/hanja-util.el (hangul-to-hanja-char):
11690 * lisp/international/robin.el (robin-input-method):
11691 * lisp/international/quail.el (quail-start-translation)
11692 (quail-start-conversion):
11693 * lisp/gnus/gnus-art.el (gnus-article-describe-key)
11694 (gnus-article-describe-key-briefly):
11695 * lisp/eshell/em-hist.el (eshell-list-history):
11696 * lisp/term.el (term-dynamic-list-input-ring)
11697 (term-dynamic-list-completions):
11698 * lisp/subr.el (momentary-string-display):
11699 * lisp/simple.el (read-quoted-char):
11700 * lisp/pcomplete.el (pcomplete-show-completions):
11701 * lisp/kmacro.el (kmacro-repeat-on-last-key):
11702 * lisp/info.el (Info-summary):
11703 * lisp/ehelp.el (electric-help-command-loop):
11704 * lisp/ebuff-menu.el (electric-buffer-list)
11705 (Electric-buffer-menu-exit):
11706 * lisp/double.el (double-translate-key):
11707 * lisp/comint.el (comint-dynamic-list-input-ring)
11708 (comint-dynamic-list-completions): Do not overwrite preexisting
11709 contents of `unread-command-events' when putting new events into it.
11710
11711 2015-08-04 Daniel Colascione <dancol@dancol.org>
11712
11713 Improve ansi-color filtering of unrecognized escape sequences
11714 * lisp/ansi-color.el (ansi-color-drop-regexp): Recognize mode-setting
11715 escape sequences.
11716 (ansi-color-filter-apply, ansi-color-apply): Filter out
11717 unrecognized escape sequences.
11718
11719 2015-08-04 Artur Malabarba <bruce.connor.am@gmail.com>
11720
11721 * lisp/emacs-lisp/package.el (package-menu-mode-map): Convert menu
11722 definitions to `easy-menu-define', improve a couple to account for
11723 async, and add a couple of new commands.
11724
11725 2015-08-03 Jürgen Hötzel <juergen@archlinux.org>
11726
11727 * lisp/net/tramp-cache.el (tramp-set-file-property): Fix code typo.
11728
11729 2015-08-03 Ingo Lohmar <i.lohmar@gmail.com>
11730
11731 Add new 'calendar-weekend-days' option
11732 Make the days receiving the 'calendar-weekend-header' face freely
11733 customizable, as they differ by region/culture.
11734 * doc/emacs/calendar.texi (Move to Beginning or End): Document the
11735 new variable.
11736 * lisp/calendar/calendar.el (calendar-generate-month): New variable
11737 calendar-weekend-days to customize day header fontification.
11738
11739 2015-08-03 Paul Eggert <eggert@cs.ucla.edu>
11740
11741 Redo text-quoting-style variable
11742 Rename help-quote-translation to text-quoting-style,
11743 and use symbols rather than characters as values.
11744 This follows suggestions along these lines by Alan Mackenzie in:
11745 http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00343.html
11746 and by Drew Adams in:
11747 http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00048.html
11748 * doc/lispref/help.texi (Keys in Documentation)
11749 * etc/NEWS:
11750 * lisp/cus-start.el (standard):
11751 * src/doc.c (Fsubstitute_command_keys, syms_of_doc):
11752 Document and/or implement the new behavior instead of the old.
11753 (syms_of_doc): New symbols 'grave' and 'straight'.
11754
11755 2015-08-03 Nikolaus Rath <Nikolaus@rath.org>
11756
11757 nnimap.el: Use IMAP MOVE extension if available
11758 * lisp/gnus/nnimap.el (nnimap-request-move-article)
11759 (nnimap-process-expiry-targets, nnimap-split-incoming-mail):
11760 Use MOVE extension if available.
11761
11762 nnimap.el: Explicitly ask for server capabilities
11763 * lisp/gnus/nnimap.el (nnimap-open-connection-1): Don't assume full
11764 capabilities will be returned in the login-result.
11765
11766 2015-08-02 Paul Eggert <eggert@cs.ucla.edu>
11767
11768 Treat help strings like other doc strings
11769 * doc/lispref/text.texi (Special Properties), etc/NEWS: Document this.
11770 * lisp/epa.el (epa--select-keys): Remove no-longer-needed calls to
11771 substitute-command-keys.
11772 * src/keyboard.c (show_help_echo, parse_menu_item): Call
11773 substitute-command-keys on the help string before displaying it.
11774
11775 Also mention "curly quotes"
11776 See Drew Adams's email in:
11777 http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00040.html
11778 * doc/lispref/help.texi (Keys in Documentation):
11779 Add index entry "curly quotes".
11780 * etc/NEWS: Use the phrase "curly quotes" too.
11781
11782 ede-proj-target-makefile docstring tweaks
11783 * lisp/cedet/ede/proj.el (ede-proj-target-makefile):
11784 Consistently use "all:" to describe the all: target,
11785 replacing three different and confusingly-quoted usages.
11786
11787 2015-08-02 Evgeny Fraimovitch <johnlen7@gmail.com> (tiny change)
11788
11789 Don't abort emacsclientw when -a was specified
11790 * lib-src/emacsclient.c (set_tcp_socket) [WINDOWSNT]: Don't error
11791 out if we are in emacsclientw and -a was specified.
11792
11793 2015-08-02 Eli Zaretskii <eliz@gnu.org>
11794
11795 Fix handling of 1st keystroke on MS-Windows
11796 * src/w32fns.c (globals_of_w32fns): Initialize after_deadkey to -1.
11797 This is needed to correctly handle the session's first keystroke,
11798 if it has any modifiers. (Bug#19994)
11799
11800 2015-08-02 Paul Eggert <eggert@cs.ucla.edu>
11801
11802 Substitute some customization etc. doc strings
11803 These changes apply substitute-command-keys to some
11804 doc strings that were going through untranslated
11805 when creating customization or other widgets.
11806 * lisp/cus-edit.el (custom-group-value-create):
11807 * lisp/wid-edit.el (widget-default-create):
11808 (widget-push-button-value-create):
11809 Treat the widget tag as a doc string.
11810 * lisp/emacs-lisp/cl-extra.el (cl--describe-class-slot):
11811 Treat the :documentation value as a doc string.
11812 * lisp/wid-edit.el (widget-choose):
11813 Treat the choice names as doc strings.
11814 (widget-default-create): Treat the :doc value as a doc string.
11815 (widget-toggle-value-create): Treat the :on and :off values
11816 as doc strings.
11817 (widget-documentation-string-value-create):
11818 Substitute the doc string.
11819
11820 2015-08-01 Dmitry Gutov <dgutov@yandex.ru>
11821
11822 Add a second argument to project-ignores
11823 * lisp/progmodes/project.el (project-ignores): Add a second
11824 argument DIR.
11825 * lisp/progmodes/project.el (project-ignores): Only include the VC
11826 ignores if DIR is the VC root.
11827 * lisp/progmodes/xref.el (xref-find-regexp): Update accordingly.
11828
11829 2015-08-01 Eli Zaretskii <eliz@gnu.org>
11830
11831 Prevent incorrect display when 'line-spacing' variable is set
11832 * src/xdisp.c (try_window_id): Give up this optimization if the
11833 buffer has its 'line-spacing' variable set non-nil.
11834
11835 2015-08-01 Dmitry Gutov <dgutov@yandex.ru>
11836
11837 Don't pass NOVISIT to find-file
11838 * lisp/progmodes/etags.el (next-file):
11839 Don't pass NOVISIT to find-file (bug#21175).
11840
11841 Ignore buffer restriction for tags-loop-eval
11842 * lisp/progmodes/etags.el (tags-loop-continue): Ignore buffer
11843 restriction (bug#21167).
11844
11845 2015-08-01 Eli Zaretskii <eliz@gnu.org>
11846
11847 Fix a thinko in 'ffap-gopher-at-point'
11848 * lisp/ffap.el (ffap-gopher-at-point): Fix last change. (Bug#21168)
11849
11850 Honor 'line-spacing' for empty lines
11851 * src/xdisp.c (append_space_for_newline): Honor 'line-height'
11852 property and 'line-spacing' frame parameter or variable or
11853 property for empty lines, by doing the same processing as in
11854 x_produce_glyph for newline characters. (Bug#21165)
11855
11856 2015-08-01 Paul Eggert <eggert@cs.ucla.edu>
11857
11858 Simplify by assuming C99 integer division
11859 * src/floatfns.c (ceiling2, floor2, truncate2):
11860 Assume C99 (i.e., Fortran) semantics for integer division.
11861 This simplifies the code.
11862
11863 2015-07-31 Paul Eggert <eggert@cs.ucla.edu>
11864
11865 Don't overflow if computing approximate percentage
11866 * lisp/align.el (align-region):
11867 * lisp/cedet/semantic.el (semantic-repeat-parse-whole-stream):
11868 * lisp/cedet/semantic/wisent.el (wisent-parse-region):
11869 * lisp/cus-edit.el (custom-buffer-create-internal):
11870 * lisp/emacs-lisp/checkdoc.el (checkdoc-interactive-ispell-loop)
11871 (checkdoc-message-interactive-ispell-loop, checkdoc-next-error)
11872 (checkdoc-next-message-error):
11873 * lisp/emacs-lisp/eieio-opt.el (eieio-display-method-list):
11874 * lisp/epa.el (epa-progress-callback-function):
11875 * lisp/erc/erc-dcc.el (erc-dcc-do-LIST-command):
11876 * lisp/ffap.el (ffap-menu-rescan):
11877 * lisp/gnus/nnbabyl.el (nnbabyl-retrieve-headers):
11878 * lisp/gnus/nndiary.el (nndiary-retrieve-headers):
11879 * lisp/gnus/nneething.el (nneething-retrieve-headers):
11880 * lisp/gnus/nnmbox.el (nnmbox-retrieve-headers):
11881 * lisp/gnus/nnmh.el (nnmh-retrieve-headers):
11882 * lisp/gnus/nnml.el (nnml-retrieve-headers):
11883 * lisp/gnus/nnspool.el (nnspool-retrieve-headers):
11884 * lisp/gnus/nntp.el (nntp-retrieve-headers)
11885 (nntp-retrieve-articles):
11886 * lisp/imenu.el (imenu--relative-position):
11887 * lisp/international/ja-dic-cnv.el (skkdic-collect-okuri-nasi)
11888 (skkdic-convert-okuri-nasi):
11889 * lisp/net/ange-ftp.el (ange-ftp-process-handle-hash):
11890 * lisp/nxml/rng-valid.el (rng-compute-mode-line-string):
11891 * lisp/org/org-list.el (org-update-checkbox-count):
11892 * lisp/org/org.el (org-table-map-tables)
11893 (org-update-parent-todo-statistics):
11894 * lisp/play/decipher.el (decipher-insert-frequency-counts)
11895 (decipher-analyze-buffer):
11896 * lisp/profiler.el (profiler-format-percent):
11897 * lisp/progmodes/cc-cmds.el (c-progress-update):
11898 * lisp/progmodes/cpp.el (cpp-highlight-buffer):
11899 * lisp/progmodes/idlwave.el (idlwave-convert-xml-system-routine-info)
11900 (idlwave-list-load-path-shadows):
11901 * lisp/progmodes/opascal.el (opascal-step-progress):
11902 * lisp/progmodes/vhdl-mode.el (vhdl-update-progress-info)
11903 (vhdl-scan-directory-contents):
11904 * lisp/textmodes/bibtex.el (bibtex-progress-message):
11905 * lisp/textmodes/flyspell.el (flyspell-small-region)
11906 (flyspell-external-point-words):
11907 * lisp/textmodes/table.el (table-recognize):
11908 Prefer (floor (* 100.0 NUMERATOR) DENOMINATOR) when calculating
11909 progress-report percentages and the like. This avoids problems
11910 if (* 100 NUMERATOR) would overflow.
11911 * lisp/gnus/gnus-registry.el (gnus-registry-import-eld):
11912 * lisp/gnus/registry.el (registry-reindex):
11913 Use (* 100.0 ...) rather than (* 100 ...) to avoid int overflow issues.
11914 * lisp/descr-text.el (describe-char):
11915 * lisp/org/org-colview.el (org-nofm-to-completion):
11916 * lisp/ps-print.el (ps-plot):
11917 * lisp/simple.el (what-cursor-position):
11918 Prefer (round (* 100.0 NUMERATOR) DENOMINATOR) to a
11919 more-complicated and less-accurate approximation.
11920
11921 Fix some int overflows in profiler.c
11922 * src/profiler.c (make_log): Make args EMACS_INT, not int,
11923 to avoid unwanted behavior on 'int' overflow.
11924 (make_log, evict_lower_half, record_backtrace):
11925 Use ptrdiff_t, not int, for object indexes.
11926
11927 Port to pedantic memcpy
11928 * src/keyboard.c (menu_bar_items, tool_bar_items):
11929 * src/xrdb.c (magic_db):
11930 Port to pedantic memcpy implementations that reject memcpy (0, 0, 0).
11931
11932 Merge from gnulib
11933 This incorporates:
11934 2015-07-29 time_rz: port to pedantic memcpy
11935 * lib/time_rz.c: Copy from gnulib.
11936
11937 2015-07-31 Artur Malabarba <bruce.connor.am@gmail.com>
11938
11939 * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):
11940 When updating the very last entry, tabulated-list-print would
11941 erase it and then try to look at the next one (which obviously
11942 isn't there).
11943
11944 2015-07-31 Eli Zaretskii <eliz@gnu.org>
11945
11946 Allow to use the old key processing code on MS-Windows
11947 * src/w32fns.c (syms_of_w32fns) <w32-use-fallback-wm-chars-method>:
11948 New variable.
11949 (w32_wnd_proc): Use it to invoke the old code that processed
11950 character keys, as fallback, when this variable is non-nil.
11951 Fix typos in comments. (Bug#19994)
11952
11953 2015-07-31 Ilya Zakharevich <ilya@math.berkeley.edu>
11954
11955 Improve handling of Unicode keyboard input on MS-Windows
11956 * src/w32fns.c (get_wm_chars, deliver_wm_chars): New functions.
11957 (FPRINTF_WM_CHARS) [DEBUG_WM_CHARS]: New macro for debugging.
11958 (w32_wnd_proc): Call deliver_wm_chars to process non-special keys
11959 upon receiving WM_KEYDOWN or WM_SYSKEYDOWN messages. If that is
11960 successful, don't call TranslateMessage. (Bug#19994)
11961
11962 2015-07-30 Dmitry Gutov <dgutov@yandex.ru>
11963
11964 Fix default-directory in changeset diffs after vc-print-log
11965 * lisp/vc/log-view.el (log-view-diff-common): Move the
11966 revision-granularity check back into log-view-diff-changeset.
11967 (log-view-diff-changeset): Bind default-directory to the current
11968 VC root.
11969
11970 Rename project-directories to project-roots
11971 * lisp/progmodes/project.el (project-search-path-function)
11972 (project-search-path): Update the docstring.
11973 (project-directories): Rename to `project-roots', update all
11974 callers and implementations accordingly.
11975 (project-root): Remove.
11976 * lisp/progmodes/xref.el (xref-find-regexp): Use * instead of *.*
11977 as the default file mask.
11978
11979 2015-07-30 Eli Zaretskii <eliz@gnu.org>
11980
11981 Support long URLs in w32-shell-execute
11982 * src/w32fns.c (Fw32_shell_execute): Don't use filename_to_utf16
11983 and filename_to_ansi to convert the DOCUMENT argument, as it could
11984 be a URL that is not limited to MAX_PATH characters. Instead, use
11985 MultiByteToWideChar directly, and allocate heap storage as
11986 required to accommodate the converted string. Likewise with
11987 non-Unicode operation. Ensure OPERATION is null-terminated, even
11988 if it is longer than 32K bytes. (Bug#21158)
11989
11990 2015-07-30 Stephen Leake <stephen_leake@stephe-leake.org>
11991
11992 * lisp/vc/vc-mtn.el (vc-mtn-find-revision): Handle null rev.
11993
11994 2015-07-29 Stephen Leake <stephen_leake@stephe-leake.org>
11995
11996 Add docs for display-buffer action display-buffer-use-some-frame
11997 * lisp/window.el (display-buffer-use-some-frame): Improve doc string.
11998 * doc/lispref/windows.texi (Display Action Functions):
11999 Add display-buffer-use-some-frame.
12000 * etc/NEWS: Mention display-buffer-use-some-frame.
12001
12002 Add display-buffer action display-buffer-use-some-frame
12003 * lisp/window.el (display-buffer-use-some-frame): New.
12004
12005 Handle vc-mtn error more gently
12006 * lisp/vc/vc-mtn.el (vc-mtn-mode-line-string): Return "" when
12007 branch is nil.
12008
12009 2015-07-29 Michael Albinus <michael.albinus@gmx.de>
12010
12011 Fix Tramp problems with multihops, and nc
12012 * lisp/net/tramp-cache.el (tramp-get-file-property)
12013 (tramp-set-file-property, tramp-flush-file-property)
12014 (tramp-get-connection-property, tramp-set-connection-property)
12015 (tramp-flush-connection-property): Remove hop from vector.
12016 * lisp/net/tramp-gw.el (tramp-gw-process-filter): Ignore errors.
12017 * lisp/net/tramp-sh.el (tramp-methods) <nc>: Separate STDERR.
12018 (tramp-do-copy-or-rename-file-out-of-band): Increase timeout of
12019 netstat to 60".
12020 (tramp-sh-handle-start-file-process): Do not show hops in prompt.
12021 * lisp/net/tramp.el (tramp-handle-file-name-as-directory)
12022 (tramp-handle-file-name-directory, tramp-handle-file-remote-p):
12023 Keep hop in result.
12024 * test/automated/tramp-tests.el (tramp-test02-file-name-dissect):
12025 Add hop tests.
12026
12027 2015-07-29 Eli Zaretskii <eliz@gnu.org>
12028
12029 Resurrect highlighting of repeated words by Flyspell Mode
12030 * lisp/textmodes/flyspell.el (flyspell-word): Leave some non-word
12031 characters between point and the doublon candidate, so that
12032 flyspell-word-search-backward finds it. (Bug#21157)
12033
12034 Fix redisplay of large images on expose events
12035 * src/xdisp.c (expose_window, expose_area): Avoid comparisons
12036 between signed negative values and unsigned values. This
12037 prevented redisplay on expose events when the window showed a very
12038 large image.
12039
12040 2015-07-29 Paul Eggert <eggert@cs.ucla.edu>
12041
12042 Remove unnecessary stack overflow dependency
12043 * configure.ac (HAVE_STACK_OVERFLOW_HANDLING):
12044 Don't worry about $ac_cv_header_sys_resource_h and
12045 $ac_cv_func_getrlimit, as they're no longer needed for this.
12046 Problem reported by Eli Zaretskii in:
12047 http://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00443.html
12048
12049 2015-07-28 Andy Moreton <andrewjmoreton@gmail.com> (tiny change)
12050
12051 Pacify compilation -Wincompatible-pointer-types warnings
12052 * src/w32proc.c (Fw32_get_codepage_charset): Avoid compilation
12053 warning.
12054 (CompareStringW_Proc): New typedef.
12055 (w32_compare_strings): Use it, to pacify compiler warnings under
12056 "-Wincompatible-pointer-types".
12057 * src/w32fns.c (GetDiskFreeSpaceExW_Proc)
12058 (GetDiskFreeSpaceExA_Proc): New typedefs.
12059 (Ffile_system_info): Use them, to pacify compiler warnings under
12060 "-Wincompatible-pointer-types".
12061
12062 2015-07-28 Paul Eggert <eggert@cs.ucla.edu>
12063
12064 Fix subscript error in calculate_direct_scrolling
12065 Use slightly-longer cost vectors. Without this change,
12066 calculate_direct_scrolling can have a subscript violation when
12067 FRAME_LINES (frame) <= delta.
12068 * src/scroll.c (calculate_scrolling, calculate_direct_scrolling)
12069 (line_ins_del, do_line_insertion_deletion_costs):
12070 Allocate and use slightly-larger cost vectors, ones based on
12071 FRAME_TOTAL_LINES instead of FRAME_LINES.
12072
12073 Fix uninitalized value in encode_coding_object
12074 * src/coding.c (encode_coding_object): Also initialize
12075 coding->src_pos and coding->src_pos_byte when NILP (src_object).
12076 This avoids later use of uninitialized storage.
12077
12078 2015-07-27 Xue Fuqiao <xfq.free@gmail.com>
12079
12080 * doc/lispref/variables.texi (Variable Aliases): Typo fix.
12081 (Bug#21141)
12082
12083 2015-07-27 Paul Eggert <eggert@cs.ucla.edu>
12084
12085 Merge from gnulib
12086 This incorporates:
12087 2015-07-27 time_rz: port better to MinGW
12088 2015-07-27 time: port __need_time_t to MinGW
12089 * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
12090 * lib/strftime.c, lib/time.in.h, lib/time_rz.c: Copy from gnulib.
12091 * lib/time-internal.h: New file, from gnulib.
12092
12093 2015-07-27 Eli Zaretskii <eliz@gnu.org>
12094
12095 Handle NULL pointers in w32heap.c allocation routines
12096 * src/w32heap.c (FREEABLE_P): Consider a NULL pointer "not
12097 freeable".
12098 (realloc_after_dump, realloc_before_dump, free_before_dump):
12099 Handle NULL pointers gracefully, as Emacs now seems to expect that.
12100
12101 Fix Cairo build without PNG
12102 * src/image.c: Define PNG function when USE_CAIRO is defined, even
12103 if HAVE_PNG is not. (Bug#21133)
12104
12105 MS-Windows follow-up for recent TZ-related changes
12106 * nt/mingw-cfg.site (ac_cv_header_pthread_h)
12107 (gl_cv_sys_struct_timespec_in_pthread_h): Force to "no", to avoid
12108 picking up 'struct timespec' from pthread.h, if it is installed on
12109 the user's system. We want either the definitions from MinGW
12110 system headers, if available, or the Gnulib replacements if not.
12111 * nt/inc/ms-w32.h <struct timespec>: Don't define, as we now use
12112 lib/time.h.
12113 * lib/time.in.h: Don't let __need_* symbols affect what happens on
12114 MinGW. These symbols are defined by MinGW system headers, but we
12115 don't want that to affect whether Gnulib portions of the header
12116 are or aren't used.
12117
12118 2015-07-26 Paul Eggert <eggert@cs.ucla.edu>
12119
12120 * src/ftfont.c (ftfont_close): Add comment re Bug#20890.
12121
12122 New optional ZONE arg for format-time-string etc.
12123 This simplifies time conversions in other time zones.
12124 It also prevents display-time-world tampering with TZ (Bug#21020).
12125 * admin/admin.el (add-release-logs):
12126 Use improved add-log-time-format API.
12127 * admin/merge-gnulib (GNULIB_MODULES): Add time_rz, timegm.
12128 (GNULIB_TOOL_FLAGS): Avoid flexmember, setenv, unsetenv.
12129 * configure.ac (tzalloc): Remove test for this, since
12130 Emacs no longer uses HAVE_TZALLOC directly.
12131 * doc/lispref/os.texi (Time of Day, Time Conversion)
12132 (Time Parsing):
12133 * etc/NEWS: Document the new behavior.
12134 Merge from gnulib, incorporating:
12135 2015-07-25 strftime: fix newly-introduced bug on Solaris
12136 2015-07-23 fprintftime, strftime: use timezone_t args
12137 * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
12138 * lib/strftime.c, lib/strftime.h, lib/time.in.h, m4/sys_time_h.m4:
12139 * m4/time_h.m4:
12140 Update from gnulib.
12141 * lib/time_rz.c, lib/timegm.c, m4/time_rz.m4, m4/timegm.m4:
12142 New files from gnulib.
12143 * lisp/time-stamp.el (time-stamp-string):
12144 * lisp/time.el (display-time-world-list)
12145 (display-time-world-display):
12146 Use new API, with time zone arg.
12147 * lisp/time.el (display-time-world-display):
12148 Fix race when current-time advances while we're running.
12149 * lisp/vc/add-log.el (add-log-iso8601-time-zone)
12150 (add-log-iso8601-time-string): Accept optional time zone arg.
12151 * lisp/vc/add-log.el (add-change-log-entry):
12152 * lisp/vc/log-edit.el (log-edit-changelog-ours-p): Use new arg.
12153 * nt/gnulib.mk: Propagate lib/gnulib.mk changes here.
12154 Add rules for the time module, since they're now needed
12155 for tzalloc etc.
12156 * src/conf_post.h (getenv_TZ, setenv_TZ): New macros.
12157 (emacs_getenv_TZ, emacs_setenv_TZ): New decls.
12158 * src/editfns.c: Include errno.h.
12159 (set_time_zone_rule): Omit unnecessary forward decl.
12160 (initial_tz): Remove, replacing with ...
12161 (local_tz, wall_clock_tz, utc_tz): New static vars and constants.
12162 (tzeqlen): New constant; prefer it to (sizeof "TZ=" - 1).
12163 (emacs_localtime_rz, emacs_mktime_z, xtzalloc, xtzfree)
12164 (tzlookup): New static functions.
12165 (init_editfns): New arg DUMPING. All uses changed.
12166 (init_editfns): Omit most initialization if dumping, not if
12167 !initialized. Initialize wall_clock_tz and local_tz.
12168 (emacs_nmemftime, format_time_string): Time zone argument can now
12169 be any time zone, not just a boolean for UTC or local time. All
12170 callers changed.
12171 (Fformat_time_string, Fencode_time, Fcurrent_time_string)
12172 (Fcurrent_time_zone): New optional arg ZONE.
12173 (Fdecode_time, Fset_time_zone_rule): ZONE arg can now also take
12174 the same form as with the other new additions.
12175 (decode_time_zone): Remove; no longer needed.
12176 (tzvalbuf): Now file-scope.
12177 (emacs_getenv_TZ, emacs_setenv_TZ): New functions.
12178 (syms_of_editfns): Define Qwall.
12179 * src/editfns.c (mktime_z) [!HAVE_TZALLOC]:
12180 * src/systime.h (mktime_z, timezone_t, tzalloc, tzfree)
12181 [!HAVE_TZALLOC]:
12182 Remove; now supplied by gnulib.
12183 * src/emacs.c (main):
12184 * src/lisp.h (init_editfns): Adjust to init_editfns API change.
12185
12186 2015-07-26 Shigeru Fukaya <shigeru.fukaya@gmail.com>
12187
12188 Fix infinite loop in delete-consecutive-dups
12189 * lisp/subr.el (delete-consecutive-dups): Work even if the last
12190 element is nil (Bug#20588). Avoid rescan of a circular list in
12191 deletion of last element.
12192
12193 2015-07-26 Martin Rudalics <rudalics@gmx.at>
12194
12195 Have `x-frame-geometry' return nil for terminal and initial
12196 frames (Bug#21132)
12197 * src/nsfns.m (Fx_frame_geometry):
12198 * src/xfns.c (Fx_frame_geometry): Return nil for initial and
12199 terminal frames.
12200 * src/w32fns.c (Fw32_frame_menu_bar_size, Fw32_frame_rect)
12201 (Fx_frame_geometry): Return nil for terminal frames
12202
12203 2015-07-26 HOSOYA Kei <hosoyakei.free@gmail.com> (tiny change)
12204
12205 * etc/tutorials/TUTORIAL.ja: Improve translation.
12206
12207 2015-07-25 Eli Zaretskii <eliz@gnu.org>
12208
12209 Avoid crashes when w32 GUI functions are called in -batch
12210 * src/w32fns.c (Fx_frame_geometry, Fw32_frame_rect)
12211 (Fw32_frame_menu_bar_size, Fw32_send_sys_command): Don't call
12212 FRAME_W32_WINDOW for initial frame. (Bug#21132)
12213
12214 Fix flyspell-check-previous-highlighted-word
12215 * lisp/textmodes/flyspell.el
12216 (flyspell-check-previous-highlighted-word): Really accept a
12217 numeric argument, as the doc string describes. Fix an off-by-one
12218 error in looking up overlays, so invocation with point immediately
12219 after a word would check that word. Clarify the doc string as
12220 Suggested by N. Jackson <nljlistbox2@gmail.com>. (Bug#21129)
12221
12222 2015-07-24 Michael Albinus <michael.albinus@gmx.de>
12223
12224 Minor cleanup in tramp-tests.el
12225 * test/automated/tramp-tests.el (tramp-test31-*, tramp-test32-*):
12226 Implement using the documented interface
12227 `tramp-connection-properties', rather than with internal functions.
12228
12229 2015-07-24 Harald Hanche-Olsen <hanche@math.ntnu.no> (tiny change)
12230
12231 Pass lambdas to `skeleton-read'
12232 * lisp/skeleton.el (skeleton-read): Allow PROMPT to be a function.
12233 * lisp/textmodes/sgml-mode.el (sgml-attributes, sgml-value): Pass
12234 lambdas to `skeleton-read' (bug#20386).
12235
12236 2015-07-24 Eli Zaretskii <eliz@gnu.org>
12237
12238 * INSTALL (DETAILED BUILDING AND INSTALLATION):
12239 Mention --without-imagemagick.
12240
12241 Don't require GUI frames and mouse for Flyspell menus
12242 * lisp/textmodes/flyspell.el (flyspell-correct-word-before-point)
12243 (flyspell-emacs-popup): Require neither a GUI frame nor mouse
12244 support, since pop-up menus work with text terminals and can be
12245 controlled via the keyboard.
12246
12247 Improve documentation of Flyspell commands
12248 * doc/emacs/fixit.texi (Spelling): Mention Flyspell commands that
12249 can be invoked via the keyboard. Mention those commands by name
12250 and add them to the fn index. (Bug#21125)
12251
12252 2015-07-23 Michael Albinus <michael.albinus@gmx.de>
12253
12254 Fix some Tramp problems with HP-UX
12255 * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
12256 Add "tab0" to stty call.
12257 * test/automated/tramp-tests.el (tramp-persistency-file-name):
12258 Set to nil.
12259 (tramp--test-hpux-p): New defun.
12260 (tramp--test-utf8): Use it.
12261
12262 2015-07-22 Glenn Morris <rgm@gnu.org>
12263
12264 * build-aux/update-subdirs: Put "no-update-autoloads: t" in output.
12265
12266 2015-07-22 Eli Zaretskii <eliz@gnu.org>
12267
12268 Fix point positioning in ffap-next-guess
12269 * lisp/ffap.el (ffap-url-at-point): Set ffap-string-at-point-region,
12270 as our callers expect. This was clobbered as part of fixing
12271 bug#5673. (Bug#21107)
12272 (ffap-gopher-at-point): Set ffap-string-at-point-region.
12273
12274 2015-07-22 Martin Rudalics <rudalics@gmx.at>
12275
12276 * lisp/window.el (even-window-sizes): Fix customization type.
12277
12278 Optionally even widths of `display-buffer' windows. (Bug#21100)
12279 * lisp/window.el (quit-restore-window): Restore width if
12280 requested.
12281 (display-buffer-record-window): Record width when window is
12282 reused and horizontally combined.
12283 (even-window-sizes): New option to allow evening window widths.
12284 (even-window-heights): Defalias to `even-window-sizes'.
12285 (window--even-window-heights): Rename to
12286 `window--even-window-sizes'. Handle side-by-side windows.
12287 (display-buffer-use-some-window): Call `window--even-window-sizes'
12288 instead of `window--even-window-heights'.
12289 * lisp/help.el (resize-temp-buffer-window): Fix indentation.
12290 * doc/lispref/windows.texi (Choosing Window Options): Describe
12291 `even-window-sizes'.
12292 (Coordinates and Windows): Fix typo.
12293
12294 2015-07-22 Stephen Leake <stephen_leake@stephe-leake.org>
12295
12296 Add file name to autoload error messages
12297 * lisp/emacs-lisp/autoload.el (autoload-save-buffers):
12298 Add condition-case to add file name to error message.
12299
12300 2015-07-22 Michael Albinus <michael.albinus@gmx.de>
12301
12302 * lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options):
12303 Use 0.0.0.1 as test host.
12304
12305 2015-07-21 Stefan Monnier <monnier@iro.umontreal.ca>
12306
12307 (advice--called-interactively-skip): Fix inf-loop (bug#21083)
12308 * lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip):
12309 Fix inf-loop (bug#21083).
12310
12311 2015-07-21 Glenn Morris <rgm@gnu.org>
12312
12313 * test/automated/package-test.el (package-test-signed):
12314 Update for recent changes.
12315
12316 * test/automated/elisp-mode-tests.el
12317 (elisp-xref-finds-both-function-and-variable)
12318 (elisp-xref-finds-only-function-for-minor-mode):
12319 Update for recent xref name changes.
12320
12321 2015-07-21 Dmitry Gutov <dgutov@yandex.ru>
12322
12323 Make eldoc timer non-repeatable
12324 * lisp/emacs-lisp/eldoc.el (eldoc-schedule-timer): Make the timer
12325 non-repeatable. Since it's on post-command hook, that just wasted
12326 CPU cycles.
12327
12328 2015-07-21 Michael Albinus <michael.albinus@gmx.de>
12329
12330 Mention `tramp-connection-properties' in NEWS
12331
12332 Sync with Tramp repository
12333 * doc/misc/tramp.texi (Configuration): Note, that Tramp must be
12334 required prior changing its configuration.
12335 (Connection caching, Predefined connection information)
12336 (Remote shell setup): Fix typos.
12337 (Predefined connection information): Describe, how to overwrite
12338 parameters of `tramp-methods'.
12339 (Remote programs, Remote processes, Traces and Profiles):
12340 Simplify example.
12341 (Remote programs): Remove superfluous comment.
12342 * doc/misc/trampver.texi: Update release number.
12343 * lisp/net/tramp-cache.el (tramp-connection-properties):
12344 Adapt docstring.
12345 * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file): New defun.
12346 (tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file): Use it.
12347 (tramp-gvfs-handle-make-directory): Reimplement PARENTS handling,
12348 "gvfs-mkdir -p ..." does not work robust.
12349 (tramp-gvfs-maybe-open-connection):
12350 Adapt `tramp-get-method-parameter' call.
12351 * lisp/net/tramp-sh.el (tramp-methods):
12352 Add `tramp-remote-shell-login' parameter where it fits.
12353 (tramp-get-remote-path): Use it.
12354 (tramp-make-copy-program-file-name): Fix quoting for "psftp" method.
12355 (all): Adapt `tramp-get-method-parameter' calls.
12356 * lisp/net/tramp.el (tramp-methods): Adapt docstring.
12357 (tramp-get-method-parameter): Replace argument METHOD by VEC.
12358 Check also for hits in `tramp-connection-properties'. Adapt docstring.
12359 (tramp-get-remote-tmpdir): Cache only the local name of tmpdir.
12360 (all): Adapt `tramp-get-method-parameter' calls.
12361 * lisp/net/trampver.el Update release number.
12362 * test/automated/tramp-tests.el (tramp--instrument-test-case):
12363 Add "^make-symbolic-link not supported$" to `debug-ignored-errors'.
12364 (tramp-test13-make-directory, tramp--test-adb-p)
12365 (tramp--test-smb-or-windows-nt-p): Simplify.
12366 (tramp--test-ftp-p, tramp--test-gvfs-p): New defuns.
12367 (tramp--test-special-characters): Fix docstring. Add gvfs and
12368 ftp tests.
12369 (tramp--test-utf8): Fix docstring.
12370
12371 2015-07-20 Dmitry Gutov <dgutov@yandex.ru>
12372
12373 Add new xref-query-replace command
12374 * lisp/progmodes/xref.el (xref--match-buffer-bounds):
12375 New function, extracted from xref-pulse-momentarily.
12376 (xref-query-replace): New command.
12377 (xref--query-replace-1): New helper function.
12378 (xref--xref-buffer-mode-map): Add `r' binding.
12379
12380 2015-07-20 Paul Eggert <eggert@cs.ucla.edu>
12381
12382 Simplify icalendar decoding of Z dates
12383 * lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
12384 Simplify calculation of time strings with trailing "Z".
12385
12386 2015-07-19 Dmitry Gutov <dgutov@yandex.ru>
12387
12388 Do not corrupt grep-find-ignored-files
12389 * lisp/progmodes/project.el (project-ignores): Change the order of
12390 the arguments to nconc, in order not to corrupt grep-find-ignored-files.
12391
12392 Add xref-match-item, and use it
12393 * lisp/progmodes/xref.el (xref-match-bounds): New generic function.
12394 (xref-file-location): Add reader for the column slot.
12395 (xref-match-item): New class.
12396 (xref-match-bounds): A method implementation for it.
12397 (xref-make-match): New constructor function.
12398 (xref--current-item): New private variable.
12399 (xref-pulse-momentarily): Use it.
12400 (xref--pop-to-location): Change the first argument to an xref
12401 item, instead of location, bind xref--current-item.
12402 Update all callers.
12403 (xref-next-line, xref-prev-line, xref--next-error-function)
12404 (xref--mouse-2): Look for the property `xref-item',
12405 instead of `xref-location'.
12406 (xref--item-at-point): Likewise. This function replaces
12407 `xref-location-at-point'. Update all callers.
12408 (xref--insert-xrefs): Add the `xref-item' text property, instead
12409 of `xref-location'.
12410 (xref--collect-match): Use xref-make-match.
12411
12412 * lisp/progmodes/xref.el (xref-item): Rename from `xref--xref'.
12413 Update all references.
12414
12415 * lisp/progmodes/xref.el (xref--xref): Rename the `description'
12416 slot to `summary'.
12417
12418 vc-hg: Perform the print-log call asynchronously
12419 * lisp/vc/vc-hg.el (vc-hg-print-log): Perform the call
12420 asynchronously (bug#21067).
12421
12422 Add xref-after-jump-hook and xref-after-return-hook
12423 * lisp/progmodes/xref.el (xref-after-jump-hook)
12424 (xref-after-return-hook): New hooks.
12425 (xref-pulse-on-jump): Remove, in favor of the above.
12426 (xref-pulse-momentarily): Rename from xref--maybe-pulse.
12427 (xref--pop-to-location, xref--display-position)
12428 (xref-pop-marker-stack): Use the new hooks, as requested in
12429 http://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00213.html
12430
12431 2015-07-19 Bozhidar Batsov <bozhidar@batsov.com>
12432
12433 * lisp/progmodes/js.el (js-mode): Correct the lighter.
12434
12435 2015-07-19 Leo Liu <sdl.web@gmail.com>
12436
12437 Fix a bug in cfengine3-mode
12438 * lisp/progmodes/cfengine.el (cfengine3-mode): Handle nil
12439 eldoc-documentation-function.
12440
12441 2015-07-18 Julien Danjou <julien@danjou.info>
12442
12443 sieve-mode: support "body" test command
12444 * lisp/gnus/sieve-mode.el (sieve-font-lock-keywords):
12445 Add missing "body" test command.
12446
12447 2015-07-18 Eli Zaretskii <eliz@gnu.org>
12448
12449 Fix info-apropos when the default encoding is Latin-N
12450 * lisp/info.el (Info-find-node-2): Reset the buffer's encoding to
12451 'undecided', so that it is set to the encoding of the Info file we
12452 are about to insert. Otherwise, 'info-apropos' will fail to find
12453 some index nodes in some UTF-8 encoded files, if the buffer's
12454 previous encoding is Latin-N or some such.
12455
12456 2015-07-18 Ivan Andrus <darthandrus@gmail.com>
12457
12458 * lisp/epg.el (epg--start): Check that gpgconf can be found
12459 before calling it.
12460
12461 Expose more file types to OS X that Emacs understands
12462 * nextstep/Cocoa/Emacs.base/Contents/Info.plist: Add editor role for
12463 sty, dtx, json, and org files. Export UTIs for el, elc, and org files.
12464
12465 2015-07-18 Eli Zaretskii <eliz@gnu.org>
12466
12467 Fix visual-order cursor movement when lines are truncated
12468 * src/xdisp.c (Fmove_point_visually): When lines are truncated,
12469 simulate display in a window of infinite width, to allow move_it_*
12470 functions reach positions outside of normal window dimensions.
12471 Remove code that tried to handle a subset of these situations by
12472 manual iteration of buffer text. (Bug#17777)
12473
12474 Fix following Info cross-references to anchors
12475 * lisp/info.el (Info-read-subfile): Add to the returned value the
12476 length of subfile preamble, after converting it to file's byte
12477 offset, as expected by the caller. Use bufferpos-to-filepos.
12478 (Info-find-node-2): If searching for a node with a
12479 1000-character slop fails, try again with a 10000-character slop,
12480 to account for known bugs in Texinfo 5.0 and 5.1. (Bug#21055)
12481 * lisp/international/mule-util.el (bufferpos-to-filepos): New
12482 function.
12483 * etc/NEWS: Mention bufferpos-to-filepos.
12484
12485 Fix scrolling backwards on TTY frames under scroll-conservatively
12486 * src/xdisp.c (move_it_vertically_backward): Fix off-by-one error
12487 in moving backwards on TTY frames. (Bug#21080)
12488
12489 2015-07-17 Dmitry Gutov <dgutov@yandex.ru>
12490
12491 Consider a jsdoc tag to be a beginning of a paragraph as well
12492 * lisp/progmodes/js.el (js-mode): Change c-paragraph-start to
12493 consider a jsdoc tag to be a beginning of a paragraph as well.
12494
12495 2015-07-17 Artur Malabarba <bruce.connor.am@gmail.com>
12496
12497 * lisp/emacs-lisp/package.el: Fix warnings.
12498
12499 * lisp/emacs-lisp/package.el (package-buffer-info):
12500 Add author and maintainers to `package-buffer-info'.
12501
12502 * lisp/emacs-lisp/package.el: Many small changes.
12503 Replace all instances of 'face with 'font-lock-face.
12504 (describe-package-1): Improve some strings and move the summary
12505 up the list.
12506 (package-install-file): Update docstring.
12507 (package-menu-hide-package): Bind to `H'.
12508
12509 * lisp/emacs-lisp/package.el (package--with-work-buffer-async):
12510 Fix error handling.
12511
12512 2015-07-17 Paul Eggert <eggert@cs.ucla.edu>
12513
12514 Fix hang with large yanks This should fix the bug fixed by Mike
12515 Crowe's patch in:
12516 https://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00106.html
12517 A problem in this area has been reported by several users; see
12518 Bug#16737, Bug#17101, Bug#17026, Bug#17172, Bug#19320, Bug#20283.
12519 This fix differs from Mike Crowe's patch in that it should avoid a
12520 race condition that could lose SIGIO signals. ignore_sigio dates
12521 back to the 1980s when some platforms couldn't block signals, and
12522 could only ignore them, which led to races when signals arrived
12523 while being ignored. We shouldn't have to worry about those old
12524 platforms now.
12525 * src/dispextern.h, src/sysdep.c (ignore_sigio): Remove.
12526 * src/emacs.c (shut_down_emacs):
12527 Don't call ignore_sigio; unrequest_sigio should suffice.
12528 * src/keyboard.c (kbd_buffer_store_buffered_event):
12529 Use unrequest_sigio, not ignore_sigio.
12530 (kbd_buffer_get_event):
12531 Call request_sigio when getting the ball rolling again.
12532
12533 2015-07-17 Artur Malabarba <bruce.connor.am@gmail.com>
12534
12535 * lisp/obsolete/longlines.el (longlines-search-function):
12536 Fallback on `isearch-search-fun-default'.
12537
12538 2015-07-17 Tassilo Horn <tsdh@gnu.org>
12539
12540 Support @-mentions
12541 * lisp/net/rcirc.el (rcirc-completion-at-point): Support completion
12542 of mentions/messages with @nick instead of just nick.
12543
12544 2015-07-16 Michael Albinus <michael.albinus@gmx.de>
12545
12546 Fix bug#20943
12547 * lisp/autorevert.el (auto-revert-handler): Do not check for
12548 `buffer-modified-p'.
12549 * lisp/files.el (buffer-stale--default-function): Check for
12550 `buffer-modified-p'.
12551 * test/automated/auto-revert-tests.el
12552 (auto-revert-test02-auto-revert-mode-dired): Adapt test.
12553
12554 2015-07-16 Ari Roponen <ari.roponen@gmail.com>
12555
12556 Fix delete-dups bug on long lists
12557 * lisp/subr.el (delete-dups):
12558 Don't mistakenly keep some dups when applied to long lists.
12559
12560 2015-07-16 Paul Eggert <eggert@cs.ucla.edu>
12561
12562 Better heuristic for C stack overflow
12563 Improve the heuristic for distinguishing stack overflows from
12564 other SIGSEGV causes (Bug#21004). Corinna Vinschen explained that
12565 the getrlimit method wasn't portable to Cygwin; see:
12566 https://www.cygwin.com/ml/cygwin/2015-07/msg00092.html
12567 Corinna suggested pthread_getattr_np but this also has problems.
12568 Instead, replace the low-level system stuff with a simple
12569 heuristic based on known good stack addresses.
12570 * src/eval.c, src/lisp.h (near_C_stack_top): New function.
12571 * src/sysdep.c: Don't include <sys/resource.h>.
12572 (stack_direction): Remove. All uses removed.
12573 (stack_overflow): New function.
12574 (handle_sigsegv): Use it instead of incorrect getrlimit heuristic.
12575 Make SEGV fatal in non-main threads.
12576
12577 2015-07-16 Daiki Ueno <ueno@gnu.org>
12578
12579 epg: Automatically start pinentry server
12580 * lisp/epg-config.el (epg-gpgconf-program): New variable.
12581 * lisp/epg.el (epg--start): Call `pinentry-start' if
12582 allow-emacs-pinentry is set in ~/.gnupg/gpg-agent.conf.
12583
12584 2015-07-15 Katsumi Yamaoka <yamaoka@jpl.org>
12585
12586 * lisp/gnus/nnimap.el: Fix my last bogus change.
12587 Reinstall Stefan Monnier's change that was made in
12588 <83d824bc4041332f338ad7e5e830f443535aa300>.
12589
12590 2015-07-15 Paul Eggert <eggert@cs.ucla.edu>
12591
12592 Merge from gnulib
12593 This incorporates:
12594 2015-07-05 acl-permissions: Document FreeBSD ACL_TYPE_NFS4 acls
12595 2015-07-05 acl-permissions: Fix on FreeBSD
12596 2015-07-05 file-has-acl, acl-permissions: fix some more HP-UX typos
12597 * lib/acl-internal.c, lib/acl-internal.h, lib/get-permissions.c:
12598 * lib/set-permissions.c: Copy from gnulib.
12599
12600 Port to stricter C99
12601 * src/keyboard.h (kbd_buffer_store_event_hold):
12602 Don't return a void expression.
12603
12604 2015-07-15 Xue Fuqiao <xfq.free@gmail.com>
12605
12606 * doc/emacs/frames.texi (Creating Frames):
12607 Fix the command `C-x 5 m' runs.
12608
12609 2015-07-14 Michael Albinus <michael.albinus@gmx.de>
12610
12611 New autorevert tests
12612 * test/automated/auto-revert-tests.el: New file.
12613
12614 2015-07-14 Paul Eggert <eggert@cs.ucla.edu>
12615
12616 Clear gcprolist etc. after stack overflow
12617 After stack overflow, command_loop calls init_eval, and this needs to
12618 clear gcprolist and byte_stack_list (Bug#20996).
12619 * src/alloc.c (init_alloc):
12620 Move gcprolist and byte_stack_list initialization from here ...
12621 * src/eval.c (init_eval): ... to here.
12622
12623 2015-07-13 Xue Fuqiao <xfq.free@gmail.com>
12624
12625 * doc/emacs/windows.texi (Pop Up Window): Fix the description
12626 of `C-x 4 m'.
12627
12628 2015-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12629
12630 Avoid deprecated enums in mac-ct font backend driver
12631 * src/macfont.m (mac_font_copy_default_descriptors_for_language)
12632 (mac_ctfont_get_advance_width_for_glyph)
12633 (mac_ctfont_get_bounding_rect_for_glyph): Avoid deprecated enums.
12634
12635 Cache font family in mac-ct font backend driver
12636 * src/macfont.m (macfont_family_cache): New variable.
12637 (syms_of_macfont): Initialize it.
12638 (macfont_available_families_cache): New variable.
12639 (macfont_invalidate_family_cache, macfont_get_family_cache_if_present)
12640 (macfont_set_family_cache, macfont_invalidate_available_families_cache)
12641 (macfont_handle_font_change_notification)
12642 (macfont_init_font_change_handler)
12643 (macfont_copy_available_families_cache): New functions.
12644 (macfont_create_family_with_symbol): Use font family caches.
12645 (macfont_list, macfont_list_family):
12646 Use macfont_copy_available_families_cache instead of
12647 mac_font_create_available_families.
12648
12649 2015-07-12 Dmitry Gutov <dgutov@yandex.ru>
12650
12651 Show the default value in the prompt
12652 * lisp/progmodes/xref.el: Add `M-?' binding for
12653 xref-find-references. Declare functions `grep-read-files' and
12654 `grep-expand-template'.
12655 (xref--read-identifier): Show the default value in the prompt.
12656
12657 * lisp/progmodes/xref.el (xref-find-regexp): When called with
12658 prefix argument, ask for file patterns to search as well. When
12659 prompting for the directory, require an existing one.
12660 (xref-collect-matches): Add a new argument, FILES. Use it in the
12661 above function.
12662
12663 Add `project-ignores'
12664 * lisp/progmodes/project.el (project-ignores): New generic
12665 function, and an implementation for the VC project type.
12666 * lisp/progmodes/xref.el (xref--rgrep-command): Split, as a
12667 variant of rgrep-default-command that handles a generic list of
12668 ignores.
12669 (xref-collect-matches): Use it, and pass through to it the value
12670 of the newly added argument.
12671 (xref-find-regexp): Handle ignored paths within the project.
12672 Remove outdated comment.
12673 * lisp/vc/vc.el (vc-default-ignore-completion-table):
12674 Skip the comments and the empty lines.
12675
12676 2015-07-12 Xue Fuqiao <xfq.free@gmail.com>
12677
12678 * doc/emacs/buffers.texi (Misc Buffer): Add a cross reference.
12679
12680 2015-07-11 Eric Abrahamsen <eric@ericabrahamsen.net>
12681
12682 gnus-registry.el: Correct function argument order
12683 * lisp/gnus/gnus-registry.el (gnus-registry--set/remove-mark):
12684 Reverse the order of function arguments.
12685
12686 2015-07-11 Dmitry Gutov <dgutov@yandex.ru>
12687
12688 Bind grep-highlight-matches to nil
12689 * lisp/progmodes/xref.el (xref-collect-matches):
12690 Bind grep-highlight-matches to nil (bug#20728).
12691
12692 2015-07-11 Nikolaus Rath <Nikolaus@rath.org>
12693
12694 nnimap.el: Fix IMAP message size parsing
12695 * lisp/gnus/nnimap.el (nnimap-transform-headers):
12696 Don't assume that UID comes before RFC822.SIZE.
12697
12698 2015-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
12699
12700 * lisp/gnus/nnimap.el: Clean up "unused var" warnings
12701 (auth-source-creation-prompts): Declare.
12702 (nnimap-retrieve-headers, nnimap-status-message)
12703 (nnimap-request-create-group, nnimap-request-delete-group)
12704 (nnimap-close-group, nnimap-request-move-article)
12705 (nnimap-request-accept-article, nnimap-request-newgroups)
12706 (nnimap-request-post, nnimap-dummy-active-number)
12707 (nnimap-save-mail-spec, nnimap-get-groups): Add _ to unused vars.
12708 (nnimap-parse-flags): Remove unused var `p'.
12709 (nnimap-retrieve-group-data-early): Remove unused var `groups'.
12710 (nnimap-flags-to-marks): Remove unused var `totalp'.
12711
12712 2015-07-10 Andy Moreton <andrewjmoreton@gmail.com> (tiny change)
12713
12714 * src/w32heap.c (DUMPED_HEAP_SIZE): Bump to 20MB.
12715
12716 2015-07-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12717
12718 * src/macfont.m (macfont_list): Ignore font families lacking
12719 font descriptors.
12720
12721 2015-07-09 Dmitry Gutov <dgutov@yandex.ru>
12722
12723 Don't check the exit status, it can be misleading
12724 * lisp/progmodes/xref.el (xref-collect-matches): Don't check the
12725 exit status, it can be misleading.
12726
12727 Introduce a Project API
12728 * lisp/progmodes/project.el: New file.
12729 * lisp/cedet/ede.el (project-try-ede): New function.
12730 (project-root): New implementation.
12731 * lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
12732 Set project-search-path-function.
12733 (elisp--xref-find-references): Delegate some logic to
12734 project-search-path.
12735 (elisp-search-path): New function.
12736 (elisp-xref-find): Don't implement `matches' anymore.
12737 * lisp/progmodes/etags.el: Don't implement `matches'.
12738 Delegate some logic to project-search-path.
12739 (etags-search-path): New function.
12740 * lisp/progmodes/xref.el (xref-find-function):
12741 Remove `matches' from the API.
12742 (xref-find-regexp): Move whatever common logic was in elisp and
12743 etags implementations, and search the directories returned by
12744 project-directories and project-search-path.
12745
12746 2015-07-09 Nicolas Petton <nicolas@petton.fr>
12747
12748 * test/automated/map-tests.el (test-map-delete-return-value):
12749 Uncomment test.
12750
12751 Add support for gv.el in map.el
12752 * lisp/emacs-lisp/map.el (map-elt, map-delete): Declare a gv-expander.
12753 * lisp/emacs-lisp/map.el (map-put): Refactor using `setf' and `map-elt'.
12754 * test/automated/map-tests.el: Update tests to work with the new
12755 implementations of map-elt and map-put.
12756
12757 2015-07-09 Glenn Morris <rgm@gnu.org>
12758
12759 * lisp/emacs-lisp/debug.el (debug-help-follow): Use describe-symbol.
12760
12761 2015-07-09 Dmitry Gutov <dgutov@yandex.ru>
12762
12763 Syntax-propertize until the end of the line first
12764 * lisp/progmodes/xref.el (xref--collect-match): Syntax-propertize
12765 until the end of the line first.
12766
12767 2015-07-09 Xue Fuqiao <xfq.free@gmail.com>
12768
12769 * doc/emacs/files.texi (File Archives): Add a cross reference.
12770
12771 2015-07-08 Nikolaus Rath <Nikolaus@rath.org>
12772
12773 nnimap.el: Handle plain value for nnimap-stream
12774 * lisp/gnus/nnimap.el (nnimap-open-connection-1): Always query
12775 capabilities, so that a 'plain value for the `nnimap-stream' server
12776 variable is handled correctly.
12777 * doc/misc/gnus.texi (Customizing the IMAP Connection):
12778 Document the 'plain option.
12779
12780 2015-07-08 Leo Liu <sdl.web@gmail.com>
12781
12782 Fix bug in thing-at-point--bounds-of-well-formed-url
12783 * lisp/thingatpt.el (thing-at-point--bounds-of-well-formed-url): Make
12784 sure boundary contains current point.
12785
12786 2015-07-08 Dmitry Gutov <dgutov@yandex.ru>
12787
12788 * lisp/progmodes/xref.el (xref-collect-matches): Use `nreverse'
12789 in the end.
12790
12791 Declare whitespace-line-column a safe file-local
12792 * lisp/whitespace.el (whitespace-line-column): Declare to be a
12793 safe file-local when the value is an integer.
12794
12795 2015-07-08 Eric Abrahamsen <eric@ericabrahamsen.net>
12796
12797 gnus-group.el: Check if group names are already strings
12798 * lisp/gnus/gnus-group.el (gnus-group-group-name):
12799 The group name may already be a string.
12800 Specifically, in the group list reached from the *Server* buffer,
12801 the 'gnus-group text property returns a string. Everywhere else
12802 it returns a symbol.
12803
12804 nnimap.el: Remove unused let variables
12805 * lisp/gnus/nnimap.el (nnimap-request-group): Variables are not used.
12806
12807 2015-07-08 Eli Zaretskii <eliz@gnu.org>
12808
12809 Support "maximized" property of runemacs's shortcut
12810 * nt/runemacs.c (WinMain): If runemacs is invoked "maximized", pass
12811 the '--maximized' switch to Emacs.
12812
12813 Support "minimized" property of runemacs's shortcut
12814 * nt/runemacs.c (WinMain): If runemacs is invoked "minimized",
12815 pass the '--iconic' switch to Emacs. (Bug#20991)
12816
12817 2015-07-08 Xue Fuqiao <xfq.free@gmail.com>
12818
12819 Doc fixes
12820 * doc/emacs/files.texi (Diff Mode): Fix the description of `C-c
12821 C-w' in Diff mode.
12822 * doc/emacs/arevert-xtra.texi (Auto Reverting the Buffer Menu):
12823 Add a cross reference.
12824
12825 2015-07-08 Nicolas Richard <youngfrog@members.fsf.org>
12826
12827 * lisp/obsolete/landmark.el: Add Obsolete-since header.
12828
12829 2015-07-07 Glenn Morris <rgm@gnu.org>
12830
12831 * test/automated/ert-tests.el (ert-test-deftest):
12832 Update for recent changes.
12833
12834 2015-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
12835
12836 (gv-setter, gv-synthetic-place, gv-delay-error): New funs/macros
12837 * lisp/emacs-lisp/gv.el (gv-setter): New function.
12838 (gv-invalid-place): New error.
12839 (gv-get): Use them.
12840 (gv-synthetic-place, gv-delay-error): New places.
12841 * lisp/emacs-lisp/cl-generic.el (cl--generic-setf-rewrite): Remove.
12842 (cl-defgeneric, cl-defmethod): Use gv-setter.
12843
12844 2015-07-07 Fabrice Popineau <fabrice.popineau@gmail.com>
12845
12846 Make vc-tests work with MSYS svn program
12847 * lisp/vc/vc-svn.el (vc-svn-create-repo): Fix the file:// URL when
12848 svn is an MSYS program.
12849
12850 2015-07-07 Ken Brown <kbrown@cornell.edu>
12851
12852 Improve recent change to emacsclient on Cygwin
12853 * lisp/server.el (server-process-filter): Remove redundant check
12854 that 'cygwin-convert-file-name-from-windows' is defined as a
12855 function on Cygwin. Don't call that function unless its argument
12856 starts with a drive letter.
12857
12858 2015-07-07 Artur Malabarba <bruce.connor.am@gmail.com>
12859
12860 * lisp/emacs-lisp/package.el (package-compute-transaction):
12861 Fix void variable due to `found-something' being in the wrong `let'.
12862
12863 2015-07-07 Nicolas Richard <theonewiththeevillook@yahoo.fr>
12864
12865 * lisp/play/landmark.el: Move to lisp/obsolete/.
12866
12867 2015-07-07 Martin Rudalics <rudalics@gmx.at>
12868
12869 Have `x-show-tip' handle `right' and `bottom' frame parameters
12870 * src/nsfns.m (compute_tip_xy, Fx_show_tip)
12871 * src/w32fns.c (compute_tip_xy, Fx_show_tip)
12872 * src/xfns.c (compute_tip_xy, Fx_show_tip): Allow aligning
12873 tooltips also via `right' and `bottom' frame parameters.
12874
12875 2015-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
12876
12877 Add online-help support to describe types
12878 * lisp/help-fns.el (describe-symbol-backends): Move to help-mode.el.
12879 (describe-symbol): Improve the selection of default.
12880 * lisp/help-mode.el: Require cl-lib.
12881 (describe-symbol-backends): Move from help-fns.el.
12882 (help-make-xrefs): Use it.
12883 * lisp/emacs-lisp/cl-extra.el (describe-symbol-backends): Add entry
12884 for types.
12885 (cl--typedef-regexp): New const.
12886 (find-function-regexp-alist): Add entry for types.
12887 (cl-help-type, cl-type-definition): New buttons.
12888 (cl-find-class): New function.
12889 (cl-describe-type): New command.
12890 (cl--describe-class, cl--describe-class-slot)
12891 (cl--describe-class-slots): New functions, moved from eieio-opt.el.
12892 * lisp/emacs-lisp/cl-generic.el (cl--generic-method-documentation)
12893 (cl--generic-all-functions, cl--generic-specializers-apply-to-type-p):
12894 New functions. Moved from eieio-opt.el.
12895 (cl--generic-class-parents): New function, extracted from
12896 cl--generic-struct-specializers.
12897 (cl--generic-struct-specializers): Use it.
12898 * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Use pcase-dolist.
12899 Improve constructor's docstrings.
12900 (cl-struct-unknown-slot): New error.
12901 (cl-struct-slot-offset): Use it.
12902 * lisp/emacs-lisp/cl-preloaded.el (cl-struct-define): Record the type
12903 definition in current-load-list.
12904 * lisp/emacs-lisp/eieio-core.el (eieio--known-slot-names): New var.
12905 (eieio--add-new-slot): Set it.
12906 (eieio-defclass-internal): Use new name for current-load-list.
12907 (eieio-oref): Add compiler-macro to warn about unknown slots.
12908 * lisp/emacs-lisp/eieio.el (defclass): Update eieio--known-slot-names
12909 as compile-time as well. Improve constructor docstrings.
12910 * lisp/emacs-lisp/eieio-opt.el (eieio-help-class)
12911 (eieio--help-print-slot, eieio-help-class-slots): Move to cl-extra.el.
12912 (eieio-class-def): Remove button.
12913 (eieio-help-constructor): Use new name for load-history element.
12914 (eieio--specializers-apply-to-class-p, eieio-all-generic-functions)
12915 (eieio-method-documentation): Move to cl-generic.el.
12916 (eieio-display-method-list): Use new names.
12917 * lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression):
12918 Add "define-linline".
12919 (lisp-fdefs): Remove "defsubst".
12920 (el-fdefs): Add "defsubst", "cl-defsubst", and "define-linline".
12921 * lisp/emacs-lisp/macroexp.el (macroexp--warned): New var.
12922 (macroexp--warn-and-return): Use it to avoid inf-loops.
12923 Add `compile-only' argument.
12924
12925 2015-07-06 Fabián Ezequiel Gallina <fgallina@gnu.org>
12926
12927 python.el: Fix local/remote shell environment setup
12928 * lisp/progmodes/python.el (python-shell-with-environment):
12929 Fix remote/local environment setup.
12930 * test/automated/python-tests.el (python-shell-with-environment-1)
12931 (python-shell-with-environment-2): New tests.
12932
12933 2015-07-06 Glenn Morris <rgm@gnu.org>
12934
12935 * lisp/simple.el (set-variable): Tweak recent doc fix.
12936
12937 2015-07-06 Ken Brown <kbrown@cornell.edu>
12938
12939 * src/sysdep.c (handle_sigsegv) [CYGWIN]: Increase STACK_DANGER_ZONE.
12940
12941 2015-07-06 Glenn Morris <rgm@gnu.org>
12942
12943 * lisp/simple.el (set-variable): Use user-error for type mismatch.
12944
12945 2015-07-06 Ken Brown <kbrown@cornell.edu>
12946
12947 * src/emacs.c (main): Don't increase the stack size on Cygwin.
12948
12949 2015-07-06 Stefan Monnier <monnier@iro.umontreal.ca>
12950
12951 (describe-symbol): Rewrite describe-function-or-variable
12952 * lisp/help-fns.el (describe-symbol-backends): New var.
12953 (help-xref-stack-item): Declare.
12954 (describe-symbol): Rename from describe-function-or-variable.
12955 Rewrite using describe-symbol-backends instead of help-xref-interned.
12956 * lisp/help.el (help-map): Use it.
12957 * lisp/help-mode.el (help-symbol, help-follow-symbol): Use it.
12958 (help-xref-interned): Make it into an obsolete alias.
12959
12960 * lisp/emacs-lisp/eieio-base.el (eieio-persistent-save): Don't ignore
12961 `file' arg (bug#20972). Always use utf-8-emacs. Use with-temp-buffer
12962 and cl-letf.
12963
12964 2015-07-06 Wolfgang Jenkner <wjenkner@inode.at>
12965
12966 Fix parsing glitches in dired-mark-sexp (bug#13575)
12967 * lisp/dired-x.el (dired-x--string-to-number): New function.
12968 (dired-mark-sexp): Use it. Tweak dired-re-inode-size. Fix usage
12969 of directory-listing-before-filename-regexp. Consider
12970 forward-word harmful and replace it. Add more verbiage in
12971 comments and doc string.
12972
12973 2015-07-06 Fabián Ezequiel Gallina <fgallina@gnu.org>
12974
12975 python.el: Respect process environment for remote shells
12976 * lisp/progmodes/python.el
12977 (python-shell-calculate-process-environment): Calculate
12978 process-environment or tramp-remote-process-environment depending
12979 whether current file is remote.
12980 (python-shell-calculate-exec-path): Calculate exec-path or
12981 tramp-remote-path depending whether current file is remote.
12982 (python-shell-with-environment): New macro.
12983 (python-shell-prompt-detect, python-shell-calculate-command)
12984 (python-shell-make-comint, python-check): Use it.
12985
12986 python.el: Avoid making let-bound defvars buffer local (Bug#18244)
12987 * lisp/progmodes/python.el (python-shell--interpreter)
12988 (python-shell--interpreter-args): New vars.
12989 (inferior-python-mode, python-shell-make-comint): Use them.
12990
12991 python.el: Fixes for IPython 3.x (Bug#20580)
12992 * lisp/progmodes/python.el:
12993 (python-shell-completion-native-setup): Fix IPython 3.x setup.
12994 (python-shell-completion-native-get-completions): Fix timeout
12995 logic.
12996
12997 python.el: Fix mark-defun behavior (Bug#19665)
12998 * lisp/progmodes/python.el (python-mark-defun): New function.
12999 * test/automated/python-tests.el (python-mark-defun-1)
13000 (python-mark-defun-2, python-mark-defun-3): New tests.
13001
13002 2015-07-05 Glenn Morris <rgm@gnu.org>
13003
13004 * lisp/progmodes/f90.el (f90-type-def-re): Handle attribute lists
13005 such as "extends(parent), private". (Bug#20969)
13006 * test/automated/f90.el (f90-test-bug20969, f90-test-bug20969b):
13007 New tests.
13008
13009 2015-07-05 Paul Eggert <eggert@cs.ucla.edu>
13010
13011 Avoid duplicate calls to current_timespec
13012 * src/process.c (wait_reading_process_output):
13013 Cache current_timespec results as long as we're not waiting.
13014
13015 2015-07-05 Ian Kelling <ian@iankelling.org>
13016
13017 Avoid returning early reading process output due to SIGIO
13018 * src/process.c (wait_reading_process_output): Extend the behavior of
13019 not breaking due to not finding output when a timer has lowered the
13020 timeout to include when SIGIO lowers the timeout.
13021
13022 Don't return as fast reading any process output
13023 * src/process.c (wait_reading_process_output):
13024 The patch for Bug#17647 returns too fast sometimes when reading
13025 from any processes. Revert part of it, and limit the timeout more
13026 sensibly (Bug#20978).
13027
13028 Refactor timeouts in wait_reading_process_output
13029 * src/process.c (wait_reading_process_output):
13030 Simplify timeouts with an enum. Remove a redundant condition.
13031 (Bug#20978)
13032
13033 Remove ADAPTIVE_READ_BUFFERING ifdef
13034 * src/process.c (make-process, make-pipe-process, deactivate_process)
13035 (wait_reading_process_output, read_process_output, send_process)
13036 (init_process_emacs): ifdef ADAPTIVE_READ_BUFFERING was originally
13037 added in case there was an operating system in which it was not
13038 useful. That was 11 years ago and it hasn't happened. Make
13039 development easier by not considering the effect of changes on a
13040 theoretical OS where this is disabled (Bug#20978).
13041
13042 2015-07-05 Glenn Morris <rgm@gnu.org>
13043
13044 * lisp/simple.el (set-variable): Doc fix.
13045
13046 * lisp/progmodes/fortran.el (fortran-line-length): Doc fix.
13047
13048 2015-07-05 Ian Kelling <ian@iankelling.org>
13049
13050 accept-process-output fix
13051 This is a followon to the fix for bug#17647 (Bug#20976).
13052 * src/process.c (status_notify): Fix too high return in some cases.
13053
13054 2015-07-05 Artur Malabarba <bruce.connor.am@gmail.com>
13055
13056 * lisp/character-fold.el (character-fold-table):
13057 Only fold decompositions if at least one character is non-spacing.
13058 (Bug#20975)
13059
13060 2015-07-05 Paul Eggert <eggert@cs.ucla.edu>
13061
13062 Merge from gnulib
13063 This incorporates:
13064 2015-07-04 file-has-acl, acl-permissions: fix HP-UX typos
13065 2015-07-03 set-permissions.c: adjust acl_from_mode's cpp guard
13066 2015-07-02 update-copyright: fix test failure with perl >= 5.22
13067 2015-07-01 gnulib-common.m4: change the ARFLAGS default to 'cr'
13068 2015-07-01 acl: fix definition of acl_from_mode on FreeBSD
13069 * build-aux/update-copyright, doc/misc/texinfo.tex, lib/acl-internal.h:
13070 * lib/set-permissions.c, m4/gnulib-common.m4: Copy from gnulib.
13071
13072 2015-07-05 Christoph Wedler <christoph.wedler@sap.com>
13073
13074 Respect `prog-indentation-context' in python.el
13075 * lisp/progmodes/python.el (python-indent-guess-indent-offset)
13076 (python-indent-context, python-indent--calculate-indentation)
13077 (python-info-current-defun)
13078 (python-info-dedenter-opening-block-message)
13079 (python-info-line-ends-backslash-p)
13080 (python-info-beginning-of-backslash)
13081 (python-info-continuation-line-p): Use `prog-widen'.
13082 (python-indent--calculate-indentation)
13083 (python-indent--calculate-levels)
13084 (python-indent-calculate-indentation): Use `prog-first-column'.
13085 (python-indent--calculate-levels): Simplify.
13086 Ignore also initial empty lines for syntax calculation.
13087 * lisp/progmodes/python.el (python-indent-context): Return
13088 :no-indent for first non-empty line, not just in line 1.
13089 * test/automated/python-tests.el (python-indent-base-case)
13090 (python-indent-inside-paren-1, python-indent-inside-paren-2)
13091 (python-indent-inside-paren-3, python-indent-inside-paren-4)
13092 (python-indent-inside-paren-5, python-indent-inside-paren-6)
13093 (python-indent-after-backslash-1)
13094 (python-indent-after-backslash-2)
13095 (python-indent-after-backslash-3)
13096 (python-indent-after-backslash-4, python-indent-inside-string-1):
13097 Expect :no-indent for first non-empty line.
13098
13099 2015-07-04 Daniel Colascione <dancol@dancol.org>
13100
13101 Factor isearch word description into new function
13102 * lisp/isearch.el (isearch--describe-word-mode): New function.
13103 (isearch-message-prefix, isearch-query-replace): Use it.
13104
13105 2015-07-04 Eli Zaretskii <eliz@gnu.org>
13106
13107 Fix mouse pointer on w32 when a menu is active
13108 * src/w32fns.c (w32_wnd_proc): Don't change the mouse pointer
13109 shape while a menu is in use. This started happening since we now
13110 send WM_EMACS_SHOWCURSOR messages when the mouse moves.
13111
13112 2015-07-04 Martin Rudalics <rudalics@gmx.at>
13113
13114 Fix processing of alpha parameter for Windows tip frames (Bug#17344)
13115 * src/w32fns.c (x_create_tip_frame): Fix processing alpha
13116 parameter. (Bug#17344)
13117
13118 Have `compilation-set-window' use right window for getting fringes
13119 (Bug#20829)
13120 * lisp/progmodes/compile.el (compilation-set-window):
13121 Take `window-fringes' from argument window.
13122
13123 2015-07-03 Glenn Morris <rgm@gnu.org>
13124
13125 Update eieio tests for recent eieio-core change.
13126 * test/automated/eieio-test-persist.el (persist-test-save-and-compare):
13127 * test/automated/eieio-tests.el
13128 (eieio-test-32-slot-attribute-override-2):
13129 Replace the deleted eieio--class-v with cl--find-class.
13130
13131 2015-07-03 Martin Rudalics <rudalics@gmx.at>
13132
13133 Fix some issues with `window-divider-mode'
13134 * lisp/frame.el (window-divider-default-places): New option.
13135 (window-divider-mode): Remove option.
13136 (window-divider-mode): Make it a "regular" minor mode.
13137 (window-divider-width-valid-p): Drop frame- prefix.
13138 (window-divider-mode-apply): New argument ENABLE. Drop frame-
13139 prefix. Handle `window-divider-default-places'.
13140 (frame--window-divider-mode-set-and-apply): Remove.
13141 (window-divider-default-bottom-width)
13142 (window-divider-default-right-width): Drop :group entries.
13143 * lisp/menu-bar.el (menu-bar-bottom-and-right-window-divider)
13144 (menu-bar-right-window-divider, menu-bar-bottom-window-divider)
13145 (menu-bar-no-window-divider): Set `window-divider-default-places'
13146 and call `window-divider-mode'.
13147 * doc/emacs/frames.texi (Window Dividers): Document
13148 `window-divider-default-places'.
13149
13150 2015-07-02 Xue Fuqiao <xfq.free@gmail.com>
13151
13152 * doc/emacs/display.texi (Displaying Boundaries):
13153 * doc/emacs/search.texi (Word Search): Add cross references.
13154
13155 2015-07-02 Paul Eggert <eggert@cs.ucla.edu>
13156
13157 -batch should not affect ‘’ -> `' display
13158 * lisp/startup.el (command-line): Do the ‘’ -> `' check even if
13159 -batch (Bug#20926).
13160
13161 2015-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
13162
13163 * lisp/emacs-lisp/eieio-core.el (eieio--class-v): Remove
13164 * lisp/emacs-lisp/eieio-core.el, lisp/emacs-lisp/eieio.el:
13165 * lisp/emacs-lisp/eieio-opt.el, lisp/emacs-lisp/eieio-compat.el:
13166 Use cl--find-class instead.
13167
13168 * lisp/term/xterm.el (xterm--query): Fix paren typo (bug#20951).
13169
13170 2015-07-02 Martin Rudalics <rudalics@gmx.at>
13171
13172 Some further fixes in Change Window node (Bug#20183)
13173 * doc/emacs/windows.texi (Change Window): Replace "rearranging"
13174 by "resizing" in section title. Add some concept indices.
13175 Suggested by N. Jackson (Bug#20183).
13176
13177 * doc/emacs/windows.texi (Change Window): Reference window
13178 dividers.
13179
13180 Document new `window-divider-mode'.
13181 * lisp/frame.el (window-divider-mode): Fix doc-string.
13182 * doc/emacs/frames.texi (Window Dividers): New section.
13183
13184 Improve accessibility of window dividers (Bug#20183)
13185 * lisp/faces.el (window-divider)
13186 (window-divider-first-pixel, window-divider-last-pixel): Change
13187 membership from `frames' to `window-divider' customization group.
13188 * lisp/frame.el (window-divider): New customization group.
13189 (window-divider-mode): New minor mode.
13190 (window-divider-default-bottom-width)
13191 (window-divider-default-right-width): New options.
13192 (frame--window-divider-previous-mode): New variable.
13193 (frame-window-divider-width-valid-p)
13194 (frame--window-divider-mode-apply)
13195 (frame--window-divider-mode-set-and-apply): New functions.
13196 * lisp/menu-bar.el (menu-bar-options-save): Save
13197 window-divider-mode settings.
13198 (menu-bar-window-divider-customize)
13199 (menu-bar-bottom-and-right-window-divider)
13200 (menu-bar-right-window-divider, menu-bar-bottom-window-divider)
13201 (menu-bar-no-window-divider): New functions.
13202 (menu-bar-showhide-window-divider-menu): New variable.
13203 (menu-bar-showhide-menu): Show/hide window divider menu.
13204 * lisp/mouse.el (mouse-split-window-vertically)
13205 (mouse-split-window-horizontally): Replace `error' by
13206 `user-error'. Bind `window-combination-resize' to nil.
13207 (top-level): Add/reorder mouse key bindings on mode- and
13208 vertical-line.
13209
13210 2015-07-02 Paul Eggert <eggert@cs.ucla.edu>
13211
13212 Don't display ‘’ as `' under X in en_GB
13213 The curved quote setup code invokes (char-displayable-p ?‘),
13214 but this isn’t reliable until after the X frame replaces the
13215 terminal frame (Bug#20926).
13216 * lisp/international/mule-cmds.el (set-locale-environment):
13217 Move curved quote setup code from here ...
13218 * lisp/startup.el (command-line): ... to here, after creating
13219 the X frame.
13220
13221 2015-07-01 Nicolas Richard <youngfrog@members.fsf.org>
13222
13223 * lisp/emacs-lisp/seq.el (seq-difference): Fix typo in docstring.
13224
13225 * lisp/ido.el (ido-restrict-to-matches): Add an optional argument
13226 to reverse the meaning (Bug#15631).
13227
13228 2015-07-01 Eli Zaretskii <eliz@gnu.org>
13229
13230 Be more tolerant to fonts named "Foobar-12"
13231 * src/frame.c (x_set_font): If font_spec_from_name returns nil,
13232 don't barf; instead, request a new fontset to be generated. This
13233 avoids unnecessarily rejecting fonts named against XLFD rules. See
13234 http://lists.gnu.org/archive/html/help-emacs-windows/2015-06/msg00001.html,
13235 for the description of the original problem.
13236 * lisp/faces.el (set-face-attribute): Don't be fooled too easily
13237 by a hyphen in a font's name.
13238
13239 Fix value of posn-at-pont in R2L lines
13240 * src/keyboard.c (Fposn_at_x_y, Fposn_at_point): Allow X pixel
13241 coordinate of -1, for a newline in a right-to-left line that
13242 overflowed into the left fringe.
13243
13244 2015-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
13245
13246 (cl--copy-slot-descriptor): Copy the `props' alist as well
13247 * lisp/emacs-lisp/cl-preloaded.el (cl--copy-slot-descriptor-1):
13248 Rename from cl--copy-slot-descriptor.
13249 (cl--copy-slot-descriptor): New function. Copy the alist (bug#20914).
13250
13251 2015-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
13252
13253 * lisp/term/xterm.el (xterm--query): Avoid generating garbage
13254 (xterm-query-timeout): New var.
13255 (xterm--query): Use it. Fallback on async method if we timeout before
13256 getting the first byte of the reply (bug#12354).
13257
13258 2015-06-30 Paul Eggert <eggert@cs.ucla.edu>
13259
13260 Spelling fixes
13261 * lisp/character-fold.el (character-fold-search):
13262 * lisp/emacs-lisp/package.el (package-hidden-regexps):
13263 Fix typos.
13264
13265 2015-06-30 Xue Fuqiao <xfq.free@gmail.com>
13266
13267 * doc/emacs/frames.texi (Frame Commands): Typo fix. (Bug#20946)
13268
13269 2015-06-30 Paul Eggert <eggert@cs.ucla.edu>
13270
13271 In strings, prefer plain ` and ' to \` and \'
13272 * lisp/allout.el (allout-insert-listified):
13273 * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
13274 * lisp/ls-lisp.el (ls-lisp-UCA-like-collation)
13275 (ls-lisp-string-lessp):
13276 * lisp/menu-bar.el (menu-bar-open):
13277 * lisp/obsolete/otodo-mode.el (todo-top-priorities):
13278 * lisp/progmodes/compile.el (compile):
13279 * lisp/progmodes/etags.el (tags-loop-scan):
13280 * lisp/progmodes/make-mode.el (makefile-browser-insert-continuation):
13281 * lisp/subr.el (posn-actual-col-row):
13282 * lisp/term/pc-win.el (x-list-fonts):
13283 * lisp/textmodes/texinfmt.el (texinfmt-version):
13284 * lisp/textmodes/texnfo-upd.el (texinfo-master-menu):
13285 * lisp/time.el (display-time-world-list):
13286 * lisp/tmm.el (tmm-menubar):
13287 * src/buffer.c (syms_of_buffer):
13288 * src/fileio.c (syms_of_fileio):
13289 Omit unnecessary and confusing backslash before quote.
13290 * lisp/erc/erc.el (erc-cmd-LASTLOG):
13291 * lisp/progmodes/flymake.el (flymake-fix-file-name):
13292 * lisp/progmodes/vhdl-mode.el (vhdl-in-extended-identifier-p):
13293 Fix string that was intended to escape a backslash and not a quote.
13294
13295 2015-06-30 Glenn Morris <rgm@gnu.org>
13296
13297 * leim/Makefile.in, lisp/Makefile.in: Add missing EXEEXT definition.
13298
13299 * lisp/Makefile.in (MH_E_SRC, TRAMP_SRC, CAL_SRC):
13300 Replace hard-coded lists with wildcard + filter-out.
13301
13302 * configure.ac (system-configuration-features): Add X11, NS.
13303
13304 Improve reproducibility of generated loaddefs file
13305 * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads):
13306 Make the return value the modtime of the input file (if no autoloads).
13307 (update-directory-autoloads): In the "no autoloads" section,
13308 use "most recent modtime" rather than "current time".
13309
13310 2015-06-30 Artur Malabarba <bruce.connor.am@gmail.com>
13311
13312 * lisp/emacs-lisp/package.el (package--remove-hidden): Fix logic.
13313 (Bug#20930)
13314
13315 2015-06-30 Nicolas Petton <nicolas@petton.fr>
13316
13317 * doc/lispref/sequences.texi: Add documentation for seq-min and seq-max.
13318
13319 Add seq-min and seq-max
13320 Bump version number.
13321 * lisp/emacs-lisp/seq.el (seq-min, seq-max): New functions.
13322 * test/automated/seq-tests.el: Add tests for seq-min and seq-max.
13323
13324 2015-06-30 Eli Zaretskii <eliz@gnu.org>
13325
13326 Make sure sleep-for always delays for as long as it's told
13327 * src/dispnew.c (Fsleep_for): Call wait_reading_process_output in
13328 a loop, to ensure we always wait exactly the required amount of
13329 time. (Bug#15990)
13330
13331 2015-06-30 Paul Eggert <eggert@cs.ucla.edu>
13332
13333 Fix pointer signedness glitch
13334 * src/font.c (font_load_for_lface): Use SSDATA, not SDATA.
13335
13336 2015-06-30 Eli Zaretskii <eliz@gnu.org>
13337
13338 Don't block changes in mouse pointer inside 'track-mouse'
13339 * etc/NEWS:
13340 * doc/lispref/frames.texi (Mouse Tracking): Document the special
13341 effect of setting 'track-mouse' to 'dragging'.
13342 * lisp/textmodes/artist.el (artist-mouse-draw-continously):
13343 * lisp/ruler-mode.el (ruler-mode-mouse-drag-any-column-iteration):
13344 * lisp/mouse-drag.el (mouse-drag-throw):
13345 * lisp/mouse.el (mouse-drag-line): Set 'track-mouse' to 'dragging'
13346 to avoid changes in the shape of the mouse pointer.
13347 * src/xdisp.c (define_frame_cursor1): Don't change the mouse
13348 pointer shape when do_mouse_tracking has the value of 'dragging',
13349 not just any non-nil value. (Bug#20934)
13350 (syms_of_xdisp): DEFSYM 'dragging'.
13351
13352 2015-06-30 Artur Malabarba <bruce.connor.am@gmail.com>
13353
13354 * lisp/isearch.el (isearch-toggle-word): Fix toggle.
13355
13356 * lisp/emacs-lisp/package.el (package-compute-transaction):
13357 Don't assume version sorting.
13358
13359 * lisp/emacs-lisp/package.el (package--save-selected-packages):
13360 Don't save before init time, to avoid overwriting configurations.
13361 (Bug#20855)
13362
13363 2015-06-30 Xue Fuqiao <xfq.free@gmail.com>
13364
13365 * doc/emacs/display.texi (Standard Faces, Fringes): Add cross
13366 references.
13367
13368 2015-06-29 Ted Zlatanov <tzz@lifelogs.com>
13369
13370 Update for the upcoming CFEngine 3.7 release: support macros and
13371 quoted context strings; reformat JSON; indent promise attributes 2
13372 units by default; give function parameter descriptions in the eldoc
13373 glue.
13374 * lisp/progmodes/cfengine.el: Update version and docs and fix name.
13375 Autoload `json-pretty-print'. Support new features in 3.7.
13376 (cfengine-parameters-indent): Set default promise attribute indent to
13377 2 more than the promise itself.
13378 (cfengine3-macro-regex): New variable to match the new macro syntax.
13379 (cfengine3-font-lock-keywords): Use it to highlight macros.
13380 (cfengine3-indent-line): Use it to indent macros to column 0.
13381 (cfengine3-class-selector-regex): Update for the new quoted strings
13382 format.
13383 (cfengine3-reformat-json-string): New function to reformat a JSON
13384 string using `json-pretty-print'.
13385 (cfengine3-format-function-docstring): Use function parameter
13386 description if it's provided by the cf-promises syntax dump.
13387
13388 2015-06-29 Michael R. Mauger <michael@mauger.com>
13389
13390 Cygwin emacsclient handles w32 file names
13391 * lisp/server.el (server-process-filter): Allow Cygwin's
13392 emacsclient to be used as a file handler on MS-Windows.
13393
13394 2015-06-29 Katsumi Yamaoka <yamaoka@jpl.org>
13395
13396 * lisp/isearch.el (isearch-exit): Don't call isearch-done twice
13397 (bug#20925).
13398
13399 2015-06-29 Eli Zaretskii <eliz@gnu.org>
13400
13401 * doc/lispref/text.texi (Sticky Properties): Improve wording.
13402 (Bug#20924)
13403
13404 Allow font names that end in "-NN", where NN is a number
13405 * src/font.c (font_load_for_lface): If the font-spec didn't match
13406 any available fonts, try again without interpreting trailing "-NN"
13407 as the font size. For the description of the original problem, see
13408 http://lists.gnu.org/archive/html/help-emacs-windows/2015-06/msg00001.html
13409
13410 .gdbinit followup to changes in !USE_LSB_TAG
13411 * src/.gdbinit (xgetsym): Don't left-shift $ptr even under
13412 !USE_LSB_TAG, as Emacs no longer does.
13413
13414 2015-06-29 Wolfgang Jenkner <wjenkner@inode.at>
13415
13416 * lisp/calc-store.el (calc-insert-permanent-variable): Heed case.
13417 Otherwise `s p' of f and F will stomp on each other's value.
13418 (Bug#20916)
13419
13420 2015-06-29 Artur Malabarba <bruce.connor.am@gmail.com>
13421
13422 * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):
13423 Don't block remember-pos if buffer isn't displayed. (Bug#20921)
13424
13425 2015-06-29 Nicolas Richard <theonewiththeevillook@yahoo.fr>
13426
13427 * lisp/emacs-lisp/package.el (describe-package): Use symbol-at-point
13428 as additional guess.
13429
13430 * lisp/emacs-lisp/package.el (describe-package): Convert the guess
13431 to a string.
13432
13433 2015-06-28 Paul Eggert <eggert@cs.ucla.edu>
13434
13435 apropos-library quoting fix
13436 * lisp/apropos.el (apropos-library): Quote library consistently
13437 with the rest of the quoting used by apropos.
13438
13439 Clarify interpreter-mode-alist doc
13440 * lisp/files.el (interpreter-mode-alist):
13441 Reword to avoid confusing quoting that wasn't working anyway.
13442
13443 2015-06-28 Michael Albinus <michael.albinus@gmx.de>
13444
13445 Sync with Tramp 2.2.12
13446 * doc/misc/trampver.texi:
13447 * lisp/net/trampver.el: Update release number.
13448 * test/automated/tramp-tests.el (tramp-test13-make-directory):
13449 Fix cleanup.
13450
13451 2015-06-28 Artur Malabarba <bruce.connor.am@gmail.com>
13452
13453 * lisp/isearch.el (isearch-mode): Don't char-fold regexps (bug#20913).
13454
13455 2015-06-27 Dmitry Gutov <dgutov@yandex.ru>
13456
13457 Bind grep-highlight-matches around the rgrep call
13458 * lisp/progmodes/grep.el (zrgrep): Bind grep-highlight-matches
13459 around the rgrep call (bug#20728).
13460
13461 Put "--color" before the other options in grep-command
13462 * lisp/progmodes/grep.el (grep-compute-defaults): Put "--color"
13463 before the other options in grep-command (bug#20912).
13464
13465 Add --color Grep option to the command dynamically
13466 * lisp/progmodes/grep.el (grep-template, grep-find-template):
13467 Update the description for <C>. (Bug#20728)
13468 (grep-compute-defaults): Don't add the --color option to
13469 grep-options. Only add it to grep-command.
13470 (grep-expand-keywords): Expand the env value opts into <C>.
13471 (grep-expand-template): Replace cf in the env with the opts list,
13472 that can include -i and --color.
13473 * lisp/progmodes/xref.el (xref-collect-matches): Do not remove
13474 "--color=always" from the template, because we don't have to.
13475
13476 2015-06-27 Paul Eggert <eggert@cs.ucla.edu>
13477
13478 cl-extra fixes for most-negative-fixnum
13479 * lisp/emacs-lisp/cl-extra.el (cl-gcd, cl-lcm, cl-random):
13480 Don't mishandle an argument equal to most-negative-fixnum,
13481 whose absolute value equals itself.
13482 (cl-gcd, cl-lcm): Use dolist rather than doing it by hand.
13483
13484 Initialize cl--gensym-counter to 0
13485 Previously it was initialized to a random value, which made it
13486 harder to reproduce earlier Emacs runs. The need for a random
13487 value went away when Emacs introduced and used the #: syntax for
13488 uninterned symbols (Bug#20862).
13489 * doc/misc/cl.texi (Creating Symbols, Common Lisp Compatibility):
13490 Document that cl--gensym-counter now starts with 0.
13491 * lisp/emacs-lisp/cl-lib.el (cl--gensym-counter): Remove.
13492 (cl--random-time): Move to near only remaining use.
13493 * lisp/emacs-lisp/cl-macs.el (cl--gensym-counter): Initialize to 0.
13494
13495 Improve docstring for macroexp-let2
13496 * lisp/emacs-lisp/macroexp.el (macroexp-let2):
13497 Improve as per suggestion by RMS in:
13498 http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00621.html
13499 Also, rename args to match new doc string.
13500
13501 2015-06-27 Eli Zaretskii <eliz@gnu.org>
13502
13503 Fix VC test suite on MS-Windows
13504 * lisp/vc/vc-svn.el (vc-svn-create-repo): Make sure the file: URL
13505 always starts with 3 slashes after the colon.
13506 * test/automated/vc-tests.el (vc-test--create-repo-function): Use
13507 'w32-application-type' to invoke CVS on MS-Windows with properly
13508 formatted CVSROOT directory name.
13509
13510 Add a new function w32-application-type
13511 * src/w32proc.c (Fw32_application_type): New function.
13512
13513 Avoid error in TLS connections due to incorrect format
13514 * src/gnutls.c (Fgnutls_boot): Use the %x conversion specifier in
13515 the call to 'error', instead of the unsupported %u. Reported by
13516 lo2net <fangtao0901@gmail.com>. (Bug#20908)
13517
13518 2015-06-26 Artur Malabarba <bruce.connor.am@gmail.com>
13519
13520 * lisp/replace.el (replace-search): Fix regexp case (bug#20901).
13521
13522 2015-06-26 Leo Liu <sdl.web@gmail.com>
13523
13524 * lisp/emacs-lisp/cl-indent.el: Fix indentation for
13525 `with-output-to-string' in elisp.
13526
13527 Revert "lisp/emacs-lisp/cl-indent.el: Fix indent of
13528 with-output-to-string".
13529 This reverts commit 659199f2ca5f283fb246faa78a244e5ca25f53dd.
13530
13531 2015-06-26 Eli Zaretskii <eliz@gnu.org>
13532
13533 Minor corrections in ELisp manual
13534 * doc/lispref/nonascii.texi (Character Properties): Correct
13535 inaccuracies in description of values of the Unicode properties.
13536
13537 Fix invisible mouse pointers on Windows.
13538 * src/w32fns.c: Include windowsx.h.
13539 (w32_wnd_proc): If the mouse moved and the mouse pointer is
13540 invisible, make it visible again even when the main (Lisp)
13541 thread is busy.
13542 * src/w32term.c (w32_toggle_invisible_pointer): Rather then
13543 garbaging the frame have the input thread call SetCursor.
13544
13545 2015-06-26 Martin Rudalics <rudalics@gmx.at>
13546
13547 Provide invisible mouse pointers on Windows (Bug#6105) (Bug#12922)
13548 * src/w32fns.c (w32_wnd_proc): Handle f->pointer_invisible
13549 for WM_SETCURSOR and WM_EMACS_SETCURSOR cases.
13550 * src/w32term.c (w32_hide_hourglass): Handle f->pointer_invisible.
13551 (w32_toggle_invisible_pointer): New function.
13552 (w32_create_terminal): Add w32_toggle_invisible_pointer as
13553 toggle_invisible_pointer_hook for this terminal.
13554
13555 2015-06-25 Xue Fuqiao <xfq.free@gmail.com>
13556
13557 Doc fix for deletion commands
13558 'delete-char' does not respect the value of 'delete-active-region'.
13559 * doc/emacs/killing.texi (Deletion):
13560 Fix documentation for some single-char deletion commands.
13561
13562 * doc/emacs/help.texi (Apropos):
13563 Improve documentation of 'apropos-do-all'.
13564
13565 * doc/emacs/help.texi (Help Summary):
13566 Improve documentation of 'describe-mode'.
13567
13568 2015-06-25 Paul Eggert <eggert@cs.ucla.edu>
13569
13570 Fix submake dependency bug with .h files
13571 * src/Makefile.in ($(libsrc)/make-docfile$(EXEEXT)):
13572 Depend on $(lib)/libgnu.a, so that we build $(lib)/*/*.h
13573 before the submake in $(libsrc) would spin off a subsubmake
13574 for $(lib) in parallel with our submake for $(lib) (Bug#20894).
13575
13576 2015-06-25 Artur Malabarba <bruce.connor.am@gmail.com>
13577
13578 * lisp/character-fold.el (character-fold-table): Reuse `table'.
13579
13580 2015-06-25 Paul Eggert <eggert@cs.ucla.edu>
13581
13582 Translate undisplayable ‘ to `
13583 * doc/lispref/help.texi (Keys in Documentation):
13584 * lisp/international/mule-cmds.el (set-locale-environment):
13585 * lisp/term/w32console.el (terminal-init-w32console):
13586 * src/doc.c (Fsubstitute_command_keys, Vhelp_quote_translation):
13587 If ‘ is not displayable, transliterate it to `, not to '. See:
13588 http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00542.html
13589
13590 Fix C99 incompatibilities in Cairo code
13591 * src/image.c (xpm_load) [USE_CAIRO]:
13592 * src/xterm.c (x_cr_accumulate_data) [USE_CAIRO]:
13593 Fix pointer signedness problem.
13594
13595 2015-06-25 Oleh Krehel <ohwoeowho@gmail.com>
13596
13597 lisp/emacs-lisp/cl-indent.el: Fix indent of with-output-to-string
13598 * lisp/emacs-lisp/cl-indent.el (common-lisp-indent-function):
13599 `with-output-to-string' should have the same indent as `progn'.
13600 This is in line with the declaration of `with-output-to-string'.
13601
13602 2015-06-25 Paul Eggert <eggert@cs.ucla.edu>
13603
13604 Get ‘./configure; make -C src emacs’ to work
13605 Without this fix, lib/fcntl.h isn't built in time (Bug#20894).
13606 * lib-src/Makefile.in (../lib/libgnu.a):
13607 * src/Makefile.in ($(lib)/libgnu.a): Build all, not libgnu.a.
13608
13609 2015-06-24 Paul Eggert <eggert@cs.ucla.edu>
13610
13611 Fix GC bugs --with-wide-int and Qnil == 0
13612 Use the same alignment for the !USE_LSB_TAG case as for the
13613 more-typical USE_LSB_TAG case. The attempt to support arbitrary
13614 alignments with !USE_LSB_TAG had subtle bugs in garbage collection
13615 once we changed the representation of symbols so that Qnil == 0.
13616 Problem reported by Eli Zaretskii (Bug#20862).
13617 * src/alloc.c (XMALLOC_HEADER_ALIGNMENT) [XMALLOC_OVERRUN_CHECK]:
13618 * src/alloc.c (vector_alignment, union aligned_Lisp_Symbol)
13619 (union aligned_Lisp_Misc, maybe_lisp_pointer, pure_alloc):
13620 Use same alignment for !USE_LSB_TAG as for USE_LSB_TAG.
13621 * src/alloc.c (POINTERS_MIGHT_HIDE_IN_OBJECTS): Remove.
13622 This optimization in the !USE_LSB_TAG case is no longer valid when
13623 symbols are represented via offsets. Change the only use to
13624 assume that pointers might hide in objects.
13625 * src/lisp.h (alignas) [!USE_LSB_TAG]:
13626 Require support in this case, too.
13627 (TAG_SYMOFFSET, XSYMBOL) [!USE_LSB_TAG]: Do not shift the offset.
13628 This is OK, because the !USE_LSB_TAG case now applies only when
13629 Lisp_Object is wider than void *, so there's no longer any need
13630 to shift the offset. Not shifting the offset means that
13631 symbol representations have the same alignment as pointers,
13632 which the GC assumes.
13633
13634 2015-06-24 Xue Fuqiao <xfq.free@gmail.com>
13635
13636 * doc/lispintro/emacs-lisp-intro.texi (Data types):
13637 Improve documentation of 'substring'.
13638
13639 2015-06-24 Artur Malabarba <bruce.connor.am@gmail.com>
13640
13641 * lisp/character-fold.el (character-fold-table): Fix table generation.
13642
13643 2015-06-24 Glenn Morris <rgm@gnu.org>
13644
13645 * nextstep/Makefile.in (all): Make it the first target.
13646 (../src/emacs${EXEEXT}): Add rule for making it.
13647
13648 2015-06-24 Artur Malabarba <bruce.connor.am@gmail.com>
13649
13650 * etc/NEWS: Fix mention to old function name.
13651
13652 * lisp/character-fold.el: New file (Bug#20887)
13653 (character-fold-to-regexp): New function.
13654 * lisp/replace.el (replace-search): Check value of
13655 `character-fold-search'.
13656 * lisp/isearch.el: Move character-folding code to
13657 character-fold.el
13658 (isearch-toggle-character-fold): New command.
13659 (isearch-mode-map): Bind it to "\M-sf".
13660 (isearch-mode): Check value of `character-fold-search'.
13661
13662 2015-06-24 Stefan Monnier <monnier@iro.umontreal.ca>
13663
13664 lisp/subr.el (remove-from-invisibility-spec): Handle the t case
13665 * lisp/subr.el (remove-from-invisibility-spec): Make sure `element'
13666 is visible even if it's not yet in buffer-invisibility-spec (bug#20468).
13667
13668 * lisp/progmodes/xref.el (xref-location-group, xref-location-marker)
13669 (xref--insert-xrefs, xref-collect-references): Avoid init-args in oref.
13670
13671 2015-06-24 Glenn Morris <rgm@gnu.org>
13672
13673 * Makefile.in (install-arch-dep): Don't set sticky bit on the binary.
13674
13675 2015-06-24 Stefan Monnier <monnier@iro.umontreal.ca>
13676
13677 lisp/gnus/nnmaildir.el: Silence lexical warnings
13678 * lisp/gnus/nnmaildir.el (nnmaildir--prepare): Use a more
13679 functional style.
13680 (nnmaildir--update-nov): Remove unused var `numdir'.
13681 (nnmaildir-request-type, nnmaildir--scan, nnmaildir-request-newgroups)
13682 (nnmaildir-request-group, nnmaildir-request-create-group)
13683 (nnmaildir-request-post, nnmaildir-request-move-article)
13684 (nnmaildir-request-accept-article, nnmaildir-active-number):
13685 Mark unused args.
13686 (nnmaildir-get-new-mail, nnmaildir-group-alist)
13687 (nnmaildir-active-file): Declare.
13688 (nnmaildir-request-scan): Remove unused vars `group' and `grp-dir'.
13689 (nnmaildir-request-update-info): Remove unused vars `dotfile', `num',
13690 `mark', `end', `new-mark', and `mark-sym'.
13691 (nnmaildir-retrieve-headers): Remove unused args `srv-dir', `dir',
13692 `nlist2'.
13693 (nnmaildir-request-expire-articles):
13694 Remove unused vars `article', `stop' and `nlist2'.
13695 (nnmaildir-request-set-mark): Remove unused vars `begin', `article' and
13696 `end'. Use nnmaildir--article when dyn-binding is needed.
13697 Give the value directly in the `let' for `del-mark', `del-action',
13698 `add-action', and `set-action'. Don't use `add-to-list' on a local var.
13699 (nnmaildir-close-server): Declare those local vars that need to be
13700 dyn-bound.
13701
13702 2015-06-24 Paul Eggert <eggert@cs.ucla.edu>
13703
13704 * src/keyboard.h (kbd_buffer_store_event_hold): Remove unused local.
13705
13706 Port selection info fix to clang
13707 * src/keyboard.h (kbd_buffer_store_event_hold):
13708 Don't assume C11 semantics for alignof (Bug#20756).
13709
13710 Fix bug that munged selection info
13711 On some optimizing C compilers, copying a structure did not
13712 copy the padding bytes between elements, and the type punning
13713 between struct input_data and struct selection_input_data did
13714 not work. Change the C code to use a proper union type instead.
13715 Problem reported by YAMAMOTO Mitsuharu (Bug#20756).
13716 * src/keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr)
13717 (readable_events, discard_mouse_events, kbd_buffer_events_waiting)
13718 (kbd_buffer_get_event, process_special_events, stuff_buffered_input)
13719 (mark_kboards):
13720 Use union buffered_input_event, not struct input_event.
13721 (clear_event, deliver_input_available_signal, process_special_events):
13722 Remove unnecessary forward decls.
13723 (kbd_buffer_store_buffered_event): New function, mostly just the
13724 old kbd_buffer_store_event_hold, except its argument is of type
13725 union buffered_input_event, not struct input_event.
13726 (kbd_buffer_unget_event): Define only if HAVE_X11, since it's
13727 not needed otherwise. Argument is now of type
13728 struct selection_input_event *, not struct input_event *.
13729 All callers changed.
13730 (clear_event): Arg is now of type union buffered_input_event *,
13731 not struct input_event *. All callers changed.
13732 * src/keyboard.h [HAVE_X11]: Include "xterm.h".
13733 (union buffered_input_event): New type.
13734 (kbd_buffer_store_event_hold): Now an inline function,
13735 defined here.
13736 * src/termhooks.h (EVENT_KIND_WIDTH): New constant.
13737 (struct input_event): Use it.
13738 * src/xselect.c (struct selection_event_queue):
13739 Make elements be of type struct selection_input_event,
13740 not struct input_event.
13741 (selection_input_event_equal): New static function.
13742 (x_queue_event): Use it.
13743 (x_queue_event, x_decline_selection_request)
13744 (x_selection_current_request, x_reply_selection_request)
13745 (x_handle_selection_request, x_handle_selection_clear)
13746 (x_handle_selection_event): Use struct selection_input_event,
13747 not struct input_event. All callers changed.
13748 (x_convert_selection): Omit unused first arg. All callers changed.
13749 (Fx_disown_selection_internal): Omit unnecessary union.
13750 * src/xterm.c (handle_one_xevent): Use new union buffered_input_event
13751 rather than rolling our own equivalent. Prefer sie.kind when
13752 setting up that kind of structure.
13753 Call kbd_buffer_store_buffered_event, not kbd_buffer_store_event_hold.
13754 * src/xterm.h (struct selection_input_event: Use EVENT_KIND_WIDTH.
13755 (SELECTION_EVENT_DISPLAY, SELECTION_EVENT_DPYINFO)
13756 (SELECTION_EVENT_REQUESTOR, SELECTION_EVENT_SELECTION)
13757 (SELECTION_EVENT_TARGET, SELECTION_EVENT_PROPERTY)
13758 (SELECTION_EVENT_TIME, x_handle_selection_event):
13759 Arg is now of type struct selection_input_event *)
13760 not struct input_event *. All callers changed.
13761
13762 2015-06-23 Glenn Morris <rgm@gnu.org>
13763
13764 * Makefile.in (install-arch-dep): Simplify with Make conditionals.
13765
13766 2015-06-23 Artur Malabarba <bruce.connor.am@gmail.com>
13767
13768 * lisp/isearch.el: Fold many unicode characters to ASCII.
13769 (isearch-character-fold-search, isearch--character-fold-extras)
13770 (isearch--character-fold-table): New variable.
13771 (isearch--character-folded-regexp): New function.
13772 (isearch-search-fun-default): Use them.
13773 * lisp/replace.el (replace-character-fold): New variable.
13774 (replace-search): Use it.
13775 * etc/NEWS: Document it.
13776
13777 2015-06-23 Glenn Morris <rgm@gnu.org>
13778
13779 Check for an input event before showing a dialog box. (Bug#20813)
13780 * lisp/subr.el (y-or-n-p):
13781 * src/fns.c (Fyes_or_no_p): Check last-input-event as well
13782 as last-nonmenu-event.
13783
13784 2015-06-23 Jürgen Hartmann <juergen_hartman_@hotmail.com> (tiny change)
13785
13786 Respect ‘switch-to-visible-buffer’ more rigidly. (Bug#20861)
13787 * lisp/window.el (switch-to-visible-buffer): Doc adjustment.
13788 (switch-to-prev-buffer, switch-to-next-buffer): Respect
13789 switch-to-visible-buffer independent of the windows history.
13790
13791 2015-06-23 Paul Eggert <eggert@cs.ucla.edu>
13792
13793 * src/keyboard.c (last_timer_event): Remove unused var.
13794
13795 2015-06-23 Artur Malabarba <bruce.connor.am@gmail.com>
13796
13797 * test/automated/package-test.el (package-test-update-listing):
13798 Fix test.
13799
13800 2015-06-23 Glenn Morris <rgm@gnu.org>
13801
13802 Revert 2014-06-25 nextstep/Makefile change.
13803 * nextstep/Makefile.in (${ns_appbindir}): Remove rule.
13804 (${ns_appbindir}/Emacs, links): Create ns_appbindir in the rule,
13805 not as an order-only prerequisite.
13806
13807 * configure.ac (--with-ns): Enable by default on OS X.
13808
13809 2015-06-23 Leo Liu <sdl.web@gmail.com>
13810
13811 Fix shell-for/backward-command to exclude spaces
13812 * lisp/shell.el (shell-forward-command, shell-backward-command):
13813 Handle the 'move case from re-search-forward/backward.
13814 fixes debbugs:20873
13815
13816 2015-06-22 Juri Linkov <juri@linkov.net>
13817
13818 * lisp/replace.el (query-replace-read-from): Add separator to
13819 the local binding of text-property-default-nonsticky. (Bug#20690)
13820
13821 * lisp/simple.el (shell-command-on-region): Replace 'error' with 'user-error'.
13822 (Bug#20785)
13823
13824 2015-06-22 Ken Brown <kbrown@cornell.edu>
13825
13826 Enable CPU profiling on Cygwin
13827 * src/syssignal.h [CYGWIN] (PROFILER_CPU_SUPPORT): Revert previous
13828 change that undefined this.
13829 (SIGEV_SIGNAL): Ensure that this is defined as a macro.
13830 * src/profiler.c [CYGWIN] (timer_getoverrun): Define as a macro on
13831 Cygwin.
13832
13833 Improve diagnostics of profiler-cpu-start
13834 * src/profiler.c (setup_cpu_timer): Change return type to 'int';
13835 return -1 if the sampling interval is invalid.
13836 (Fprofiler_cpu_start): Improve error message if 'setup_cpu_timer'
13837 fails. (Bug#20843)
13838
13839 2015-06-22 Artur Malabarba <bruce.connor.am@gmail.com>
13840
13841 * lisp/emacs-lisp/package.el: Exclude packages by name.
13842 (package-hidden-regexps): New variable.
13843 (package-menu--refresh): Use it.
13844 (package-menu-hide-package): New command.
13845
13846 * lisp/emacs-lisp/package.el: Rename hide-obsolete to toggle-hiding.
13847
13848 2015-06-22 Eli Zaretskii <eliz@gnu.org>
13849
13850 Fix debug-timer-check on systems without HAVE_TIMERFD
13851 * src/atimer.c (Fdebug_timer_check) [!HAVE_TIMERFD]: Actively run
13852 the expired timers, since wait_reading_process_output doesn't.
13853 (debug_timer_callback): Enlarge the tolerance to 20 msec.
13854
13855 Fix RCS crashes in vc-test
13856 * lisp/vc/vc-rcs.el (vc-rcs-register): Avoid crashes with some old
13857 ports of 'ci' on MS-Windows by always passing the -t- switch.
13858
13859 2015-06-22 Glenn Morris <rgm@gnu.org>
13860
13861 * doc/emacs/package.texi (Packages):
13862 * doc/emacs/trouble.texi (Known Problems): Remove faq cross-references.
13863
13864 * doc/misc/efaq-w32.texi (Downloading): Copyedits. (Bug#20851)
13865
13866 2015-06-22 Paul Eggert <eggert@cs.ucla.edu>
13867
13868 Port tests to help-quote-translation
13869 * test/automated/ert-x-tests.el (ert-test-describe-test):
13870 * test/automated/package-test.el (package-test-describe-package)
13871 (package-test-signed): Allow straight quotes, too.
13872
13873 2015-06-22 Dmitry Gutov <dgutov@yandex.ru>
13874
13875 Make find-function-on-key use the current window
13876 * lisp/emacs-lisp/find-func.el (find-function-on-key-do-it):
13877 Extract from `find-function-on-key', add a second argument.
13878 (find-function-on-key): Use it (bug#19679).
13879 (find-function-on-key-other-window)
13880 (find-function-on-key-other-frame): New commands.
13881
13882 2015-06-21 Nicolas Petton <nicolas@petton.fr>
13883
13884 Revert "Define `map-elt' as a generalized variable"
13885 This reverts commit 8b6d82d3ca86f76ed964063b3941a7c6ab0bf1c6.
13886
13887 2015-06-21 Ken Brown <kbrown@cornell.edu>
13888
13889 Drop support for CPU profiling on Cygwin
13890 * src/syssignal.h (PROFILER_CPU_SUPPORT): Don't define on Cygwin.
13891 (Bug#20843)
13892
13893 2015-06-21 Paul Eggert <eggert@cs.ucla.edu>
13894
13895 Fix some “nested” quoting confusion in doc strings
13896 * lisp/emacs-lisp/advice.el (ad-map-arglists):
13897 * lisp/kermit.el (kermit-clean-on):
13898 * lisp/mh-e/mh-comp.el (mh-repl-group-formfile):
13899 * src/keyboard.c (Frecursive_edit):
13900 Use curved quotes when quoting text containing apostrophe,
13901 so that the apostrophe isn't curved in the output.
13902
13903 2015-06-21 Nicolas Petton <nicolas@petton.fr>
13904
13905 Define `map-elt' as a generalized variable
13906 * lisp/emacs-lisp/map.el (map-elt): Define a gv-expander.
13907 * lisp/emacs-lisp/map.el (map--dispatch): Tighten the code.
13908 * lisp/emacs-lisp/map.el (map-put): Redefine it as a function using a
13909 `setf' with `map-elt'.
13910 * test/automated/map-tests.el: Comment out `test-map-put-literal'.
13911
13912 2015-06-21 Michael Albinus <michael.albinus@gmx.de>
13913
13914 Improve error handling in tramp-adb.el
13915 * lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy):
13916 Improve error handling.
13917
13918 2015-06-21 Nicolas Petton <nicolas@petton.fr>
13919
13920 Reuse `alist-get' in map.el
13921 * lisp/emacs-lisp/map.el (map-elt): Use `alist-get' to retrieve alist
13922 elements.
13923
13924 2015-06-21 Eli Zaretskii <eliz@gnu.org>
13925
13926 Fix bytecomp-tests--warnings when $TMPDIR has a long name
13927 * test/automated/bytecomp-tests.el (bytecomp-tests--warnings):
13928 Allow the warning to begin on the 3rd, not only 2nd line, which
13929 happens if temporary-file-directory has a very long name.
13930
13931 Expect 2 icalendar tests to fail on MS-Windows
13932 * test/automated/icalendar-tests.el (icalendar-import-with-timezone)
13933 (icalendar-real-world): Make them expected failures on MS-Windows.
13934
13935 2015-06-20 Paul Eggert <eggert@cs.ucla.edu>
13936
13937 Improve port of settings UI to older displays
13938 * lisp/cus-start.el (standard): Don't assume curved quotes are
13939 easily distinguishable when users are tinkering with a setting
13940 that affects how curved quotes are generated.
13941
13942 Fix quoting in electric-quote-mode doc string
13943 * lisp/electric.el (electric-quote-mode): Fix quoting.
13944 This is a fallout from the recent change introducing
13945 ‘help-quote-translation’.
13946
13947 Spelling fix
13948
13949 * doc/misc/texinfo.tex, lib/set-permissions.c: Merge from gnulib.
13950
13951 * src/doc.c (syms_of_doc): Remove unused symbols.
13952
13953 2015-06-20 Martin Rudalics <rudalics@gmx.at>
13954
13955 * lisp/window.el (window-state-put): Undedicate target window
13956 before putting STATE into it. (Bug#20848)
13957
13958 2015-06-19 Paul Eggert <eggert@cs.ucla.edu>
13959
13960 Merge from origin/emacs-24
13961 a5e6f33 Fixes: debbugs:20832
13962 b9f02cf Fixes: debbugs:20832
13963
13964 2015-06-19 Eli Zaretskii <eliz@gnu.org>
13965
13966 Fix file-in-directory-p when the directory is UNC
13967 * lisp/files.el (file-in-directory-p): Support files and
13968 directories that begin with "//". (Bug#20844)
13969
13970 2015-06-19 Stephen Berman <stephen.berman@gmx.net>
13971
13972 * lisp/calendar/todo-mode.el (todo-show): Don't visit todo file
13973 in the minibuffer. (Bug#20832)
13974
13975 2015-06-19 Nicolas Richard <youngfrog@members.fsf.org>
13976
13977 * lisp/calendar/todo-mode.el (todo-show): Signal an error if buffer
13978 for adding new todo file is empty but modified. (Bug#20832)
13979
13980 2015-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13981
13982 (filepos-to-bufferpos): Further tweaks to the utf-16 code
13983 * lisp/international/mule-util.el (filepos-to-bufferpos):
13984 Fix typo. Move non-exact check to the utf-16 branch (the only one
13985 affected). Don't use byte-to-position for the utf-16 case.
13986
13987 2015-06-19 Eli Zaretskii <eliz@gnu.org>
13988
13989 Minor fixes in filepos-to-bufferpos
13990 * lisp/international/mule-util.el (filepos-to-bufferpos): Remove
13991 test for utf-8-emacs. Exempt single-byte encodings from the
13992 'use-exact' path when QUALITY is 'exact'. Test UTF-16 encodings
13993 for BOM before subtracting 2 bytes. Use 'identity' when adjusting
13994 UTF-16 encoded files for CR-LF EOLs.
13995
13996 2015-06-19 Paul Eggert <eggert@cs.ucla.edu>
13997
13998 Improve the optional translation of quotes
13999 Fix several problems with the recently-added custom variable
14000 help-quote-translation where the code would quote inconsistently
14001 in help buffers. Add support for quoting 'like this', which
14002 is common in other GNU programs in ASCII environments. Change
14003 help-quote-translation to use more mnemonic values: values are now the
14004 initial quoting char, e.g., (setq help-quote-translation ?`) gets the
14005 traditional Emacs help-buffer quoting style `like this'. Change the
14006 default behavior of substitute-command-keys to match what's done in
14007 set-locale-environment, i.e., quote ‘like this’ if displayable,
14008 'like this' otherwise.
14009 * doc/lispref/help.texi (Keys in Documentation): Document
14010 new behavior of substitute-command-keys, and document
14011 help-quote-translation.
14012 * doc/lispref/tips.texi (Documentation Tips):
14013 Mention the effect of help-quote-translation.
14014 * etc/NEWS: Mention new behavior of substitute-command-keys,
14015 and merge help-quote-translation news into it.
14016 When talking about doc strings, mention new ways to type quotes.
14017 * lisp/cedet/mode-local.el (overload-docstring-extension):
14018 Revert my recent change to this function, which shouldn't be
14019 needed as the result is a doc string.
14020 * lisp/cedet/mode-local.el (mode-local-print-binding)
14021 (mode-local-describe-bindings-2):
14022 * lisp/cedet/srecode/srt-mode.el (srecode-macro-help):
14023 * lisp/cus-theme.el (describe-theme-1):
14024 * lisp/descr-text.el (describe-text-properties-1, describe-char):
14025 * lisp/emacs-lisp/cl-generic.el (cl--generic-describe):
14026 * lisp/emacs-lisp/eieio-opt.el (eieio-help-class)
14027 (eieio-help-constructor):
14028 * lisp/emacs-lisp/package.el (describe-package-1):
14029 * lisp/faces.el (describe-face):
14030 * lisp/help-fns.el (help-fns--key-bindings)
14031 (help-fns--compiler-macro, help-fns--parent-mode)
14032 (help-fns--obsolete, help-fns--interactive-only)
14033 (describe-function-1, describe-variable):
14034 * lisp/help.el (describe-mode):
14035 Use substitute-command-keys to ensure a more-consistent quoting
14036 style in help buffers.
14037 * lisp/cus-start.el (standard):
14038 Document new help-quote-translation behavior.
14039 * lisp/emacs-lisp/lisp-mode.el (lisp-fdefs):
14040 * lisp/help-mode.el (help-xref-symbol-regexp, help-xref-info-regexp)
14041 (help-xref-url-regexp):
14042 * lisp/international/mule-cmds.el (help-xref-mule-regexp-template):
14043 * lisp/wid-edit.el (widget-documentation-link-regexp):
14044 Also match 'foo', in case we're in a help buffer generated when
14045 help-quote-translation is ?'.
14046 * src/doc.c: Include disptab.h, for DISP_CHAR_VECTOR.
14047 (LEFT_SINGLE_QUOTATION_MARK, uLSQM0, uLSQM1, uLSQM2, uRSQM0)
14048 (uRSQM1, uRSQM2, LSQM, RSQM): New constants.
14049 (Fsubstitute_command_keys): Document and implement new behavior.
14050 (Vhelp_quote_translation): Document new behavior.
14051
14052 2015-06-18 Glenn Morris <rgm@gnu.org>
14053
14054 * lisp/cus-start.el (help-quote-translation): Add :version.
14055
14056 * src/doc.c (Fsubstitute_command_keys): Make previous change compile.
14057
14058 2015-06-18 Alan Mackenzie <acm@muc.de>
14059
14060 Make translation of quotes to curly in doc strings optional.
14061 * src/doc.c (traditional, prefer-unicode): New symbols.
14062 (help-quote-translation): New variable.
14063 (Fsubstitute_command_keys): Make translation of quotes dependent on
14064 `help-quote-translation'; also translate curly quotes back to ASCII
14065 ones.
14066 * lisp/cus-start.el (top-level): Add a customization entry for
14067 `help-quote-translation'.
14068
14069 2015-06-18 Artur Malabarba <bruce.connor.am@gmail.com>
14070
14071 * lisp/emacs-lisp/package.el: Don't always propagate async errors
14072 (package--with-work-buffer-async): Only propagate the error if the
14073 callback returns non-nil.
14074 (package--download-one-archive): Return nil on the signature
14075 checking callback if we accept unsigned.
14076 (package--download-and-read-archives): Return non-nil on the
14077 archive download callback.
14078
14079 2015-06-18 Martin Rudalics <rudalics@gmx.at>
14080
14081 Set image_cache_refcount before x_default_parameter calls. (Bug#20802)
14082 * src/nsfns.m (Fx_create_frame):
14083 * src/xfns.c (Fx_create_frame, x_create_tip_frame): Move setting
14084 image_cache_refcount before first x_default_parameter call.
14085
14086 2015-06-18 Eli Zaretskii <eliz@gnu.org>
14087
14088 Improve and extend filepos-to-bufferpos
14089 * lisp/international/mule-util.el (filepos-to-bufferpos--dos):
14090 Don't barf if F returns nil for some argument.
14091 (filepos-to-bufferpos): Expand to support UTF-16 and not assume
14092 that every encoding of type 'charset' is single-byte.
14093
14094 2015-06-18 Artur Malabarba <bruce.connor.am@gmail.com>
14095
14096 * lisp/emacs-lisp/package.el (package-menu--perform-transaction):
14097 Properly delete packages. (Bug#20836)
14098
14099 2015-06-18 Eli Zaretskii <eliz@gnu.org>
14100
14101 Update data files from just-released Unicode 8.0
14102 * etc/NEWS: Update wording since Unicode 8.0 is no longer in draft
14103 status.
14104 * test/BidiCharacterTest.txt: Update from Unicode 8.0.
14105 * admin/unidata/BidiMirroring.txt:
14106 * admin/unidata/BidiBrackets.txt:
14107 * admin/unidata/UnicodeData.txt: Update from Unicode 8.0.
14108
14109 2015-06-18 Paul Eggert <eggert@cs.ucla.edu>
14110
14111 Document curved quotes a bit better
14112 * doc/emacs/basic.texi (Inserting Text):
14113 Mention C-x 8. Change example to use curved quote rather
14114 than infinity, as this lets us give more ways to do it.
14115 * doc/emacs/mule.texi (International Chars): Mention C-x 8 shortcuts
14116 and quotation marks.
14117 * doc/emacs/text.texi (Quotation Marks):
14118 * doc/lispref/tips.texi (Documentation Tips):
14119 Add "curly quotes" and "curved quotes" to the index.
14120 * doc/emacs/text.texi (Quotation Marks):
14121 Give the C-x 8 shorthands for curved quotes.
14122 Cross-reference to "Quotation Marks".
14123
14124 2015-06-17 Daiki Ueno <ueno@gnu.org>
14125
14126 Add pinentry.el for better GnuPG integration
14127 * lisp/pinentry.el: New file.
14128 * etc/NEWS: Add entry about pinentry.el.
14129 * lisp/epg.el (epg--start): Set INSIDE_EMACS envvar.
14130 (Bug#20550)
14131
14132 2015-06-17 Artur Malabarba <bruce.connor.am@gmail.com>
14133
14134 * lisp/emacs-lisp/package.el: Slightly better error reporting.
14135
14136 2015-06-17 Stefan Monnier <monnier@iro.umontreal.ca>
14137
14138 (define-minor-mode): Use setq-default for :global minor modes
14139 * lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
14140 Use setq-default for :global minor modes (bug#20712).
14141
14142 2015-06-17 Eli Zaretskii <eliz@gnu.org>
14143
14144 Avoid infloop in redisplay with tall images
14145 * src/xdisp.c (try_scrolling): Prevent an infloop when scrolling
14146 down near ZV. (Bug#20808)
14147 Call bidi_unshelve_cache to avoid memory leaks. Use IT_CHARPOS
14148 instead of CHARPOS.
14149
14150 2015-06-17 Artur Malabarba <bruce.connor.am@gmail.com>
14151
14152 * lisp/emacs-lisp/package.el (package--with-work-buffer-async):
14153 Fix error reporting.
14154
14155 * lisp/let-alist.el: Move to lisp/emacs-lisp/let-alist.el
14156
14157 * lisp/emacs-lisp/package.el: Revert buffer after any operation
14158 Call `package-menu--post-refresh' after any operation that changes
14159 the package database (`package-install' and `package-delete'). To
14160 avoid performance issues in large transactions, these functions
14161 add `post-refresh' to `post-command-hook' instead of calling it
14162 immediately.
14163 (package-menu--mark-or-notify-upgrades): New function.
14164 (list-packages): Add it to `package--post-download-archives-hook'.
14165 (package-menu--post-refresh): Lose the upgrade-checking code, add
14166 code to remove itself from `post-command-hook'.
14167 (package-install, package-delete): Add it to `post-command-hook'.
14168 (package-menu-execute): Don't call `package-menu--post-refresh'.
14169
14170 2015-06-17 Stephen Leake <stephen_leake@stephe-leake.org>
14171
14172 Add missing function xref-location-group for elisp-mode.
14173 * lisp/progmodes/elisp-mode.el: Add missing function xref-location-group.
14174
14175 2015-06-17 Wolfgang Jenkner <wjenkner@inode.at>
14176
14177 * src/editfns.c (Fbyte_to_position): Fix bytepos not at char boundary.
14178 The behavior now matches the description in the manual. (Bug#20783)
14179
14180 2015-06-17 Xue Fuqiao <xfq.free@gmail.com>
14181
14182 * etc/tutorials/TUTORIAL.cn: Update; synchronize with TUTORIAL.
14183
14184 2015-06-17 Glenn Morris <rgm@gnu.org>
14185
14186 Generate char-script-table from Unicode source. (Bug#20789)
14187 * admin/unidata/Makefile.in (AWK): New, set by configure.
14188 (all): Add charscript.el.
14189 (blocks): New variable.
14190 (charscript.el, ${unidir}/charscript.el): New targets.
14191 (extraclean): Also remove generated charscript.el.
14192 * admin/unidata/blocks.awk: New script.
14193 * admin/unidata/Blocks.txt: New data file, from unicode.org.
14194 * lisp/international/characters.el: Load charscript.
14195 * src/Makefile.in (charscript): New variable.
14196 (${charscript}): New target.
14197 (${lispintdir}/characters.elc): Depend on charscript.elc.
14198 (temacs$(EXEEXT)): Depend on charscript.
14199
14200 * lisp/international/characters.el (char-script-table): Tweak
14201 some ranges to better match the source. (Bug#20789#17)
14202
14203 Remove "no-byte-compile: t" from a few files.
14204 * lisp/obsolete/bruce.el, lisp/obsolete/keyswap.el:
14205 * lisp/obsolete/patcomp.el: No reason not to compile these.
14206
14207 2015-06-16 Glenn Morris <rgm@gnu.org>
14208
14209 Fix some typos in copied Unicode data. (Bug#20789)
14210 * lisp/international/characters.el (char-script-table):
14211 * lisp/international/fontset.el (script-representative-chars)
14212 (setup-default-fontset): Fix typos.
14213
14214 * lisp/emacs-lisp/check-declare.el (check-declare-warn):
14215 Don't print filename twice (it's in the prefix now).
14216
14217 * lisp/emacs-lisp/pcase.el (pcase--u1): Revert earlier workaround.
14218 No longer needed.
14219
14220 Address a compilation warning.
14221 * lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defalias):
14222 Replace 't' with '_' in pcase.
14223
14224 Address some check-declare warnings.
14225 * lisp/simple.el (tabulated-list-print):
14226 * lisp/progmodes/elisp-mode.el (xref-collect-matches):
14227 * lisp/term/ns-win.el (ns-selection-owner-p, ns-selection-exists-p)
14228 (ns-get-selection): Update declarations.
14229
14230 Address some compilation warnings.
14231 * lisp/elec-pair.el (electric-pair-post-self-insert-function):
14232 * lisp/vc/vc-git.el (vc-git-file-type-as-string):
14233 Replace 't' with '_' in pcase.
14234
14235 Address some compilation warnings.
14236 * lisp/face-remap.el (text-scale-adjust):
14237 * lisp/menu-bar.el (popup-menu-normalize-position):
14238 * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand):
14239 * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn):
14240 * lisp/emacs-lisp/generator.el (cps--transform-1):
14241 * lisp/emacs-lisp/macroexp.el (macroexp--expand-all):
14242 * lisp/obsolete/vc-arch.el (vc-arch-mode-line-string):
14243 * lisp/progmodes/octave.el (octave-goto-function-definition)
14244 (octave-find-definition-default-filename):
14245 Replace 't' with '_' in pcase.
14246
14247 * lisp/emacs-lisp/pcase.el (pcase--u1):
14248 Paper-over today's bootstrap failure.
14249
14250 2015-06-16 Nicolas Petton <nicolas@petton.fr>
14251
14252 * lisp/emacs-lisp/seq.el: Fix a byte-compiler warnings related to pcase.
14253
14254 * lisp/emacs-lisp/map.el (map-into): Fix a byte-compiler warning.
14255
14256 Better confirmation message in `find-alternate-file' (Bug#20830)
14257 * lisp/files.el (find-alternate-file'): Improve the confirmation
14258 message to show the buffer name.
14259
14260 Better docstring for null. (Bug#20815)
14261 * src/data.c (null): Improves the docstring, saying what null returns
14262 when OBJECT is non-nil.
14263
14264 2015-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14265
14266 * lisp/net/newst-treeview.el: Use lexical-binding.
14267
14268 (filepos-to-bufferpos): Add missing cases. Make sure it terminates.
14269 * lisp/international/mule-util.el (filepos-to-bufferpos--dos):
14270 New auxiliary function, extracted from filepos-to-bufferpos.
14271 Make sure it terminates.
14272 (filepos-to-bufferpos): Use it to fix the latin-1-dos case.
14273 Add support for the `exact' quality.
14274
14275 2015-06-16 Cédric Chépied <cedric.chepied@gmail.com>
14276
14277 Identify feeds in newsticker treeview with :nt-feed property
14278 * lisp/net/newst-treeview.el:
14279 (newsticker--treeview-nodes-eq): Use property :nt-feed instead of :tag.
14280
14281 2015-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14282
14283 * lisp/emacs-lisp/pcase.el: Improve docs and error handling.
14284 (pcase--self-quoting-p): Floats aren't self-quoting.
14285 (pcase): Tweak docstring.
14286 (pcase--u1): Deprecate the t pattern. Improve error detection for
14287 the nil pattern.
14288 (\`): Tweak docstring. Signal an error for unrecognized cases.
14289 (bug#20784)
14290
14291 2015-06-16 Eli Zaretskii <eliz@gnu.org>
14292
14293 Fix infloop in filepos-to-bufferpos
14294 * lisp/international/mule-util.el (filepos-to-bufferpos): Fix EOL
14295 offset calculation, and make it conditional on the eol-type of the
14296 file's encoding. (Bug#20825)
14297
14298 2015-06-16 Martin Rudalics <rudalics@gmx.at>
14299
14300 Fix handling of image cache refcounts. (Bug#20802)
14301 This backports Eli Zaretskii's solution of this problem for W32
14302 to X and NS.
14303 * src/nsfns.m (image_cache_refcount): Define unconditionally.
14304 (unwind_create_frame): If the image cache's reference count
14305 hasn't been updated yet, do that now.
14306 (Fx_create_frame): Set image_cache_refcount unconditionally.
14307 * src/xfns.c (image_cache_refcount): Define unconditionally.
14308 (unwind_create_frame): If the image cache's reference count
14309 hasn't been updated yet, do that now.
14310 (Fx_create_frame, x_create_tip_frame): Set image_cache_refcount
14311 unconditionally.
14312 * src/w32fns.c (image_cache_refcount): Make it a ptrdiff_t as on
14313 X and NS.
14314
14315 2015-06-16 Nils Ackermann <nils@ackermath.info>
14316
14317 Improve reftex-label-regexps default value
14318 * lisp/textmodes/reftex-vars.el (reftex-label-regexps): Make
14319 keyvals label regexp more strict to better cope with unbalanced
14320 brackets common in math documents.
14321
14322 2015-06-16 Glenn Morris <rgm@gnu.org>
14323
14324 * doc/emacs/calendar.texi (Format of Diary File):
14325 Move "nonmarking" from here...
14326 (Displaying the Diary): ... to here.
14327
14328 * doc/emacs/calendar.texi (Format of Diary File, Displaying the Diary):
14329 Swap the order of these nodes.
14330 * doc/emacs/emacs.texi: Update detailed menu for the above change.
14331
14332 * doc/emacs/calendar.texi (Specified Dates, Special Diary Entries):
14333 Update date of examples.
14334 (Diary, Format of Diary File): Move example from former to latter.
14335 Reduce duplication.
14336
14337 No need for cp51932.el, eucjp-ms.el to not be compiled any more.
14338 * admin/charsets/cp51932.awk, admin/charsets/eucjp-ms.awk:
14339 Don't set no-byte-compile in the outputs.
14340 * lisp/loadup.el: Don't specify uncompiled cp51932, eucjp-ms.
14341
14342 2015-06-15 Glenn Morris <rgm@gnu.org>
14343
14344 * lisp/calendar/calendar.el (diary-file): Use locate-user-emacs-file.
14345 * doc/emacs/calendar.texi (Diary, Format of Diary File):
14346 Update for above diary-file change.
14347
14348 * lisp/macros.el (name-last-kbd-macro, kbd-macro-query)
14349 (apply-macro-to-region-lines): Use user-error.
14350
14351 * lisp/textmodes/page-ext.el (add-new-page, pages-directory)
14352 (pages-directory-for-addresses): Doc fixes.
14353
14354 2015-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14355
14356 * lisp/info.el: Cleanup bytepos/charpos issues
14357 * lisp/international/mule-util.el: Use lexical-binding.
14358 (filepos-to-bufferpos): New function.
14359 * lisp/info.el (Info-find-in-tag-table-1): Use 0-based file positions.
14360 (Info-find-node-2): Use filepos-to-bufferpos (bug#20704).
14361 (Info-read-subfile, Info-search): Use 0-based file positions.
14362
14363 * lisp/progmodes/perl-mode.el: Refine handling of /re/ and y/abc/def/
14364 (perl--syntax-exp-intro-keywords): New var.
14365 (perl--syntax-exp-intro-regexp, perl-syntax-propertize-function): Use it.
14366 (bug#20800).
14367
14368 2015-06-15 Paul Eggert <eggert@cs.ucla.edu>
14369
14370 Fix quoting when making derived mode docstring
14371 * lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
14372 Nest regexp-quote inside format, not the reverse.
14373 Problem reported by Artur Malabarba in:
14374 http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00206.html
14375
14376 2015-06-15 Eli Zaretskii <eliz@gnu.org>
14377
14378 Fix current-iso639-language on MS-Windows
14379 * lisp/international/mule-cmds.el (set-locale-environment):
14380 Downcase the locale name before interning it. This is so the
14381 'current-iso639-language' on MS-Windows matches the ':lang'
14382 property of font-spec objects.
14383
14384 Limit Symbola usage some more
14385 * lisp/international/fontset.el (setup-default-fontset): Limit
14386 Symbol coverage of Currency Symbols to u+20B6..u+20CF.
14387 (Bug#20727)
14388
14389 2015-06-15 Nicolas Petton <nicolas@petton.fr>
14390
14391 * lisp/emacs-lisp/map.el (map-let): Better docstring.
14392
14393 2015-06-15 Paul Eggert <eggert@cs.ucla.edu>
14394
14395 * test/automated/help-fns.el (abc\\\[universal-argument\]b\`c\'d\\e\"f):
14396 (help-fns-test-funny-names): Spelling fixes.
14397
14398 2015-06-14 Glenn Morris <rgm@gnu.org>
14399
14400 * lisp/version.el (emacs-repository-version-git): Demote errors.
14401 Check result is a hash.
14402
14403 2015-06-14 Artur Malabarba <bruce.connor.am@gmail.com>
14404
14405 * lisp/emacs-lisp/package.el (package--with-work-buffer-async):
14406 Catch errors that happen before going async. (Bug#20809)
14407
14408 2015-06-14 Eli Zaretskii <eliz@gnu.org>
14409
14410 Another improvement of documentation of set-fontset-font
14411 * doc/lispref/display.texi (Fontsets): Say explicitly that
14412 CHARACTER can be a single codepoint.
14413 * src/fontset.c (Fset_fontset_font): Doc fix.
14414
14415 Another improvement for symbol and punctuation characters
14416 * lisp/international/fontset.el (setup-default-fontset): Exclude
14417 from Symbola character ranges for symbols and punctuation covered
14418 well by popular Unicode fonts. Prefer fixed-misc Unicode font, if
14419 installed and where its coverage of symbols and punctuation is
14420 known to be good. (Bug#20727)
14421
14422 2015-06-14 Christoph Wedler <christoph.wedler@sap.com>
14423
14424 Some generic support for multi-mode indentation.
14425 * lisp/progmodes/prog-mode.el (prog-indentation-context):
14426 New variable.
14427 (prog-first-column, prog-widen): New convenience functions.
14428
14429 2015-06-14 Artur Malabarba <bruce.connor.am@gmail.com>
14430
14431 * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):
14432 Don't assume that `tabulated-list-printer' will leave point at the
14433 end of the buffer. (Bug#20810)
14434
14435 2015-06-13 Glenn Morris <rgm@gnu.org>
14436
14437 Tweaks for getting repository version; a bit more like it was for bzr
14438 * lisp/version.el (emacs-repository-version-git)
14439 (emacs-repository--version-git-1): New functions,
14440 split from emacs-repository-get-version.
14441 (emacs-repository-get-version): Make the second argument meaningful.
14442
14443 * lisp/startup.el (command-line-1): Inform if skipping relative
14444 file names due to deleted PWD.
14445
14446 * src/xsmfns.c (x_session_initialize): Avoid libSM crash
14447 when starup directory is missing. (Bug#18851)
14448 (errno.h): Include it.
14449
14450 2015-06-13 Paul Eggert <eggert@cs.ucla.edu>
14451
14452 Better fix for documenting `X as "`X"
14453 Fix suggested by Stefan Monnier.
14454 * lisp/help-fns.el (help-fns--signature):
14455 Insert "`X", not "(\` X)", when documenting `X (Bug#20759).
14456 * lisp/help.el (help-split-fundoc, help--make-usage-docstring):
14457 Don't treat `X specially, as help-fns--signature now handles this.
14458
14459 2015-06-13 Eli Zaretskii <eliz@gnu.org>
14460
14461 Improve the default fontset when Symbola is not installed
14462 * lisp/international/fontset.el (setup-default-fontset): Only
14463 prepend Symbola and FreeMono font specs for symbols and
14464 punctuation; do not replace the default spec for them. This
14465 should have better results when Symbola/FreeMono are not
14466 installed. (Bug#20727)
14467
14468 Improve documentation of ':lang' in font specs
14469 * src/font.c (Ffont_spec): Doc fix: elaborate on the values and
14470 use of the ':lang' property of the font spec.
14471 * doc/emacs/frames.texi (Fonts): Document the language names that
14472 can be in the STYLE part of XLFD.
14473 * doc/lispref/display.texi (Low-Level Font): Document the ':lang'
14474 property.
14475
14476 * nt/README: Don't advertise the (obsolescent) w32 FAQ.
14477
14478 * nt/README.W32: Don't advertise the (obsolescent) w32 FAQ.
14479
14480 Revert last change in fontset.el
14481 * lisp/international/fontset.el (setup-default-fontset): Revert
14482 the change "Configure Symbola font only if installed", since font
14483 search is evidently not yet set up when this function is called.
14484 (Bug#20727)
14485
14486 2015-06-12 Glenn Morris <rgm@gnu.org>
14487
14488 Ensure early startup warnings are visible at the end. (Bug#20792)
14489 * lisp/emacs-lisp/warnings.el (display-warning):
14490 If startup isn't complete, delay the warning.
14491 * lisp/startup.el (normal-top-level, command-line):
14492 Let display-warning automatically handle the needed delays.
14493 Run delayed-warnings-hook.
14494
14495 * lisp/version.el (emacs-repository-get-version):
14496 Avoid calling external executable if possible. (Bug#20799)
14497
14498 2015-06-12 Paul Eggert <eggert@cs.ucla.edu>
14499
14500 Document `X as "`X", not as "(` X)"
14501 * lisp/help.el (help-split-fundoc, help--make-usage-docstring):
14502 Document (backquote FOO) as "`FOO", not as "(` FOO)" (Bug#20759).
14503
14504 * src/print.c (print_object): Minor simplification.
14505
14506 2015-06-12 Glenn Morris <rgm@gnu.org>
14507
14508 * src/buffer.c (init_buffer): Add final newline to message.
14509
14510 2015-06-12 Paul Eggert <eggert@cs.ucla.edu>
14511
14512 Configure Symbola font only if installed
14513 * lisp/international/fontset.el (setup-default-fontset):
14514 Don't specify the Symbola font if it's not installed.
14515 Likewise for FreeMono. (Bug#20727)
14516
14517 2015-06-12 Eli Zaretskii <eliz@gnu.org>
14518
14519 Configure Symbola font only for symbols and punctuation
14520 * lisp/international/fontset.el (setup-default-fontset): Leave
14521 only symbols and punctuation in the fontset setup for Symbola
14522 font; remove "Greek and Coptic" and "Cyrillic Supplement".
14523 (Bug#20798)
14524
14525 2015-06-12 Andreas Schwab <schwab@linux-m68k.org>
14526
14527 Fix crash in fontset-info
14528 * src/fontset.c (Ffontset_info): Check that the RFONT-DEF elt is
14529 non-nil.
14530
14531 2015-06-12 Paul Eggert <eggert@cs.ucla.edu>
14532
14533 Port to Solaris 10 sparc + Sun C 5.13
14534 * configure.ac (SETUP_SLAVE_PTY) [sol2* | unixware]:
14535 Adjust to process.c change.
14536 * src/process.c (create_process): Declare volatile variables at
14537 top level of this function, so that they're less likely to be
14538 reused later in the function in the code executed by the vforked
14539 child. Do not declare locals used only in the vforked child, as
14540 they might share memory with locals still live in the parent.
14541 Instead, use the same variables in the child as in the parent.
14542 This works around a subtle bug that causes a garbage collector
14543 crash when Emacs is built with Sun C 5.13 sparc on Solaris 10.
14544
14545 2015-06-12 Glenn Morris <rgm@gnu.org>
14546
14547 * lisp/startup.el (normal-top-level): Don't let *Messages* get
14548 a nil default-directory.
14549
14550 2015-06-11 Glenn Morris <rgm@gnu.org>
14551
14552 * lisp/startup.el (normal-top-level): Use delay-warning. (Bug#20792)
14553
14554 Some progress towards starting with PWD deleted. (Bug#18851)
14555 * src/buffer.c (init_buffer): Handle get_current_dir_name failures.
14556 * lisp/startup.el (normal-top-level, command-line-1):
14557 * lisp/minibuffer.el (read-file-name-default):
14558 Handle default-directory being nil.
14559
14560 2015-06-11 Paul Eggert <eggert@cs.ucla.edu>
14561
14562 Fix "not a tty" bug on Solaris 10
14563 * configure.ac (PTY_OPEN): Define to plain 'open'
14564 on SVR4-derived hosts, so that the O_CLOEXEC flag isn't set.
14565 * src/process.c (allocate_pty): Set the O_CLOEXEC flag after
14566 calling PTY_TTY_NAME_SPRINTF, for the benefit of SVR4-derived
14567 hosts that call grantpt which does its work via a setuid subcommand
14568 (Bug#19191, Bug#19927, Bug#20555, Bug#20686).
14569 Also, set O_CLOEXEC even if PTY_OPEN is not defined, since it
14570 seems relevant in that case too.
14571
14572 2015-06-11 Juri Linkov <juri@linkov.net>
14573
14574 * lisp/bindings.el (debug-ignored-errors): Add mark-inactive.
14575 * lisp/simple.el (kill-region): Replace 'error' with 'user-error'.
14576 (Bug#20785)
14577
14578 2015-06-11 Glenn Morris <rgm@gnu.org>
14579
14580 * lisp/international/characters.el (char-script-table): Fix typo.
14581
14582 2015-06-11 Paul Eggert <eggert@cs.ucla.edu>
14583
14584 Fix quoting of help for functions with odd names
14585 While investigating Bug#20759, I discovered other quoting problems:
14586 C-h f mishandled characters like backslash and quote in function names.
14587 This fix changes the behavior so that 'C-h f pcase RET' now
14588 generates "... (\` QPAT) ..." instead of "... (` QPAT) ...",
14589 because '(format "%S" '(` FOO))' returns "(\\` FOO)". A comment
14590 in src/lread.c's read1 function says that the backslash will be
14591 needed starting in Emacs 25, which implies that 'format' is
14592 correct and the old pcase documention was wrong to omit the backslash.
14593 * lisp/emacs-lisp/nadvice.el (advice--make-docstring):
14594 * lisp/help-fns.el (help-fns--signature):
14595 * lisp/help.el (help-add-fundoc-usage):
14596 * lisp/progmodes/elisp-mode.el (elisp-function-argstring):
14597 Use help--make-usage-docstring rather than formatting
14598 help-make-usage.
14599 * lisp/emacs-lisp/pcase.el (pcase--make-docstring):
14600 Return raw docstring.
14601 * lisp/help-fns.el (help-fns--signature): New arg RAW, to return
14602 raw docstring. Take more care to distinguish raw from cooked dstrings.
14603 (describe-function-1): Let help-fns--signature substitute
14604 command keys.
14605 * lisp/help.el (help--docstring-quote): New function.
14606 (help-split-fundoc): Use it, to quote funny characters more
14607 systematically.
14608 (help--make-usage): Rename from help-make-usage, since this
14609 should be private. Leave an obsolete alias for the old name.
14610 (help--make-usage-docstring): New function.
14611 * test/automated/help-fns.el (help-fns-test-funny-names): New test.
14612
14613 2015-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14614
14615 * lisp/thingatpt.el (in-string-p): Revert last change,
14616 since in-string-p is not used in thingatpt.el but only from outside.
14617 Also, use lexical binding.
14618
14619 2015-06-11 Artur Malabarba <bruce.connor.am@gmail.com>
14620
14621 * lisp/let-alist.el (let-alist--deep-dot-search): Fix cons.
14622 * test/automated/let-alist.el (let-alist-cons): Test it.
14623
14624 2015-06-11 Nicolas Richard <theonewiththeevillook@yahoo.fr>
14625
14626 * src/syntax.c (Fbackward_prefix_chars): Reword docstring.
14627
14628 2015-06-10 Glenn Morris <rgm@gnu.org>
14629
14630 * build-aux/gitlog-to-emacslog: Also ignore pointless merge commits.
14631
14632 Improve generated ChangeLog for gitmerge.el commits. (Bug#20717)
14633 * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
14634 * admin/gitmerge.el (gitmerge-commit-message):
14635 Exclude "skipped" messages from ChangeLog once again.
14636
14637 Slight namespace cleanup for thingatpt.el.
14638 * lisp/thingatpt.el (thing-at-point--in-string-p)
14639 (thing-at-point--end-of-sexp, thing-at-point--beginning-of-sexp)
14640 (thing-at-point--read-from-whole-string): Rename from
14641 old versions without "thing-at-point--" prefix.
14642 Keep old versions as obsolete aliases. Update all uses.
14643
14644 * lisp/emacs-lisp/checkdoc.el (checkdoc-get-keywords):
14645 Move requiring of finder from here...
14646 (checkdoc-package-keywords): ... to here.
14647
14648 Use 'user-error' in a few calendar files.
14649 * lisp/calendar/appt.el (appt-add):
14650 * lisp/calendar/calendar.el (calendar-absolute-from-gregorian)
14651 (calendar-generate):
14652 * lisp/calendar/diary-lib.el (diary-mail-entries, diary-cyclic):
14653 Replace 'error' with 'user-error'.
14654
14655 * lisp/progmodes/f90.el (f90-backslash-not-special): Use user-error.
14656
14657 * lisp/files-x.el (add-file-local-variable):
14658 Special-case 'lexical-binding'. (Bug#20641)
14659
14660 * lisp/progmodes/executable.el (executable-self-display): Obsolete.
14661 No longer autoload.
14662 * doc/misc/autotype.texi (Executables):
14663 Undocument executable-self-display.
14664
14665 * lisp/progmodes/executable.el (executable-self-display):
14666 Use non-obsolete tail syntax. (Bug#20779)
14667 (executable-self-display): Doc update.
14668
14669 2015-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14670
14671 * lisp/emacs-lisp/checkdoc.el: Use lexical-binding
14672 (finder-known-keywords): Silence byte-compiler.
14673
14674 2015-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
14675
14676 * lisp/simple.el (eval-expression): Macroexpand before evaluating
14677 (bug#20730).
14678
14679 * lisp/progmodes/sh-script.el: Better handle nested quotes.
14680 (sh-here-doc-open-re): Don't mis-match the <<< operator (bug#20683).
14681 (sh-font-lock-quoted-subshell): Make sure double quotes within single
14682 quotes don't mistakenly end prematurely the surrounding string.
14683
14684 * lisp/progmodes/elisp-mode.el: Require cl-lib for cl-defstruct.
14685
14686 2015-06-09 Glenn Morris <rgm@gnu.org>
14687
14688 * test/automated/Makefile.in (ELFILES): Sort.
14689
14690 * Makefile.in (SUBDIR_MAKEFILES):
14691 * lwlib/Makefile.in (WARN_CFLAGS):
14692 Use built-in Make functions rather than echo+sed.
14693
14694 2015-06-09 Eli Zaretskii <eliz@gnu.org>
14695
14696 Update char-script-table
14697 * lisp/international/characters.el (char-script-table): Update
14698 from Unicode 8.0 Draft.
14699
14700 Improve font selection for punctuation and other symbols
14701 * src/fontset.c (face_for_char): If the character's script is
14702 'symbol', and the font used for ASCII face has a glyph for it, use
14703 the font for the ASCII face instead of searching the fontsets.
14704 This comes instead of NS-specific code that used the current
14705 face's font instead, which is now disabled due to undesirable
14706 consequences. (Bug#20727)
14707
14708 2015-06-08 Dmitry Gutov <dgutov@yandex.ru>
14709
14710 * lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
14711 Skip past `#' to find BEG (bug#20771).
14712 * test/automated/elisp-mode-tests.el
14713 (elisp-completes-functions-after-hash-quote): New test.
14714
14715 2015-06-08 Eli Zaretskii <eliz@gnu.org>
14716
14717 Fix compilation warning/error in --without-x builds
14718 * src/xdisp.c (append_space_for_newline): Condition GUI-specific
14719 code on HAVE_WINDOW_SYSTEM.
14720
14721 Improve the default fontset wrt symbols
14722 * lisp/international/fontset.el (setup-default-fontset): Better
14723 setup of fontset-default for symbols: use Symbola and FreeMono.
14724 (Bug#20727)
14725
14726 2015-06-08 Oleh Krehel <ohwoeowho@gmail.com>
14727
14728 Add new command checkdoc-package-keywords
14729 * lisp/emacs-lisp/checkdoc.el (checkdoc-package-keywords-flag):
14730 New defcustom.
14731 (checkdoc-list-of-strings-p): Add doc.
14732 (checkdoc-current-buffer): When `checkdoc-package-keywords-flag' is
14733 non-nil, call `checkdoc-package-keywords'.
14734 (checkdoc-get-keywords): New defun.
14735 (checkdoc-package-keywords): New command. Warns if the current file
14736 has package.el-style keywords that aren't in `finder-known-keywords'.
14737 * etc/NEWS: Add entry.
14738
14739 2015-06-08 Eli Zaretskii <eliz@gnu.org>
14740
14741 Avoid crashes when key-binding is called from a timer
14742 * src/keymap.c (Fkey_binding): Don't segfault if called with an
14743 empty vector as KEY. (Bug#20705)
14744
14745 Fix a thinko in arc-mode.el
14746 * lisp/arc-mode.el (archive-zip-summarize): Fix last change in the
14747 non-Zip64 case. (Bug#20769)
14748
14749 2015-06-08 Artur Malabarba <bruce.connor.am@gmail.com>
14750
14751 * lisp/emacs-lisp/package.el (package-delete): Make interactive.
14752
14753 2015-06-08 Oleh Krehel <ohwoeowho@gmail.com>
14754
14755 * lisp/emacs-lisp/checkdoc.el (checkdoc-file): New function.
14756 (checkdoc-error): When `checkdoc-diagnostic-buffer' is set to
14757 "*warn*", print the warning to the standard output. (bug#20754)
14758
14759 2015-06-07 Glenn Morris <rgm@gnu.org>
14760
14761 * admin/update_autogen (changelog_files): Remove gitlog-to-emacslog.
14762
14763 * src/font.c (syms_of_font) <font-log>: Doc fix.
14764
14765 Remove the obsolete leading "*" from some C doc strings.
14766 * src/coding.c (syms_of_coding):
14767 * src/font.c (syms_of_font): Remove leading "*" from docs.
14768 * lisp/cus-start.el (enable-character-translation): Add it.
14769
14770 2015-06-07 Paul Eggert <eggert@cs.ucla.edu>
14771
14772 Move gen_origin from program to data
14773 That way, 'make change-history' needs to change only ChangeLog.2,
14774 instead of having to change two files.
14775 * ChangeLog.2: Add commit info for range that this file covers.
14776 * Makefile.in (new_commit_regexp): New macro.
14777 (change-history-nocommit): Simplify, by putting what used to be
14778 the gen_origin value into the data (ChangeLog.2) rather than
14779 into the program (gitlog-to-emacslog).
14780 * build-aux/gitlog-to-emacslog (gen_origin): Calculate from
14781 the input file (e.g., ChangeLog.2) rather than by having a
14782 constant in the program. Substitute it into the output.
14783
14784 2015-06-07 Dmitry Gutov <dgutov@yandex.ru>
14785
14786 * lisp/help-fns.el (help-fns--signature): Quote any quotes in the
14787 function name (bug#20759).
14788
14789 2015-06-07 Eli Zaretskii <eliz@gnu.org>
14790
14791 Adapt 'struct timespec' to next release of MinGW runtime
14792 * nt/inc/ms-w32.h (struct timespec): Don't declare if
14793 __struct_timespec_defined is defined.
14794
14795 2015-06-06 Paul Eggert <eggert@cs.ucla.edu>
14796
14797 Merge from gnulib
14798 This incorporates:
14799 2015-06-06 acl-permissions: pacify -Wsuggest-attribute=const
14800 2015-06-05 stdio: Don't redefine gets when using C++
14801 2015-06-05 acl-permissions: port to AIX, C89 HP-UX
14802 2015-06-02 file-has-acl: fix build on Mac OS X 10
14803 2015-06-01 gnulib-tool: concatenate lib_SOURCES to a single line
14804 2015-06-01 pthread_sigmask: discount system version if a simple macro
14805 2015-05-31 readlinkat: avoid OS X 10.10 trailing slash bug
14806 * doc/misc/texinfo.tex, lib/acl-internal.h, lib/get-permissions.c:
14807 * lib/readlinkat.c, lib/set-permissions.c, lib/stdio.in.h:
14808 * m4/acl.m4, m4/pthread_sigmask.m4, m4/readlinkat.m4: Copy from gnulib.
14809 * lib/gnulib.mk: Regenerate.
14810
14811 2015-06-06 Juri Linkov <juri@linkov.net>
14812
14813 * lisp/progmodes/grep.el (zrgrep): Let-bind grep-highlight-matches
14814 before calling grep-compute-defaults because now it affects the
14815 command lines computed in grep-compute-defaults. (Bug#20728)
14816
14817 2015-06-06 Glenn Morris <rgm@gnu.org>
14818
14819 Address some compilation warnings.
14820 * lisp/international/mule-cmds.el (w32-get-console-codepage)
14821 (w32-get-console-output-codepage):
14822 * lisp/progmodes/elisp-mode.el (xref-collect-references):
14823 * lisp/version.el (cairo-version-string): Declare.
14824 * lisp/erc/erc.el (erc-nickname-in-use): Fix typo.
14825
14826 2015-06-06 Eli Zaretskii <eliz@gnu.org>
14827
14828 Fix display when a font claims large values of ascent and descent
14829 This fixes bug#20628.
14830 * src/xdisp.c (get_phys_cursor_geometry): Correct the Y
14831 coordinate of a hollow cursor glyph when the original glyph's
14832 ascent is too small.
14833 (get_font_ascent_descent, normal_char_ascent_descent)
14834 (normal_char_height): New functions.
14835 (handle_single_display_spec, append_space_for_newline)
14836 (calc_pixel_width_or_height, produce_stretch_glyph)
14837 (calc_line_height_property): Use normal_char_ascent_descent and
14838 normal_char_height.
14839 (x_produce_glyphs): When font-global values of ascent and descent
14840 are too large, use per-character glyph metrics instead, if
14841 possible. But don't allow the glyph row's ascent and descent
14842 values become smaller than the values from the metrics of the
14843 font's "normal" character.
14844 * src/xftfont.c (xftfont_draw):
14845 * src/w32font.c (w32font_draw): Correct the values of ascent and
14846 descent used to draw glyphless characters' hex code in a box.
14847 * src/xterm.c (x_draw_glyph_string_background):
14848 * src/xdisp.c (x_produce_glyphs):
14849 * src/w32term.c (x_draw_glyph_string_background):
14850 * src/nsterm.m (ns_maybe_dumpglyphs_background): Use FONT_TOO_HIGH
14851 to detect fonts whose global ascent and descent values are too
14852 large to be used in layout decision, and redraw the background
14853 when that happens.
14854 * src/dispextern.h (FONT_TOO_HIGH): New macro.
14855 (get_font_ascent_descent): Add prototype.
14856 * src/xterm.c (x_new_font):
14857 * src/w32term.c (x_new_font):
14858 * src/nsterm.m (x_new_font):
14859 * src/font.c (font_open_entity):
14860 * src/composite.c (composition_gstring_width):
14861 Use get_font_ascent_descent to obtain reasonable values for ascent
14862 and descent of a font.
14863
14864 2015-06-06 Nicolas Richard <youngfrog@members.fsf.org>
14865
14866 Add assertion in adjust_point_for_property
14867 * src/keyboard.c (adjust_point_for_property): Add eassert for
14868 current buffer being shown in selected window.
14869
14870 2015-06-06 Dmitry Gutov <dgutov@yandex.ru>
14871
14872 Replace uses of in-string-p; make it obsolete
14873 * lisp/thingatpt.el (in-string-p): Declare obsolete (bug#20732).
14874 (end-of-sexp, beginning-of-sexp): Use syntax-ppss instead.
14875
14876 2015-06-06 Eli Zaretskii <eliz@gnu.org>
14877
14878 Fix Dired display of an explicit list of files by ls-lisp.el
14879 * lisp/ls-lisp.el (ls-lisp-uid-d-fmt, ls-lisp-uid-s-fmt)
14880 (ls-lisp-gid-d-fmt, ls-lisp-gid-s-fmt): Make the initial values be
14881 correct for when displaying individual files separately, not as
14882 part of listing a directory, in which case these values are not
14883 recomputed by 'ls-lisp-insert-directory', but used verbatim.
14884
14885 * lisp/dired.el (dired): Doc fix. (Bug#20739)
14886
14887 2015-06-06 Nicolas Richard <youngfrog@members.fsf.org>
14888
14889 Do not adjust point in a non-selected window
14890 * src/keyboard.c (command_loop_1): Do not adjust point when
14891 current buffer is not shown in selected window (Bug#20590).
14892
14893 * etc/DEBUG: Mention 'maybe_call_debugger'
14894
14895 2015-06-05 Nicolas Petton <nicolas@petton.fr>
14896
14897 Fix a unit test for map.el
14898 * test/automated/map-tests.el (test-map-let): Fix the test to work
14899 with the new syntax of `map-let'.
14900
14901 * lisp/emacs-lisp/map.el (map-let): Better docstring.
14902
14903 Better syntax for the map pcase pattern
14904 * lisp/emacs-lisp/map.el: Improves the map pcase pattern to take
14905 bindings of the form (KEY PAT) or SYMBOL. KEY is not quoted.
14906
14907 * lisp/emacs-lisp/map.el (map--dispatch): Better docstring.
14908
14909 Fix a byte-compiler error in map-put and map-delete
14910 * lisp/emacs-lisp/map.el (map-put, map-delete): Ensure that `setq' is
14911 called with a symbol.
14912
14913 2015-06-05 Glenn Morris <rgm@gnu.org>
14914
14915 * admin/gitmerge.el (gitmerge-commit-message):
14916 Revert to including "skipped" messages in ChangeLog once again.
14917
14918 2015-06-05 Tassilo Horn <tsdh@gnu.org>
14919
14920 Use string> instead of equiv lambda with string<
14921 * lisp/help.el (view-emacs-news): Use string> instead of equivalent
14922 lambda with string<.
14923
14924 2015-06-05 Glenn Morris <rgm@gnu.org>
14925
14926 * lisp/emacs-lisp/map.el (map--dispatch): Move before use.
14927 (map--delete-array): Fix typo.
14928
14929 * test/automated/map-tests.el: Replace "assert" with "should".
14930
14931 * lisp/Makefile.in (SUBDIRS): Rename from SUBDIRS_ABS.
14932 (SUBDIRS_REL): Derive from SUBDIRS.
14933
14934 Tweak some build messages.
14935 * lisp/Makefile.in ($(lisp)/loaddefs.el):
14936 * lisp/cus-dep.el (custom-make-dependencies):
14937 * lisp/finder.el (finder-compile-keywords): Say what we are doing.
14938 * lisp/international/titdic-cnv.el (batch-titdic-convert):
14939 Don't say how to compile.
14940
14941 2015-06-05 Paul Eggert <eggert@cs.ucla.edu>
14942
14943 Omit U+0332 COMBINING LOW LINE in previous change
14944 It turns out that it does not work on Ubuntu 15.04.
14945
14946 Fix transliteration of Bahá'í months
14947 * lisp/calendar/cal-bahai.el (calendar-bahai-month-name-array):
14948 Improve quality of Latin transliteration of Bahá'í month names.
14949
14950 Fix curved quotes in a few places
14951 * lisp/calc/calc-misc.el (calc-help): Fix quoting.
14952 The strings in question are not doc strings, so this partially
14953 undoes the recent change that assumed they were doc strings.
14954 * lisp/cedet/srecode/srt-mode.el (srecode-macro-help):
14955 * lisp/info.el (Info-finder-find-node):
14956 Use curved quotes.
14957 * lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
14958 Also allow curved quotes in doc strings.
14959
14960 2015-06-04 Glenn Morris <rgm@gnu.org>
14961
14962 * lisp/Makefile.in (AM_V_at): Add missing definition.
14963
14964 * lisp/Makefile.in: Quieten output a bit.
14965 ($(lisp)/cus-load.el, $(lisp)/finder-inf.el):
14966 Don't echo directories, since the commands we invoke print them.
14967
14968 * lisp/Makefile.in: Replace shell fragments in variables with $(shell).
14969 (SUBDIRS_REL, SUBDIRS_ABS, SUBDIRS_ALMOST, SUBDIRS_FINDER)
14970 (SUBDIRS_SUBDIRS): New variables.
14971 (setwins, setwins_almost, setwins_finder, setwins_for_subdirs):
14972 Remove.
14973 ($(lisp)/cus-load.el, $(lisp)/finder-inf.el, $(lisp)/loaddefs.el)
14974 (update-subdirs, compile-main, compile-clean):
14975 Replace "setwins" usage with new "SUBDIRS" variables.
14976
14977 * lisp/vc/compare-w.el (compare-windows-get-window-function):
14978 Fix :version tag.
14979
14980 2015-06-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14981
14982 * src/ftfont.c (ftfont_open2): Round divisions by upEM.
14983
14984 Undo removal of x_clear_area call on expose for GTK3 or cairo
14985 * src/xterm.c (handle_one_xevent) [HAVE_GTK3 || USE_CAIRO]:
14986 Clear exposed area. (Bug#20677)
14987
14988 2015-06-04 Glenn Morris <rgm@gnu.org>
14989
14990 * doc/lispref/hash.texi (Creating Hash): Remove obsolete makehash.
14991
14992 * lisp/Makefile.in (check-defun-dups): Also skip ldefs-boot.
14993
14994 * lisp/leim/quail/lrt.el (quail-lrt-update-translation):
14995 Rename from quail-lao-update-translation, since lao.el defines that.
14996
14997 2015-06-04 Dmitry Gutov <dgutov@yandex.ru>
14998
14999 Handle new-style advice in find-funct
15000 * lisp/emacs-lisp/find-func.el (find-function-advised-original):
15001 Handle new-style advice. Return the symbol's function definition.
15002 (Bug#20718)
15003 (find-function-library): Update accordingly.
15004
15005 2015-06-04 Nicolas Petton <nicolas@petton.fr>
15006
15007 Merge branch 'map'
15008
15009 * lisp/emacs-lisp/map.el: Better docstring for the map pcase macro.
15010
15011 Add new function string-greaterp
15012 * lisp/subr.el (string-greaterp): New function. Also aliased to
15013 `string>'.
15014 * test/automated/subr-tests.el (string-comparison-test): Add unit
15015 tests for `string>'and `string<'.
15016 * src/fns.c (string-lessp): Better docstring.
15017
15018 2015-06-04 Eli Zaretskii <eliz@gnu.org>
15019
15020 Fix timezone-related functions on MS-Windows
15021 * src/editfns.c (set_time_zone_rule) [WINDOWSNT]: Always call
15022 'xputenv', even if no reallocation of tzvalbuf was necessary.
15023 This fixes a bug in timezone-related functions on MS-Windows.
15024 Reported by Fabrice Popineau <fabrice.popineau@gmail.com>.
15025
15026 2015-06-03 Paul Eggert <eggert@cs.ucla.edu>
15027
15028 Don't pass raw directory name to 'error'
15029 * lisp/files.el (basic-save-buffer-2): Avoid format error if
15030 a directory name contains a string like "%s".
15031
15032 2015-06-03 Dmitry Gutov <dgutov@yandex.ru>
15033
15034 Override 'grep --color=always'
15035 * lisp/progmodes/xref.el (xref-collect-matches):
15036 Override --color=always in grep-find-template.
15037
15038 2015-06-03 Michael Albinus <michael.albinus@gmx.de>
15039
15040 Fix error introduced recently in file-notify-tests.el
15041 * test/automated/file-notify-tests.el
15042 (file-notify--test-remote-enabled): Do not use `file-notify--test-desc'.
15043 (file-notify--deftest-remote): Revert previous patch, not
15044 necessary anymore.
15045
15046 2015-06-03 Wolfgang Jenkner <wjenkner@inode.at>
15047
15048 * src/indent.c (Fvertical_motion): Amend motion by 0 lines.
15049 Starting from a display string after a newline, point went to the
15050 previous line. Also, fix an inadvertent use of a buffer position
15051 with FETCH_BYTE. (Bug#20701)
15052
15053 2015-06-03 Michael Albinus <michael.albinus@gmx.de>
15054
15055 Instrument file-notify-test.el in order to catch hydra error
15056 * test/automated/file-notify-tests.el (file-notify--deftest-remote):
15057 Wrap body by `ignore-case', in order to trap non-local errors.
15058
15059 2015-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15060
15061 Undo previous changes in non-toolkit scroll bar drawing
15062 * src/xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
15063 [!USE_TOOLKIT_SCROLL_BARS]: Draw into scroll bar window. (Bug#20668)
15064
15065 2015-06-03 Paul Eggert <eggert@cs.ucla.edu>
15066
15067 * .gitignore: Also ignore doc/*/*/*.html and .ps.
15068
15069 Support quotes 'like this' in info files
15070 This is possible when 'makeinfo --disable-encoding' is used
15071 in Texinfo 5.
15072 * lisp/calc/calc-help.el (calc-describe-thing):
15073 * lisp/gnus/gnus-art.el (gnus-button-alist):
15074 * lisp/info.el (Info-find-index-name):
15075 * lisp/vc/ediff-help.el (ediff-help-for-quick-help):
15076 Also support quotes 'like this'.
15077 * lisp/calc/calc-help.el (calc-describe-thing): Simplify.
15078 * lisp/finder.el (finder-font-lock-keywords): Remove var that
15079 hasn't been used in years, instead of bothering to fix its quoting.
15080
15081 2015-06-02 Paul Eggert <eggert@cs.ucla.edu>
15082
15083 * .gitignore: Remove !test/etags/html-src/*.html.
15084 It's no longer needed, since *.html was removed. Sort.
15085
15086 2015-06-02 Dmitry Gutov <dgutov@yandex.ru>
15087
15088 Restore <D> instead of '.' in grep-find-template
15089 * lisp/cedet/semantic/symref/grep.el
15090 (semantic-symref-grep-use-template): Update a comment.
15091 * lisp/progmodes/grep.el (grep-compute-defaults): Restore <D>
15092 instead of '.' in grep-find-template (bug#20719).
15093 (rgrep): Pass nil as the directory to rgrep-default-command.
15094 * lisp/progmodes/grep.el (grep-expand-keywords): Use '.' as the
15095 default value for DIR.
15096 * lisp/progmodes/xref.el (xref-collect-matches): Drop the
15097 workaround.
15098
15099 2015-06-02 Glenn Morris <rgm@gnu.org>
15100
15101 * configure.ac (emacs_config_features): Add X toolkit and scroll-bars.
15102
15103 * configure.ac (emacs_config_features): Add Cairo.
15104
15105 * configure.ac [HAVE_GTK3]: Remove USE_CAIRO that gets reset later.
15106
15107 2015-06-02 Michael Albinus <michael.albinus@gmx.de>
15108
15109 Ensure that autorevert works for remote files in file-notify-tests.el
15110 * test/automated/file-notify-tests.el (file-notify--test-desc):
15111 New defvar.
15112 (file-notify--test-remote-enabled)
15113 (file-notify-test00-availability, file-notify-test01-add-watch)
15114 (file-notify-test02-events): Use it.
15115 (file-notify--test-event-test): Check proper descriptor.
15116 (file-notify-test03-autorevert): Ensure that
15117 `visited-file-modtime' has changed. (Bug#20392)
15118
15119 2015-06-02 Nicolas Petton <nicolas@petton.fr>
15120
15121 Add a pcase pattern for maps and `map-let' based on it
15122 * lisp/emacs-lisp/map.el (map-let): New macro.
15123 (map--make-pcase-bindings, map--make-pcase-patterns): New functions.
15124 * test/automated/map-tests.el: New test for `map-let'.
15125
15126 2015-06-02 Dmitry Gutov <dgutov@yandex.ru>
15127
15128 Reuse rgrep mechanics in xref-find-regexp
15129 * lisp/progmodes/grep.el (rgrep-default-command):
15130 Extract from `rgrep'.
15131 * lisp/progmodes/xref.el (xref-collect-references): Split from
15132 `xref-collect-matches'. Only handle the case of symbol search.
15133 (xref-collect-matches): Instead of Semantic Symref, use
15134 `rgrep-default-command', to take advantage of its directory and
15135 file ignore settings.
15136 (xref--collect-match): Remove the last argument, leaving the
15137 regexp construction up to the caller.
15138 * lisp/progmodes/elisp-mode.el (elisp--xref-find-matches):
15139 Change to take the xref-collect- function to use as an argument.
15140 (elisp-xref-find): Update accordingly.
15141 * lisp/progmodes/etags.el (etags--xref-find-matches)
15142 (etags-xref-find): Same.
15143
15144 Move xref-elisp-location to elisp-mode.el
15145 * lisp/progmodes/xref.el (xref-elisp-location)
15146 (xref-make-elisp-location, xref-location-marker): Remove here.
15147 (xref--xref): Don't limit the type of the location slot.
15148 * lisp/progmodes/elisp-mode.el (xref-elisp-location):
15149 Define as a cl-struct here.
15150 (xref-location-marker): Move here.
15151
15152 2015-06-02 Eli Zaretskii <eliz@gnu.org>
15153
15154 Minor tweaks for .gitignore
15155 * .gitignore: Don't ignore versioned *.html and *.ps files.
15156 Don't ignore admin/notes/tags that might be ignored as TAGS
15157 on case-insensitive filesystems. (Bug#20710)
15158
15159 2015-06-02 Paul Eggert <eggert@cs.ucla.edu>
15160
15161 Generate curved quotes in ert doc
15162 * lisp/emacs-lisp/ert.el (ert--print-test-for-ewoc)
15163 (ert-results-mode-menu)
15164 (ert-results-pop-to-backtrace-for-test-at-point)
15165 (ert-results-pop-to-messages-for-test-at-point)
15166 (ert-results-pop-to-should-forms-for-test-at-point)
15167 (ert-describe-test):
15168 Quote ‘like this’, not `like this', when generating doc strings
15169 and the like.
15170 * test/automated/ert-x-tests.el (ert-test-describe-test):
15171 Allow quoting ‘like this’.
15172
15173 2015-06-02 Nicolas Richard <youngfrog@members.fsf.org>
15174
15175 Add test for previous commit
15176 * test/automated/replace-tests.el: New file.
15177 (query-replace--split-string-tests): Add test for previous commit.
15178
15179 Avoid confusion in query-replace history when replacing NUL chars
15180 * lisp/replace.el (query-replace--split-string): New function.
15181 (query-replace-read-from): Rely on the 'separator' property
15182 instead of searching for the NUL character (Bug#20690).
15183
15184 2015-06-02 Glenn Morris <rgm@gnu.org>
15185
15186 Merge from origin/emacs-24
15187 8b5f2f4 * doc/emacs/emacs.texi: Update the ISBN of the Emacs manual.
15188
15189 * admin/gitmerge.el (gitmerge-commit-message):
15190 Exclude "skipped" messages from ChangeLog.
15191
15192 2015-06-01 Michael Albinus <michael.albinus@gmx.de>
15193
15194 Sync with Tramp repository
15195 * lisp/net/tramp.el (tramp-message): Dump connection buffer error
15196 messages.
15197 (tramp-handle-make-auto-save-file-name): When calling
15198 `make-auto-save-file-name' internally, make sure it uses Unix-like
15199 behavior, not Windows-like behavior.
15200 * lisp/net/tramp-sh.el (tramp-set-file-uid-gid): Add a timeout for
15201 the local case, because "chown" might fail on w32.
15202 * lisp/net/trampver.el (tramp-repository-get-version): Don't run
15203 for XEmacs.
15204
15205 2015-06-01 Eli Zaretskii <eliz@gnu.org>
15206
15207 MS-Windows followup for batch stdout/stderr output changes
15208 * lisp/international/mule-cmds.el (set-locale-environment):
15209 In batch mode, use console codepages for keyboard and terminal
15210 encoding. (Bug#20545)
15211
15212 Update .gitattributes for DOS EOL files
15213 * .gitattributes: Use "whitespace=cr-at-eol" for files with DOS
15214 CRLF end-of-line format.
15215
15216 NS equivalents of xterm.c and w32term.c changes
15217 * src/nsterm.m (ns_maybe_dumpglyphs_background): Force redraw of
15218 glyph string background also when the font in use claims
15219 preposterously large global height value. Helps to remove
15220 artifacts left from previous displays when glyphless characters
15221 are displayed as hex code in a box.
15222 (x_new_font): Call get_font_ascent_descent to obtain a reasonable
15223 value for FRAME_LINE_HEIGHT, even when a font claims very large
15224 value for its height.
15225
15226 2015-06-01 Paul Eggert <eggert@cs.ucla.edu>
15227
15228 Avoid grave accent quoting in stderr diagnostics
15229 A few Emacs diagnostics go directly to stderr, and so can't easily
15230 contain curved quotes (as non-UTF-8 locales might mishandle them).
15231 Instead of bothering to add support for this rarity, reword the
15232 diagnostics so that they don't use grave accent to quote.
15233 * src/alloc.c (mark_memory): Fix comment.
15234 * src/buffer.c (init_buffer):
15235 * src/dispnew.c (init_display):
15236 * src/emacs.c (main, sort_args):
15237 * src/lread.c (dir_warning):
15238 * src/term.c (init_tty):
15239 * src/unexmacosx.c (unexec):
15240 * src/xfns.c (select_visual):
15241 * src/xterm.c (cvt_string_to_pixel, x_io_error_quitter):
15242 Reword stderr diagnostics to avoid quoting `like this'.
15243 * src/unexmacosx.c: Include errno.h.
15244 * src/xfns.c (select_visual): Encode value for locale.
15245
15246 2015-05-31 Paul Eggert <eggert@cs.ucla.edu>
15247
15248 Treat batch stdout/stderr like standard display
15249 Calls like (print FOO) could generate improperly encoded or
15250 hard-to-read output if FOO contains characters outside the system
15251 locale. Fix this by treating batch stdout and stderr like
15252 interactive standard display, when it comes to transliterating and
15253 encoding characters (Bug#20545).
15254 * doc/emacs/mule.texi (Communication Coding):
15255 * doc/lispref/display.texi (Active Display Table):
15256 * doc/lispref/nonascii.texi (Locales):
15257 * etc/NEWS:
15258 * src/coding.c (syms_of_coding):
15259 * src/dispnew.c (syms_of_display):
15260 Document this.
15261 * src/print.c: Include disptab.h.
15262 (printchar_to_stream): New function, with much of the guts of the
15263 old Fexternal_debugging_output, except this one also uses the
15264 standard display table.
15265 (printchar, strout, Fexternal_debugging_output): Use it.
15266
15267 2015-05-31 Glenn Morris <rgm@gnu.org>
15268
15269 * src/emacs.c (syms_of_emacs) <system-configuration-features>: Doc fix.
15270
15271 2015-05-31 Paul Eggert <eggert@cs.ucla.edu>
15272
15273 Remove DEFSYMs that aren't used at the C level. Also:
15274 * src/decompress.c (Qzlib_dll):
15275 * src/font.c (Qunicode_sip):
15276 * src/frame.c (Qtip_frame):
15277 * src/ftfont.c (Qserif):
15278 * src/gnutls.c (Qgnutls_dll):
15279 * src/xml.c (Qlibxml2_dll):
15280 Move from here ...
15281 * src/w32fns.c (syms_of_w32fns): ... to here,
15282 as these are used only on MS-Windows.
15283
15284 2015-05-31 Michael Albinus <michael.albinus@gmx.de>
15285
15286 Use another default value for tramp-histfile-override
15287 * lisp/net/tramp-sh.el (tramp-histfile-override):
15288 Use ".tramp_history" as default.
15289 Fixes bug#20446
15290
15291 2015-05-29 Nicolas Petton <nicolas@petton.fr>
15292
15293 * doc/emacs/emacs.texi: Update the ISBN of the Emacs manual.
15294
15295 2015-05-16 Nicolas Petton <nicolas@petton.fr>
15296
15297 * etc/NEWS: Add an entry about map.el.
15298
15299 Improve the docstring of functions in map.el
15300 Since a map is not a data structure but a concept, adding information
15301 about the possible types of maps can be useful information.
15302 * lisp/emacs-lisp/map.el: Add documentation about the type of MAP to
15303 each public function.
15304
15305 2015-04-29 Nicolas Petton <nicolas@petton.fr>
15306
15307 * lisp/emacs-lisp/map.el (map-empty-p): Faster implementation using
15308 specific tests depending on the type of the map.
15309
15310 * lisp/emacs-lisp/map.el: Better docstrings.
15311
15312 2015-04-25 Artur Malabarba <bruce.connor.am@gmail.com>
15313
15314 * lisp/emacs-lisp/map.el (map-pairs): Dump redundant lambda.
15315
15316 2015-04-25 Nicolas Petton <nicolas@petton.fr>
15317
15318 * lisp/emacs-lisp/map.el (map--elt-list): Better docstring.
15319
15320 * lisp/emacs-lisp/map.el (map--elt-list): Minor refactoring.
15321
15322 Fix a false negative in `map-elt' with alists and values being nil
15323 * lisp/emacs-lisp/map.el (map-elt): If map is an alist and key is
15324 found but its associated value is nil, do not return the default
15325 value.
15326 * test/automated/map-tests.el: Add a regression test.
15327
15328 2015-04-24 Nicolas Petton <nicolas@petton.fr>
15329
15330 * lisp/emacs-lisp/map.el (map--dispatch): Improve the docstring.
15331
15332 Do not signal an error when trying to delete a key from an array
15333 * lisp/emacs-lisp/map.el (map-delete): When map is an array, check if
15334 the key is present to avoid signaling an error.
15335 * test/automated/map-tests.el: Add a test for deleting non-existing
15336 keys from maps.
15337
15338 * lisp/emacs-lisp/map.el: Better docstring.
15339
15340 Minor improvement in map-elt
15341 * lisp/emacs-lisp/map.el (map-elt): Do not use `ignore-errors' when
15342 doing a lookup in arrays, but check the boundaries of the array
15343 instead.
15344 * test/automated/map-tests.el: Adds a test for `map-elt' with arrays
15345 and a negative integer as key.
15346
15347 2015-04-21 Nicolas Petton <nicolas@petton.fr>
15348
15349 * test/automated/map-tests.el: Refactoring of test methods.
15350
15351 * test/automated/map-tests.el: Renamed from map-test.el.
15352
15353 2015-04-18 Nicolas Petton <nicolas@petton.fr>
15354
15355 * lisp/emacs-lisp/map.el (map-into): Better error message.
15356
15357 * lisp/emacs-lisp/map.el: Remove byte-compilation warnings.
15358
15359 Throw an error when converting a map into an unknown map type
15360 * lisp/emacs-lisp/map.el (map-into): Throw an error if type is
15361 not valid.
15362 * test/automated/map-test.el: Add a regression test.
15363
15364 New library map.el similar to seq.el but for mapping data structures.
15365 * test/automated/map-test.el: New file.
15366 * lisp/emacs-lisp/map.el: New file.
15367
15368 2015-05-30 Dmitry Gutov <dgutov@yandex.ru>
15369
15370 * lisp/progmodes/etags.el (tag-implicit-name-match-p): Make sure
15371 there's no explicit tag name (bug#20629).
15372
15373 2015-05-30 Paul Eggert <eggert@cs.ucla.edu>
15374
15375 Remove format2
15376 * src/editfns.c, src/lisp.h (format2): Remove.
15377 It is more trouble than it's worth, now that we have CALLN.
15378 This is just a minor refactoring.
15379 * src/buffer.c (Fkill_buffer):
15380 * src/dbusbind.c (XD_OBJECT_TO_STRING):
15381 * src/fileio.c (barf_or_query_if_file_exists):
15382 Adjust to format2 going away.
15383
15384 Don't misencode C-generated messages
15385 Also, be more consistent about calls to 'Fmessage' vs 'message'.
15386 * src/alloc.c (Fgc_status):
15387 Prefer AUTO_STRING to build_string for Fmessage call.
15388 * src/data.c (Fmake_variable_buffer_local)
15389 (Fmake_local_variable, Fmake_variable_frame_local):
15390 * src/doc.c (store_function_docstring):
15391 Use Fmessage, not message, since the argument can contain
15392 non-ASCII characters, and this can cause the resulting message
15393 to be incorrectly encoded for the current environment.
15394 * src/fns.c (maybe_resize_hash_table):
15395 * src/xselect.c (x_clipboard_manager_save_all):
15396 Use message, not Fmessage, since Fmessage's power isn't needed here.
15397 * src/process.c (Fmake_network_process): Reword message to avoid %s.
15398 * src/xdisp.c (vmessage): Document restrictions on message contents.
15399 (message_nolog) [false]: Remove unused code.
15400
15401 Use \r rather than ^M in string literals
15402 This is less likely to cause problems on platforms that
15403 use CRLF (or CR!) termination for lines.
15404
15405 Update .gitattributes to match current sources
15406 http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00879.html
15407 * .gitattributes: Accommodate tests that insist on DOS format.
15408 Remove test/automated/data/decompress/foo-gzipped.
15409 Add etc/e/eterm-color.
15410
15411 2015-05-30 Eli Zaretskii <eliz@gnu.org>
15412
15413 * doc/emacs/mule.texi (Modifying Fontsets):
15414 Document face-ignored-fonts. (Bug#20628)
15415
15416 Add etags test for the new -Q option
15417 * test/etags/ETAGS.good_1, test/etags/ETAGS.good_2:
15418 * test/etags/ETAGS.good_3, test/etags/ETAGS.good_4:
15419 * test/etags/ETAGS.good_5, test/etags/CTAGS.good: Adjust to
15420 test-case changes below.
15421 * test/etags/ETAGS.good_6: New file.
15422 * test/etags/cp-src/x.cc: New file.
15423 * test/etags/Makefile (CPSRC): Add x.cc.
15424 (check): Add one more test, for -Q.
15425
15426 2015-05-30 Dmitry Gutov <dgutov@yandex.ru>
15427
15428 Use list for the tags completion table, not obarray
15429 * lisp/progmodes/etags.el (etags-tags-completion-table): Return a
15430 list instead of an obarray
15431 (http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00876.html).
15432 (tags-completion-table): Combine those lists.
15433 (tags-completion-table): Update the docstring.
15434
15435 2015-05-30 Eli Zaretskii <eliz@gnu.org>
15436
15437 Restore EOL format testing in etags
15438 * test/etags/ETAGS.good_1, test/etags/ETAGS.good_2:
15439 * test/etags/ETAGS.good_3, test/etags/ETAGS.good_4:
15440 * test/etags/ETAGS.good_5, test/etags/CTAGS.good: Adjust to
15441 test-case changes below.
15442 * test/etags/html-src/algrthms.html: Convert back to DOS EOL format.
15443 * test/etags/cp-src/c.C (B): Add back stray CR character.
15444 * test/etags/c-src/dostorture.c: Add back.
15445 * test/etags/Makefile (CSRC): Add back c-src/dostorture.c.
15446
15447 2015-05-30 Vitaly Takmazov <vitalyster@gmail.com> (tiny change)
15448
15449 Declare Emacs on MS-Windows to be DPI-aware
15450 * nt/emacs-x86.manifest (asmv3:windowsSettings): Add dpiAware.
15451 * nt/emacs-x64.manifest (asmv3:windowsSettings): Add dpiAware.
15452 This avoids Windows entering compatibility mode for Emacs,
15453 which causes fonts to look less nice.
15454
15455 2015-05-30 Michael Albinus <michael.albinus@gmx.de>
15456
15457 Improve Tramp traces
15458 * lisp/net/trampver.el (tramp-repository-get-version): New defun.
15459 * lisp/net/tramp.el (tramp-debug-message): Use it.
15460
15461 2015-05-30 Paul Eggert <eggert@cs.ucla.edu>
15462
15463 backup-buffer minor reworking of internals
15464 * lisp/files.el (backup-buffer): Rework to avoid a couple of
15465 unused locals inadvertently introduced in the previous change.
15466
15467 backup-buffer now reports .emacs.d/%backup% ills
15468 * lisp/files.el (backup-buffer): If the write to .emacs.d/%backup%
15469 fails due to disk space exhaustion or whatever, do not pretend
15470 that it succeeded. More generally, do a better job of checking
15471 for I/O failures, and limit the scope of the condition-case to
15472 just the operations where file errors should be caught and ignored
15473 (Bug#20595). Also, don't bother trying to delete later backups if
15474 an earlier deletion fails, as this is a sign of trouble and it's
15475 better to stop when there's trouble.
15476
15477 copy-file now truncates output after writing
15478 * src/fileio.c (Fcopy_file): Truncate output after writing rather
15479 than before. This is more likely to work than truncation before
15480 writing, if the file system is out of space or the user is over
15481 disk quota (Bug#20595). Also, check for read errors.
15482
15483 2015-05-29 Artur Malabarba <bruce.connor.am@gmail.com>
15484
15485 * lisp/emacs-lisp/package.el (package-load-all-descriptors):
15486 Don't load descriptors from directories above the package directories.
15487
15488 2015-05-29 Paul Eggert <eggert@cs.ucla.edu>
15489
15490 Merge from gnulib
15491 This incorporates the following (Bug#20681):
15492 2015-05-29 acl-permissions: Fix build on Mac OS X and older AIX
15493 2015-05-29 acl-permissions: Fix build on Solaris and Cygwin
15494 * lib/set-permissions.c: Copy from gnulib.
15495
15496 2015-05-29 Michael Albinus <michael.albinus@gmx.de>
15497
15498 Improve Tramp traces
15499 * lisp/net/tramp.el (tramp-call-process-region): New defun.
15500 * lisp/net/tramp-sh.el (tramp-get-inline-coding): Use it.
15501
15502 2015-05-29 Glenn Morris <rgm@gnu.org>
15503
15504 * test/automated/vc-tests.el: Try enabling tests on hydra.nixos.org.
15505
15506 2015-05-29 Wolfgang Jenkner <wjenkner@inode.at>
15507
15508 * src/xfns.c (x_set_menu_bar_lines): Fix calls to x_clear_area.
15509 The signature was changed in the cairo branch, merged on 2015-05-23.
15510 This oversight broke compiling only the non-toolkit X version.
15511
15512 2015-05-29 Samer Masterson <samer@samertm.com>
15513
15514 * doc/lispref/os.texi: Update initial-buffer-choice docs.
15515
15516 2015-05-29 Glenn Morris <rgm@gnu.org>
15517
15518 * test/automated/vc-tests.el (vc-test-rcs04-checkout-model):
15519 Mark as an expected failure.
15520
15521 2015-05-29 Paul Eggert <eggert@cs.ucla.edu>
15522
15523 Change package test to look for curved quotes
15524 * test/automated/package-test.el (package-test-describe-package)
15525 (package-test-signed): Search for curved single quotes as well as
15526 for grave accent and apostrophe.
15527
15528 2015-05-28 Katsumi Yamaoka <yamaoka@jpl.org>
15529
15530 * lisp/gnus/gnus-art.el (gnus-button-alist): Re-revert last change.
15531 cf. <http://news.gmane.org/group/gmane.emacs.devel/thread=186896>
15532
15533 2015-05-28 Samer Masterson <samer@samertm.com>
15534
15535 Show files when `initial-buffer-choice' is non-nil
15536 * lisp/startup.el (command-line-1): When Emacs is given a file as an
15537 argument and `initial-buffer-choice' is non-nil, display both the file
15538 and `initial-buffer-choice'. For more than one file, show
15539 `initial-buffer-choice' and *Buffer List*. Refactor display-changing
15540 commands out of the command line arg parser.
15541 (initial-buffer-choice): Clarify docstring.
15542
15543 2015-05-28 Eli Zaretskii <eliz@gnu.org>
15544
15545 Fix last commit
15546 * nt/gnulib.mk (libgnu_a_SOURCES): Add get-permissions.c back.
15547 (gnulib module qcopy-acl): Add back, as it is harmless. This
15548 minimizes differences wrt lib/gnulib.mk.
15549
15550 Fix the MS-Windows build as followup to gnulib update
15551 * nt/gnulib.mk (libgnu_a_SOURCES): Remove get-permissions.c and
15552 set-permissions.c, as they don't compile on MinGW.
15553 (gnulib module qcopy-acl): Remove, as it needs set-permissions.c.
15554
15555 2015-05-28 Paul Eggert <eggert@cs.ucla.edu>
15556
15557 Revert my change to gnus-art.el
15558 * lisp/gnus/gnus-art.el (gnus-button-alist): Revert last change.
15559 It wasn't that important, and it caused a Gnus build to fail. See:
15560 http://www.randomsample.de:4456/builders/emacs-devel/builds/734
15561
15562 New minor mode Electric Quote
15563 This lets you easily insert quotes ‘like this’ by typing
15564 quotes `like this', and similarly you can easily insert
15565 quotes “like this” by typing quotes ``like this'' (Bug#20545).
15566 * doc/emacs/basic.texi (Inserting Text):
15567 * doc/emacs/modes.texi (Minor Modes):
15568 * etc/NEWS: Document it.
15569 * doc/emacs/text.texi (Quotation Marks): New section.
15570 * lisp/electric.el (electric-quote-comment)
15571 (electric-quote-string, electric-quote-paragraph):
15572 New custom vars.
15573 (electric--insertable-p)
15574 (electric-quote-post-self-insert-function): New functions.
15575 (electric-quote-mode, electric-quote-local-mode): New minor modes.
15576 * lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
15577 Add curved single quotes to electric-pair-text-pairs.
15578 Set electric-quote-string in this buffer.
15579
15580 A few more doc string fixes (Bug#20385)
15581
15582 Accept curved quotes in doc strings
15583 * lisp/info-look.el (info-lookup-guess-custom-symbol):
15584 (info-lookup-alist): Treat ‘’ like `' when parsing help buffers etc.
15585
15586 Generate curved quotes in pseudo-info nodes
15587 * lisp/info.el (Info-virtual-index-find-node)
15588 (Info-virtual-index, Info-apropos-find-node, info-apropos):
15589 Quote ‘like this’, not `like this', when generating pseudo-info nodes.
15590
15591 Fix minor quoting problems in doc strings
15592 Most of these fixes involve escaping grave accents that are
15593 actually intended to be grave accents, not left quotes.
15594 (Bug#20385)
15595
15596 Support curved quotes in doc strings
15597 Emacs's traditional doc string style has been to quote symbols
15598 `like this'. This worked well on now-obsolete terminals where
15599 ` and ' were symmetric quotes, but nowadays curved quotes
15600 ‘like this’ look better. Support quoting the new way too.
15601 (Bug#20385)
15602 * doc/lispref/tips.texi (Documentation Tips): Symbols can be quoted
15603 ‘like-this’ as well as `like-this'.
15604 * etc/NEWS: Mention this.
15605 * lisp/cedet/mode-local.el (overload-docstring-extension)
15606 (mode-local-print-binding, mode-local-describe-bindings-2):
15607 * lisp/cus-theme.el (describe-theme-1):
15608 * lisp/descr-text.el (describe-text-properties-1, describe-char):
15609 * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
15610 * lisp/emacs-lisp/cl-generic.el (cl--generic-describe):
15611 * lisp/emacs-lisp/eieio-opt.el (eieio-help-class)
15612 (eieio-help-constructor):
15613 * lisp/emacs-lisp/package.el (describe-package-1):
15614 * lisp/faces.el (describe-face):
15615 * lisp/help-fns.el (help-fns--key-bindings)
15616 (help-fns--compiler-macro, help-fns--parent-mode, help-fns--obsolete):
15617 (help-fns--interactive-only, describe-function-1):
15618 (describe-variable):
15619 * lisp/help.el (describe-mode):
15620 * lisp/international/mule-cmds.el (describe-input-method)
15621 (describe-language-environment):
15622 * lisp/international/mule-diag.el (describe-character-set)
15623 (print-coding-system-briefly, list-input-methods)
15624 (list-input-methods-1):
15625 Insert curved quotes rather than grave accent and apostrophe.
15626 * lisp/cedet/srecode/texi.el (srecode-texi-texify-docstring):
15627 * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine)
15628 (checkdoc-proper-noun-region-engine):
15629 * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
15630 (lisp-cl-font-lock-keywords-2):
15631 * lisp/finder.el (finder-font-lock-keywords):
15632 * lisp/gnus/gnus-art.el (gnus-button-alist):
15633 * lisp/help-fns.el (help-do-arg-highlight)
15634 (describe-function-1, describe-variable):
15635 * lisp/help-mode.el (help-xref-symbol-regexp)
15636 (help-xref-info-regexp, help-xref-url-regexp):
15637 * lisp/help.el (describe-mode):
15638 * lisp/international/mule-cmds.el (help-xref-mule-regexp-template):
15639 * lisp/wid-edit.el (widget-documentation-link-regexp):
15640 Parse symbols quoted ‘like-this’ as well as `like-this'.
15641 * lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
15642 Add "‘" and "’" to electric-pair-text-pairs.
15643 (elisp--form-quoted-p): Also allow "‘" as a quoting char.
15644 (elisp-completion-at-point, elisp--preceding-sexp):
15645 Also treat "‘" and "’" as quoting chars.
15646
15647 substitute-command-keys now curves quotes
15648 So, for example, it turns "`abc'" into "‘abc’" (Bug#20385).
15649 * doc/lispref/help.texi (Keys in Documentation):
15650 * etc/NEWS: Document this.
15651 * src/doc.c (Fsubstitute_command_keys): Implement it.
15652
15653 2015-05-28 Glenn Morris <rgm@gnu.org>
15654
15655 * lisp/mail/rmailsum.el (rmail-summary-by-recipients)
15656 (rmail-summary-by-topic, rmail-summary-by-senders):
15657 No longer strip leading/trailing whitespace.
15658
15659 * lisp/progmodes/f90.el (f90-type-def-re): Add "type, extends".
15660 (f90-no-block-limit): Add "enum". (Bug#20680)
15661 * test/automated/f90.el (f90-test-bug20680, f90-test-bug20680b):
15662 New tests.
15663
15664 2015-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15665
15666 * lisp/isearch.el (isearch--current-buffer): Give a default value.
15667 Un-revert changes mistakenly dropped by f9fabb2b.
15668
15669 2015-05-27 Paul Eggert <eggert@cs.ucla.edu>
15670
15671 Merge from gnulib
15672 This incorporates:
15673 2015-05-27 qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
15674 2015-05-27 file-has-acl: Split feature tests again (Bug#20667)
15675 2015-05-27 string: fix build failure on BSD/OSX with FORTIFY_SOURCE
15676 2015-05-26 stdio: limit __gnu_printf__ witness to gcc 4.4+
15677 2015-05-26 inttypes: force correct mingw PRIdMAX even without <stdio.h>
15678 2015-05-26 stdio: fix probe on mingw under gcc 5.1
15679 * admin/merge-gnulib (GNULIB_MODULES):
15680 Replace qacl with qcopy-acl, since we don't need the rest of qacl.
15681 * doc/misc/texinfo.tex, lib/acl-internal.c, lib/acl-internal.h:
15682 * lib/inttypes.in.h, lib/qcopy-acl.c, lib/qset-acl.c:
15683 * lib/string.in.h, m4/acl.m4, m4/stdio_h.m4:
15684 Get latest versions from gnulib.
15685 * lib/get-permissions.c, lib/set-permissions.c: New files.
15686 * lib/gnulib.mk, m4/gnulib-comp.m4:
15687 Regenerate.
15688 * nt/gnulib.mk: Merge lib/gnulib.mk changes by hand.
15689
15690 2015-05-27 Dmitry Gutov <dgutov@yandex.ru>
15691
15692 * lisp/vc/vc-dispatcher.el (vc-setup-buffer): Delete the old
15693 process here.
15694 (vc-do-command): Rather than here (bug#20608).
15695
15696 2015-05-27 Ivan Shmakov <ivan@siamics.net>
15697
15698 Avoid gratuitous delete-dups in face-at-point
15699 * lisp/faces.el (face-at-point): Do not compute the properly
15700 ordered, duplicate-free list if only a single value is
15701 requested anyway. (Bug#20519)
15702
15703 Show the exact C-x 8 RET invocation in describe-char
15704 * lisp/descr-text.el (describe-char): Show the exact C-x 8 RET
15705 invocation instead of a template. (Bug#20522)
15706
15707 2015-05-27 Artur Malabarba <bruce.connor.am@gmail.com>
15708
15709 * lisp/emacs-lisp/package.el: Don't erase tags on refresh.
15710 (package-menu--post-refresh): Call `tabulated-list-print' with the
15711 UPDATE argument. This only affects the refresh action, the revert
15712 action still erases tags.
15713 (package-menu-get-status): Change `assq' to `assoc'.
15714 (package-menu--mark-upgrades-1): New function.
15715 (package-menu--mark-upgrades-pending): New variable.
15716 (package-menu-mark-upgrades): Use them to delay marking until
15717 after refresh is done.
15718 (package-menu--post-refresh): Call mark-upgrades-1 if
15719 mark-upgrades-pending is non-nil.
15720
15721 2015-05-27 Michael Albinus <michael.albinus@gmx.de>
15722
15723 * lisp/net/tramp.el (tramp-handle-make-auto-save-file-name):
15724 Fix typo in "Improve tramp-handle-make-auto-save-file-name"
15725 (commit 3953c4be2816537be95520605d45b866dc731f4b).
15726
15727 2015-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15728
15729 * lisp/isearch.el (isearch--current-buffer): New var.
15730 (isearch-update): Set cursor-sensor-inhibit here.
15731 (isearch-done): Unset cursor-sensor-inhibit in the right buffer
15732 (bug#20532).
15733
15734 Change inhibit-point-motion-hooks to t
15735 * src/textprop.c (syms_of_textprop): Default Vinhibit_point_motion_hooks
15736 to t and document it as obsolete.
15737
15738 2015-05-27 Eli Zaretskii <eliz@gnu.org>
15739
15740 Support ZIP files that use Zip64 extensions
15741 * lisp/arc-mode.el (archive-zip-summarize): Handle the new ZIP
15742 format of central directory offsets used by Zip64 extensions.
15743 (Bug#20665)
15744
15745 2015-05-27 Michael Albinus <michael.albinus@gmx.de>
15746
15747 New test tramp-test30-make-auto-save-file-name
15748 * test/automated/tramp-tests.el
15749 (tramp-test30-make-auto-save-file-name): New test.
15750 (tramp-test31-special-characters)
15751 (tramp-test31-special-characters-with-stat)
15752 (tramp-test31-special-characters-with-perl)
15753 (tramp-test31-special-characters-with-ls, tramp-test32-utf8)
15754 (tramp-test32-utf8-with-stat, tramp-test32-utf8-with-perl)
15755 (tramp-test32-utf8-with-ls, tramp-test33-asynchronous-requests)
15756 (tramp-test34-recursive-load, tramp-test35-unload): Rename.
15757
15758 Improve tramp-handle-make-auto-save-file-name
15759 * lisp/net/tramp.el (tramp-auto-save-directory): Add :tags.
15760 (tramp-handle-make-auto-save-file-name): Let native
15761 `make-auto-save-file-name' use `auto-save-file-name-transforms',
15762 if `tramp-auto-save-directory' is not set.
15763
15764 2015-05-27 Glenn Morris <rgm@gnu.org>
15765
15766 No longer set dired-directory in eshell. (Bug#16477)
15767 * lisp/eshell/esh-mode.el (eshell-mode):
15768 * lisp/eshell/em-dirs.el (eshell/cd): No longer set dired-directory.
15769
15770 * lisp/mail/sendmail.el (mail-position-on-field): Doc fix.
15771
15772 Make c-submit-bug-report file reports at debbugs.gnu.org. (Bug#15784)
15773 * lisp/progmodes/cc-mode.el (c-mode-help-address):
15774 Change to submit@debbugs.
15775 (c-mode-bug-package): New constant.
15776 (mail-position-on-field): Declare.
15777 (c-submit-bug-report): Insert X-Debbugs-Package header.
15778 * doc/misc/cc-mode.texi (Mailing Lists and Bug Reports):
15779 Mention debbugs.gnu.org.
15780
15781 2015-05-26 Glenn Morris <rgm@gnu.org>
15782
15783 * lisp/mail/rmailsum.el: Commas no longer separate regexps. (Bug#19026)
15784 (rmail-summary-by-recipients, rmail-summary-by-topic)
15785 (rmail-summary-by-senders): No longer use mail-comma-list-regexp.
15786 * doc/emacs/rmail.texi (Rmail Make Summary): Update for this change.
15787
15788 2015-05-26 Paul Eggert <eggert@cs.ucla.edu>
15789
15790 Handle curved quotes in info files
15791 * lisp/calc/calc-help.el (calc-describe-thing):
15792 * lisp/info.el (Info-find-index-name)
15793 (Info-try-follow-nearest-node, Info-fontify-node):
15794 * lisp/vc/ediff-help.el (ediff-help-for-quick-help):
15795 In info files, process quotes ‘like this’ the same way we process
15796 quotes `like this'. This catches a few places we missed earlier.
15797
15798 2015-05-26 Dmitry Gutov <dgutov@yandex.ru>
15799
15800 xref-prompt-for-identifier: Use a list value
15801 * lisp/progmodes/xref.el (xref-prompt-for-identifier): Allow list
15802 value, to be interpreted as a list of commands.
15803 (xref--prompt-p): New function.
15804 (xref--read-identifier): Use it.
15805
15806 2015-05-26 Eli Zaretskii <eliz@gnu.org>
15807
15808 Teach MS-Windows font back-end return per-glyph ascent/descent
15809 * src/w32font.h (struct w32_metric_cache): Add ascent and descent
15810 values.
15811 * src/w32font.c (w32font_text_extents): Compute, cache, and
15812 accumulate per-glyph ascent and descent values, instead of copying
15813 global values from the font. If the values are not available from
15814 the font data, i.e., non-TTF fonts, fall back on font-global values.
15815 (compute_metrics): Compute and return per-glyph ascent and descent
15816 values, if returned by GetGlyphOutlineW, falling back on
15817 font-global values. (Bug#20628)
15818 * src/w32term.c (w32_draw_rectangle): Add 1 pixel to width and
15819 height of rectangle to be drawn, to be compatible with
15820 XDrawRectangle. Fixes glyphless-char display as hex codes in a
15821 box, when per-glyph ascent/descent values are used.
15822
15823 2015-05-26 Artur Malabarba <bruce.connor.am@gmail.com>
15824
15825 * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):
15826 Don't sort if sorter is nil.
15827
15828 2015-05-26 Michael Albinus <michael.albinus@gmx.de>
15829
15830 Fix Bug#20621
15831 * lisp/net/tramp-sh.el (tramp-set-auto-save): Remove it. There
15832 are major modes which set `auto-save-mode' on their own rules;
15833 Tramp shall not overwrite such settings.
15834
15835 2015-05-26 Glenn Morris <rgm@gnu.org>
15836
15837 * lisp/desktop.el: If modes aren't autoloaded, try simple guesswork.
15838 (desktop-load-file): Guess that "foobar" defines "foobar-mode".
15839 (desktop-buffer-mode-handlers, desktop-minor-mode-handlers):
15840 Doc updates.
15841 (vc-dir-mode): Remove unnecessary autoload.
15842
15843 2015-05-25 Philipp Stephani <phst@google.com>
15844
15845 * lisp/term/xterm.el: Add gui-get-selection support via OSC-52.
15846 (xterm--extra-capabilities-type): Add `getSelection'.
15847 (xterm--query): Add `no-async' argument.
15848 (xterm--init-activate-get-selection): New function.
15849 (terminal-init-xterm): Use it.
15850 (xterm--init-modify-other-keys): Rename from
15851 terminal-init-xterm-modify-other-keys.
15852 (xterm--init-bracketed-paste-mode): Rename from
15853 terminal-init-xterm-bracketed-paste-mode.
15854 (xterm--init-activate-set-selection): Rename from
15855 terminal-init-xterm-activate-set-selection.
15856 (xterm--selection-char): New function.
15857 (gui-backend-set-selection): Use it. Use the &context to only apply
15858 this method in terminals where we enabled the feature.
15859 (gui-backend-get-selection): New method.
15860
15861 2015-05-25 Daniel Colascione <dancol@dancol.org>
15862
15863 * lisp/progmodes/cc-langs.el (c-constant-kwds): Add C-language
15864 keyword constants to C++.
15865
15866 2015-05-25 Paul Eggert <eggert@cs.ucla.edu>
15867
15868 Make TAGS files more portable to MS-Windows
15869 * etc/NEWS: Document this.
15870 * lib-src/etags.c (readline_internal) [DOS_NT]:
15871 Don't treat CRs differently from GNUish hosts.
15872 * lisp/progmodes/etags.el (etags-goto-tag-location):
15873 Adjust STARTPOS to account for the skipped CRs in dos-style files.
15874
15875 2015-05-25 Michael Albinus <michael.albinus@gmx.de>
15876
15877 Improve fix of bug#20634 in tramp-sh.el
15878
15879 2015-05-25 Eli Zaretskii <eliz@gnu.org>
15880
15881 Fix a typo in last commit
15882 * lib-src/etags.c (C_entries): Fix a typo.
15883 * test/etags/ETAGS.good_1:
15884 * test/etags/ETAGS.good_2:
15885 * test/etags/ETAGS.good_3:
15886 * test/etags/ETAGS.good_4:
15887 * test/etags/ETAGS.good_5:
15888 * test/etags/CTAGS.good: Update due to the change in etags.c.
15889
15890 Fix tagging of class members in C-like OO languages
15891 * lib-src/etags.c (longopts): Add new option --class-qualify and
15892 its shorthand -Q.
15893 (print_help): Add help text for --class-qualify.
15894 (main): Add handling of -Q.
15895 (consider_token, C_entries) <omethodparm>: Append argument types
15896 to Objective C methods only if --class-qualify was specified.
15897 Qualify C++, Objective C, and Java class members with their class
15898 names only if --class-qualify was specified.
15899 (C_entries): If --class-qualify was not specified, remove the
15900 namespace and class qualifiers from tag names of C++ methods.
15901 This allows to use etags.el as xref back-end without the
15902 tag-symbol-match-p method, which greatly increases the number of
15903 potentially false positives. (Bug#20629)
15904 * doc/man/etags.1: Update to document the new --class-qualify
15905 option.
15906 * test/etags/ETAGS.good_1:
15907 * test/etags/ETAGS.good_2:
15908 * test/etags/ETAGS.good_3:
15909 * test/etags/ETAGS.good_4:
15910 * test/etags/ETAGS.good_5:
15911 * test/etags/CTAGS.good: Update due to changes in etags.c.
15912
15913 2015-05-25 Stefan Monnier <monnier@iro.umontreal.ca>
15914
15915 (cl-generic-define-method): Side effects are evil (bug#20644)
15916 * lisp/emacs-lisp/cl-generic.el (cl-generic-define-method): Don't reuse
15917 cons-cells that might be used as keys in an `equal' hash-table.
15918
15919 2015-05-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
15920
15921 Make erc timestamps visible again
15922 * lisp/erc/erc-stamp.el (erc-munge-invisibility-spec):
15923 Make timestamps visible again (if requested).
15924
15925 2015-05-25 Eli Zaretskii <eliz@gnu.org>
15926
15927 Fix last change in etags.c that broke tagging compresed files
15928 * lib-src/etags.c (process_file_name) [MSDOS || DOS_NT]: Fix
15929 quoting of decompression shell command for MS-Windows/MS-DOS.
15930
15931 2015-05-25 Stefan Monnier <monnier@iro.umontreal.ca>
15932
15933 * lisp/emacs-lisp/cl-macs.el (cl-tagbody): Scope cl--tagbody-alist.
15934 (Bug#20639)
15935
15936 2015-05-25 Michael Albinus <michael.albinus@gmx.de>
15937
15938 * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer):
15939 Fix typo in "Inhibit `epa-file-handler' in Tramp"
15940 (commit 89035e247591c8d688fce922b7079881aa110f33).
15941
15942 2015-05-25 Orivej Desh <orivej@gmx.fr> (tiny change)
15943
15944 Fix IPv6 addresses in Tramp
15945 * lisp/net/tramp-sh.el (tramp-make-copy-program-file-name):
15946 Add square brackets around host name.
15947
15948 2015-05-25 Michael Albinus <michael.albinus@gmx.de>
15949
15950 Inhibit `epa-file-handler' in Tramp (Bug#20634)
15951 * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer)
15952 (tramp-sh-handle-insert-file-contents-literally): Inhibit also
15953 `epa-file-handler'.
15954
15955 2015-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
15956
15957 * lisp/emacs-lisp/pcase.el: Use PAT rather than UPAT in docstring.
15958 (pcase-let): Document the behavior in case the pattern doesn't match.
15959
15960 2015-05-24 Artur Malabarba <bruce.connor.am@gmail.com>
15961
15962 * lisp/emacs-lisp/tabulated-list.el: New optional print method.
15963 (tabulated-list-print): New optional argument, UPDATE. If
15964 non-nil, the list is printed by only adding and deleting the
15965 changed entries, instead of erasing the whole buffer. This method
15966 is much faster when few or no entries have changed.
15967 * doc/lispref/modes.texi (Tabulated List Mode): Document it.
15968 * etc/NEWS: Document it.
15969
15970 * lisp/emacs-lisp/tabulated-list.el: Improve printing.
15971 (tabulated-list--get-sorter): New function.
15972 (tabulated-list-print): Restore window-line when remember-pos is
15973 passed and optimize away the `nreverse'.
15974
15975 2015-05-24 Paul Eggert <eggert@cs.ucla.edu>
15976
15977 Simpilify etags TEX mode scanning
15978 * lib-src/etags.c (TEX_mode, TEX_esc, TEX_opgrp, TEX_clgrp):
15979 Remove static vars.
15980 (TeX_commands): Deduce escapes here instead.
15981 (TEX_LESC, TEX_SESC, TEX_mode): Remove; all uses removed.
15982 This removes the need for a reset_input call.
15983
15984 Improve etags I/O error reporting
15985 * lib-src/etags.c:
15986 Don't include sys/types.h and sys/stat.h; no longer needed.
15987 (infilename): New static var.
15988 (process_file_name): Don't call 'stat'. Instead, just open the
15989 file for reading and report any errors. Don't bother making
15990 a copy of the file argument; it's not needed. Be more careful to
15991 use the failing errno when reporting an error.
15992 Quote the real name better (though no perfectly)
15993 when passing it to the shell.
15994 (reset_input): New function, which reports I/O errors.
15995 All uses of 'rewind' changed to use this function.
15996 (perhaps_more_input): New function, which also checks for
15997 I/O errors. All uses of 'feof' changed to use this function.
15998 (analyze_regex): Report an error if fclose fails.
15999 (readline_internal): Report an error if getc fails.
16000 (etags_mktmp): Return an error if close fails.
16001
16002 etags.c: avoid side effects in 'if'
16003 * lib-src/etags.c (process_file_name, Perl_functions)
16004 (TEX_decode_env): Hoist side effects into previous statement.
16005
16006 .gitignore tweaks
16007 * .gitignore: Ignore all *.stamp files. Sort.
16008 Ignore [0-9]*.txt (commonly used name for git patches)
16009 and /vc-dwim-log-* (vc-dwim temporary).
16010
16011 2015-05-24 Eli Zaretskii <eliz@gnu.org>
16012
16013 Fix last change in etags.c, which failed the test suite
16014 * lib-src/etags.c (intoken): Add '$' to the set, as it was there
16015 before the last change.
16016
16017 2015-05-23 Glenn Morris <rgm@gnu.org>
16018
16019 Remove charset map files from repository, generate in first bootstrap
16020 * admin/charsets/Makefile.in (${srcdir}/charsets.stamp): New.
16021 (all): Create the stamp file.
16022 (extraclean): Delete the stamp file.
16023 * src/Makefile.in (lispintdir, charsets): New variables.
16024 (${lispintdir}/cp51932.el, ${lispintdir}/eucjp-ms.el, ${charsets}):
16025 New rules.
16026 (emacs$(EXEEXT), temacs$(EXEEXT)): Depend on $charsets.
16027 * lisp/international/cp51932.el, lisp/international/eucjp-ms.el:
16028 * etc/charsets/*.map: Remove from repository.
16029
16030 2015-05-23 Paul Eggert <eggert@cs.ucla.edu>
16031
16032 Cleanup etags.c to use locale-independent code
16033 Although this doesn't alter behavior (as etags doesn't use
16034 setlocale), the new version is more clearly locale-independent and
16035 the executable is a bit smaller on my platform.
16036 * lib-src/etags.c: Include <limits.h>, for UCHAR_MAX.
16037 Include <c-ctype.h> instead of <ctype.h>.
16038 (CHARS, CHAR, init, _wht, _nin, _itk, _btk, _etk, white, nonam, endtk)
16039 (begtk, midtk):
16040 Remove; no longer needed.
16041 (iswhite, ISALNUM, ISALPHA, ISDIGIT, ISLOWER, lowcase): Remove.
16042 All callers changed to use c_isspace, c_isalnum, c_isalpha, c_isdigit,
16043 c_islower, c_tolower, respectively.
16044 (notinname, begtoken, intoken, endtoken): Rewrite as functions
16045 instead of macros, and initialize the tables at compile-time
16046 rather than at run-time.
16047
16048 Put default action first in src/Makefile
16049 * src/Makefile.in (all): Put this rule before lisp.mk.
16050 That way, plain 'make' works in the src directory again.
16051
16052 2015-05-23 Glenn Morris <rgm@gnu.org>
16053
16054 * Makefile.in: Fix extraclean rule.
16055 (extraclean_dirs): New.
16056 (extraclean): Use it.
16057
16058 2015-05-23 Eli Zaretskii <eliz@gnu.org>
16059
16060 Avoid compiler warning in image.c on MS-Windows
16061 * src/w32term.h (x_query_color): Add prototype, to avoid compiler
16062 warning in image.c.
16063
16064 2015-05-23 Glenn Morris <rgm@gnu.org>
16065
16066 Fix --without-toolkit-scroll-bars builds.
16067 * src/xterm.c (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]:
16068 Add new argument to x_clear_area1.
16069 (XTset_horizontal_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16070 Update x_clear_area arguments.
16071
16072 * admin/charsets/glibc/: New directory, imported from glibc 2.21.
16073 * admin/charsets/Makefile.in (GLIBC_CHARMAPS):
16074 Change to included version.
16075 (LOCAL, local, totalclean): Remove.
16076 (extraclean): Delete all generated files.
16077
16078 2015-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
16079
16080 * lisp/pcmpl-cvs.el (pcmpl-cvs-entries): Don't assume
16081 CVS/Entries exists.
16082
16083 * lisp/progmodes/xref.el (xref-find-apropos): Use read-string.
16084
16085 * lisp/progmodes/etags.el (tags-completion-at-point-function):
16086 Don't trust the find-tag function.
16087
16088 2015-05-23 Paul Eggert <eggert@cs.ucla.edu>
16089
16090 Pacify --enable-gcc-warnings
16091 * src/frame.h (x_query_color): Remove redundant extern decl.
16092 * src/ftcrfont.c (ftcrfont_glyph_extents, ftcrfont_list)
16093 (ftcrfont_match, ftcrfont_open, ftcrfont_close)
16094 (ftcrfont_text_extents, ftcrfont_draw):
16095 * src/xterm.c (x_set_window_size_1, *x_color_cells, x_update_end)
16096 (XTframe_up_to_date, x_clear_area1, x_clear_frame)
16097 (x_ins_del_lines, frame_highlight, frame_unhighlight)
16098 (x_new_focus_frame, x_focus_changed, XTframe_rehighlight)
16099 (x_draw_hollow_cursor, x_draw_bar_cursor, x_flush, x_update_begin)
16100 (x_update_window_begin, x_connection_closed)
16101 (x_set_clip_rectangles, x_reset_clip_rectangles, x_fill_rectangle)
16102 (x_draw_rectangle, x_fill_trapezoid_for_relief, x_clear_window)
16103 (*x_gc_get_ext_data, x_extension_initialize)
16104 (x_cr_accumulate_data):
16105 Remove redundant static decl. Many of these GCC doesn't complain
16106 about, but we might as well clean out the duplication while we're
16107 in the neighborhood.
16108 * src/xterm.c (x_fill_trapezoid_for_relief):
16109 Remove decl of nonexistent function.
16110
16111 2015-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
16112
16113 Replace gui-method macros with cl-generic with &context
16114 * lisp/frame.el (gui-method--name, gui-method, gui-method-define)
16115 (gui-method-declare, gui-call): Remove.
16116 (frame-creation-function): Use cl-defgeneric.
16117 (make-frame): Adjust callers.
16118 * lisp/menu-bar.el (menu-bar-edit-menu):
16119 Use gui-backend-selection-exists-p.
16120 * lisp/select.el (x-get-clipboard): Use gui-backend-get-selection.
16121 (gui-backend-get-selection): New cl-generic to replace
16122 gui-get-selection method.
16123 (gui-backend-set-selection): New cl-generic to replace
16124 gui-set-selection method.
16125 (gui-selection-owner-p): New cl-generic to replace
16126 gui-selection-owner-p method.
16127 (gui-backend-selection-exists-p): New cl-generic to replace
16128 gui-selection-exists-p method. Adjust all callers.
16129 * lisp/server.el (server-create-window-system-frame): Don't ignore
16130 window-system spec even when unsupported.
16131 * lisp/simple.el (deactivate-mark): Use new gui-backend-* functions.
16132 * lisp/startup.el (handle-args-function, window-system-initialization):
16133 Use cl-defgeneric.
16134 (command-line): Adjust calls accordingly.
16135 * lisp/term/ns-win.el (ns-window-system-initialization): Turn into
16136 a window-system-initialization method.
16137 (handle-args-function, frame-creation-function): Use cl-defmethod.
16138 (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
16139 (gui-get-selection): Use cl-defmethod on the new functions instead.
16140 * lisp/term/pc-win.el (w16-get-selection-value): Turn into
16141 a gui-backend-get-selection method.
16142 (gui-selection-exists-p, gui-selection-owner-p, gui-set-selection):
16143 Use cl-defmethod on the new functions instead.
16144 (msdos-window-system-initialization): Turn into
16145 a window-system-initialization method.
16146 (frame-creation-function, handle-args-function): Use cl-defmethod.
16147 * lisp/term/w32-win.el (w32-window-system-initialization): Turn into
16148 a window-system-initialization method.
16149 (handle-args-function, frame-creation-function): Use cl-defmethod.
16150 (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
16151 (gui-get-selection): Use cl-defmethod on the new functions instead.
16152 * lisp/term/x-win.el (x-window-system-initialization): Turn into
16153 a window-system-initialization method.
16154 (handle-args-function, frame-creation-function): Use cl-defmethod.
16155 (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
16156 (gui-get-selection): Use cl-defmethod on the new functions instead.
16157 * lisp/term/xterm.el (xterm--set-selection): Turn into
16158 a gui-backend-set-selection method.
16159 * src/nsselect.m (Fns_selection_exists_p): Remove unused arg `terminal'.
16160 (Fns_selection_owner_p): Remove unused arg `terminal'.
16161 (Fns_get_selection): Remove unused args `time_stamp' and `terminal'.
16162
16163 2015-05-23 Eli Zaretskii <eliz@gnu.org>
16164
16165 Revert "Fix etags Bug#20629 that broke C++ support"
16166 This reverts commit 13dd9d4f7e75d2c78aa5537cef09de03663e9748.
16167
16168 2015-05-23 Jan D <jan.h.d@swipnet.se>
16169
16170 Fix etags Bug#20629 that broke C++ support
16171 * lisp/progmodes/etags.el (etags-xref-find-definitions-tag-order):
16172 Revert commit from Sun May 10 (Bug#20629).
16173
16174 Merge branch 'cairo'.
16175 Main work done by YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>.
16176 Small fixes and image work by Jan D. <jan.h.d@swipnet.se>.
16177
16178 Merge branch 'master' into cairo
16179
16180 Fixes to compile cairo branch without cairo
16181 * src/gtkutil.c (xg_update_scrollbar_pos): x_clear_area takes frame as
16182 first argument.
16183 * src/xterm.c (handle_one_xevent): Surround x_cr_destroy_surface with
16184 USE_CAIRO.
16185
16186 2015-05-23 Artur Malabarba <bruce.connor.am@gmail.com>
16187
16188 * lisp/emacs-lisp/package.el: Always update selected-packages.
16189 (package--update-selected-packages): New function.
16190 (package-menu-execute): Use it before starting the transaction,
16191 this way the list of selected packages is updated even when the
16192 transaction fails.
16193 (package-menu--perform-transaction): Don't edit selected-packages.
16194
16195 2015-05-23 Eli Zaretskii <eliz@gnu.org>
16196
16197 Fix etags reading of compressed files
16198 * lib-src/etags.c (O_CLOEXEC) [WINDOWSNT]: Define.
16199 Include fcntl.h, for O_CLOEXEC.
16200 (process_file_name): Don't use 'popen', whose streams cannot be
16201 rewound. Instead, uncompress the file to a temporary file,
16202 created by 'etags_mktmp', and read from that as usual.
16203 (etags_mktmp): New function.
16204 * test/etags/ETAGS.good_1:
16205 * test/etags/ETAGS.good_2:
16206 * test/etags/ETAGS.good_3:
16207 * test/etags/ETAGS.good_4:
16208 * test/etags/ETAGS.good_5: Update to be consistent with latest
16209 changes in etags.c regarding reading compressed files.
16210
16211 Improve documentation of 'set-fontset-font'
16212 * doc/lispref/display.texi (Fontsets): Document the value of nil
16213 for the 3rd argument of 'set-fontset-font'.
16214
16215 Fix documentation of forward-line
16216 * src/cmds.c (Fforward_line): Clarify the return value if the line
16217 at end of accessible portion of the buffer has no newline.
16218 * doc/lispref/positions.texi (Text Lines): Document what happens
16219 if the line at end of accessible portion of buffer has no newline.
16220 (Bug#20587)
16221
16222 2015-05-22 Glenn Morris <rgm@gnu.org>
16223
16224 * admin/charsets/Makefile.in (TRANS_TABLE): Add short aliases.
16225
16226 * admin/charsets/mapconv (LC_ALL): Set to C.
16227
16228 * Makefile.in: Add admin/charsets into top-level clean rules.
16229 (clean): Add admin/charsets.
16230 (maybeclean_dirs): New variable.
16231 (distclean, bootstrap-clean, maintainer-clean): Use $maybeclean_dirs.
16232
16233 * admin/charsets/Makefile.in (LOCAL, local): Fix members.
16234
16235 2015-05-22 Artur Malabarba <bruce.connor.am@gmail.com>
16236
16237 * lisp/emacs-lisp/package.el (package-selected-packages): Fix doc.
16238
16239 2015-05-22 Glenn Morris <rgm@gnu.org>
16240
16241 Generate admin/charsets Makefile via configure, and make more portable
16242 * configure.ac (SUBDIR_MAKEFILES): Add admin/charsets/Makefile.
16243 (admin/charsets/Makefile): Generate it.
16244 * admin/charsets/Makefile.in: Rename from Makefile.
16245 (AWK, srcdir, top_srcdir, AM_DEFAULT_VERBOSITY):
16246 New variables, set by configure.
16247 (charsetdir, lispintdir, mapfiledir, AM_V_GEN, am__v_GEN_)
16248 (am__v_GEN_0, am__v_GEN_1, AM_V_at, am__v_at_, am__v_at_0)
16249 (am__v_at_1, LOCAL, mapconv, run_mapconv, big5, compact, cp51932)
16250 (cp932, eucjp_ms, gb180302, gb180304, kuten): New variables.
16251 (TRANS_TABLE, CHARSETS): Add directory prefix to value.
16252 (all): Declare PHONY.
16253 (local): New PHONY target.
16254 (map_template): New template. Use to define short PHONY aliases.
16255 (*.map): Add directory prefixes to targets and prerequisites.
16256 Respect make verbosity.
16257 (JISC6226.map): Replace non-portable sed append without newline.
16258 (install): Remove rule.
16259 (clean): Only delete temporary sedscript.
16260 (bootstrap-clean, distclean, maintainer-clean, extraclean)
16261 (totalclean): New PHONY rules.
16262 * admin/charsets/mapconv (BASE): Replace basename with expr.
16263 (FILE): Add "mapfiles" subdirectory.
16264 (AWK): New variable. Use throughout in place of "awk".
16265 (main): Use "gunzip -c" in place of "zcat".
16266 Don't leave whitespace before "p", for older sed.
16267 * admin/charsets/mapfiles/PTCP154: Add final newline,
16268 to make older sed versions happy.
16269
16270 2015-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16271
16272 * lisp/autorevert.el: Use lexical-binding. Fix hook usage.
16273 (global-auto-revert-ignore-buffer, auto-revert-notify-modified-p)
16274 (auto-revert-notify-watch-descriptor): Use defvar-local.
16275 (find-file-hook, auto-revert-tail-mode)
16276 (auto-revert-notify-add-watch): Use setq-local.
16277 (auto-revert-notify-add-watch): Don't call make-local-variable on
16278 kill-buffer-hook (bug#20601).
16279
16280 2015-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
16281
16282 Change defgeneric so it doesn't completely redefine the function
16283 * lisp/emacs-lisp/cl-generic.el (cl-generic-define): Don't throw away
16284 previously defined methods.
16285 (cl-generic-define-method): Let-bind purify-flag instead of
16286 using `fset'.
16287 (cl--generic-prefill-dispatchers): Only define during compilation.
16288 (cl-method-qualifiers): Remove redundant alias.
16289 (help-fns-short-filename): Silence byte-compiler.
16290 * test/automated/cl-generic-tests.el:
16291 Adjust to new defgeneric semantics.
16292
16293 2015-05-21 Artur Malabarba <bruce.connor.am@gmail.com>
16294
16295 * lisp/emacs-lisp/package.el (package-menu-execute):
16296 Remove reference to remove-dups.
16297
16298 2015-05-21 kwhite <kwhite@gnu.org>
16299
16300 * lisp/erc/erc.el: Hide network/channel messages.
16301 (erc-network-hide-list, etc-channel-hide-list): New lists to define
16302 message types per network/channel.
16303 (erc-add-targets): New function to parse list of targets.
16304 (erc-hide-current-message-p): Modified to check for new targets.
16305
16306 2015-05-21 Paul Eggert <eggert@cs.ucla.edu>
16307
16308 Don't quote nil and t in doc strings
16309 This is as per "Tips for Documentation Strings" in the elisp manual.
16310 For consistency, do the same in diagnostics and comments.
16311
16312 2015-05-21 Eli Zaretskii <eliz@gnu.org>
16313
16314 Fix a minor problem with mouse-face on mode line
16315 * src/xdisp.c (note_mode_line_or_margin_highlight): Reset the
16316 mouse face also if the mouse pointer hovers above mode-line glyphs
16317 that don't come from any Lisp string. (Bug#20620)
16318
16319 2015-05-21 Artur Malabarba <bruce.connor.am@gmail.com>
16320
16321 * lisp/emacs-lisp/package.el: Fix selected-package logic.
16322 (package-menu-execute): Mark as selected all non-upgrade packages
16323 being installed.
16324 (package-menu--perform-transaction): Don't mark anything.
16325
16326 * lisp/emacs-lisp/package.el: Mode-line progress report.
16327 (package-menu--transaction-status): New variable.
16328 (package-menu-mode, package-menu--perform-transaction): Use it.
16329
16330 * lisp/emacs-lisp/package.el: Better transaction messages.
16331 (package-menu--partition-transaction): New function.
16332 (package-menu--prompt-transaction-p, package-menu-execute):
16333 Use it.
16334 (package-menu--perform-transaction): Don't do any messaging.
16335
16336 * lisp/emacs-lisp/package.el: Revert async package transactions.
16337 (package-menu-async): Update doc.
16338 (package-install-from-archive, package-download-transaction)
16339 (package-install, package-menu--perform-transaction)
16340 (package-menu-execute): Remove asynchronous functionality.
16341
16342 2015-05-21 Paul Eggert <eggert@cs.ucla.edu>
16343
16344 Revert doc string changes to f90.el
16345 Problem reported by Glenn Morris in:
16346 http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00596.html
16347 * lisp/progmodes/f90.el (f90-mode, f90-abbrev-start):
16348 Revert recent changes to doc strings, as it's intended that they
16349 use grave accent, not quote.
16350
16351 2015-05-20 Bozhidar Batsov <bozhidar@batsov.com>
16352
16353 * lisp/emacs-lisp/subr-x.el (hash-table-empty-p):
16354 Improve parameter name.
16355
16356 * lisp/emacs-lisp/subr-x.el (hash-table-empty-p): New inline function.
16357
16358 2015-05-20 Paul Eggert <eggert@cs.ucla.edu>
16359
16360 Don't require help-fns when not needed
16361 * lisp/emacs-lisp/autoload.el, lisp/emacs-lisp/advice.el:
16362 * lisp/emacs-lisp/elint.el:
16363 Don't require help-fns at the top level
16364 * lisp/emacs-lisp/advice.el (ad-arglist):
16365 * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
16366 Don't require help-fns. (Bug#17001)
16367
16368 2015-05-20 Eli Zaretskii <eliz@gnu.org>
16369
16370 Fix slash collapsing in etags on MS-Windows
16371 * lib-src/etags.c (canonicalize_filename) [DOS_NT]: Separate the
16372 MS-Windows code from the Posix code, and support collapsing both
16373 forward- and back-slashes on MS-Windows. Fixes a regression found
16374 by the test suite.
16375
16376 Improve documentation of glyphless-char-display
16377 * doc/lispref/display.texi (Glyphless Chars): Improve
16378 documentation of glyphless character display.
16379
16380 Fix "acronym" display of glyphless characters on w32
16381 * src/w32term.c (x_draw_glyphless_glyph_string_foreground): Don't
16382 ignore "acronym" substitutes of 1 character for glyphless characters.
16383
16384 2015-05-20 Oleh Krehel <ohwoeowho@gmail.com>
16385
16386 Add an automated test for let-when-compile
16387 * test/automated/subr-tests.el (let-when-compile): New test.
16388
16389 Add let-when-compile macro instead of using pcase-let
16390 * lisp/subr.el (let-when-compile): New let-like macro that makes its
16391 bindings known to macros like `eval-when-compile' in the body.
16392 * lisp/emacs-lisp/lisp-mode.el: Change the top-level `pcase-let' to
16393 a `let-when-compile'. Also comment out the unused lexical var
16394 `el-kws-re'.
16395 The change greatly improves readability, while providing almost the
16396 same (even shorter) byte code: instead of pre-evaluating 10 variables,
16397 tossing them into a list, and destructuring that list a full screen
16398 page later, the variables are simply bound as they are evaluated,
16399 wrapped individually in `eval-when-compile'.
16400
16401 2015-05-20 Artur Malabarba <bruce.connor.am@gmail.com>
16402
16403 * lisp/emacs-lisp/package.el: "Delete" button in Help buffer.
16404 (package-delete-button-action): New function.
16405 (describe-package-1): Add Delete button.
16406
16407 * lisp/emacs-lisp/package.el: Better dependency description.
16408 (package--used-elsewhere-p): New optional arg, ALL, and return
16409 package-desc objects instead of names.
16410 (package-delete): Update accordingly.
16411 (describe-package-1): Describe which packages require the package.
16412
16413 2015-05-20 Martin Rudalics <rudalics@gmx.at>
16414
16415 Fix handling and doc-string of FRAME arg of `other-buffer' (Bug#20533)
16416 * src/buffer.c (Fother_buffer): Argument FRAME must denote a live frame.
16417 Fix doc-string.
16418
16419 Improve `switch-to-buffer' in strongly dedicated windows (Bug#20472)
16420 * lisp/window.el (switch-to-buffer-in-dedicated-window): New option.
16421 (switch-to-buffer): If the selected window is strongly dedicated
16422 to its buffer, signal error before prompting for buffer name.
16423 Handle `switch-to-buffer-in-dedicated-window'.
16424 * doc/lispref/windows.texi (Switching Buffers):
16425 Document `switch-to-buffer-in-dedicated-window'.
16426
16427 2015-05-19 Paul Eggert <eggert@cs.ucla.edu>
16428
16429 Prefer "this" to “this” in doc strings
16430 This mostly just straightens quotes introduced in my previous patch.
16431 Suggested by Dmitry Gutov in:
16432 http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00565.html
16433 * lisp/faces.el, lisp/gnus/gnus-group.el, lisp/ldefs-boot.el:
16434 * lisp/mail/supercite.el, lisp/net/tramp.el, lisp/recentf.el:
16435 * lisp/textmodes/artist.el, lisp/textmodes/rst.el:
16436 * lisp/textmodes/tildify.el, lisp/vc/ediff-util.el:
16437 * lisp/vc/log-edit.el, lisp/xt-mouse.el:
16438 Prefer straight double quotes to curved double quotes in doc strings.
16439
16440 Fix minor quoting problems in doc strings
16441 These were glitches regardless of how or whether we tackle the
16442 problem of grave accent in doc strings.
16443 * lisp/calc/calc-aent.el (math-restore-placeholders):
16444 * lisp/ido.el (ido-ignore-buffers, ido-ignore-files):
16445 * lisp/leim/quail/cyrillic.el ("bulgarian-alt-phonetic"):
16446 * lisp/leim/quail/hebrew.el ("hebrew-new")
16447 ("hebrew-biblical-sil"):
16448 * lisp/leim/quail/thai.el ("thai-kesmanee"):
16449 * lisp/progmodes/idlw-shell.el (idlwave-shell-file-name-chars):
16450 Used curved quotes to avoid ambiguities like ‘`''’ in doc strings.
16451 * lisp/calendar/calendar.el (calendar-month-abbrev-array):
16452 * lisp/cedet/semantic/mru-bookmark.el (semantic-mrub-cache-flush-fcn):
16453 * lisp/cedet/semantic/symref.el (semantic-symref-tool-baseclass):
16454 * lisp/cedet/semantic/tag.el (semantic-tag-copy)
16455 (semantic-tag-components):
16456 * lisp/cedet/srecode/cpp.el (srecode-semantic-handle-:cpp):
16457 * lisp/cedet/srecode/texi.el (srecode-texi-texify-docstring):
16458 * lisp/emacs-lisp/byte-opt.el (byte-optimize-all-constp):
16459 * lisp/emacs-lisp/checkdoc.el (checkdoc-message-text-engine):
16460 * lisp/emacs-lisp/generator.el (iter-next):
16461 * lisp/gnus/gnus-art.el (gnus-treat-strip-list-identifiers)
16462 (gnus-article-mode-syntax-table):
16463 * lisp/net/rlogin.el (rlogin-directory-tracking-mode):
16464 * lisp/net/soap-client.el (soap-wsdl-get):
16465 * lisp/net/telnet.el (telnet-mode):
16466 * lisp/org/org-compat.el (org-number-sequence):
16467 * lisp/org/org.el (org-remove-highlights-with-change)
16468 (org-structure-template-alist):
16469 * lisp/org/ox-html.el (org-html-link-org-files-as-html):
16470 * lisp/play/handwrite.el (handwrite-10pt, handwrite-11pt)
16471 (handwrite-12pt, handwrite-13pt):
16472 * lisp/progmodes/f90.el (f90-mode, f90-abbrev-start):
16473 * lisp/progmodes/idlwave.el (idlwave-mode, idlwave-check-abbrev):
16474 * lisp/progmodes/verilog-mode.el (verilog-tool)
16475 (verilog-string-replace-matches, verilog-preprocess)
16476 (verilog-auto-insert-lisp, verilog-auto-insert-last):
16477 * lisp/textmodes/makeinfo.el (makeinfo-options):
16478 * src/font.c (Ffont_spec):
16479 Fix minor quoting problems in doc strings, e.g., missing quote,
16480 ``x'' where `x' was meant, etc.
16481 * lisp/erc/erc-backend.el (erc-process-sentinel-2):
16482 Fix minor quoting problem in other string.
16483 * lisp/leim/quail/ethiopic.el ("ethiopic"):
16484 * lisp/term/tvi970.el (tvi970-set-keypad-mode):
16485 Omit unnecessary quotes.
16486 * lisp/faces.el (set-face-attribute, set-face-underline)
16487 (set-face-inverse-video, x-create-frame-with-faces):
16488 * lisp/gnus/gnus-group.el (gnus-group-nnimap-edit-acl):
16489 * lisp/mail/supercite.el (sc-attribs-%@-addresses)
16490 (sc-attribs-!-addresses, sc-attribs-<>-addresses):
16491 * lisp/net/tramp.el (tramp-methods):
16492 * lisp/recentf.el (recentf-show-file-shortcuts-flag):
16493 * lisp/textmodes/artist.el (artist-ellipse-right-char)
16494 (artist-ellipse-left-char, artist-vaporize-fuzziness)
16495 (artist-spray-chars, artist-mode, artist-replace-string)
16496 (artist-put-pixel, artist-text-see-thru):
16497 * lisp/vc/ediff-util.el (ediff-submit-report):
16498 * lisp/vc/log-edit.el (log-edit-changelog-full-paragraphs):
16499 Use double-quotes rather than TeX markup in doc strings.
16500 * lisp/skeleton.el (skeleton-pair-insert-maybe):
16501 Reword to avoid the need for grave accent and apostrophe.
16502 * lisp/xt-mouse.el (xterm-mouse-tracking-enable-sequence):
16503 Don't use grave and acute accents to quote.
16504
16505 2015-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16506
16507 * lisp/emacs-lisp/generator.el (cps--gensym, cps--transform-1):
16508 Silence compiler.
16509
16510 2015-05-19 Paul Eggert <eggert@cs.ucla.edu>
16511
16512 Try to port new etags tests to MS-Windows
16513 * test/etags/CTAGS.good, test/etags/ETAGS.good_1:
16514 * test/etags/ETAGS.good_2, test/etags/ETAGS.good_3:
16515 * test/etags/ETAGS.good_4, test/etags/ETAGS.good_5:
16516 Adjust to test-case changes below.
16517 * test/etags/Makefile (CSRC): Remove dostorture.c.
16518 Whatever it was trying to test, wasn't working portably.
16519 (LC_ALL): Remove. Apparently there wasn't an encoding problem,
16520 just a line-ending problem.
16521 * test/etags/c-src/dostorture.c: Remove.
16522 * test/etags/cp-src/c.C: Remove stray CR.
16523 * test/etags/html-src/algrthms.html: Remove trailing CRs.
16524 State UTF-8 as the encoding. The file is ASCII so it doesn't matter,
16525 but if someone edits it later it should stay UTF-8-compatible.
16526
16527 2015-05-19 Eli Zaretskii <eliz@gnu.org>
16528
16529 Fix display of overlapping window-specific overlays
16530 * src/keyboard.c (adjust_point_for_property): When adjusting point
16531 due to display strings, ignore overlays that are specific to
16532 windows other than the currently selected one.
16533 * src/xdisp.c (handle_single_display_spec): If the display
16534 property comes from an overlay, arrange for buffer iteration to
16535 resume only after the end of that overlay. (Bug#20607)
16536
16537 2015-05-19 Dmitry Gutov <dgutov@yandex.ru>
16538
16539 New command icomplete-force-complete-and-exit
16540 * lisp/icomplete.el (icomplete-force-complete-and-exit):
16541 New command
16542 (http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00461.html)
16543 (http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00516.html).
16544 (icomplete-minibuffer-map): Bind C-j to it.
16545 (icomplete-forward-completions, icomplete-backward-completions):
16546 Mention the new command in the docstring.
16547 * lisp/minibuffer.el (minibuffer-force-complete-and-exit):
16548 Revert the previous fix for bug#17545.
16549
16550 2015-05-19 Martin Rudalics <rudalics@gmx.at>
16551
16552 Fix last commit
16553
16554 In Elisp manual explain how to override window manager positioning
16555 (Bug#20552)
16556 * doc/lispref/frames.texi (Position Parameters): Give example of
16557 how to override a window manager positioning decision.
16558
16559 Clarify concept of "surrogate minibuffer frames" (Bug#20538)
16560 * src/frame.c (Fdelete_frame): In doc-string mention that frame
16561 can't be deleted if it has a surrogate minibuffer.
16562 * doc/lispref/frames.texi (Minibuffers and Frames)
16563 (Deleting Frames): Explain "surrogate minibuffer frames".
16564
16565 * src/w32heap.c (DUMPED_HEAP_SIZE): Bump to 19/12 MB.
16566
16567 2015-05-18 Glenn Morris <rgm@gnu.org>
16568
16569 Add option to ignore commit lines matching a pattern in ChangeLog
16570 * build-aux/gitlog-to-changelog: Add --ignore-line option.
16571 * build-aux/gitlog-to-emacslog: Ignore lines matching '^; '.
16572
16573 2015-05-18 Paul Eggert <eggert@cs.ucla.edu>
16574
16575 Don't skip new etags tests on non-UTF-8 hosts
16576 Problem reported by Eli Zaretskii for MS-Windows.
16577 * test/etags/Makefile (UTF8_LOCALE, UTF8_ENCODING): Remove.
16578 (LC_ALL): Set to C if the current locale isn't UTF-8.
16579 (.PHONY): Remove ediff_1 thru ediff_5.
16580 (check): Always run.
16581
16582 2015-05-18 Glenn Morris <rgm@gnu.org>
16583
16584 * lisp/calculator.el (calculator-funcall):
16585 * lisp/textmodes/artist.el (artist-spray-random-points):
16586 Use standard degree/radian conversion utilities.
16587
16588 Further lisp-complete-symbol related cleanup.
16589 * lisp/emacs-lisp/lisp.el (lisp-complete-symbol):
16590 Unadvertise non-functional argument. Replace obsolete alias.
16591
16592 2015-05-18 Dmitry Gutov <dgutov@yandex.ru>
16593
16594 Add a test case for Maven warning ouput
16595 * test/automated/compile-tests.el
16596 (compile-tests--test-regexps-data): Add a case for Maven warning
16597 ouput.
16598 (compile--test-error-line): Check the compilation message type, if
16599 it's specified in the test data.
16600
16601 2015-05-18 Paul Pogonyshev <pogonyshev@gmail.com>
16602
16603 Update Maven compilation-mode entry to distinguish warnings
16604 * lisp/progmodes/compile.el
16605 (compilation-error-regexp-alist-alist): Update Maven entry to
16606 distinguish warnings (bug#20556).
16607
16608 2015-05-18 Przemysław Wojnowski <esperanto@cumego.com>
16609
16610 * test/automated/sgml-mode-tests.el: New file.
16611
16612 2015-05-18 Dmitry Gutov <dgutov@yandex.ru>
16613
16614 Improve handling of the first Git revision
16615 * lisp/vc/log-view.el (log-view-toggle-entry-display): When
16616 there's no next entry, delete until the end of the buffer.
16617 (log-view-end-of-defun-1): Stop at eob.
16618 * lisp/vc/vc-annotate.el
16619 (vc-annotate-show-diff-revision-at-line-internal): Don't give up
16620 when previous-revision is nil.
16621 * lisp/vc/vc-git.el (vc-git-expanded-log-entry): End the arguments
16622 with `--' to avoid ambiguity.
16623 (vc-git-annotate-extract-revision-at-line): Exclude `^' from the
16624 returned revision string.
16625 (vc-git-annotate-time): Expect `^' before the first revision.
16626 * lisp/vc/vc-git.el (vc-git-diff): Diff against an empty tree if
16627 REV1 is nil, and REV2 is not.
16628 * lisp/vc/vc.el: Update the description of the `diff' function.
16629
16630 2015-05-18 Oleh Krehel <ohwoeowho@gmail.com>
16631
16632 Allow checkdoc to be called in batch
16633 * lisp/emacs-lisp/checkdoc.el (checkdoc-error): When `noninteractive'
16634 is non-nil, echo the error with `warn'.
16635 How it can be used in -batch:
16636 (with-current-buffer (find-file "checkdoc.el")
16637 (checkdoc-current-buffer t))
16638
16639 2015-05-18 Glenn Morris <rgm@gnu.org>
16640
16641 * lisp/calendar/solar.el (solar-ecliptic-coordinates): Use float-pi.
16642
16643 2015-05-17 Paul Eggert <eggert@cs.ucla.edu>
16644
16645 * admin/notes/unicode: New section "binary files".
16646
16647 Change new etags test to use UTF-8 encoding
16648 * test/etags/CTAGS.good, test/etags/ETAGS.good_1:
16649 * test/etags/ETAGS.good_2, test/etags/ETAGS.good_3:
16650 * test/etags/ETAGS.good_4, test/etags/ETAGS.good_5:
16651 * test/etags/html-src/index.shtml, test/etags/html-src/software.html:
16652 * test/etags/html-src/softwarelibero.html:
16653 Switch to UTF-8 encoding.
16654 * test/etags/Makefile (SRCS): Adjust to switch to UTF-8.
16655 Remove Makefile, as it's too incestuous to have the test input
16656 include the build procedure.
16657 (UTF8_LOCALE, UTF_ENCODING): New macros.
16658 (LC_ALL): If possible, set to a UTF-8 encoding if not already UTF-8.
16659 (check): Skip if not UTF-8.
16660 (.PHONY): New rule.
16661 (FRC): Remove, as superseded by .PHONY. All uses removed.
16662 (regexfile): Prefer printf to echo when outputting oddball chars.
16663 (.PRECIOUS): Remove, as these files are not built.
16664
16665 Rename 'foo-gzipped' to 'foo.gz'
16666 * test/automated/data/decompress/foo.gz:
16667 Rename from test/automated/data/decompress/foo-gzipped,
16668 to make it easier for other tools to tell that it's compressed.
16669 * test/automated/zlib-tests.el (zlib--decompress):
16670 Adjust to renamed file.
16671
16672 2015-05-17 Dmitry Gutov <dgutov@yandex.ru>
16673
16674 Set up default-directory
16675 * lisp/vc/vc-annotate.el (vc-annotate-mode-map): Remove duplicate
16676 binding for `v'.
16677 (vc-annotate-show-changeset-diff-revision-at-line): Set up an
16678 appropriate value for default-directory.
16679
16680 2015-05-17 Samer Masterson <samer@samertm.com>
16681
16682 * lisp/eshell/em-term.el (eshell-term-sentinel):
16683 No-op by default, only kills term buffer if
16684 `eshell-destroy-buffer-when-process-dies' is non-nil. (Bug#18108)
16685 (eshell-destroy-buffer-when-process-dies): New custom to preserve
16686 previous behavior.
16687
16688 eshell: Introduce new buffer syntax
16689 The new buffer syntax '#<buffer-name>' is equivalent to '#<buffer
16690 buffer-name>'. Remove `eshell-buffer-shorthand', as it is no longer
16691 needed (Bug#19319).
16692 * lisp/eshell/esh-io.el (eshell-buffer-shorthand): Remove.
16693 (eshell-get-target): Remove shorthand-specific code.
16694 * lisp/eshell/esh-arg.el (eshell-parse-special-reference): Parse
16695 '#<buffer-name>'.
16696
16697 2015-05-17 Jan D <jan.h.d@swipnet.se>
16698
16699 Merge branch 'master' into cairo
16700
16701 2015-04-26 Jan D <jan.h.d@swipnet.se>
16702
16703 Merge branch 'master' into cairo
16704
16705 Add PBM support for cairo
16706 * src/image.c (xcolor_to_argb32): New function.
16707 (get_spec_bg_or_alpha_as_argb): Call xcolor_to_argb32.
16708 (pbm_load, png_load_body, jpeg_load_body, gif_load): Only use
16709 XImagePtr if ! USE_CAIRO.
16710 (pbm_load): Add cairo support.
16711
16712 2015-04-12 Jan D <jan.h.d@swipnet.se>
16713
16714 * src/xterm.c (x_free_cr_resources): Rename from x_prepare_for_xlibdraw.
16715 (x_cr_draw_frame, x_cr_export_frames, x_shift_glyphs_for_insert)
16716 (x_free_frame_resources): Rename x_prepare_for_xlibdraw to
16717 x_free_cr_resources.
16718
16719 Handle specified bg in images. Use generic libpng code for PNGs.
16720 * src/image.c (get_spec_bg_or_alpha_as_argb)
16721 (create_cairo_image_surface): New functions when USE_CAIRO.
16722 (xpm_load): Call the above functions. Handle XPM without mask
16723 when USE_CAIRO.
16724 (png_load_body): Handle USE_CAIRO case.
16725 (png_load): Remove USE_CAIRO specific fuction, modify png_load_body
16726 instead.
16727 (jpeg_load_body): Call create_cairo_image_surface.
16728 (gif_load, svg_load_image): Handle specified background, call
16729 create_cairo_image_surface.
16730 * src/xterm.c (x_draw_image_glyph_string): Add missing USE_CAIRO.
16731
16732 2015-04-11 Jan D <jan.h.d@swipnet.se>
16733
16734 Support GIF and TIFF with cairo
16735 * configure.ac: Allow jpeg with cairo.
16736 Allow tiff and gif with cairo.
16737 * src/image.c (jpeg_load_body): Create cairo image surface if USE_CAIRO.
16738 (tiff_load): Create cairo image surface if USE_CAIRO.
16739 (gif_load): Ditto.
16740
16741 Support JPEG with USE_CAIRO
16742 * configure.ac: Allow jpeg with cairo.
16743 * src/image.c (jpeg_load_body): Create cairo image surface if USE_CAIRO.
16744
16745 2015-04-05 Jan D <jan.h.d@swipnet.se>
16746
16747 Support RSVG and cairo
16748 * configure.ac: Allow rsvg with cairo. Move back HAVE_RSVG.
16749 * src/dispextern.h (struct image): Add cr_data2 if cairo.
16750 * src/image.c: #undef COLOR_TABLE_SUPPORT when USE_CAIRO.
16751 (x_clear_image): Free cr_data and cr_data2 if set.
16752 (xpm_load): Assign data to cr_data2.
16753 (svg_load_image): Convert from GdkPixbuf to CAIRO_FORMAT_ARGB32.
16754
16755 2015-04-03 Jan D <jan.h.d@swipnet.se>
16756
16757 Introduce limited Xpm support (32 bit ZPixmap) for Cairo
16758 * configure.ac (HAVE_RSVG): Move after cairo.
16759 (USE_CAIRO): Disable rsvg, don't disable Xpm.
16760 * src/image.c (prepare_image_for_display): Don't load if USE_CAIRO.
16761 (x_clear_image): If USE_CAIRO, also free possible img->ximg->obdata and
16762 don't return early.
16763 (ALLOC_XPM_COLORS): Don't define when USE_CAIRO.
16764 (xpm_load): Convert simple Xpms (32 bit ZPixmap) to CAIRO_FORMAT_ARGB32
16765 and create a surface.
16766
16767 Tool tips for menus did not show any text.
16768 * src/xterm.c (x_update_begin): Don't create any surface for non-visible
16769 tip frames, the geometry may be wrong.
16770
16771 Merge branch 'master' into cairo, fixes tooltips not shown.
16772
16773 Merge branch 'master' into cairo
16774
16775 Add CAIRO_CFLAGS to lwlib/Makefile.in
16776 * Makefile.in (CAIRO_CFLAGS): Add.
16777
16778 2015-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16779
16780 * src/ftcrfont.c (ftcrfont_draw): Don't flush when drawing to screen.
16781
16782 2015-02-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16783
16784 Draw outermost line using black relief and erase corners also for cairo.
16785 * src/xterm.c [USE_CAIRO]: Include math.h.
16786 (enum corners) [USE_CAIRO]: New enum.
16787 (x_erase_corners_for_relief) [USE_CAIRO]: New function.
16788 (x_draw_relief_rect) [USE_CAIRO]: Use it. If box width is larger
16789 than 1, draw the outermost line using the black relief.
16790
16791 * src/xterm.c (x_fill_trapezoid_for_relief):
16792 Remove unnecessary cairo_close_path.
16793
16794 2015-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16795
16796 * src/xterm.c (x_draw_relief_rect) [USE_CAIRO]: Reset clipping.
16797
16798 * src/xterm.c (x_draw_stretch_glyph_string):
16799 Call x_reset_clip_rectangles instead of XSetClipMask.
16800
16801 Use int instead of unsigned int for width and height args.
16802 * src/xterm.c (x_cr_draw_image, x_fill_rectangle, x_draw_rectangle)
16803 (x_fill_trapezoid_for_relief): Use int instead of unsigned int for
16804 width and height args.
16805
16806 Modernize k&r cairo-related function declarations.
16807 * src/gtkutil.c (xg_page_setup_dialog, xg_get_page_setup, draw_page)
16808 (xg_print_frames_dialog): Modernize k&r declarations.
16809 * src/xfns.c (Fx_export_frames, Fx_page_setup_dialog, Fx_get_page_setup)
16810 (Fx_print_frames_dialog): Modernize k&r declarations.
16811 * src/xterm.c (x_gc_get_ext_data, x_extension_initialize)
16812 (x_begin_cr_clip, x_end_cr_clip, x_set_cr_source_with_gc_foreground)
16813 (x_set_cr_source_with_gc_background, x_cr_define_fringe_bitmap)
16814 (x_cr_destroy_fringe_bitmap, x_cr_draw_frame, x_cr_accumulate_data)
16815 (x_cr_destroy, x_cr_export_frames, x_prepare_for_xlibdraw)
16816 (x_set_clip_rectangles, x_reset_clip_rectangles, x_fill_rectangle)
16817 (x_draw_rectangle, x_clear_window, x_fill_trapezoid_for_relief)
16818 (x_clear_area): Modernize k&r declarations.
16819
16820 Implement wave-style variant of underlining for cairo.
16821 * src/xterm.c (x_draw_horizontal_wave) [USE_CAIRO]: New function.
16822 (x_draw_underwave) [USE_CAIRO]: Use it.
16823
16824 * src/xterm.c (x_draw_window_divider): Use x_fill_rectangle
16825 instead of XFillRectangle.
16826
16827 2015-02-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16828
16829 Fix fringe bitmap initialization for cairo
16830 * src/fringe.c (init_fringe_bitmap) [USE_CAIRO]: Adjust bitmap
16831 data for cairo image surface.
16832 * src/xterm.c (x_cr_define_fringe_bitmap):
16833 Call cairo_surface_mark_dirty.
16834
16835 2015-02-11 Jan D <jan.h.d@swipnet.se>
16836
16837 Add cairo drawing
16838 * configure.ac (with-cairo): New option.
16839 (USE_CAIRO): Default to yes for Gtk+ 3. Add code to test for cairo,
16840 set CAIRO_CFLAGS, CAIRO_LIBS. Add ftcrfonto to FONT_OBJ if cairo.
16841 Output "Does Emacs use cairo?".
16842 * lisp/version.el (emacs-version): Add cairo version.
16843 * src/Makefile.in (CAIRO_CFLAGS, CAIRO_LIBS): New variables.
16844 (FONT_OBJ): Add comment about ftcrfont.
16845 (ALL_CFLAGS): Add CAIRO_CFLAGS.
16846 (LIBES): Add CAIRO_LIBS.
16847 * src/dispextern.h (struct image): Add cr_data for cairo.
16848 (x_cr_init_fringe): Declare.
16849 * src/font.c (syms_of_font): Call syms_of_ftcrfont for cairo.
16850 * src/font.h (ftcrfont_driver, syms_of_ftcrfont): Declare
16851 * src/fringe.c (x_cr_init_fringe): New function name that shares code
16852 with w32_init_fringe.
16853 * src/ftcrfont.c: New font driver for cairo, based on the ftfont driver.
16854 * src/ftfont.c (ftfont_info_size); New global variable.
16855 (ftfont_open2): New extern function almost the same as old ftfont_open,
16856 but takes the font_object as argument.
16857 (ftfont_open): Build font object and call ftfont_open2.
16858 * src/ftfont.h (ftfont_open2, ftfont_info_size): Declare.
16859 * src/gtkutil.c (xg_clear_under_internal_border)
16860 (xg_update_scrollbar_pos, xg_update_horizontal_scrollbar_pos):
16861 Only queue_draw if not cairo. Change args to x_clear_area.
16862 (xg_get_font): Use Qftcr when using cairo, Qxft otherwise.
16863 (xg_page_setup_dialog, xg_get_page_setup, draw_page)
16864 (xg_print_frames_dialog): New functions for printing.
16865 * src/gtkutil.h (xg_page_setup_dialog, xg_get_page_setup)
16866 (xg_print_frames_dialog): Declare.
16867 * src/image.c: Add defined (USE_CAIRO) for PNG.
16868 Add !defined USE_CAIRO for W32 PNG code.
16869 (x_clear_image): If cairo, destroy the surface in cr_data.
16870 (png_load): Add new cairo compatible implementation.
16871 (lookup_image_type): Add defined (USE_CAIRO) for define png_type.
16872 * src/xfns.c: New section Printing.
16873 (x-export-frames, x-page-setup-dialog, x-get-page-setup)
16874 (x-print-frames-dialog): New printing functions.
16875 (Fx_create_frame, x_create_tip_frame): Register ftcrfont if cairo.
16876 (syms_of_xfns): Defsym Qorientation, Qtop_margin, Qbottom_margin,
16877 Qportrait, Qlandscape, Qreverse_portrait, Qreverse_landscape).
16878 (syms_of_xfns): Provide cairo and defvar cairo-version-string.
16879 defsubr Sx_page_setup_dialog, Sx_get_page_setup, Sx_print_frames_dialog.
16880 * src/xterm.c (x_clear_area1, x_prepare_for_xlibdraw)
16881 (x_set_clip_rectangles, x_reset_clip_rectangles, x_fill_rectangle)
16882 (x_draw_rectangle, x_fill_trapezoid_for_relief, x_clear_window)
16883 (x_gc_get_ext_data, x_extension_initialize, x_cr_accumulate_data):
16884 Declare.
16885 (FRAME_CR_CONTEXT, FRAME_CR_SURFACE): New macros.
16886 (max_fringe_bmp, fringe_bmp): New variables.
16887 (x_gc_get_ext_data, x_extension_initialize)
16888 (x_cr_destroy_surface, x_begin_cr_clip, x_end_cr_clip)
16889 (x_set_cr_source_with_gc_foreground)
16890 (x_set_cr_source_with_gc_background, x_cr_define_fringe_bitmap)
16891 (x_cr_destroy_fringe_bitmap, x_cr_draw_image, x_cr_draw_frame)
16892 (x_cr_accumulate_data, x_cr_destroy, x_cr_export_frames)
16893 (x_prepare_for_xlibdraw, x_set_clip_rectangles)
16894 (x_reset_clip_rectangles, x_fill_rectangle, x_draw_rectangle)
16895 (x_clear_window, x_fill_trapezoid_for_relief): New functions.
16896 (x_update_begin): Create cairo surface if needed.
16897 (x_draw_vertical_window_border): Call x_fill_rectangle for cairo.
16898 (x_update_end): Paint cairo drawing surface to xlib surface.
16899 (x_clear_under_internal_border, x_after_update_window_line): Adjust
16900 arguments to x_clear_area.
16901 (x_draw_fringe_bitmap): Call x_fill_rectangle. Get GC values and
16902 call x_cr_draw_image for cairo. Call x_reset_clip_rectangles instead
16903 of XSetClipMask.
16904 (x_set_glyph_string_clipping)
16905 (x_set_glyph_string_clipping_exactly): Use x_set_clip_rectangles
16906 instead of XSetClipRectangles.
16907 (x_clear_glyph_string_rect, x_draw_glyph_string_background):
16908 Use x_fill_rectangle instead of XFillRectangle.
16909 (x_draw_glyph_string_foreground)
16910 (x_draw_composite_glyph_string_foreground)
16911 (x_draw_glyphless_glyph_string_foreground): Use x_draw_rectangle
16912 instead of XDrawRectangle.
16913 (x_draw_relief_rect): Add code for USE_CAIRO.
16914 Call x_reset_clip_rectangles instead of XSetClipMask.
16915 (x_draw_box_rect): x_set_clip_rectangles instead of XSetClipRectangles,
16916 x_fill_rectangle instead of XFillRectangle, x_reset_clip_rectangles
16917 instead of XSetClipMask.
16918 (x_draw_image_foreground, x_draw_image_foreground_1):
16919 x_draw_rectangle instead of XDrawRectangle.
16920 (x_draw_glyph_string_bg_rect): x_fill_rectangle instead of
16921 XFillRectangle.
16922 (x_draw_image_glyph_string): If img has cr_data, use it as
16923 a cairo surface.
16924 (x_draw_stretch_glyph_string): x_set_clip_rectangles instead of
16925 XSetClipRectangles, x_fill_rectangle instead of XFillRectangle.
16926 (x_draw_glyph_string): x_fill_rectangle instead of XFillRectangle.,
16927 x_reset_clip_rectangles instead of XSetClipMask.
16928 (x_shift_glyphs_for_insert): Call x_prepare_for_xlibdraw.
16929 (x_clear_area1): New function that calls XClearArea.
16930 (x_clear_area): Takes frame as parameter, calls x_clear_area1 for
16931 non-cairo.
16932 (x_clear_frame): x_clear_window instead of XClearWindow.
16933 (x_scroll_run): Set frame garbaged if cairo.
16934 (XTmouse_position): Initialize *part to 0.
16935 (x_scroll_bar_create): Adjust arguments to x_clear_area.
16936 (x_scroll_bar_set_handle): x_clear_area1 instead of x_clear_area,
16937 x_fill_rectangle instead of XFillRectangle.
16938 (XTset_vertical_scroll_bar, XTset_horizontal_scroll_bar): Adjust
16939 arguments to x_clear_area.
16940 (x_scroll_bar_expose): x_draw_rectangle instead of XDrawRectangle.
16941 (handle_one_xevent): Adjust arguments to x_clear_area.
16942 Destroy cairo surface for frame if ConfigureNotify.
16943 (x_clip_to_row): x_set_clip_rectangles instead of XSetClipRectangles.
16944 (x_draw_hollow_cursor): x_draw_rectangle instead of XDrawRectangle,
16945 x_reset_clip_rectangles instead of XSetClipMask.
16946 (x_draw_bar_cursor): x_fill_rectangle instead of XFillRectangle,
16947 x_reset_clip_rectangles instead of XSetClipMask.
16948 (x_clear_frame_area): Adjust arguments to x_clear_area.
16949 (x_free_frame_resources): Call x_prepare_for_xlibdraw.
16950 (x_term_init): Call x_extension_initialize if cairo.
16951 (x_redisplay_interface): Add x_cr_define_fringe_bitmap,
16952 x_cr_destroy_fringe_bitmap for cairo.
16953 (x_initialize): Call x_cr_init_fringe for cairo.
16954 * src/xterm.h: Add include of cairo header files.
16955 (x_bitmap_record): Add img if cairo.
16956 (x_gc_ext_data): New struct for cairo.
16957 (x_display_info): Add ext_codes for cairo.
16958 (x_output): Add cr_context and cr_surface for cairo.
16959 (x_clear_area): Change arguments from Display*/Window to frame pointer.
16960 (x_query_color, x_begin_cr_clip, x_end_cr_clip)
16961 (x_set_cr_source_with_gc_foreground, x_set_cr_source_with_gc_background)
16962 (x_cr_draw_frame, x_cr_export_frames): Declare.
16963
16964 2015-05-17 Johan Bockgård <bojohan@gnu.org>
16965
16966 Fix integer-valued `mouse-highlight' (Bug#20590)
16967 * src/xterm.c (handle_one_xevent) [USE_GTK]: Fix ifdef scope.
16968
16969 2015-05-17 Eli Zaretskii <eliz@gnu.org>
16970
16971 MS-Windows followup for ASCIIfication of curved quotes
16972 * lisp/term/w32console.el (terminal-init-w32console): Repeat the
16973 test for curved quotes being displayable, after switching the
16974 terminal encoding. (Bug#20545)
16975
16976 2015-05-17 Jan D <jan.h.d@swipnet.se>
16977
16978 Add comment that x_shift_glyphs_for_insert is never called
16979 * src/xterm.c (x_shift_glyphs_for_insert, x_redisplay_interface):
16980 Add comment that this function is never called.
16981
16982 2015-05-16 Glenn Morris <rgm@gnu.org>
16983
16984 * src/lisp.mk: Remove from repository and generate at build-time.
16985 * src/Makefile.in (lisp.mk): New rule to generate from loadup.el.
16986 (shortlisp_filter): New variable.
16987 (emacs$(EXEEXT), $(etc)/DOC): Depend on lisp.mk.
16988 (distclean): Remove lisp.mk.
16989 * Makefile.in ($(MAKEFILE_NAME)): No longer depend on src/lisp.mk.
16990 * lisp/loadup.el: Tweak layout to make it easier to parse.
16991 * make-dist: Do not distribute src/lisp.mk.
16992
16993 2015-05-16 Dmitry Gutov <dgutov@yandex.ru>
16994
16995 Display shorter dates in Git annotate output
16996 * lisp/vc/vc-git.el (vc-git-annotate-command): Use the short date
16997 format (when not overridden with vc-git-annotate-switches).
16998 (vc-git-annotate-time): Support the short format, as well as ISO
16999 8601 that has been used until now (bug#5428).
17000
17001 2015-05-16 Paul Eggert <eggert@cs.ucla.edu>
17002
17003 ASCIIfy curved quotes on displays lacking them
17004 * lisp/international/mule-cmds.el (set-locale-environment):
17005 If curved quotes don't work, display straight ASCII approximations
17006 (Bug#20545).
17007
17008 2015-05-16 Glenn Morris <rgm@gnu.org>
17009
17010 Small src/Makefile simplification
17011 * src/lisp.mk (shortlisp): Rename from lisp, remove $lispsource prefix.
17012 * src/Makefile.in (lisp): Derive from shortlisp.
17013 ($(etc)/DOC): Use $shortlisp rather than parsing lisp.mk.
17014
17015 2015-05-16 Eli Zaretskii <eliz@gnu.org>
17016
17017 * lisp/help-mode.el (help-go-forward): Doc fix.
17018 (Bug#20577)
17019
17020 * doc/lispref/debugging.texi (Profiling): Improve indexing.
17021 (Bug#20576)
17022
17023 2015-05-16 Dmitry Gutov <dgutov@yandex.ru>
17024
17025 * lisp/vc/vc-git.el (vc-git-resolve-when-done): Use `unless' to
17026 have one fewer `not'.
17027
17028 * lisp/vc/vc-git.el (vc-git-diff-switches)
17029 (vc-git-annotate-switches, vc-git-resolve-conflicts)
17030 (vc-git-program, vc-git-root-log-format): Remove the redundant
17031 :group declarations.
17032
17033 2015-05-16 Nicolas Petton <nicolas@petton.fr>
17034
17035 Removes the predicate from lisp-complete-symbol (Bug#20456)
17036 * lisp/emacs-lisp/lisp.el (lisp-complete-symbol): Do not use predicate
17037 and remove it from the docstring.
17038
17039 2015-05-16 Dmitry Gutov <dgutov@yandex.ru>
17040
17041 Add new option vc-git-resolve-conflicts
17042 * lisp/vc/vc-git.el (vc-git-resolve-conflicts): New variable.
17043 (vc-git-find-file-hook): Add to after-save-hook only when the
17044 above is non-nil.
17045 (vc-git-resolve-when-done): Update to honor the new variable.
17046 (Bug#20292)
17047
17048 2015-05-16 Artur Malabarba <bruce.connor.am@gmail.com>
17049
17050 * lisp/emacs-lisp/tabulated-list.el: Don't error on null header-string.
17051 (tabulated-list-init-header): Document new behavior.
17052 (tabulated-list-print-fake-header): Do nothing if
17053 `tabulated-list--header-string' is nil.
17054 (tabulated-list--header-string): Add a docstring.
17055 * doc/lispref/modes.texi (Tabulated List Mode): Document it.
17056 * etc/NEWS: Document it.
17057
17058 2015-05-15 Leo Liu <sdl.web@gmail.com>
17059
17060 Revert "Fix cps--gensym"
17061 * lisp/emacs-lisp/generator.el (cps--gensym): Revert commit
17062 fbda511ab8069d0115eafca411a43353b85431b1 on 2015-05-14.
17063
17064 2015-05-15 Glenn Morris <rgm@gnu.org>
17065
17066 Replace AC_SUBST_FILE in configure with include in Makefiles
17067 * configure.ac (DEPDIR, MKDEPDIR, deps_frag, lwlib_deps_frag)
17068 (oldxmenu_deps_frag, lisp_frag): Remove output variables/files.
17069 (AUTO_DEPEND): New output variable.
17070 * lwlib/Makefile.in (AUTO_DEPEND): New, set by configure.
17071 (DEPFLAGS, MKDEPDIR): Set directly via conditional.
17072 (lwlib_deps_frag): Replace by conditional include.
17073 * lwlib/autodeps.mk: Remove file.
17074 * oldXMenu/Makefile.in (AUTO_DEPEND): New, set by configure.
17075 (DEPFLAGS, MKDEPDIR): Set directly via conditional.
17076 (oldxmenu_deps_frag): Replace by conditional include.
17077 * oldXMenu/autodeps.mk: Remove file.
17078 * src/Makefile.in (AUTO_DEPEND): New, set by configure.
17079 (DEPFLAGS, MKDEPDIR): Set directly via conditional.
17080 (lisp_frag): Replace by an include.
17081 (deps_frag): Replace by conditional include.
17082 * src/autodeps.mk: Remove file.
17083
17084 Tweak japanese.el's loading of dependencies
17085 * lisp/loadup.el: Explicitly load cp51932 and eucjp-ms.
17086 * lisp/language/japanese.el: Use require rather than load.
17087 * lisp/international/cp51932.el, lisp/international/eucjp-ms.el:
17088 Provide a feature.
17089 * admin/charsets/eucjp-ms.awk, admin/charsets/cp51932.awk:
17090 Provide a feature in the generated file.
17091
17092 2015-05-15 Jan D <jan.h.d@swipnet.se>
17093
17094 Fix NS warnings
17095 * src/nsmenu.m (ns_popup_dialog)
17096 * src/nsimage.m (initFromXBM:width:height:fg:bg:)
17097 * src/nsfns.m (Fx_create_frame): Remove unused variables.
17098 (Fns_read_file_name): Initialize fname, remove ret.
17099 * src/nsterm.m (ns_draw_window_cursor): Handle DEFAULT_CURSOR in switch.
17100 (ns_get_color, ns_set_horizontal_scroll_bar, keyDown):
17101 Remove unused variable.
17102 (init): Add parantesis in if.
17103 (ns_create_terminal): Assign set_horizontal_scroll_bar_hook.
17104
17105 2015-05-15 Jan Djärv <jan.h.d@swipnet.se>
17106
17107 Fix a enum conversion warning in macfont.m
17108 * src/macfont.h (CharacterCollection): Typedef to NSCharacterCollection.
17109 (MAC_CHARACTER_COLLECTION_*): Use the NS variants.
17110
17111 2015-05-15 Eli Zaretskii <eliz@gnu.org>
17112
17113 * lisp/textmodes/ispell.el (ispell-aspell-find-dictionary):
17114 Support Aspell dictionaries with names like "de-alt". (Bug#20581)
17115
17116 2015-05-15 Jan Djärv <jan.h.d@swipnet.se>
17117
17118 * lisp/cus-start.el: Add ns-confirm-quit.
17119
17120 Fix warnings on OSX 10.10
17121 * src/nsfns.m (MODAL_OK_RESPONSE): New define for different
17122 OSX versions.
17123 (Fns_read_file_name): Check against MODAL_OK_RESPONSE.
17124 (compute_tip_xy): Use convertRectToScreen for OSX >= 10.7
17125 * src/nsmenu.m (initWithContentRect:styleMask:backing:defer:)
17126 * src/nsimage.m (allocInitFromFile, setPixmapData): Only call
17127 setScalesWhenResized for OSX < 10.6.
17128 * src/nsterm.h (EmacsScroller): Declare scrollerWidth.
17129 * src/nsterm.m (ns_copy_bits): New function that does not use
17130 deprecated NSCopyBits.
17131 (ns_scroll_run, ns_shift_glyphs_for_insert): Call ns_copy_bits.
17132 (runAlertPanel): New function.
17133 (applicationShouldTerminate:): Call runAlertPanel.
17134 (initFrameFromEmacs, toggleFullScreen:): Only call
17135 useOptimizedDrawing for OSX < 10.10.
17136 (initFrameFromEmacs:): Only call allocateGState for OSX < 10.10.
17137 (windowWillUseStandardFrame:defaultFrame:): Cast arg to abs to int.
17138 (draggingEntered:): Returns NSDragOperation.
17139 (scrollerWidth): Use scrollerWidthForControlSize for OSX >= 10.7.
17140
17141 2015-05-15 Artur Malabarba <bruce.connor.am@gmail.com>
17142
17143 * lisp/emacs-lisp/package.el: Don't ensure-init during startup.
17144 (package--init-file-ensured): New variable.
17145 (package-initialize, package--ensure-init-file): Use it.
17146
17147 2015-05-15 Jan Djärv <jan.h.d@swipnet.se>
17148
17149 Honor :fore/background for XBM on NS (Bug#14969)
17150 * src/nsterm.h (EmacsImage): Add xbm_fg, remove initFromSkipXBM,
17151 initFromXBM takes bg, fg args, remove flip arg.
17152 (ns_image_from_XBM): Add bg, fg args.
17153 * src/image.c (x_create_bitmap_from_data)
17154 (Create_Pixmap_From_Bitmap_Data): ns_image_from_XBM takes bg, fg args.
17155 * src/nsimage.m (ns_image_from_XBM): Add fg, bg args, pass to
17156 initFromXBM. Remove flip arg.
17157 (initFromSkipXBM): Move code to initFromXBM.
17158 (initFromXBM): Actually set fg and bg, instead of playing alpha games.
17159 Use fg, bg from args (Bug#14969). Remove if (length) section, was
17160 always false.
17161 Remove bit flipping (bitPat, swt), generated incorrect images when
17162 width/height wasn't a multiple of 8.
17163 (setXBMColor:): Modify planes by comparing to saved xbm_fg.
17164 * src/nsterm.m (ns_draw_fringe_bitmap): initFromXBM takes fg, bg args,
17165 remove flip arg.
17166
17167 2015-05-15 Artur Malabarba <bruce.connor.am@gmail.com>
17168
17169 * lisp/emacs-lisp/package.el: Be more careful with the init file.
17170 (package--ensure-init-file): Check that user-init-file is set,
17171 exists, is readable, and is writable. (Bug#20584)
17172 Also expand the docstring.
17173
17174 2015-05-14 Wilson Snyder <wsnyder@wsnyder.org>
17175
17176 Sync with upstream verilog-mode revision 6232468
17177 * lisp/progmodes/verilog-mode.el
17178 (verilog-font-lock-grouping-keywords-face)
17179 (verilog-highlight-grouping-keywords): Fix use of face when
17180 `verilog-highlight-grouping-keywords' set. Reported by Jeff Pompa.
17181 (verilog-auto-reset): Fix AUTORESET to ignore member resets if
17182 parent is reset, bug906. Reported by Ken Schmidt.
17183 (verilog-auto-inout-module): Add fourth regexp argument to
17184 AUTOINOUTMODULE and AUTOINOUTCOMP for signals to not match, bug856.
17185 Reported by John Tillema.
17186 (verilog-auto-inst-port): Fix AUTOINST interfaces to not show
17187 modport if signal attachment is itself a modport. Reported by
17188 Matthew Lovell.
17189 (verilog-auto-reset, verilog-auto-sense-sigs): Fix AUTORESET with
17190 always_comb and always_latch, bug844. Reported by Greg Hilton.
17191 (verilog-at-constraint-p, verilog-beg-of-statement-1): Fix hanging
17192 with many curly-bracket pairs, bug663.
17193 (verilog-set-auto-endcomments): Fix end comments for functions of
17194 type void, etc. Reported by Alex Reed.
17195 (verilog-do-indent): Fix electric tab deleting form-feeds. Note
17196 caused by indent-line-to deleting tabls pre 24.5.
17197 (verilog-nameable-item-re): Fix nameable items that can have an
17198 end-identifier to include endchecker, endgroup, endprogram,
17199 endproperty, and endsequence. Reported by Alex Reed.
17200 (verilog-label-be): When auto-commenting a buffer, consider
17201 auto-comments on all known keywords (not just a subset thereof).
17202 Reported by Alex Reed.
17203 (verilog-auto-end-comment-lines-re)
17204 (verilog-end-block-ordered-re, verilog-set-auto-endcomments):
17205 Automatically comment property/endproperty blocks to match other
17206 similar blocks like sequence/endsequence, function/endfunction, etc.
17207 Reported by Alex Reed.
17208 (verilog-set-auto-endcomments): Detect the function- or task-name
17209 when auto-commenting blocks that lack an explicit portlist.
17210 Reported by Alex Reed.
17211 (verilog-auto, verilog-auto-insert-last): Add AUTOINSERTLAST to
17212 allow post-AUTO user fixups, bug826. Reported by Dennis Muhlestein.
17213 (verilog-no-indent-begin-re): When `verilog-indent-begin-after-if'
17214 is nil, fix indenting initial/final to match always statements,
17215 bug825. Reported by Tim Clapp.
17216 (verilog-extended-complete-re): Fix indentation of DPI-C imports
17217 with c_identifiers, and DPI-C imports, bug557. Reported by ZeDong
17218 Mao and Jason Forkey.
17219 (verilog-read-decls): Fix parsing typed interfaces. Fix
17220 AUTOINOUTMODPORT missing types. Reported by Stephan Bourduas.
17221 Fix localparam not being ignored in AUTOINSTPARAM,
17222 bug889. Reported by Shannon Hill.
17223 (verilog-auto-output-every): Add regexp to AUTOOUTPUTEVERY,
17224 bug793. Reported by Pierre-David Pfister.
17225 (verilog-auto-arg-format, verilog-auto-arg-ports):
17226 Add verilog-auto-arg-format to support newlines in AUTOARG.
17227 Reported by Jie Xiao.
17228 (verilog-batch-execute-func): Do not batch re-auto files loaded by
17229 Local Variables. Fix printing "no changes to be saved" with
17230 verilog-batch. Reported by Dan Dever.
17231 (verilog-auto-inout-module): Fix AUTOINOUTMODULE not inserting
17232 interface-only modules, bug721. Reported by Dean Hoyt.
17233 Author: Alex Reed <acreed4@gmail.com>
17234 * lisp/progmodes/verilog-mode.el (verilog-beg-of-statement):
17235 Don't treat '<keyword>:<identifier>' as the start of a labeled
17236 statement, bug905. Reported by Enzo Chi.
17237 (verilog-directive-re, verilog-compiler-directives)
17238 (verilog-keywords): Match full set of IEEE 2012-1800 compiler
17239 directives (plus some extras) when determining indentation, bug
17240 901. Reported by Bernd Beuster.
17241 (verilog-at-constraint-p): Fix indentation of coverpoint bins if
17242 iff expression doesn't start with word-character, bug900.
17243 (verilog-optional-signed-range-re, verilog-optional-signed-re):
17244 Fix incorrect indentation/alignment of unsigned declarations,
17245 bug897.
17246 (verilog-looking-back, verilog-in-attribute-p): Fix labeling of
17247 always constructs, bug895.
17248 (verilog-calc-1): Fix verilog-mode constraint indentation, bug324.
17249 Reported by Eric Mastromarchi.
17250 (verilog-beg-of-statement): Fix indenting for some forms of
17251 constraintsm bug433. Reported by Brad Parker. Fix indentation of
17252 continued assignment incorrect if first line ends with ']', bug437.
17253 Reported by Dan Dever. Fix indention of cover inside an
17254 ifdef, bug 862. Reported by Bernd Beuster. Fix labeling do-while
17255 blocks, bug842.
17256 (verilog-preprocessor-re): Fix fork/end UNMATCHED warning, bug859.
17257 Reported by Kaushal Modi.
17258 (verilog-set-auto-endcomments): Fix endlabel end comments, bug888.
17259 (verilog-backward-token): Fix indenting sensitivity lists with
17260 named events, bug840. Reed.
17261 (verilog-no-indent-begin-re): Fix `verilog-indent-begin-after-if'
17262 nil not honoring 'forever', 'foreach', and 'do' keywords.
17263
17264 2015-05-14 Paul Eggert <eggert@cs.ucla.edu>
17265
17266 Check for invalid GTK+ monitor scales
17267 * src/gtkutil.c (xg_get_gdk_scale): Return 1 for invalid scales,
17268 INT_MAX for too-large scales. All callers changed to assume the
17269 result is valid (Bug#20432).
17270 (xg_frame_set_char_size, xg_update_scrollbar_pos):
17271 Calculate scale only if needed.
17272 Show ASCII approximations instead.
17273
17274 2015-05-14 Eli Zaretskii <eliz@gnu.org>
17275
17276 Fix daemon crashes when linum-mode is turned on early on
17277 * src/window.c (Fwindow_end): Don't try calling display engine
17278 functions on initial-frame frame. (Bug#20565)
17279
17280 Fix selective diff browsing in Ediff
17281 * lisp/vc/ediff-util.el (ediff-focus-on-regexp-matches):
17282 Go to the beginning of the region before searching for the
17283 ediff-regexp-focus-* regexps. (Bug#20568)
17284
17285 2015-05-14 Jan D <jan.h.d@swipnet.se>
17286
17287 Fixes bug#20142
17288 * src/gtkutil.c (delete_cb): Don't send delete event here, it does
17289 arrive in the main loop, even for Gtk 3 (Bug#20142).
17290
17291 Don't access display after i/o error (Bug#19147).
17292 * src/xterm.c (x_connection_closed): Add third arg ioerror.
17293 If ioerror, set display to 0 (Bug#19147).
17294 (x_error_quitter): Call x_connection_closed with third arg false.
17295 (x_io_error_quitter): Call x_connection_closed with third arg true.
17296
17297 Handle GTK_SCALE, fixes Bug#20432.
17298 * src/gtkutil.c (xg_get_gdk_scale): New function.
17299 (xg_frame_set_char_size)
17300 (x_wm_set_size_hint, xg_get_default_scrollbar_width)
17301 (xg_get_default_scrollbar_height)
17302 (xg_update_horizontal_scrollbar_pos): Take GTK_SCALE in to account
17303 when setting sizes (Bug#20432).
17304
17305 2015-05-13 Leo Liu <sdl.web@gmail.com>
17306
17307 * lisp/emacs-lisp/generator.el (cps--gensym): Fix.
17308
17309 2015-05-13 Glenn Morris <rgm@gnu.org>
17310
17311 Fix bootstrap (void function cl-member).
17312 * lisp/emacs-lisp/cl-lib.el: Load cl-seq if no cl-loaddefs file.
17313 * lisp/emacs-lisp/cl-seq.el: Provide a feature.
17314
17315 2015-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17316
17317 * lisp/loadup.el ("emacs-lisp/cl-generic"): Preload
17318 * src/lisp.mk (lisp): Add emacs-lisp/cl-generic.elc.
17319 * lisp/emacs-lisp/cl-generic.el (cl-generic-define-method):
17320 Avoid defalias for closures which are not immutable.
17321 (cl--generic-prefill-dispatchers): New macro. Use it to prefill
17322 the dispatchers table with various entries.
17323 * lisp/emacs-lisp/ert.el (emacs-lisp-mode-hook):
17324 * lisp/emacs-lisp/seq.el (emacs-lisp-mode-hook): Use add-hook.
17325
17326 2015-05-13 Eli Zaretskii <eliz@gnu.org>
17327
17328 Improve tagging of C bindings in DEFVAR_*
17329 * src/Makefile.in (TAGS): Add --regex options to tag the C binding
17330 from DEFVAR_*.
17331
17332 2015-05-13 Paul Eggert <eggert@cs.ucla.edu>
17333
17334 * src/editfns.c (Fformat): Fix use-after-free bug (Bug#20548).
17335
17336 2015-05-12 Glenn Morris <rgm@gnu.org>
17337
17338 * lisp/progmodes/tcl.el (tcl-filter):
17339 Handle comint-prompt-read-only like gud.el does. (Bug#20549)
17340
17341 Add basic VC push support
17342 * lisp/vc/vc.el (vc-push): New autoloaded command.
17343 * lisp/vc/vc-hooks.el (vc-prefix-map, vc-menu-map): Add vc-push.
17344 * lisp/vc/vc-bzr.el (vc-bzr--pushpull): New, factored from vc-bzr-pull.
17345 (vc-bzr-pull): Reimplement using vc-bzr--pushpull.
17346 (vc-bzr-push): New.
17347 * lisp/vc/vc-git.el (vc-git--pushpull): New, factored from vc-git-pull.
17348 (vc-git-pull): Reimplement using vc-git--pushpull.
17349 (vc-git-push): New.
17350 * lisp/vc/vc-hg.el (vc-hg--pushpull): New, factored from vc-hg-pull.
17351 (vc-hg-pull, vc-hg-push): Reimplement using vc-hg--pushpull.
17352 * doc/emacs/maintaining.texi (Pulling / Pushing):
17353 Rename from "VC Pull". Mention pushing.
17354 (VC With A Merging VCS, VC Change Log): Update xrefs.
17355 (Branches): Update menu.
17356 * doc/emacs/emacs.texi: Update menu.
17357 * etc/NEWS: Mention this.
17358
17359 2015-05-12 Nicolas Petton <nicolas@petton.fr>
17360
17361 Improve the seq pcase pattern and the `seq-let' macro
17362 * lisp/emacs-lisp/seq.el: The pcase pattern now matches only if the
17363 object is a sequence, and binds each element of ARGS to the
17364 corresponding element of the sequence.
17365
17366 2015-05-12 Eli Zaretskii <eliz@gnu.org>
17367
17368 Fix tags created from DEFVAR_* declarations in C
17369 * src/Makefile.in (TAGS): Improve the --regex argument to etags,
17370 to make tags extracted from DEFVAR_* declarations more accurate.
17371
17372 Add a test suite for etags
17373 * test/etags/: New test suite, adapted from
17374 http://fly.isti.cnr.it/pub/software/unix/etags-regression-test.tar.bz2,
17375 whose original author is Francesco Potortì <pot@gnu.org>.
17376
17377 Fix tagging of symbols in C enumerations
17378 * lib-src/etags.c (consider_token): Don't tag symbols in
17379 expressions that assign values to enum constants. See
17380 http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00291.html
17381 for details.
17382 (C_entries): Reset fvdef to fvnone after processing a preprocessor
17383 conditional and after a comma outside of parentheses.
17384
17385 2015-05-12 Glenn Morris <rgm@gnu.org>
17386
17387 * lisp/url/url-handlers.el (url-file-name-completion)
17388 (url-file-name-all-completions): Silence compiler.
17389
17390 * lisp/emacs-lisp/chart.el (chart-axis-draw): Replace obsolete alias.
17391
17392 * lisp/play/dunnet.el (dun-dos-boot-msg): Fix time. (Bug#20554)
17393
17394 2015-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17395
17396 * lisp/emacs-lisp/cl-generic.el: Add dispatch on &context arguments
17397 (cl--generic-mandatory-args): Remove.
17398 (cl--generic-split-args): New function.
17399 (cl-generic-define, cl--generic-lambda): Use it.
17400 (cl-generic-define-method): Use it as well, and add support for
17401 context args.
17402 (cl--generic-get-dispatcher): Handle &context dispatch.
17403 (cl--generic-cache-miss): `dispatch-arg' can now be a
17404 context expression.
17405 (cl--generic-dispatchers): Pre-fill.
17406 * test/automated/cl-generic-tests.el (sm-generic-test-12-context):
17407 New test.
17408
17409 2015-05-11 Glenn Morris <rgm@gnu.org>
17410
17411 * make-dist: Abort if "make ChangeLog" fails. Add "--no-changelog".
17412
17413 2015-05-11 Stefan Monnier <monnier@iro.umontreal.ca>
17414
17415 * lisp/term/xterm.el: Fix xterm-paste handling for rxvt
17416 * lisp/term/rxvt.el: Require term/xterm.
17417 (rxvt-function-map): Use xterm-rxvt-function-map.
17418 (rxvt-standard-colors): Move before first use.
17419 (terminal-init-rxvt): Use xterm--push-map and
17420 xterm-register-default-colors.
17421 (rxvt-rgb-convert-to-16bit, rxvt-register-default-colors): Remove.
17422 * lisp/term/xterm.el (xterm-rxvt-function-map): New var.
17423 Move shared bindings between rxvt and xterm to it.
17424 (xterm-function-map): Use it. Move the xterm-paste binding to
17425 xterm-rxvt-function-map (bug#20444).
17426 (xterm-standard-colors): Move before first use.
17427 (xterm--push-map): New function.
17428 (xterm-register-default-colors): Take standard colors as argument.
17429 (terminal-init-xterm): Use it. Adjust call to
17430 xterm-register-default-colors.
17431
17432 2015-05-11 Glenn Morris <rgm@gnu.org>
17433
17434 * lisp/term/x-win.el: Quieten --without-x compilation.
17435 (x-own-selection-internal, x-disown-selection-internal)
17436 (x-selection-owner-p, x-selection-exists-p, x-get-selection-internal):
17437 Declare.
17438
17439 * Makefile.in (emacslog): Remove srcdir.
17440 (ChangeLog): Update for the above.
17441
17442 2015-05-10 Fabián Ezequiel Gallina <fgallina@gnu.org>
17443
17444 python.el: better limit for looking-back calls
17445 * lisp/progmodes/python.el (python-shell-accept-process-output):
17446 Use last comint prompt start as limit for looking-back.
17447
17448 2015-05-10 Stefan Monnier <monnier@iro.umontreal.ca>
17449
17450 CEDET (srecode-insert-fcn): Fix use of oref on a class
17451 * lisp/cedet/srecode/insert.el (srecode-insert-fcn): Fix use of oref
17452 on a class. Reported by Pierre Lorenzon.
17453 (srecode-template-inserter-point): Remove declaration.
17454
17455 CEDET (srecode-create-dictionary): Avoid obsolete object name
17456 * lisp/cedet/srecode/dictionary.el (srecode-create-dictionary):
17457 Don't use a symbol as an object name. Reported by Pierre Lorenzon.
17458
17459 2015-05-10 Paul Eggert <eggert@cs.ucla.edu>
17460
17461 C-x 8 shorthands for curved quotes, Euro, etc.
17462 Although C-x 8 lets you insert arbitrary Unicode characters,
17463 it's awkward to use this to insert commonly used symbols such as curved
17464 quotes, the Euro symbol, etc. This patch adds simpler sequences for
17465 characters commonly found in English text and in basic math.
17466 For example, assuming the Alt key works on your keyboard and iso-transl
17467 is loaded, one can now type "A-[" instead of "A-RET LEFT SIN TAB RET"
17468 to get the character "‘" (U+2018 LEFT SINGLE QUOTATION MARK).
17469 (Bug#20499)
17470 * doc/emacs/mule.texi (Unibyte Mode):
17471 A few other printing characters now work too.
17472 * etc/NEWS: Document this.
17473 * lisp/international/iso-transl.el (iso-transl-char-map):
17474 Also support the following characters:
17475 ‐ ‑ ‒ – — ― ‘ ’ “ ” † ‡ • ′ ″ € № ← → ↔ − ≈ ≠ ≤ ≥
17476
17477 2015-05-10 Dmitry Gutov <dgutov@yandex.ru>
17478
17479 Add xref-find-regexp
17480 * lisp/progmodes/xref.el (xref-find-function): Describe the
17481 `matches' action.
17482 (xref-find-regexp): New command, using it.
17483 (xref-collect-references): Rename to xref-collect-matches.
17484 (xref--collect-reference): Rename to xref--collect-match.
17485 (xref-collect-matches, xref--collect-match): Accept new argument,
17486 KIND. Update accordingly.
17487 (xref--regexp-to-extended): New function.
17488 * lisp/progmodes/elisp-mode.el (elisp-xref-find): Support the
17489 `matches' action.
17490 (elisp--xref-find-matches): Accept new argument. Resolve a FIXME.
17491 * lisp/progmodes/etags.el (etags-xref-find):
17492 Support the `matches' action.
17493 (etags--xref-find-matches): New function.
17494
17495 2015-05-10 Glenn Morris <rgm@gnu.org>
17496
17497 * Makefile.in: Fixes for recent change-history changes.
17498 (change-history-nocommit): Update footer regexp.
17499 Ensure output script stays executable.
17500
17501 2015-05-10 Nicolas Petton <nicolas@petton.fr>
17502
17503 New version of `seq-let' based on a pcase pattern
17504 * lisp/emacs-lisp/seq.el (seq-let): Define the macro in terms of a
17505 pcase pattern if `pcase-defmacro' is defined (Emacs>=25.1).
17506
17507 2015-05-10 Przemysław Wojnowski <esperanto@cumego.com>
17508
17509 Add basic HTML5 tags and a template
17510 * lisp/textmodes/sgml-mode.el: Basic HTML5 support.
17511 (html-tag-alist): Add HTML5 tags.
17512 (html-tag-help): Add new tags descriptions.
17513 (html-navigational-links): Template for nav links.
17514 (html-html5-template): Template for a HTML5 page.
17515
17516 2015-05-10 Dmitry Gutov <dgutov@yandex.ru>
17517
17518 semantic/symref/grep: Don't use word boundaries
17519 * lisp/cedet/semantic/symref/grep.el
17520 (semantic-symref-perform-search): Instead of wrapping input in
17521 word boundaries, check that the characters before and after are
17522 not word constituents.
17523
17524 semantic/symref/grep: Support regexp search
17525 * lisp/cedet/semantic/symref.el
17526 (semantic-symref-hit-to-tag-via-buffer): Don't regexp-quote when
17527 the search type is regexp.
17528 * lisp/cedet/semantic/symref/grep.el
17529 (semantic-symref-perform-search): Support the regexp search type.
17530 Pass -E to Grep when it's used.
17531
17532 semantic-symref-regexp: Allow to input an arbitrary string
17533 * lisp/cedet/semantic/symref/list.el (semantic-symref-regexp):
17534 Allow to input an arbitrary string interactively.
17535
17536 Remove tag-symbol-match-p from etags-xref-find-definitions-tag-order
17537 * lisp/progmodes/etags.el (etags-xref-find-definitions-tag-order):
17538 Remove tag-symbol-match-p from the default value
17539 (http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00292.html).
17540
17541 Declare find-tag obsolete
17542 * lisp/progmodes/etags.el (find-tag): Declare obsolete in favor of
17543 xref-find-definitions.
17544
17545 2015-05-10 Jan D <jan.h.d@swipnet.se>
17546
17547 Draw composite string correctly (Bug#20537)
17548 * src/nsterm.m (ns_draw_composite_glyph_string_foreground):
17549 New function.
17550 (ns_draw_glyph_string): Call it.
17551
17552 2015-05-09 Eli Zaretskii <eliz@gnu.org>
17553
17554 Avoid infloop in ERC
17555 * lisp/simple.el (line-move-to-column): Ignore field boundaries
17556 while computing line beginning position. (Bug#20498)
17557
17558 2015-05-08 Glenn Morris <rgm@gnu.org>
17559
17560 * Makefile.in (ChangeLog): No longer pass "srcprefix"; cd instead.
17561 * build-aux/gitlog-to-emacslog: Check called from right directory.
17562 (srcprefix): Remove.
17563
17564 * build-aux/gitlog-to-emacslog: Get rid of "distprefix".
17565 * Makefile.in (ChangeLog): No longer pass "distprefix".
17566 * make-dist: Update "make ChangeLog" syntax for the above change.
17567
17568 * build-aux/gitlog-to-emacslog: Don't hard-code "ChangeLog.2".
17569 * Makefile.in (ChangeLog): Pass -n to gitlog-to-emacslog.
17570
17571 * build-aux/gitlog-to-emacslog: Add "for earlier changes" to footer.
17572
17573 Add command-line option-parsing to gitlog-to-emacslog
17574 * build-aux/gitlog-to-emacslog: Add command-line options.
17575 By default, refuse to remove an existing output file.
17576 * Makefile.in (CHANGELOG): Update default.
17577 (ChangeLog): Do not test for existing file.
17578 (change-history-nocommit): Ensure temp file does not exist.
17579
17580 Quieten --without-x compilation
17581 * lisp/term/common-win.el: Provide a feature.
17582 * lisp/term/x-win.el (term/common-win): Require it.
17583
17584 * lisp/dired-aux.el (dired-do-print): Require lpr.
17585
17586 Quieten compilation, eg in --without-x builds
17587 * lisp/dired-aux.el (lpr-printer-switch):
17588 * lisp/frame.el (tool-bar-height):
17589 * lisp/linum.el (font-info):
17590 * lisp/window.el (font-info, overflow-newline-into-fringe)
17591 (tool-bar-height):
17592 * lisp/emacs-lisp/package-x.el (tar-data-buffer):
17593 * lisp/gnus/gnus-util.el (iswitchb-mode):
17594 * lisp/mail/rmailmm.el (libxml-parse-html-region):
17595 * lisp/net/nsm.el (gnutls-peer-status)
17596 (gnutls-peer-status-warning-describe):
17597 * lisp/net/shr.el (libxml-parse-xml-region):
17598 * lisp/url/url-http.el (gnutls-peer-status): Declare.
17599
17600 2015-05-08 Stefan Monnier <monnier@iro.umontreal.ca>
17601
17602 CEDET (srecode-pop, srecode-peek): Don't use `subclass'
17603 * lisp/cedet/srecode/insert.el (srecode-pop, srecode-peek): Don't use
17604 `subclass' since they're never called with a class.
17605 (srecode-insert-method, srecode-insert-subtemplate): Avoid obsolete
17606 srecode-dictionary-child-p.
17607
17608 2015-05-08 Nicolas Richard <theonewiththeevillook@yahoo.fr>
17609
17610 * lisp/help.el (help--binding-locus): Document argument POSITION.
17611 (Bug#20530)
17612
17613 2015-05-08 Paul Eggert <eggert@cs.ucla.edu>
17614
17615 Merge from gnulib
17616 * doc/misc/texinfo.tex: Get latest version.
17617
17618 2015-05-08 Oleh Krehel <ohwoeowho@gmail.com>
17619
17620 ffap.el (ffap-read-file-or-url): Fix completing-read call
17621 * lisp/ffap.el (ffap-read-file-or-url): The HIST argument of
17622 `completing-read' should be a symbol.
17623
17624 2015-05-08 Eli Zaretskii <eliz@gnu.org>
17625
17626 Verify file modifications by other programs
17627 * src/filelock.c (lock_file): Check whether the file was modified
17628 since it was visited even if 'create-lockfiles' is nil. (Bug#18828)
17629
17630 Fix keyboard macros that include function keys
17631 * src/keyboard.c (read_char_minibuf_menu_prompt): Record function
17632 keys in the macro before returning. (Bug#20454)
17633
17634 2015-05-08 Glenn Morris <rgm@gnu.org>
17635
17636 * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
17637 "Copyright-paperwork-exempt". (Bug#20324)
17638
17639 * lisp/vc/log-edit.el: Handle "(tiny change)". (Bug#20324)
17640 (log-edit-rewrite-tiny-change): New variable.
17641 (log-edit-insert-changelog): Maybe add "Copyright-paperwork-exempt".
17642 (log-edit-changelog-ours-p): Set log-edit-author to a cons.
17643 * etc/NEWS: Mention this.
17644
17645 * lisp/calc/calc.el (math-zerop): Declare.
17646
17647 * lisp/emacs-lisp/eieio-opt.el (help-fns-short-filename): Declare.
17648
17649 2015-05-07 Artur Malabarba <bruce.connor.am@gmail.com>
17650
17651 * lisp/emacs-lisp/subr-x.el (if-let): Fix debug spec.
17652 Support the case when BINDINGS is a single tuple. (Bug#20525)
17653
17654 * etc/NEWS: Fix typo in previous commit
17655 (14bb519f1034ddb38ce375cbad7095d9b07f8b26).
17656
17657 2015-05-07 Jan D <jan.h.d@swipnet.se>
17658
17659 * configure.ac: Warn for multiple display crash for all Gtk+ versions.
17660 Output URL to Gtk+ bug (Bug#20452).
17661
17662 * lisp/term/ns-win.el (ns-paste-secondary): Use gui-get-selection.
17663
17664 2015-05-07 Artur Malabarba <bruce.connor.am@gmail.com>
17665
17666 * lisp/emacs-lisp/package.el: New "external" package status.
17667 An external package is any installed package that's not built-in
17668 and not from `package-user-dir', which usually means it's from an
17669 entry in `package-directory-list'. They are treated much like
17670 built-in packages, in that they cannot be through the Package Menu
17671 deleted and are not considered for upgrades.
17672 (package-desc-status): Identify if a package is installed outside
17673 `package-user-dir'.
17674 (package-menu--print-info-simple)
17675 (package-menu--status-predicate): Add support for it.
17676 * etc/NEWS: Document it.
17677
17678 2015-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17679
17680 * lisp/mail/rmail.el: Use lexical-binding.
17681 (rmail-bury): Remove unused var `buffer-to-bury'.
17682 (rmail-get-new-mail): Remove unused vars `opoint' and `success'.
17683 (rmail-parse-url): Remove unused var `proto', `user', and `host'.
17684 (rmail-unrmail-new-mail-maybe): Remove unused var `new-file'.
17685 (rmail-insert-inbox-text): Remove unused var `movemail'.
17686 (rmail-add-mbox-headers): Remove unused var `limit'.
17687 (rmail-undelete-previous-message): Remove unused var `value'.
17688 (rmail-reply): Remove unused vars `resent-to', `resent-cc',
17689 `resent-reply-to'.
17690 (rmail-mime-mbox-buffer, rmail-mime-view-buffer): Declare.
17691 (rmail-restore-desktop-buffer): Rename arguments.
17692
17693 2015-05-06 Glenn Morris <rgm@gnu.org>
17694
17695 * Makefile.in (change-history-commit): Add missing piece of previous.
17696
17697 Avoid unnecessary bumping of Makefile.in's timestamp
17698 * Makefile.in (gen_origin): Move to gitlog-to-emacslog.
17699 (emacslog): New variable.
17700 (ChangeLog): Use $emacslog. Don't pass $gen_origin.
17701 (unchanged-history-files): Use $emacslog rather than Makefile.in.
17702 (change-history-nocommit): Store hash in $emacslog.
17703 * build-aux/gitlog-to-emacslog (gen_origin): Move default here.
17704 * admin/update_autogen (changelog_files): Update for the above.
17705
17706 * Makefile.in: Don't always insist on removing existing "ChangeLog".
17707 (CHANGELOG): New variable.
17708 (no-ChangeLog): Remove.
17709 (ChangeLog): Replace "no-ChangeLog"; pass output file to script.
17710 (change-history-nocommit): Use a temp file rather than insisting
17711 on deletion of any existing "ChangeLog".
17712
17713 * build-aux/gitlog-to-emacslog: Allow specification of output.
17714
17715 * admin/update_autogen: Add option to update ChangeLog.
17716 (usage): Mention -H.
17717 (changelog_flag, changelog_n, changelog_files): New variables.
17718 (main): Check for -H, and maybe run change-history-nocommit.
17719
17720 2015-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17721
17722 * lisp/subr.el (delete-dups): Pre-size the hashtable.
17723
17724 * lisp/emacs-lisp/cl.el (define-modify-macro): Make sure
17725 cl--arglist-args is defined (bug#20517).
17726
17727 2015-05-06 Glenn Morris <rgm@gnu.org>
17728
17729 * Makefile.in (change-history-nocommit): New.
17730
17731 2015-05-06 Dmitry Gutov <dgutov@yandex.ru>
17732
17733 * lisp/cedet/pulse.el (pulse-momentary-unhighlight): Only cancel
17734 timer when it is non-nil
17735 (http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00223.html).
17736
17737 2015-05-06 Glenn Morris <rgm@gnu.org>
17738
17739 Quieten CEDET compilation
17740 * lisp/cedet/semantic/db-el.el (semanticdb-elisp-sym->tag):
17741 Invert fboundp test to quieten on current Emacs.
17742 * lisp/cedet/ede/config.el (ede-shell-run-something)
17743 (semanticdb-file-table-object, semanticdb-needs-refresh-p)
17744 (semanticdb-refresh-table): Declare.
17745 (ede-preprocessor-map): Require semantic/db.
17746
17747 Quieten cc-mode compilation
17748 * lisp/progmodes/cc-awk.el (c-forward-sws):
17749 * lisp/progmodes/cc-cmds.el (c-forward-subword, c-backward-subword):
17750 Declare.
17751
17752 2015-05-06 Oleh Krehel <ohwoeowho@gmail.com>
17753
17754 * lisp/subr.el (delete-dups): Avoid nreverse.
17755
17756 2015-05-06 Artur Malabarba <bruce.connor.am@gmail.com>
17757
17758 * lisp/subr.el (delete-dups): Make it destructive again.
17759
17760 2015-05-06 Paul Eggert <eggert@cs.ucla.edu>
17761
17762 * doc/lispref/sequences.texi (Sequence Functions): Fix quoting.
17763
17764 2015-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17765
17766 * lisp/emacs-lisp/testcover.el: Don't use edebug--read (bug#20487).
17767 * lisp/emacs-lisp/testcover.el: Use lexical-binding.
17768 (testcover--read): Rename from testcover-read. Change calling
17769 convention. Use edebug-read-and-maybe-wrap-form now that edebug-read
17770 is gone.
17771 (testcover-start): Use add-function. Move edebug-all-defs binding to
17772 testcover--read.
17773 (testcover-this-defun): Tighten scope of edebug-all-defs binding.
17774 (testcover-mark): Remove unused var `item'.
17775 * src/lread.c (syms_of_lread): Default load-read-function to `read'.
17776
17777 2015-05-06 Oleh Krehel <ohwoeowho@gmail.com>
17778
17779 * lisp/subr.el (delete-dups): When there are more than 100 candidates,
17780 use a hash table. This can result in ~500 times speed-up for typical
17781 collections of size 5000, like that of `load-library'.
17782
17783 2015-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17784
17785 CEDET: Avoid `oref' on classes in a few more cases
17786 * lisp/cedet/ede/generic.el (ede-find-target):
17787 * lisp/cedet/ede.el (ede-project-forms-menu): Avoid `oref' on classes.
17788 * lisp/cedet/semantic/bovine/gcc.el (semantic-gcc-setup): Remove unused
17789 var `prefix'.
17790
17791 * lisp/cedet/semantic/symref/grep.el: Fix unused var warnings.
17792 (grepflags, greppattern): Declare.
17793 (semantic-symref-perform-search): Remove unused var `pat'.
17794
17795 CEDET (srecode-compile-inserter): Avoid `oref' on classes
17796 * lisp/cedet/srecode/compile.el (srecode-compile-inserter):
17797 Avoid `oref' on classes (bug#20491).
17798 (srecode-compile-split-code): Remove unused var `key'.
17799
17800 2015-05-06 Dmitry Gutov <dgutov@yandex.ru>
17801
17802 Clean up pulse.el a little
17803 * lisp/cedet/pulse.el (pulse): Remove.
17804 (pulse-momentary-timer): Save instead of the stop time.
17805 (pulse-momentary-highlight-overlay):
17806 Call pulse-momentary-unhighlight first thing.
17807 Treat pulse-momentary-overlay as a single value, not a list.
17808 Save the created timer. Only pass the stop time to the timer.
17809 (pulse-tick): Update accordingly.
17810 (pulse-momentary-unhighlight): Treat pulse-momentary-overlay as a
17811 single value. Cancel the timer.
17812
17813 2015-05-06 Tassilo Horn <tsdh@gnu.org>
17814
17815 * lisp/textmodes/reftex-cite.el (reftex-format-bib-entry):
17816 Support the biblatex journaltitle field.
17817
17818 2015-05-05 Glenn Morris <rgm@gnu.org>
17819
17820 Minor declare-function improvement
17821 * lisp/emacs-lisp/bytecomp.el
17822 (byte-compile-macroexpand-declare-function):
17823 Handle declarations after calls. (Bug#20509)
17824
17825 * lisp/progmodes/js.el (js--optimize-arglist): Remove declaration.
17826
17827 * lisp/w32-fns.el (w32-shell-name): Silence compiler.
17828
17829 2015-05-05 Dmitry Gutov <dgutov@yandex.ru>
17830
17831 Pulse using a timer
17832 * lisp/cedet/pulse.el (pulse-momentary-stop-time): New variable.
17833 (pulse-momentary-highlight-overlay): Set up the timer instead of
17834 calling `pulse'
17835 (http://lists.gnu.org/archive/html/emacs-devel/2015-05/).
17836 (pulse-tick): New function.
17837 (pulse-momentary-unhighlight): Cut off the stop time.
17838 (pulse-delay): Update the docstring WRT to not using sit-for.
17839
17840 Add semantic/symref/grep file patterns for ruby-mode
17841 * lisp/cedet/semantic/symref/grep.el
17842 (semantic-symref-filepattern-alist): Add patterns for ruby-mode.
17843 Clarify the docstring.
17844
17845 Don't require match
17846 * lisp/progmodes/xref.el (xref--read-identifier): Don't require
17847 match. That doesn't work for every command, and some identifier
17848 completion tables are bound to be imperfect anyway.
17849
17850 2015-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17851
17852 * lisp/cedet/semantic/grammar.el: Fix compiler warnings (bug#20505).
17853 (semantic-grammar--template-expand): New function.
17854 (semantic-grammar-header, semantic-grammar-footer): Use it.
17855 (semantic-grammar--lex-block-specs): Remove unused var `block-spec'.
17856 (semantic-grammar-file-regexp): Refine regexp.
17857 (semantic-grammar-eldoc-get-macro-docstring):
17858 Use elisp-get-fnsym-args-string when available.
17859 (semantic-idle-summary-current-symbol-info): Use new elisp-* names
17860 instead of the old eldoc-* names.
17861 * lisp/emacs-lisp/eldoc.el (eldoc-docstring-format-sym-doc): Move back
17862 from elisp-mode.el. Tweak calling convention.
17863 * lisp/progmodes/elisp-mode.el (package-user-dir): Declare.
17864 (elisp-get-fnsym-args-string): Add `prefix' argument. Rename from
17865 elisp--get-fnsym-args-string.
17866 (elisp--highlight-function-argument): Add `prefix' arg.
17867 (elisp-get-var-docstring): Rename from elisp--get-var-docstring.
17868 (elisp--docstring-format-sym-doc): Move back to eldoc.el.
17869
17870 2015-05-05 Glenn Morris <rgm@gnu.org>
17871
17872 * lisp/help-fns.el (describe-function-1):
17873 Handle builtins with advertised calling conventions. (Bug#20479)
17874
17875 2015-05-05 Nicolas Petton <nicolas@petton.fr>
17876
17877 Merge branch 'seq-let'
17878
17879 Update `seq-let' documentation
17880 * doc/lispref/sequences.texi: Update the documentation of `seq-let'
17881 with the support of `&rest'.
17882
17883 Add support for &rest in `seq-let'
17884 * lisp/emacs-lisp/seq.el (seq--make-bindings): Add support for `&rest'
17885 in the argument list.
17886 * test/automated/seq-tests.el: Add a test for parsing and binding
17887 `&rest' in `seq-let'.
17888
17889 2015-05-05 Pierre Lorenzon <devel@pollock-nageoire.net> (tiny change)
17890
17891 * lisp/emacs-lisp/eieio-custom.el (eieio-object-value-get):
17892 Add missing increment (Bug#20467).
17893 (eieio-object-value-create): Adjust to new slots representation
17894 (Bug#20467).
17895 (eieio-object-value-create): Fix missed adjustment to new
17896 representation of slots metadata.
17897
17898 2015-05-05 Nicolas Petton <nicolas@petton.fr>
17899
17900 * lisp/emacs-lisp/seq.el (seq--make-bindings): Improve the docstring.
17901
17902 2015-05-05 Dmitry Gutov <dgutov@yandex.ru>
17903
17904 Work around "Attempt to modify read-only object"
17905 * lisp/progmodes/elisp-mode.el (elisp--xref-format): Extract from
17906 elisp--xref-find-definitions, to work around "Attempt to modify
17907 read-only object" error.
17908
17909 Only skip some variables that have function counterparts
17910 * lisp/progmodes/elisp-mode.el (elisp--xref-identifier-location):
17911 Only skip minor-mode-named variable if it's defined in a Lisp
17912 file, and it's in minor-mode-list (bug#20506).
17913 * test/automated/elisp-mode-tests.el
17914 (elisp-xref-finds-both-function-and-variable)
17915 (elisp-xref-finds-only-function-for-minor-mode): New tests.
17916
17917 2015-05-04 Dmitry Gutov <dgutov@yandex.ru>
17918
17919 * lisp/progmodes/xref.el (xref--location-at-point): Revert the
17920 previous change.
17921 (xref--insert-xrefs): Buttonize the whole line, including the
17922 number at the beginning.
17923
17924 * lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
17925 Make sure we're inside the let bindings.
17926 * test/automated/elisp-mode-tests.el
17927 (elisp-completes-functions-after-let-bindings): New test.
17928
17929 2015-05-04 Glenn Morris <rgm@gnu.org>
17930
17931 * lisp/cedet/semantic/grammar.el (eldoc-function-argstring)
17932 (eldoc-docstring-format-sym-doc, eldoc-last-data-store)
17933 (eldoc-get-fnsym-args-string, eldoc-get-var-docstring):
17934 Remove outdated declarations.
17935
17936 Replace instances of "(eval-when-compile (autoload ...))"
17937 * lisp/gnus/gnus-art.el (nneething-get-file-name):
17938 Declare rather than autoload.
17939 * lisp/gnus/gnus-async.el (gnus-html-prefetch-images):
17940 Remove pointless autoload.
17941 * lisp/gnus/gnus-sync.el (gnus-group-topic): Autoload at run-time.
17942 (gnus-topic-create-topic, gnus-topic-enter-dribble):
17943 Declare rather than autoload.
17944 * lisp/gnus/mm-archive.el (gnus-recursive-directory-files)
17945 (mailcap-extension-to-mime): Autoload at run-time.
17946 * lisp/gnus/mm-util.el (latin-unity-massage-name)
17947 (latin-unity-maybe-remap, latin-unity-representations-feasible-region)
17948 (latin-unity-representations-present-region):
17949 Declare rather than autoload.
17950 * lisp/gnus/mml-smime.el (epg-make-context)
17951 (epg-passphrase-callback-function): Autoload at run-time.
17952 (epg-context-set-signers, epg-context-result-for)
17953 (epg-new-signature-digest-algorithm)
17954 (epg-verify-result-to-string, epg-list-keys, epg-verify-string)
17955 (epg-sign-string, epg-encrypt-string)
17956 (epg-context-set-passphrase-callback, epg-sub-key-fingerprint)
17957 (epg-configuration, epg-expand-group, epa-select-keys):
17958 Declare rather than autoload.
17959 * lisp/gnus/nnir.el (nnimap-change-group, nnimap-make-thread-query):
17960 Autoload at run-time.
17961 (gnus-group-topic-name, nnimap-buffer, nnimap-command)
17962 (gnus-registry-get-id-key, gnus-registry-action):
17963 Declare rather than autoload.
17964 * lisp/gnus/nnmail.el (mail-send-and-exit): Autoload at run-time.
17965 * lisp/gnus/spam.el (spam-stat-buffer-change-to-non-spam)
17966 (spam-stat-buffer-change-to-spam, spam-stat-buffer-is-non-spam)
17967 (spam-stat-buffer-is-spam, spam-stat-load, spam-stat-save)
17968 (spam-stat-split-fancy): Remove pointless autoloads.
17969 * lisp/net/mairix.el: Load gnus-util when compiling.
17970 (gnus-group-read-ephemeral-group, gnus-summary-toggle-header)
17971 (message-field-value): Declare rather than autoload.
17972 (mairix-gnus-ephemeral-nndoc, mairix-gnus-fetch-field):
17973 Check gnus-alive-p is fbound.
17974 (vm-quit, vm-visit-folder, vm-select-folder-buffer)
17975 (vm-check-for-killed-summary, vm-error-if-folder-empty)
17976 (vm-get-header-contents, vm-select-marked-or-prefixed-messages):
17977 Declare rather than autoload.
17978
17979 * lisp/gnus/mm-view.el (epg-decrypt-string): Autoload.
17980
17981 * lisp/gnus/mml-smime.el (epg-key-sub-key-list)
17982 (epg-sub-key-capability, epg-sub-key-validity): Fix declarations.
17983
17984 * lisp/progmodes/elisp-mode.el (xref-collect-references): Declare.
17985
17986 * lisp/emacs-lisp/debug.el (help-xref-interned): Update declaration.
17987
17988 * lisp/allout.el (epg-user-id-string, epg-key-user-id-list):
17989 * lisp/emacs-lisp/package.el (epg-signature-status):
17990 Fix declarations.
17991
17992 * lisp/play/gametree.el (gametree-show-children-and-entry)
17993 (gametree-apply-layout, gametree-mouse-show-subtree)
17994 (gametree-mouse-hide-subtree): Replace obsolete outline aliases.
17995
17996 * lisp/emacs-lisp/check-declare.el (check-declare-verify):
17997 Handle cl-defgeneric, cl-defmethod.
17998
17999 2015-05-04 Dmitry Gutov <dgutov@yandex.ru>
18000
18001 * lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions):
18002 Highlight both type and symbol name.
18003
18004 Insert, highlight and align line numbers in xref output
18005 * lisp/progmodes/etags.el (xref-location-line): Specialize for
18006 xref-etags-location.
18007 * lisp/progmodes/xref.el (xref-location-line): New generic method.
18008 (xref-file-location): Add reader for the line slot.
18009 (xref--location-at-point): Skip to the `xref-location' property.
18010 (xref--collect-reference): Drop the line number from description.
18011 (xref--insert-xrefs): Insert, highlight and align line numbers.
18012
18013 2015-05-04 Daniel Colascione <dancol@dancol.org>
18014
18015 * lisp/simple.el (save-mark-and-excursion--save)
18016 (save-mark-and-excursion--restore): Fix previous commit
18017 (255a011f0ecf004b31c59945b10154b10fac3af1).
18018
18019 2015-05-04 Dmitry Gutov <dgutov@yandex.ru>
18020
18021 Don't pulse the indentation, or the newline
18022 * lisp/cedet/pulse.el (pulse-lighten-highlight)
18023 (pulse-reset-face): Fall back to the inherited background
18024 attribute in FACE.
18025 (pulse-momentary-highlight-region): Add autoload cookie.
18026 * lisp/progmodes/xref.el (xref--maybe-pulse): Don't highlight the
18027 indentation, or the newline, if the line's non-empty
18028 (http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00118.html).
18029
18030 2015-05-04 Daniel Colascione <dancol@dancol.org>
18031
18032 Add `save-mark-and-excursion', which has the old
18033 `save-excursion' behavior
18034 * doc/lispref/positions.texi (Excursions):
18035 Document `save-mark-and-excursion'.
18036 * lisp/font-lock.el (font-lock-fontify-block):
18037 Use `save-mark-and-excursion' instead of `save-excursion',
18038 restoring Emacs 24 behavior.
18039 * lisp/simple.el (save-mark-and-excursion--save)
18040 (save-mark-and-excursion--restore): New functions.
18041 (save-mark-and-excursion): New user macro.
18042 * src/editfns.c (Fsave_excursion): Mention `save-mark-and-excursion'
18043 in `save-excursion' documentation.
18044
18045 2015-05-04 Dmitry Gutov <dgutov@yandex.ru>
18046
18047 * lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
18048 Classify lone symbol inside let varlist as variable.
18049 * test/automated/elisp-mode-tests.el
18050 (completest-variables-in-let-bindings): New test.
18051
18052 Add xref-pulse-on-jump
18053 * lisp/cedet/pulse.el (pulse-momentary-highlight-one-line):
18054 Add autoload cookie.
18055 * lisp/progmodes/xref.el (xref-pulse-on-jump): New option.
18056 (xref--maybe-pulse): New function.
18057 (xref-pop-marker-stack, xref--pop-to-location)
18058 (xref--display-position): Use it.
18059 (xref--location-at-point): Use back-to-indentation.
18060
18061 2015-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
18062
18063 lisp/org/org-{macs,list}.el: Fix lexical warnings
18064 * lisp/org/org-list.el (org-list-struct): Remove unused var `ind'.
18065 (org-list-get-next-item, org-list-get-prev-item)
18066 (org-list-get-children): Mark unused arg `struct'.
18067 (org-list-use-alpha-bul-p): Remove unused var `bul'.
18068 (org-toggle-checkbox): Mark unused var.
18069 (org-update-checkbox-count): Remove unused var `box-num'.
18070 (org-adapt-indentation): Declare.
18071 (org-list-parse-list): Declare var instead of adding a dummy duplicate.
18072 (org-list-send-list): Remove unused var `txt'.
18073 (org-list-to-latex, org-list-to-texinfo): Mark unused arg `params'.
18074 (org-list-to-subtree): Add prefix to dyn-bind var, and declare them.
18075 * lisp/org/org-macs.el: Use `declare'.
18076 (org-with-limited-levels): Declare dyn-bound vars.
18077
18078 2015-05-04 Eli Zaretskii <eliz@gnu.org>
18079
18080 Fix minor issues with CEDET on MS-Windows
18081 * lisp/cedet/semantic/symref/idutils.el
18082 (semantic-symref-parse-tool-output-one-line): Fix the search
18083 regexp to match MS-Windows file names with drive letters.
18084 (Bug#19468)
18085 * lisp/cedet/semantic/symref/grep.el
18086 (semantic-symref-grep-use-template): Remove "--color=always" from
18087 Grep switches on MS-Windows.
18088 (semantic-symref-grep-shell): Use shell-file-name as the default
18089 value, so this works not only on Posix platforms.
18090 (semantic-symref-perform-search): Use shell-quote-argument instead
18091 of literal '..' for portable quoting of Grep command-line
18092 argument. Use shell-command-switch instead of a literal "-c".
18093 * lisp/cedet/semantic/bovine/gcc.el
18094 (semantic-gcc-get-include-paths): Use file-name-absolute-p to test
18095 for an absolute file name in a portable way.
18096
18097 2015-05-04 Artur Malabarba <bruce.connor.am@gmail.com>
18098
18099 * lisp/emacs-lisp/package.el: Remove `package--silence' variable.
18100 (package-import-keyring, package-refresh-contents)
18101 (package-compute-transaction, package--save-selected-packages)
18102 (package-install-from-archive, package-delete)
18103 (package-menu--perform-transaction): Use `inhibit-message' instead.
18104 (package--compile): Set `warning-minimum-level' to :error.
18105
18106 2015-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
18107
18108 * lisp/term/screen.el (xterm-screen-extra-capabilities): New custom.
18109 (terminal-init-screen): Use it (bug#20356).
18110 * lisp/term/xterm.el: Provide `term/xterm' instead of `xterm'.
18111 (xterm--extra-capabilities-type): New const.
18112 (xterm-extra-capabilities): Use it.
18113 (xterm--version-handler): Lower the pseudo-version for `screen'.
18114
18115 2015-05-03 Dmitry Gutov <dgutov@yandex.ru>
18116
18117 * lisp/progmodes/xref.el (xref--insert-xrefs): Tweak the faces.
18118 Always insert a newline at the end (to avoid mouse-face background
18119 tail at the last line).
18120
18121 elisp-completion-at-point: Prioritize being quoted over funpos
18122 * lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
18123 Only consider function position when not inside quoted form
18124 (bug#20425).
18125 * test/automated/elisp-mode-tests.el: New file.
18126
18127 Stop vc-print-log from jumping to the top
18128 * lisp/vc/vc.el (vc-print-log-internal): Pass nil
18129 GOTO-LOCATION-FUNC to vc-log-internal-common when WORKING-REVISION
18130 is not specified.
18131 (vc-incoming-outgoing-internal): Always pass nil.
18132 (vc-log-internal-common): When GOTO-LOCATION-FUNC is nil, don't
18133 call it, and don't set vc-sentinel-movepoint (bug#15322).
18134 (vc-print-root-log): Don't fetch the root working revision, nor
18135 pass it to vc-print-log-internal.
18136
18137 2015-05-02 Michael Vehrs <Michael.Burschik@gmx.de>
18138
18139 Fix display of keyboard layouts for right-to-left scripts
18140 * lisp/international/quail.el (quail-insert-kbd-layout):
18141 Force left-to-right paragraph direction.
18142
18143 2015-05-02 K. Handa <handa@gnu.org>
18144
18145 * src/cmds.c (internal_self_insert): When we insert spaces for
18146 padding, set point before the padding spaces, not after them.
18147
18148 2015-05-02 Nicolas Petton <nicolas@petton.fr>
18149
18150 * lisp/emacs-lisp/seq.el (seq-p): New alias to `sequencep'.
18151
18152 2015-05-02 Dmitry Gutov <dgutov@yandex.ru>
18153
18154 Fix etags-xref-find for references
18155 * lisp/progmodes/elisp-mode.el (elisp--xref-find-references):
18156 Use `cl-mapcan'.
18157 * lisp/progmodes/etags.el (etags-xref-find): Ditto. Prompt for
18158 directory if no tags tables are loaded (bug#19468).
18159
18160 2015-05-02 Philipp Stephani <phst@google.com>
18161
18162 Update the options in whitespace-style defcustom
18163 * lisp/whitespace.el (whitespace-style): Use `set' instead of a
18164 `repeat' because the option is really set-like. Add missing
18165 options. Reorder options to match the order in the
18166 documentation. (Bug#20346)
18167
18168 2015-05-02 Eli Zaretskii <eliz@gnu.org>
18169
18170 Fix error diagnostics of c-macro-expand
18171 * lisp/progmodes/cmacexp.el (c-macro-expansion): Don't bail out
18172 too early if no start-marker string was found -- that generally
18173 means cpp exited abnormally, and we still want to show its error
18174 messages to the user.
18175
18176 Don't require Texinfo 5.0 for Emacs documentation
18177 * doc/emacs/docstyle.texi: Use "@set txicodequoteundirected" and
18178 "@set txicodequotebacktick" instead of "@codequotebacktick on" and
18179 "@codequoteundirected on", respectively, to avoid requiring
18180 Texinfo 5.x for Emacs documentation.
18181
18182 2015-05-01 Simen Heggestøyl <simenheg@gmail.com>
18183
18184 * lisp/files.el (pwd):
18185 When called with a prefix argument, insert the current default
18186 directory at point.
18187
18188 2015-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
18189
18190 * lisp/isearch.el (isearch-mode-map): Allow backspace remapping
18191 * lisp/isearch.el (isearch-mode-map): Don't inhibit
18192 function-key-map remapping for backspace (bug#20466).
18193
18194 2015-05-01 Dmitry Gutov <dgutov@yandex.ru>
18195
18196 Implement xref-find-references in etags and elisp-mode
18197 * lisp/progmodes/elisp-mode.el (elisp--xref-find-references): New function.
18198 (elisp-xref-find): Use it.
18199 * lisp/progmodes/etags.el (etags-xref-find): Use `xref-collect-references'.
18200 * lisp/progmodes/xref.el (xref-collect-references):
18201 (xref--collect-reference): New functions.
18202
18203 2015-05-01 Paul Eggert <eggert@cs.ucla.edu>
18204
18205 Prefer plain characters to Texinfo circumlocutions
18206 For example, prefer 'François' to 'Fran\c{c}ois', 'Fran\c cois',
18207 'Fran@,{c}ois' or 'Francois' (all of which were used!) in Texinfo sources.
18208
18209 Fix single-quoting style in PDF manuals
18210 The PDF versions of the GNU manuals used curved single quotes to
18211 represent grave accent and apostrophe, which made it a pain to cut
18212 and paste code examples from them. Fix the PDF versions to use
18213 grave accent and apostrophe for Lisp source code, keystrokes, etc.
18214 This change does not affect the info files, nor does it affect
18215 ordinary uses of curved single quotes in PDF.
18216 * doc/emacs/docstyle.texi: New file, which specifies treatment for
18217 grave accent and apostrophe, as well as the document encoding.
18218 * doc/emacs/emacs-xtra.texi, doc/emacs/emacs.texi:
18219 * doc/lispintro/emacs-lisp-intro.texi:
18220 * doc/lispref/back.texi, doc/lispref/book-spine.texi:
18221 * doc/lispref/elisp.texi, doc/lispref/lay-flat.texi:
18222 * doc/misc/ada-mode.texi, doc/misc/auth.texi:
18223 * doc/misc/autotype.texi, doc/misc/bovine.texi, doc/misc/calc.texi:
18224 * doc/misc/cc-mode.texi, doc/misc/cl.texi, doc/misc/dbus.texi:
18225 * doc/misc/dired-x.texi, doc/misc/ebrowse.texi, doc/misc/ede.texi:
18226 * doc/misc/ediff.texi, doc/misc/edt.texi, doc/misc/efaq-w32.texi:
18227 * doc/misc/efaq.texi, doc/misc/eieio.texi, doc/misc/emacs-gnutls.texi:
18228 * doc/misc/emacs-mime.texi, doc/misc/epa.texi, doc/misc/erc.texi:
18229 * doc/misc/ert.texi, doc/misc/eshell.texi, doc/misc/eudc.texi:
18230 * doc/misc/eww.texi, doc/misc/flymake.texi, doc/misc/forms.texi:
18231 * doc/misc/gnus-coding.texi, doc/misc/gnus-faq.texi:
18232 * doc/misc/gnus.texi, doc/misc/htmlfontify.texi:
18233 * doc/misc/idlwave.texi, doc/misc/ido.texi, doc/misc/info.texi:
18234 * doc/misc/mairix-el.texi, doc/misc/message.texi, doc/misc/mh-e.texi:
18235 * doc/misc/newsticker.texi, doc/misc/nxml-mode.texi:
18236 * doc/misc/octave-mode.texi, doc/misc/org.texi, doc/misc/pcl-cvs.texi:
18237 * doc/misc/pgg.texi, doc/misc/rcirc.texi, doc/misc/reftex.texi:
18238 * doc/misc/remember.texi, doc/misc/sasl.texi, doc/misc/sc.texi:
18239 * doc/misc/semantic.texi, doc/misc/ses.texi, doc/misc/sieve.texi:
18240 * doc/misc/smtpmail.texi, doc/misc/speedbar.texi:
18241 * doc/misc/srecode.texi, doc/misc/todo-mode.texi, doc/misc/tramp.texi:
18242 * doc/misc/url.texi, doc/misc/vhdl-mode.texi, doc/misc/vip.texi:
18243 * doc/misc/viper.texi, doc/misc/widget.texi, doc/misc/wisent.texi:
18244 * doc/misc/woman.texi:
18245 Use it instead of '@documentencoding UTF-8', to lessen the need for
18246 global changes like this in the future.
18247 * doc/emacs/Makefile.in (EMACS_XTRA):
18248 * doc/lispintro/Makefile.in (srcs):
18249 * doc/lispref/Makefile.in (srcs):
18250 Add dependency on docstyle.texi.
18251 * doc/misc/Makefile.in (style): New macro.
18252 (${buildinfodir}/%.info, %.dvi, %.pdf, %.html)
18253 (${buildinfodir}/ccmode.info, ${buildinfodir}/efaq%.info, gnus_deps):
18254 Use it.
18255
18256 2015-05-01 Glenn Morris <rgm@gnu.org>
18257
18258 * test/automated/cl-lib-tests.el (cl-lib-adjoin-test): Fix it.
18259
18260 * lisp/emacs-lisp/pcase.el (get-edebug-spec, edebug-match)
18261 (help-fns--signature): Declare.
18262
18263 * lisp/emacs-lisp/pcase.el (pcase--make-docstring): Require help-fns.
18264
18265 2015-05-01 Nicolas Petton <nicolas@petton.fr>
18266
18267 New macro seq-let, providing destructuring support to seq.el
18268 * lisp/emacs-lisp/seq.el (seq-let): New macro. `seq-let' is similar
18269 to `cl-destructuring-bind' but works on all sequence types supported
18270 by `seq.el'. Bump version number to 1.6.
18271 * test/automated/seq-tests.el: Add tests for seq-let.
18272 * doc/lispref/sequences.texi: Add documentation for seq-let.
18273
18274 2015-05-01 Pontus Michael <m.pontus@gmail.com>
18275
18276 * lisp/simple.el (blink-matching-open): Better behavior in minibuffer.
18277
18278 2015-05-01 Glenn Morris <rgm@gnu.org>
18279
18280 * lisp/emacs-lisp/ert.el (ert--special-operator-p): Fix previous.
18281
18282 2015-05-01 Artur Malabarba <bruce.connor.am@gmail.com>
18283
18284 * lisp/emacs-lisp/bytecomp.el: Revert "Silence noninteractive compilations"
18285 This reverts commit 9a7ddde977378cb5276a81476ae458889c403267.
18286 This reverts commit 3c0ea587daf8b17960b90603a70e3ac4057d883d.
18287 With message: "* lisp/emacs-lisp/bytecomp.el: Use `inhibit-message'".
18288 (Bug#20445).
18289
18290 2015-05-01 K. Handa <handa@gnu.org>
18291
18292 * lisp/international/mule-cmds.el (input-method-use-echo-area):
18293 Change :type to 'boolean.
18294
18295 2015-05-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
18296
18297 Start using proportional fonts in eww by default
18298 * lisp/net/shr.el (shr-use-fonts): Switch the default to t, since
18299 it seems to work well.
18300
18301 Fix links in tables in shr
18302 * lisp/net/shr.el: Remove `shr-inhibit-decoration', because that
18303 makes (some) links in tables not work.
18304
18305 2015-05-01 Jan D <jan.h.d@swipnet.se>
18306
18307 * lisp/term/ns-win.el (ns-get-cut-buffer-internal): Remove this alias.
18308
18309 2015-04-30 Glenn Morris <rgm@gnu.org>
18310
18311 * lisp/emacs-lisp/ert.el (ert--special-operator-p):
18312 Update for 2015-02-08 change to indirect-function.
18313
18314 * lisp/term/ns-win.el (ns-get-selection-internal):
18315 Remove declaration for function deleted 2014-10-21.
18316
18317 * lisp/dom.el: Load subr-x when compiling, for when-let.
18318
18319 Silence some compilation warnings
18320 * lisp/emacs-lisp/check-declare.el (compilation-forget-errors):
18321 * lisp/emulation/cua-base.el (delete-active-region):
18322 * lisp/net/net-utils.el (w32-get-console-output-codepage):
18323 * lisp/term/ns-win.el (ns-own-selection-internal)
18324 (ns-disown-selection-internal, ns-selection-owner-p)
18325 (ns-selection-exists-p, ns-get-selection):
18326 Declare for compiler.
18327
18328 Function declaration updates prompted by 'make check-declare'
18329 * lisp/emacs-lisp/package.el (lm-homepage):
18330 * lisp/gnus/gnus-util.el (iswitchb-read-buffer):
18331 * lisp/gnus/mm-decode.el (libxml-parse-html-region):
18332 * lisp/gnus/mml.el (libxml-parse-html-region):
18333 * lisp/gnus/nnrss.el (libxml-parse-html-region):
18334 * lisp/net/eww.el (libxml-parse-html-region):
18335 * lisp/net/shr.el (libxml-parse-html-region):
18336 * lisp/vc/vc-bzr.el (vc-annotate-convert-time):
18337 * lisp/vc/vc-cvs.el (vc-annotate-convert-time):
18338 * lisp/vc/vc-git.el (vc-annotate-convert-time):
18339 * lisp/vc/vc-hg.el (vc-annotate-convert-time):
18340 * lisp/vc/vc-mtn.el (vc-annotate-convert-time):
18341 * lisp/vc/vc-rcs.el (vc-annotate-convert-time):
18342 Update declaration.
18343
18344 Remove compatibility code for 20-year old function renaming
18345 * lisp/progmodes/idlw-shell.el (idlwave-shell-comint-filter):
18346 Make it an obsolete alias.
18347 (idlwave-shell-filter): Change all uses to comint-output-filter.
18348
18349 2015-04-30 Tassilo Horn <tsdh@gnu.org>
18350
18351 Add ace-window face config
18352 * etc/themes/tsdh-light-theme.el (tsdh-light): Add ace-window face
18353 configuration.
18354
18355 2015-04-30 Paul Eggert <eggert@cs.ucla.edu>
18356
18357 Unclutter 'make doc' output a bit
18358 * Makefile.in ($(DOCS), $(INSTALL_DOC), $(UNINSTALL_DOC)):
18359 Use make subst rather than sh IFS to split target string apart.
18360 This makes 'make' output easier to follow.
18361
18362 Merge from gnulib
18363 * doc/misc/texinfo.tex: Update from gnulib.
18364
18365 2015-04-30 Artur Malabarba <bruce.connor.am@gmail.com>
18366
18367 * lisp/emacs-lisp/package.el: Some speed optimizations on menu refresh.
18368 (package-menu--print-info): Obsolete.
18369 (package-menu--print-info-simple): New function.
18370 (package-menu--refresh): Use it, simplify code, and improve
18371 performance.
18372 * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-entry):
18373 Tiny performance improvement.
18374
18375 * lisp/emacs-lisp/package.el (package--message): inhibit-message.
18376
18377 2015-04-29 Paul Eggert <eggert@cs.ucla.edu>
18378
18379 Omit -Wstrict-overflow workaround in GCC 5
18380 * src/process.c: Remove workaround for GCC -Wstrict-overflow bug
18381 if it's GCC 5 or later, as the bug appears to be fixed in GCC 5.1.
18382
18383 Merge from gnulib
18384 This incorporates:
18385 2015-04-29 extern-inline: no need for workaround in GCC 5.1
18386 2015-04-26 file-has-acl: port to CentOS 6
18387 * m4/acl.m4, m4/extern-inline.m4: Update from gnulib.
18388
18389 2015-04-29 Helmut Eller <eller.helmut@gmail.com>
18390
18391 Set next-error-* in xref--xref-buffer-mode
18392 * lisp/progmodes/xref.el (xref--xref-buffer-mode):
18393 Set `next-error-function' and `next-error-last-buffer'.
18394 (xref--next-error-function): New function.
18395 (http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg01311.html)
18396
18397 2015-04-29 Fabián Ezequiel Gallina <fgallina@gnu.org>
18398
18399 python.el: Fix warnings on looking-back calls missing LIMIT
18400 * lisp/progmodes/python.el (python-shell-accept-process-output):
18401 Pass LIMIT arg to looking-back.
18402
18403 2015-04-29 Artur Malabarba <bruce.connor.am@gmail.com>
18404
18405 * lisp/emacs-lisp/package.el: Use pushnew for downloads in progress.
18406 (package--download-and-read-archives): Use pushnew instead of
18407 append. If something terrible happened during a previous
18408 download, simply refreshing should now make things work again.
18409
18410 2015-04-29 Dmitry Gutov <dgutov@yandex.ru>
18411
18412 Introduce etags-xref-find-definitions-tag-order
18413 * lisp/progmodes/etags.el (etags-xref-find-definitions-tag-order):
18414 New variable.
18415 (etags--xref-find-definitions): Use it (bug#19468).
18416
18417 2015-04-29 Eli Zaretskii <eliz@gnu.org>
18418
18419 PATH- and completion-related fixes in Eshell on MS-Windows
18420 * lisp/eshell/esh-ext.el (eshell-search-path): When running on
18421 MS-Windows, prepend "." to list of directories produced from PATH,
18422 as Windows always implicitly searches the current directory first.
18423 (eshell-force-execution): Make it have a non-nil default value on
18424 MS-Windows and MS-DOS.
18425 * lisp/eshell/em-cmpl.el (eshell-complete-commands-list): If
18426 eshell-force-execution is non-nil, complete on readable files and
18427 directories, not only executables. When running on MS-Windows,
18428 prepend "." to list of directories produced from PATH, as Windows
18429 always implicitly searches the current directory first.
18430
18431 2015-04-29 Sam Steingold <sds@gnu.org>
18432
18433 Bury RCIRC buffers when there is no activity
18434 * lisp/net/rcirc.el (rcirc-non-irc-buffer): Remove.
18435 (rcirc-bury-buffers): New function.
18436 (rcirc-next-active-buffer): When there is no new activity, use
18437 `rcirc-bury-buffers' to hide all RCIRC buffers.
18438
18439 2015-04-29 Krzysztof Jurewicz <krzysztof.jurewicz@gmail.com> (tiny change)
18440
18441 Fix DBUS query result parsing for secrets-search-items
18442 * lisp/net/secrets.el (secrets-search-items): Fix DBUS query result
18443 parsing. The function assumed that return value of the
18444 SearchItems method called on a collection is a list of two lists,
18445 however this is true only when no collection is specified. GNOME
18446 had used to incorrectly return a list of two lists in both cases,
18447 but this was already fixed:
18448 https://bugzilla.gnome.org/show_bug.cgi?id=695115 . Also fix an
18449 incorrect information in the secrets-search-items’ docstring.
18450 (Bug#20449)
18451
18452 2015-04-29 Artur Malabarba <bruce.connor.am@gmail.com>
18453
18454 * lisp/emacs-lisp/bytecomp.el (byte-compile--message):
18455 Use `inhibit-message' instead of hiding the previous message
18456 with (message nil).
18457
18458 2015-04-29 Oleh Krehel <ohwoeowho@gmail.com>
18459
18460 Remove the deprecated INTERNAL_FIELD macro by expanding it
18461 * src/lisp.h (INTERNAL_FIELD): Remove.
18462 (DEFVAR_KBOARD): Modify accordingly.
18463 * src/alloc.c, src/buffer.c, src/buffer.h, src/category.c:
18464 * src/keyboard.c, src/keyboard.h, src/syntax.c: Adjust users.
18465 * src/buffer.c (compact_buffer): Use BVAR.
18466
18467 2015-04-29 Glenn Morris <rgm@gnu.org>
18468
18469 Replace an obsolete function alias
18470 * lisp/isearch.el (isearch-yank-x-selection):
18471 * lisp/mouse-copy.el (mouse-drag-secondary-pasting)
18472 (mouse-drag-secondary-moving):
18473 * lisp/obsolete/mouse-sel.el (mouse-sel-get-selection-function):
18474 Replace obsolete alias x-get-selection with gui-get-selection.
18475
18476 2015-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
18477
18478 * lisp/mail/rmailsum.el: Use lexical-binding.
18479
18480 2015-04-29 Glenn Morris <rgm@gnu.org>
18481
18482 * test/automated/package-test.el (package-test-update-archives-async):
18483 Skip test on hydra.nixos.org.
18484
18485 2015-04-28 Glenn Morris <rgm@gnu.org>
18486
18487 * lisp/foldout.el: Update for 2015-01-30 outline.el changes.
18488 (foldout-zoom-subtree, foldout-exit-fold, foldout-mouse-show)
18489 (foldout-mouse-hide-or-exit): Use new names for outline functions.
18490
18491 * lisp/cedet/semantic/bovine/c.el (semantic-c-do-lex-if):
18492 Update for 2014-06-26 hideif.el change.
18493
18494 * lisp/mail/rmailsum.el: Fix search for encoded subjects. (Bug#19088)
18495 (rmail--decode-and-apply): New function.
18496 (rmail-message-regexp-p-1, rmail-message-subject-p): Use it.
18497
18498 * lisp/mail/rmail.el (rmail-highlighted-headers): Fix :type.
18499
18500 2015-04-28 Artur Malabarba <bruce.connor.am@gmail.com>
18501
18502 * lisp/emacs-lisp/package.el: Fix priority-hiding corner case
18503 (package-menu--refresh): Delegate obsolete-hiding to
18504 `package--remove-hidden'.
18505 (package--remove-hidden): Disregard high-priority package if it is
18506 older than the installed one.
18507
18508 2015-04-28 Paul Eggert <eggert@cs.ucla.edu>
18509
18510 Update source file encoding list
18511 Update admin/notes/unicode, along with coding system cookies in
18512 other files, so that the two match each other better.
18513 * admin/notes/unicode: lisp/language/ethio-util.el and
18514 lisp/language/ethiopic.el also use utf-8-emacs.
18515 * admin/notes/hydra, doc/misc/dbus.texi, doc/misc/org.texi:
18516 * doc/misc/remember.texi, etc/refcards/cs-dired-ref.tex:
18517 * etc/refcards/cs-refcard.tex, etc/refcards/cs-survival.tex:
18518 * etc/refcards/sk-dired-ref.tex, etc/refcards/sk-refcard.tex:
18519 * etc/refcards/sk-survival.tex:
18520 Add "coding: utf-8" so that this file is not mishandled in a
18521 Latin-1 or Big-5 locale.
18522 * lisp/international/robin.el, lisp/org/ox-ascii.el:
18523 Specify utf-8, not utf-8-emacs, as these are plain UTF-8 files.
18524 * lisp/language/ethio-util.el: Fix trailer.
18525
18526 2015-04-28 Eli Zaretskii <eliz@gnu.org>
18527
18528 Fix synchronous invocation of Ispell
18529 * lisp/textmodes/ispell.el (ispell-init-process): Assign a non-nil
18530 value to ispell-process-directory before calling ispell-init-process.
18531 Don't call set-process-coding-system if ispell-async-processp is nil.
18532 (Bug#20448)
18533
18534 2015-04-28 Artur Malabarba <bruce.connor.am@gmail.com>
18535
18536 * lisp/emacs-lisp/package.el: Skip space and comments in init file
18537 (package--ensure-init-file): Insert snippet at first
18538 non-whitespace non-comments line. Respects local-vars at the top
18539 of the file.
18540
18541 2015-04-28 Glenn Morris <rgm@gnu.org>
18542
18543 * lisp/mail/rmail.el (rmail-copy-headers):
18544 Handle rmail-nonignored-headers being nil. (Bug#18878)
18545
18546 * lisp/subr.el (delay-mode-hooks): Fix doc typo.
18547
18548 * lisp/vc/vc-bzr.el (vc-bzr-after-dir-status):
18549 Don't get confused by a bzrlib version mismatch warning.
18550
18551 2015-04-27 Thomas Fitzsimmons <fitzsim@fitzsim.org>
18552
18553 Change default location of EUDC options file
18554 * etc/NEWS: Document change to EUDC options file's default location.
18555 * lisp/net/eudc-vars.el (eudc-options-file): Use
18556 `locate-user-emacs-file' to change default options file location.
18557
18558 2015-04-27 Glenn Morris <rgm@gnu.org>
18559
18560 * test/automated/package-test.el (package-test-update-archives-async):
18561 Try to handle the test server script dying.
18562
18563 2015-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
18564
18565 * lisp/saveplace.el (save-place-mode): New minor mode.
18566 (save-place): Redefine as an obsolete alias.
18567
18568 * lisp/midnight.el: Make it a minor mode. Allow predicates.
18569 * lisp/midnight.el: Use lexical-binding.
18570 (midnight-mode): Make it a proper minor mode.
18571 (midnight-buffer-display-time): Make arg non-optional.
18572 (midnight-find): Remove.
18573 (clean-buffer-list-kill-never-regexps)
18574 (clean-buffer-list-kill-regexps): Tweak type for new function choice.
18575 (clean-buffer-list-delay): Allow clean-buffer-list-kill-regexps to
18576 contain functions.
18577 (clean-buffer-list): Use cl-find.
18578 Allow clean-buffer-list-kill-never-regexps to contain functions.
18579
18580 2015-04-27 Nicolas Petton <nicolas@petton.fr>
18581
18582 Bump version of seq.el to 1.5
18583 * lisp/emacs-lisp/seq.el (seq-doseq): Remove undocumented return value
18584 from seq-doseq. Bump version number of seq.el.
18585
18586 2015-04-27 Glenn Morris <rgm@gnu.org>
18587
18588 * lisp/mail/rmail.el (rmail-reply):
18589 Decode subject before matching "Re:" prefix. (Bug#20396)
18590
18591 2015-04-27 Artur Malabarba <bruce.connor.am@gmail.com>
18592
18593 * lisp/emacs-lisp/package.el: Small improvements
18594 (package--with-work-buffer-async): More informative error.
18595 (package-install-user-selected-packages): Rename to
18596 `package-install-selected-packages'.
18597
18598 2015-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
18599
18600 * lisp/emacs-lisp/eieio-core.el (eieio-defclass-internal): Fix last
18601 * lisp/emacs-lisp/eieio-core.el (eieio-defclass-internal): Fix last change.
18602 (eieio--class-make): Remove leftover `tag'.
18603
18604 2015-04-27 Glenn Morris <rgm@gnu.org>
18605
18606 * lisp/gnus/message.el (gnus-extract-address-components):
18607 Remove bogus declaration that was masking previous problem.
18608
18609 2015-04-27 Nicolas Graner <nicolas.graner@u-psud.fr> (tiny change)
18610
18611 * lisp/gnus/message.el (message-insert-formatted-citation-line):
18612 Fix typo. (Bug#20318)
18613
18614 2015-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
18615
18616 * lisp/emacs-lisp/eieio-core.el (eieio-defclass-internal): Reuse oldc.
18617
18618 * lisp/textmodes/reftex-toc.el: Improve multi-frame behavior
18619 * lisp/textmodes/reftex-toc.el (reftex-toc-revert): Avoid displaying
18620 the buffer in yet another frame.
18621 (reftex-toc-visit-location): Make sure toc-window has focus at the end
18622 when `final' is nil.
18623 (reftex--rebuilding-toc): Defvar to avoid `boundp' and
18624 silence warnings. Use `--' to clarify that it's internal.
18625 (reftex-toc-next, reftex-toc-previous, reftex-toc-demote)
18626 (reftex-toc-promote): Clarify unused argument.
18627 (reftex--pro-or-de, reftex--start-line, reftex--mark-line):
18628 Add `reftex--' prefix. Fix all users.
18629 (reftex-toc-promote-prepare): Use _ for dummy variable.
18630 (reftex-toc-restore-region): Rename `m.
18631
18632 2015-04-27 Eli Zaretskii <eliz@gnu.org>
18633
18634 Fix a typo in bibtex.el
18635 * lisp/textmodes/bibtex.el (bibtex-insert-kill): Fix a typo from
18636 last change. (Bug#20429)
18637
18638 Fix redisplay of frame after loading new fonts
18639 * src/xdisp.c (redisplay_internal): When retrying redisplay of
18640 a frame because new fonts were loaded, disable all redisplay
18641 optimizations on that frame by calling SET_FRAME_GARBAGED.
18642 (Bug#20410)
18643
18644 2015-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
18645
18646 * lisp/info.el (Info-menu): Properly provide the `default'
18647 (Bug#20391)
18648
18649 * lisp/progmodes/elisp-mode.el (elisp--get-fnsym-args-string):
18650 Catch errors from documentation (bug#20418).
18651 (emacs-lisp-mode-abbrev-table): Remove redundant defvar.
18652
18653 2015-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
18654
18655 * lisp/emacs-lisp/package.el: Move variables to silence byte-compiler.
18656 Remove redundant ":group 'package".
18657
18658 2015-04-26 Eli Zaretskii <eliz@gnu.org>
18659
18660 Fix a typo in rmail.el
18661 * lisp/mail/rmail.el (rmail-ensure-blank-line): Fix a typo in the
18662 last commit. (Bug#20429)
18663
18664 2015-04-26 Dmitry Gutov <dgutov@yandex.ru>
18665
18666 Introduce xref-prompt-for-identifier
18667 * lisp/progmodes/xref.el (xref-prompt-for-identifier): New option.
18668 (xref--read-identifier): Use it
18669 (http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg01205.html).
18670
18671 2015-04-26 João Távora <joaotavora@gmail.com>
18672
18673 `tex-insert-quote' after single `'' opens quotes instead of closing
18674 Without this, it's very hard to precede double quotes with the
18675 apostrophe character, i.e. insert the sequence '``
18676 (quote-backquote-backquote), commonly useful in portuguese, for
18677 instance.
18678 * lisp/textmodes/tex-mode.el (tex-insert-quote): Add ?' to the list of
18679 preceding chars making `tex-insert-quote' be in the "opening" context.
18680
18681 2015-04-25 Dmitry Gutov <dgutov@yandex.ru>
18682
18683 Pass `id' to `completing-read' as def instead of initial input
18684 * lisp/progmodes/xref.el (xref--read-identifier): Pass `id' to
18685 `completing-read' as the default value instead of initial input
18686 (http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg01182.html).
18687
18688 2015-04-25 Paul Eggert <eggert@cs.ucla.edu>
18689
18690 Don't freeze with unreadable processes
18691 Don't freeze if an exiting process can't be read from. (Bug#19860).
18692 This fixes a bug I introduced in
18693 2014-07-08T07:24:07Z@eggert@cs.ucla.edu
18694 "* process.c: Add sanity checks for file descriptors."
18695 Dmitry Gutov did most of the legwork in finding the problem.
18696 * src/process.c (wait_reading_process_output):
18697 Treat non-running processes that can't be read from
18698 the same as other non-running processes.
18699
18700 2015-04-25 Alan Mackenzie <acm@muc.de>
18701
18702 Fix change from 2015-04-22 "On C-y, stop some text property entries ..."
18703 * lisp/subr.el (remove-yank-excluded-properties): Put
18704 `with-silent-modifications' around only the last three lines of code.
18705
18706 2015-04-25 Artur Malabarba <bruce.connor.am@gmail.com>
18707
18708 * lisp/emacs-lisp/package.el (package-all-keywords): Don't cache
18709 (package--all-keywords): Deleted variable.
18710
18711 * etc/NEWS: Document package-hiding functionality.
18712
18713 2015-04-25 Eli Zaretskii <eliz@gnu.org>
18714
18715 * lisp/window.el (recenter-last-op): Doc fix. (Bug#20419)
18716
18717 Clarify the doc string of 'replace-regexp-in-string'
18718 * lisp/subr.el (replace-regexp-in-string): Doc fix. (Bug#20395)
18719
18720 Improve doc string of 'insert-buffer-substring'
18721 * src/editfns.c (Finsert_buffer_substring): Doc fix. (Bug#20421)
18722
18723 MS-Windows followup for the recent gnulib update
18724 * nt/gnulib.mk (libgnu_a_SOURCES): Replace file-has-acl.c with
18725 acl-internal.c.
18726
18727 2015-04-24 Paul Eggert <eggert@cs.ucla.edu>
18728
18729 Spelling fixes
18730
18731 Merge from gnulib
18732 This incorporates:
18733 2015-04-24 file-has-acl: new module, split from acl
18734 2015-04-24 manywarnings: add GCC 5.1 warnings
18735 2015-04-21 lstat: fix cross-compilation 'ln -s' problem
18736 2015-04-15 qacl: Simplify HP-UX acl_nontrivial check
18737 2015-04-15 acl: On Linux, check for acls without libacl
18738 2015-04-14 tempname: avoid unused parameter warnings (trivial)
18739 * lib/acl-internal.c: New file, from gnulib.
18740 * lib/file-has-acl.c: Remove; no longer imported from gnulib.
18741 * lib/acl-internal.h, lib/gnulib.mk, lib/qcopy-acl.c, lib/tempname.c:
18742 * m4/acl.m4, m4/gnulib-comp.m4, m4/lstat.m4, m4/manywarnings.m4:
18743 Update from gnulib.
18744
18745 Port --enable-gcc-warnings to GCC 5.1 x86-64
18746 * lib-src/ebrowse.c (dump_sym):
18747 * lib-src/hexl.c (main):
18748 * src/ccl.c (ccl_driver):
18749 * src/character.c (string_escape_byte8):
18750 * src/dbusbind.c (xd_retrieve_arg, xd_add_watch):
18751 * src/gnutls.c (Fgnutls_boot):
18752 * src/gtkutil.c (xg_check_special_colors):
18753 * src/image.c (x_build_heuristic_mask):
18754 * src/print.c (safe_debug_print, print_object):
18755 * src/term.c (produce_glyphless_glyph):
18756 * src/xdisp.c (get_next_display_element)
18757 (produce_glyphless_glyph):
18758 * src/xterm.c (x_draw_glyphless_glyph_string_foreground):
18759 Don't use a signed format to print an unsigned integer, or vice
18760 versa. GCC 5.1's new -Wformat-signedness option warns about this.
18761 * src/image.c (png_load_body, jpeg_load_body):
18762 Silence a bogus setjump diagnostic from GCC 5.1 (GCC bug 54561).
18763
18764 2015-04-24 Tassilo Horn <tsdh@gnu.org>
18765
18766 Add new faces to tsdh-light-theme
18767 * etc/themes/tsdh-light-theme.el (tsdh-light): New face
18768 definitions for Info-quoted, ace-jump-face-foreground,
18769 hl-paren-face, show-paren-match, and show-paren-mismatch.
18770
18771 2015-04-24 Nicolas Petton <nicolas@petton.fr>
18772
18773 * lisp/emacs-lisp/seq.el (seq-doseq): Fix the macro.
18774
18775 2015-04-24 Glenn Morris <rgm@gnu.org>
18776
18777 * build-aux/gitlog-to-emacslog:
18778 Use raw log format rather than wrapped one.
18779
18780 2015-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
18781
18782 * lisp/emacs-lisp/seq.el (seq-doseq): Tighten the code.
18783 (seq-doseq): Fix out-of-scope binding.
18784 Don't call `seq-length at every iteration.
18785 Reduce `if's from 3 to 2 per iteration.
18786 (emacs-lisp-mode-hook): Don't tweak in Emacs≥25.
18787
18788 2015-04-24 Glenn Morris <rgm@gnu.org>
18789
18790 * lisp/textmodes/text-mode.el (text-mode-hook):
18791 Move text-mode-hook-identify to default.
18792
18793 * lisp/mouse.el (minor-mode-menu-from-indicator):
18794 Handle non-function members of minor-mode-map-alist. (Bug#20201)
18795
18796 * lisp/help-fns.el (describe-function): More type checking.
18797 (describe-function-1): Handle changed symbol-function. (Bug#20201)
18798
18799 * build-aux/gitlog-to-emacslog: Convert "Fixes:" to "(Bug#)".
18800 (Bug#20325)
18801
18802 2015-04-24 Andreas Schwab <schwab@linux-m68k.org>
18803
18804 shr: strip leading whitespace when expanding URLs
18805 * lisp/net/shr.el (shr-expand-url): Strip leading whitespace from URL.
18806
18807 2015-04-24 Eli Zaretskii <eliz@gnu.org>
18808
18809 Clarify "co-authored" some more
18810
18811 * CONTRIBUTE: Clarify "co-authored-by". (Bug#20400)
18812
18813 Clarify doc strings of functions that search for properties
18814 * src/textprop.c (Fnext_char_property_change)
18815 (Fprevious_char_property_change)
18816 (Fnext_single_char_property_change)
18817 (Fprevious_single_char_property_change, Fnext_property_change)
18818 (Fnext_single_property_change, Fprevious_property_change)
18819 (Fprevious_single_property_change): Clarify doc strings wrt return
18820 value and the optional LIMIT argument. (Bug#20411)
18821
18822 2015-04-24 Glenn Morris <rgm@gnu.org>
18823
18824 * test/automated/message-mode-tests.el (message-mode-propertize):
18825 Handle non-writable HOME; eg on hydra.nixos.org.
18826
18827 2015-04-23 Eli Zaretskii <eliz@gnu.org>
18828
18829 Avoid starting threads by w32-shell-execute
18830 * src/w32fns.c (Fw32_shell_execute): Convert "file:///" URLs into
18831 local file names, before invoking ShellExecute. (Bug#20220)
18832
18833 2015-04-23 Martin Rudalics <rudalics@gmx.at>
18834
18835 Fix following doc-links in `widget-documentation-link-action'
18836 * lisp/wid-edit.el (widget-documentation-link-action): Make
18837 following doc-links less simplistic (Bug#20398).
18838
18839 2015-04-22 Thomas Fitzsimmons <fitzsim@fitzsim.org>
18840
18841 Improve EUDC manual
18842 * doc/misc/eudc.texi (Troubleshooting):
18843 New LDAP troubleshooting subsection.
18844
18845 2015-04-22 Paul Eggert <eggert@cs.ucla.edu>
18846
18847 Omit needless "\ " after multibyte then newline
18848 * src/print.c: Include <c-ctype.h>, for c_isxdigit.
18849 (print_object): When print-escape-multibyte is non-nil and a
18850 multibyte character is followed by a newline or formfeed, followed
18851 by a hex digit, don't output a needless "\ " before the hex digit.
18852 * test/automated/print-tests.el (print-hex-backslash): New test.
18853
18854 2015-04-22 Oleh Krehel <ohwoeowho@gmail.com>
18855
18856 Add a new `inhibit-message' variable
18857 * src/xdisp.c (syms_of_xdisp): Define a boolean `inhibit_message'.
18858 (message3): Don't call `message3_nolog' (i.e. use the Echo Area) when
18859 `inhibit_message' is non-zero.
18860 * etc/NEWS: Add an entry.
18861 * doc/lispref/display.texi: Add an entry for `inhibit-message',
18862 mention it in `message'.
18863
18864 2015-04-22 Martin Rudalics <rudalics@gmx.at>
18865
18866 Fix last fix in `display-buffer-record-window'.
18867 * lisp/window.el (display-buffer-record-window): Fix last fix.
18868
18869 2015-04-22 Eli Zaretskii <eliz@gnu.org>
18870
18871 Minor edits in CONTRIBUTE
18872 * CONTRIBUTE: Rearrange instructions about log messages.
18873 Use "Git" capitalized all over.
18874 Use 2 spaces between sentences.
18875
18876 2015-04-22 Artur Malabarba <bruce.connor.am@gmail.com>
18877
18878 * lisp/files.el (basic-save-buffer): Fix argument.
18879
18880 * lisp/cus-edit.el (custom-file): Consider init-file-had-error.
18881 In case `(and (null custom-file) init-file-had-error)' do the same
18882 thing we'd do if `(null user-init-file)', which is to either error out
18883 or return nil. This is in line with `custom-save-all' which would
18884 throw an error in that situation. (Bug#20355)
18885
18886 * lisp/emacs-lisp/package.el: Hide lower-priority packages in menu.
18887 (package-menu-hide-low-priority): New variable, see its doc.
18888 (package-archive-priorities): Update doc.
18889 (package-desc-priority): New function.
18890 (package-desc-priority-version): Use it.
18891 (package--remove-hidden): New function.
18892 (package-menu--refresh): Use it.
18893
18894 * lisp/emacs-lisp/package.el: Implement displaying obsolete packages.
18895 (package-menu--hide-obsolete): New variable.
18896 (package--remove-hidden): Use it.
18897 (package-menu-hide-obsolete): New interactive function to toggle
18898 the variable.
18899 (package--quick-help-keys): Document it.
18900 (package-menu-async): Add :version tag.
18901 (package-menu-mode-map): Bind package-menu-hide-obsolete.
18902 (package-desc-status): Indicate non-installed obsolete packages as
18903 avail-obso.
18904 (package-menu-mark-install): Allow installation of avail-obso.
18905 (package-menu--status-predicate): Sort avail-obso with available.
18906
18907 2015-04-22 Alan Mackenzie <acm@muc.de>
18908
18909 On C-y, stop some text property entries being written into buffer-undo-list
18910 * lisp/subr.el (remove-yank-excluded-properties): Enclose the code in
18911 `with-silent-modifications'.
18912
18913 2015-04-22 Martin Rudalics <rudalics@gmx.at>
18914
18915 In display-buffer-record-window record selected window if necessary
18916 * lisp/window.el (display-buffer-record-window): Store selected window
18917 if it differs from 3rd element of 'quit-restore' parameter (Bug#20353).
18918
18919 2015-04-22 Tassilo Horn <tsdh@gnu.org>
18920
18921 Fix reftex-citation bug
18922 * lisp/textmodes/reftex-cite.el (reftex-extract-bib-entries):
18923 Fix `wrong-type-argument stringp nil' error that occurs when AUCTeX
18924 integration is enabled and there are no citations in the document
18925 so far.
18926
18927 2015-04-21 Dmitry Gutov <dgutov@yandex.ru>
18928
18929 Add or reset based on the presence of MERGE_HEAD
18930 * lisp/vc/vc-git.el (vc-git-find-file-hook): Add
18931 `vc-git-resolve-when-done' to `after-save-hook' in either case.
18932 (vc-git-conflicted-files): Add a TODO.
18933 (vc-git-resolve-when-done): Depending on the presence of
18934 MERGE_HEAD, either update the resolved file in the index, or
18935 remove it from there. (Bug#20292)
18936
18937 2015-04-21 Glenn Morris <rgm@gnu.org>
18938
18939 * lisp/custom.el (custom-declare-group): No need to purecopy
18940 custom-current-group-alist members following recent change to set
18941 it to nil before dumping.
18942
18943 * build-aux/gitlog-to-emacslog: Get footer from ChangeLog.2.
18944 (Bug#20399)
18945
18946 2015-04-21 Daniel Colascione <dancol@dancol.org>
18947
18948 Unbreak no-op buffer save message
18949 * lisp/files.el (basic-save-buffer): Accept called-interactively as
18950 an argument instead of directly invoking called-interactively-p,
18951 which will always yield nil in that context.
18952
18953 2015-04-21 Alan Mackenzie <acm@muc.de>
18954
18955 CC Mode: Do nothing in before/after-change-functions for text
18956 property changes
18957 Fixes bug#20266.
18958 * lisp/progmodes/cc-mode.el (c-basic-common-init): Make
18959 yank-handled-properties buffer local, and remove 'category from it.
18960 (c-called-from-text-property-change-p): New function.
18961 (c-before-change): Don't do anything if a call of the new function
18962 returns non-nil.
18963 (c-after-change): Don't do much if a call of the new function returns
18964 non-nil.
18965 (c-extend-after-change-region): Put changes to text property 'fontified
18966 inside c-save-buffer-state.
18967
18968 2015-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
18969
18970 Fix byte-compiler warnings about looking-back
18971 * lisp/vc/log-view.el (log-view-end-of-defun-1):
18972 * lisp/textmodes/tex-mode.el (latex-forward-sexp-1):
18973 * lisp/textmodes/reftex-ref.el (reftex-goto-label):
18974 * lisp/textmodes/bibtex.el (bibtex-insert-kill):
18975 * lisp/progmodes/sh-script.el (sh--maybe-here-document):
18976 * lisp/progmodes/ruby-mode.el (ruby-end-of-defun):
18977 * lisp/progmodes/ada-mode.el (ada-in-numeric-literal-p):
18978 * lisp/org/org.el (org-insert-heading, org-sort-entries):
18979 * lisp/org/org-mouse.el (org-mouse-end-headline)
18980 (org-mouse-context-menu):
18981 * lisp/org/org-clock.el (org-clock-cancel):
18982 * lisp/man.el (Man-default-man-entry):
18983 * lisp/mail/rmail.el (rmail-get-new-mail, rmail-insert-inbox-text)
18984 (rmail-ensure-blank-line):
18985 * lisp/mail/footnote.el (Footnote-delete-footnote):
18986 * lisp/mail/emacsbug.el (report-emacs-bug):
18987 * lisp/info.el (Info-follow-reference, Info-fontify-node):
18988 * lisp/info-look.el (info-lookup-guess-custom-symbol):
18989 * lisp/help-fns.el (help-fns--key-bindings):
18990 * lisp/files.el (hack-local-variables):
18991 * lisp/emulation/viper-ex.el (viper-get-ex-token, ex-cmd-complete)
18992 (viper-get-ex-pat, ex-expand-filsyms, viper-get-ex-file)
18993 (viper-complete-filename-or-exit):
18994 * lisp/emulation/viper-cmd.el (viper-backward-indent):
18995 * lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent):
18996 * lisp/emacs-lisp/elint.el (elint-get-top-forms):
18997 * lisp/cus-edit.el (custom-face-edit-value-create):
18998 * lisp/calendar/todo-mode.el (todo-set-item-priority)
18999 (todo-filter-items-1, todo-convert-legacy-files)
19000 (todo-prefix-overlays): Add explicit second arg to looking-back.
19001
19002 2015-04-20 Glenn Morris <rgm@gnu.org>
19003
19004 Avoid non-nil current-load-list at startup
19005 * src/process.c (init_process_emacs): Move Fprovide statement...
19006 (syms_of_process): ... to here.
19007
19008 * lisp/loadup.el (custom-current-group-alist): Reset before dumping.
19009
19010 * lisp/startup.el (command-line) <site-run-file>: Avoid rogue value
19011 in emacs -Q.
19012
19013 2015-04-20 Ludovic Courtès <ludo@gnu.org>
19014
19015 * lisp/loadup.el (exec-path): Avoid storing build-time PATH in binary.
19016 (Bug#20330)
19017
19018 2015-04-20 Glenn Morris <rgm@gnu.org>
19019
19020 * lisp/cus-start.el (exec-path): Set standard value, to avoid rogue.
19021
19022 Tweak exec-path in uninstalled case
19023 * src/callproc.c (init_callproc): If running uninstalled, do not
19024 include eventual installation libexec directory in exec-path.
19025
19026 2015-04-20 Artur Malabarba <bruce.connor.am@gmail.com>
19027
19028 * lisp/emacs-lisp/package.el: Filter by multiple keywords and
19029 cache keywords.
19030 (package-menu-filter): Accept a list of keywords.
19031 (package--all-keywords): New variable to cache known keywords.
19032 (package-all-keywords): Populate it if necessary.
19033 (package-refresh-contents): Reset it.
19034
19035 * lisp/emacs-lisp/package.el: Make archive and status pseudo-keywords
19036 (package--has-keyword-p): Understand "arc:xxxx" and "status:xxxx"
19037 as special keywords which match agains package archive and status
19038 respectively.
19039 * etc/NEWS: Document it.
19040
19041 2015-04-20 Eli Zaretskii <eliz@gnu.org>
19042
19043 Describe and index "empty overlays".
19044 * doc/lispref/display.texi (Overlays): Improve indexing.
19045 (Managing Overlays): Describe "empty" overlays.
19046 (Overlay Properties, Finding Overlays): Add cross-reference to
19047 where empty overlays are described.
19048
19049 2015-04-19 Paul Eggert <eggert@cs.ucla.edu>
19050
19051 Spelling fixes
19052
19053 Quote 'like this' in top-level files
19054 * CONTRIBUTE, INSTALL, Makefile.in, README, configure.ac, make-dist:
19055 Prefer to single-quote 'like this' (instead of the older style
19056 `like this').
19057 * configure.ac: Fix some space-before-tab problems that 'git commit'
19058 complained about.
19059
19060 Use bool for boolean in textprop.c, undo.c
19061 * src/textprop.c (soft, hard): Now constants instead of macros.
19062 (validate_plist): Rewrite to avoid need for boolean local.
19063 (interval_has_all_properties, interval_has_some_properties)
19064 (interval_has_some_properties_list, add_properties)
19065 (remove_properties, get_char_property_and_overlay)
19066 (Fnext_single_char_property_change)
19067 (Fprevious_single_char_property_change, add_text_properties_1)
19068 (Fremove_text_properties, Fremove_list_of_text_properties)
19069 (copy_text_properties):
19070 * src/tparam.c (tparam1):
19071 * src/undo.c (record_change, record_property_change)
19072 (syms_of_undo):
19073 Use 'true' and 'false' for booleans.
19074
19075 2015-04-19 Dmitry Gutov <dgutov@yandex.ru>
19076
19077 * lisp/vc/vc-git.el (vc-git-find-file-hook):
19078 Call `smerge-start-session' even when dealing with a stash
19079 conflict (bug#20292).
19080
19081 2015-04-19 Vibhav Pant <vibhavp@gmail.com>
19082
19083 Add option to eshell/clear to clear scrollback.
19084 * lisp/eshell/esh-mode.el (eshell/clear-scrollback): New function.
19085 (eshell/clear): Add an optional SCROLLBACK argument. If non-nil,
19086 scrollback contents are cleared.
19087 * etc/NEWS: Describe change.
19088 * doc/misc/eshell.texi: Add entry for `clear'.
19089
19090 2015-04-19 Paul Eggert <eggert@cs.ucla.edu>
19091
19092 * src/widget.c (set_frame_size): Prefer 'int' to 'unsigned'
19093 where either will do.
19094
19095 2015-04-19 Steve Purcell <steve@sanityinc.com>
19096
19097 Assume package archive-contents are UTF8-encoded
19098 * lisp/emacs-lisp/package.el (package--read-archive-file):
19099 Set `coding-system-for-read' explicitly to 'utf-8 when reading the
19100 downloaded and cached archive-contents files, so that non-ASCII
19101 characters in package descriptions are displayed correctly in the
19102 `list-packages' menu. (Bug#20231)
19103
19104 2015-04-19 Dmitry Gutov <dgutov@yandex.ru>
19105
19106 Abort when looking at stashed changes
19107 * lisp/vc/vc-git.el (vc-git-find-file-hook): Abort when looking at
19108 stashed changes (bug#20292).
19109
19110 2015-04-19 Paul Eggert <eggert@cs.ucla.edu>
19111
19112 Refactor low-level printing for simplicity
19113 * src/print.c (PRINTDECLARE): Remove. Move its contents into
19114 PRINTPREPARE; doable now that we assume C99. All callers changed.
19115 (PRINTCHAR): Remove, as it adds more mystery than clarity.
19116 All callers changed.
19117 (strout): Assume that caller computes length. All callers changed.
19118 (print_c_string): New function.
19119 (write_string, write_string_1): Compute length instead of asking
19120 the caller to compute it. All callers changed.
19121 (write_string): Simplify by using write_string_1.
19122 (write_string_1): Simplify by using print_c_string.
19123 (Fterpri): Compute default val more clearly.
19124 (Fprin1_to_string, print_object):
19125 Assume C99 to avoid unnecessary nesting.
19126 (print_object): Prefer print_c_string to multiple printchar, or
19127 to calling strout with -1 length. Coalesce into sprintf when
19128 this is easy.
19129
19130 2015-04-18 Paul Eggert <eggert@cs.ucla.edu>
19131
19132 Prefer "Bug#1234" in commit messages (Bug#20325)
19133 * .dir-locals.el (log-edit-mode): Don't rewrite Bug#,
19134 as this isn't useful for Git.
19135 * CONTRIBUTE: Suggest "Bug#1234" instead of "Fixes: debbugs:1234".
19136
19137 2015-04-18 Glenn Morris <rgm@gnu.org>
19138
19139 * lisp/files.el (auto-mode-alist): Use conf mode for gitconfig, hgrc.
19140 (Bug#19506)
19141
19142 2015-04-18 Tom Willemse <tom@ryuslash.org> (tiny change)
19143
19144 * lisp/elec-pair.el (electric-pair-post-self-insert-function):
19145 Do not use `chomp' as a function. (Bug#19505)
19146
19147 2015-04-18 Glenn Morris <rgm@gnu.org>
19148
19149 * lisp/net/browse-url.el (browse-url, browse-url-at-point): Doc fixes.
19150
19151 * doc/emacs/misc.texi (Sorting): Small edit.
19152 (Bug#19896)
19153
19154 * admin/admin.el (make-manuals): Add emacs-xtra in pdf and ps.
19155
19156 2015-04-18 Simen Heggestøyl <simenheg@gmail.com>
19157
19158 css-mode.el: Support multi-line comment filling
19159 (Bug#20256)
19160 * lisp/textmodes/css-mode.el (css-fill-paragraph): Support multi-line
19161 comment filling.
19162 (css-adaptive-fill): New function.
19163 (css-mode): Set `adaptive-fill-function'.
19164 (scss-mode): Set `comment-continue'.
19165
19166 2015-04-18 Nicolas Petton <nicolas@petton.fr>
19167
19168 * lisp/emacs-lisp/seq.el (seq-concatenate, seq-into):
19169 Better error messages.
19170
19171 2015-04-18 Ivan Radanov Ivanov <ivanradanov@yahoo.co.uk> (tiny change)
19172
19173 Minor improvements in Bulgarian input methods
19174 * lisp/leim/quail/cyrillic.el (bulgarian-phonetic, bulgarian-bds):
19175 Replace U+042C with U+045D, as the former character is not used in
19176 the modern Bulgarian language.
19177 (Bug#20350)
19178
19179 2015-04-17 Thomas Fitzsimmons <fitzsim@fitzsim.org>
19180
19181 Improve EUDC manual
19182 * doc/misc/eudc.texi (LDAP Configuration): Mention simple and SASL
19183 authentication schemes. Add index items. Shorten example server
19184 name.
19185
19186 2015-04-17 Dmitry Gutov <dgutov@yandex.ru>
19187
19188 Don't show both feature and function with the same name
19189 * lisp/progmodes/elisp-mode.el (elisp--xref-identifier-location):
19190 Don't show both feature and function with the same name.
19191
19192 (elisp--xref-identifier-location): Skip variable, if it's also
19193 a function
19194 * lisp/progmodes/elisp-mode.el (elisp--xref-identifier-location):
19195 Avoid returning both the variable and the function for the same
19196 minor mode.
19197
19198 2015-04-17 Wolfgang Jenkner <wjenkner@inode.at>
19199
19200 Fix fontification of keywords clobbered by the prompt
19201 * lisp/comint.el (comint-output-filter): Remove the uses of
19202 with-silent-modifications I introduced as part of the last change.
19203 This fixes, e.g., erratically missing highlighting when running
19204 ./configure --help; ./configure in a shell-mode buffer with
19205 compilation-shell-minor-mode turned on.
19206
19207 2015-04-17 Glenn Morris <rgm@gnu.org>
19208
19209 * admin/authors.el (authors-valid-file-names)
19210 (authors-renamed-files-alist): Additions.
19211
19212 2015-04-17 Stefan Monnier <monnier@iro.umontreal.ca>
19213
19214 * lisp/indent.el (indent-region): Don't deactivate the mark.
19215 (Bug#20357)
19216
19217 2015-04-17 Sam Steingold <sds@gnu.org>
19218
19219 * lisp/net/rcirc.el (defun-rcirc-command): Mark `target' as ignorable.
19220
19221 2015-04-16 Leo Liu <sdl.web@gmail.com>
19222
19223 * lisp/progmodes/xref.el (xref-push-marker-stack): Add optional arg.
19224
19225 2015-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
19226
19227 * lisp/erc/erc-pcomplete.el (erc-pcomplete):
19228 Don't use `pcomplete' any more.
19229
19230 2015-04-16 Glenn Morris <rgm@gnu.org>
19231
19232 * admin/authors.el (authors-lax-changelogs): Update for erc changes.
19233
19234 2015-04-16 Eli Zaretskii <eliz@gnu.org>
19235
19236 Don't link with -ljpeg on MS-Windows, to avoid dependency on DLL
19237 * configure.ac (LIBJPEG): Leave it empty for MinGW.
19238
19239 2015-04-16 Glenn Morris <rgm@gnu.org>
19240
19241 * lisp/replace.el (query-replace-from-to-separator):
19242 Delay initialization to avoid rogue setting after startup.
19243
19244 2015-04-16 Paul Eggert <eggert@cs.ucla.edu>
19245
19246 Pre-4.6 GCC succeeds with unknown option
19247 * configure.ac (emacs_cv_prog_cc_nopie): Port to pre-4.6 GCC.
19248 (Bug#20338)
19249
19250 2015-04-15 Paul Eggert <eggert@cs.ucla.edu>
19251
19252 '[:graph:]' now excludes whitespace, not just ' '
19253 * doc/lispref/searching.texi (Char Classes):
19254 * lisp/emacs-lisp/rx.el (rx): Document [:graph:] to be [:print:]
19255 sans whitespace (not sans space).
19256 * src/character.c (graphicp): Exclude all Unicode whitespace chars,
19257 not just space.
19258 * src/regex.c (ISGRAPH): Exclude U+00A0 (NO-BREAK SPACE).
19259
19260 2015-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
19261
19262 * lisp/subr.el (substitute-key-definition-key, special-form-p)
19263 (macrop): Drop deprecated second arg to indirect-function.
19264 (looking-back): Make the second arg non-optional.
19265
19266 * lisp/org/org-clock.el (org-x11idle-exists-p): Be honest about which
19267 command is actually sent to the shell.
19268
19269 2015-04-15 Paul Eggert <eggert@cs.ucla.edu>
19270
19271 Port jpeg configuration to Solaris 10 with Sun C
19272 * configure.ac: Check for jpeglib 6b by trying to link it, instead
19273 of relying on cpp magic that has problems in practice. Check for
19274 both jpeglib.h and jerror.h features. Remove special case for
19275 mingw32, which should no longer be needed (and if it were needed,
19276 should now be addressable by hotwiring emacs_cv_jpeglib).
19277 (Bug#20332)
19278
19279 2015-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
19280
19281 Move some Elisp-specific code from lisp-mode.el to elisp-mode.el
19282 * lisp/emacs-lisp/lisp-mode.el (lisp--el-font-lock-flush-elisp-buffers):
19283 Move to elisp-mode.el.
19284 (lisp-mode-variables): (Re)move elisp-specific settings.
19285 * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Add settings removed
19286 from lisp-mode-variables.
19287 (elisp--font-lock-flush-elisp-buffers): New function, moved from
19288 lisp-mode.el.
19289
19290 * lisp/emacs-lisp/lisp-mode.el (lisp--el-non-funcall-position-p):
19291 Avoid pathological slowdown at top-level in large file.
19292
19293 2015-04-15 Paul Eggert <eggert@cs.ucla.edu>
19294
19295 Standardize names of ChangeLog history files
19296 Suggested by Glenn Morris in:
19297 http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00678.html
19298 * Makefile.in (install-man): Don't treat ChangeLog.1 as a man page.
19299 * doc/man/ChangeLog.1: Rename back from doc/man/ChangeLog.01.
19300 * lisp/erc/ChangeLog.1: New file, containing the old contents of ...
19301 * lisp/erc/ChangeLog.01, lisp/erc/ChangeLog.02, lisp/erc/ChangeLog.03:
19302 * lisp/erc/ChangeLog.04, lisp/erc/ChangeLog.05, lisp/erc/ChangeLog.06:
19303 * lisp/erc/ChangeLog.07, lisp/erc/ChangeLog.08, lisp/erc/ChangeLog.09:
19304 Remove.
19305
19306 Split top-level entries into pre- and post-April 7
19307 This more clearly distingiushes pre-April-7 ChangeLog entries (which
19308 are for top-level files only) from post-April-7 entries (which are
19309 about files at all levels. Problem reported by Glenn Morris in:
19310 http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00678.html
19311 * ChangeLog.1: Move post-April-7 entries from here ...
19312 * ChangeLog.2: ... to this new file.
19313 * Makefile.in (CHANGELOG_HISTORY_INDEX_MAX): Bump to 2.
19314
19315 2015-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
19316
19317 Fix recent cus-start changes that added customize-rogues
19318 * lisp/cus-start.el (custom-delayed-init-variables): Initialize the
19319 vars early.
19320 * lisp/loadup.el ("cus-start"): Move to the end to reduce
19321 customize-rogue.
19322
19323 2015-04-15 Nicolas Petton <nicolas@petton.fr>
19324
19325 Define cl-concatenate as an alias to seq-concatenate
19326 * lisp/emacs-lisp/cl-extra.el (cl-concatenate): Removes duplicated
19327 code by making cl-concatenate an alias to seq-concatenate.
19328
19329 2015-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
19330
19331 * src/lread.c (intern_1): Make sure we'd find the symbol we add
19332 (Bug#20334)
19333 * src/xfaces.c (resolve_face_name): Don't use `intern' with
19334 Lisp_Strings.
19335
19336 2015-04-15 Glenn Morris <rgm@gnu.org>
19337
19338 * doc/lispref/sequences.texi (Sequence Functions): Fix typo in previous.
19339
19340 2015-04-15 Lars Magne Ingebrigtsen <larsi@gnus.org>
19341
19342 Clean up gnus-uu saving code slightly
19343 * lisp/gnus/gnus-uu.el (gnus-uu-save-article): Make the
19344 save-restriction/widen calls make more sense.
19345
19346 2015-04-15 Paul Eggert <eggert@cs.ucla.edu>
19347
19348 Make [:graph:] act like [:print:] sans space
19349 In POSIX [[:print:]] is equivalent to [ [:graph:]], so change
19350 [:graph:] so that it matches everything that [:print:] does,
19351 except for space.
19352 * doc/lispref/searching.texi (Char Classes):
19353 * etc/NEWS:
19354 * lisp/emacs-lisp/rx.el (rx):
19355 Document [:graph:] to be [:print:] sans ' '.
19356 * src/character.c, src/character.h (graphicp): New function.
19357 * src/regex.c (ISGRAPH) [emacs]: Use it.
19358 (BIT_GRAPH): New macro.
19359 (BIT_PRINT): Increase to 0x200, to make room for BIT_GRAPH.
19360 (re_wctype_to_bit) [! WIDE_CHAR_SUPPORT]:
19361 Return BIT_GRAPH for RECC_GRAPH.
19362 (re_match_2_internal) [emacs]: Use ISGRAPH if BIT_GRAPH,
19363 and ISPRINT if BIT_PRINT.
19364
19365 2015-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
19366
19367 automated/eieio-test-methodinvoke.el (make-instance) <(subclass C)>:
19368 Don't use call-next-method in a cl-defmethod.
19369
19370 * lisp/emacs-lisp/eieio-core.el (eieio--class): Derive from cl--class
19371 (eieio--class-p): Remove, provided by cl-defstruct.
19372
19373 2015-04-14 Nicolas Petton <nicolas@petton.fr>
19374
19375 Add seq-intersection and seq-difference to the seq library
19376 * lisp/emacs-lisp/seq.el (seq-intersection, seq-difference):
19377 New functions.
19378 * test/automated/seq-tests.el: Add tests for seq-intersection and
19379 seq-difference.
19380 * doc/lispref/sequences.texi: Add documentation for seq-intersection
19381 and seq-difference.
19382
19383 2015-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
19384
19385 * lisp/emacs-lisp/eieio-core.el (class-abstract-p): Don't inline,
19386 to avoid leaking internals.
19387
19388 2015-04-14 Sam Steingold <sds@gnu.org>
19389
19390 package--ensure-init-file: widen requires save-restriction
19391
19392 2015-04-14 Eli Zaretskii <eliz@gnu.org>
19393
19394 Improve the commit-msg Git hook for unibyte environments
19395 * build-aux/git-hooks/commit-msg: Set LC_ALL=C, before running Awk
19396 in unibyte environments. (Suggested by Paul Eggert
19397 <eggert@cs.ucla.edu>.) Use a more accurate approximation to
19398 [:print:], based on UTF-8 sequences of the unprintable characters.
19399
19400 Describe problems with cursor caused by Windows Magnifier
19401 * etc/PROBLEMS: Describe the problem with cursor shape on
19402 MS-Windows due to Windows Magnifier.
19403 (Bug#20271)
19404
19405 Make [:print:] support non-ASCII characters correctly
19406 * src/regex.c (ISPRINT): Call 'printablep' for multibyte characters.
19407 (BIT_PRINT): New bit mask.
19408 (re_wctype_to_bit): Return BIT_PRINT for RECC_PRINT.
19409 * src/character.c (printablep): New function.
19410 * src/character.h (printablep): Add prototype.
19411 * lisp/emacs-lisp/rx.el (rx): Doc fix: document the new behavior
19412 of 'print', 'alnum', and 'alphabetic'.
19413 * doc/lispref/searching.texi (Char Classes): Document the new
19414 behavior of [:print:].
19415 * etc/NEWS: Mention the new behavior of [:print:].
19416
19417 Assign correct general-category and names to surrogates
19418 * admin/unidata/unidata-gen.el (unidata-setup-list): Don't ignore
19419 surrogates. This avoids assigning them the default
19420 general-category of 'Cn', i.e. unassigned codepoints.
19421 (unidata-get-name): Give surrogates synthetic names.
19422
19423 2015-04-14 Paul Eggert <eggert@cs.ucla.edu>
19424
19425 Assume C89 offsetof in xterm.c, xlwmenu.c
19426 * lwlib/xlwmenu.c (offset):
19427 * src/xterm.c (cvt_string_to_pixel_args):
19428 Use offsetof, not XtOffset.
19429
19430 2015-04-14 Paul Eggert <eggert@Penguin.CS.UCLA.EDU>
19431
19432 Assume C89 offsetof in widget.c
19433 * src/widget.c (XtOffset): Remove; no longer needed.
19434 (offset): Implement via offsetof instead of via pre-C89 XtOffset hack.
19435
19436 Fix think-o in previous patch
19437 * src/window.c (count_windows, get_leaf_windows):
19438 Don't optimize count_windows incorrectly.
19439
19440 2015-04-13 Paul Eggert <eggert@cs.ucla.edu>
19441
19442 Avoid some int overflows in window.c
19443 * src/print.c (print_object):
19444 * src/window.c (sequence_number):
19445 * src/window.h (struct window.sequence_number):
19446 Don't assume window sequence number fits in int.
19447 * src/window.c (window_select_count):
19448 * src/window.h (struct window.use_time, window_select_count):
19449 Don't assume window use time fits in int.
19450 * src/window.c (Fsplit_window_internal):
19451 Don't assume user-supplied integer, or sum, fits in int.
19452 (Fset_window_configuration, count_windows, get_leaf_windows)
19453 (save_window_save, Fcurrent_window_configuration):
19454 Use ptrdiff_t for object counts.
19455 (Fset_window_configuration): Omit unused local 'n'.
19456 (count_windows): Simplify by writing in terms of get_leaf_windows.
19457 (get_leaf_windows): Don't store through FLAT if it's null.
19458 (extract_dimension): New static function.
19459 (set_window_margins, set_window_fringes, set_window_scroll_bars):
19460 Use it to avoid undefined behavior when converting user-supplied
19461 integer to 'int'.
19462
19463 2015-04-13 Glenn Morris <rgm@gnu.org>
19464
19465 Minor doc copyedits
19466 * doc/emacs/custom.texi (Init Examples): Tweak example, replace typo.
19467 * doc/lispintro/emacs-lisp-intro.texi (condition-case): Typo fix.
19468
19469 2015-04-13 Katsumi Yamaoka <yamaoka@jpl.org>
19470
19471 [Gnus] Catch the invalid-operation that idna.el will issue
19472 * lisp/gnus/gnus-art.el (gnus-use-idna):
19473 * lisp/gnus/gnus-sum.el (gnus-summary-idna-message):
19474 * lisp/gnus/message.el (message-use-idna):
19475 Catch the invalid-operation that idna.el will issue.
19476
19477 2015-04-13 Paul Eggert <eggert@cs.ucla.edu>
19478
19479 * doc/lispref/processes.texi (Shell Arguments): Prefer diff -u.
19480
19481 2015-04-13 Sam Steingold <sds@gnu.org>
19482
19483 package--ensure-init-file: widen before looking for
19484 "(package-initialize)"
19485
19486 2015-04-13 Dmitry Gutov <dgutov@yandex.ru>
19487
19488 Change diff-switches default to `-u' (Bug#20290)
19489 * doc/emacs/files.texi (Comparing Files): Document the new default
19490 value of `diff-switches'.
19491 * doc/emacs/trouble.texi (Sending Patches): Document the preference
19492 for unified diff format. Escape the plus in the suggested `-F' regexp
19493 value.
19494 * lisp/vc/diff.el (diff-switches): Change the default to `-u'.
19495
19496 2015-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
19497
19498 (gnus-group--setup-tool-bar-update): Fix last change
19499 * lisp/gnus/gnus-group.el (gnus-group--setup-tool-bar-update):
19500 cursor-sensor-functions should be a list of functions.
19501
19502 2015-04-13 Katsumi Yamaoka <yamaoka@jpl.org>
19503
19504 * lisp/gnus/gnus-topic.el (gnus-topic-mode):
19505 Use gmm-called-interactively-p.
19506
19507 2015-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
19508
19509 * lisp/loadup.el ("cus-start"): Load it after loaddefs.el
19510 (Bug#20321)
19511 * lisp/cus-start.el (read-buffer-function): Don't advertise
19512 iswitchb-read-buffer any more.
19513 (iswitchb): Don't tweak this obsolete group any more.
19514
19515 2015-04-13 Artur Malabarba <bruce.connor.am@gmail.com>
19516
19517 * lisp/emacs-lisp/package.el: Fix package--ensure-init-file.
19518
19519 * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Implement docstrings.
19520 Adding a string after a constructor's argument list will use
19521 that string as the constructor function docstring. If this string
19522 is absent but the struct itself was given a docstring, use that as
19523 the constructor's docstring.
19524 Fixes bug#17284.
19525
19526 2015-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
19527
19528 Deprecate `intangible' and `point-entered' properties
19529 * lisp/emacs-lisp/cursor-sensor.el: New file.
19530 * lisp/simple.el (pre-redisplay-functions): New hook.
19531 (redisplay--pre-redisplay-functions): New function.
19532 (pre-redisplay-function): Use it.
19533 (minibuffer-avoid-prompt): Mark obsolete.
19534 (redisplay--update-region-highlight): Adapt it to work as a function on
19535 pre-redisplay-functions.
19536 * lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
19537 (minibuffer-prompt-properties): Use it. Use cursor-intangible rather
19538 than point-entered to make the prompt intangible.
19539 * lisp/forms.el: Move `provide' calls to the end.
19540 (forms-mode): Don't use `run-hooks' on a local var.
19541 (forms--make-format, forms--make-format-elt-using-text-properties):
19542 Use cursor-intangible rather than `intangible'.
19543 (forms-mode): Enable cursor-intangible-mode.
19544 * lisp/isearch.el (isearch-mode): Use defvar-local.
19545 (cursor-sensor-inhibit): Declare.
19546 (isearch-mode): Set cursor-sensor-inhibit.
19547 (isearch-done): Set it back.
19548 (isearch-open-overlay-temporary, isearch-open-necessary-overlays)
19549 (isearch-close-unnecessary-overlays): Don't bother with `intangible'
19550 any more.
19551 * lisp/ses.el (ses-localvars): Remove `mode-line-process'.
19552 (ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
19553 Add Edebug spec.
19554 (ses-goto-print, ses-print-cell, ses-adjust-print-width)
19555 (ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
19556 inhibit-point-motion-hooks any more.
19557 (ses--cell-at-pos, ses--curcell): New functions, extracted from
19558 ses-set-curcell.
19559 (ses-set-curcell): Use them.
19560 (ses-print-cell, ses-setup): Use cursor-intangible instead of
19561 `intangible'. Make sure cursor-intangible isn't sticky at BOB.
19562 (ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
19563 Use ses--cell-at-pos.
19564 (ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
19565 extracted from ses-command-hook. Make them work with multiple windows
19566 displaying the same buffer.
19567 (ses-mode): Use them via mode-line-process and pre-redisplay-functions.
19568 Enable cursor-intangible-mode.
19569 (ses-command-hook): Remove cell highlight and mode-line update code.
19570 (ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
19571 Update for new name of text-property holding the cell name.
19572 (ses-rename-cell): Don't mess with mode-line-process.
19573 * lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
19574 cursor-sensor-functions property instead of point-entered.
19575 (erc-insert-timestamp-right, erc-format-timestamp):
19576 Use cursor-intangible rather than `intangible'.
19577 (erc-munge-invisibility-spec): Use add-to-invisibility-spec and
19578 remove-from-invisibility-spec. Enable cursor-intangible-mode and
19579 cursor-sensor-mode if needed.
19580 (erc-echo-timestamp): Adapt to calling convention of
19581 cursor-sensor-functions.
19582 (erc-insert-timestamp-right): Remove unused vars `current-window' and
19583 `indent'.
19584 * lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
19585 (gnus-update-group-mark-positions): Remove unused `topic' var.
19586 (gnus-group-insert-group-line): Remove unused var `header'.
19587 (gnus-group--setup-tool-bar-update): New function.
19588 (gnus-group-insert-group-line): Use it.
19589 (gnus-group-update-eval-form): Declare local
19590 dynamically-bound variables.
19591 (gnus-group-unsubscribe-group): Use \` and \' to match string bounds.
19592 * lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
19593 (gnus-group-prepare-topics, gnus-topic-update-topic)
19594 (gnus-topic-change-level, gnus-topic-catchup-articles)
19595 (gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
19596 Use inhibit-read-only.
19597 (gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
19598 (gnus-topic-mode): Use define-minor-mode and derived-mode-p.
19599 * lisp/textmodes/reftex-index.el (reftex-display-index):
19600 Use cursor-intangible-mode if available.
19601 (reftex-index-post-command-hook): Check cursor-intangible.
19602 * lisp/textmodes/reftex-toc.el (reftex-toc):
19603 Use cursor-intangible-mode if available.
19604 (reftex-toc-recenter, reftex-toc-post-command-hook):
19605 Check cursor-intangible.
19606 * lisp/textmodes/sgml-mode.el: Use lexical-binding.
19607 (sgml-tag): Use cursor-sensor-functions instead of point-entered.
19608 (sgml-tags-invisible): Use with-silent-modifications and
19609 inhibit-read-only. Enable cursor-sensor-mode.
19610 (sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
19611 calling convention of cursor-sensor-functions.
19612 * lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
19613 (table-point-entered-cell-hook, table-point-left-cell-hook):
19614 Don't autoload.
19615 (table-cell-entered-state): Remove var.
19616 (table--put-cell-point-entered/left-property)
19617 (table--remove-cell-properties):
19618 Use cursor-sensor-functions rather than point-entered/left.
19619 (table--point-entered/left-cell-function): Merge
19620 table--point-entered-cell-function and table--point-left-cell-function
19621 and adjust to calling convention of cursor-sensor-functions.
19622
19623 Update ldef-boots.el
19624
19625 * lisp/emacs-lisp/pcase.el (pcase-dolist): Autoload as well.
19626
19627 * doc/misc/eieio.texi: Don't advertise now obsolete constructs
19628
19629 Collapse successive char deletions in the undo log
19630 * src/cmds.c (remove_excessive_undo_boundaries): New function,
19631 extracted from Fself_insert_command.
19632 (Fdelete_char, Fself_insert_command): Use it.
19633 * src/fileio.c (Fmake_symbolic_link): Rename arg to `target'.
19634 * src/keyboard.c (syms_of_keyboard): `top-level' shouldn't be special.
19635
19636 xterm and OSC 52: Add NEWS entry, and tweak the code
19637 * lisp/term/xterm.el (gui-set-selection) <nil>: Move method definition
19638 to top-level.
19639 (terminal-init-xterm-activate-set-selection): Set a terminal property.
19640 (xterm--set-selection): Use it instead of checking the value of
19641 `terminal-initted'. Don't use string-bytes.
19642
19643 2015-04-13 Philipp Stephani <p.stephani2@gmail.com>
19644
19645 xterm.el: Implement OSC-52 functionality for setting the X selection
19646 * lisp/term/xterm.el (xterm-max-cut-length): New var.
19647 (xterm--set-selection, terminal-init-xterm-activate-set-selection):
19648 New funs.
19649 (terminal-init-xterm, xterm--version-handler): Use them.
19650
19651 2015-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
19652
19653 Remove left over code from when we used an obsolete/loaddefs.el file
19654 * lisp/subr.el (do-after-load-evaluation): Remove left over code from
19655 when we used an obsolete/loaddefs.el file.
19656
19657 * lisp/cedet/semantic/fw.el (semantic-exit-on-input)
19658 (semanticdb-without-unloaded-file-searches): Use declare.
19659 (semantic-fw-add-edebug-spec): Remove.
19660
19661 * lisp/completion.el (completion-lisp-mode-hook):
19662 Use completion-separator-chars rather than local key binding.
19663
19664 * src/*.c: Set deactivate_mark buffer-locally
19665 (Bug#20260)
19666 * src/insdel.c (prepare_to_modify_buffer_1):
19667 * src/fileio.c (Finsert_file_contents): Set deactivate_mark
19668 buffer-locally.
19669
19670 2015-04-12 Fabián Ezequiel Gallina <fgallina@gnu.org>
19671
19672 python.el: Keep symmetry on sexp navigation with parens
19673 (Bug#19954)
19674 * lisp/progmodes/python.el
19675 (python-nav--forward-sexp): Add argument skip-parens-p.
19676 (python-nav-forward-sexp, python-nav-backward-sexp)
19677 (python-nav-forward-sexp-safe)
19678 (python-nav-backward-sexp-safe): Use it.
19679 * test/automated/python-tests.el
19680 (python-nav-forward-sexp-1): Fix test.
19681
19682 2015-04-12 João Távora <joaotavora@gmail.com>
19683
19684 Don't use `setq-local' in Gnus code
19685 This might break upstream builds with older Emacsen
19686 * lisp/gnus/message.el (message-mode): Use `set' and
19687 `make-local-variable' instead of `setq-local'.
19688
19689 2015-04-12 Paul Eggert <eggert@cs.ucla.edu>
19690
19691 Update Makefile.in's .PHONY dependencies
19692 * Makefile.in (change-history-commit, master-branch-is-current)
19693 (no-ChangeLog): Now phony.
19694
19695 Remove configure's --with-mmdf option
19696 * configure.ac (MAIL_USE_MMDF): Remove.
19697 * etc/NEWS: Document this.
19698 * lib-src/movemail.c: Assume MAIL_USE_MMDF is not defined.
19699 (Bug#20308)
19700
19701 * doc/man/ChangeLog.01: Rename from doc/man/ChangeLog.1.
19702 That way, 'make install' won't think it's a man page.
19703 Reported by Ashish SHUKLA in:
19704 http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00656.html
19705
19706 Improve 'make change-history' prereq tests
19707 * Makefile.in (gen_origin): Fix to match what's in the master branch.
19708 (no-ChangeLog, master-branch-is-current): New rules.
19709 (change-history): Depend on them, to avoid similar future problems.
19710 Escape the local-variables string to pacify Emacs when editing
19711 Makefile.in.
19712
19713 2015-04-12 Artur Malabarba <bruce.connor.am@gmail.com>
19714
19715 * test/automated/package-test.el (with-package-test):
19716 Kill Packages buffer.
19717
19718 * lisp/emacs-lisp/package.el: Improve transaction y-or-n prompt.
19719 (package-menu--prompt-transaction-p): Prompt for "Delete" first,
19720 "Upgrade" last, and use capitalized instead of all-caps.
19721
19722 * lisp/emacs-lisp/package.el: Completely silence async operations.
19723 (package--make-autoloads-and-stuff): Silence autoloads.
19724 (package--save-selected-packages): New function, silences
19725 `customize-save-variable'.
19726 (package--user-selected-p, package-install-from-buffer)
19727 (package-delete, package-install): Use it.
19728 (package-install-from-archive)
19729 (package-menu--perform-transaction): Silence.
19730 (package-menu-execute): Feedback when operation starts.
19731
19732 Use delay-mode-hooks when visiting the init-file
19733 * lisp/emacs-lisp/package.el (package--ensure-init-file):
19734 delay-mode-hooks.
19735 * lisp/cus-edit.el (custom-save-all): delay-mode-hooks.
19736
19737 * lisp/files.el: Only message when saving if save-silently is nil.
19738 (save-silently): New variable.
19739 (files--message): New function.
19740 (find-file-noselect, save-buffer, basic-save-buffer)
19741 (basic-save-buffer-2, save-some-buffers, not-modified)
19742 (append-to-file): Use them.
19743
19744 2015-04-12 Johan Bockgård <bojohan@gnu.org>
19745
19746 Support debug declarations in pcase macros
19747 * lisp/emacs-lisp/pcase.el (pcase-MACRO): New edebug spec.
19748 (pcase-UPAT): Use it. Remove "`".
19749 (pcase--edebug-match-macro): New function.
19750 (pcase-defmacro): Support debug declarations.
19751 * lisp/emacs-lisp/cl-macs.el (cl-struct) <pcase-defmacro>:
19752 * lisp/emacs-lisp/eieio.el (eieio) <pcase-defmacro>:
19753 * lisp/emacs-lisp/pcase.el (\`): <pcase-defmacro>:
19754 Add debug declaration.
19755
19756 pcase.el: Edebug support for `app' and vector patterns
19757 * lisp/emacs-lisp/pcase.el (pcase-FUN): New edebug spec.
19758 (pcase-UPAT): Use it. Support `app' patterns.
19759 (pcase-QPAT): Support vector patterns.
19760
19761 edebug.el: Disambiguate vector specifications
19762 * lisp/emacs-lisp/edebug.el (edebug-match-list): Always treat
19763 `(vector ...)' as a vector specification, not as a sublist.
19764
19765 (gnus-summary-refer-thread): Don't clobber unread articles
19766 This fixes a bug where `A T' causes "random" articles to become marked
19767 as read.
19768 * lisp/gnus/gnus-sum.el (gnus-summary-refer-thread): Make sure
19769 gnus-newsgroup-unreads remains sorted.
19770
19771 mouse-sel.el: Fix mouse-sel-get-selection-function
19772 * lisp/obsolete/mouse-sel.el (mouse-sel-get-selection-function):
19773 Use gui--last-selected-text-primary instead of no longer existing
19774 gui-last-selected-text.
19775
19776 * lisp/rect.el (delete-whitespace-rectangle-line): Don't cross EOL.
19777
19778 * lisp/net/nsm.el (nsm-query-user): Use cursor-in-echo-area.
19779
19780 2015-04-12 Artur Malabarba <bruce.connor.am@gmail.com>
19781
19782 * lisp/emacs-lisp/package.el (list-packages): Avoid redundant generate.
19783
19784 * lisp/emacs-lisp/package.el (list-packages): Call refresh in
19785 right buffer.
19786
19787 * lisp/emacs-lisp/bytecomp.el: Silence noninteractive compilations.
19788 (byte-compile--interactive): New var.
19789 (byte-compile--message): New function.
19790 (byte-compile-log-1, byte-force-recompile)
19791 (byte-recompile-directory, byte-recompile-file)
19792 (byte-compile-file, compile-defun)
19793 (byte-compile-file-form-defmumble, byte-compile)
19794 (byte-compile-file-form-defalias, display-call-tree): Use it.
19795
19796 * lisp/files.el: Don't message when nothing happened.
19797 (save-some-buffers, basic-save-buffer): Before messaging to say
19798 "nothing was saved" check if (called-interactively-p 'any).
19799
19800 2015-04-12 João Távora <joaotavora@gmail.com>
19801
19802 Summary: Improve sexp-based movement in message-mode
19803 Works by giving citations and smileys a different syntax. This helps
19804 modes like `show-paren-mode', `electric-pair-mode', and C-M-*
19805 sexp-based movement.
19806 * lisp/gnus/message.el (message--syntax-propertize): New function.
19807 (message-mode): Set syntax-related vars.
19808 (message-smileys): New variable.
19809 * test/automated/message-mode-tests.el: New file
19810
19811 2015-04-11 Paul Eggert <eggert@cs.ucla.edu>
19812
19813 Use bool for boolean in window.c
19814 * src/window.c: Omit unnecessary static function decls.
19815 (adjust_window_count, select_window, Fselect_window)
19816 (window_body_width, Fwindow_body_height, Fwindow_body_width)
19817 (set_window_hscroll, check_window_containing, Fwindow_at)
19818 (Fwindow_end, Fset_window_start, Fpos_visible_in_window_p)
19819 (unshow_buffer, replace_window, recombine_windows)
19820 (add_window_to_list, candidate_window_p, next_window)
19821 (Fnext_window, Fprevious_window, window_loop, check_all_windows)
19822 (Fget_buffer_window, Fdelete_other_windows_internal)
19823 (replace_buffer_in_windows_safely, set_window_buffer)
19824 (Fset_window_buffer, Fforce_window_update)
19825 (temp_output_buffer_show, make_parent_window)
19826 (window_resize_check, window_resize_apply, Fwindow_resize_apply)
19827 (resize_frame_windows, Fsplit_window_internal)
19828 (Fdelete_window_internal, grow_mini_window, shrink_mini_window)
19829 (Fresize_mini_window_internal, mark_window_cursors_off)
19830 (window_scroll, window_scroll_pixel_based)
19831 (window_scroll_line_based, scroll_command, Fscroll_other_window)
19832 (Fscroll_left, Fscroll_right, displayed_window_lines, Frecenter)
19833 (Fmove_to_window_line, Fset_window_configuration)
19834 (delete_all_child_windows, apply_window_adjustment)
19835 (set_window_fringes, set_window_scroll_bars)
19836 (Fset_window_vscroll, foreach_window, foreach_window_1)
19837 (compare_window_configurations, Fcompare_window_configurations):
19838 Prefer 'bool', 'true', and 'false' for booleans.
19839 * src/window.h (WINDOW_MODE_LINE_LINES)
19840 (WINDOW_HEADER_LINE_LINES): Omit unnecessary "!!" on bool value.
19841
19842 2015-04-11 Artur Malabarba <bruce.connor.am@gmail.com>
19843
19844 Speed up byte-compilation and autoload generation by avoiding mode-hooks
19845 This prevents emacs-lisp-mode-hook from being run everytime an
19846 autoload file is generated, which can account for a fraction of
19847 package installation time depending on the hooks the user has
19848 configured.
19849 * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use delay-mode-hooks.
19850 * lisp/emacs-lisp/autoload.el (autoload-find-file)
19851 (autoload-find-generated-file): Use delay-mode-hooks.
19852
19853 * lisp/emacs-lisp/package.el: Improve `package-menu-refresh'.
19854 (package-menu-refresh): Respect async and do new package checking.
19855 (list-packages): Use `package-menu-refresh' instead of repeating code.
19856
19857 * lisp/emacs-lisp/package.el: Improve package-menu-quick-help.
19858 (package--quick-help-keys): New variable.
19859 (package--prettify-quick-help-key): New function.
19860 (package-menu-quick-help): Use it.
19861
19862 * lisp/emacs-lisp/package.el: Fix initially wrong compat table.
19863 (package--build-compatibility-table): Require finder.
19864
19865 * test/automated/package-test.el: Fix new test.
19866
19867 * lisp/emacs-lisp/package.el: Silence async operations.
19868 (package--silence): New variable.
19869 (package--message): New function.
19870 (package-import-keyring, package-refresh-contents)
19871 (package-compute-transaction, package-install, package-delete)
19872 (package-menu--perform-transaction, package-menu-execute): Use it.
19873
19874 * test/automated/package-test.el: Test async functionality.
19875 (package-test-update-archives-async): New test.
19876
19877 2015-04-11 Daiki Ueno <ueno@gnu.org>
19878
19879 Utilize `make-process' in epg.el
19880 * lisp/epg.el (epg-error-output): Abolish.
19881 (epg-context): New slot `error-buffer'.
19882 (epg--start): Use `make-process' and `make-pipe-process'.
19883 (epg--process-filter): Remove code separating stderr from stdout.
19884 (epg-wait-for-completion): Simplify `error-output' handling.
19885 (epg-reset): Dispose error buffer.
19886
19887 2015-04-11 Paul Eggert <eggert@cs.ucla.edu>
19888
19889 * .gitignore: Ignore doc temps and outputs.
19890
19891 Port commit-msg to MSYS Bash+Gawk
19892 See Eli Zaretskii in:
19893 http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00610.html
19894 * build-aux/git-hooks/commit-msg (cent_sign_utf8_format)
19895 (cent_sign, print_at_sign, at_sign): Revert previous change.
19896 (print_at_sign): Prepend "BEGIN".
19897 (at_sign): Redirect from /dev/null to be safer with pre-POSIX awk.
19898
19899 Port commit-msg to broken MS-Windows shell
19900 * build-aux/git-hooks/commit-msg (cent_sign):
19901 Just use UTF-8 here rather than ASCII + printf, as the latter fails
19902 on a broken MS-Windows shell. Reported by Eli Zaretskii in:
19903 http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00592.html
19904
19905 2015-04-11 Chris Zheng <chriszheng99@gmail.com> (tiny change)
19906
19907 Support GnuTLS v3.4 and later on MS-Windows
19908 * src/gnutls.c (syms_of_gnutls) <libgnutls-version>: New DEFSYM.
19909 * lisp/term/w32-win.el (dynamic-library-alist): Determine which
19910 GnuTLS DLL to load according to value of libgnutls-version.
19911 (Bug#20294)
19912
19913 2015-04-11 Paul Eggert <eggert@cs.ucla.edu>
19914
19915 Minor quoting etc. fixes to misc manuals
19916 Fix some minor quoting and spacing issues. Distinguish more
19917 clearly among grave accent and apostrophe (which are ASCII) and
19918 single quote (which is not). Prefer the standard terms
19919 "apostrophe" and "grave accent" to alternative names that can be
19920 confusing. Use apostrophes to single-quote ASCII text.
19921 * doc/misc/remember.texi: Spell the mystic's pseudonym in UTF-8
19922 rather than approximating it in ASCII with grave accent.
19923
19924 2015-04-11 Daiki Ueno <ueno@gnu.org>
19925
19926 Respect more keyword args in `make-process'
19927 * src/process.c (Fmake_process): Respect `:sentinel' and `:filter'
19928 keywords as documented.
19929
19930 2015-04-10 Dmitry Gutov <dgutov@yandex.ru>
19931
19932 Extract ChangeLog entries when committing a directory
19933 * lisp/vc/vc-dispatcher.el (vc-log-edit): Update FIXME comment.
19934 * lisp/vc/log-edit.el (log-edit-changelog-insert-entries):
19935 Add a FIXME comment.
19936 (log-edit-changelog-entries): Extract from
19937 `log-edit-changelog-entries', handle FILE being a directory
19938 (http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00555.html).
19939
19940 2015-04-10 Paul Eggert <eggert@cs.ucla.edu>
19941
19942 Fix problems found by --enable-gcc-warnings
19943 * src/process.c (create_process, Fmake_pipe_process)
19944 (Fmake_network_process): Omit unused locals.
19945
19946 Fix commit-msg to handle scissors lines
19947 * build-aux/git-hooks/commit-msg:
19948 Ignore every line after a scissors line, such as a line generated
19949 by 'git commit -v'. Problem reported by Johan Bockgård in:
19950 http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00580.html
19951
19952 port commit-msg to Gawk 3.0.4 (1999)
19953 * build-aux/git-hooks/commit-msg (cent_sign_utf8_format, cent_sign)
19954 (print_at_sign, at_sign): New vars. Use them to avoid problems
19955 Eli Zaretskii encountered with Gawk 3.0.4 (1999) on MSYS. See:
19956 http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00566.html
19957
19958 Have commit-msg report commit failure
19959 * build-aux/git-hooks/commit-msg: If the commit is aborted,
19960 say so. Simplify by doing this at the end. Problem reported
19961 by Eli Zaretskii in:
19962 http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00566.html
19963
19964 2015-04-10 Thomas Fitzsimmons <fitzsim@fitzsim.org>
19965
19966 Clean up LDAP Configuration section of EUDC manual
19967 * doc/misc/eudc.texi: Combine indices.
19968 (LDAP Configuration): Use command markup. Add index entries.
19969 Change formatting. Wrap long lines. Add noindent markup.
19970
19971 2015-04-10 Daiki Ueno <ueno@gnu.org>
19972
19973 Add facility to collect stderr of async subprocess
19974 * src/w32.h (register_aux_fd): New function declaration.
19975 * src/w32.c (register_aux_fd): New function.
19976 * src/process.h (struct Lisp_Process): New member stderrproc.
19977 * src/process.c (PIPECONN_P): New macro.
19978 (PIPECONN1_P): New macro.
19979 (Fdelete_process, Fprocess_status, Fset_process_buffer)
19980 (Fset_process_filter, Fset_process_sentinel, Fstop_process)
19981 (Fcontinue_process): Handle pipe process specially.
19982 (create_process): Respect p->stderrproc.
19983 (Fmake_pipe_process): New function.
19984 (Fmake_process): Add new keyword argument :stderr.
19985 (wait_reading_process_output): Specially handle a pipe process when
19986 it gets an EOF.
19987 (syms_of_process): Register Qpipe and Smake_pipe_process.
19988 * doc/lispref/processes.texi (Asynchronous Processes): Document
19989 `make-pipe-process' and `:stderr' keyword of `make-process'.
19990 * lisp/subr.el (start-process): Suggest to use `make-process' handle
19991 standard error separately.
19992 * test/automated/process-tests.el (process-test-stderr-buffer)
19993 (process-test-stderr-filter): New tests.
19994 * etc/NEWS: Mention new process type `pipe' and its usage with the
19995 `:stderr' keyword of `make-process'.
19996
19997 2015-04-10 Paul Eggert <eggert@cs.ucla.edu>
19998
19999 Minor quoting etc. fixes to lispref manual
20000 * doc/lispref/tips.texi (Documentation Tips):
20001 Distinguish more clearly among grave accent, apostrophe,
20002 and single quote.
20003 * doc/lispref/README, doc/lispref/buffers.texi:
20004 * doc/lispref/commands.texi, doc/lispref/control.texi:
20005 * doc/lispref/customize.texi, doc/lispref/display.texi:
20006 * doc/lispref/elisp.texi, doc/lispref/files.texi:
20007 * doc/lispref/frames.texi, doc/lispref/hash.texi:
20008 * doc/lispref/help.texi, doc/lispref/internals.texi:
20009 * doc/lispref/loading.texi, doc/lispref/makefile.w32-in:
20010 * doc/lispref/markers.texi, doc/lispref/modes.texi:
20011 * doc/lispref/nonascii.texi, doc/lispref/objects.texi:
20012 * doc/lispref/os.texi, doc/lispref/positions.texi:
20013 * doc/lispref/strings.texi, doc/lispref/syntax.texi:
20014 * doc/lispref/text.texi, doc/lispref/tips.texi:
20015 * doc/lispref/two-volume-cross-refs.txt, doc/lispref/windows.texi:
20016 Use American-style double quoting in ordinary text,
20017 and quote 'like this' when single-quoting in ASCII text.
20018 Also, fix some minor spacing issues.
20019
20020 2015-04-10 Michael Albinus <michael.albinus@gmx.de>
20021
20022 Handle symlinked test directory in tramp-tests.el
20023 * test/automated/tramp-tests.el (tramp-test18-file-attributes)
20024 (tramp--test-check-files): Use `file-truename' for directories.
20025
20026 2015-04-10 Eli Zaretskii <eliz@gnu.org>
20027
20028 Fix 'recenter' when visual-line-mode is turned on
20029 * src/window.c (Frecenter): Use the same code for GUI and TTY
20030 frames alike; use vmotion only for "initial" frames. This is
20031 because vmotion doesn't support visual-line-mode. Rewrite the
20032 'iarg >= 0' case to use move_it_* functions instead of using
20033 vmotion, for the same reason. Fix the clipping of the argument
20034 value to support scroll-margin in all cases and avoid unwarranted
20035 recentering. Reported by Milan Stanojević <milanst@gmail.com> in
20036 http://lists.gnu.org/archive/html/help-gnu-emacs/2015-04/msg00092.html,
20037 which see.
20038
20039 2015-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20040
20041 * lisp/abbrev.el (define-abbrev-table): Refine last change.
20042
20043 * lisp/emacs-lisp/cl-lib.el: Partial revert of "2015-04-05 Rationalize
20044 use of c[ad]+r", so as to keep the "cl-" prefix on all
20045 cl-lib definitions.
20046
20047 * lisp/progmodes/vhdl-mode.el (vhdl-prepare-search-2):
20048 Use inhibit-point-motion-hooks.
20049
20050 * lisp/cedet/semantic: Remove some dead code.
20051 * lisp/cedet/semantic/util-modes.el
20052 (semantic-stickyfunc-header-line-format): Emacs<22 is not supported
20053 any more.
20054 * lisp/cedet/semantic/fw.el (semantic-buffer-local-value): Emacs<21 is
20055 not supported any more.
20056 (semantic-safe): Use `declare'.
20057 * lisp/cedet/semantic/decorate.el (semantic-set-tag-intangible)
20058 (semantic-tag-intangible-p): Remove unused functions.
20059 * lisp/cedet/semantic/complete.el (semantic-displayor-window-edges):
20060 Remove unused function.
20061
20062 * lisp/gnus/gnus-art.el (gnus-hidden-properties): Simplify.
20063 (gnus-article-hide-text, gnus-article-unhide-text)
20064 (gnus-article-unhide-text-type): Remove special handling of
20065 `intangible' since that property is not used any more.
20066 (gnus-article-treat-body-boundary): Use gnus-hidden-properties.
20067
20068 2015-04-09 Dmitry Gutov <dgutov@yandex.ru>
20069
20070 Use the VC root in `log-edit-listfun'
20071 * lisp/vc/vc-dispatcher.el (vc-log-edit): Use the VC root in
20072 `log-edit-listfun'.
20073
20074 2015-04-09 Jay Belanger <jay.p.belanger@gmail.com>
20075
20076 Fix description of Unix time, mention new function.
20077 * lisp/calc/calc-forms.el (calcFunc-unixtime): Fix adjustment for
20078 Unix time.
20079 * doc/misc/calc.texi (Date Forms): Fix description of Unix time.
20080 (Basic Operations on Units): Mention `calc-convert-exact-units'.
20081
20082 2015-04-09 Artur Malabarba <bruce.connor.am@gmail.com>
20083
20084 * lisp/emacs-lisp/package.el: Use mode-line-process for notification.
20085
20086 2015-04-09 Dmitry Gutov <dgutov@yandex.ru>
20087
20088 * lisp/vc/log-edit.el (log-edit-insert-changelog-entries):
20089 Don't add newline after the last entry.
20090
20091 2015-04-09 Simen Heggestøyl <simenheg@gmail.com>
20092
20093 css-mode.el: Add "not" pseudo-class
20094 (Bug#20267)
20095 * lisp/textmodes/css-mode.el (css-pseudo-class-ids): Add "not" to
20096 list of CSS pseudo-classes.
20097
20098 2015-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20099
20100 * etc/NEWS: Add missing entry for "Stop messing with the EMACS env var".
20101
20102 2015-04-09 Michael Albinus <michael.albinus@gmx.de>
20103
20104 Stop messing with the EMACS env var
20105 * doc/emacs/misc.texi (Interactive Shell): Remove description of
20106 EMACS env var.
20107
20108 2015-04-09 Paul Eggert <eggert@cs.ucla.edu>
20109
20110 Adapt 'make change-history' to coding cookie
20111 * Makefile.in (change-history): Adjust to change of format of
20112 ChangeLog file, which now has a coding cookie before an indented
20113 copyright notice.
20114
20115 2015-04-09 Paul Eggert <eggert@cs.ucla.edu>
20116
20117 Adapt 'make change-history' to coding cookie
20118 * Makefile.in (change-history): Adjust to change of format of
20119 ChangeLog file, which now has a coding cookie before an indented
20120 copyright notice.
20121
20122 gitlog-to-changelog coding cookie and mv -i
20123 * build-aux/gitlog-to-emacslog: Use ChangeLog.1, not Makefile.in,
20124 for copyright notice prototype, so that we get a proper "coding:"
20125 cookie. Use 'mv -i' to avoid unconditionally overwriting an
20126 existing ChangeLog. Problems reported by Eli Zaretskii in:
20127 http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
20128
20129 Merge from gnulib
20130 * build-aux/gitlog-to-changelog: Update from gnulib, incorporating:
20131 2015-04-09 gitlog-to-changelog: port to MS-Windows
20132
20133 2015-04-09 Boruch Baum <boruch_baum@gmx.com> (tiny change)
20134
20135 * lisp/bookmark.el (bookmark-bmenu-goto-bookmark): Don't inf-loop.
20136 (Bug#20212)
20137
20138 2015-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20139
20140 Stop messing with the EMACS env var
20141 (Bug#20202)
20142 * lisp/net/tramp-sh.el (tramp-remote-process-environment):
20143 * lisp/comint.el (comint-exec-1):
20144 * lisp/term.el (term-exec-1): Don't set EMACS envvar.
20145 * lisp/progmodes/compile.el (compilation-start): Same and bring
20146 INSIDE_EMACS's format in line with other users.
20147
20148 css-mode.el (css-smie-rules): Fix indentation after complex selectors
20149 (Bug#20282)
20150 * lisp/textmodes/css-mode.el (css-smie-rules): Don't get confused by
20151 inner structure of selectors.
20152
20153 2015-04-08 Fabián Ezequiel Gallina <fgallina@gnu.org>
20154
20155 python.el: Indent docstring lines to base-indent
20156 (Bug#19595)
20157 Thanks to immerrr <immerrr@gmail.com> for reporting and providing
20158 an initial patch.
20159 * lisp/progmodes/python.el
20160 (python-indent-context): Add :inside-docstring context.
20161 (python-indent--calculate-indentation): Handle :inside-docstring.
20162 (python-indent-region): Re-indent docstrings.
20163 * test/automated/python-tests.el (python-indent-region-5)
20164 (python-indent-inside-string-2): Fix tests.
20165
20166 python.el: Increase native completion robustness
20167 (Bug#19755)
20168 Thanks to Carlos Pita <carlosjosepita@gmail.com> for reporting
20169 this and providing useful ideas.
20170 * lisp/progmodes/python.el
20171 (python-shell-completion-native-output-timeout): Increase value.
20172 (python-shell-completion-native-try-output-timeout): New var.
20173 (python-shell-completion-native-try): Use it.
20174 (python-shell-completion-native-setup): New readline setup avoids
20175 polluting current context, ensures output when no-completions are
20176 available and includes output end marker.
20177 (python-shell-completion-native-get-completions): Trigger with one
20178 tab only. Call accept-process-output until output end is found or
20179 python-shell-completion-native-output-timeout is exceeded.
20180
20181 2015-04-08 Samer Masterson <samer@samertm.com>
20182
20183 * lisp/eshell: Make backslash a no-op in front of normal chars
20184 (Bug#8531)
20185 * lisp/eshell/esh-arg.el (eshell-parse-argument-hook): Update comment.
20186 (eshell-parse-backslash): Return escaped character after backslash
20187 if it is special. Otherwise, if the backslash is not in a quoted
20188 string, ignore the backslash and return the character after; if
20189 the backslash is in a quoted string, return the backslash and the
20190 character after.
20191 * test/automated/eshell.el (eshell-test/escape-nonspecial)
20192 (eshell-test/escape-nonspecial-unicode)
20193 (eshell-test/escape-nonspecial-quoted)
20194 (eshell-test/escape-special-quoted): Add tests for new
20195 `eshell-parse-backslash' behavior.
20196
20197 2015-04-08 Gustav Hållberg <gustav@gmail.com> (tiny change)
20198
20199 * lisp/vc/diff-mode.el (diff-hunk-file-names): Don't require a TAB
20200 after the file name.
20201 (Bug#20276)
20202
20203 2015-04-08 Paul Eggert <eggert@cs.ucla.edu>
20204
20205 Minor quoting etc. fixes to Emacs manual
20206 * doc/emacs/Makefile.in, doc/emacs/ack.texi, doc/emacs/building.texi:
20207 * doc/emacs/calendar.texi, doc/emacs/cmdargs.texi:
20208 * doc/emacs/custom.texi, doc/emacs/dired.texi, doc/emacs/emacs.texi:
20209 * doc/emacs/files.texi, doc/emacs/glossary.texi, doc/emacs/gnu.texi:
20210 * doc/emacs/indent.texi, doc/emacs/macos.texi:
20211 * doc/emacs/maintaining.texi, doc/emacs/makefile.w32-in:
20212 * doc/emacs/programs.texi, doc/emacs/rmail.texi:
20213 * doc/emacs/search.texi, doc/emacs/trouble.texi:
20214 * doc/emacs/vc1-xtra.texi:
20215 Use American-style double quoting in ordinary text,
20216 and quote 'like this' when single-quoting in ASCII text.
20217 Also, fix some minor spacing issues.
20218
20219 Minor quoting etc. fixes to elisp intro
20220 * doc/lispintro/emacs-lisp-intro.texi: Consistently use
20221 American-style double quoting in ordinary text. In ASCII text,
20222 consistently quote 'like this' instead of `like this', unless
20223 Emacs requires the latter.
20224
20225 2015-04-08 Dmitry Gutov <dgutov@yandex.ru>
20226
20227 * CONTRIBUTE: Mention log-edit-insert-changelog.
20228
20229 * CONTRIBUTE: Emphasize creating the top-level ChangeLog file manually.
20230
20231 2015-04-08 Paul Eggert <eggert@cs.ucla.edu>
20232
20233 * doc/misc/calc.texi (Summary): Avoid '@:' when usurped.
20234
20235 2015-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20236
20237 * lisp/emacs-lisp/eieio-core.el (eieio-copy-parents-into-subclass):
20238 Fix inheritance of initargs. (Bug#20270)
20239
20240 2015-04-08 Artur Malabarba <bruce.connor.am@gmail.com>
20241
20242 * lisp/emacs-lisp/package.el (package-menu-mode): Mode-line notification
20243 while dowloading information.
20244
20245 * lisp/emacs-lisp/package.el: More conservative `ensure-init-file'
20246 (package--ensure-init-file): Check file contents before visiting.
20247 (package-initialize): Call it.
20248 (package-install-from-buffer, package-install): Don't call it.
20249
20250 2015-04-08 Eli Zaretskii <eliz@gnu.org>
20251
20252 * src/eval.c (init_eval_once): Bump max_lisp_eval_depth to 800.
20253 (Bug#17517)
20254
20255 2015-04-08 Michael Albinus <michael.albinus@gmx.de>
20256
20257 * lisp/net/tramp-cache.el (tramp-flush-file-property):
20258 Fix nasty scoping bug.
20259
20260 2015-04-08 Tassilo Horn <tsdh@gnu.org>
20261
20262 Add notice to visual commands section
20263 * doc/misc/eshell.texi (Input/Output): Add notice that some tools
20264 such as git call less with its -F option which omits pagination if
20265 the contents is less than one page long. This interferes with
20266 eshell's visual (sub-)commands.
20267
20268 2015-04-07 Dmitry Gutov <dgutov@yandex.ru>
20269
20270 * lisp/ffap.el (ffap-string-at-point-mode-alist): Support
20271 environment variable expansion in file names. (Bug#19839)
20272
20273 2015-04-07 Paul Eggert <eggert@cs.ucla.edu>
20274
20275 Prefer double-quote to accent-grave in man pages
20276
20277 2015-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
20278
20279 (Bug#20257)
20280 * lisp/files.el (set-visited-file-name): Clear auto-save if nil.
20281
20282 2015-04-07 Ivan Shmakov <ivan@siamics.net>
20283
20284 Update etc/PROBLEMS.
20285 * etc/PROBLEMS: Mention visible-cursor; a few more mentions of
20286 ~/.Xresources and xrdb(1); refer to 'GNU Coreutils' and
20287 'X Window System' or 'X' (were: 'GNU Fileutils' and 'X Windows',
20288 respectively); other minor updates and tweaks. (Bug#20011)
20289
20290 2015-04-07 Paul Eggert <eggert@cs.ucla.edu>
20291
20292 Add doc strings for some Isearch state vars
20293 * lisp/misearch.el (multi-isearch-buffer-list)
20294 (multi-isearch-file-list): Add doc strings.
20295 (Bug#20232)
20296
20297 2015-04-07 Alan Mackenzie <acm@muc.de>
20298
20299 Always mark "<" and ">" in #include directives with text properties.
20300 * lisp/progmodes/c-fonts.el (c-cpp-matchers): Replace a font-lock
20301 "anchored matcher" with an invocation of
20302 c-make-font-lock-search-function to allow fontification when there's
20303 no trailing space on an "#include <..>" line.
20304
20305 2015-04-07 Paul Eggert <eggert@cs.ucla.edu>
20306
20307 Generate a ChangeLog file from commit logs
20308 * .gitignore: Add 'ChangeLog'.
20309 * build-aux/gitlog-to-changelog: New file, from Gnulib.
20310 * build-aux/gitlog-to-emacslog: New file.
20311 * CONTRIBUTE: Document the revised workflow.
20312 * Makefile.in (clean): Remove *.tmp and etc/*.tmp*
20313 instead of just special cases.
20314 (CHANGELOG_HISTORY_INDEX_MAX, CHANGELOG_N, gen_origin): New vars.
20315 (ChangeLog, unchanged-history-files, change-history)
20316 (change-history-commit): New rules.
20317 * admin/admin.el (make-manuals-dist--1):
20318 Don't worry about doc/ChangeLog.
20319 * admin/authors.el: Add a FIXME.
20320 * admin/make-tarball.txt:
20321 * lisp/calendar/icalendar.el:
20322 * lisp/gnus/deuglify.el:
20323 * lisp/obsolete/gulp.el:
20324 * lwlib/README:
20325 Adjust to renamed ChangeLog history files.
20326 * admin/merge-gnulib (GNULIB_MODULES): Add gitlog-to-changelog.
20327 * admin/notes/repo: Call it 'master' a la Git, not 'trunk' a la Bzr.
20328 Remove obsolete discussion of merging ChangeLog files.
20329 New section "Maintaining ChangeLog history".
20330 * build-aux/git-hooks/pre-commit:
20331 Reject attempts to commit files named 'ChangeLog'.
20332 * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
20333 * make-dist: Make and distribute top-level ChangeLog if there's a
20334 .git directory. Distribute the new ChangeLog history files
20335 instead of scattered ChangeLog files. Distribute the new files
20336 gitlog-to-changelog and gitlog-to-emacslog.
20337 (Bug#19113)
20338
20339 Rename ChangeLogs for gitlog-to-changelog
20340 This patch was implemented via the following shell commands:
20341 find * -name ChangeLog |
20342 sed 's,.*,git mv & &.1,
20343 s, lisp/ChangeLog\.1$, lisp/ChangeLog.17,
20344 s, lisp/erc/ChangeLog\.1$, lisp/erc/ChangeLog.09,
20345 s, lisp/gnus/ChangeLog\.1$, lisp/gnus/ChangeLog.3,
20346 s, lisp/mh-e/ChangeLog\.1$, lisp/mh-e/ChangeLog.2,
20347 s, src/ChangeLog\.1$, src/ChangeLog.13,' |
20348 sh
20349 git commit -am"[this commit message]"
20350
20351 This file records repository revisions from
20352 commit 9d56a21e6a696ad19ac65c4b405aeca44785884a (exclusive) to
20353 commit 531b28b4d96adf39d853fcb5e0bba7251fcce4b6 (inclusive).
20354 See ChangeLog.1 for earlier changes.
20355
20356 ;; Local Variables:
20357 ;; coding: utf-8
20358 ;; End:
20359
20360 Copyright (C) 2015 Free Software Foundation, Inc.
20361
20362 This file is part of GNU Emacs.
20363
20364 GNU Emacs is free software: you can redistribute it and/or modify
20365 it under the terms of the GNU General Public License as published by
20366 the Free Software Foundation, either version 3 of the License, or
20367 (at your option) any later version.
20368
20369 GNU Emacs is distributed in the hope that it will be useful,
20370 but WITHOUT ANY WARRANTY; without even the implied warranty of
20371 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20372 GNU General Public License for more details.
20373
20374 You should have received a copy of the GNU General Public License
20375 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.