]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years agoRemove inadvertent changes to syntax.texi in last commit. scratch/customize-quotes
Alan Mackenzie [Sun, 1 Oct 2017 10:01:33 +0000 (10:01 +0000)]
Remove inadvertent changes to syntax.texi in last commit.

* doc/lispref/syntax.texi (Position Parse): revert changes.

6 years agoAmend documentation for text-quoting-style becoming a user option.
Alan Mackenzie [Sat, 30 Sep 2017 11:08:16 +0000 (11:08 +0000)]
Amend documentation for text-quoting-style becoming a user option.

* doc/lispref/control.texi (Signaling Errors):
* doc/lispref/display.texi (Displaying Messages):
* doc/lispref/strings.texi (Formatting Strings):
Edit for brevity, farming out the details to the new
Text Quoting Style node.
* doc/lispref/help.texi (Text Quoting Style): New section.
Move detailed discussion of text-quoting-style here.
Add discussion about how to output grave accent and apostrophe in
documentation and messages.  Adjust xrefs to point to this section
when appropriate.
* etc/NEWS: text-quoting-style semantics have not changed.

6 years agoMake the value nil in text-quoting-style mean what it does in Emacs 25.
Alan Mackenzie [Fri, 22 Sep 2017 21:52:03 +0000 (21:52 +0000)]
Make the value nil in text-quoting-style mean what it does in Emacs 25.

This is a partial reversion of yesterday's commit by the same author, which
changed the meaning of nil and introduced the new value t.

* src/doc.c (text_quoting_style, text-quoting-style)
(internal--text-quoting-flag): Revert yesterday's changes.

* lisp/cus-start.el: (top level): Amend the entry for text-quoting-style.

* etc/NEWS: Amend the entry for text-quoting-style.

* doc/lispref/control.texi (Signalling Errors)
* doc/lispref/display.texi (Displaying Messages)
* doc/lispref/strings.texi (Formatting Strings): Bind text-quoting-style to
grave rather than nil to inhibit translation of quotes.

* doc/lispref/help.texi (Keys in Documentation): Revert the description of the
proposed new default, t.

7 years agoMake text-quoting-style customizable. Introduce t and new meaning for nil.
Alan Mackenzie [Thu, 21 Sep 2017 20:31:06 +0000 (20:31 +0000)]
Make text-quoting-style customizable.  Introduce t and new meaning for nil.

A value of nil for text-quoting-style now means "no translation".  t means
"Use curved quotes if displayable".

* src/doc.c (text-quoting-style (function)): modify for new semantics.
(text-quoting-style (variable)): Amend the doc string, set the default value
to t.

* lisp/cus-start.el: (top level): Create a customize entry for
text-quoting-style in group display.

* etc/NEWS: Amend the entry for text-quoting-style.

* doc/emacs/display.texi (Text Display): Describe the translation of ASCII
quotes to curved quotes, and how to influence or inhibit it.

* doc/lispref/control.texi (Signalling Errors)
* doc/lispref/display.texi (Displaying Messages)
* doc/lispref/strings.texi (Formatting Strings): Describe binding
text-quoting-style to nil to inhibit unwanted quote translation.

* doc/lispref/help.texi (Keys in Documentation): Change text-quoting-style
from a variable to a user option.  Describe its changed set of values.  State
that it can be customized freely.

7 years ago; * lisp/mouse.el (secondary-selection-exist-p): Doc fix.
Eli Zaretskii [Thu, 21 Sep 2017 08:29:11 +0000 (11:29 +0300)]
; * lisp/mouse.el (secondary-selection-exist-p): Doc fix.

7 years agoSupport setting region from secondary selection and vice versa
Tak Kunihiro [Thu, 21 Sep 2017 08:26:00 +0000 (11:26 +0300)]
Support setting region from secondary selection and vice versa

