]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years agoEUDC: Remove inline requires of bbdb in BBDB backend scratch/eudc-bbdb-3
Thomas Fitzsimmons [Tue, 17 Apr 2018 00:54:01 +0000 (20:54 -0400)]
EUDC: Remove inline requires of bbdb in BBDB backend

* lisp/net/eudcb-bbdb.el
(eudc-bbdb-filter-non-matching-record): Remove inline require
of bbdb.
(eudc-bbdb-extract-phones): Likewise.
(eudc-bbdb-extract-addresses): Likewise.
(eudc-bbdb-format-record-as-result): Likewise.
(eudc-bbdb-query-internal): Likewise.

6 years agoBBDB: Import GNU ELPA externals/bbdb branch tip
Thomas Fitzsimmons [Sun, 28 Jan 2018 00:54:19 +0000 (19:54 -0500)]
BBDB: Import GNU ELPA externals/bbdb branch tip

4c20a48de0 bbdb-tex-alist, bbdb-tex-address-layout: Declare defcustom...
b959fdd06d * bbdb-vm.el: Don't require VM when compiled.
4ab0a77d38 Update copyright; update README.
19b6a48ee3 Go back to version 0
c6082d6f3e Add files bbdb-gnus.el and bbdb-vm.el.
0cff90e09c Fix declarations for byte compiler.  Use file tex-site.el.

6 years agoEUDC: Enable BBDB backend by default
Thomas Fitzsimmons [Fri, 24 Nov 2017 02:10:25 +0000 (21:10 -0500)]
EUDC: Enable BBDB backend by default

* lisp/net/eudc-vars.el (eudc-server-hotlist): Add default
list item for BBDB.

6 years agoEUDC: Obsolete eudc--using-bbdb-3-or-newer-p for 27.1
Thomas Fitzsimmons [Thu, 23 Nov 2017 00:33:57 +0000 (19:33 -0500)]
EUDC: Obsolete eudc--using-bbdb-3-or-newer-p for 27.1

* lisp/net/eudc.el (eudc--using-bbdb-3-or-newer-p): Mark
function obsolete as of 27.1.

6 years agoEUDC: Port eudc-export.el to BBDB >= 3
Thomas Fitzsimmons [Wed, 22 Nov 2017 00:50:29 +0000 (19:50 -0500)]
EUDC: Port eudc-export.el to BBDB >= 3

