]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years agobug#28609: simple.el
Devon Sean McCullough [Tue, 26 Sep 2017 14:51:04 +0000 (10:51 -0400)]
bug#28609: simple.el

Correct grammar; also, call a pair a pair.

6 years ago* etc/NEWS.26: Copy from emacs-26/etc/NEWS.
Paul Eggert [Mon, 25 Sep 2017 18:21:50 +0000 (11:21 -0700)]
* etc/NEWS.26: Copy from emacs-26/etc/NEWS.

6 years agoMerge from origin/emacs-26
Paul Eggert [Mon, 25 Sep 2017 18:19:07 +0000 (11:19 -0700)]
Merge from origin/emacs-26

49cd561dc6 * test/lisp/tramp-tests.el (tramp-test21-file-links): Spec...
b719f6b20b Loosen strict parsing requirement for desktop files
c7a0c13777 * lisp/xdg.el (xdg-thumb-uri): Fix doc string.
dc6b3560e5 Fix documentation of `make-frame' and related variables an...
3d3778d82a Accept new `always' value for option `buffer-offer-save'
638f64c40a Improve new NS scrolling variable names
d93301242f Document 'replace-buffer-contents' in the manual.
00e4e3e9d2 Fix undecorated frame resizing issues on NS (bug#28512)
820739bbb5 ; * doc/emacs/display.texi (Display Custom): Fix wording.
f2b2201594 ; Spelling and URL fixes
0e143b1fc5 Documentation improvements for 'display-line-numbers'
f656ccdb43 ; Fix typo
d64da52d57 Fix last change in bat-mode.el
908af46abd Fix restoring in GUI sessions desktop saved in TTY sessions
51cbd85454 Improve syntax highlighting in bat-mode
0273916618 Document the 'list-FOO' convention
d24ec58540 Expose viewing conditions in CAM02-UCS metric
a81d5a3d3f Revert "Set frame size to actual requested size (bug#18215)"
0bf066d4b2 Add tests for Edebug
68baca3ee1 Catch more messages in ert-with-message-capture
28e0c410c9 ; * lisp/mouse.el (secondary-selection-exist-p): Doc fix.
31e1d9ef2f Support setting region from secondary selection and vice v...
047f02f00f Fix new copy-directory bug with empty dirs
fbd15836af * doc/lispref/strings.texi (Formatting Strings): Improve i...
f16a8d5dbd Fix 2 testsuite tests for MS-Windows
965cffd89c Rename timer-list to list-timers
a5fec62b51 Provide native touchpad scrolling on macOS
7b3d1c6beb Fix MinGW64 build broken by recent MinGW64 import libraries
c83d0c5fdf Fix crashes in 'move-point-visually' in minibuffer windows
7f3d5f929d * src/emacs.c (usage_message): Don't mention 'find-file'.
6845282200 Fix a minor inaccuracy in the Emacs manual
74d7bb9498 Fix errors in flyspell-post-command-hook
40fdbb01d0 Work on Tramp's file-truename
1a01423b3c Fix bug with make-directory on MS-Windows root
066efb8666 Fix log-view-diff-common when point is after last entry
3f006b56cd Adapt fileio-tests--symlink-failure to Cygwin
ee512e9a82 Ignore buffers whose name begins with a space in save-some...
9e1b5bd92c Improve tramp-interrupt-process robustness
8d4223e61b Minor Tramp doc update
331d0e520f Fix gensym
466df76f7d Cleanup in files-tests.el
6359fe630a Remove old cl-assert calls in 'newline'
059184e645 Avoid crash with C-g C-g in GC
541006c536 Fix format-time-string %Z bug with negative tz
679e05eeb9 message-citation-line-format %Z is now tz name
4e8888d438 Use doc-view or pdf-tools on any window-system
5f28f0db73 Fix bug with min and max and NaNs
37b5e661d2 Fix recently-introduced copy-directory bug
6bbbc38b34 Merge from Gnulib
57249fb297 Fix compatibility problem in Tramp
411bec82c4 Avoid GCC 7 compilation warning in eval.c
34a6774daa ; Partially revert c3445aed5194

6 years ago; Merge from origin/emacs-26
Paul Eggert [Mon, 25 Sep 2017 18:16:05 +0000 (11:16 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

3003ac0469 Adapt Tramp version.  Do not merge

6 years agoMerge from origin/emacs-26
Paul Eggert [Mon, 25 Sep 2017 18:16:05 +0000 (11:16 -0700)]
Merge from origin/emacs-26

48d39c39e8 Search for Syntax section when viewing MDN
9d101376b4 Allow smerge-keep-current to work for empty hunks
13aba24add Call vc-setup-buffer in vc-git-log-{in,out}going
1d599df5e0 Fix last change to textmodes/page-ext.el
a726e09a9a * test/src/lcms-tests.el (lcms-cri-cam02-ucs): Skip if lcm...

6 years ago; Merge from origin/emacs-26
Paul Eggert [Mon, 25 Sep 2017 18:16:05 +0000 (11:16 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

546413e1ac * test/src/lcms-tests.el (lcms-whitepoint): Skip if lcms2 ...

6 years agoMerge from origin/emacs-26
Paul Eggert [Mon, 25 Sep 2017 18:16:05 +0000 (11:16 -0700)]
Merge from origin/emacs-26

96aaeaaffa ; * src/lcms.c: Minor stylistic changes in comments.
c3df816585 Fix compilation warning in etags.c
5490ccc5eb Add lisp variable lcms-d65-xyz
dee96f4a17 * lisp/emacs-lisp/cl-macs.el (cl-letf): Fix Edebug spec (b...
12e864eb30 Avoid MinGW64 compiler warnings in unexw32.c
625cee5316 Start emacs-26 release branch

# Conflicts:
# README
# configure.ac
# msdos/sed2v2.inp
# nt/README.W32

6 years agoemacs-25 → emacs-26
Paul Eggert [Mon, 25 Sep 2017 15:56:07 +0000 (08:56 -0700)]
emacs-25 → emacs-26

* admin/gitmerge.el (gitmerge-default-branch): Now emacs-26.

6 years ago* test/lisp/tramp-tests.el (tramp-test21-file-links): Special code for smb.
Michael Albinus [Mon, 25 Sep 2017 15:52:24 +0000 (17:52 +0200)]
* test/lisp/tramp-tests.el (tramp-test21-file-links): Special code for smb.

6 years agoLoosen strict parsing requirement for desktop files
Mark Oteiza [Mon, 25 Sep 2017 12:45:08 +0000 (08:45 -0400)]
Loosen strict parsing requirement for desktop files

There are other desktop-looking files, for instance those having to do
with MIME typess, that would benefit from being able to be read by this
function.  It helps to have some flexibility.
* lisp/xdg.el (xdg-desktop-read-file): Remove an error condition.
* test/lisp/xdg-tests.el: Remove a test.

6 years ago* lisp/xdg.el (xdg-thumb-uri): Fix doc string.
Mark Oteiza [Mon, 25 Sep 2017 12:44:23 +0000 (08:44 -0400)]
* lisp/xdg.el (xdg-thumb-uri): Fix doc string.

6 years agoFix documentation of `make-frame' and related variables and hooks
Martin Rudalics [Mon, 25 Sep 2017 08:09:32 +0000 (10:09 +0200)]
Fix documentation of `make-frame' and related variables and hooks

* lisp/frame.el (before-make-frame-hook)
(after-make-frame-functions, frame-inherited-parameters)
(make-frame): Fix doc-strings.
* doc/lispref/frames.texi (Creating Frames): Fix description
of `make-frame' and related variables and hooks.

6 years agoAccept new `always' value for option `buffer-offer-save'
Eric Abrahamsen [Sun, 24 Sep 2017 21:01:21 +0000 (14:01 -0700)]
Accept new `always' value for option `buffer-offer-save'

Also revert ee512e9a82

* lisp/files.el (buffer-offer-save): In addition to nil and t, now
  allows a third symbol value, `always'. A buffer where this option is
  set to `always' will always be offered for save by
  `save-some-buffers'.
  (save-some-buffers): Check the exact value of this buffer-local
  variable. No longer check the buffer name, or the value of
  `write-contents-functions'.
* doc/lispref/buffers.texi (Killing Buffers): Note change in manual.
* doc/lispref/files.texi (Saving Buffers): Remove note about buffer
  names.
* etc/NEWS: Mention in NEWS.

6 years agoImprove new NS scrolling variable names
Alan Third [Sun, 24 Sep 2017 21:35:21 +0000 (22:35 +0100)]
Improve new NS scrolling variable names

* src/nsterm.m (ns-use-system-mwheel-acceleration): Replace with
'ns-use-mwheel-acceleration'.
(ns-touchpad-scroll-line-height): Replace with
'ns-mwheel-line-height'.
(ns-touchpad-use-momentum): Replace with 'ns-use-mwheel-momentum'.
* etc/NEWS: Change variable names.

6 years agoDocument 'replace-buffer-contents' in the manual.
Philipp Stephani [Sun, 24 Sep 2017 17:32:16 +0000 (19:32 +0200)]
Document 'replace-buffer-contents' in the manual.

* doc/lispref/text.texi (Replacing): New node.

6 years agoExpand recognized time intervals for MPC seeking
Mark Oteiza [Sun, 24 Sep 2017 12:17:34 +0000 (08:17 -0400)]
Expand recognized time intervals for MPC seeking

Now accepts [+-]H:M:S and subsets.  Also accepts some odd variations of
it since the regexp is not strict.  One unpleasant caveat is that
string-to-number simply returns zero on failure instead of signaling an
error.  At the moment, there are cases where instead of getting
a user-error, the seek may simply not go where one expects it.
* lisp/mpc.el (mpc-read-seek): New function.
(mpc-seek-current): Use it.

6 years agoAdd configuration for clang-format.
Philipp Stephani [Tue, 19 Sep 2017 08:48:02 +0000 (10:48 +0200)]
Add configuration for clang-format.

This allows developers to auto-format the C code with clang-format.
It’s not 100% accurate, but works pretty well for most of the C code.

6 years agoMake FILENAME argument of 'file-name-base' mandatory
Philipp Stephani [Tue, 19 Sep 2017 08:29:42 +0000 (10:29 +0200)]
Make FILENAME argument of 'file-name-base' mandatory

* lisp/files.el (file-name-base): Make FILENAME argument mandatory.

* lisp/autoinsert.el (auto-insert-alist):
* lisp/progmodes/cperl-mode.el (cperl-electric-pod):
* lisp/progmodes/idlwave.el (idlwave-parse-definition):
* lisp/textmodes/reftex-ref.el (reftex-replace-prefix-escapes): Fix
all callers.

6 years ago* lisp/newcomment.el (comment-search-backward): Obey the docstring (bug#28428)
Stefan Monnier [Sat, 23 Sep 2017 21:06:23 +0000 (17:06 -0400)]
* lisp/newcomment.el (comment-search-backward): Obey the docstring (bug#28428)

6 years agoFix undecorated frame resizing issues on NS (bug#28512)
Alan Third [Sat, 23 Sep 2017 18:43:58 +0000 (19:43 +0100)]
Fix undecorated frame resizing issues on NS (bug#28512)

* src/nsterm.m (EmacsView::updateFrameSize): Don't wait for the
toolbar on undecorated frames.
(EmacsView::initFrameFromEmacs): Group window flags correctly.

6 years agoDon't attempt to disable double buffering in newer GTK+ versions
Philipp Stephani [Sun, 27 Aug 2017 10:45:52 +0000 (12:45 +0200)]
Don't attempt to disable double buffering in newer GTK+ versions

* src/gtkutil.c (xg_create_frame_widgets): Stop calling deprecated
function gtk_widget_set_double_buffered.

6 years agoGTK+: Stop querying for background colors.
Philipp Stephani [Sun, 27 Aug 2017 10:31:37 +0000 (12:31 +0200)]
GTK+: Stop querying for background colors.

* src/gtkutil.c (xg_check_special_colors): Don't call deprecated
function gtk_style_context_get_background_color in newer versions of
GTK+.

6 years agoGTK+: stop calling 'gtk_window_set_wmclass' in new versions
Philipp Stephani [Sun, 27 Aug 2017 11:08:37 +0000 (13:08 +0200)]
GTK+: stop calling 'gtk_window_set_wmclass' in new versions

* src/gtkutil.c (xg_create_frame_widgets): Stop calling deprecated
function 'gtk_window_set_wmclass' in GTK+ 3.22.

6 years agoGTK+: Use a style provider instead of deprecated function
Philipp Stephani [Sun, 27 Aug 2017 10:42:56 +0000 (12:42 +0200)]
GTK+: Use a style provider instead of deprecated function

* src/gtkutil.c (xg_set_widget_bg): Use a CSS style provider instead
of the deprecated gtk_widget_override_background_color.

6 years ago; * doc/emacs/display.texi (Display Custom): Fix wording.
Eli Zaretskii [Sat, 23 Sep 2017 07:45:46 +0000 (10:45 +0300)]
; * doc/emacs/display.texi (Display Custom): Fix wording.

6 years ago; Spelling and URL fixes
Paul Eggert [Sat, 23 Sep 2017 07:34:01 +0000 (00:34 -0700)]
; Spelling and URL fixes

6 years agoDocumentation improvements for 'display-line-numbers'
Eli Zaretskii [Sat, 23 Sep 2017 07:07:11 +0000 (10:07 +0300)]
Documentation improvements for 'display-line-numbers'

* doc/emacs/display.texi (Display Custom): Document a few more
options for display-line-numbers.  (Bug#28533)  Fix a typo.

6 years ago; Fix typo
Mark Oteiza [Fri, 22 Sep 2017 20:34:31 +0000 (16:34 -0400)]
; Fix typo

* lisp/emacs-lisp/subr-x.el: Nix extra parenthesis.

6 years agoFix last change in bat-mode.el
Eli Zaretskii [Fri, 22 Sep 2017 17:41:10 +0000 (20:41 +0300)]
Fix last change in bat-mode.el

* lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Fix last
change.  (Bug#28311)

6 years agoFix restoring in GUI sessions desktop saved in TTY sessions
Eli Zaretskii [Fri, 22 Sep 2017 14:52:47 +0000 (17:52 +0300)]
Fix restoring in GUI sessions desktop saved in TTY sessions

* lisp/frameset.el (frameset-filter-font-param): New function.
(frameset-persistent-filter-alist): Use it for processing the
'font' frame parameter.  (Bug#17352)

6 years agoImprove syntax highlighting in bat-mode
Eli Zaretskii [Fri, 22 Sep 2017 13:40:59 +0000 (16:40 +0300)]
Improve syntax highlighting in bat-mode

* lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Improve
font-locking of environment variables.  Suggested by Achim Gratz
<Stromeko@nexgo.de>.  (Bug#28311)  (Bug#18405)

6 years agoDocument the 'list-FOO' convention
Eli Zaretskii [Fri, 22 Sep 2017 09:41:00 +0000 (12:41 +0300)]
Document the 'list-FOO' convention

* doc/lispref/tips.texi (Coding Conventions): Document the
list-FOO convention.

7 years agoExpose viewing conditions in CAM02-UCS metric
Mark Oteiza [Fri, 22 Sep 2017 02:47:24 +0000 (22:47 -0400)]
Expose viewing conditions in CAM02-UCS metric

Also add tests from the colorspacious library.  Finally, catch an
errant calculation, where degrees were not being converted to radians.
* src/lcms.c (deg2rad, default_viewing_conditions):
(parse_viewing_conditions): New functions.
(lcms-cam02-ucs): Add comments pointing to references used.  Expand
the docstring and explain viewing conditions.  JCh hue is given in
degrees and needs to be converted to radians.
(lcms-d65-xyz): Remove.  No need to duplicate this in Lisp or make the
API needlessly impure.
* test/src/lcms-tests.el: Reword commentary.
(lcms-rgb255->xyz): New function.
(lcms-cri-cam02-ucs): Fix let-binding.
(lcms-dE-cam02-ucs-silver): New test, assimilated from colorspacious.

7 years agoRevert "Set frame size to actual requested size (bug#18215)"
Alan Third [Thu, 21 Sep 2017 20:53:30 +0000 (21:53 +0100)]
Revert "Set frame size to actual requested size (bug#18215)"

This reverts commit d31cd79b40dbd5459b16505a4ee4340210499277.

See bug#28536. I misunderstood bug#18215. It wasn't a bug.

7 years agoAdd tests for Edebug
Gemini Lasswell [Thu, 21 Sep 2017 20:36:08 +0000 (13:36 -0700)]
Add tests for Edebug

* tests/lisp/emacs-lisp/edeug-tests.el: New file.
* tests/lisp/emacs-lisp/edebug-resources/edebug-test-code.el: New file.

7 years agoCatch more messages in ert-with-message-capture
Gemini Lasswell [Thu, 21 Sep 2017 20:35:45 +0000 (13:35 -0700)]
Catch more messages in ert-with-message-capture

* lisp/emacs-lisp/ert-x.el (ert-with-message-capture): Capture
messages from prin1, princ and print.
(ert--make-message-advice): New function.
(ert--make-print-advice): New function.

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 agoTeach Emacs to set XTerm window titles
Mark Oteiza [Wed, 20 Sep 2017 15:39:37 +0000 (11:39 -0400)]
Teach Emacs to set XTerm window titles

* lisp/term/xterm.el (terminal-init-xterm): Add initialization.
(xterm--init-frame-title, xterm-set-window-title-flag):
(xterm-unset-window-title-flag, xterm-set-window-title): New functions.
(xterm-window-title-flag): New variable.
(xterm-set-window-title): New custom variable.
* etc/NEWS: Mention it.

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 agoDon't call deprecated GTK function gtk_adjustment_changed
Philipp Stephani [Sun, 27 Aug 2017 10:41:06 +0000 (12:41 +0200)]
Don't call deprecated GTK function gtk_adjustment_changed

* src/gtkutil.c (xg_set_toolkit_scroll_bar_thumb)
(xg_set_toolkit_horizontal_scroll_bar_thumb): Remove calls to
deprecated function gtk_adjustment_changed.  This function has been
deprecated since GTK+ 3.18.

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 agoFix bug#28435: "all" score file is ignored
Sam Steingold [Mon, 18 Sep 2017 20:33:37 +0000 (16:33 -0400)]
Fix bug#28435: "all" score file is ignored

(gnus-score-find-bnews): Fix removing the empty suffix.

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 agoAdd define-thing-chars and use it for filename.
Sam Steingold [Mon, 18 Sep 2017 16:54:29 +0000 (12:54 -0400)]
Add define-thing-chars and use it for filename.

(define-thing-chars): New defmacro.
(filename): Define this thing using `define-thing-chars'.

7 years agoRevert "Implement native JSON support using Jansson"
Philipp Stephani [Mon, 18 Sep 2017 16:00:45 +0000 (18:00 +0200)]
Revert "Implement native JSON support using Jansson"

This reverts commit cb99cf5a99680af7dc2c49fdf5b840d1ff4dd928.

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 agoImplement native JSON support using Jansson
Philipp Stephani [Mon, 18 Sep 2017 08:51:39 +0000 (10:51 +0200)]
Implement native JSON support using Jansson

* configure.ac: New option --with-json.

* src/json.c (Fjson_serialize, Fjson_insert, Fjson_parse_string)
(Fjson_parse_buffer): New defuns.
(json_out_of_memory, json_parse_error, json_release_object)
(check_string_without_embedded_nulls, json_check, lisp_to_json)
(json_insert, json_insert_callback, json_to_lisp)
(json_read_buffer_callback, Fjson_parse_buffer, define_error): New
helper function.
(syms_of_json): New file.

* src/lisp.h: Declaration for syms_of_json.

* src/emacs.c (main): Enable JSON functions.

* src/Makefile.in (JSON_LIBS, JSON_CFLAGS, JSON_OBJ, EMACS_CFLAGS)
(base_obj, LIBES): Compile json.c if --with-json is enabled.

* test/src/json-tests.el (json-serialize/roundtrip)
(json-serialize/object, json-parse-string/object): New unit tests.

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 agoFix irregularities with CC Mode fontification, particularly with "known types"
Alan Mackenzie [Mon, 18 Sep 2017 08:52:24 +0000 (08:52 +0000)]
Fix irregularities with CC Mode fontification, particularly with "known types"

* lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Introduce a new
optional parameter, template-class.  In "class <X = Y>", fontify "Y" as a
type.
(c-font-lock-single-decl): New variable template-class, set to non-nil when we
have a construct like the above.  Pass this as argument to
c-font-lock-declarators.
(c-font-lock-cut-off-declarators): Check more rigorously that a declaration
being processed starts before the function's starting position.
(c-complex-decl-matchers): Remove the redundant clause which fontified "types
preceded by, e.g., "struct"".

* lisp/progmodes/cc-langs.el (c-template-typename-kwds)
(c-template-typename-key): New lang defconsts and defvar.

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 ago* lisp/net/trampver.el (customize-package-emacs-version-alist):
Michael Albinus [Sun, 17 Sep 2017 08:08:54 +0000 (10:08 +0200)]
* lisp/net/trampver.el (customize-package-emacs-version-alist):

Add Tramp version integrated in Emacs 26.1.

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

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 agoIncrement Emacs version to 27.0.50
Eli Zaretskii [Sat, 16 Sep 2017 12:53:03 +0000 (15:53 +0300)]
Increment Emacs version to 27.0.50

* README:
* configure.ac:
* nt/README.W32:
* src/msdos.c (internal_terminal_init):
* msdos/sed2v2.inp:
* etc/refcards/ru-refcard.tex: Increment Emacs version to 27.0.50.
* etc/NEWS: New file with sections for Emacs 27.1.
* etc/NEWS.26: Renamed from etc/NEWS.

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.