]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years ago; Merge from origin/emacs-26
Glenn Morris [Thu, 29 Aug 2019 18:11:24 +0000 (11:11 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

4e59ad5 Bump Emacs version to 26.3

5 years agoMerge from origin/emacs-26
Glenn Morris [Thu, 29 Aug 2019 18:11:23 +0000 (11:11 -0700)]
Merge from origin/emacs-26

70829f8 ; ChangeLog.3 update

# Conflicts:
# ChangeLog.3

5 years ago; Merge from origin/emacs-26
Glenn Morris [Thu, 29 Aug 2019 18:11:22 +0000 (11:11 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

a6d0172 * etc/AUTHORS: Update.

5 years agoMerge from origin/emacs-26
Glenn Morris [Thu, 29 Aug 2019 18:11:21 +0000 (11:11 -0700)]
Merge from origin/emacs-26

290fe4d * ; ChangeLog.3 update
e8f176b * etc/NEWS: Delete temporary markup.

# Conflicts:
# ChangeLog.3
# etc/NEWS

5 years ago; Fix earlier NEWS merge
Glenn Morris [Thu, 29 Aug 2019 18:04:18 +0000 (11:04 -0700)]
; Fix earlier NEWS merge

5 years agoAdd new "make help" target
Stefan Kangas [Tue, 20 Aug 2019 23:02:43 +0000 (01:02 +0200)]
Add new "make help" target

* GNUmakefile: Add new "help" target that shows a brief summary of
common make targets.  (Bug#12411)
* INSTALL
* etc/NEWS: Announce it.

5 years agoTweak shr background colour handling
Lars Ingebrigtsen [Thu, 29 Aug 2019 07:18:40 +0000 (09:18 +0200)]
Tweak shr background colour handling

* lisp/net/shr.el (shr-fill-line): Extend the background to the
end of the line when folding lines.

5 years agoClarify meaning of <filename> in test/README
Michael Albinus [Wed, 28 Aug 2019 18:39:33 +0000 (20:39 +0200)]
Clarify meaning of <filename> in test/README

5 years agoDon't worry about pre-1.0.0 alsa-lib include
Paul Eggert [Wed, 28 Aug 2019 18:34:48 +0000 (11:34 -0700)]
Don't worry about pre-1.0.0 alsa-lib include

Problem reported by Ergus in:
https://lists.gnu.org/r/emacs-devel/2019-08/msg00563.html
* configure.ac (ALSA_SUBDIR_INCLUDE): Do not define.
* src/sound.c: Assume ALSA_SUBDIR_INCLUDE.

5 years ago; Improve and clarify wording of recent commit in NEWS.
Eli Zaretskii [Wed, 28 Aug 2019 11:00:01 +0000 (14:00 +0300)]
; Improve and clarify wording of recent commit in NEWS.

5 years agoUse XDG conventions more consistently
Paul Eggert [Tue, 27 Aug 2019 21:21:45 +0000 (14:21 -0700)]
Use XDG conventions more consistently

Fit in better with the XDG conventions.
Something like this was suggested in 2008 (Bug#583)
and the XDG conventions seem to have settled down by now.
* doc/emacs/custom.texi (Init File, Init Syntax, Find Init):
* doc/lispref/files.texi (Standard File Names):
* doc/lispref/os.texi (Init File):
* doc/misc/url.texi (Customization):
* etc/NEWS:
Adjust accordingly.
* lisp/startup.el (startup--load-user-init-file):
If init-file-name is nil, do not load from it; instead
just use the alt-file.
(find-init-path): Remove; no longer used.
(command-line): Don't check twice for XDG.
Look at XDG_CONFIG_HOME instead of assuming it's ~/.config.
Prefer XDG configuration if it exists; the user can disable
this by setting XDG_CONFIG_HOME to some other place.
* lisp/subr.el (user-emacs-directory):
Prefer XDG configuration if it exists.

5 years agoPort recent gnutls fixes to gcc -Wpointer-sign
Paul Eggert [Tue, 27 Aug 2019 21:19:38 +0000 (14:19 -0700)]
Port recent gnutls fixes to gcc -Wpointer-sign

* src/gnutls.c (Fgnutls_format_certificate):
Fix pointer signedness problem.

5 years agoBrowser-like Info-history button menu (bug#37184)
Juri Linkov [Tue, 27 Aug 2019 20:48:57 +0000 (23:48 +0300)]
Browser-like Info-history button menu (bug#37184)

* doc/misc/info.texi (Help-Int): Using tool-bar to navigate history.

* lisp/info.el (Info-history-menu): New function.
(Info-history-back-menu, Info-history-forward-menu): New commands.
(Info-mode-map): Bind Info-history-back-menu and
Info-history-forward-menu to tool-bar on C-key.

5 years agoDeactivate part of tramp--test-check-files on macOS (Bug#36940)
Michael Albinus [Tue, 27 Aug 2019 16:53:26 +0000 (18:53 +0200)]
Deactivate part of tramp--test-check-files on macOS (Bug#36940)

* test/lisp/net/tramp-tests.el (tramp--test-check-files): Do not
search for environment variables on macOS.  (Bug#36940)

5 years ago; Fix commentary of last change.
Eli Zaretskii [Tue, 27 Aug 2019 16:13:39 +0000 (19:13 +0300)]
; Fix commentary of last change.

5 years agoFix crashes on MS-Windows when using GnuTLS connections
Eli Zaretskii [Tue, 27 Aug 2019 15:47:24 +0000 (18:47 +0300)]
Fix crashes on MS-Windows when using GnuTLS connections

* src/gnutls.c (init_gnutls_functions) [WINDOWSNT]: Define and
load gnutls_free by an explicit call to GetProcAddress.
(gnutls_free) [WINDOWSNT]: Define as a macro that dereferences
a function pointer.  (Bug#31946)
(Fgnutls_format_certificate): Use make_string_from_bytes
instead of going through an intermediate malloc'ed buffer.

5 years agoFix filename completion in shell mode buffers
Alex Branham [Thu, 15 Aug 2019 16:02:38 +0000 (11:02 -0500)]
Fix filename completion in shell mode buffers

* lisp/shell.el (shell-dynamic-complete-functions): Move
pcomplete-completions-at-point down the list so that filename
completion has a chance to complete before pcompletion.

Fixes bug#34330

5 years ago* test/Makefile.in (test_template): Declare target FOO.log.
Michael Albinus [Tue, 27 Aug 2019 10:58:38 +0000 (12:58 +0200)]
* test/Makefile.in (test_template): Declare target FOO.log.

5 years agoFix completion in `read-library-name'
Lars Ingebrigtsen [Tue, 27 Aug 2019 07:46:28 +0000 (09:46 +0200)]
Fix completion in `read-library-name'

* lisp/emacs-lisp/find-func.el (read-library-name): Only list
.el/.el.gz files when completing (bug#36945).

5 years agoMake link widgets obey mouse-1-click-follows-link
Mauro Aranda [Tue, 27 Aug 2019 06:41:44 +0000 (08:41 +0200)]
Make link widgets obey mouse-1-click-follows-link

* lisp/wid-edit.el (widget-link-keymap): New variable, a keymap to use
inside a link widget.
('link widget): Restore the :follow-link property and add
widget-link-keymap as the :keymap property (bug#15682).

5 years agoAdapt recentf.el to the change in the Widget Library
Mauro Aranda [Tue, 27 Aug 2019 06:40:32 +0000 (08:40 +0200)]
Adapt recentf.el to the change in the Widget Library

* lisp/recentf.el (recentf-open-files-item): Stop overriding
:follow-link property of the link widgets, since now it should
work as expected (bug#15682).

5 years agoCreate push-button widgets instead of links in epa *Keys* buffer
Mauro Aranda [Tue, 27 Aug 2019 06:39:04 +0000 (08:39 +0200)]
Create push-button widgets instead of links in epa *Keys* buffer

* lisp/epa.el (epa--select-keys): Make OK and Cancel into buttons
(bug#15682).

5 years agoFix Tramp rounding of file sizes and inode numbers
Paul Eggert [Tue, 27 Aug 2019 01:57:56 +0000 (18:57 -0700)]
Fix Tramp rounding of file sizes and inode numbers

* lisp/net/tramp-sh.el (tramp-perl-file-attributes)
(tramp-perl-directory-files-and-attributes)
(tramp-do-file-attributes-with-stat)
(tramp-do-directory-files-and-attributes-with-stat):
Format file sizes and inode numbers without trailing ".0",
to avoid rounding errors when absolute values exceed 2**53
(Bug#36940#94).  This fixes the problem for Emacs 27 and later,
and doesn't hurt in earlier Emacs.

5 years agoPrefer display-line-numbers over linum in docs and one defcustom
Stefan Kangas [Fri, 31 May 2019 23:40:11 +0000 (01:40 +0200)]
Prefer display-line-numbers over linum in docs and one defcustom

* doc/misc/efaq.texi: Replace linum with display-line-numbers.
* lisp/progmodes/prog-mode.el (prog-mode-hook): Replace linum-mode
with display-line-numbers-mode in :options.  (Bug#37120)

5 years ago* src/keyboard.c (parse_tool_bar_item): Use CAPTION when HELP is unavailable
Juri Linkov [Mon, 26 Aug 2019 22:38:19 +0000 (01:38 +0300)]
* src/keyboard.c (parse_tool_bar_item): Use CAPTION when HELP is unavailable

while adding equivalent key binding to the tooltip. (Bug#36156)

5 years agoFix crashes in networking with GnuTLS on MS-Windows
Eli Zaretskii [Mon, 26 Aug 2019 16:06:13 +0000 (19:06 +0300)]
Fix crashes in networking with GnuTLS on MS-Windows

* src/gnutls.c (init_gnutls_functions) [WINDOWSNT]: Define and
load gnutls_free.
(Fgnutls_format_certificate): Use gnutls_free instead of
xfree.  This prevents crashes on MS-Windows, since the memory
being released was allocated inside GnuTLS.  (Bug#31946)

5 years ago; Continued attempt to fix Bug#36940
Michael Albinus [Mon, 26 Aug 2019 14:14:16 +0000 (16:14 +0200)]
; Continued attempt to fix Bug#36940

* test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p):
Handle link number.
(tramp--test-check-files): Encode search string on macOS.  (Bug#36940)

5 years agoAllow finding gpg2 binaries when gpg2 has an "unknown" version string
Lars Ingebrigtsen [Mon, 26 Aug 2019 06:02:31 +0000 (08:02 +0200)]
Allow finding gpg2 binaries when gpg2 has an "unknown" version string

* lisp/epg-config.el (epg-find-configuration): Allow finding a
usable configuration even if the version string looks like "gpg
(GnuPG) 2.2.15-unknown" (bug#35629).

5 years agoOnly use --sender for gpg when gpg supports it
Teemu Likonen [Mon, 26 Aug 2019 05:52:54 +0000 (07:52 +0200)]
Only use --sender for gpg when gpg supports it

* lisp/epg-config.el (epg-required-version-p): New function (bug#37025).

* lisp/gnus/mml-sec.el (mml-secure-epg-sign):
* lisp/epg.el (epg-start-sign):
(epg-start-encrypt): Use it to only use --sender when the gpg
binary supports it.

5 years agoFix ede-proj-project class
Lars Ingebrigtsen [Mon, 26 Aug 2019 04:13:20 +0000 (06:13 +0200)]
Fix ede-proj-project class

* lisp/cedet/ede/proj.el (ede-proj-project): Make class inherit
from eieio-named to get object-name slot (bug#37181).

5 years agoFix bug with non-paletted transparent PNGs
Paul Eggert [Sun, 25 Aug 2019 23:35:43 +0000 (16:35 -0700)]
Fix bug with non-paletted transparent PNGs

Adapted from a fix by YAMAMOTO Mitsuharu (Bug#37153#77).
* src/image.c (png_load_body): Fix bug with non-paletted
transparent images.

5 years agoFix misdisplay of PNG paletted images
Paul Eggert [Sun, 25 Aug 2019 17:01:46 +0000 (10:01 -0700)]
Fix misdisplay of PNG paletted images

Problem reported by Roland Winkler (Bug#37153).
Derived from a patch suggested by YAMAMOTO Mitsuharu (Bug#37153#62).
* src/image.c (png_get_valid) [WINDOWSNT]:
Do not dynamically link this function.
(png_get_tRNS) [WINDOWSNT && PNG_tRNS_SUPPORTED]:
Dynamically link this function instead.
(png_load_body): Do not assume that every paletted image supplies
only transparency data.  Fix typo in use of transparent_p.

5 years agoFix a further part of Bug#36940
Michael Albinus [Sun, 25 Aug 2019 11:44:11 +0000 (13:44 +0200)]
Fix a further part of Bug#36940

* lisp/net/tramp-sh.el (tramp-perl-file-attributes)
(tramp-perl-directory-files-and-attributes)
(tramp-do-file-attributes-with-stat)
(tramp-do-directory-files-and-attributes-with-stat): Return size
and inode as floating number.  (Bug#36940).

5 years agoIntroduce new value t for compilation-context-lines to eliminate scrolling
Alan Mackenzie [Sun, 25 Aug 2019 10:21:37 +0000 (10:21 +0000)]
Introduce new value t for compilation-context-lines to eliminate scrolling

In particular, to prevent scrolling in a window lacking a left fringe.
Instead, a visible arrow "=>" is inserted before column zero.  This fixes
bug #36832.

* lisp/progmodes/compile.el (compilation-context-lines): Add the new value t.
(compilation-set-window): Amend to handle compilation-context-lines being t.
(overlay-arrow-overlay): New variable holding an overlay with before-string
property "=>".
(compilation-set-overlay-arrow): New function which manipulates
overlay-arrow-overlay.
(compilation-goto-locus, compilation-find-file): In addition to calling
compilation-set-window, also call compilation-set-overlay-arrow.

* doc/emacs/building.texi (Compilation Mode): Document the new value t which
compilation-context-lines can take.

* etc/NEWS: Add an entry for this change.

5 years agoFix minor problems in TUTORIAL.ru
Alex Ott [Sun, 25 Aug 2019 09:33:48 +0000 (11:33 +0200)]
Fix minor problems in TUTORIAL.ru

This fixes wording and avoids visiting the tutorial in
Ruby mode.

5 years agoFix a recent change in coding.c
Eli Zaretskii [Sun, 25 Aug 2019 08:08:11 +0000 (11:08 +0300)]
Fix a recent change in coding.c

This partially reverts the changes in "extern function cleanup".
* src/coding.c (encode_string_utf_8, decode_string_utf_8): Now
extern again.  They should NOT be static, as they are intended
to be used by the likes of json.c, where we need
highly-optimized code for processing UTF-8 strings.  E.g.,
decode_string_utf_8 beats make_string_from_utf8 by a factor of
2 to 5 in a large number of scenarios.

5 years ago; Improve a recent change.
Eli Zaretskii [Sun, 25 Aug 2019 07:10:01 +0000 (10:10 +0300)]
; Improve a recent change.

* src/frame.c (Fx_parse_geometry): Improve the comment about
non-initialization of some locals.

5 years agoUse ' instead of ` in NEWS
Lars Ingebrigtsen [Sun, 25 Aug 2019 06:12:17 +0000 (08:12 +0200)]
Use ' instead of ` in NEWS

5 years agoUse `autoconf-mode' for Autoconf .m4 files
Lars Ingebrigtsen [Sun, 25 Aug 2019 06:11:58 +0000 (08:11 +0200)]
Use `autoconf-mode' for Autoconf .m4 files

* lisp/files.el (auto-mode-alist): Use `autoconf-mode' (instead of
`m4-mode') for acinclude.m4/aclocal.m4/acsite.m4 files (bug#37133).

5 years agoThe `gnus*-1' functions shouldn't be interactive
Alex Branham [Sun, 25 Aug 2019 06:05:48 +0000 (08:05 +0200)]
The `gnus*-1' functions shouldn't be interactive

* lisp/gnus/gnus-start.el (gnus-no-server-1): This function
shouldn't be interactive (bug#37022).
(gnus-1): Ditto.

5 years agoDisallow just hitting RET in gnus-mime-replace-part
Lars Ingebrigtsen [Sun, 25 Aug 2019 05:57:30 +0000 (07:57 +0200)]
Disallow just hitting RET in gnus-mime-replace-part

* lisp/gnus/gnus-art.el (gnus-mime-replace-part): Don't replace
the part if the file to replace it with doesn't exist (bug#36864).

5 years agoClarify Fx_parse_geometry initialization
Paul Eggert [Sun, 25 Aug 2019 00:46:21 +0000 (17:46 -0700)]
Clarify Fx_parse_geometry initialization

* src/frame.c (Fx_parse_geometry): Clarify why local init
isn’t needed.

5 years agoTweak time arithmetic performance
Paul Eggert [Sat, 24 Aug 2019 22:40:55 +0000 (15:40 -0700)]
Tweak time arithmetic performance

* src/timefns.c (time_arith): Prefer mpz_divexact to mpz_tdiv_q
when either will do.

5 years agoSpeed up % and mod with fixnum denom
Paul Eggert [Sat, 24 Aug 2019 22:46:31 +0000 (15:46 -0700)]
Speed up % and mod with fixnum denom

* src/data.c (integer_remainder): New function.  When the
numerator is a bignum and the denominator is small, this function
uses mpz_tdiv_ui, which should be faster than mpz_tdiv_r.
(Frem, Fmod): Use it.

5 years agoTweak integer mod performance
Paul Eggert [Sat, 24 Aug 2019 19:45:36 +0000 (12:45 -0700)]
Tweak integer mod performance

* src/data.c (integer_mod): Use mpz_tdiv_r not mpz_mod, as that’s
more similar to the fixnum case, is a bit more efficient, and
otherwise the later ‘sgn_r < 0’ code is useless anyway.

5 years agoMake (mod 1.0 0) consistent with (/ 1.0 0)
Paul Eggert [Sat, 24 Aug 2019 19:43:50 +0000 (12:43 -0700)]
Make (mod 1.0 0) consistent with (/ 1.0 0)

* src/data.c (Fmod): Do not signal an error for (mod 1.0 0), for
the same reason (/ 1.0 0) does not signal an error.
* test/src/data-tests.el (data-tests-mod-0): New test.

5 years agoextern function cleanup
Paul Eggert [Sat, 24 Aug 2019 18:42:28 +0000 (11:42 -0700)]
extern function cleanup

Most of these functions can be static.  A few are unused.
* src/coding.c (encode_string_utf_8, decode_string_utf_8):
Define only if ENABLE_UTF_8_CONVERTER_TEST, as they're
not needed otherwise.
* src/coding.c (encode_string_utf_8, decode_string_utf_8):
* src/data.c (integer_mod):
* src/fns.c (base64_encode_region_1, base64_encode_string_1):
* src/ftfont.c (ftfont_get_fc_charset):
Now static.
* src/sysdep.c (verrprintf): Remove; unused.

5 years agoFix non-deterministic process test
Noam Postavsky [Fri, 23 Aug 2019 00:48:19 +0000 (20:48 -0400)]
Fix non-deterministic process test

* test/src/process-tests.el (set-process-filter-t): Don't assume
subprocess output will come in a single chunk, keep waiting for more
data until next "prompt" is read from subprocess.

5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 24 Aug 2019 13:46:00 +0000 (16:46 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years agoRevert "Recompute user-emacs-directory-relative defcustoms one more time"
Eli Zaretskii [Sat, 24 Aug 2019 13:45:10 +0000 (16:45 +0300)]
Revert "Recompute user-emacs-directory-relative defcustoms one more time"

This reverts commit bb5cd7c4caf415e40836edbbc4e62b0dd411d73f.
See bug#37173.

5 years agoFix DNS tests
Robert Pluim [Sat, 24 Aug 2019 12:54:02 +0000 (14:54 +0200)]
Fix DNS tests

* test/src/process-tests.el: (lookup-family-specification,
lookup-unicode-domains, unibyte-domain-name, lookup-google,
non-existent-lookup-failure): Skip on Hydra, which doesn't have DNS.
Fix buggy test condition.  (Bug#37165)

5 years agoFix some problems of Bug#36940
Michael Albinus [Sat, 24 Aug 2019 08:10:05 +0000 (10:10 +0200)]
Fix some problems of Bug#36940

* test/lisp/net/tramp-tests.el (tramp-test22-file-times): Do not
compare time value lists by `equal'.  (Bug#36940).
(tramp-test30-make-process): Adapt "kill" message to match on macOS.

5 years agoTweak gnutls-peer-status reporting
Paul Eggert [Fri, 23 Aug 2019 18:50:40 +0000 (11:50 -0700)]
Tweak gnutls-peer-status reporting

* src/gnutls.c (Fgnutls_peer_status): Report :compression and
:encrypt-then-mac only if the underlying GnuTLS library has
the corresponding features.  This give the Elisp caller a bit
more information about the peer status.
* lisp/net/nsm.el (nsm-protocol-check--compression):
Don’t worry about compression in newer GnuTLS versions
that do not support compression.

5 years agoMention new usage of `invalid-read-syntax' in the manual
Lars Ingebrigtsen [Fri, 23 Aug 2019 18:42:45 +0000 (20:42 +0200)]
Mention new usage of `invalid-read-syntax' in the manual

* doc/lispref/errors.texi (Standard Errors): Document "trailing
garbage" use of `invalid-read-syntax' (bug#24649).

5 years agoClarify compiler-pacifier in frame.c
Paul Eggert [Fri, 23 Aug 2019 18:17:38 +0000 (11:17 -0700)]
Clarify compiler-pacifier in frame.c

* src/frame.c (Fx_parse_geometry): Pacify the compiler in a
different way, so that the human reader can more easily see
that the initializations are unnecessary.

5 years agoFix compilation --without--x
Eli Zaretskii [Fri, 23 Aug 2019 16:21:33 +0000 (19:21 +0300)]
Fix compilation --without--x

* src/xdisp.c (extend_face_to_end_of_line): Fix a recent
change that moved the initialization of default_face.
Reported by Glenn Morris <rgm@gnu.org>.

5 years agoAvoid a compilation warning in w32.c
Eli Zaretskii [Fri, 23 Aug 2019 13:00:25 +0000 (16:00 +0300)]
Avoid a compilation warning in w32.c

* src/w32.c (logon_network_drive): Avoid compilation warning
about strncpy arguments.

5 years agoAvoid compilation warning in frame.c
Eli Zaretskii [Fri, 23 Aug 2019 12:52:33 +0000 (15:52 +0300)]
Avoid compilation warning in frame.c

* src/frame.c (Fx_parse_geometry): Avoid compilation warning
about x and y being used without initializing them.

5 years ago; Fix references to log-edit-generate-changelog-from-diff
Noam Postavsky [Fri, 23 Aug 2019 11:59:32 +0000 (07:59 -0400)]
; Fix references to log-edit-generate-changelog-from-diff

* doc/emacs/maintaining.texi (Log Buffer):
* etc/NEWS: Replace log-edit-generate-changelog (an old name which was
changed during editing) to log-edit-generate-changelog-from-diff.

5 years agoPrint macro modified macro keys as characters not integers
Noam Postavsky [Fri, 23 Aug 2019 11:55:09 +0000 (07:55 -0400)]
Print macro modified macro keys as characters not integers

* lisp/macros.el (macros--insert-vector-macro): Pass all elements to
'prin1-char', not just those that satisfy characterp (because characters
which have modifier bits set wouldn't qualify otherwise).
'prin1-char' will return nil if it can't handle the argument (e.g.,
for symbols representing function keys).

5 years ago; Fix last change.
Eli Zaretskii [Fri, 23 Aug 2019 12:30:45 +0000 (15:30 +0300)]
; Fix last change.

* src/process.c (network_lookup_address_info_1): A better fix for
compilation on platforms without HAVE_GAI_STRERROR.  (Bug#37158)

5 years agoFix compilation of process.c
Robert Pluim [Fri, 23 Aug 2019 12:24:27 +0000 (14:24 +0200)]
Fix compilation of process.c

* src/process.c (network_lookup_address_info_1): [!HAVE_GAI_STRERROR]:
Use make_fixnum instead of make_number.  (Bug#37158).

5 years agoHi-lock lines up to right margin (Bug#15934)
Michael Heerdegen [Wed, 21 Aug 2019 13:51:13 +0000 (15:51 +0200)]
Hi-lock lines up to right margin (Bug#15934)

* lisp/hi-lock.el (hi-lock-line-face-buffer): Change used regexp so
that a line terminating newline character is included in the match.

5 years agoRename renamed nsm.el variables and functions back
Lars Ingebrigtsen [Fri, 23 Aug 2019 09:51:54 +0000 (11:51 +0200)]
Rename renamed nsm.el variables and functions back

* doc/emacs/misc.texi (Network Security): Start working on
updating the NSM bits, but it's unclear how much of the new stuff
to document.

* lisp/net/nsm.el: Rename all nsm-tls-check-* functions to
nsm-protocol-check--* to bring them back into line with the
documentation.
(network-security-protocol-checks): Renamed back again from
`nsm-tls-checks', as this variable is documented and can't just go
away.

5 years agoMove all NSM tests away from the `low' level
Lars Ingebrigtsen [Fri, 23 Aug 2019 09:00:02 +0000 (11:00 +0200)]
Move all NSM tests away from the `low' level

* lisp/net/nsm.el (network-security-level, nsm-tls-checks): Make
`low' a "check nothing" setting again, and move all the `low'
checks back to `medium'.  This makes the test suite work again.

5 years agoTweak previous tar-mode time stamp code
Lars Ingebrigtsen [Fri, 23 Aug 2019 08:44:49 +0000 (10:44 +0200)]
Tweak previous tar-mode time stamp code

* lisp/tar-mode.el (tar-header-block-summarize): Tweak previous
commit to output the time stamp in the exact same way that GNU tar
does.

5 years ago; * lisp/emacs-lisp/cl-lib.el (cl-pushnew): Doc fix.
Eli Zaretskii [Fri, 23 Aug 2019 08:43:30 +0000 (11:43 +0300)]
; * lisp/emacs-lisp/cl-lib.el (cl-pushnew): Doc fix.

5 years agoGet the Gnutls code compiling on Fedora 30
Paul Eggert [Fri, 23 Aug 2019 08:11:12 +0000 (01:11 -0700)]
Get the Gnutls code compiling on Fedora 30

The recent changes caused the build to fail on Fedora 30 when built
with --enable-gcc-warnings, among other things with diagnostics that
gnutls_compression_get and gnutls_compression_get_name are deprecated
(this started with GnuTLS 3.6).  Fix this by refusing to call these
obsolescent and now-dummy functions in GnuTLS 3.6 and later.  However,
this is just a temporary workaround to get the build working; a real
fix is needed, as network-stream-tests fail.
* src/gnutls.c (HAVE_GNUTLS_COMPRESSION_GET): New macro.
(gnutls_compression_get, gnutls_compression_get_name):
Define only if HAVE_GNUTLS_COMPRESSION_GET.
(init_gnutls_functions): Load the two functions only if
HAVE_GNUTLS_COMPRESSION_GET.
(emacs_gnutls_certificate_export_pem): Use alloca instead of xmalloc.
(Fgnutls_peer_status): Just return "NULL" if the functions
are deprecated.
(Fgnutls_format_certificate): Fix pointer signedness glitches.
* src/process.c: Fix spacing.

5 years agoPut error output from M-! at the end of the error buffer
Lars Ingebrigtsen [Fri, 23 Aug 2019 08:10:09 +0000 (10:10 +0200)]
Put error output from M-! at the end of the error buffer

* lisp/simple.el (shell-command-on-region): Put the error output
at the end of the buffer instead of wherever point is (bug#7513).
This avoids interleaving error output.

5 years agoMove default face lookup
Robert Pluim [Wed, 6 Feb 2019 08:30:07 +0000 (09:30 +0100)]
Move default face lookup

* src/xdisp.c (extend_face_to_end_of_line): Move default face
lookup lower.

5 years agoCorrect description of network-lookup-address-info
Robert Pluim [Fri, 23 Aug 2019 07:46:24 +0000 (09:46 +0200)]
Correct description of network-lookup-address-info

* doc/lispref/processes.texi (Misc Network): Remove erroneous text
  about port numbers

5 years agoRemove debugging from previous shr.el patch
Lars Ingebrigtsen [Fri, 23 Aug 2019 07:58:58 +0000 (09:58 +0200)]
Remove debugging from previous shr.el patch

5 years agoFix recent changes in gnutls.c
Eli Zaretskii [Fri, 23 Aug 2019 07:38:14 +0000 (10:38 +0300)]
Fix recent changes in gnutls.c

* src/gnutls.c: Fix typos that broke the MS-Windows build.
(Fgnutls_peer_status_warning_describe): Fix incomplete error
message string.

5 years agoAvoid an infloop in shr when filling text with :align-to properties
Lars Ingebrigtsen [Fri, 23 Aug 2019 06:51:35 +0000 (08:51 +0200)]
Avoid an infloop in shr when filling text with :align-to properties

* lisp/net/shr.el (shr-fill-line): Only join together URL buttons
if there are any URL buttons.

5 years agoFix Gnus display of timestamps that's less than a second old
Lars Ingebrigtsen [Fri, 23 Aug 2019 05:19:45 +0000 (07:19 +0200)]
Fix Gnus display of timestamps that's less than a second old

* lisp/gnus/gnus-art.el (article-lapsed-string): The elapsed
seconds may be a fractional second.  In that case, just say "now".

5 years agoReally save games scores to the games scores directory
Lars Ingebrigtsen [Fri, 23 Aug 2019 04:40:20 +0000 (06:40 +0200)]
Really save games scores to the games scores directory

* lisp/play/gamegrid.el
(gamegrid-add-score-with-update-game-score): Save games scores to
`gamegrid-user-score-file-directory' by default (bug#36971).

5 years agoAdd imenu support to xref
Damien Cassou [Fri, 23 Aug 2019 04:30:46 +0000 (06:30 +0200)]
Add imenu support to xref

* lisp/progmodes/xref.el (xref--imenu-prev-index-position)
(xref--imenu-extract-index-name): Add functions to get imenu support.
(xref--xref-buffer-mode): Set imenu variables to the new functions.
* etc/NEWS: Add corresponding entry (bug#36974).

5 years agoGive a better error message when reading invalid "\unicode" escapes.
Lars Ingebrigtsen [Fri, 23 Aug 2019 04:20:41 +0000 (06:20 +0200)]
Give a better error message when reading invalid "\unicode" escapes.

* src/lread.c (read_escape): Give a clearer error message on
Unicode escape sequences (bug#36988).

5 years agoClarify doc string of cl-pushnew
Lars Ingebrigtsen [Fri, 23 Aug 2019 04:12:44 +0000 (06:12 +0200)]
Clarify doc string of cl-pushnew

* lisp/emacs-lisp/cl-lib.el (cl-pushnew): Clarify doc string
(bug#37016).

5 years agoFix interaction between url-handler-mode and browse-url
Lars Ingebrigtsen [Fri, 23 Aug 2019 04:00:36 +0000 (06:00 +0200)]
Fix interaction between url-handler-mode and browse-url

* lisp/net/browse-url.el (browse-url): Don't expand any URLs (like
"man:") that have a scheme when using `url-handler-mode' (bug#37056).

5 years agoUse ISO8601 time formats in tar-mode
Lars Ingebrigtsen [Fri, 23 Aug 2019 03:44:59 +0000 (05:44 +0200)]
Use ISO8601 time formats in tar-mode

* lisp/tar-mode.el (tar-clip-time-string): Make obsolete (bug#37130).
(tar-header-block-summarize): Use ISO8601 time instead of
home-brew format.

5 years agoMake dired recognize .lz files
Lars Ingebrigtsen [Fri, 23 Aug 2019 03:31:17 +0000 (05:31 +0200)]
Make dired recognize .lz files

* lisp/dired-aux.el (dired-compress-file-suffixes): Recognize .lz
(lzip) compressed files (bug#37136).

5 years agoFix too-long lines in nsm.el
Lars Ingebrigtsen [Fri, 23 Aug 2019 03:05:27 +0000 (05:05 +0200)]
Fix too-long lines in nsm.el

* lisp/net/nsm.el: Fix some too-long lines and some terminology in
the doc strings/comments.

5 years agoMention new NSM warnings
Lars Ingebrigtsen [Fri, 23 Aug 2019 02:54:42 +0000 (04:54 +0200)]
Mention new NSM warnings

5 years agoMerge remote-tracking branch 'origin/netsec'
Lars Ingebrigtsen [Fri, 23 Aug 2019 02:49:52 +0000 (04:49 +0200)]
Merge remote-tracking branch 'origin/netsec'

5 years agoTweak the warning display to be less like a TLS decoding page
Lars Ingebrigtsen [Fri, 23 Aug 2019 02:07:10 +0000 (04:07 +0200)]
Tweak the warning display to be less like a TLS decoding page

* lisp/net/nsm.el (nsm-parse-subject, nsm-certificate-part):
Restore functions for parsing subjects.
(nsm-format-certificate): Use them to display more user-friendly
data.  Also change the display to have fewer lines again so that
the data of interest isn't pushed off the screen.

5 years agoEnable sorting paragraphs when the final paragraph has no newline
Lars Ingebrigtsen [Fri, 23 Aug 2019 01:43:41 +0000 (03:43 +0200)]
Enable sorting paragraphs when the final paragraph has no newline

* lisp/sort.el (sort-paragraphs): Ensure that when sorting
paragraphs, the final paragraph ends with a newline (bug#21785).

5 years agoSignal an error on `M-x shell-mode'
Lars Ingebrigtsen [Fri, 23 Aug 2019 00:57:07 +0000 (17:57 -0700)]
Signal an error on `M-x shell-mode'

* lisp/shell.el (shell-mode): This mode can't usefully be called
interactively (and is somewhat destructive, as it disables
`undo'), and it's usually confused with `shell-script-mode'
(bug#19812).  So signal an error if it's used interactively.

5 years agoMake ibuffer-mark-by-file-name-regexp work on the displayed file name
Lars Ingebrigtsen [Fri, 23 Aug 2019 00:52:07 +0000 (17:52 -0700)]
Make ibuffer-mark-by-file-name-regexp work on the displayed file name

* lisp/ibuf-ext.el (ibuffer-mark-by-file-name-regexp): Perform the
matching on the abbreviated (i.e., displayed) file name, and not
the complete name (bug#18859).  This seems like the more expected
action.

5 years agoHave `M-x battery' list all batteries under GNU/Linux
Lars Ingebrigtsen [Fri, 23 Aug 2019 00:40:26 +0000 (02:40 +0200)]
Have `M-x battery' list all batteries under GNU/Linux

* lisp/battery.el (battery-upower-device): Remove (bug#25559).
(battery--find-linux-sysfs-batteries): New function.
(battery-status-function, battery-linux-sysfs): Use it to list all
batteries, no matter what they're called.

5 years agoSignal `invalid-read-syntax' for "trailing garbage"
Lars Ingebrigtsen [Fri, 23 Aug 2019 00:24:55 +0000 (02:24 +0200)]
Signal `invalid-read-syntax' for "trailing garbage"

* src/minibuf.c (string_to_object): Signal `invalid-read-syntax'
instead of the generic `error' for "trailing garbage following
expression" (bug#24649).

5 years agoFix skeleton edebug spec
Lars Ingebrigtsen [Fri, 23 Aug 2019 00:20:54 +0000 (02:20 +0200)]
Fix skeleton edebug spec

* lisp/skeleton.el (skeleton-edebug-spec): Fix edebug spec
(bug#24779).

5 years agoRun quit-window-hook from the correct buffer
Lars Ingebrigtsen [Fri, 23 Aug 2019 00:07:41 +0000 (02:07 +0200)]
Run quit-window-hook from the correct buffer

* lisp/window.el (quit-window): Run the hook from the buffer
specified by the WINDOW parameter.

5 years agoRecompute user-emacs-directory-relative defcustoms one more time
Eli Zaretskii [Thu, 22 Aug 2019 17:46:31 +0000 (20:46 +0300)]
Recompute user-emacs-directory-relative defcustoms one more time

* lisp/startup.el (command-line): Re-evaluate the
custom-delayed predefined variables one more time after
loading the user's init file.  (Bug#37116)

5 years agoFix minor checkdoc errors in package.el
Stefan Kangas [Thu, 22 Aug 2019 17:15:30 +0000 (19:15 +0200)]
Fix minor checkdoc errors in package.el

* lisp/emacs-lisp/package.el (package-all-keywords)
(package-menu--generate, package-archive-priority): Doc fixes.

5 years agoSignal user-error on duplicate package refresh
Stefan Kangas [Wed, 17 Jul 2019 17:55:08 +0000 (19:55 +0200)]
Signal user-error on duplicate package refresh

* lisp/emacs-lisp/package.el (package-menu-refresh): Signal a
user-error if there is already a refresh running in the
background.  Doc fix.  (Bug#36707)

5 years ago* doc/misc/efaq.texi: Note the inclusion year. (Bug#37142)
Stefan Kangas [Thu, 22 Aug 2019 15:01:39 +0000 (17:01 +0200)]
* doc/misc/efaq.texi: Note the inclusion year.  (Bug#37142)

5 years agoImprove documentation of 'ispell-skip-html'
Eli Zaretskii [Thu, 22 Aug 2019 14:49:40 +0000 (17:49 +0300)]
Improve documentation of 'ispell-skip-html'

* lisp/textmodes/ispell.el (ispell-skip-html): Doc fix.
(Bug#37141)

5 years ago* doc/misc/tramp.texi: Use @acronym{GVFS}.
Michael Albinus [Thu, 22 Aug 2019 12:50:38 +0000 (14:50 +0200)]
* doc/misc/tramp.texi: Use @acronym{GVFS}.

5 years agoFix Qunbound-Qnil confusion in clrhash patch
Paul Eggert [Thu, 22 Aug 2019 08:22:10 +0000 (01:22 -0700)]
Fix Qunbound-Qnil confusion in clrhash patch

Problem reported by Stefan Monnier.
* src/fns.c (hash_clear): Fix typo I introduced in my previous
patch here, by setting keys to Qunbound not Qnil.