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.
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.
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.
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.
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.
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)
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.
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.
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.
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.
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)
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)
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.
João Távora [Sat, 23 Nov 2019 00:30:49 +0000 (00:30 +0000)]
* lisp/minibuffer.el (completion-flex-nospace): Default to t.
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.
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.
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.
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.
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).
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)
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).
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).
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.
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.
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).
Stefan Monnier [Thu, 21 Nov 2019 22:53:02 +0000 (17:53 -0500)]
* lisp/minibuffer.el (completions-common-part): Make it blue when possible
Stefan Monnier [Thu, 21 Nov 2019 22:39:38 +0000 (17:39 -0500)]
* lisp/files.el (locate-file-completion-table): Fix typo
Thierry Volpiatto [Thu, 21 Nov 2019 20:01:53 +0000 (21:01 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
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.
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.
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.
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)
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)
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.
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).
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).
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).
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).
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).
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).
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).
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)
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.
Paul Eggert [Wed, 20 Nov 2019 19:57:17 +0000 (11:57 -0800)]
* src/sysdep.c: Improve comment wording.
Paul Eggert [Wed, 20 Nov 2019 19:28:32 +0000 (11:28 -0800)]
* etc/NEWS: Improve XDG_RUNTIME_DIR doc.
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.
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.
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.
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
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.
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.
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)
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)
Robert Pluim [Tue, 19 Nov 2019 14:28:36 +0000 (15:28 +0100)]
; Fix NEWS entry for network-lookup-address-info
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).
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.
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.
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.
Michael Albinus [Tue, 19 Nov 2019 07:19:00 +0000 (08:19 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
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.
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.
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.
Robert Pluim [Mon, 18 Nov 2019 15:35:51 +0000 (16:35 +0100)]
; Fix previous commit
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.
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.
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.
Phil Sainty [Mon, 18 Nov 2019 08:27:13 +0000 (21:27 +1300)]
Merge branch 'scratch/so-long-updates'
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.
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.
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>
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
Stefan Monnier [Sat, 16 Nov 2019 01:35:07 +0000 (14:35 +1300)]
; * lisp/so-long.el: Use function quoting in example configuration
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).
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.
Paul Eggert [Sun, 17 Nov 2019 23:26:55 +0000 (15:26 -0800)]
* lisp/simple.el (process-file): Clarify doc string.
Stefan Monnier [Sun, 17 Nov 2019 22:34:50 +0000 (17:34 -0500)]
* lisp/tmm.el (tmm-add-one-shortcut): Use dolist
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
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.
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.
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.
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)
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-....
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).
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).
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).
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.
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.
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
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)
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)
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.
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).
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
Lars Ingebrigtsen [Sat, 16 Nov 2019 05:11:56 +0000 (06:11 +0100)]
Don't move point on undefined keystrokes in the article buffer
* lisp/gnus/gnus-art.el (gnus-article-read-summary-keys): Don't
move point on undefined commands (bug#38227).
Lars Ingebrigtsen [Sat, 16 Nov 2019 04:33:17 +0000 (05:33 +0100)]
Make button-1 work on all Gnus buttons
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-insert-button):
* lisp/gnus/gnus-art.el (gnus-insert-mime-button)
(gnus-mime-display-alternative, gnus-insert-prev-page-button)
(gnus-insert-next-page-button)
(gnus-insert-mime-security-button): Make button-1 work on all the
Gnus buttons (bug#38144).
Lars Ingebrigtsen [Sat, 16 Nov 2019 04:27:33 +0000 (05:27 +0100)]
Make it clear what edebug-remove-instrumentation offers
* doc/lispref/edebug.texi (Instrumenting): Reword the description
of the edebug-remove-instrumentation command.
Paul Eggert [Sat, 16 Nov 2019 02:40:45 +0000 (18:40 -0800)]
Port new float-scaling code to Solaris
* src/floatfns.c (double_integer_scale): Simplify, so that the
function works when (FP_ILOGBNAN == INT_MAX && FP_ILOGB0 == INT_MIN),
as on Solaris.
Phil Sainty [Fri, 15 Nov 2019 23:12:36 +0000 (12:12 +1300)]
; * lisp/so-long.el: Silence byte-compiler warnings
João Távora [Fri, 15 Nov 2019 20:27:18 +0000 (20:27 +0000)]
Make icomplete-tidy-shadowed-file-names less aggressive
When using this option and editing input, some transient situations
may arise that lead to file-name shadowing, but that shouldn't
necessarily lead to auto-delete behaviour, which will be suprising.
In '/foo/x/bar', if the user deletes the 'x', shadowing occurs, but
probably shouldn't. So, somewhat like ido-mode, only auto-tidy
shadowed file names if the user is inserting text at end of input.
* lisp/icomplete.el (icomplete-exhibit): Check this-command.
(icomplete-tidy-shadowed-file-names): Tweak docstring.
Stefan Monnier [Fri, 15 Nov 2019 18:19:21 +0000 (13:19 -0500)]
* lisp/progmodes/perl-mode.el (perl-calculate-indent): Indent qw(...)
Fix initialization of `state`.
Special-case `qw(...)` because we do want to indent its contents.