]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoExtend network-interface-list to return IPv6 and network info
Robert Pluim [Fri, 15 Nov 2019 10:11:30 +0000 (11:11 +0100)]
Extend network-interface-list to return IPv6 and network info

Bug#38218

* src/process.c (Fnetwork_interface_list): Extend argument list to
allow requesting full network info and/or IPv4/IPv6 info.
(network_interface_list) [HAVE_GETIFADDRS]: Use getifaddrs to retrieve
interface IP addresses.

* src/process.h: Update prototype of network_interface_list.

* src/w32.c (g_b_init_get_adapters_addresses): New init flag.
(globals_of_w32): Initialize it.
(GetAdaptersAddresses_Proc): New function typedef.
(get_adapters_addresses): New wrapper function.
(init_winsock): Load htonl and ntohl.
(sys_htonl, sys_ntohl): New wrapper functions.
(network_interface_list): Implement in terms of
get_adapters_addresses.

* nt/inc/sys/socket.h: Add sys_htonl and sys_ntohl prototypes.

* etc/NEWS: Announce IPv4/IPv6 changes in network-interface-list.

* doc/lispref/processes.texi (Misc Network): Document updated arglist
and return values for network-interface-list.

5 years agoFix previous message.el point-restoring fix
Lars Ingebrigtsen [Tue, 26 Nov 2019 01:40:59 +0000 (02:40 +0100)]
Fix previous message.el point-restoring fix

* lisp/gnus/message.el (message-send-and-exit): Restore window
point before burying buffer so we actually bury the buffer.

5 years agoRemove outdated documentation
Lars Ingebrigtsen [Tue, 26 Nov 2019 01:36:11 +0000 (02:36 +0100)]
Remove outdated documentation