* lisp/net/eudc-export.el (eudc-create-bbdb-record): Only
support BBDB >= 3 arguments to `bbdb-create-internal' call.
(eudc-bbdbify-phone): Only call BBDB >= 3 bbdb-parse-phone
function.

6 years agoEUDC: Wrap long lines in eudc-export.el
Thomas Fitzsimmons [Sat, 18 Nov 2017 16:07:39 +0000 (11:07 -0500)]
EUDC: Wrap long lines in eudc-export.el

* lisp/net/eudc-export.el (eudc-create-bbdb-record): Wrap long
lines.
(eudc-parse-spec): Likewise.
(eudc-bbdbify-phone): Likewise.

6 years agoEUDC: Fix whitespace in eudc-export.el
Thomas Fitzsimmons [Wed, 15 Nov 2017 02:26:47 +0000 (21:26 -0500)]
EUDC: Fix whitespace in eudc-export.el

* lisp/net/eudc-export.el (bbdb-parse-phone-number): Fix
whitespace.

6 years agoEUDC: Require bbdb, bbdb-com without NOERROR
Thomas Fitzsimmons [Wed, 15 Nov 2017 02:23:47 +0000 (21:23 -0500)]
EUDC: Require bbdb, bbdb-com without NOERROR

* lisp/net/eudc-export.el: Require bbdb and bbdb-com without
ignoring errors.

6 years agoEUDC: Obsolete eudc--using-bbdb-3-or-newer-p
Thomas Fitzsimmons [Fri, 10 Nov 2017 02:30:18 +0000 (21:30 -0500)]
EUDC: Obsolete eudc--using-bbdb-3-or-newer-p

* lisp/net/eudc.el (eudc--using-bbdb-3-or-newer-p): Mark
function obsolete.

6 years agoEUDC: Port BBDB backend to BBDB >= 3
Thomas Fitzsimmons [Fri, 10 Nov 2017 14:05:40 +0000 (09:05 -0500)]
EUDC: Port BBDB backend to BBDB >= 3

* lisp/net/eudcb-bbdb.el (eudc-bbdb-field): Convert BBDB < 3
field names to BBDB >= 3 field names.
(eudc-bbdb-format-query): Support old
and new BBDB field names.
(eudc-bbdb-filter-non-matching-record): Add support for both
BBDB < 3 field names and BBDB >= 3 field names.
(eudc-bbdb-extract-phones): Likewise.
(eudc-bbdb-extract-addresses): Likewise.
(eudc-bbdb-format-record-as-result): Likewise.
* doc/misc/eudc.texi (Creating BBDB Records): Document EUDC
BBDB field name support.

6 years agoEUDC: Remove external BBDB function declarations
Thomas Fitzsimmons [Fri, 10 Nov 2017 02:43:56 +0000 (21:43 -0500)]
EUDC: Remove external BBDB function declarations

* lisp/net/eudcb-bbdb.el (eudc-bbdb-extract-phones): Remove
declare-function calls for external BBDB functions.

6 years agoEUDC: Require bbdb and bbdb-com without ignoring errors
Thomas Fitzsimmons [Fri, 10 Nov 2017 02:35:57 +0000 (21:35 -0500)]
EUDC: Require bbdb and bbdb-com without ignoring errors

* lisp/net/eudcb-bbdb.el: Require bbdb and bbdb-com without
ignoring errors.

6 years agoEUDC: Fix issues reported by checkdoc
Thomas Fitzsimmons [Fri, 10 Nov 2017 02:38:56 +0000 (21:38 -0500)]
EUDC: Fix issues reported by checkdoc

* lisp/net/eudcb-bbdb.el: Fix issues reported by checkdoc.

6 years agoEUDC: Print multiple BBDB addresses properly
Thomas Fitzsimmons [Fri, 10 Nov 2017 13:59:37 +0000 (08:59 -0500)]
EUDC: Print multiple BBDB addresses properly

* lisp/net/eudcb-bbdb.el (eudc-bbdb-extract-addresses): Reset
val to nil on each mapcar lambda invocation.

6 years agoEUDC: Keep phone and address lists in BBDB-order
Thomas Fitzsimmons [Fri, 10 Nov 2017 13:56:15 +0000 (08:56 -0500)]
EUDC: Keep phone and address lists in BBDB-order

* lisp/net/eudcb-bbdb.el (eudc-bbdb-extract-phones): Return
phone numbers in the same order in which they are stored in
BBDB.
(eudc-bbdb-extract-addresses): Likewise.

6 years agoEUDC: Wrap long line in BBDB backend
Thomas Fitzsimmons [Fri, 10 Nov 2017 14:39:37 +0000 (09:39 -0500)]
EUDC: Wrap long line in BBDB backend

* lisp/net/eudcb-bbdb.el (eudc-bbdb-format-record-as-result):
Wrap long line.

6 years agoEUDC: Fix whitespace in BBDB backend
Thomas Fitzsimmons [Fri, 10 Nov 2017 14:37:52 +0000 (09:37 -0500)]
EUDC: Fix whitespace in BBDB backend

* lisp/net/eudcb-bbdb.el (eudc-bbdb-format-query): Fix
whitespace.
(eudc-bbdb-filter-non-matching-record): Likewise.
(eudc-bbdb-extract-addresses): Likewise.

6 years agoEUDC: Fix indentation in BBDB backend
Thomas Fitzsimmons [Fri, 10 Nov 2017 14:31:24 +0000 (09:31 -0500)]
EUDC: Fix indentation in BBDB backend

* lisp/net/eudcb-bbdb.el (eudc-bbdb-format-query): Fix
indentation.
(eudc-bbdb-filter-non-matching-record): Likewise.

6 years agoBBDB: Import BBDB 3
Thomas Fitzsimmons [Thu, 2 Nov 2017 23:59:58 +0000 (19:59 -0400)]
BBDB: Import BBDB 3

Import revision 5ac6dbf7e9676d1e239b4f66fad54711e8da4341 from
the externals/bbdb branch of
git.sv.gnu.org:/srv/git/emacs/elpa.git.

* doc/misc/bbdb.texi,
lisp/bbdb/bbdb-anniv.el,
lisp/bbdb/bbdb-com.el,
lisp/bbdb/bbdb-ispell.el,
lisp/bbdb/bbdb-message.el,
lisp/bbdb/bbdb-mhe.el,
lisp/bbdb/bbdb-migrate.el,
lisp/bbdb/bbdb-mu4e.el,
lisp/bbdb/bbdb-mua.el,
lisp/bbdb/bbdb-pgp.el,
lisp/bbdb/bbdb-rmail.el,
lisp/bbdb/bbdb-snarf.el,
lisp/bbdb/bbdb-tex.el,
lisp/bbdb/bbdb-wl.el,
lisp/bbdb/bbdb.el,
lisp/bbdb/tex/bbdb.sty: New files.
* .gitignore: Add lisp/bbdb/subdirs.el.

6 years agoFix name of gnus-summary-sort-by-mark(s)
Eric Abrahamsen [Tue, 14 Nov 2017 05:40:17 +0000 (21:40 -0800)]
Fix name of gnus-summary-sort-by-mark(s)

* lisp/gnus/gnus-sum.el (gnus-summary-sort-by-marks): Needs the
  "s", according to docs and keymap both.

6 years agoMerge from origin/emacs-26
Paul Eggert [Mon, 13 Nov 2017 18:54:20 +0000 (10:54 -0800)]
Merge from origin/emacs-26

79108894db Port to IBM xlc 12.01
d14956099d Simplify by removing HAVE_STRUCT_ATTRIBUTE_ALIGNED
b1573a97e1 Use alignas to fix GCALIGN-related bugs
5d68dc9a2f Change vectorlike from struct to union
6aa0a26b46 Don't enable cursor-sensor-mode in mhtml-mode
2b8ef8dddf * lisp/files.el (abbreviate-file-name): Doc fix.  (Bug#29267)
fe85ce1e16 Unbreak interactive run of a flymake test (bug#29267)
48ad00390d Fix Bug#29225
42daf83f08 CC Mode: Fix defun-open being recognized as brace-list-ope...
7775c47298 Merge from Gnulib
e470d16448 Pacify GCC when configured --with-x-toolkit=no
49450d0951 * lisp/find-dired.el (find-grep-dired): Doc fix.  (Bug#29262)
e286b3381f Fix more flymake-diag-region eob corner cases and add test...

# Conflicts:
# src/lisp.h

6 years agoPort to IBM xlc 12.01
Paul Eggert [Mon, 13 Nov 2017 18:06:50 +0000 (10:06 -0800)]
Port to IBM xlc 12.01

Work around a compiler bug by using a separate enum for alignment.
* src/alloc.c (roundup_size): Declare in a separate enum.

6 years agoSimplify by removing HAVE_STRUCT_ATTRIBUTE_ALIGNED
Paul Eggert [Mon, 13 Nov 2017 16:51:41 +0000 (08:51 -0800)]
Simplify by removing HAVE_STRUCT_ATTRIBUTE_ALIGNED

* configure.ac (HAVE_STRUCT_ATTRIBUTE_ALIGNED): Remove.  No longer
needed, since we no longer rely on __attribute__ ((aligned (8))).
All uses removed.
* src/emacs-module.c (HAVE_STRUCT_ATTRIBUTE_ALIGNED): Remove.
(lisp_to_value): Simplify now that we no longer need to worry
whether HAVE_STRUCT_ATTRIBUTE_ALIGNED is false.

6 years agoUse alignas to fix GCALIGN-related bugs
Paul Eggert [Mon, 13 Nov 2017 16:51:41 +0000 (08:51 -0800)]
Use alignas to fix GCALIGN-related bugs

Use alignas and unions to specify alignments of objects needing
addresses that are at least a multiple of GCALIGNMENT.  Using
these standard C facilities should be safer than relying on ad hoc
and poorly-understood features like GCC’s __attribute__
((aligned (N))), the root cause for recent porting bugs like
Bug#29040.  The alignas macro was standardized by C11 and Gnulib
supports alignas for pre-C11 platforms.  I have tested this on Sun
Studio 12 sparc (2007) and GCC 4.4.7 x86-64 (2012) as well as on
more recent platforms like GCC 7.2.1 (2017) on Fedora 26 (both
x86-64 and x86).
* lib-src/make-docfile.c (close_emacs_globals): lispsym is now
just an array of struct Lisp_Symbol, since struct Lisp_Symbol is
now properly aligned.  All uses changed.
* src/alloc.c (NEXT_FREE_LISP_STRING): Just use the new u.next
member; this is simpler and safer than casting a pointer that
might not be aligned properly.
(aligned_Lisp_Symbol): Remove.  No longer needed, now that struct
Lisp_Symbol is aligned properly.  All uses replaced with struct
Lisp_Symbol.
* src/lisp.h (GCALIGNED): Remove, as it does not work as expected:
it can cause the natural alignment to be ignored.  All uses
replaced by unions with a ‘char alignas (GCALIGNMENT)’ member as
described below.
(struct Lisp_Symbol, struct Lisp_Cons, struct Lisp_String):
Change definition from ‘struct TAG { MEMBERS };’ to
‘struct TAG { union { struct { MEMBERS } s; char alignas
(GCALIGNMENT) gcaligned; } u; };’.  This guarantees ‘struct TAG’
to have an alignment that at least max (GCALIGNMENT, N) where N is
its old alignment.  All uses like ‘PTR->MEMBER’ changed to
‘PTR->u.s.MEMBER’; these uses were supposed to be mostly private
anyway.  Verify that the resulting ‘struct TAG’ is properly
aligned for Emacs.
(union vectorlike_header): New member ‘gcaligned’ to guarantee
that this type, and its containing types like ‘struct Lisp_Subr’,
‘struct buffer’ and ‘struct thread_state’, are all properly
aligned for Emacs.
(struct Lisp_String): New union member ‘next’, for the benefit
of NEXT_FREE_LISP_STRING.
(union Aligned_Cons, union Aligned_String): Remove.  All uses
replaced by struct Lisp_Cons and struct Lisp_String, since they
are now properly aligned.
(USE_STACK_CONS, USE_STACK_STRING): Simplify now that we can
assume struct Lisp_Cons and struct Lisp_String are properly
aligned.

6 years agoChange vectorlike from struct to union
Paul Eggert [Mon, 13 Nov 2017 16:51:41 +0000 (08:51 -0800)]
Change vectorlike from struct to union

* src/lisp.h (vectorlike_headed): Change from struct to union.
All uses changed.  Since it has only one member, this does not
change semantics.  This is designed to simplify future changes
needed to fix bugs like Bug#29040.  All uses changed.

6 years ago* lisp/gnus/gnus-srvr.el: Avoid custom-set-variables
Stefan Monnier [Mon, 13 Nov 2017 16:28:05 +0000 (11:28 -0500)]
* lisp/gnus/gnus-srvr.el: Avoid custom-set-variables

* lisp/gnus/gnus-srvr.el (gnus-server-toggle-cloud-method-server):
Prefer customize-set-variable.

6 years agoDon't enable cursor-sensor-mode in mhtml-mode
Tom Tromey [Sun, 12 Nov 2017 18:56:05 +0000 (11:56 -0700)]
Don't enable cursor-sensor-mode in mhtml-mode

* lisp/textmodes/mhtml-mode.el (mhtml--last-submode): Update doc
string.
(mhtml-mode): Don't call cursor-sensor-mode.

6 years ago* lisp/files.el (abbreviate-file-name): Doc fix. (Bug#29267)
Eli Zaretskii [Sun, 12 Nov 2017 13:25:06 +0000 (15:25 +0200)]
* lisp/files.el (abbreviate-file-name): Doc fix.  (Bug#29267)

6 years agoUnbreak interactive run of a flymake test (bug#29267)
João Távora [Sun, 12 Nov 2017 12:32:25 +0000 (12:32 +0000)]
Unbreak interactive run of a flymake test (bug#29267)

See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19657#20 for the
technique used here.

* test/lisp/progmodes/flymake-tests.el (ruby-backend):
Let-bind abbreviated-home-dir.

6 years agoFix Bug#29225
Michael Albinus [Sun, 12 Nov 2017 12:05:44 +0000 (13:05 +0100)]
Fix Bug#29225

* src/fileio.c (Fset_file_acl): Report error only when
acl_errno_valid returns true.  (Bug#29225)

* test/lisp/net/tramp-tests.el (tramp-test24-file-acl)
(tramp-test25-file-selinux): New tests.
(tramp-test26-file-name-completion, tramp-test27-load)
(tramp-test28-process-file, tramp-test29-start-file-process)
(tramp-test30-interrupt-process, tramp-test31-shell-command)
(tramp-test32-environment-variables)
(tramp-test32-environment-variables-and-port-numbers)
(tramp-test33-explicit-shell-file-name)
(tramp-test34-vc-registered)
(tramp-test35-make-auto-save-file-name)
(tramp-test36-find-backup-file-name)
(tramp-test37-make-nearby-temp-file)
(tramp-test38-special-characters)
(tramp-test38-special-characters-with-stat)
(tramp-test38-special-characters-with-perl)
(tramp-test38-special-characters-with-ls, tramp-test39-utf8)
(tramp-test39-utf8-with-stat, tramp-test39-utf8-with-perl)
(tramp-test39-utf8-with-ls, tramp-test40-file-system-info)
(tramp-test41-asynchronous-requests)
(tramp-test42-recursive-load, tramp-test43-remote-load-path)
(tramp-test44-delay-load, tramp-test45-unload): Rename.

6 years agoCC Mode: Fix defun-open being recognized as brace-list-open at EOB.
Alan Mackenzie [Sun, 12 Nov 2017 11:49:03 +0000 (11:49 +0000)]
CC Mode: Fix defun-open being recognized as brace-list-open at EOB.

* lisp/progmodes/cc-engine.el (c-looking-at-statement-block): Add handling
for an open brace at EOB and nested braces inside an unclosed brace block.

6 years agoMerge from Gnulib
Paul Eggert [Sun, 12 Nov 2017 07:11:03 +0000 (23:11 -0800)]
Merge from Gnulib

This incorporates:
2017-11-11 faccessat: port to macOS (Bug#29231)
2017-11-05 fstatat: pacify GCC on unusual platform
* build-aux/config.guess, build-aux/config.sub:
* doc/misc/texinfo.tex, lib/faccessat.c, lib/fstatat.c:
* lib/unistd.in.h, m4/faccessat.m4, m4/unistd_h.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.

6 years agoPacify GCC when configured --with-x-toolkit=no
Paul Eggert [Sun, 12 Nov 2017 06:59:41 +0000 (22:59 -0800)]
Pacify GCC when configured --with-x-toolkit=no

Without these changes, Emacs does not build on Fedora 26 x86-64
when configured --with-x-toolkit=no --enable-gcc-warnings.
* oldXMenu/Activate.c (XMenuActivate): Add FALLTHROUGH.
* src/xterm.c (x_dispatch_event): Define only if
USE_X_TOOLKIT || USE_MOTIF || USE_GTK.

6 years ago* lisp/find-dired.el (find-grep-dired): Doc fix. (Bug#29262)
Eli Zaretskii [Sun, 12 Nov 2017 05:03:48 +0000 (07:03 +0200)]
* lisp/find-dired.el (find-grep-dired): Doc fix.  (Bug#29262)

6 years agoFix more flymake-diag-region eob corner cases and add tests (bug#29201)
João Távora [Sat, 11 Nov 2017 23:44:52 +0000 (23:44 +0000)]
Fix more flymake-diag-region eob corner cases and add tests (bug#29201)

* lisp/progmodes/flymake.el (flymake-diag-region): Correct
more eob corner cases.

* test/lisp/progmodes/flymake-tests.el
(eob-region-and-trailing-newline): New test.

6 years agoRename Man-build-section-alist (bug#28998)
Basil L. Contovounesios [Tue, 7 Nov 2017 14:51:37 +0000 (14:51 +0000)]
Rename Man-build-section-alist (bug#28998)

The defsubst Man-build-section-alist builds and returns a list of
strings, so rename it to Man-build-section-list and make it a defun.

* lisp/man.el (Man-build-section-alist): Do it and reduce syntax.
(Man-goto-page):
* lisp/woman.el (woman-find-file): Use it.

6 years ago; Merge from emacs-26
Noam Postavsky [Sat, 11 Nov 2017 16:10:49 +0000 (11:10 -0500)]
; Merge from emacs-26

9533d76b0b Keep Man sections in natural order (bug#28998)
d63c9a96f5 * lisp/minibuffer.el: Install a workaround for bug#16274
7657a86709 Fix comparisons with tip_frame in GTK builds
603a0716a8 Improve the documentation of M-n for entering file names
72f813fb56 Fix desktop auto-save timer when linum-mode is used
44340b475f Fix "C-h k" in xterm-mouse-mode
05aa6d4a68 Fix off-by-1 bug in --enable-checking=stringbytes
096f638ddc Correct the indentation of C99's compound literals.
c52a2aa8f3 Improve the doc string of 'dired-isearch-filter-filenames'
e592b92482 * lisp/isearch.el (search-invisible): Doc fix.  (Bug#29222)
f3e69a80ab Fix display of line numbers in GTK builds
e6f1fd4091 Fix previous change to flymake-diag-region (bug#29174)
89382780e1 flymake-diag-region really returns nil if region is invali...
535688a418 Flymake correctly highlights whole last line if eob (bug#2...
72e62d3fdb Protect Flymake checkdoc backend against checkdoc errors (...
b28de57411 Sort entries of the Flymake diagnostics buffer (bug#29175)
fc56bea142 Correctly indent C++14 brace lists which are a second argu...
9dde8be9cd Fix redisplay of overlay-arrows on GUI frames
0da08f2f8e Protect Flymake tests against older Ruby and Perl (bug#29187)
781f276cc1 Fix URL cookie expiration bug

6 years agoKeep Man sections in natural order (bug#28998)
Basil L. Contovounesios [Wed, 25 Oct 2017 15:57:43 +0000 (16:57 +0100)]
Keep Man sections in natural order (bug#28998)

* lisp/man.el (Man-build-section-alist): Reverse sections.

6 years ago* lisp/minibuffer.el: Install a workaround for bug#16274
Stefan Monnier [Sat, 11 Nov 2017 15:25:20 +0000 (10:25 -0500)]
* lisp/minibuffer.el: Install a workaround for bug#16274

* lisp/minibuffer.el (completion--nth-completion): Avoid signaling an
error when `md` is applied to another table.

6 years agoFix comparisons with tip_frame in GTK builds
Eli Zaretskii [Sat, 11 Nov 2017 12:42:30 +0000 (14:42 +0200)]
Fix comparisons with tip_frame in GTK builds

* src/xterm.c (x_update_begin, x_new_font):
* src/xfns.c (Fx_display_monitor_attributes_list):
* src/frame.c (Fframe_list) [USE_GTK]: Don't consider tip_frame a
tooltip frame unless its 'tooltip' parameter is non-nil.  (Bug#26747)

6 years agoImprove the documentation of M-n for entering file names
Eli Zaretskii [Sat, 11 Nov 2017 11:48:37 +0000 (13:48 +0200)]
Improve the documentation of M-n for entering file names

* lisp/files.el (find-file, find-file-other-window)
(find-file-other-frame): Mention file-name-at-point-functions in
the doc string.  Reported by Florian Weimer <fw@deneb.enyo.de> in
http://lists.gnu.org/archive/html/emacs-devel/2017-11/msg00224.html.

* doc/emacs/mini.texi (Minibuffer History): Document
file-name-at-point-functions and its effect on M-n when typing
file names in the minibuffer.
* doc/emacs/files.texi (File Names):
* doc/emacs/mini.texi (Minibuffer File): Add a cross-reference to
"Minibuffer History", where special features of M-n regarding
files are described.

6 years agoFix desktop auto-save timer when linum-mode is used
Eli Zaretskii [Sat, 11 Nov 2017 09:53:42 +0000 (11:53 +0200)]
Fix desktop auto-save timer when linum-mode is used

* lisp/desktop.el (desktop-read): Use toplevel value of
window-configuration-change-hook when deciding whether desktop
auto-saving is enabled.  Suggested by Peter Neidhardt
<pe.neidhardt@googlemail.com>.  (Bug#28945)

6 years agoFix "C-h k" in xterm-mouse-mode
Olaf Rogalsky [Sat, 11 Nov 2017 09:05:53 +0000 (11:05 +0200)]
Fix "C-h k" in xterm-mouse-mode

* lisp/help.el (help-read-key-sequence): Support "C-h k" for
xterm-mouse-mode by calling read-key-sequence-vector instead of
read-event.  (Bug#29150)

6 years agoProvide more control over writing of objects in object-write
Eric Abrahamsen [Wed, 8 Nov 2017 19:58:31 +0000 (11:58 -0800)]
Provide more control over writing of objects in object-write

* lisp/emacs-lisp/eieio.el (eieio-print-indentation,
  eieio-print-object-name): New variables controlling whether an
  object name is printed for each object, and whether an object's
  contents are indented or not. Object names are obsoleted; omitting
  indentation reduces the size of persistence files.

6 years agoFix off-by-1 bug in --enable-checking=stringbytes
Paul Eggert [Fri, 10 Nov 2017 23:16:50 +0000 (15:16 -0800)]
Fix off-by-1 bug in --enable-checking=stringbytes

Evidently nobody builds Emacs with --enable-checking=all,
which is no surprise as it is so slow as to be unusable nowadays.
Perhaps we should remove the slowest checks, or move them into
another category, or speed them up, or something.
* src/alloc.c (SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Fix off-by-one
error in size calculation, which caused a failure when
--enable-checking=stringbytes was used.  I introduced this bug in
2016-09-08T01:08:45!eggert@cs.ucla.edu "Port flexible array
members to GCC + valgrind".

6 years agoCorrect the indentation of C99's compound literals.
Alan Mackenzie [Fri, 10 Nov 2017 17:45:22 +0000 (17:45 +0000)]
Correct the indentation of C99's compound literals.

* lisp/progmodes/cc-engine.el (c-looking-at-statement-block): Amend so that
if there is only syntactic whitespace in a brace block, it is regarded as a
statement block.  Also, if there is no semicolon or comma delimiter, treat as
a statement block when there is a keyword.
(c-guess-basic-syntax): CASE 9 test: Regard a brace as starting a brace block
when its contents indicate a brace block.

6 years agoImprove the doc string of 'dired-isearch-filter-filenames'
Eli Zaretskii [Fri, 10 Nov 2017 10:12:46 +0000 (12:12 +0200)]
Improve the doc string of 'dired-isearch-filter-filenames'

* lisp/dired-aux.el (dired-isearch-filter-filenames): Doc fix.
(Bug#29215)

6 years ago* lisp/isearch.el (search-invisible): Doc fix. (Bug#29222)
Eli Zaretskii [Fri, 10 Nov 2017 10:05:08 +0000 (12:05 +0200)]
* lisp/isearch.el (search-invisible): Doc fix.  (Bug#29222)

6 years agoFix display of line numbers in GTK builds
Eli Zaretskii [Fri, 10 Nov 2017 08:35:31 +0000 (10:35 +0200)]
Fix display of line numbers in GTK builds

* src/xdisp.c (should_produce_line_number) [USE_GTK]: Make sure
tip_frame is indeed a tooltip frame, before disabling line numbers
on it.  (Bug#27647)

* src/dispextern.h (tip_frame): Add commentary describing the
kludgey usage of this variable in GTK builds.

6 years agoFix previous change to flymake-diag-region (bug#29174)
João Távora [Fri, 10 Nov 2017 05:10:18 +0000 (05:10 +0000)]
Fix previous change to flymake-diag-region (bug#29174)

* lisp/progmodes/flymake.el (flymake-diag-region):
Pass line and col to commit.

6 years agoflymake-diag-region really returns nil if region is invalid (bug#29174)
João Távora [Thu, 9 Nov 2017 21:25:36 +0000 (21:25 +0000)]
flymake-diag-region really returns nil if region is invalid (bug#29174)

Reported by Lele Gaifax <lele@metapensiero.it>.

* lisp/progmodes/flymake.el (flymake-diag-region): Really
return nil if the region is invalid.

6 years agoFlymake correctly highlights whole last line if eob (bug#29201)
João Távora [Thu, 9 Nov 2017 21:16:40 +0000 (21:16 +0000)]
Flymake correctly highlights whole last line if eob (bug#29201)

If a line/column pair indicates an end-of-buffer position, flymake
should behave like the case where the last line of the buffer is
referenced without a column indication.  This behavior is currently
to highlight the whole last line.

* lisp/progmodes/flymake.el (flymake-diag-region): Correct
conditions of fallback to the fallback-eol local function.

6 years agoProtect Flymake checkdoc backend against checkdoc errors (bug#29176)
João Távora [Thu, 9 Nov 2017 20:44:11 +0000 (20:44 +0000)]
Protect Flymake checkdoc backend against checkdoc errors (bug#29176)

The function checkdoc-current-buffer may error if there are unbalanced
parens, for example, but this shouldn't disable the
elisp-flymake-checkdoc backend.

* lisp/progmodes/elisp-mode.el (elisp-flymake-checkdoc): Use
ignore-errors.

6 years agoSort entries of the Flymake diagnostics buffer (bug#29175)
João Távora [Thu, 9 Nov 2017 20:33:02 +0000 (20:33 +0000)]
Sort entries of the Flymake diagnostics buffer (bug#29175)

Reported by Lele Gaifax <lele@metapensiero.it>.

* lisp/progmodes/flymake.el
(flymake--diagnostics-buffer-entries): Sort results of flymake-diagnostics.

6 years agoCorrectly indent C++14 brace lists which are a second argument to a function.
Alan Mackenzie [Thu, 9 Nov 2017 18:34:13 +0000 (18:34 +0000)]
Correctly indent C++14 brace lists which are a second argument to a function.

In particular, don't indent contained brace lists in "staircase" fashion.
This fixes bug #28623.

* lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): When
testing for being enclosed in parens, recognise also a brace directly
following a comma, as well as a brace being the first thing inside the paren.
Enhance the return value, by indicating when we're directly inside an open
paren.
(c-inside-bracelist-p): Add an extra argument ACCEPT-IN-PARAM which indicates
whether we will accept a bracelist directly inside an open parenthesis.
Simplify the manipulation of PAREN-STATE by dispensing with variable LIM and
using c-pull-open-brace.  Enhance the return value, respecting the new argument.
(c-guess-basic-syntax): Save a copy of the initial parse-state in the new
variable STATE-CACHE.  Use this variable in place of C-STATE-CACHE throughout
the function.  At CASE 7B, call c-inside-bracelist-p with extra argument nil.
At CASE 9, call that function with extra argument t.

6 years agoFix redisplay of overlay-arrows on GUI frames
Eli Zaretskii [Thu, 9 Nov 2017 16:22:42 +0000 (18:22 +0200)]
Fix redisplay of overlay-arrows on GUI frames

* src/xdisp.c (try_window_reusing_current_matrix)
(try_cursor_movement): Disallow these optimizations if the buffer
has overlay arrow(s) shown on the fringe(s).  (Bug#29198)

6 years agoProtect Flymake tests against older Ruby and Perl (bug#29187)
João Távora [Thu, 9 Nov 2017 09:34:58 +0000 (09:34 +0000)]
Protect Flymake tests against older Ruby and Perl (bug#29187)

* test/lisp/progmodes/flymake-tests.el (perl-backend): Search
for the error from the bottom.
(ruby-backend): Protect against situation of bug#29187

6 years agoFix URL cookie expiration bug
Paul Eggert [Thu, 9 Nov 2017 05:30:26 +0000 (21:30 -0800)]
Fix URL cookie expiration bug

Problem reported by Damien Cassou (Bug#29223).
* lisp/url/url-cookie.el (url-cookie-expired-p):
Fix typo in previous change, which caused unexpired cookies
to be treated as expired and vice versa.

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

9e59de9449 Use GCALIGNED properly for GCC
b9d7c90260 In f90.el, set fill-paragraph-function to a useful value

# Conflicts:
# src/lisp.h

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

The following commit was skipped:

73d670751a Fix to 2fddfb7ce7

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

6c3031399b * admin/gitmerge.el (gitmerge-resolve-unmerged): Fix doc t...
98288ecaff Further workaround for faulty localtime() under macOS 10.6

6 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...

6 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

6 years agoUse GCALIGNED properly for GCC
Paul Eggert [Thu, 9 Nov 2017 03:11:18 +0000 (19:11 -0800)]
Use GCALIGNED properly for GCC

Apparently GCC requires that ‘__attribute__ ((aligned (8)))’ must
immediately follow the ‘struct’ keyword when aligning a structure.
The attribute silently does not work if it follows a tag after the
‘struct’ keyword.  Who knew?  Anyway, this patch is designed to
fix a SIGSEGV problem reported by John Mastro (Bug#29183).
* 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):
Put 'GCALIGNED' immediately after 'struct'.

6 years agoIn f90.el, set fill-paragraph-function to a useful value
Glenn Morris [Thu, 9 Nov 2017 01:16:38 +0000 (20:16 -0500)]
In f90.el, set fill-paragraph-function to a useful value

* lisp/progmodes/f90.el (f90-mode-map) <menu>: Add fill-paragraph.
(f90-mode): Set fill-paragraph-function.
(f90-fill-paragraph): New command.

6 years agoFix to 2fddfb7ce7
Eric Abrahamsen [Sun, 22 Oct 2017 23:46:49 +0000 (16:46 -0700)]
Fix to 2fddfb7ce7

* lisp/emacs-lisp/eieio-base.el (eieio-persistent-convert-list-to-object):
  Fix bogus paren wrapping.

6 years ago* admin/gitmerge.el (gitmerge-resolve-unmerged): Fix doc typo.
Glenn Morris [Wed, 8 Nov 2017 20:36:45 +0000 (15:36 -0500)]
* admin/gitmerge.el (gitmerge-resolve-unmerged): Fix doc typo.

6 years agoFurther workaround for faulty localtime() under macOS 10.6
Charles A. Roelli [Wed, 8 Nov 2017 19:51:48 +0000 (20:51 +0100)]
Further workaround for faulty localtime() under macOS 10.6

* lisp/org/org-clock.el (org-clock--oldest-date): Fix an issue
when compiling on macOS 10.6 with a western time zone (a
continuation of Bug#27736).  In particular, see:

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27736#74

and the first commit that attempted to work around this problem,
"Workaround for faulty localtime() under macOS 10.6", bd49b6f1 of
2017-09-30.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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)

6 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.

6 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.

6 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'.

6 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'.

6 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.

6 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).

6 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

6 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.

6 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)

6 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

6 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

6 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'.

6 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.

6 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'.

6 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)

6 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.

6 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

6 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.

6 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.

6 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

6 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)

6 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)

6 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.

6 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.

6 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.

6 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.