]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years agoUpdating docs with all special window prefix keys.
Jared Finder [Sun, 4 Oct 2020 07:01:23 +0000 (00:01 -0700)]
Updating docs with all special window prefix keys.

* doc/lispref/commands.texi (Key Sequence Input): Add documentation for
missing special window areas.  Explicitly call out window or frame.

4 years agoFix unit tests broken by changes to xt-mouse.el
Jared Finder [Sat, 24 Oct 2020 15:25:06 +0000 (08:25 -0700)]
Fix unit tests broken by changes to xt-mouse.el

* test/lisp/xt-mouse-tests.el (xt-mouse-tracking-basic)
(xt-mouse-tracking-utf-8): Update expected escape sequence.

4 years agoRevert "Temporarily mark two failing tests"
Eli Zaretskii [Sat, 31 Oct 2020 07:56:14 +0000 (09:56 +0200)]
Revert "Temporarily mark two failing tests"

This reverts commit a8426f46726d94cdf21c0e6b3c85c0afe0064784.
A proper fix for the test is about to be installed shortly.

4 years agoMake hideshow.el work with Mhtml mode
Thien-Thi Nguyen [Sat, 31 Oct 2020 02:40:11 +0000 (22:40 -0400)]
Make hideshow.el work with Mhtml mode

Suggested by Ian Williams <norbekian9@gmail.com>.

* lisp/textmodes/mhtml-mode.el: Require ‘pcase’ when compiling.
(mhtml-forward): New func.
* lisp/progmodes/hideshow.el (hs-special-modes-alist):
Add entry for ‘mhtml-mode’.

4 years agoShoosh byte-compilation warning in lisp/emacs-lisp/eldoc.el
João Távora [Fri, 30 Oct 2020 22:09:36 +0000 (22:09 +0000)]
Shoosh byte-compilation warning in lisp/emacs-lisp/eldoc.el

Per bug#43609, elisp-eldoc-documentation-function is again in master,
but since it's now officially obsoleted, this backward compatibility
shim in eldoc--eval-expression-setup shouldn't unnecessarily trigger
warnings in master's code.

* lisp/emacs-lisp/eldoc.el (eldoc--eval-expression-setup): Shoosh
by-compilation warning.

4 years agoDon't make ElDoc doc buffer visible in buffer list by default
João Távora [Fri, 30 Oct 2020 21:47:44 +0000 (21:47 +0000)]
Don't make ElDoc doc buffer visible in buffer list by default

Fixes: bug#44334
* lisp/emacs-lisp/eldoc.el (eldoc-doc-buffer): No longer take
INTERACTIVE arg.  Show buffer if invisible.
(eldoc--format-doc-buffer): Don't change buffer visibility.
(eldoc-display-in-buffer): Show buffer if invisible if by calling
eldoc-doc-buffer.

4 years agoBring back elisp-eldoc-documentation-function, marked obsolete
João Távora [Fri, 30 Oct 2020 18:43:20 +0000 (18:43 +0000)]
Bring back elisp-eldoc-documentation-function, marked obsolete

Fixes: bug#43609
It's not useful for ElDoc's eldoc-mode mechanism in Elisp, and nothing
in Emacs uses it, but it wasn't strictly marked internal, so it's best
to bring it back.

* lisp/progmodes/elisp-mode.el (elisp--documentation-one-liner):
New helper.
(elisp-eldoc-documentation-function): New function, with
obsoletion warning.

4 years ago* lisp/simple.el (blink-matching-open): Fix bug#37127
Stefan Monnier [Fri, 30 Oct 2020 22:10:06 +0000 (18:10 -0400)]
* lisp/simple.el (blink-matching-open): Fix bug#37127

Don't call `syntax-propertize` from within narrowing

* lisp/progmodes/cperl-mode.el (cperl-forward-re): Revert last patch,
since it is now redundant.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-bug37127):
Remove unused var; fix test so it really catches the previous bug;
tweak the code to use mode-agnostic commands so it also works in `perl-mode`.

4 years agoFix Bug#44289
Michael Albinus [Fri, 30 Oct 2020 19:40:49 +0000 (20:40 +0100)]
Fix Bug#44289