* lisp/mouse.el (secondary-selection-exist-p): New function to
allow callers to tell existence of the secondary selection
in current buffer.
(secondary-selection-to-region): New function to set
beginning and end of the region from those of the secondary
selection.
(secondary-selection-from-region): New function to set
beginning and end of the secondary selection from those of
the region.  (Bug#27530)

* etc/NEWS: Mention the new functions.

7 years agoFix new copy-directory bug with empty dirs
Paul Eggert [Wed, 20 Sep 2017 18:49:12 +0000 (11:49 -0700)]
Fix new copy-directory bug with empty dirs

Problem reported by Afdam Plaice (Bug#28520) and by Eli Zaretskii
(Bug#28483#34).  This is another bug that I introduced in my
recent copy-directory changes.
* lisp/files.el (copy-directory): Work with empty subdirectories, too.
* test/lisp/files-tests.el (files-tests--copy-directory):
Test for this bug.

7 years ago* doc/lispref/strings.texi (Formatting Strings): Improve indexing.
Eli Zaretskii [Wed, 20 Sep 2017 13:40:20 +0000 (16:40 +0300)]
* doc/lispref/strings.texi (Formatting Strings): Improve indexing.

7 years agoFix 2 testsuite tests for MS-Windows
Eli Zaretskii [Wed, 20 Sep 2017 07:16:11 +0000 (10:16 +0300)]
Fix 2 testsuite tests for MS-Windows

* test/lisp/ibuffer-tests.el (test-buffer-list): Don't try to
create files with "*" in their names.
* test/src/editfns-tests.el (format-time-string-with-zone): Adapt
results to MS-Windows build.  Reported by Fabrice Popineau
<fabrice.popineau@gmail.com>.

7 years agoRename timer-list to list-timers
Mark Oteiza [Wed, 20 Sep 2017 02:21:37 +0000 (22:21 -0400)]
Rename timer-list to list-timers

* doc/emacs/anti.texi (Antinews):
* doc/lispref/os.texi (Timers):
* etc/NEWS:
* lisp/emacs-lisp/timer-list.el:
(timer-list-mode): Rename timer-list to list-timers.

7 years agoProvide native touchpad scrolling on macOS
Alan Third [Fri, 8 Sep 2017 18:26:47 +0000 (19:26 +0100)]
Provide native touchpad scrolling on macOS

* etc/NEWS: Describe changes.
* lisp/term/ns-win.el (mouse-wheel-scroll-amount,
mouse-wheel-progressive-speed): Set to smarter values for macOS
touchpads.
* src/nsterm.m (emacsView::mouseDown): Use precise scrolling deltas to
calculate scrolling for touchpads and mouse wheels.
(syms_of_nsterm): Add variables 'ns-use-system-mwheel-acceleration',
'ns-touchpad-scroll-line-height' and 'ns-touchpad-use-momentum'.
* src/keyboard.c (make_lispy_event): Pass on .arg when relevant.
* src/termhooks.h (event_kind): Update comments re. WHEEL_EVENT.
* lisp/mwheel.el (mwheel-scroll): Use line count.
* lisp/subr.el (event-line-count): New function.

7 years agoFix MinGW64 build broken by recent MinGW64 import libraries
Eli Zaretskii [Tue, 19 Sep 2017 17:31:02 +0000 (20:31 +0300)]
Fix MinGW64 build broken by recent MinGW64 import libraries

* configure.ac (W32_LIBS): Put -lusp10 before -lgdi32, as latest
MinGW64 import libraries require that.  (Bug#28493)

* src/Makefile.in: Adjust commentary to the new order of w32
libraries.

7 years agoFix crashes in 'move-point-visually' in minibuffer windows
Eli Zaretskii [Tue, 19 Sep 2017 17:11:42 +0000 (20:11 +0300)]
Fix crashes in 'move-point-visually' in minibuffer windows

* src/xdisp.c (Fmove_point_visually): Fix off-by-one error in
comparing against the last valid glyph_row of a window glyph
matrix.  (Bug#28505)

7 years ago* src/emacs.c (usage_message): Don't mention 'find-file'.
Eli Zaretskii [Tue, 19 Sep 2017 16:52:50 +0000 (19:52 +0300)]
* src/emacs.c (usage_message): Don't mention 'find-file'.

7 years agoFix a minor inaccuracy in the Emacs manual
Eli Zaretskii [Tue, 19 Sep 2017 16:48:27 +0000 (19:48 +0300)]
Fix a minor inaccuracy in the Emacs manual

* doc/emacs/cmdargs.texi (Action Arguments): Don't mention
'find-file', as the implementation has changed.  Reported by
Everton J. Carpes <everton.carpes@gmail.com> in
http://lists.gnu.org/archive/html/help-gnu-emacs/2017-09/msg00146.html.

7 years agoFix errors in flyspell-post-command-hook
Eli Zaretskii [Tue, 19 Sep 2017 16:32:09 +0000 (19:32 +0300)]
Fix errors in flyspell-post-command-hook

* lisp/textmodes/ispell.el (ispell-get-decoded-string): Handle the
case of a nil Nth element of the language dictionary slot.  This
avoids errors in 'flyspell-post-command-hook' when switching
dictionaries with some spell-checkers.  (Bug#28501)

7 years agoWork on Tramp's file-truename
Michael Albinus [Tue, 19 Sep 2017 16:12:35 +0000 (18:12 +0200)]
Work on Tramp's file-truename

* lisp/net/tramp-sh.el (tramp-perl-file-truename):
Check also for symlinks.
(tramp-sh-handle-file-truename): Move check for a symlink
cycle to the end.  Do not blame symlinks which look like a
remote file name.

* lisp/net/tramp.el (tramp-handle-file-truename): Expand result.

7 years agoFix bug with make-directory on MS-Windows root
Paul Eggert [Tue, 19 Sep 2017 08:47:39 +0000 (01:47 -0700)]
Fix bug with make-directory on MS-Windows root

* lisp/files.el (files--ensure-directory): Treat any error, not
just file-already-exists, as an opportunity to check whether DIR
is already a directory (Bug#28508).

7 years agoFix log-view-diff-common when point is after last entry
Tom Tromey [Tue, 19 Sep 2017 02:02:01 +0000 (20:02 -0600)]
Fix log-view-diff-common when point is after last entry

Bug#28466
* lisp/vc/log-view.el (log-view-diff-common): If point is after last
entry, look at the previous revision.

7 years agoAdapt fileio-tests--symlink-failure to Cygwin
Ken Brown [Mon, 18 Sep 2017 21:22:52 +0000 (17:22 -0400)]
Adapt fileio-tests--symlink-failure to Cygwin

* test/src/fileio-tests.el (fileio-tests--symlink-failure)
[CYGWIN]: Skip the case of a symlink target starting with '\';
this is treated specially on Cygwin.

7 years agoIgnore buffers whose name begins with a space in save-some-buffers
Eric Abrahamsen [Mon, 18 Sep 2017 20:29:44 +0000 (13:29 -0700)]
Ignore buffers whose name begins with a space in save-some-buffers

* lisp/files.el (save-some-buffers): Consider these buffers
  "internal", and don't prompt the user to save them.
* doc/lispref/files.texi: Document.

7 years agoImprove tramp-interrupt-process robustness
Michael Albinus [Mon, 18 Sep 2017 16:00:27 +0000 (18:00 +0200)]
Improve tramp-interrupt-process robustness

* lisp/net/tramp.el (tramp-interrupt-process): Wait, until the
process has disappeared.

7 years agoMinor Tramp doc update
Michael Albinus [Mon, 18 Sep 2017 16:00:07 +0000 (18:00 +0200)]
Minor Tramp doc update

* doc/misc/tramp.texi (Frequently Asked Questions):
Mention `vc-handled-backends'.

7 years agoFix gensym
Mark Oteiza [Mon, 18 Sep 2017 13:00:45 +0000 (09:00 -0400)]
Fix gensym

* lisp/subr.el (gensym): Actually implement the default prefix.
* test/lisp/subr-tests.el (subr-tests--gensym): New test.

7 years agoCleanup in files-tests.el
Michael Albinus [Mon, 18 Sep 2017 08:00:17 +0000 (10:00 +0200)]
Cleanup in files-tests.el

* test/lisp/files-tests.el (files-tests--make-directory)
(files-tests--copy-directory): Cleanup temporary directories.

7 years agoRemove old cl-assert calls in 'newline'
Paul Eggert [Mon, 18 Sep 2017 05:32:31 +0000 (22:32 -0700)]
Remove old cl-assert calls in 'newline'

* lisp/simple.el (newline): Remove cl-assert calls
that didn't seem to be helping us debug Bug#18913,
and that caused problems as reported in Bug#28280.
Suggested by Glenn Morris (Bug#28280#8).

7 years agoAvoid crash with C-g C-g in GC
Paul Eggert [Mon, 18 Sep 2017 05:01:56 +0000 (22:01 -0700)]
Avoid crash with C-g C-g in GC

Problem reported by Richard Stallman (Bug#17406).
Based on fix suggested by Eli Zaretskii (Bug#28279#16).
* src/term.c (tty_send_additional_strings):
Use only safe accessors, to avoid crash when C-g C-g in GC.

7 years agoFix format-time-string %Z bug with negative tz
Paul Eggert [Mon, 18 Sep 2017 03:38:12 +0000 (20:38 -0700)]
Fix format-time-string %Z bug with negative tz

* src/editfns.c (tzlookup): Fix sign error in %Z when a purely
numeric zone is negative (Bug#28746).
* test/src/editfns-tests.el (format-time-string-with-zone):
Add test for this bug.

7 years agomessage-citation-line-format %Z is now tz name
Paul Eggert [Mon, 18 Sep 2017 00:46:18 +0000 (17:46 -0700)]
message-citation-line-format %Z is now tz name

* etc/NEWS:
* lisp/gnus/message.el (message-citation-line-format):
Fix doc to match new behavior (Bug#28476).

7 years agoUse doc-view or pdf-tools on any window-system
Mark Oteiza [Sun, 17 Sep 2017 23:37:08 +0000 (19:37 -0400)]
Use doc-view or pdf-tools on any window-system

* lisp/net/mailcap.el (mailcap-mime-data): Simply check for
window-system.

7 years agoFix bug with min and max and NaNs
Paul Eggert [Sun, 17 Sep 2017 22:25:44 +0000 (15:25 -0700)]
Fix bug with min and max and NaNs

* src/data.c (minmax_driver): Fix bug with (min 0 NaN), which
mistakenly yielded 0.  Also, pacify GCC in a better way.
* test/src/data-tests.el (data-tests-min): Test for the bug.

7 years agoFix recently-introduced copy-directory bug
Paul Eggert [Sun, 17 Sep 2017 19:56:00 +0000 (12:56 -0700)]
Fix recently-introduced copy-directory bug

Problem reported by Andrew Christianson (Bug#28451):
* lisp/files.el (copy-directory): If COPY-CONTENTS, make the
destination directory if it does not exist, even if it is a
directory name.  Simplify, and omit unnecessary test for an
already-existing non-directory target, since make-directory
diagnoses that for us now.
* test/lisp/files-tests.el (files-tests--copy-directory):
Test for this bug.

7 years agoMerge from Gnulib
Paul Eggert [Sun, 17 Sep 2017 19:56:00 +0000 (12:56 -0700)]
Merge from Gnulib

This incorporates:
2017-09-16 manywarnings: port to GCC on 64-bit MS-Windows
2017-09-13 all: Replace many more http URLs by https URLs
* build-aux/config.guess, build-aux/config.sub:
* build-aux/gitlog-to-changelog, doc/misc/texinfo.tex:
* lib/allocator.h, lib/count-leading-zeros.h:
* lib/count-trailing-zeros.h, lib/dup2.c, lib/filevercmp.c:
* lib/fstatat.c, lib/fsync.c, lib/ftoastr.c, lib/ftoastr.h:
* lib/intprops.h, lib/signal.in.h, lib/stdio-impl.h, lib/stdio.in.h:
* lib/unistd.in.h, lib/utimens.c, m4/alloca.m4, m4/extern-inline.m4:
* m4/fstatat.m4, m4/gnulib-common.m4, m4/manywarnings.m4:
* m4/std-gnu11.m4, m4/sys_types_h.m4, m4/vararrays.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.

7 years agoFix compatibility problem in Tramp
Michael Albinus [Sun, 17 Sep 2017 17:16:59 +0000 (19:16 +0200)]
Fix compatibility problem in Tramp

* lisp/net/tramp.el (tramp-interrupt-process): Better error handling.

* lisp/net/tramp-compat.el (default-toplevel-value): Move up.
(top): Do not call `tramp-change-syntax' anymore.
(tramp-compat-directory-name-p): New defalias.

* lisp/net/tramp-adb.el (tramp-adb-handle-copy-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file): Use it.

* test/lisp/net/tramp-tests.el (tramp-test28-interrupt-process):
Modify test.

7 years agoAvoid GCC 7 compilation warning in eval.c
Eli Zaretskii [Sun, 17 Sep 2017 16:50:43 +0000 (19:50 +0300)]
Avoid GCC 7 compilation warning in eval.c

* src/eval.c (push_handler_nosignal): Use CACHEABLE to work around
GCC compilation warning.  Suggested by Paul Eggert <eggert@cs.ucla.edu>
in http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00492.html.

7 years ago; Partially revert c3445aed5194
Mark Oteiza [Sun, 17 Sep 2017 12:27:57 +0000 (08:27 -0400)]
; Partially revert c3445aed5194

The pdf-view-mode entry had been added recently and should not have been
removed.
* lisp/net/mailcap.el: Restore pdf-view-mode entry from the pdf-tools
package.

7 years agoAdapt Tramp version. Do not merge
Michael Albinus [Sun, 17 Sep 2017 08:03:18 +0000 (10:03 +0200)]
Adapt Tramp version.  Do not merge

* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.3.3.26.1".
(customize-package-emacs-version-alist): Add Tramp version
integrated in Emacs 26.1.

7 years agoSearch for Syntax section when viewing MDN
Tom Tromey [Sun, 17 Sep 2017 03:46:17 +0000 (21:46 -0600)]
Search for Syntax section when viewing MDN

* lisp/textmodes/css-mode.el (css--mdn-after-render): Also search for
"Syntax" section.

7 years agoAllow smerge-keep-current to work for empty hunks
Tom Tromey [Sat, 9 Sep 2017 23:20:43 +0000 (17:20 -0600)]
Allow smerge-keep-current to work for empty hunks

Bug#25555
* lisp/vc/smerge-mode.el (smerge-get-current): Allow point to be at
match-end.
* test/lisp/vc/smerge-mode-tests.el: New file.

7 years agoCall vc-setup-buffer in vc-git-log-{in,out}going
Tom Tromey [Sat, 16 Sep 2017 18:30:36 +0000 (12:30 -0600)]
Call vc-setup-buffer in vc-git-log-{in,out}going

Bug#28427:
* lisp/vc/vc-git.el (vc-git-log-incoming, vc-git-log-outgoing): Call
vc-setup-buffer.

7 years agoFix last change to textmodes/page-ext.el
Stefan Monnier [Sun, 17 Sep 2017 00:10:31 +0000 (20:10 -0400)]
Fix last change to textmodes/page-ext.el

* lisp/textmodes/page-ext.el (pages-directory): Make buffer writable
while we build it (bug#28431).

7 years ago* test/src/lcms-tests.el (lcms-cri-cam02-ucs): Skip if lcms2 not present.
Glenn Morris [Sat, 16 Sep 2017 20:56:44 +0000 (13:56 -0700)]
* test/src/lcms-tests.el (lcms-cri-cam02-ucs): Skip if lcms2 not present.

7 years ago* test/src/lcms-tests.el (lcms-whitepoint): Skip if lcms2 not present.
Glenn Morris [Sat, 16 Sep 2017 20:27:25 +0000 (13:27 -0700)]
* test/src/lcms-tests.el (lcms-whitepoint): Skip if lcms2 not present.

(cherry picked from commit 8081df26911c63aadfce4ee8f6a7223d814baeaf)

7 years ago; * src/lcms.c: Minor stylistic changes in comments.
Eli Zaretskii [Sat, 16 Sep 2017 19:25:13 +0000 (22:25 +0300)]
; * src/lcms.c: Minor stylistic changes in comments.

7 years agoFix compilation warning in etags.c
Eli Zaretskii [Sat, 16 Sep 2017 19:17:55 +0000 (22:17 +0300)]
Fix compilation warning in etags.c

* lib-src/etags.c (etags_mktmp) [DOS_NT]: Don't dereference a NULL
pointer.  Reported by Richard Copley <rcopley@gmail.com>.

7 years agoAdd lisp variable lcms-d65-xyz
Mark Oteiza [Sat, 16 Sep 2017 16:49:28 +0000 (12:49 -0400)]
Add lisp variable lcms-d65-xyz

This serves as the default optional argument for functions in this
library.
* src/lcms.c (lcms-d65-xyz): New variable.
(lcms-cam02-ucs): Use it.  Use better word in docstring.  Fix bug
color1 -> color2.
* test/src/lcms-tests.el: Add some tests for lcms-cri-cam02-ucs.
(lcms-colorspacious-d65): New variable.

7 years ago* lisp/emacs-lisp/cl-macs.el (cl-letf): Fix Edebug spec (bug#24765)
Gemini Lasswell [Tue, 25 Apr 2017 14:42:01 +0000 (07:42 -0700)]
* lisp/emacs-lisp/cl-macs.el (cl-letf): Fix Edebug spec (bug#24765)

7 years agoAvoid MinGW64 compiler warnings in unexw32.c
Andy Moreton [Sat, 16 Sep 2017 13:44:39 +0000 (16:44 +0300)]
Avoid MinGW64 compiler warnings in unexw32.c

* src/unexw32.c (pDWP) [MINGW_W64]: Define to "16llx" only for the
64-bit build.

7 years agoStart emacs-26 release branch
Eli Zaretskii [Sat, 16 Sep 2017 12:34:15 +0000 (15:34 +0300)]
Start emacs-26 release branch

* configure.ac:
* nt/README.W32:
* README:
* msdos/sed2v2.inp: Increment Emacs version to 26.0.60.

* lisp/cus-edit.el (customize-changed-options-previous-release):
Update value to "25.3".

7 years agoCope better with C++ and Objective-C protection keywords in class declarations
Alan Mackenzie [Sat, 16 Sep 2017 11:31:38 +0000 (11:31 +0000)]
Cope better with C++ and Objective-C protection keywords in class declarations

This fix fixes the fontification of a method inside a class at the time it is
typed, when there is a protection keyword clause preceding it.

* lisp/progmodes/cc-engine.el (c-forward-keyword-clause): Handle protection
keywords.
(c-looking-at-decl-block): Avoid scanning forward over protection keyword
clauses too eagerly.

* lisp/progmodes/cc-langs.el (c-protection-key c-post-protection-token): New
lang defconsts and defvars.

* lisp/progmodes/cc-mode.el (c-fl-decl-start): When we encounter a protection
keyword following a semicolon or brace, move forward over it before attempting
to parse a type.

7 years agoFix order of sorted overlays returned by 'overlays-at'
Eli Zaretskii [Sat, 16 Sep 2017 10:02:31 +0000 (13:02 +0300)]
Fix order of sorted overlays returned by 'overlays-at'

* src/buffer.c (Foverlays_at): If SORTED is non-nil, reverse the
list of results, to have their order as per the documentation.
(Bug#28390)

* etc/NEWS: Mention the change in the behavior of overlays-at.

7 years agoDisable execution of unsafe Lisp by Enriched Text mode
Eli Zaretskii [Sat, 16 Sep 2017 09:45:24 +0000 (12:45 +0300)]
Disable execution of unsafe Lisp by Enriched Text mode

* src/xdisp.c (handle_display_spec): If the display property is
wrapped in 'disable-eval' form, disable Lisp evaluation while
processing this property.
(handle_single_display_spec): Accept new argument ENABLE_EVAL_P.
If that argument is false, don't evaluate Lisp while processing
display properties.

* lisp/textmodes/enriched.el
(enriched-allow-eval-in-display-props): New defcustom.
(enriched-decode-display-prop): If
enriched-allow-eval-in-display-props is nil, wrap the display
property with 'disable-eval' to disable Lisp evaluation when the
display property is processed for display.  (Bug#28350)
* lisp/gnus/mm-view.el (mm-inline-text): Re-enable processing of
enriched text.

* doc/lispref/display.texi (Display Property): Document the
'disable-eval' wrapping of 'display' properties.
* doc/emacs/text.texi (Enriched Properties): Document
'enriched-allow-eval-in-display-props'.

* etc/NEWS: Describe the security issues with Enriched Text mode
and their solution.

7 years agoAvoid MinGW64 compilation warning in w32.c
Eli Zaretskii [Sat, 16 Sep 2017 08:51:24 +0000 (11:51 +0300)]
Avoid MinGW64 compilation warning in w32.c

* src/w32.c (sys_strerror): Provide a prototype for MinGW64.

7 years ago; * src/data.c (minmax_driver): Fix last change.
Eli Zaretskii [Sat, 16 Sep 2017 08:01:19 +0000 (11:01 +0300)]
; * src/data.c (minmax_driver): Fix last change.

7 years agoFix MS-Windows build broken by recent changes in lcms.c
Eli Zaretskii [Sat, 16 Sep 2017 07:41:52 +0000 (10:41 +0300)]
Fix MS-Windows build broken by recent changes in lcms.c

* src/lcms.c [WINDOWSNT]: Define types for cmsWhitePointFromTemp
and cmsxyY2XYZ function pointers.
(init_lcms_functions) [WINDOWSNT]: Load cmsWhitePointFromTemp and
cmsxyY2XYZ from liblcms2.
(cmsWhitePointFromTemp, cmsxyY2XYZ) [WINDOWSNT]: Redirect to the
corresponding function pointers.
(Flcms_temp_to_white_point): Minor stylistic changes.  Doc fix.
(syms_of_lcms2): Defsubr Slcms_temp_to_white_point.

7 years agoAvoid GCC 7 compilation warning in data.c
Eli Zaretskii [Sat, 16 Sep 2017 07:31:32 +0000 (10:31 +0300)]
Avoid GCC 7 compilation warning in data.c

* src/data.c (minmax_driver): Use UNINIT to avoid compilation
warnings.  Reported by Fabrice Popineau
<fabrice.popineau@centralesupelec.fr>.

7 years agoAdd lcms-temp->white-point and initial tests
Mark Oteiza [Sat, 16 Sep 2017 03:49:42 +0000 (23:49 -0400)]
Add lcms-temp->white-point and initial tests

* src/lcms.c (lcms-temp->white-point): New function.
* test/src/lcms-tests.el: New file.

7 years agoUse cl-print in timer list
Mark Oteiza [Sat, 16 Sep 2017 02:59:57 +0000 (22:59 -0400)]
Use cl-print in timer list

* lisp/emacs-lisp/timer-list.el (timer-list): Use cl-print
for handling functions.
(timer-list-mode): Capitalize major mode name.  Set bidi direction
as in tabulated-list-mode.

7 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Vincent Belaïche [Fri, 15 Sep 2017 21:52:24 +0000 (23:52 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

7 years agoMake landscape layout with geometry package rather than a PostScript special.
Vincent Belaïche [Fri, 15 Sep 2017 21:51:05 +0000 (23:51 +0200)]
Make landscape layout with geometry package rather than a PostScript special.

* lisp/calendar/cal-tex.el (cal-tex-preamble): Make 12pt the
default class option.
(cal-tex-year, cal-tex-cursor-month-landscape): Pass landscape
request to `cal-tex-insert-preamble' function call within the
class option string.
(cal-tex-cursor-month): Don't pass any longer "12pt" argument
to `cal-tex-insert-preamble' function, as it is default.
(cal-tex-insert-preamble): Suppress landscape and size
argument, and replace them by a class-options string
argument. Do not insert any longer "\special{landscape}" in
case of landscape layout, as the job is made by the geometry
package.

7 years ago* lisp/json.el (json-read-keyword): Revert previous change to catch EOL.
Mark Oteiza [Fri, 15 Sep 2017 19:37:25 +0000 (15:37 -0400)]
* lisp/json.el (json-read-keyword): Revert previous change to catch EOL.

7 years agoOne more attempt to avoid GCC 7 warnings in dispnew.c
Eli Zaretskii [Fri, 15 Sep 2017 18:59:08 +0000 (21:59 +0300)]
One more attempt to avoid GCC 7 warnings in dispnew.c

* src/dispnew.c (adjust_glyph_matrix): Use eassume instead of
eassert, to avoid compilation warnings about NULL pointer
dereferences.

7 years agoFix color-distance docstring
Mark Oteiza [Fri, 15 Sep 2017 17:27:39 +0000 (13:27 -0400)]
Fix color-distance docstring

Also feed the translated color to the metric argument.
* src/xfaces.c (color-distance): Reword docstring to be more helpful.
Avoid duplicating effort in lcms2 by passing the translated 16 bit RGB
instead of the function's color arguments.

7 years agoImprove Tramp behaviour according to bug#27986
Michael Albinus [Fri, 15 Sep 2017 16:29:00 +0000 (18:29 +0200)]
Improve Tramp behaviour according to bug#27986

* lisp/net/tramp-adb.el (tramp-adb-handle-copy-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file): Check, that NEWNAME is a
directory name when existing.  Use `file-name-as-directory'
where appropriate.

7 years ago; Partially revert previous commit
Mark Oteiza [Fri, 15 Sep 2017 14:06:56 +0000 (10:06 -0400)]
; Partially revert previous commit

The reduction in was because I broke it.
* lisp/json.el (json-pop): Do not bind at compile time something needed
at run time.

7 years agoMore JSON optimization
Mark Oteiza [Fri, 15 Sep 2017 13:49:27 +0000 (09:49 -0400)]
More JSON optimization

Last I checked, inlining json-skip-whitespace didn't make much
difference.  However, changing defsubsts to define-inline results
in roughly 15% reduction in read time on a 200K file.
* lisp/json.el (json-advance, json-peek, json-pop):
(json-skip-whitespace): Inline with define-inline.
(json-read-keyword): Don't use whitespace syntax.
(json-add-to-object): Simpler condition.

7 years agoAvoid crashes due to invalid error forms from sentinels/filters
Eli Zaretskii [Fri, 15 Sep 2017 13:15:05 +0000 (16:15 +0300)]
Avoid crashes due to invalid error forms from sentinels/filters

* src/process.c (exec_sentinel_error_handler): Make sure the error
form passed to cmd_error_internal is a cons cell.  (Bug#28430)

7 years agoAvoid compilation warnings with GCC 7 on MS-Windows
Eli Zaretskii [Fri, 15 Sep 2017 08:46:37 +0000 (11:46 +0300)]
Avoid compilation warnings with GCC 7 on MS-Windows

* src/w32term.c (w32_setup_relief_color, construct_mouse_click)
(w32_read_socket): Initialize variables to shut up bogus
compilation warnings from GCC 7.
* src/unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Cast to DWORD_PTR
to avoid compiler warnings about printing signed values using %x
format spec.
* src/dispnew.c (adjust_glyph_matrix): Add eassert to avoid
compiler warning about possible NULL pointer dereference.
* src/lisp.h (pI): Tweak the definition some more for MinGW64.

7 years agoDefine gnutls_rnd for WINDOWSNT and HAVE_GNUTLS3 case only
Martin Rudalics [Fri, 15 Sep 2017 07:48:54 +0000 (09:48 +0200)]
Define gnutls_rnd for WINDOWSNT and HAVE_GNUTLS3 case only

* src/fns.c (gnutls_rnd): Define for WINDOWSNT and HAVE_GNUTLS3
case only to avoid unused macros warning otherwise.

7 years agoIn w32heap.c bump up DUMPED_HEAP_SIZE
Martin Rudalics [Fri, 15 Sep 2017 07:39:17 +0000 (09:39 +0200)]
In w32heap.c bump up DUMPED_HEAP_SIZE

* src/w32heap.c (DUMPED_HEAP_SIZE): Bump up DUMPED_HEAP_SIZE
to 13*1024*1024 for 32-bit non-wide-integer builds.

7 years agoBind n,p in timer-list
Mark Oteiza [Thu, 14 Sep 2017 23:52:09 +0000 (19:52 -0400)]
Bind n,p in timer-list

* lisp/emacs-lisp/timer-list.el (timer-list-mode-map): Bind n and p
to next- and previous-line, respectively.

7 years ago* lisp/net/tls.el (tls-program): Fix :version.
Glenn Morris [Thu, 14 Sep 2017 20:35:43 +0000 (16:35 -0400)]
* lisp/net/tls.el (tls-program): Fix :version.

; Ref: http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00401.html

7 years ago* configure.ac (--with-lcms2, --without-lcms2): New options.
Eli Zaretskii [Thu, 14 Sep 2017 19:22:29 +0000 (22:22 +0300)]
* configure.ac (--with-lcms2, --without-lcms2): New options.

7 years ago; * etc/NEWS: Reword the lcms2 entry.
Eli Zaretskii [Thu, 14 Sep 2017 18:35:31 +0000 (21:35 +0300)]
; * etc/NEWS: Reword the lcms2 entry.

7 years agoAvoid 64-bit compilation warnings in unexw32.c
Eli Zaretskii [Thu, 14 Sep 2017 17:46:59 +0000 (20:46 +0300)]
Avoid 64-bit compilation warnings in unexw32.c

* src/unexw32.c (pDWP): New macro.
(COPY_CHUNK, COPY_PROC_CHUNK): Declare 'count' as DWORD_PTR.  Use
pDWP for printing values that can be either 32-bit or 64-bit wide.

7 years agoFix warnings about formats in printf-like functions on MS-Windows
Eli Zaretskii [Thu, 14 Sep 2017 17:38:42 +0000 (20:38 +0300)]
Fix warnings about formats in printf-like functions on MS-Windows

* src/lisp.h (pI) [__MINGW32__]: Provide definition that will
hopefully DTRT with both MinGW64 and mingw.org's MinGW.  See
http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00171.html
for the details.
* src/conf_post.h (PRINTF_ARCHETYPE) [MINGW_W64]: Separate
definition specific to MinGW64.
(PRINTF_ARCHETYPE) [__MINGW32__]: For mingw.org's MinGW, use
__mingw_printf__ in ANSI-compatible mode.

7 years agoSupport lcms2 in MS-Windows builds
Eli Zaretskii [Thu, 14 Sep 2017 16:37:35 +0000 (19:37 +0300)]
Support lcms2 in MS-Windows builds

* lisp/term/w32-win.el (dynamic-library-alist): Include
association for the lcms2 library.

* src/lcms.c [WINDOWSNT]: Include windows.h and w32.h.  Use
DEF_DLL_FN to define pointers to dynamically loaded lcms2
functions.
(cmsCIE2000DeltaE, cmsCIECAM02Init, cmsCIECAM02Forward)
(cmsCIECAM02Done): New macros.
(init_lcms_functions, Flcms2_available_p): New functions.
(Flcms_cie_de2000, Flcms_cam02_ucs) [WINDOWSNT]: Call
init_lcms_functions.
(syms_of_lcms2): Defsubr lcms2-available-p.
* src/w32fns.c (syms_of_w32fns): DEFSYM Qlcms2.

* configure.ac: Include lcms2 in the final report and in
emacs_config_features.

* nt/INSTALL:
* nt/INSTALL.W64: Update with the information about lcms2 library.

7 years agoPort renameat_noreplace to openSUSE 12.3
Paul Eggert [Thu, 14 Sep 2017 14:23:13 +0000 (07:23 -0700)]
Port renameat_noreplace to openSUSE 12.3

Problem reported by M. Nomiya in:
http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00363.html
* src/sysdep.c (renameat_noreplace):
Call renameat2 only if CYGWIN.

7 years agoPrefer HTTPS to FTP and HTTP in documentation
Paul Eggert [Wed, 13 Sep 2017 22:52:52 +0000 (15:52 -0700)]
Prefer HTTPS to FTP and HTTP in documentation

Most of this change is to boilerplate commentary such as license URLs.
This change was prompted by ftp://ftp.gnu.org's going-away party,
planned for November.  Change these FTP URLs to https://ftp.gnu.org
instead.  Make similar changes for URLs to other organizations moving
away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
fsf.org when this works, as this will further help defend against
man-in-the-middle attacks (for this part I omitted the MS-DOS and
MS-Windows sources and the test tarballs to keep the workload down).
HTTPS is not fully working to lists.gnu.org so I left those URLs alone
for now.

7 years agoPrefer HTTPS to HTTP for gnu.org
Paul Eggert [Wed, 13 Sep 2017 22:46:16 +0000 (15:46 -0700)]
Prefer HTTPS to HTTP for gnu.org

This patch just changes code files; a followup companion patch
(much larger) will affect the commentary.  This part is
separated out to make it easier to review.
* .dir-locals.el (change-log-mode):
* lisp/org/org-info.el (org-info-other-documents)
(org-info-map-html-url):
* lisp/org/ox-html.el (org-html-creator-string):
* lisp/startup.el (fancy-startup-text, fancy-about-text)
(fancy-splash-head):
* test/lisp/ffap-tests.el (ffap-other-window--bug-25352):
* test/lisp/thingatpt-tests.el (thing-at-point-test-data):
Use HTTPS instead of HTTP.

7 years agoAdd tests for color.el
Simen Heggestøyl [Thu, 7 Sep 2017 18:40:12 +0000 (20:40 +0200)]
Add tests for color.el

* lisp/color.el (color-name-to-rgb, color-complement): Clarify in
docstrings that RGB triplets should use four digits per component.
(color-rgb-to-hsl): Break line to avoid "Hidden behind deeper element"
warning.

* test/lisp/color-tests.el: New file.

7 years agoMake gnutls-verify-error work again with url-retrieve-synchronously
Lars Ingebrigtsen [Wed, 13 Sep 2017 18:10:51 +0000 (20:10 +0200)]
Make gnutls-verify-error work again with url-retrieve-synchronously

* lisp/url/url-gw.el (url-open-stream): Only use :nowait if
we're doing async connections (bug#26835).

* lisp/url/url-parse.el (url): Add an asynchronous slot.

* lisp/url/url.el (url-asynchronous): New variable.
(url-retrieve-internal): Store the value.
(url-retrieve-synchronously): Bind the variable.

7 years agoImprove backward compatibility of tramp-tests
Michael Albinus [Wed, 13 Sep 2017 18:10:40 +0000 (20:10 +0200)]
Improve backward compatibility of tramp-tests

* test/lisp/net/tramp-tests.el (seq): Don't require.
(tramp--test-emacs26-p): New defun.
(tramp-test10-write-region, tramp-test11-copy-file)
(tramp-test12-rename-file, tramp-test15-copy-directory)
(tramp-test21-file-links): Use it.
(tramp-test16-file-expand-wildcards): Use `copy-sequence'.

7 years ago* lisp/net/trampver.el (customize-package-emacs-version-alist):
Michael Albinus [Wed, 13 Sep 2017 18:10:10 +0000 (20:10 +0200)]
* lisp/net/trampver.el (customize-package-emacs-version-alist):

Add Tramp version integrated in Emacs 25.3.

7 years agoAdd clarification to if-let* docstring
Mark Oteiza [Wed, 13 Sep 2017 17:25:41 +0000 (13:25 -0400)]
Add clarification to if-let* docstring

Also make its behaviour consistent with and-let* in that empty bindings
results in success, not failure.
* lisp/emacs-lisp/subr-x.el: Edit docstring, change else to then.

7 years agoMake fully qualified domain names more fully qualified
Lars Ingebrigtsen [Wed, 13 Sep 2017 16:08:34 +0000 (18:08 +0200)]
Make fully qualified domain names more fully qualified

* lisp/gnus/message.el (message-make-fqdn): Don't try to use a
system-name without any periods as a fully qualified domain name.

7 years agoRemove unused file lib/getopt_.h
Paul Eggert [Wed, 13 Sep 2017 15:47:33 +0000 (08:47 -0700)]
Remove unused file lib/getopt_.h

* lib/getopt_.h: Remove.  It was renamed to lib/getopt.in.h etc.
on 2011-01-08, but I forgot to remove the old file.

7 years agoRemove "baroque" use of prefix argument from gensym
Mark Oteiza [Wed, 13 Sep 2017 14:38:05 +0000 (10:38 -0400)]
Remove "baroque" use of prefix argument from gensym

'cl-gensym' was simply moved here, but let us take an opportunity to
shed some historical baggage.
* lisp/subr.el (gensym): Remove special treatment of PREFIX as a
number.  Use "g" as prefix to differentiate from cl-gensym defaults.
* doc/lispref/symbols.texi (Creating Symbols): Update accordingly.
* lisp/emacs-lisp/cl-macs.el (cl--gensym-counter, cl-gensym): Restore.

7 years agoProvide an lcms2 feature
Mark Oteiza [Wed, 13 Sep 2017 14:36:05 +0000 (10:36 -0400)]
Provide an lcms2 feature

* src/lcms.c (syms_of_lcms2): Provide "lcms2".

7 years agoAdd lcms2 interface
Mark Oteiza [Wed, 13 Sep 2017 14:27:37 +0000 (10:27 -0400)]
Add lcms2 interface

configure.ac: Add boilerplate for configuring and detecting liblcms2.
etc/NEWS: Mention new configure option and color-distance change.
src/Makefile.in: Add references to lcms.c and liblcms.
src/emacs.c: Define lcms2 symbols.
src/lcms.c: New file.
src/lisp.h: Add declaration for lcms2.
src/xfaces.c: Add optional METRIC argument.

7 years ago; Fix previous commit
Mark Oteiza [Wed, 13 Sep 2017 14:19:59 +0000 (10:19 -0400)]
; Fix previous commit

Removing extraneous code, thanks to Michael Heerdegen.
* lisp/emacs-lisp/subr-x.el (internal--listify): Remove latter
condition which always evaluates to t.
(internal--build-binding-value-form): Remove dead code.

7 years agoAdd other D series white points and some simple conversions
Mark Oteiza [Wed, 13 Sep 2017 14:00:39 +0000 (10:00 -0400)]
Add other D series white points and some simple conversions

* lisp/color.el (color-d75-xyz, color-d55-xyz, color-d50-xyz): New
constants.
(color-xyz-to-xyy, color-xyy-to-xyz, color-lab-to-lch):
(color-lch-to-lab): New functions.

7 years agoPermit non-integral color gradients
Mark Oteiza [Wed, 13 Sep 2017 13:59:37 +0000 (09:59 -0400)]
Permit non-integral color gradients

* lisp/color.el (color-gradient): Float the step-number.

7 years agoProtect against malformed MIME messages that cause inf-loop (bugfix)
Katsumi Yamaoka [Wed, 13 Sep 2017 10:04:14 +0000 (10:04 +0000)]
Protect against malformed MIME messages that cause inf-loop (bugfix)

* lisp/gnus/gnus-art.el (gnus-article-mime-handles):
Protect against malformed MIME messages that cause inf-loop.

7 years agoMerge from Gnulib
Paul Eggert [Wed, 13 Sep 2017 09:07:03 +0000 (02:07 -0700)]
Merge from Gnulib

This incorporates:
2017-09-13 all: prefer https: URLs
This just changes http: to https: in comments,
in files copied from Gnulib.

7 years agoCall vc-resynch-buffer in vc-git-resolve-when-done
Dmitry Gutov [Tue, 12 Sep 2017 23:30:45 +0000 (02:30 +0300)]
Call vc-resynch-buffer in vc-git-resolve-when-done

* lisp/vc/vc-git.el (vc-git-resolve-when-done):
Call vc-resynch-buffer on the current file (bug#28121).
Move its autoload to before this function.

7 years agoAllow write-contents-functions to short-circuit buffer save
Eric Abrahamsen [Tue, 12 Sep 2017 23:06:12 +0000 (16:06 -0700)]
Allow write-contents-functions to short-circuit buffer save

Bug#28412

* lisp/files.el (basic-save-buffer): Re-arrange function so that
  write-contents-functions are run earlier. If they return non-nil,
  consider the buffer saved without requiring the buffer to be
  visiting a file.
  (save-some-buffers): This function should consider any buffer with a
  buffer-local value for write-contents-functions eligible for
  saving.
* test/lisp/files-tests.el (files-test-no-file-write-contents): New
  test.
* doc/lispref/files.texi (Saving Buffers): Mention in docs.
* etc/NEWS: And in NEWS.

7 years ago* etc/NEWS.25: Copy from emacs-25 etc/NEWS.
Paul Eggert [Tue, 12 Sep 2017 19:55:29 +0000 (12:55 -0700)]
* etc/NEWS.25: Copy from emacs-25 etc/NEWS.

7 years agoLess chatter for ’make info/dir’
Paul Eggert [Tue, 12 Sep 2017 19:17:41 +0000 (12:17 -0700)]
Less chatter for ’make info/dir’

* Makefile.in (${srcdir}/info/dir): Tweak shell command so
that an ordinary make says just "GEN info/dir" rather than
also having a seemingly-unrelated mv line.

7 years agoTweak Gnus doc re gnus-copy-file
Paul Eggert [Tue, 12 Sep 2017 19:15:22 +0000 (12:15 -0700)]
Tweak Gnus doc re gnus-copy-file

* doc/misc/gnus.texi (Saving Articles):
Document behavior with directory name targets (Bug#27986).
Problem reported by Katsumi Yamaoka in:
http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00216.html