* doc/misc/eieio.texi (Predicates): Remove documentation of
same-class-fast-p, which was removed some years back (bug#38362).

5 years agoFix test failures of test/lisp/auth-source-pass-tests.el
João Távora [Mon, 25 Nov 2019 22:45:24 +0000 (22:45 +0000)]
Fix test failures of test/lisp/auth-source-pass-tests.el

Failures introduced by recent "Make auth-source-pass-search understand
port lists", commit 92fda5a7f92162d610d57df14372bcfcee1f01b6.

* lisp/auth-source-pass.el
(auth-source-pass--generate-entry-suffixes): Fix test failures.

5 years ago; * etc/NEWS: Elaborate the entry about ':extend' face attribute.
Eli Zaretskii [Mon, 25 Nov 2019 18:58:40 +0000 (20:58 +0200)]
; * etc/NEWS: Elaborate the entry about ':extend' face attribute.

5 years agoCorrect small misprint in defcustom's docstring
Filipp Gunbin [Mon, 25 Nov 2019 18:12:46 +0000 (21:12 +0300)]
Correct small misprint in defcustom's docstring

* lisp/custom.el (defcustom): Correct misprint in docstring.

5 years agoFix face merging when some have :extend non-nil and some are inherited
Eli Zaretskii [Mon, 25 Nov 2019 15:52:24 +0000 (17:52 +0200)]
Fix face merging when some have :extend non-nil and some are inherited

* src/xfaces.c (face_inherited_attr): New function.
(merge_named_face): Call 'face_inherited_attr' when testing
whether a face that inherits from another fits the filtering
criteria specified by ATTR_FILTER.
(merge_face_vectors): Revert the changes made in this function
for filtering by ATTR_FILTER, and remove that argument as
well.  These tests are now completely done by the caller, see
'merge_named_face'.  (Bug#37774)

5 years agoHandle auth-source-search failures in open-network-stream
Robert Pluim [Sun, 17 Nov 2019 20:21:48 +0000 (21:21 +0100)]
Handle auth-source-search failures in open-network-stream

If the user cancels the gpg decryption pop-up, auth-source-search
fails *and* epa pops up an error buffer.  Fix epa to allow suppressing
that, and ignore errors returned from auth-source-search.

* lisp/epa.el (epa-suppress-error-buffer): New defvar.  Bind non-nil
to stop epa popping up an error buffer.

* lisp/net/network-stream.el: require epa when byte-compiling.
(network-stream-certificate): ignore errors when calling
auth-source-search, and suppress the epa error buffer.

5 years agoAdd eassert check for bad default face
Paul Eggert [Sat, 23 Nov 2019 23:47:28 +0000 (15:47 -0800)]
Add eassert check for bad default face

* src/xdisp.c (append_space_for_newline): Add an eassert check
that default_face is not null, by calling FACE_FROM_ID instead of
FACE_FROM_ID_OR_NULL.  Initialize a local only if needed.

5 years agoPort gnutls.c to --enable-gcc-warnings --without-gnutls
Paul Eggert [Sat, 23 Nov 2019 23:28:45 +0000 (15:28 -0800)]
Port gnutls.c to --enable-gcc-warnings --without-gnutls

* src/gnutls.c: Move the "#ifdef HAVE_GNUTLS" earlier, so
that "./configure --enable-gcc-warnings --without-gnutls"
does not complain about macros being defined but never used.
Indent "#" directives more consistently.

5 years agoRework previous fix to bug#38222
Juanma Barranquero [Sat, 23 Nov 2019 22:32:33 +0000 (23:32 +0100)]
Rework previous fix to bug#38222

* lisp/help.el (help--doc-without-fn): Remove.
(describe-mode): Use help-split-fundoc instead.

5 years agoMake help-split-fundoc more flexible about what returns
Juanma Barranquero [Sat, 23 Nov 2019 22:29:53 +0000 (23:29 +0100)]
Make help-split-fundoc more flexible about what returns

* lisp/help.el (help-split-fundoc): New arg SECTION to return
only the usage or doc parts of the docstring, or both even if
there is no usage.

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

5 years agoUse new macro debounce-reduce to make mouse scaling of images more responsive
Juri Linkov [Sat, 23 Nov 2019 22:22:46 +0000 (00:22 +0200)]
Use new macro debounce-reduce to make mouse scaling of images more responsive

* lisp/emacs-lisp/timer.el (debounce, debounce-reduce): New macros.

* lisp/image.el (image-increase-size, image-decrease-size):
Use funcall to call image--change-size-function.
(image--change-size-function): Move code from defun of
image--change-size to defvar that has the value of lambda
returned from debounce-reduce.  (Bug#38187)

5 years agoDefault network-stream-use-client-certificates to nil
Robert Pluim [Mon, 18 Nov 2019 09:48:29 +0000 (10:48 +0100)]
Default network-stream-use-client-certificates to nil

* lisp/net/network-stream.el (network-stream-use-client-certificates):
Default to nil.
(open-network-stream): Adapt description to new default of
network-stream-use-client-certificates.

* etc/NEWS: network-stream-use-client-certificates defaults to nil
now.

* doc/lispref/processes.texi (Network): Flip
network-stream-use-client-certificates description.

* doc/misc/auth.texi (Help for users): Mention
network-stream-use-client-certificates.

5 years agoHave what-cursor-position optionally show character name
Robert Pluim [Tue, 19 Nov 2019 10:33:10 +0000 (11:33 +0100)]
Have what-cursor-position optionally show character name

* lisp/simple.el (what-cursor-show-names): New defcustom, default nil.
(what-cursor-position): Show character names if what-cursor-show-names
is non-nil.

* doc/emacs/basic.texi (Position Info): Add what-cursor-show-names
description.

* etc/NEWS: Announce what-cursor-show-names.

5 years agoAlways expand "total" in dired
Christopher Schmidt [Sat, 23 Nov 2019 14:45:56 +0000 (15:45 +0100)]
Always expand "total" in dired

* lisp/files.el (insert-directory): Always replace "total" with
"total used in directory", even when we don't have free disk space
(bug#13191).  This makes the display more consistent.

5 years agoFix edebug instrumentation removing from advised functions
Michael Heerdegen [Thu, 14 Nov 2019 16:47:51 +0000 (17:47 +0100)]
Fix edebug instrumentation removing from advised functions

* lisp/emacs-lisp/edebug.el (edebug-remove-instrumentation): Handle
advised functions correctly.

5 years agoImprove indexing of modifier keys
Eli Zaretskii [Sat, 23 Nov 2019 11:37:28 +0000 (13:37 +0200)]
Improve indexing of modifier keys

* doc/emacs/commands.texi (User Input): Add index entry for
the Alt key serving as Meta.
* doc/emacs/custom.texi (Modifier Keys): Add index entries for
Alt, Super, and Hyper modifier keys.  (Bug#38315)

5 years agoFix cursor display at EOL before extended face
Eli Zaretskii [Sat, 23 Nov 2019 10:43:49 +0000 (12:43 +0200)]
Fix cursor display at EOL before extended face

* src/xdisp.c (extend_face_to_end_of_line): Make sure the
character position of the stretch glyph inserted to extend the
face is zero, as various other parts of the display code rely
on that.  (Bug#38330)

5 years agoFix and speed up en/decoding of UTF-8 strings
Eli Zaretskii [Sat, 23 Nov 2019 09:27:43 +0000 (11:27 +0200)]
Fix and speed up en/decoding of UTF-8 strings

* src/coding.c (get_char_bytes, encode_string_utf_8)
(decode_string_utf_8): Fix commentary.
(encode_string_utf_8): Return the original ASCII string only
if NOCOPY is non-zero.
(decode_string_utf_8): Accept 2 additional arguments STR and
STR_LEN, which allow to pass the input text as a C string.
(make_string_from_utf8): Delegate the job to decode_string_utf_8.
* src/coding.h: Update the prototype of decode_string_utf_8.
* src/json.c (json_encode): Call encode_string_utf_8.

5 years ago* lisp/minibuffer.el (completion-flex-nospace): Default to t.
João Távora [Sat, 23 Nov 2019 00:30:49 +0000 (00:30 +0000)]
* lisp/minibuffer.el (completion-flex-nospace): Default to t.

5 years agohelp-follow-symbol now complains if no symbol found (bug#38248)
Juanma Barranquero [Fri, 22 Nov 2019 20:10:49 +0000 (21:10 +0100)]
help-follow-symbol now complains if no symbol found (bug#38248)

* lisp/help-mode.el (help-follow-symbol): Signal 'user-error' if
there's no symbol at POS.

* etc/NEWS: Document it.

5 years agoCheck gnus-mailing-list-groups in turn-on-gnus-mailing-list-mode
Filipp Gunbin [Fri, 22 Nov 2019 17:49:02 +0000 (20:49 +0300)]
Check gnus-mailing-list-groups in turn-on-gnus-mailing-list-mode

* lisp/gnus/gnus-ml.el (turn-on-gnus-mailing-list-mode): Check also
gnus-mailing-list-groups variable.

5 years agoMake gnus-mailing-list-archive recognize https
Filipp Gunbin [Fri, 22 Nov 2019 17:37:27 +0000 (20:37 +0300)]
Make gnus-mailing-list-archive recognize https

* /lisp/gnus/gnus-ml.el (gnus-mailing-list-archive): Accept https in
regexp.

5 years agoUnify docstrings of Gnus summary's copy/move/crosspost article functions
Filipp Gunbin [Fri, 22 Nov 2019 16:23:51 +0000 (19:23 +0300)]
Unify docstrings of Gnus summary's copy/move/crosspost article functions

* lisp/gnus/gnus-sum.el (gnus-summary-copy-article)
(gnus-summary-crosspost-article): Make docstrings refer to
gnus-summary-move-article.

5 years agoRefix conditional step clauses in cl-loop
dickmao [Fri, 22 Nov 2019 14:53:58 +0000 (15:53 +0100)]
Refix conditional step clauses in cl-loop

* lisp/emacs-lisp/cl-macs.el
(cl--loop-bindings, cl--loop-symbol-macs, cl-loop):
Add cl--loop-conditions, remove cl--loop-guard-cond.
(cl--push-clause-loop-body): Apply clause to both cl--loop-conditions
and cl--loop-body
(cl--parse-loop-clause): Use cl--push-clause-loop-body.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-and-assignment):
Use docstring.
(cl-macs-loop-for-as-arith): Removed expected failure.
(cl-macs-loop-conditional-step-clauses): Add some tests (bug#29799).

5 years agoFix uses of inhibit-message in package.el
Eli Zaretskii [Fri, 22 Nov 2019 14:36:25 +0000 (16:36 +0200)]
Fix uses of inhibit-message in package.el

* lisp/emacs-lisp/package.el (package-generate-autoloads)
(package--compile, package--save-selected-packages): Don't use
'inhibit-message' to bind 'noninteractive' and 'save-silently',
since 'inhibit-message' already disables all messages.
(Bug#38264)

5 years agofont-lock special attributes in python-mode
Hong Xu [Fri, 22 Nov 2019 13:34:59 +0000 (14:34 +0100)]
font-lock special attributes in python-mode

* lisp/progmodes/python.el (python-font-lock-keywords-level-2): Add
special attributes (bug#38318).

5 years agoGive better error messages in image-convert
Lars Ingebrigtsen [Fri, 22 Nov 2019 12:15:41 +0000 (13:15 +0100)]
Give better error messages in image-convert

* lisp/image/image-converter.el (image-convert): Make
image-convert bug out earlier on a wrong IMAGE-FORMAT value
(bug#38310).

5 years agoMake auth-source-pass-search understand port lists
João Távora [Wed, 20 Nov 2019 00:11:00 +0000 (00:11 +0000)]
Make auth-source-pass-search understand port lists

For cases such as a typical IMAP Gnus setup, auto-source-pass-search
is passed a list of "port aliases" like (993 "imaps" "imap" "993"
"143") in hopes of finding a matching ~/.password-store entry.

This modification makes this library understand and unroll the port
list so that, i.e. "domain:993", "domain:imaps"", "domain:imap",
etc. are computed as potential suffixes.  Previously a nonsensical
string "domain:(993 imaps imap ...)" was returned.

* lisp/auth-source-pass.el
(auth-source-pass--generate-entry-suffixes): Allow PORT to be a list
of ports.

5 years ago* lisp/emacs-lisp/smie.el (smie-next-sexp): Fix bug#38255
Stefan Monnier [Thu, 21 Nov 2019 23:24:37 +0000 (18:24 -0500)]
* lisp/emacs-lisp/smie.el (smie-next-sexp): Fix bug#38255

Handle the case where the token is not in `smie-grammar`, either because
the caller is making an error, or because it's a paren-like token that's
not handled in the grammar but directly via the syntax tables.

5 years agoMake `C-c C-w' insert a signature even when overridden
Lars Ingebrigtsen [Thu, 21 Nov 2019 23:19:43 +0000 (00:19 +0100)]
Make `C-c C-w' insert a signature even when overridden

* lisp/gnus/message.el (message-insert-signature): When called
interactively, look harder for a signature to insert (bug#38289).

5 years ago* lisp/minibuffer.el (completions-common-part): Make it blue when possible
Stefan Monnier [Thu, 21 Nov 2019 22:53:02 +0000 (17:53 -0500)]
* lisp/minibuffer.el (completions-common-part): Make it blue when possible

5 years ago* lisp/files.el (locate-file-completion-table): Fix typo
Stefan Monnier [Thu, 21 Nov 2019 22:39:38 +0000 (17:39 -0500)]
* lisp/files.el (locate-file-completion-table): Fix typo

5 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Thierry Volpiatto [Thu, 21 Nov 2019 20:01:53 +0000 (21:01 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

5 years agoAdd new variable to prevent flex completion style
Thierry Volpiatto [Thu, 21 Nov 2019 19:41:19 +0000 (20:41 +0100)]
Add new variable to prevent flex completion style

matching spaces.  This allows flex style working smoothly with other
styles like helm using spaces.

* lisp/minibuffer.el (completion-flex-nospace): New user var.
(completion-flex-try-completion): Use it.
(completion-flex-all-completions): Same.

5 years agoWhen verilog-auto-ignore-concat is true, also ignore parenthesized signals.
Wilson Snyder [Thu, 21 Nov 2019 19:38:09 +0000 (14:38 -0500)]
When verilog-auto-ignore-concat is true, also ignore parenthesized signals.

* lisp/progmodes/verilog-mode.el (verilog-auto-ignore-concat): When
`verilog-auto-ignore-concat' is true, also ignore parenthesized
signals.

5 years agoFix Gnus summary backtab keybindings to use button-based functions
Eric Abrahamsen [Thu, 21 Nov 2019 18:08:41 +0000 (10:08 -0800)]
Fix Gnus summary backtab keybindings to use button-based functions

* lisp/gnus/gnus-sum.el (gnus-summary-mode-map,
  gnus-summary-article-map): Backtab should call
  gnus-summary-button-backward, not gnus-summary-widget-backward.

5 years agoFix file notifications on macOS
Eli Zaretskii [Thu, 21 Nov 2019 14:39:15 +0000 (16:39 +0200)]
Fix file notifications on macOS

* src/kqueue.c (Fkqueue_add_watch): Don't use encoded file
names in objects and APIs that expect decoded multibyte
strings.  (Bug#38287)

5 years agoFix a recent change in ELisp manual
Eli Zaretskii [Thu, 21 Nov 2019 14:35:58 +0000 (16:35 +0200)]
Fix a recent change in ELisp manual

* doc/lispref/objects.texi (Special Read Syntax): Fix wording
of the last change: don't document #' twice.  (Bug#38278)

5 years agoSupport 'vc-region-history' for Mercurial
Eli Zaretskii [Thu, 21 Nov 2019 14:07:19 +0000 (16:07 +0200)]
Support 'vc-region-history' for Mercurial

* lisp/vc/vc-hg.el (vc-hg-region-history)
(vc-hg-region-history-font-lock, vc-hg-region-history-mode):
New functions.
(vc-hg-region-history-mode-map)
(vc-hg--log-view-long-font-lock-keywords)
(vc-hg-region-history-font-lock-keywords): New variables.
* lisp/vc/vc-git.el (vc-git-region-history): Update commentary.

* doc/emacs/maintaining.texi (VC Change Log): Add
'vc-region-history' to the table at beginning of node.  Update
the VCSes that support 'vc-region-history'.

* etc/NEWS: Mention the new feature of vc-hg.el.

5 years agoFix up previous #' documentation addition
Lars Ingebrigtsen [Thu, 21 Nov 2019 13:58:45 +0000 (14:58 +0100)]
Fix up previous #' documentation addition

* doc/lispref/objects.texi (Special Read Syntax): Add an xref for
the #' (bug#38278).

5 years agoDocument the #' syntax
Lars Ingebrigtsen [Thu, 21 Nov 2019 13:55:34 +0000 (14:55 +0100)]
Document the #' syntax

* doc/lispref/objects.texi (Special Read Syntax): Document the #'
syntax (bug#38278).

5 years agoRestore point after sending a message
Lars Ingebrigtsen [Thu, 21 Nov 2019 13:32:56 +0000 (14:32 +0100)]
Restore point after sending a message

* lisp/gnus/message.el (message-send-and-exit): Restore point
after sending (bug#38303).

5 years agoMake pp-buffer into a command
Lars Ingebrigtsen [Thu, 21 Nov 2019 13:09:32 +0000 (14:09 +0100)]
Make pp-buffer into a command

* lisp/emacs-lisp/pp.el (pp-buffer): Make into a command (bug#38306).

5 years agoFix loading image-converter in the case where the type is passed in
Lars Ingebrigtsen [Thu, 21 Nov 2019 13:02:00 +0000 (14:02 +0100)]
Fix loading image-converter in the case where the type is passed in

* lisp/image.el (create-image): Load image-converter when
converting images (bug#38310).

5 years agoRewrite the image-convert doc string
Lars Ingebrigtsen [Thu, 21 Nov 2019 12:59:37 +0000 (13:59 +0100)]
Rewrite the image-convert doc string

* lisp/image/image-converter.el (image-convert): Clarify the
calling convention (bug#38310).

5 years agoHide quoted passwords with spaces in Authinfo
Dario Gjorgjevski [Thu, 21 Nov 2019 12:51:55 +0000 (13:51 +0100)]
Hide quoted passwords with spaces in Authinfo

* lisp/auth-source.el (auth-source-netrc-looking-at-one): New
function, extracted from auth-source-netrc-parse-one.
(auth-source-netrc-parse-one, authinfo--hide-passwords): Use
auth-source-netrc-looking-at-one (bug#38311).

5 years ago* lisp/net/tramp.el (tramp-unload-tramp): Do not enable ange-ftp. (Bug#38025)
Michael Albinus [Thu, 21 Nov 2019 09:35:14 +0000 (10:35 +0100)]
* lisp/net/tramp.el (tramp-unload-tramp): Do not enable ange-ftp.  (Bug#38025)

5 years ago* lisp/image.el: Mouse-wheel scaling on images (bug#38187)
Juri Linkov [Wed, 20 Nov 2019 22:59:49 +0000 (00:59 +0200)]
* lisp/image.el: Mouse-wheel scaling on images (bug#38187)

* lisp/image.el (image-mouse-increase-size)
(image-mouse-decrease-size): New commands.
(image-map): Bind C-wheel-down and C-mouse-5 to
image-mouse-decrease-size, C-wheel-up and C-mouse-4 to
image-mouse-increase-size.

5 years ago* src/sysdep.c: Improve comment wording.
Paul Eggert [Wed, 20 Nov 2019 19:57:17 +0000 (11:57 -0800)]
* src/sysdep.c: Improve comment wording.

5 years ago* etc/NEWS: Improve XDG_RUNTIME_DIR doc.
Paul Eggert [Wed, 20 Nov 2019 19:28:32 +0000 (11:28 -0800)]
* etc/NEWS: Improve XDG_RUNTIME_DIR doc.

5 years agoAdd renaming of remote buffer file names to Tramp
Michael Albinus [Wed, 20 Nov 2019 12:45:30 +0000 (13:45 +0100)]
Add renaming of remote buffer file names to Tramp

* doc/misc/tramp.texi (Default User): Fix typo.
(Cleanup remote connections): Adapt arguments of
`tramp-cleanup-connection'.
(Renaming remote files): New node.
(Frequently Asked Questions): New item "How to save files when a
remote host isn't reachable anymore?".

* etc/NEWS: Add `tramp-rename-files' and `tramp-rename-these-files'.

* lisp/net/tramp-cmds.el (tramp-default-rename-alist)
(tramp-confirm-rename-file-names): New defcustoms.
(tramp-rename-read-file-name-dir)
(tramp-rename-read-file-name-init): New defsubsts.
(tramp-default-rename-file, tramp-rename-files)
(tramp-rename-these-files): New defuns.

* lisp/net/tramp-integration.el (ido, ivy): Integrate with them.

5 years agoMake with-suppressed-warnings work for macros, too
Lars Ingebrigtsen [Wed, 20 Nov 2019 11:28:37 +0000 (12:28 +0100)]
Make with-suppressed-warnings work for macros, too

* lisp/emacs-lisp/macroexp.el (macroexp-macroexpand): Pass the
macro/alias symbol on to byte-compile-warning-enabled-p so that
with-suppressed-warnings works for macros, too.

5 years agoRemove info references to gmane web search
Robert Pluim [Wed, 20 Nov 2019 10:55:42 +0000 (11:55 +0100)]
Remove info references to gmane web search

* doc/misc/gnus.texi (Foreign Groups, Web Searches, What is nnir?):
(Setting up nnir, Associating Engines, The imap Engine):
(Customizations): Remove references to gmane web search.

5 years agoExpand coverage of unit tests for time-stamp
Stephen Gildea [Wed, 20 Nov 2019 05:26:09 +0000 (21:26 -0800)]
Expand coverage of unit tests for time-stamp

* test/lisp/time-stamp-tests.el: Remove redundant word "test"
from the names of all the tests.
(time-stamp-custom-time-zone, time-stamp-custom-pattern,
time-stamp-custom-inserts-lines, time-stamp-custom-count,
time-stamp-helper-safe-locals): New tests

5 years agoMake .pdmp file more reproducible
Paul Eggert [Wed, 20 Nov 2019 02:23:01 +0000 (18:23 -0800)]
Make .pdmp file more reproducible

Problem reported by Ulrich Müller
<https://lists.gnu.org/r/emacs-devel/2019-11/msg00757.html>
and diagnosed by Andreas Schwab
<https://lists.gnu.org/r/emacs-devel/2019-11/msg00774.html>.
* src/sysdep.c (maybe_disable_address_randomization):
Disable ASLR if any kind of dumping, instead of merely if
unexec dumping.  Omit first arg for simplicity; all uses changed.

5 years ago* lisp/icomplete.el (icomplete-fido-kill): Unbreak yes-or-no-p usage
João Távora [Tue, 19 Nov 2019 23:53:10 +0000 (23:53 +0000)]
* lisp/icomplete.el (icomplete-fido-kill): Unbreak yes-or-no-p usage

Discussed in the context of bug#19064, bug#17272.

5 years agoEnsure Rmail summary is updated after editing a message
Eli Zaretskii [Tue, 19 Nov 2019 15:59:02 +0000 (17:59 +0200)]
Ensure Rmail summary is updated after editing a message

* lisp/mail/rmailedit.el (rmail-cease-edit): If this mbox file
has a summary, update the summary after editing.  (Bug#38193)

5 years agoFix updating members of zip archives
Eli Zaretskii [Tue, 19 Nov 2019 15:48:55 +0000 (17:48 +0200)]
Fix updating members of zip archives

* lisp/arc-mode.el (archive-zip-case-fiddle): Change the
default to nil except on MS-DOS.  Update the doc string to
make clear that a non-nil value also affects updating the
archive.  (Bug#38260)

5 years ago; Fix NEWS entry for network-lookup-address-info
Robert Pluim [Tue, 19 Nov 2019 14:28:36 +0000 (15:28 +0100)]
; Fix NEWS entry for network-lookup-address-info

5 years agoRemember the full GTK font description
Robert Pluim [Mon, 18 Nov 2019 09:18:25 +0000 (10:18 +0100)]
Remember the full GTK font description

Remember the full font description instead of just the family so that
size/style/weight settings are preserved.

* gtkutil.c (xg_get_font) [HAVE_GTK3]: Use the pango font
description to set/get the current font (Bug#28901).

5 years agoDon't error when comparing IPv4 and IPv6 addresses
Robert Pluim [Mon, 18 Nov 2019 09:57:55 +0000 (10:57 +0100)]
Don't error when comparing IPv4 and IPv6 addresses

* lisp/net/nsm.el (nsm-network-same-subnet): Compare lengths of
local-ip and ip; different lengths can never match.
(nsm-should-check): Chop port off end of address.

5 years agoAllow eww to display exotic images like webp
Lars Ingebrigtsen [Tue, 19 Nov 2019 10:47:19 +0000 (11:47 +0100)]
Allow eww to display exotic images like webp

* lisp/image.el (image-type): Allow passing in the image type.
(create-image): Make conversion work with data in addition to files.

* lisp/image/image-converter.el (image-convert-p): Allow taking
working on data in addition to files (bug#38036).
(image-convert): Ditto.
(image-converter--convert): Extend signature to say whether we're
getting a file or data.
(image-converter--convert-magick): Convert data.
(image-converter--convert): Ditto.

5 years agoStrip "(fn...)" from output of `describe-mode' (bug#38222)
Juanma Barranquero [Tue, 19 Nov 2019 10:18:48 +0000 (11:18 +0100)]
Strip "(fn...)" from output of `describe-mode' (bug#38222)

* lisp/help.el (help--doc-without-fn): New function.
(describe-mode): Use it.

5 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Tue, 19 Nov 2019 07:19:00 +0000 (08:19 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

5 years ago* lisp/org/org.el (org-mode): Add pcomplete-completions-at-point to capf.
Stefan Monnier [Mon, 18 Nov 2019 22:47:06 +0000 (17:47 -0500)]
* lisp/org/org.el (org-mode): Add pcomplete-completions-at-point to capf.

This lets the normal `completion-at-point` and `complete-symbol`
use `pcomplete` for completion.

(org-mode-map): Leave M-TAB bound to the global default since
`pcomplete` is now obsolete.

5 years ago* lisp/tab-line.el (tab-line-auto-hscroll): New defcustom (bug#37667)
Juri Linkov [Mon, 18 Nov 2019 21:57:16 +0000 (23:57 +0200)]
* lisp/tab-line.el (tab-line-auto-hscroll): New defcustom (bug#37667)

(tab-line-auto-hscroll): Use this option in the function.

5 years ago* lisp/vc/ediff-util.el: Set this-command to ediff-quit (bug#38219)
Juri Linkov [Mon, 18 Nov 2019 21:53:11 +0000 (23:53 +0200)]
* lisp/vc/ediff-util.el: Set this-command to ediff-quit (bug#38219)

* lisp/vc/ediff-util.el (ediff-toggle-read-only, ediff-quit):
Set this-command to the same command after using y-or-n-p
that doesn't guarantee to keep this-command unchanged
to check it later for some contrived logic.

5 years ago; Fix previous commit
Robert Pluim [Mon, 18 Nov 2019 15:35:51 +0000 (16:35 +0100)]
; Fix previous commit

5 years agoCheck for HAVE_GTK3 instead of a specific version
Robert Pluim [Mon, 18 Nov 2019 14:39:54 +0000 (15:39 +0100)]
Check for HAVE_GTK3 instead of a specific version

Our minimum GTK3 version is 3.10, the font filter functions appeared
in 3.2.

* gtkutil.c (xg_font_filter) [HAVE_GTK3]: Just check for HAVE_GTK3.
(xg_get_font) [HAVE_GTK3]: Same here.

5 years ago* lisp/net/tramp.el (tramp-handle-file-regular-p): Improve error handling.
Michael Albinus [Mon, 18 Nov 2019 14:33:21 +0000 (15:33 +0100)]
* lisp/net/tramp.el (tramp-handle-file-regular-p): Improve error handling.

5 years agoFix cl-prettyexpand in the non-FULL case
Lars Ingebrigtsen [Mon, 18 Nov 2019 10:02:27 +0000 (11:02 +0100)]
Fix cl-prettyexpand in the non-FULL case

* lisp/emacs-lisp/cl-extra.el (cl-prettyexpand): This function has
apparently not worked for at least a couple of decades
(bug#38206) unless supplied with a FULL parameter.  Make the FULL
parameter obsolete and make the function always work as it did
with a non-nil FULL.

5 years agoMerge branch 'scratch/so-long-updates'
Phil Sainty [Mon, 18 Nov 2019 08:27:13 +0000 (21:27 +1300)]
Merge branch 'scratch/so-long-updates'

5 years agolisp/so-long.el: Refactor menu action commands
Phil Sainty [Sat, 16 Nov 2019 02:48:44 +0000 (15:48 +1300)]
lisp/so-long.el: Refactor menu action commands

* lisp/so-long.el (so-long-menu): Call `so-long' with an ACTION
argument instead of using `so-long-menu-item-replace-action'.
(so-long-menu-item-replace-action): Remove the deprecated function.

* test/lisp/so-long-tests/so-long-tests.el
(so-long-tests-so-long-menu-item-replace-action): Update the test.

5 years ago* lisp/so-long.el (so-long): Firstly revert the existing action, if any
Phil Sainty [Sat, 16 Nov 2019 13:11:20 +0000 (02:11 +1300)]
* lisp/so-long.el (so-long): Firstly revert the existing action, if any

This makes `so-long' consistent with the action commands in the menu.

If multiple actions were to be layered on top of one another, we would
lose the ability to revert to the normal state.  Custom actions
combining multiple other actions can be defined if necessary.

5 years agolisp/so-long.el: Use (interactive "@") for menu commands
Stefan Monnier [Sat, 16 Nov 2019 01:39:00 +0000 (14:39 +1300)]
lisp/so-long.el: Use (interactive "@") for menu commands

* lisp/so-long.el (so-long-menu, so-long-menu-item-replace-action)
(so-long-revert): Use interactive code "@", replacing all uses of
`so-long-menu-click-window'.  This approach leaves the window selected
afterwards, whereas the old code did not; but that is not a problem.
(so-long-menu-click-window, so-long-menu-item-revert): Remove the
deprecated functions.

* test/lisp/so-long-tests/so-long-tests.el
(so-long-tests-so-long-menu-item-replace-action): Update the test.

Co-authored-by: Phil Sainty <psainty@orcon.net.nz>
5 years ago; * lisp/so-long.el: Use declare-function nearer the code that needs it
Stefan Monnier [Sat, 16 Nov 2019 01:35:36 +0000 (14:35 +1300)]
; * lisp/so-long.el: Use declare-function nearer the code that needs it

5 years ago; * lisp/so-long.el: Use function quoting in example configuration
Stefan Monnier [Sat, 16 Nov 2019 01:35:07 +0000 (14:35 +1300)]
; * lisp/so-long.el: Use function quoting in example configuration

5 years ago; * lisp/so-long.el: Delete redundant :group declarations
Stefan Monnier [Sat, 16 Nov 2019 01:32:09 +0000 (14:32 +1300)]
; * lisp/so-long.el: Delete redundant :group declarations

Refer to (elisp) Common Keywords:

> If this keyword is missing from a customization item, it’ll be
> placed in the same group that was last defined (in the current file).

5 years agoRemove the error-out test for with_harfbuzz
Lars Ingebrigtsen [Mon, 18 Nov 2019 07:24:52 +0000 (08:24 +0100)]
Remove the error-out test for with_harfbuzz

* configure.ac (HAVE_HARFBUZZ): Remove the check for explicit
harfbuzz -- have_harfbuzz defaults to "yes", so we have no way of
checking whether the user really asked for it, apparently.

5 years ago* lisp/simple.el (process-file): Clarify doc string.
Paul Eggert [Sun, 17 Nov 2019 23:26:55 +0000 (15:26 -0800)]
* lisp/simple.el (process-file): Clarify doc string.

5 years ago* lisp/tmm.el (tmm-add-one-shortcut): Use dolist
Stefan Monnier [Sun, 17 Nov 2019 22:34:50 +0000 (17:34 -0500)]
* lisp/tmm.el (tmm-add-one-shortcut): Use dolist

5 years ago* lisp/subr.el (read-char-from-minibuffer, y-or-n-p): Remove discard-input.
Juri Linkov [Sun, 17 Nov 2019 21:51:55 +0000 (23:51 +0200)]
* lisp/subr.el (read-char-from-minibuffer, y-or-n-p): Remove discard-input.

(do-after-load-evaluation): Replace run-with-timer with run-with-idle-timer
to give a chance for the minibuffer to handle initial events before sit-for.
https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00581.html

5 years agoAuto-scrolling in tab-line (bug#37667)
Juri Linkov [Sun, 17 Nov 2019 21:43:28 +0000 (23:43 +0200)]
Auto-scrolling in tab-line (bug#37667)

* lisp/tab-line.el (tab-line-auto-hscroll): New function.
(tab-line-format): Use tab-line-auto-hscroll.

5 years agoError out on --with-harfbuzz without HarfBuzz support
Lars Ingebrigtsen [Sun, 17 Nov 2019 18:02:54 +0000 (19:02 +0100)]
Error out on --with-harfbuzz without HarfBuzz support

* configure.ac: Error out if the user says --with-harfbuzz, but
HarfBuzz isn't available.

5 years agoHandle FC_CHARCELL in xftfont_open
Lars Ingebrigtsen [Sun, 17 Nov 2019 16:32:37 +0000 (17:32 +0100)]
Handle FC_CHARCELL in xftfont_open

* src/xftfont.c (xftfont_open): FC_CHARCELL is apparently an alias
for FC_DUAL used in some east Asian fonts (bug#35079).  Modelled
after a patch suggested by Kenichi Handa.

5 years agoSupport more font weight values on MS-Windows
Eli Zaretskii [Sun, 17 Nov 2019 16:19:18 +0000 (18:19 +0200)]
Support more font weight values on MS-Windows

* src/w32font.c (w32_to_fc_weight): Support a few more weight
values, for compatibility with the GTK font selection widget
(see gtkutil.c:XG_WEIGHT_TO_SYMBOL).  (Bug#24226)

5 years agoCompilation Mode: Fix arrow handling when compilation-context-lines is t
Alan Mackenzie [Sun, 17 Nov 2019 14:59:42 +0000 (14:59 +0000)]
Compilation Mode: Fix arrow handling when compilation-context-lines is t

In particular, fix some exception occurrences, fix handling of a Compilation
Mode buffer being displayed in several windows, and fix the margin when
temporarily displaying a different buffer in a window, then returning to the
compilation mode buffer.  The fix is relevant for frames without fringes,
e.g. tty frames.

* lisp/progmodes/compile.el: (compilation-set-window): Always set point to
(parameter) MK.
(compilation--set-up-margin, compilation--tear-down-margin): New functions.
(compilation--set-up-arrow-spec-in-margins)
(compilation--tear-down-arrow-spec-in-margins): Renamed by introducing -- and
pluralising margin to margins.  Handle the margins in _all_ windows displaying
the pertinent buffer by using get-buffer-window-list.  In ...--set-up-... add
compilation--set-up-margin to window-buffer-change-functions.  In
...--tear-down-... remove the hook functions added in ...--set-up-....

5 years agoMake ido-read-file-name respect ido-read-file-name-non-ido more
Lars Ingebrigtsen [Sun, 17 Nov 2019 09:40:11 +0000 (10:40 +0100)]
Make ido-read-file-name respect ido-read-file-name-non-ido more

* lisp/ido.el (ido-read-file-name): Respect
ido-read-file-name-non-ido in the file-directory-p case, too
(bug#38231).

5 years agoMake tables more resistant to major mode changes
Lars Ingebrigtsen [Sun, 17 Nov 2019 09:06:28 +0000 (10:06 +0100)]
Make tables more resistant to major mode changes

* lisp/textmodes/table.el (table--put-cell-face-property)
(table--remove-cell-properties): Ensure that we don't lose the
table face when switching from buffers with font locking to ones
without (or vice versa) (bug#35481).

5 years agoMake bibtex-parse-keys more robust
Lars Ingebrigtsen [Sun, 17 Nov 2019 08:15:20 +0000 (09:15 +0100)]
Make bibtex-parse-keys more robust

* lisp/textmodes/bibtex.el (bibtex-parse-keys): Protect against
bugging out just when starting almost-empty bibtex files
(bug#30112).

5 years ago; Grammar in simple.el doc strings and comments
Stephen Gildea [Sun, 17 Nov 2019 05:17:02 +0000 (21:17 -0800)]
; Grammar in simple.el doc strings and comments

* lisp/simple.el: Improve the English grammar in some doc strings
and comments.

5 years ago* lisp/tab-bar.el: Add missing arg.
Juri Linkov [Sat, 16 Nov 2019 22:19:42 +0000 (00:19 +0200)]
* lisp/tab-bar.el: Add missing arg.

* lisp/tab-bar.el (tab-bar-list-next-line)
(tab-bar-list-prev-line): Add missing interactive spec for prefix arg.

* lisp/mouse.el (mouse-buffer-menu-mode-groups): Add "Git" regexp
to match "Git-Region-History" mode name for "Version Control" group.

5 years ago* lisp/simple.el (eval-expression-print-maximum-character): Use choice type.
Juri Linkov [Sat, 16 Nov 2019 22:10:19 +0000 (00:10 +0200)]
* lisp/simple.el (eval-expression-print-maximum-character): Use choice type.

https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00433.html

5 years ago* lisp/dired.el (dired-dwim-target): Add choice dired-dwim-target-next-visible
Juri Linkov [Sat, 16 Nov 2019 22:06:16 +0000 (00:06 +0200)]
* lisp/dired.el (dired-dwim-target): Add choice dired-dwim-target-next-visible

* lisp/dired-aux.el (dired-dwim-target-next): Add arg ALL-FRAMES.
(dired-dwim-target-next-visible): New function.

* doc/emacs/dired.texi (Operating on Files): Describe function value
of dired-dwim-target.  (Bug#35385)

5 years agoFix display of R2L text
Eli Zaretskii [Sat, 16 Nov 2019 19:37:41 +0000 (21:37 +0200)]
Fix display of R2L text

* src/xdisp.c (extend_face_to_end_of_line): Fix padding of R2L
screen lines with stretch glyph on the left.  (Bug#38233)

5 years agoFix moving files with duplicate names to trash-can
Shingo Tanaka [Fri, 25 Oct 2019 13:59:28 +0000 (22:59 +0900)]
Fix moving files with duplicate names to trash-can

* lisp/files.el (move-file-to-trash): Fix file name in
trash-can when another deleted file under the same name is
already stored there.  (Bug#37922)

Copyright-paperwork-exempt: yes.

5 years agoDo not report move frame events for tooltip frames (Bug#38213)
Martin Rudalics [Sat, 16 Nov 2019 08:04:53 +0000 (09:04 +0100)]
Do not report move frame events for tooltip frames (Bug#38213)

* src/w32term.c (w32_read_socket):
* src/xterm.c (handle_one_xevent): Do not report move frame events
for tooltip frames (Bug#38213).

5 years agotex-mode: paragraph separator groups text and comments
Michael Orlitzky [Sat, 16 Nov 2019 07:15:48 +0000 (08:15 +0100)]
tex-mode: paragraph separator groups text and comments

* lisp/textmodes/tex-mode.el (latex-mode): Don't wrap text with
leading spaces into preceding comments (bug#38152).

Copyright-paperwork-exempt: yes