* lisp/files.el (directory-listing-before-filename-regexp):
Support DD-MMM-YYYY format.  (Bug#44289)

4 years agoTweak previous python-mode region fix
Lars Ingebrigtsen [Fri, 30 Oct 2020 15:15:42 +0000 (16:15 +0100)]
Tweak previous python-mode region fix

* lisp/progmodes/python.el (python-shell-buffer-substring): Tweak
the previous fix for bug#39398 to behave somewhat more like it
used to.

4 years agoRevert "Adjust python tests after fix for bug#39398"
Lars Ingebrigtsen [Fri, 30 Oct 2020 15:10:57 +0000 (16:10 +0100)]
Revert "Adjust python tests after fix for bug#39398"

This reverts commit c6fb23873a594b6a4fc57fa107869a2e82159d07.

The code is tweaked to be more backwards-compatible.

4 years agoFix copying symbolic links in eshell
Lars Ingebrigtsen [Fri, 30 Oct 2020 15:07:21 +0000 (16:07 +0100)]
Fix copying symbolic links in eshell

* lisp/eshell/em-unix.el (eshell-shuffle-files): Don't bug out
when copying symbolic links (bug#38577).

4 years ago; Fix typo in my last commit
Stefan Kangas [Fri, 30 Oct 2020 13:15:45 +0000 (14:15 +0100)]
; Fix typo in my last commit

* test/lisp/emacs-lisp/text-property-search-tests.el
(text-property-search--pos-test): Fix typo.

4 years agoAdd a new command to regenerate a hunk in diff-mode
Dima Kogan [Fri, 30 Oct 2020 13:04:06 +0000 (14:04 +0100)]
Add a new command to regenerate a hunk in diff-mode

* lisp/vc/diff-mode.el (diff-refresh-hunk): New function (bug#44312).
(diff-mode-map): Bind C-c C-l.

4 years agoFix fontifying of ::= in Makefiles
Lars Ingebrigtsen [Fri, 30 Oct 2020 12:50:49 +0000 (13:50 +0100)]
Fix fontifying of ::= in Makefiles

* lisp/progmodes/make-mode.el (makefile-match-dependency): Don't
fontify the POSIX immediate assignment operator ::= as a
dependency (bug#44319).

4 years agoSuppress a misleading message when closing a paren in a regex
Harald Jörg [Fri, 30 Oct 2020 12:23:52 +0000 (13:23 +0100)]
Suppress a misleading message when closing a paren in a regex

* lisp/progmodes/cperl-mode.el (cperl-forward-re): Suppress an
error message about "End of string/RE not found" when we are
at the end of a narrowed buffer where the end of a RE is
temporarily unavailable (Bug#37127).

* test/lisp/progmodes/cperl-mode-tests.el (cperl-bug37127):
Add a test to verify that the message is suppressed when
inappropriate, but appears when the RE *is* incomplete.

4 years agoClarify point position after text-property-search
Stefan Kangas [Fri, 30 Oct 2020 11:48:30 +0000 (12:48 +0100)]
Clarify point position after text-property-search

* lisp/emacs-lisp/text-property-search.el
(text-property-search-forward, text-property-search-backward): Doc fix
to clarify placement of point after search.
* test/lisp/emacs-lisp/text-property-search-tests.el
(text-property-search--pos-test): New defun.
(text-property-search-forward-point-at-beginning)
(text-property-search-backward-point-at-end): New test.

4 years agoTweak the gdb-mi error message
Lars Ingebrigtsen [Fri, 30 Oct 2020 12:18:47 +0000 (13:18 +0100)]
Tweak the gdb-mi error message

* lisp/progmodes/gdb-mi.el (gdb--check-interpreter): Make the
error message less misleading (bug#40279).

4 years agoUse nobreak-space on all non-ASCII whitespace characters
Neil Roberts [Fri, 30 Oct 2020 12:13:31 +0000 (13:13 +0100)]
Use nobreak-space on all non-ASCII whitespace characters

* doc/emacs/display.texi (Text Display): Document it.

* src/xdisp.c (get_next_display_element): Use blankp to test whether
to use the nobreak_space face (bug#44236).

4 years agoMake list-timers do sub-second times
Lars Ingebrigtsen [Fri, 30 Oct 2020 11:10:48 +0000 (12:10 +0100)]
Make list-timers do sub-second times

* lisp/emacs-lisp/timer-list.el (list-timers): Do sub-second times
(bug#39956).

4 years ago`format-time' can now do sub-second times
Lars Ingebrigtsen [Fri, 30 Oct 2020 11:10:17 +0000 (12:10 +0100)]
`format-time' can now do sub-second times

* doc/lispref/os.texi (Time Parsing): Document it.

* lisp/calendar/time-date.el (format-seconds): Allow formatting
sub-second times.

4 years ago; Remove spurious FIXMEs in my last commit
Stefan Kangas [Fri, 30 Oct 2020 10:41:47 +0000 (11:41 +0100)]
; Remove spurious FIXMEs in my last commit

4 years agoAdd shortdoc navigation commands
Stefan Kangas [Wed, 28 Oct 2020 15:43:32 +0000 (16:43 +0100)]
Add shortdoc navigation commands

* lisp/emacs-lisp/shortdoc.el (text-property-search): Require.
(shortdoc-mode): New major mode.
(shortdoc-mode-map): New variable.
(shortdoc--goto-section): New macro.
(shortdoc-next, shortdoc-previous, shortdoc-next-section)
(shortdoc-previous-section): New commands.
(shortdoc-display-group): Use new shortdoc-models.  Propertize
section header.
(shortdoc--display-function): Propertize function header.

4 years ago* test/lisp/net/dbus-tests.el (dbus-test09-get-managed-objects): Expand test.
Hugh Daschbach [Fri, 30 Oct 2020 07:59:11 +0000 (08:59 +0100)]
* test/lisp/net/dbus-tests.el (dbus-test09-get-managed-objects): Expand test.

4 years ago* lisp/mail/binhex.el (binhex-char-int): Add missing release
Stefan Monnier [Fri, 30 Oct 2020 02:40:03 +0000 (22:40 -0400)]
* lisp/mail/binhex.el (binhex-char-int): Add missing release

4 years agoRemove Debbugs 'thanks' from submit-emacs-patch
Basil L. Contovounesios [Fri, 30 Oct 2020 00:05:10 +0000 (00:05 +0000)]
Remove Debbugs 'thanks' from submit-emacs-patch

* lisp/mail/emacsbug.el (submit-emacs-patch): Remove unneeded
'thanks' following Debbugs pseudo-header, which leaves other
pseudo-headers entered by the user unprocessed (bug#44322).

4 years agoModify only local send hook in submit-emacs-patch
Basil L. Contovounesios [Thu, 29 Oct 2020 23:33:29 +0000 (23:33 +0000)]
Modify only local send hook in submit-emacs-patch

* lisp/mail/emacsbug.el (submit-emacs-patch): Don't modify global
message-send-hook.

4 years agocperl-mode: Make timeout test more robust
Harald Jörg [Thu, 29 Oct 2020 21:06:56 +0000 (22:06 +0100)]
cperl-mode: Make timeout test more robust

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-mode-test-bug-10483): Increase the timeout to 2 seconds
and mark the test as expensive.  Also, suppress it for Emacs
versions below 28, where the test times out though the function
works in manual tests.  (Bug#44317)

4 years agoSimplify some bibtex.el variable definitions
Basil L. Contovounesios [Thu, 29 Oct 2020 20:42:31 +0000 (20:42 +0000)]
Simplify some bibtex.el variable definitions

* lisp/textmodes/bibtex.el (bibtex-include-OPTkey)
(bibtex-user-optional-fields, bibtex-BibTeX-entry-alist)
(bibtex-biblatex-entry-alist, bibtex-generate-url-list): Use :risky
tag instead of risky-local-variable property.

(bibtex-entry-format, bibtex-maintain-sorted-entries)
(bibtex-sort-entry-class, bibtex-dialect)
(bibtex-autokey-name-case-convert-function): Use :safe tag instead
of safe-local-variable property.

(bibtex-autokey-name-case-convert-function): Let custom function
default to 'identity', not 'ignore'.

(bibtex-strings, bibtex-reference-keys): Define with defvar-local
instead of defvar+make-variable-buffer-local.

4 years ago* lisp/reposition.el: Use lexical-binding.
Stefan Kangas [Thu, 29 Oct 2020 18:20:47 +0000 (19:20 +0100)]
* lisp/reposition.el: Use lexical-binding.

4 years ago* lisp/progmodes/tcl.el: Better match Tcl string formation rules (bug#39277)
Stefan Monnier [Thu, 29 Oct 2020 17:38:59 +0000 (13:38 -0400)]
* lisp/progmodes/tcl.el: Better match Tcl string formation rules (bug#39277)

(tcl--word-delimiters): New const.
(tcl--syntax-of-quote): New function.
(tcl-syntax-propertize-function): Use them.
(tcl-mode): Enable `syntax-propertize-multiline`.

* test/manual/indent/tcl.tcl: New file.

4 years agoHandle several children of PATH in dbus-managed-objects-handler
Michael Albinus [Thu, 29 Oct 2020 15:56:40 +0000 (16:56 +0100)]
Handle several children of PATH in dbus-managed-objects-handler

* lisp/net/dbus.el (dbus-managed-objects-handler): Handle several
children of PATH.  (Bug#44298)

* src/dbusbind.c (xd_signature, xd_append_arg): Check object path.

* test/lisp/net/dbus-tests.el (dbus-test09-get-managed-objects):
Tag it :expensive-test.  Remove superfluous check.

4 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Thu, 29 Oct 2020 15:55:12 +0000 (16:55 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

4 years agoFix CUA Mode menu entry to be less confusing
Stefan Kangas [Thu, 29 Oct 2020 14:45:07 +0000 (15:45 +0100)]
Fix CUA Mode menu entry to be less confusing

Note that the old text was incorrect; shift-selection is controlled by
the variable shift-select-mode.

* lisp/menu-bar.el (menu-bar-options-menu): Make CUA Mode menu entry
less confusing when cua-enable-cua-keys is nil.  (Bug#43322)

4 years agoTweak previous article-treat-ansi-sequences fix
Lars Ingebrigtsen [Thu, 29 Oct 2020 11:38:13 +0000 (12:38 +0100)]
Tweak previous article-treat-ansi-sequences fix

* lisp/gnus/gnus-art.el (article-treat-ansi-sequences): Redo the
previous fix to avoid a compilation warning (bug#44299).

4 years ago* test/lisp/net/dbus-tests.el (dbus-test09-get-managed-objects): New test.
Hugh Daschbach [Thu, 29 Oct 2020 11:16:45 +0000 (12:16 +0100)]
* test/lisp/net/dbus-tests.el (dbus-test09-get-managed-objects): New test.

4 years agoDon't spill ansi-color across parts in articles
Andreas Schwab [Thu, 29 Oct 2020 09:15:40 +0000 (10:15 +0100)]
Don't spill ansi-color across parts in articles

* lisp/gnus/gnus-art.el (article-treat-ansi-sequences): Reset
ansi-color-context-region.  (Bug#44299)

4 years ago* lisp/bindings.el (narrow-map): Bind C-x n g to goto-line-relative (bug#9917)
Juri Linkov [Thu, 29 Oct 2020 09:18:33 +0000 (11:18 +0200)]
* lisp/bindings.el (narrow-map): Bind C-x n g to goto-line-relative (bug#9917)

4 years agoWiden buffer before going to point found by xref-find-definitions (bug#44294)
Juri Linkov [Thu, 29 Oct 2020 09:09:20 +0000 (11:09 +0200)]
Widen buffer before going to point found by xref-find-definitions (bug#44294)

* lisp/progmodes/elisp-mode.el (xref-location-marker): Widen before going
to the found position.

* lisp/progmodes/etags.el (etags-goto-tag-location): Rerun after removing
narrowing.

* lisp/simple.el (goto-line-read-args): Use buffer-narrowed-p.

4 years ago; * lisp/emacs-lisp/shortdoc.el (regexp): less contrived rx example
Mattias Engdegård [Wed, 28 Oct 2020 14:05:35 +0000 (15:05 +0100)]
; * lisp/emacs-lisp/shortdoc.el (regexp): less contrived rx example

4 years agoRun substitute-command-keys on shortdoc section headings
Stefan Kangas [Wed, 28 Oct 2020 13:46:43 +0000 (14:46 +0100)]
Run substitute-command-keys on shortdoc section headings

* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Run
substitute-command-keys on section headings before displaying.

4 years agoExtend the regexp shortdoc group
Stefan Kangas [Wed, 28 Oct 2020 13:46:28 +0000 (14:46 +0100)]
Extend the regexp shortdoc group

* lisp/emacs-lisp/shortdoc.el (regexp): New section "Match Data"; add
save-match-data.  New section "The `rx' Structured Regexp Notation".

4 years agoDocument all parameters on `indent-relative'
Lars Ingebrigtsen [Wed, 28 Oct 2020 11:47:00 +0000 (12:47 +0100)]
Document all parameters on `indent-relative'

* doc/lispref/text.texi (Relative Indent): Mention the FIRST-ONLY
parameter (bug#39330).

4 years agoDisable mml-sec-tests on MacOS
Lars Ingebrigtsen [Wed, 28 Oct 2020 10:54:53 +0000 (11:54 +0100)]
Disable mml-sec-tests on MacOS

* test/lisp/gnus/mml-sec-tests.el (test-conf): Disable tests on
MacOS (bug#44259).

4 years agoDisplay times in a more human-readable way in list-timers
Lars Ingebrigtsen [Wed, 28 Oct 2020 09:07:03 +0000 (10:07 +0100)]
Display times in a more human-readable way in list-timers

* lisp/emacs-lisp/timer-list.el (list-timers): Format the
intervals in a more human-readable way (bug#39956).

4 years ago* lisp/net/hmac-def.el: Use lexical-binding.
Stefan Kangas [Wed, 28 Oct 2020 08:49:59 +0000 (09:49 +0100)]
* lisp/net/hmac-def.el: Use lexical-binding.

4 years agoAdjust python tests after fix for bug#39398
Lars Ingebrigtsen [Wed, 28 Oct 2020 08:13:53 +0000 (09:13 +0100)]
Adjust python tests after fix for bug#39398

4 years ago* lisp/net/eudc-vars.el: Use lexical-binding.
Stefan Kangas [Wed, 28 Oct 2020 05:04:21 +0000 (06:04 +0100)]
* lisp/net/eudc-vars.el: Use lexical-binding.

4 years ago; Fix license statement in several files
Stefan Kangas [Wed, 28 Oct 2020 02:41:55 +0000 (03:41 +0100)]
; Fix license statement in several files

Add the line "This file is part of GNU Emacs."

4 years agoUse lexical-binding in netrc.el and add tests
Stefan Kangas [Wed, 28 Oct 2020 02:22:12 +0000 (03:22 +0100)]
Use lexical-binding in netrc.el and add tests

* lisp/net/netrc.el: Use lexical-binding.
(netrc-file): Remove redundant :group arg.
* test/lisp/net/netrc-resources/authinfo:
* test/lisp/net/netrc-resources/services:
* test/lisp/net/netrc-tests.el: New files.

4 years agoWarn against using the MD4 hash function
Stefan Kangas [Wed, 28 Oct 2020 01:37:18 +0000 (02:37 +0100)]
Warn against using the MD4 hash function

* lisp/md4.el (md4): Warn against using it, since its security is
non-existent and it has been declared obsolete.  It should probably
only be used by our NTLM support.  Point users to secure-hash instead.

4 years agocss--complete-property-value: Limit the backward search
Dmitry Gutov [Wed, 28 Oct 2020 01:43:47 +0000 (03:43 +0200)]
css--complete-property-value: Limit the backward search

* lisp/textmodes/css-mode.el (css--complete-property-value):
Don't search back when ppss-innermost-start is nil (bug#44214).

4 years agoRemove Emacs 20 compat code from ede/files.el
Stefan Kangas [Wed, 28 Oct 2020 01:08:39 +0000 (02:08 +0100)]
Remove Emacs 20 compat code from ede/files.el

* lisp/cedet/ede/files.el (ede--put-inode-dir-hash)
(ede--get-inode-dir-hash, ede-project-directory-remove-hash)
(ede--directory-project-from-hash)
(ede--directory-project-add-description-to-hash): Remove Emacs 20
compat code.

4 years agoRemove some compat code from feedmail.el
Stefan Kangas [Wed, 28 Oct 2020 01:07:05 +0000 (02:07 +0100)]
Remove some compat code from feedmail.el

* lisp/mail/feedmail.el (feedmail-message-action-help-blat)
(feedmail-run-the-queue, feedmail-queue-send-edit-prompt-inner)
(feedmail-send-it-immediately): Remove compat code for XEmacs,
Emacs 19 and 20.

4 years agoRemove some Emacs 20 compat code from speedbar.el
Stefan Kangas [Tue, 27 Oct 2020 21:32:37 +0000 (22:32 +0100)]
Remove some Emacs 20 compat code from speedbar.el

* lisp/speedbar.el (speedbar-easymenu-definition-trailer): Remove
Emacs 20 compat code.

4 years agoTweak how `C-c C-r' computes the region in python-mode
Lars Ingebrigtsen [Tue, 27 Oct 2020 19:29:08 +0000 (20:29 +0100)]
Tweak how `C-c C-r' computes the region in python-mode

* lisp/progmodes/python.el (python-shell-buffer-substring): Don't
extend the region to the start of the line (bug#39398), but allow
sending the actual region as marked.

4 years agoMake gnus-output-to-rmail appending work better
Lars Ingebrigtsen [Tue, 27 Oct 2020 18:28:57 +0000 (19:28 +0100)]
Make gnus-output-to-rmail appending work better

* lisp/gnus/gnus-util.el (gnus-output-to-rmail): Ensure we have a
blank line before the next line when using mbox format (bug#39580).

4 years agoFix intermittent rmail-summary-delete-forward problem
Lars Ingebrigtsen [Tue, 27 Oct 2020 17:54:41 +0000 (18:54 +0100)]
Fix intermittent rmail-summary-delete-forward problem

* lisp/mail/rmailsum.el (rmail-summary-delete-forward):
`rmail-delete-message' may apparently clear
`rmail-current-message' sometimes, so save the message number
before deleting (bug#39612).

4 years agogdb-mi: use lexical lambdas
Mattias Engdegård [Mon, 26 Oct 2020 21:02:55 +0000 (22:02 +0100)]
gdb-mi: use lexical lambdas

* lisp/progmodes/gdb-mi.el (gdb-tooltip-print-1, gud-watch)
(gdb-var-list-children, gdb-edit-value)
(gdb-bind-function-to-buffer, gdb-place-breakpoints)
(gdb-preempt-existing-or-display-buffer):
Expose lambdas to the compiler as lexical closures instead of building
them the old-fashioned way.  Remove #' before lambda.

4 years agoRemove unused function in gdb-mi.el
Mattias Engdegård [Tue, 27 Oct 2020 15:54:38 +0000 (16:54 +0100)]
Remove unused function in gdb-mi.el

* lisp/progmodes/gdb-mi.el (gdb-var-evaluate-expression-handler):
Remove.  (It was left behind in an old code reorganisation.)

4 years agoRevert "Fontify strings in {} better in tcl-mode"
Lars Ingebrigtsen [Tue, 27 Oct 2020 17:46:16 +0000 (18:46 +0100)]
Revert "Fontify strings in {} better in tcl-mode"

This reverts commit 7f32224dc324b0ee0f1b512c8d8b19aeb80141c1.

The changes led to things like

    proc foo5 () {
        return 6
    }

being fontified as a string, which is wrong.

4 years agoSmall fix to the new link for inherited faces in Customize
Mauro Aranda [Tue, 27 Oct 2020 17:34:40 +0000 (18:34 +0100)]
Small fix to the new link for inherited faces in Customize

* lisp/cus-edit.el (cus--face-link): Link to the current value of the
widget, rather than to the widget's value upon creation (bug#44154).

4 years agogdb-mi: Don't use bindat for field access
Mattias Engdegård [Sun, 25 Oct 2020 12:27:52 +0000 (13:27 +0100)]
gdb-mi: Don't use bindat for field access

Replace uses of bindat-get-field with a simpler accessor,
since nothing here uses the bindat machinery in any way.

* lisp/progmodes/gdb-mi.el (gdb-mi--field): New.
(gdb-get-many-fields): Remove.
(gdb-var-create-handler, gdb-var-list-children-handler)
(gdb-var-update-handler, gdb-current-buffer-frame)
(gdb-update-gud-running, gdb-thread-exited, gdb-thread-selected)
(gdb-running, gdb-stopped, gdb-breakpoints-list-handler-custom)
(gdb-place-breakpoints, gdb-thread-list-handler-custom)
(def-gdb-thread-buffer-simple-command, gdb-select-thread)
(def-gdb-thread-buffer-gud-command, gdb-read-memory-custom)
(gdb-invalidate-disassembly, gdb-disassembly-handler-custom)
(gdb-disassembly-place-breakpoints, gdb-toggle-breakpoint)
(gdb-delete-breakpoint, gdb-goto-breakpoint, gdb-frame-location)
(gdb-stack-list-frames-custom, gdb-select-frame)
(gdb-edit-locals-value, gdb-locals-handler-custom)
(gdb-registers-handler-custom, gdb-changed-registers-handler)
(gdb-register-names-handler, gdb-frame-handler):
Use gdb-mi--field.

4 years agoTemporarily mark two failing tests
Glenn Morris [Tue, 27 Oct 2020 15:35:10 +0000 (08:35 -0700)]
Temporarily mark two failing tests
; Persistently failing tests can cause problems for automated builds,
; and make it harder to spot new failures.

* test/lisp/xt-mouse-tests.el (xt-mouse-tracking-basic)
(xt-mouse-tracking-utf-8): Currently failing.

4 years agoMerge from origin/emacs-27
Glenn Morris [Tue, 27 Oct 2020 15:24:56 +0000 (08:24 -0700)]
Merge from origin/emacs-27

e0de9f3295 (origin/emacs-27) Don't skip empty lines when fitting mini...
a4ec03fa9b ; * etc/tutorials/TUTORIAL.de: Fix grammar (Bug#44246)
20c02e628c Improve documentation of display-fill-column-indicator
e2005f1f2a * INSTALL: Mention efaq.texi for installation of intlfonts.
71661b2872 Use WebKit sandboxing

# Conflicts:
# etc/NEWS

4 years ago; Merge from origin/emacs-27
Glenn Morris [Tue, 27 Oct 2020 15:18:05 +0000 (08:18 -0700)]
; Merge from origin/emacs-27

The following commit was skipped:

8b1ccf5e7b Fix tramp-sh-handle-make-process; don't merge with master

4 years agoMerge from origin/emacs-27
Glenn Morris [Tue, 27 Oct 2020 15:18:05 +0000 (08:18 -0700)]
Merge from origin/emacs-27

c847d5998f Merge branch 'emacs-27' of git.sv.gnu.org:/srv/git/emacs i...

4 years ago; Merge from origin/emacs-27
Glenn Morris [Tue, 27 Oct 2020 15:18:05 +0000 (08:18 -0700)]
; Merge from origin/emacs-27

The following commit was skipped:

8101083c7a Fix an error in tramp-sh-handle-make-process.  Dont' merge...

4 years agoMerge from origin/emacs-27
Glenn Morris [Tue, 27 Oct 2020 15:18:05 +0000 (08:18 -0700)]
Merge from origin/emacs-27

8b87ea6844 Recommend lexical-binding in Coding Conventions
e29cace60a Avoid rare crashes while producing line numbers

4 years agoComplete property values in multi-line CSS declarations
Simen Heggestøyl [Mon, 26 Oct 2020 09:01:44 +0000 (10:01 +0100)]
Complete property values in multi-line CSS declarations

* lisp/textmodes/css-mode.el (css--complete-property-value): Complete
property values even when preceded by a newline (bug#44214).

4 years agoFix history problem in `M-x shell' when started twice
Lars Ingebrigtsen [Tue, 27 Oct 2020 12:44:16 +0000 (13:44 +0100)]
Fix history problem in `M-x shell' when started twice

* lisp/comint.el (comint-input-ring-file-name): Avoid having this
variable being killed on mode restart while the other ring
variables aren't (bug#39667).  This would mean that `M-x
shell'/`C-d'/`M-x shell' didn't save commands entered after the
second `M-x shell'.

4 years agoERT: escape control characters in pretty-printed error output
Mattias Engdegård [Tue, 27 Oct 2020 12:20:20 +0000 (13:20 +0100)]
ERT: escape control characters in pretty-printed error output

* lisp/emacs-lisp/ert.el (ert--pp-with-indentation-and-newline):
Escape control characters which would otherwise be blasted directly to
the terminal (when running noninteractively) with unpleasant results.

4 years agoFix sunrise and sunset calculation (bug#44237)
Mattias Engdegård [Mon, 26 Oct 2020 17:44:05 +0000 (18:44 +0100)]
Fix sunrise and sunset calculation (bug#44237)

* lisp/calendar/solar.el (solar-moment): Use initial values for binary
search that won't end the loop prematurely and yield incorrect
answers.
* test/lisp/calendar/solar-tests.el: New file.

4 years agoDon't rely on bignums in ntlm.el
Mattias Engdegård [Tue, 27 Oct 2020 10:52:38 +0000 (11:52 +0100)]
Don't rely on bignums in ntlm.el

Since ntlm.el is distributed as a separate package in GNU ELPA and
should be able to run on older Emacs versions without bignums,
we cannot make use of them here.  See discussion at
https://lists.gnu.org/archive/html/emacs-devel/2020-10/msg01665.html.
Instead, we add a small poor man's bignum implementation.

* lisp/net/ntlm.el (ntlm--bignat-of-int, ntlm--bignat-add)
(ntlm--bignat-shift-left, ntlm--bignat-mul-byte, ntlm--bignat-mul)
(ntlm--bignat-of-string, ntlm--bignat-of-digits)
(ntlm--bignat-to-int64): New.
(ntlm--time-to-timestamp): Use the ntlm--bignat- functions instead
of Lisp integers.
* test/lisp/net/ntlm-tests.el: New file.

4 years agoMake edit-abbrevs parsing less brittle
Lars Ingebrigtsen [Tue, 27 Oct 2020 11:18:27 +0000 (12:18 +0100)]
Make edit-abbrevs parsing less brittle

* lisp/abbrev.el (define-abbrevs): Make the parsing less brittle
-- allow more blank lines (bug#42611).

4 years ago* lisp/net/sieve-mode.el: Use lexical-binding.
Stefan Kangas [Tue, 27 Oct 2020 11:11:28 +0000 (12:11 +0100)]
* lisp/net/sieve-mode.el: Use lexical-binding.

4 years agoAdd a link to inherited faces in Customize
Lars Ingebrigtsen [Tue, 27 Oct 2020 10:32:14 +0000 (11:32 +0100)]
Add a link to inherited faces in Customize

* lisp/cus-edit.el (cus--face-link): New function (bug#44154).
(face): Use the function to format the link.

4 years agoDon't do compilation-transform-file-match-alist if there's no file name
Lars Ingebrigtsen [Tue, 27 Oct 2020 09:17:13 +0000 (10:17 +0100)]
Don't do compilation-transform-file-match-alist if there's no file name

* lisp/progmodes/compile.el (compilation-error-properties): There
may not be a file name (bug#40111).  In that case, don't do the
`compilation-transform-file-match-alist' thing.

4 years agoDon't skip empty lines when fitting mini frame to buffer (Bug#44080)
Clemens Radermacher [Tue, 27 Oct 2020 08:45:25 +0000 (09:45 +0100)]
Don't skip empty lines when fitting mini frame to buffer (Bug#44080)

* lisp/window.el (fit-mini-frame-to-buffer,
window--resize-mini-frame, fit-frame-to-buffer,
fit-frame-to-buffer-1): By default, fit a mini frame without skipping its
buffer's leading or trailing empty lines.
* src/frame.c (resize-mini-frames): Update doc-string.
* lisp/cus-start.el (resize-mini-frames): Update for customize.
* doc/lispref/minibuf.texi (resize-mini-frames): Update description.

4 years agoDon't leak result of nested byte-compilation to outer level
Paul Pogonyshev [Tue, 27 Oct 2020 08:43:55 +0000 (09:43 +0100)]
Don't leak result of nested byte-compilation to outer level

* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Bind
`byte-compiler-error-flag' instead of setting it (bug#41065).
This fixes a problem of "leaking" the flag when compiling
something that then compiles something that errors out (i.e., an
"inner" compile).

4 years agoFontify strings in {} better in tcl-mode
mvar [Tue, 27 Oct 2020 08:27:51 +0000 (09:27 +0100)]
Fontify strings in {} better in tcl-mode

* lisp/progmodes/tcl.el (tcl-syntax-propertize-function):
Propertize {} forms after commands as strings (bug#39277).
(tcl-set-font-lock-keywords): Fontify as strings.  This allows
things like puts {"foo} to be fontified correctly.

Copyright-paperwork-exempt: yes

4 years ago`g' in *Help* doesn't require confirmation
Lars Ingebrigtsen [Tue, 27 Oct 2020 07:23:31 +0000 (08:23 +0100)]
`g' in *Help* doesn't require confirmation

* lisp/help-mode.el (help-mode-revert-buffer): Don't require
confirmation before reverting (bug#44202).  This mimics how most
other non-file reverting functions work.

4 years agoDefine backtab in text fields in eww
Nicolas Graner [Tue, 27 Oct 2020 07:15:22 +0000 (08:15 +0100)]
Define backtab in text fields in eww

* lisp/net/eww.el (eww-text-map):
(eww-textarea-map): Define backtab, as in the main mode map
(bug#44247).

4 years ago; * etc/NEWS: Fix a recent change.
Eli Zaretskii [Tue, 27 Oct 2020 03:25:17 +0000 (05:25 +0200)]
; * etc/NEWS: Fix a recent change.

4 years ago* lisp/mail/mail-prsvr.el: Use lexical-binding.
Stefan Kangas [Tue, 27 Oct 2020 02:53:02 +0000 (03:53 +0100)]
* lisp/mail/mail-prsvr.el: Use lexical-binding.

4 years ago* lisp/mail/mail-parse.el: Use lexical-binding.
Stefan Kangas [Tue, 27 Oct 2020 02:51:57 +0000 (03:51 +0100)]
* lisp/mail/mail-parse.el: Use lexical-binding.

4 years agoAllow pcomplete/gzip to complete on files in subdirectories
Stefan Kangas [Tue, 27 Oct 2020 02:09:44 +0000 (03:09 +0100)]
Allow pcomplete/gzip to complete on files in subdirectories

* lisp/pcmpl-gnu.el (pcmpl-gnu-zipped-files): Allow "gzip" to complete
on files in subdirectories.  (Bug#30271)

4 years agoAdd some missing docstrings in cua-rect.el
Boruch Baum [Tue, 27 Oct 2020 01:30:29 +0000 (02:30 +0100)]
Add some missing docstrings in cua-rect.el

* lisp/emulation/cua-rect.el (cua--rectangle)
(cua--last-rectangle, cua--restored-rectangle)
(cua--rectangle-overlays, cua--rectangle-operation)
(cua--tabify-start, cua--tabify-start, cua--insert-rectangle):
Add docstrings, in several cases by converting existing
comments.  (Bug#30085)
(cua--last-killed-rectangle): Update comment.

4 years agoUse lexical-binding in tool-bar.el
Stefan Kangas [Tue, 27 Oct 2020 00:29:43 +0000 (01:29 +0100)]
Use lexical-binding in tool-bar.el

* lisp/tool-bar.el: Use lexical-binding.
(tool-bar-add-item, tool-bar-add-item-from-menu): Quote function
symbols as such.

4 years agoDon't use obsolete variable write-contents-hooks
Stefan Kangas [Mon, 26 Oct 2020 23:49:28 +0000 (00:49 +0100)]
Don't use obsolete variable write-contents-hooks

* lisp/mh-e/mh-show.el (mh-display-msg):
* lisp/textmodes/rst.el: Don't use obsolete variable
write-contents-hooks.
Problem reported by Stefan Monnier <monnier@iro.umontreal.ca>.

4 years agoRemove XEmacs compat code from hashcash.el
Stefan Kangas [Mon, 26 Oct 2020 23:35:46 +0000 (00:35 +0100)]
Remove XEmacs compat code from hashcash.el

* lisp/mail/hashcash.el (hashcash-point-at-bol)
(hashcash-point-at-eol): Make obsolete.
(hashcash-token-substring): Don't use the above now obsolete aliases.

4 years agoFix an unbound variable in html skeletons
Stephen Berman [Mon, 26 Oct 2020 21:21:07 +0000 (22:21 +0100)]
Fix an unbound variable in html skeletons

* lisp/skeleton.el (skeleton-internal-list): Fix an unbound
variable in html skeletons (bug#44157).

4 years agovc-git-root: Remove unnecessary caching
Dmitry Gutov [Mon, 26 Oct 2020 21:01:08 +0000 (23:01 +0200)]
vc-git-root: Remove unnecessary caching

* lisp/vc/vc-git.el (vc-git-root): Simplify (bug#42966).

4 years ago; * etc/tutorials/TUTORIAL.de: Fix grammar (Bug#44246)
Philipp Stephani [Mon, 26 Oct 2020 20:38:13 +0000 (21:38 +0100)]
; * etc/tutorials/TUTORIAL.de: Fix grammar (Bug#44246)

4 years agoMake vc-responsible-backend choose the most specific backend
Lars Ingebrigtsen [Mon, 26 Oct 2020 20:10:36 +0000 (21:10 +0100)]
Make vc-responsible-backend choose the most specific backend

* lisp/vc/vc.el (vc-responsible-backend): Search through all the
VC backends instead of the first one, and choose the one that's
most specific (bug#42966).

4 years agoFix time-test error on machines with mail
Lars Ingebrigtsen [Mon, 26 Oct 2020 20:23:50 +0000 (21:23 +0100)]
Fix time-test error on machines with mail

* test/lisp/time-tests.el (time-tests-display-time-update): There
may be mail on the machine (bug#44241).

4 years agoMake the -modes variable autoloaded
Lars Ingebrigtsen [Mon, 26 Oct 2020 19:44:15 +0000 (20:44 +0100)]
Make the -modes variable autoloaded

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Make the -modes variable be autoloaded.

4 years ago; * etc/NEWS: Fix a recently-added entry.
Eli Zaretskii [Mon, 26 Oct 2020 18:38:42 +0000 (20:38 +0200)]
; * etc/NEWS: Fix a recently-added entry.

4 years agoTweak where global-display-fill-column-indicator-modes is on
Lars Ingebrigtsen [Mon, 26 Oct 2020 18:15:30 +0000 (19:15 +0100)]
Tweak where global-display-fill-column-indicator-modes is on

* lisp/display-fill-column-indicator.el
(global-display-fill-column-indicator-mode): Don't switch on in
special-mode buffers (bug#44232).

4 years agoImplement a :predicate parameter for globalized minor modes
Lars Ingebrigtsen [Mon, 26 Oct 2020 18:13:14 +0000 (19:13 +0100)]
Implement a :predicate parameter for globalized minor modes

* doc/lispref/modes.texi (Defining Minor Modes): Describe the new
:predicate keyword (bug#44232).

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Allow a new :predicate keyword.
(easy-mmode--globalized-predicate-p): New function.