]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 years ago; Merge from origin/emacs-26
Paul Eggert [Thu, 9 Nov 2017 03:22:26 +0000 (19:22 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

a215be9994 Handle object string name in eieio-persistent-convert-list...

7 years agoMerge from origin/emacs-26
Paul Eggert [Thu, 9 Nov 2017 03:22:26 +0000 (19:22 -0800)]
Merge from origin/emacs-26

255ba01148 Fix handling of nil PRED2 arg for completion-table-with-pr...
949b70a7d8 ; Minor comment copyedit in window.c
20f9bf30f0 Describe Lao rendering problem
3d61657694 Fix docstring of arabic-shaper-ZWNJ-handling
db949166ec Handle single-line comments correctly (Bug#26049)
795bb233a5 * test/lisp/net/tramp-tests.el (tramp-test16-file-expand-w...
ba00ea7d0d * etc/PROBLEMS: Add URL to relevant issues for xterm+evil bug
4a6015811e ; In text.texi fix typo spotted by Štěpán Němec
93cd8415b2 Document new treatment of 'comment-auto-fill-only-comments'
ca2d94ba61 Do not load Tramp unless `tramp-mode' is non-nil
709478eaa8 Prefer `customize-set-variable' in tramp.texi
5d36f2227f Fix last change in hscroll_window_tree
72d07d1950 Ediff: add some missing documentation
18af404ef3 Support python virtualenv on w32 (Bug#24464)
efd0371c23 Improve dired deletion error handling (Bug#28797)
5d744e032f Don't replace user input when completion prefix is empty (...
ec6cf35c5f ; Describe xt-mouse problems with Evil mode
c572e1f329 Return non-nil from gnutls-available-p under GnuTLS 2.x
a2cc6d74c5 Fix Flymake help-echo functions across windows (bug#29142)
58bb3462ee Add tests for Flymake backends for Ruby and Perl
58e742b21d Add a Flymake backend for Perl
9dee764165 Add a Flymake backend for Ruby
3ad712ebc9 Add a Flymake backend for Python (bug#28808)
8db2b3a79b Allow "%" in Tramp host names
8c50842790 ; Fix typo in test/file-organization.org
00fa4449cd ; Fix typo
918a2dda07 Use hybrid malloc for FreeBSD (Bug#28308)
725ab635d9 Add html-, mhtml- and python-mode support to semantic symref
369da28702 Improve documentation of 'window-scroll-functions'
93818eed8a Fix subtle problems in tabulated-list-mode with line numbers
1f1de8e872 Make gdb-non-stop-setting default to nil on MS-Windows
680e8e119b Fix gdb-mi prompt after "attach PID" command
ff33074546 Fix doc string of 'window-configuration-change-hook'
787b75ad71 Improve documentation of window hooks
d9be8704ae Fix hscroll suspension after cursor motion
6f43d29d29 ; * CONTRIBUTE, admin/make-tarball.txt: Doc tweaks re 'ema...
a0d30d6369 Introduce a function to CC Mode which displays the current...
383abc8898 ; Fix some comment typos
b02c2714c3 Fix typos in ediff-wind.el
4f38bdec74 Examine tex-chktex--process in the correct buffer
94b490529a * nt/INSTALL.W64: Update to current mingw64 install instru...
c25113d4ac Don't resignal errors in flymake-diag-region
e950f329c0 New xref-quit-and-goto-xref command bound to TAB (bug#28814)
5d34e1b288 Allow split-window-sensibly to split threshold in further ...
2a973edeac Honor window-switching intents in xref-find-definitions (b...
78e9065e9f * lisp/emacs-lisp/generator.el (iter-do): Add a debug decl...
caa63cc96c * lisp/progmodes/flymake.el (flymake-start): Fix dead buff...
9f4f130b79 Fix buffer name comparison in async shell-command

# Conflicts:
# etc/NEWS
# lisp/vc/ediff-wind.el

7 years agoHandle object string name in eieio-persistent-convert-list-object
Eric Abrahamsen [Sun, 22 Oct 2017 14:59:29 +0000 (07:59 -0700)]
Handle object string name in eieio-persistent-convert-list-object

* lisp/emacs-lisp/eieio-base.el (eieio-persistent-convert-list-to-object):
  Starting to phase out the printing of object names in
  `object-write', handle either case.

7 years agoFix handling of nil PRED2 arg for completion-table-with-predicate
Ryan C. Thompson [Wed, 26 Jul 2017 18:09:42 +0000 (11:09 -0700)]
Fix handling of nil PRED2 arg for completion-table-with-predicate

* lisp/minibuffer.el (completion-table-with-predicate): Don't act as
if strict is non-nil when pred2 is nil (Bug#27841).
* test/lisp/minibuffer-tests.el
(completion-table-with-predicate-test): Add a test for Bug#27841.

7 years ago* lisp/net/tramp-cmds.el, lisp/allout.el: Avoid custom-set-variables
Stefan Monnier [Wed, 8 Nov 2017 01:45:58 +0000 (20:45 -0500)]
* lisp/net/tramp-cmds.el, lisp/allout.el: Avoid custom-set-variables

* lisp/net/tramp-cmds.el (tramp-change-syntax):
* lisp/allout.el (allout-init): Avoid custom-set-variables.

7 years ago; * test/src/keyboard-tests.el: Standardize copyright and license.
Glenn Morris [Tue, 7 Nov 2017 23:59:35 +0000 (18:59 -0500)]
; * test/src/keyboard-tests.el: Standardize copyright and license.

7 years ago; Minor comment copyedit in window.c
Eli Zaretskii [Tue, 7 Nov 2017 19:57:56 +0000 (21:57 +0200)]
; Minor comment copyedit in window.c

* src/window.c (Fset_window_configuration): Don't use non-ASCII
quotes in comments.

7 years agoIncrease DUMPED_HEAP_SIZE in w32heap.c
John Mastro [Tue, 7 Nov 2017 19:38:58 +0000 (21:38 +0200)]
Increase DUMPED_HEAP_SIZE in w32heap.c

* src/w32heap.c (DUMPED_HEAP_SIZE) [_WIN64 || WIDE_EMACS_INT]: Bump
up DUMPED_HEAP_SIZE to 22 MiB.  (Bug#29180)

7 years ago* lisp/minibuffer.el: Put completions-common-part on all common parts
Stefan Monnier [Tue, 7 Nov 2017 17:17:34 +0000 (12:17 -0500)]
* lisp/minibuffer.el: Put completions-common-part on all common parts

(completion-pcm--pattern-point-idx): New function.
(completion-pcm--hilit-commonality): Use it.
Put completions-common-part on all the common parts.

7 years ago* lisp/filecache.el: Use lexical-binding. Simplify.
Stefan Monnier [Tue, 7 Nov 2017 17:10:51 +0000 (12:10 -0500)]
* lisp/filecache.el: Use lexical-binding.  Simplify.

Remove redundant :group args, use with-tmep-buffer and let
completion-all-completions do its work.

(file-cache-minibuffer-complete): Skip `completion-hilit-commonality`
since `completion-all-completions' already hilighted its output.
Call our setup function directly rather than via `completion-setup-hook`.
(file-cache-buffer): Remove variable.
(file-cache-buffer-default-regexp): Make it a defvar.
(file-cache--add-from-buffer): Rename from
file-cache-add-from-file-cache-buffer and use current-buffer and
match-string-no-properties.
(file-cache-add-directory-using-find)
(file-cache-add-directory-using-locate): Adjust accordingly and use
with-temp-buffer.

7 years agoHandle unread-command-events consistently (bug#23980)
Chris Feng [Tue, 7 Nov 2017 16:39:43 +0000 (00:39 +0800)]
Handle unread-command-events consistently (bug#23980)

* src/keyboard.c (read_char): Events put into `unread-command-events'
with the form (t . EVENT) should always have the t stripped when read
out.
* test/src/keyboard-tests.el: New tests for `unread-command-events'.

7 years agoMark flymake-diagnostic-functions as save to set locally to nil.
Sam Steingold [Tue, 7 Nov 2017 15:46:33 +0000 (10:46 -0500)]
Mark flymake-diagnostic-functions as save to set locally to nil.

* lisp/progmodes/flymake.el (flymake-diagnostic-functions): Set
`safe-local-variable' property to `null'.
Now one can disable flymake-mode locally in a file by setting
`flymake-diagnostic-functions' to nil, see `(Emacs)File Variables'.

7 years agoDescribe Lao rendering problem
K. Handa [Tue, 7 Nov 2017 11:53:32 +0000 (20:53 +0900)]
Describe Lao rendering problem

* etc/PROBLEMS: Describe a workaround for the problem of Lao rendering
by OpenTyype font.

7 years agoFix docstring of arabic-shaper-ZWNJ-handling
K. Handa [Tue, 7 Nov 2017 11:50:46 +0000 (20:50 +0900)]
Fix docstring of arabic-shaper-ZWNJ-handling

* lisp/language/misc-lang.el (arabic-shaper-ZWNJ-handling): Adjusted
the doctstring for addition of :set (bug#28312).

7 years agoHandle single-line comments correctly (Bug#26049)
Antonin Houska [Mon, 6 Nov 2017 08:59:07 +0000 (09:59 +0100)]
Handle single-line comments correctly (Bug#26049)

* lisp/newcomment.el (comment-region-internal): Previously, the
comment text had to contain at least one line break character for the
ending extra line to be added.  Make the behavior more consistent by
looking for end of line instead.
(comment-region-internal): Remove trailing white space from the
comment's initial line.

Copyright-paperwork-exempt: yes

7 years ago* test/lisp/net/tramp-tests.el (tramp-test16-file-expand-wildcards):
Glenn Morris [Mon, 6 Nov 2017 23:50:53 +0000 (18:50 -0500)]
* test/lisp/net/tramp-tests.el (tramp-test16-file-expand-wildcards):
Clean up properly.

7 years agoOverride possible change of next-error-last-buffer in next-error-function
Juri Linkov [Mon, 6 Nov 2017 21:40:31 +0000 (23:40 +0200)]
Override possible change of next-error-last-buffer in next-error-function

* lisp/simple.el (next-error, next-error-internal):
Setq next-error-last-buffer after next-error-function call.
(Bug#28864)

7 years ago* etc/PROBLEMS: Add URL to relevant issues for xterm+evil bug
Stefan Monnier [Mon, 6 Nov 2017 13:33:16 +0000 (08:33 -0500)]
* etc/PROBLEMS: Add URL to relevant issues for xterm+evil bug

7 years ago; In text.texi fix typo spotted by Štěpán Němec
Martin Rudalics [Mon, 6 Nov 2017 13:11:15 +0000 (14:11 +0100)]
; In text.texi fix typo spotted by Štěpán Němec

7 years agoDocument new treatment of 'comment-auto-fill-only-comments'
Martin Rudalics [Mon, 6 Nov 2017 07:45:52 +0000 (08:45 +0100)]
Document new treatment of 'comment-auto-fill-only-comments'

* doc/lispref/text.texi (Auto Filling): Add reference to Emacs
manual.  Add description of 'comment-auto-fill-only-comments'.
* etc/NEWS: Mention new treatment of
'comment-auto-fill-only-comments'.

7 years agoDo not load Tramp unless `tramp-mode' is non-nil
Michael Albinus [Sun, 5 Nov 2017 19:08:05 +0000 (20:08 +0100)]
Do not load Tramp unless `tramp-mode' is non-nil

* lisp/net/tramp.el (tramp-autoload-file-name-handler): Load Tramp only if
`tramp-mode' is non-nil.
(tramp-unload-file-name-handlers): Unload also
`tramp-autoload-file-name-handler'.

* test/lisp/net/tramp-tests.el (tramp-test42-delay-load): Extend test.

7 years agoPrefer `customize-set-variable' in tramp.texi
Michael Albinus [Sun, 5 Nov 2017 19:07:12 +0000 (20:07 +0100)]
Prefer `customize-set-variable' in tramp.texi

* doc/misc/tramp.texi (Configuration, Default Method, Default User)
(Default Host, Remote shell setup, Auto-save and Backup)
(Ad-hoc multi-hops, Frequently Asked Questions):
Prefer `customize-set-variable' over `custom-set-variables'.

7 years agoFix last change in hscroll_window_tree
Eli Zaretskii [Sun, 5 Nov 2017 18:10:38 +0000 (20:10 +0200)]
Fix last change in hscroll_window_tree

* src/xdisp.c (hscroll_window_tree): When hscroll suspension is
being disabled, set the frame's garbaged flag less eagerly.
(Bug#29002)

7 years agoEdiff: add some missing documentation
Philipp Stephani [Sat, 23 Sep 2017 18:43:44 +0000 (20:43 +0200)]
Ediff: add some missing documentation

* vc/ediff.el (ediff-files, ediff-files3, ediff-buffers)
(ediff-buffers3, ediff-merge-directories)
(ediff-merge-directories-with-ancestor)
(ediff-merge-directory-revisions)
(ediff-merge-directory-revisions-with-ancestor)
(ediff-windows-wordwise, ediff-windows-linewise)
(ediff-regions-wordwise, ediff-regions-linewise)
(ediff-merge-files, ediff-merge-files-with-ancestor)
(ediff-merge-buffers, ediff-merge-buffers-with-ancestor)
(ediff-merge-revisions, ediff-merge-revisions-with-ancestor)
(ediff-patch-file, ediff-revision): Document missing arguments.
(ediff-patch-buffer, ediff-revision): Add second space after
period.
(ediff-files-command, ediff3-files-command, ediff-merge-command)
(ediff-merge-with-ancestor-command, ediff-directories-command)
(ediff-directories3-command, ediff-merge-directories-command): Add
documentation for the command line functions.

7 years agoSupport python virtualenv on w32 (Bug#24464)
Justin Timmons [Mon, 12 Dec 2016 00:39:56 +0000 (19:39 -0500)]
Support python virtualenv on w32 (Bug#24464)

According to the virtualenv docs only POSIX systems follow the
structure "/path/to/venv/bin/", while windows systems use
"/path/to/venv/Scripts" for the location of the binary files, most
importantly including the python interpreter (see:
https://virtualenv.pypa.io/en/stable/userguide/#windows-notes).
* lisp/progmodes/python.el (python-shell-calculate-exec-path): Use the
"/path/to/venv/Scripts" for `windows-nt' machines.

Copyright-paperwork-exempt: yes

7 years agoImprove dired deletion error handling (Bug#28797)
Noam Postavsky [Fri, 13 Oct 2017 03:12:00 +0000 (23:12 -0400)]
Improve dired deletion error handling (Bug#28797)

* lisp/dired.el (dired-internal-do-deletions): Use
`error-message-string' to produce a human readable error message.

7 years agoDon't replace user input when completion prefix is empty (Bug#18951)
Noam Postavsky [Sun, 5 Nov 2017 16:36:20 +0000 (11:36 -0500)]
Don't replace user input when completion prefix is empty (Bug#18951)

* lisp/pcomplete.el (pcomplete-parse-arguments): Only replace user
input if we produced a non-empty common completion stub.

7 years agoAdd support for Windows installer build
Phillip Lord [Fri, 3 Nov 2017 21:39:48 +0000 (21:39 +0000)]
Add support for Windows installer build

 * etc/images/slash.bmp,admin/nt/dist-build/emacs.nsi: New files
 * admin/nt/dist-build/build-zips.sh: Support building installer

7 years ago; Describe xt-mouse problems with Evil mode
Eli Zaretskii [Sun, 5 Nov 2017 15:49:43 +0000 (17:49 +0200)]
; Describe xt-mouse problems with Evil mode

* etc/PROBLEMS: Describe a workaround for xt-mouse problems with
Evil mode.  (Bug#29143)

7 years agoReturn non-nil from gnutls-available-p under GnuTLS 2.x
Eli Zaretskii [Sun, 5 Nov 2017 15:26:36 +0000 (17:26 +0200)]
Return non-nil from gnutls-available-p under GnuTLS 2.x

* doc/misc/emacs-gnutls.texi (Help For Users): Update the
documentation of 'gnutls-available-p'.

* etc/NEWS (GnuTLS): Mention the change in the value returned by
'gnutls-available-p'.

* src/gnutls.c (Fgnutls_available_p): Return non-nil when GnuTLS
2.x is available.  (Bug#29147)

7 years agoFix Flymake help-echo functions across windows (bug#29142)
João Távora [Sun, 5 Nov 2017 14:58:07 +0000 (14:58 +0000)]
Fix Flymake help-echo functions across windows (bug#29142)

* lisp/progmodes/flymake.el (flymake--highlight-line): Use
with-selected-window.
(flymake-goto-next-error): Call help-echo with a window and an
overlay.

7 years agoAdd tests for Flymake backends for Ruby and Perl
João Távora [Sun, 5 Nov 2017 12:51:30 +0000 (12:51 +0000)]
Add tests for Flymake backends for Ruby and Perl

* test/lisp/progmodes/flymake-tests.el (perl-backend)
(ruby-backend): New tests.
(warning-predicate-rx-perl, warning-predicate-function-perl):
Delete tests.

* test/lisp/progmodes/flymake-resources/test.pl: Include an
error the test file.

* test/lisp/progmodes/flymake-resources/test.rb: file.

7 years agoAdd a Flymake backend for Perl
João Távora [Fri, 3 Nov 2017 16:05:39 +0000 (16:05 +0000)]
Add a Flymake backend for Perl

Define a simple backend in perl-mode.el, which cperl-mode.el also
uses.

* lisp/progmodes/cperl-mode.el (cperl-mode): Add to
flymake-diagnostic-functions.

* lisp/progmodes/flymake-proc.el
(flymake-proc-allowed-file-name-masks): Disable legacy backend
for perl files.

* lisp/progmodes/perl-mode.el (perl-flymake-command): New
defcustom.
(perl--flymake-proc): New buffer-local variable.
(perl-flymake): New function.
(perl-mode): Add to flymake-diagnostic-functions.

7 years agoAdd a Flymake backend for Ruby
João Távora [Fri, 3 Nov 2017 12:43:11 +0000 (12:43 +0000)]
Add a Flymake backend for Ruby

* lisp/progmodes/ruby-mode.el (ruby-flymake-command): New
defcustom.
(ruby--flymake-proc): New buffer-local variable.
(ruby-flymake): New function.
(ruby-mode): Add flymake-diagnostic-functions.

7 years agoAdd a Flymake backend for Python (bug#28808)
Lele Gaifax [Fri, 3 Nov 2017 12:20:36 +0000 (12:20 +0000)]
Add a Flymake backend for Python (bug#28808)

Implement new Flymake backend with related customizable settings.

* lisp/progmodes/python.el (python-flymake-command)
(python-flymake-command-output-pattern)
(python-flymake-msg-alist): New defcustom.
(python--flymake-parse-output): New function, able to parse
python-flymake-command output accordingly to
python-flymake-command-output-pattern.
(python-flymake): New function implementing the backend
interface using python--flymake-parse-output for the real
work.
(python-mode): Add python-flymake to flymake-diagnostic-functions.

7 years agoAllow "%" in Tramp host names
Michael Albinus [Sun, 5 Nov 2017 11:40:58 +0000 (12:40 +0100)]
Allow "%" in Tramp host names

* lisp/net/tramp-gvfs.el (tramp-gvfs-url-file-name): Hexify also host.

* lisp/net/tramp.el (tramp-host-regexp): Allow "%" in host names.

7 years ago; Fix typo in test/file-organization.org
Michael Albinus [Sun, 5 Nov 2017 11:40:13 +0000 (12:40 +0100)]
; Fix typo in test/file-organization.org

7 years ago; Fix typo
Charles A. Roelli [Sun, 5 Nov 2017 09:18:00 +0000 (10:18 +0100)]
; Fix typo

* doc/misc/cc-mode.texi (Other Commands): Fix typo.

7 years agoUse hybrid malloc for FreeBSD (Bug#28308)
Noam Postavsky [Tue, 31 Oct 2017 17:31:46 +0000 (13:31 -0400)]
Use hybrid malloc for FreeBSD (Bug#28308)

FreeBSD aarch64 does not provide sbrk, so gmalloc cannot be used; when
using system malloc dumping does not work correctly (allocated data is
invalid after dumping).
* configure.ac: Set hybrid_malloc for freebsd.
* src/gmalloc.c (gdefault_morecore) [!HAVE_SBRK]: Don't call sbrk.

7 years agoAdd html-, mhtml- and python-mode support to semantic symref
Charles A. Roelli [Sat, 4 Nov 2017 21:19:08 +0000 (22:19 +0100)]
Add html-, mhtml- and python-mode support to semantic symref

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-filepattern-alist): Fix the entry for
'html-mode', which used a regexp-like syntax where only glob
syntax is permitted.  As a result, 'xref-find-references' (M-?)
can now find references in HTML files.  Also duplicate the same
entry for the sake of 'mhtml-mode', and add a new one for
'python-mode'.
(semantic-symref-derive-find-filepatterns): In the documentation,
clarify that returned patterns must follow the glob syntax.  Fix
an 'if' test that always evaluates to nil.
(semantic-symref-tool-grep):
(semantic-symref-perform-search): Fix typos.

7 years agoMake filecache use extended completion
Andreas Politz [Thu, 26 Oct 2017 06:59:05 +0000 (08:59 +0200)]
Make filecache use extended completion

* lisp/filecache.el (file-cache-minibuffer-complete): Use
completion-try-completion and completion-all-completions.

* etc/NEWS: Add news entry.

7 years agoImprove documentation of 'window-scroll-functions'
Eli Zaretskii [Sat, 4 Nov 2017 16:09:01 +0000 (18:09 +0200)]
Improve documentation of 'window-scroll-functions'

* doc/lispref/windows.texi (Window Hooks): Clarify the values of
arguments of 'window-scroll-functions' functions.

* src/xdisp.c (syms_of_xdisp) <window-scroll-functions>: Doc fix.

7 years agoFix subtle problems in tabulated-list-mode with line numbers
Eli Zaretskii [Sat, 4 Nov 2017 14:28:25 +0000 (16:28 +0200)]
Fix subtle problems in tabulated-list-mode with line numbers

* lisp/emacs-lisp/tabulated-list.el
(tabulated-list-watch-line-number-width): Call
tabulated-list-init-header instead of tabulated-list-revert.
(tabulated-list-window-scroll-function): New function.
(tabulated-list-mode): Put 'tabulated-list-window-scroll-function'
on the buffer-local 'window-scroll-functions' list.

7 years agoAllow 'make-string' callers force creation of multibyte strings
Eli Zaretskii [Sat, 4 Nov 2017 13:00:25 +0000 (15:00 +0200)]
Allow 'make-string' callers force creation of multibyte strings

* src/alloc.c (Fmake_string): Accept additional argument
MULTIBYTE, and produce a multibyte string if it is non-nil.
(make_event_array):
* src/lread.c (read0):
* src/editfns.c (Ftranslate_region_internal):
* src/coding.c (Fdefine_coding_system_internal):
* src/cmds.c (internal_self_insert):
* src/xdisp.c (build_desired_tool_bar_string)
(store_mode_line_string): All C callers changed.

* doc/lispref/strings.texi (Creating Strings): Document the new
optional argument.

* etc/NEWS: Mention the new optional argument.

* lisp/ruler-mode.el (ruler-mode-ruler): Call make-string with the
3rd argument non-nil.

7 years agoMake gdb-non-stop-setting default to nil on MS-Windows
Eli Zaretskii [Sat, 4 Nov 2017 11:56:39 +0000 (13:56 +0200)]
Make gdb-non-stop-setting default to nil on MS-Windows

* lisp/progmodes/gdb-mi.el (gdb-non-stop-setting): Now nil on
MS-Windows.

7 years agoFix gdb-mi prompt after "attach PID" command
Mike Gulick [Sat, 4 Nov 2017 11:34:40 +0000 (13:34 +0200)]
Fix gdb-mi prompt after "attach PID" command

* lisp/progmodes/gdb-mi.el (gdbmi-bnf-console-stream-output): Set
gdb-first-done-or-error non-nil.  (Bug#29020)

Copyright-paperwork-exempt: yes

7 years agoExtract user from host when searching for entries in auth-source-pass
Łukasz Jędrzejewski [Sat, 4 Nov 2017 10:24:49 +0000 (12:24 +0200)]
Extract user from host when searching for entries in auth-source-pass

* lisp/auth-source-pass.el (auth-source-pass--user): New function.
(auth-source-pass--find-match): Use it.  When the user is not
explicitly specified and no entry is found, extract the user from
the host and then search again.  (Bug#29045)
* test/lisp/auth-source-pass-tests.el
(auth-source-pass-find-match-matching-extracting-user-from-host):
Add a new test case.

Copyright-paperwork-exempt: yes

7 years agoFix doc string of 'window-configuration-change-hook'
Eli Zaretskii [Sat, 4 Nov 2017 10:00:03 +0000 (12:00 +0200)]
Fix doc string of 'window-configuration-change-hook'

* src/window.c (syms_of_window) <window-configuration-change-hook>:
Doc fix.  (Bug#29049)

7 years agoImprove documentation of window hooks
Eli Zaretskii [Sat, 4 Nov 2017 09:56:26 +0000 (11:56 +0200)]
Improve documentation of window hooks

* doc/lispref/windows.texi (Window Hooks): Fix the description of
window-configuration-change-hook.  (Bug#29049)
<run-window-scroll-functions, run-window-configuration-change-hook>:
Document these functions.

7 years agoFix hscroll suspension after cursor motion
Eli Zaretskii [Sat, 4 Nov 2017 09:30:10 +0000 (11:30 +0200)]
Fix hscroll suspension after cursor motion

* src/xdisp.c (hscroll_window_tree): Trigger a thorough redisplay
of the window when temporary suspension of hscrolling is
disabled.  (Bug#29002)

7 years ago; * CONTRIBUTE, admin/make-tarball.txt: Doc tweaks re 'emacs-announce'.
Glenn Morris [Fri, 3 Nov 2017 19:55:22 +0000 (15:55 -0400)]
; * CONTRIBUTE, admin/make-tarball.txt: Doc tweaks re 'emacs-announce'.

7 years agoIntroduce a function to CC Mode which displays the current function name
Alan Mackenzie [Fri, 3 Nov 2017 19:45:17 +0000 (19:45 +0000)]
Introduce a function to CC Mode which displays the current function name

Remove an erroneous interactive specification from two functions.

* lisp/progmodes/cc-cmds.el (c-display-defun-name): New command.
(c-defun-name, c-cpp-define-name): Remove interactive specification.

* lisp/progmodes/cc-mode.el (c-mode-base-map): Add binding C-c C-z for the new
command.

* doc/misc/cc-mode.texi (Other Commands): Add documentation for the new
command.

7 years ago; Fix some comment typos
Glenn Morris [Fri, 3 Nov 2017 19:18:32 +0000 (15:18 -0400)]
; Fix some comment typos

7 years agoFix typos in ediff-wind.el
Eli Zaretskii [Fri, 3 Nov 2017 19:12:41 +0000 (21:12 +0200)]
Fix typos in ediff-wind.el

* lisp/vc/ediff-wind.el (ediff-setup-windows-multiframe-merge):
Fix typos in commentary.  (Bug#29138)

7 years agoExamine tex-chktex--process in the correct buffer
João Távora [Fri, 3 Nov 2017 19:01:45 +0000 (19:01 +0000)]
Examine tex-chktex--process in the correct buffer

As in other Flymake backends, the process sentinel might run in
arbitrary buffers where this variable's value doesn't make sense.

For a way to trigger a problem due to this, see discussion starting in
https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00645.html

* lisp/textmodes/tex-mode.el (tex-chktex): Use
with-current-buffer.

7 years ago* nt/INSTALL.W64: Update to current mingw64 install instructions
Stephen Leake [Fri, 3 Nov 2017 17:06:07 +0000 (12:06 -0500)]
* nt/INSTALL.W64: Update to current mingw64 install instructions

7 years agoDon't resignal errors in flymake-diag-region
João Távora [Fri, 3 Nov 2017 16:53:45 +0000 (16:53 +0000)]
Don't resignal errors in flymake-diag-region

* lisp/progmodes/flymake.el (flymake-diag-region): Use
flymake-log instead of flymake-error.

7 years agoNew xref-quit-and-goto-xref command bound to TAB (bug#28814)
João Távora [Fri, 13 Oct 2017 15:37:47 +0000 (16:37 +0100)]
New xref-quit-and-goto-xref command bound to TAB (bug#28814)

This is like xref-goto-xref, but quits the *xref* window just before
the user jump to ref.

* lisp/progmodes/xref.el (xref--show-location): Handle 'quit
value for SELECT.
(xref-goto-xref): Take optional QUIT arg.
(xref-quit-and-goto-xref): New command.
(xref--xref-buffer-mode-map): Bind "Q" and "TAB" to
xref-quit-and-goto-xref.

* doc/emacs/maintaining.texi (Xref Commands): Describe new bindings in
*xref*.

* etc/NEWS (Xref): Describe new binding.

7 years agoAllow split-window-sensibly to split threshold in further edge case
João Távora [Mon, 23 Oct 2017 08:05:32 +0000 (09:05 +0100)]
Allow split-window-sensibly to split threshold in further edge case

As a fallback, and to avoid creating a frame, split-window-sensibly
would previously disregard split-height-threshold if the window to be
split is the frame's root window.

This change generalizes that: it disregards the threshold if the
window to be split is the frame's only _usable_ window (it is either
the only one, as before, or all the other windows are dedicated to
some buffer and thus cannot be touched).

This is required for the fix to bug#28814.

* lisp/window.el (split-height-threshold): Adjust doc to match
split-window-sensibly.
(split-window-sensibly): Also disregard threshold if all other
windows are dedicated.

7 years agoHonor window-switching intents in xref-find-definitions (bug#28814)
João Távora [Fri, 13 Oct 2017 14:13:14 +0000 (15:13 +0100)]
Honor window-switching intents in xref-find-definitions (bug#28814)

When there is more than one xref to jump to, and an *xref* window
appears to help the user choose, the original intent to open a
definition in another window or frame is remembered when the choice to
go to or show a reference is finally made.

* lisp/progmodes/xref.el (xref--show-pos-in-buf): Rewrite.
(xref--original-window-intent): New variable.
(xref--original-window): Rename from xref--window and move up
here for clarity.
(xref--show-pos-in-buf): Rewrite.  Don't take SELECT arg here.
(xref--show-location): Handle window selection decision here.
(xref--window): Rename to xref--original-window.
(xref-show-location-at-point): Don't attempt window management here.
(xref--show-xrefs): Ensure display-action intent is saved.

7 years agoFinish the Bug#11728 work: hg & git
Sam Steingold [Fri, 3 Nov 2017 16:00:35 +0000 (12:00 -0400)]
Finish the Bug#11728 work: hg & git

* lisp/vc/vc-git.el (vc-git--pushpull): Make `extra-args' a list.
Do not set `compilation-error-regexp-alist', this is done in
`vc-compilation-mode'.
(vc-git-error-regexp-alist): Tweak the regexp.
* lisp/vc/vc-hg.el (vc-hg-error-regexp-alist): Make non-trivial.
(vc-hg--pushpull): Accept `post-processing' argument.
Call them after the `command'.
(vc-hg-pull): Pass the `post-processing' commands that show which
are to be modified by the `update', and then run `update'.

7 years agoAdd colors to faces that lack them.
Sam Steingold [Fri, 3 Nov 2017 15:53:38 +0000 (11:53 -0400)]
Add colors to faces that lack them.

(gnus-group-news-X-empty): Add colors for X=3,4,5.

7 years ago* lisp/emacs-lisp/generator.el (iter-do): Add a debug declaration.
Paul Pogonyshev [Fri, 3 Nov 2017 13:49:51 +0000 (15:49 +0200)]
* lisp/emacs-lisp/generator.el (iter-do): Add a debug declaration.

7 years ago* lisp/progmodes/flymake.el (flymake-start): Fix dead buffer case
Stefan Monnier [Fri, 3 Nov 2017 12:33:13 +0000 (08:33 -0400)]
* lisp/progmodes/flymake.el (flymake-start): Fix dead buffer case

Don't try to flymake-start within a buffer that doesn't exist any more.

7 years agoFix buffer name comparison in async shell-command
Basil L. Contovounesios [Fri, 3 Nov 2017 09:50:13 +0000 (11:50 +0200)]
Fix buffer name comparison in async shell-command

* lisp/simple.el (shell-command): Keep track of output-buffer
by its name, not by its object.  (Bug#28997)

7 years agoNew function 'libxml-available-p'
Robert Pluim [Fri, 3 Nov 2017 09:33:06 +0000 (11:33 +0200)]
New function 'libxml-available-p'

* src/emacs.c (main): Call syms_of_xml unconditionally.
* src/lisp.h: Provide syms_of_xml prototype even when
HAVE_LIBXML2 is not defined.
* src/xml.c (Flibxml_available_p): New function, cloned from
Fgnutls_available_p.
(syms_of_xml): Provide Slibxml_available_p.

* doc/lispref/text.texi (Parsing HTML/XML): Document libxml-available-p.
(GnuTLS Cryptography, Format of GnuTLS Cryptography Inputs)
(Document Object Model): Fix indentation of the first paragraph.

* etc/NEWS (libxml-available-p): Mention libxml-available-p.

7 years agoMerge from origin/emacs-26
Paul Eggert [Fri, 3 Nov 2017 09:21:58 +0000 (02:21 -0700)]
Merge from origin/emacs-26

c911b27 Change GCALIGNMENT back to an integer literal

7 years agoChange GCALIGNMENT back to an integer literal
Paul Eggert [Fri, 3 Nov 2017 09:20:15 +0000 (02:20 -0700)]
Change GCALIGNMENT back to an integer literal

* src/lisp.h (GCALIGNMENT): Change it back to a macro
that expands to a literal integer constant, for older GCC.
I had mistakenly thought that only MSVC had the problem.
Problem repored by Eli Zaretskii (Bug#29040#69).

7 years agoSimplify by assuming !_MSC_VER.
Paul Eggert [Fri, 3 Nov 2017 04:54:23 +0000 (21:54 -0700)]
Simplify by assuming !_MSC_VER.

Emacs has not been portable to MSVC for some time (Bug#29040#57).
* admin/CPP-DEFINES (_MSC_VER): Remove.
* src/lisp.h (ENUM_BF, DEFUN):
* src/regex.c (re_char):
Simplify by assuming _MSC_VER is not defined.
* src/regex.c (const_re_char): Remove.
All uses replaced by re_char.

7 years ago* etc/NEWS.26: Copy from emacs-26/etc/NEWS.
Paul Eggert [Fri, 3 Nov 2017 04:03:39 +0000 (21:03 -0700)]
* etc/NEWS.26: Copy from emacs-26/etc/NEWS.

7 years agoMerge from origin/emacs-26
Paul Eggert [Fri, 3 Nov 2017 04:02:12 +0000 (21:02 -0700)]
Merge from origin/emacs-26

a87ce5c4b4 * src/lisp.h (GCALIGNED): Clarify comment (Bug#29040).
8a31e9993f ; etc/NEWS: Add cpp-message-min-time-interval.  (Bug#28961)
ac0bb9a192 Improve the doc of eshell-cmpl-* custom variables (Bug#25069)
36400c7dc9 Fix mouse-scrollbar offset on GNUstep and old macOS (bug#2...
04bc1410c2 Merge from Gnulib
6b08ad5263 Fix alignment portability problems
a9f8706fa8 Fix completion of colon after CSS property (Bug#29056)
9031dec527 ; * src/alloc.c (sweep_symbols): Fix last change.
fdd3dcfa4e * src/alloc.c (sweep_symbols): Tweak last change
27964af438 In frame parameters documentation mention desktop saving/r...
1bd4e7c243 ; Fix typo in ChangeLog.3
4182a60d31 Don't have frameset save the 'client' parameter (Bug#29067)
9d31a97092 ; Spelling fixes
460a25f212 Handle generic variables in cl-defgeneric Edebug spec
dc0a25c2f9 Give a more sensible message if file-attributes fails (Bug...
8453423c7c Avoid wrong value from file-attributes on Linux kernel bef...
70621e2571 Fix customization of debugger-print-function (Bug#29077)

# Conflicts:
# etc/NEWS

7 years ago; Merge from origin/emacs-26
Paul Eggert [Fri, 3 Nov 2017 04:01:44 +0000 (21:01 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

ebdcfc294d ; Auto-commit of loaddefs files.

7 years agoMerge from origin/emacs-26
Paul Eggert [Fri, 3 Nov 2017 04:01:44 +0000 (21:01 -0700)]
Merge from origin/emacs-26

460fe4a1bc ; Doc fixes
41adf3281e Avoid duplicate calls to xfree for the same pointer
3e7ebbe1bd Don't clobber docstrings of explicitly-defined mode hook v...
9c8fe0248b Avoid fullscreen ediff control frames by default (Bug#29026)
7d32176acc Fix the bug#24034 change (revno 9eb028f) causing infloop (...
ee493663ba Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/e...
ca5eb0d0b7 Fix a typo in the ELisp manual
d10c9479ca Fix doc and doc-strings for minibuffer window related func...
18331d00da Fix "Args out of range" error in c-determine-limit.  Fixes...
edde35e6f8 * lisp/progmodes/perl-mode.el: Fix electric indentation wi...
056587c45f Extend mhtml submode region when in comment
4c4ad80848 Fix mthml submode lighting at end of buffer
557e252aa2 Remember more variables in mhtml-mode
336cd0a11a ; * lisp/select.el (select-enable-primary): Add missing pe...
134099bc90 ; * etc/NEWS (EUDC): Mark as not requiring documentation.
1a340274bf * etc/NEWS (EUDC): Deprecate BBDB 2.x backward compatibility.
4189d0ef7b Fix minibuffer window related docs and strings (Bug#28978)
2ebdde6e9c Add ChkTeX flymake backend for latex-mode
5b59841791 Fix doc typos
82a16c547b Fix some duplicate word typos
266888b1d7 * doc/lispref/commands.texi (Adjusting Point): Fix wording...
00c3c6d88d Avoid segfaults in 64-bit Windows builds
a8e6741066 Fix conversion of pixel coordinates to buffer position
d43b486f6c Fix doc strings in desktop.el
9102fb603e Add Index to ERT manual
68182a4710 Make manuals and NEWS consistent
451823b0e5 Don't allow (minibuffer-window-active-p nil) to return t
cc8f72ca22 Clarify obsolescence message for 'whitespace-tab'
50f711e7fa Fix some duplicate words typos
8bd9524a7c * lisp/button.el (button-activate): Fix doc typo.
0b0d91e60a * lisp/calendar/todo-mode.el (todo-toggle-mark-item): Fix ...
e6b4e5ffdf Fix some doc typos
e8636ac8cc Fix startup display on Cygwin
3926c5ad83 * src/fileio.c (Fset_default_file_modes): Fix typo in doc ...
9715317dfd * lisp/dired.el (dired-find-alternate-file): Doc fix.  (Bu...
9e442a001a Improve documentation of how faces are applied to display ...
1bda71ec3b Improve pixel-scroll-mode
196106d37d Support Certification Authority Authorization in dns-mode.el
ec08d70b4f Improve documentation of set-default-file-modes

# Conflicts:
# etc/NEWS

7 years ago; Merge from origin/emacs-26
Paul Eggert [Fri, 3 Nov 2017 04:01:04 +0000 (21:01 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

933b3a3ee8 Fix documentation of `newsticker-new-item-functions' (bug#...

7 years agoMerge from origin/emacs-26
Paul Eggert [Fri, 3 Nov 2017 04:01:04 +0000 (21:01 -0700)]
Merge from origin/emacs-26

7f089aa5f6 Require seq in rmc.el
53aaad1dfc Make an example code introduced in the Gnus info work (bug...
7b29db222f Enable gnus-read-ephemeral-* to run multiple times (bug#29...
015f0bb2d8 Port thread.c to OpenBSD ARM
ad68bbd0da Fix another "wrong side of point" error in CC Mode.
646e56e150 Fix Bug#28959
685fd77959 Fix duplicate .o file on QNX
e562356c3f Fix two js indentation problems
b8cf159bbc Update documentation for windows build
46540a1c7a Fix a "wrong side of point" error in CC Mode.  Fixes bug #...
57ca409111 Fix autoload of flymake from elisp-mode during bootstrap (...
aee0bc8775 Fix non-native fullscreen on NS (bug#28872)
d6c1a9cb8a ; Fix author email address in test/lisp/url/url-tramp-test...
761c630766 Fix Bug#28982
628b653209 Fix windows build errors
e8a06a5f9a Fix compile warning for non-w32 builds
0c536a20fb Display commit in package description, if available (Bug#2...
1d83257a1d Port to QNX
19667f44ef * configure.ac: Tweak libcurses diagnostic.
3fc05cfaec Scripts to automate windows binary distribution
928a106939 Fix Edebug specs for map-let and with-maps-do
46f2ee0d4c * test/lisp/net/tramp-tests.el (tramp-test41-delay-load): ...
b51009d7f0 * admin/authors.el (authors-canonical-author-name): Ignore...
a015db90e3 * test/lisp/progmodes/sql-tests.el (sql-tests-postgres-lis...
529a9c09d3 Further work on Bug#28889
c6deabaf4d Improve Tramp backward compatibility
8093e82e42 Improve backward compatibility of tramp-tests.el
46cdc01daa Fix some ‘window-normalize-’ prefixed functions (Bug#28947)
6360611457 Port to OpenIndiana
a012ec766c Don't fill keywords after Emacs Lisp docstring
b7c4aa951c Refactor c-forward-token-2 with new function c-forward-ove...
3aee7be62e Avoid unnecessary rounding errors in timestamps
2bfa42855b Fix xdg timestamp error on 32-bit Emacs
237e96bc52 Test that advice doesn't trigger bytecomp warnings (Bug#28...
d719ea6ad5 Another fix for unsafe directory error message (Bug#865)
b060e091c3 Handle https url for debbugs mbox (Bug#28831)
9e4265ef91 Ignore string properties when saving eshell history (Bug#2...
0f286ca85a Fix Bug#28889

7 years ago* lisp/gnus/gnus.el: Use lexical-binding and cl-lib
Stefan Monnier [Fri, 3 Nov 2017 03:52:06 +0000 (23:52 -0400)]
* lisp/gnus/gnus.el: Use lexical-binding and cl-lib

Remove unneeded use of `eval-when' for gnus-splash hack.
(gnus-find-subscribed-addresses): Don't use `add-to-list' with local var.
(gnus-info-buffer): Declare var.
(gnus-interactive): Remove unused arg `params'.
(gnus-symbolic-argument): Remove unused arg `arg`.
(gnus-sloppily-equal-method-parameters): Use \' to match end of string.
(gnus-short-group-name): Remove unused var `name'.

7 years ago* src/lisp.h (GCALIGNED): Clarify comment (Bug#29040).
Paul Eggert [Fri, 3 Nov 2017 03:04:25 +0000 (20:04 -0700)]
* src/lisp.h (GCALIGNED): Clarify comment (Bug#29040).

7 years ago; etc/NEWS: Add cpp-message-min-time-interval. (Bug#28961)
Hong Xu [Mon, 23 Oct 2017 22:38:40 +0000 (15:38 -0700)]
; etc/NEWS: Add cpp-message-min-time-interval.  (Bug#28961)

7 years agoImprove the doc of eshell-cmpl-* custom variables (Bug#25069)
Hong Xu [Tue, 29 Nov 2016 23:17:27 +0000 (15:17 -0800)]
Improve the doc of eshell-cmpl-* custom variables (Bug#25069)

* lisp/eshell/em-cmpl.el (eshell-cmpl--custom-variable-docstring): New
function to generate the docstring for custom variables derived from
pcomplete-* variables.
(eshell-cmpl-file-ignore, eshell-cmpl-dir-ignore)
(eshell-cmpl-ignore-case, eshell-cmpl-autolist)
(eshell-cmpl-suffix-list, eshell-cmpl-recexact)
(eshell-cmpl-man-function, eshell-cmpl-compare-entry-function)
(eshell-cmpl-expand-before-complete, eshell-cmpl-cycle-completions)
(eshell-cmpl-cycle-cutoff-length, eshell-cmpl-restore-window-delay)
(eshell-command-completion-function, eshell-cmpl-command-name-function)
(eshell-default-completion-function, eshell-cmpl-use-paring): Use it
to set the docstring.

7 years agoFix mouse-scrollbar offset on GNUstep and old macOS (bug#29053)
Alan Third [Thu, 2 Nov 2017 21:41:11 +0000 (21:41 +0000)]
Fix mouse-scrollbar offset on GNUstep and old macOS (bug#29053)

* src/nsterm.m (EmacsScroller::mouseDown,
EmacsScroller::mouseDragged): Take scroller buttons into account when
calculating scroller knob position.

7 years agoMerge from Gnulib
Paul Eggert [Thu, 2 Nov 2017 20:18:16 +0000 (13:18 -0700)]
Merge from Gnulib

This incorporates:
2017-10-29 timespec: prefer ‘assume’ to ‘assure’
2017-10-27 timespec.h: use "assure" to avoid a spurious warning
2017-10-09 getopt-posix: Fix build failure if ac_cv_header_getopt_h=no
* build-aux/config.guess, build-aux/config.sub:
* lib/timespec.h, lib/unistd.in.h:
Copy from Gnulib.

7 years agoFix alignment portability problems
Paul Eggert [Thu, 2 Nov 2017 20:06:38 +0000 (13:06 -0700)]
Fix alignment portability problems

Do not assume that the natural alignment of Lisp objects is a
multiple of GCALIGNMENT.  This improves on the portability of the
recent fix for Bug#29040.
* lib-src/make-docfile.c (close_emacs_globals):
* src/buffer.c (buffer_defaults, buffer_local_symbols):
* src/lisp.h (DEFUN):
* src/thread.c (main_thread):
Use GCALIGNED, not alignas (GCALIGNMENT).
* src/alloc.c (COMMON_MULTIPLE):
Move back here from lisp.h, since it is no longer used elsewhere.
* src/lisp.h (GCALIGNMENT): No longer a macro, since we need not
worry about MSVC.  Omit no-longer-needed consistency check.
* src/thread.c (THREAD_ALIGNMENT): Remove.

7 years agoFix completion of colon after CSS property (Bug#29056)
Simen Heggestøyl [Thu, 2 Nov 2017 19:29:06 +0000 (20:29 +0100)]
Fix completion of colon after CSS property (Bug#29056)

* lisp/textmodes/css-mode.el (css-completion-at-point): Don't insert
": ;" after completing a CSS property unless the rest of the line is
empty.

7 years ago; * src/alloc.c (sweep_symbols): Fix last change.
Eli Zaretskii [Thu, 2 Nov 2017 16:53:20 +0000 (18:53 +0200)]
; * src/alloc.c (sweep_symbols): Fix last change.

7 years agomake all related faces inherit from each other
Sam Steingold [Thu, 2 Nov 2017 14:48:38 +0000 (10:48 -0400)]
make all related faces inherit from each other

* lisp/gnus/gnus.el (gnus-group-A-B): Inherit from `gnus-group-A-B-empty',
where "A" is "mail" and "news" and "B" is "1".."6" and "low".
(gnus-summary-high-A, gnus-summary-low-A): Inherit from
`gnus-summary-normal-A', where "A" is "ticked", "ancient",
"undownloaded", "unread", "read".

7 years ago* src/alloc.c (sweep_symbols): Tweak last change
Stefan Monnier [Wed, 1 Nov 2017 17:36:58 +0000 (13:36 -0400)]
* src/alloc.c (sweep_symbols): Tweak last change

Avoid the double-free without the extra check.  Add an explanatory comment.

7 years agoIn frame parameters documentation mention desktop saving/restoring
Martin Rudalics [Thu, 2 Nov 2017 08:28:25 +0000 (09:28 +0100)]
In frame parameters documentation mention desktop saving/restoring

* doc/lispref/frames.texi (Frame Parameters): Mention that
applications have to care about which parameters they want to
get saved and restored by the desktop library.

7 years ago; Fix typo in ChangeLog.3
Martin Rudalics [Thu, 2 Nov 2017 07:37:45 +0000 (08:37 +0100)]
; Fix typo in ChangeLog.3

7 years agoDon't have frameset save the 'client' parameter (Bug#29067)
Martin Rudalics [Thu, 2 Nov 2017 07:34:18 +0000 (08:34 +0100)]
Don't have frameset save the 'client' parameter (Bug#29067)

* lisp/frameset.el (frameset-persistent-filter-alist): Never
save 'client' parameter (Bug#29067).

7 years ago; Spelling fixes
Paul Eggert [Thu, 2 Nov 2017 05:07:13 +0000 (22:07 -0700)]
; Spelling fixes

7 years agoHandle generic variables in cl-defgeneric Edebug spec
Gemini Lasswell [Thu, 2 Nov 2017 00:07:40 +0000 (17:07 -0700)]
Handle generic variables in cl-defgeneric Edebug spec

*lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Fix Edebug spec to
match (setf name) and replace incorrect cl-lambda-list with listp
(Bug#27747).

7 years agoGive a more sensible message if file-attributes fails (Bug#29070)
Noam Postavsky [Wed, 1 Nov 2017 23:39:34 +0000 (19:39 -0400)]
Give a more sensible message if file-attributes fails (Bug#29070)

* lisp/server.el (server-ensure-safe-dir): Don't claim the directory
is a file if we fail to get anything from `file-attributes'.

7 years agoFix Bug#11728: show files updated by git
Sam Steingold [Wed, 1 Nov 2017 23:13:46 +0000 (19:13 -0400)]
Fix Bug#11728: show files updated by git

* lisp/vc/vc-git.el (vc-git--pushpull): Accept extra-args and set
`compilation-error-regexp-alist' to `vc-git-error-regexp-alist'.
(vc-git-pull): Pass "--stat" as `extra-args' to `vc-git--pushpull'.
(vc-git-push): Pass "" as `extra-args' to `vc-git--pushpull'.

7 years agoAvoid wrong value from file-attributes on Linux kernel before 3.6
Andreas Schwab [Wed, 1 Nov 2017 14:26:21 +0000 (15:26 +0100)]
Avoid wrong value from file-attributes on Linux kernel before 3.6

* dired.c (file_attributes): Handle unsupported fstat on O_PATH
descriptors.  (bug#29070)

7 years ago* lisp/emacs-lisp/thunk.el: Assert lexical-binding
Michael Heerdegen [Thu, 26 Oct 2017 10:57:55 +0000 (12:57 +0200)]
* lisp/emacs-lisp/thunk.el: Assert lexical-binding

This fixes Bug#28990.  Also add a note to the file header that
creating thunks requires lexical-binding.
(thunk-delay): `cl-assert' lexical-binding.

7 years agoUser can specify files never subject to flymake.
Sam Steingold [Wed, 1 Nov 2017 13:36:41 +0000 (09:36 -0400)]
User can specify files never subject to flymake.

* lisp/progmodes/flymake-proc.el (flymake-proc-ignored-file-name-regexps):
Add user customization option.
(flymake-proc--get-file-name-mode-and-masks): Check it before
`flymake-proc-allowed-file-name-masks'.

7 years agoFix customization of debugger-print-function (Bug#29077)
Noam Postavsky [Wed, 1 Nov 2017 12:51:35 +0000 (08:51 -0400)]
Fix customization of debugger-print-function (Bug#29077)

* lisp/emacs-lisp/debug.el (debugger-print-function): The :options
keyword has no effect for :type 'function, use :type '(choice ...)
instead.

7 years ago; Auto-commit of loaddefs files.
Glenn Morris [Wed, 1 Nov 2017 11:27:31 +0000 (07:27 -0400)]
; Auto-commit of loaddefs files.

7 years ago; Auto-commit of loaddefs files.
Glenn Morris [Wed, 1 Nov 2017 10:33:24 +0000 (06:33 -0400)]
; Auto-commit of loaddefs files.

7 years agoThe user can now specify the time stamp format.
Sam Steingold [Tue, 31 Oct 2017 21:01:39 +0000 (17:01 -0400)]
The user can now specify the time stamp format.

* lisp/textmodes/remember.el (remember-time-format): New user variable.
(remember-append-to-file): Pass it to `format-time-string' instead of
calling `current-time-string'.