]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years ago* test/src/emacs-module-tests.el (mod-test-file): Unbreak out-of-tree.
Glenn Morris [Mon, 10 May 2021 18:37:40 +0000 (11:37 -0700)]
* test/src/emacs-module-tests.el (mod-test-file): Unbreak out-of-tree.

3 years ago* test/Makefile.in (clean): Remove generated mml-sec file.
Glenn Morris [Mon, 10 May 2021 18:17:14 +0000 (11:17 -0700)]
* test/Makefile.in (clean): Remove generated mml-sec file.

3 years agoAlways include the test/ directory in tarfiles
Glenn Morris [Mon, 10 May 2021 17:42:53 +0000 (10:42 -0700)]
Always include the test/ directory in tarfiles

In hindsight, it's hard to see why not including it was ever an option.
* make-dist: Always include the test/ directory.
(with_tests): Remove.
(--tests, --no-tests): Make these options no-ops.
* Makefile.in (mostlyclean_dirs, maintainer_clean_dirs): Add "test".
(mostlyclean, clean, distclean, maintainer-clean):
Remove special-casing for "test".
($(CHECK_TARGETS)): Simplify.

3 years agoExtend meaning of UNIQUIFY `auto-save-file-name-transforms'. (Bug#47493)
Michael Albinus [Mon, 10 May 2021 11:42:48 +0000 (13:42 +0200)]
Extend meaning of UNIQUIFY `auto-save-file-name-transforms'.  (Bug#47493)

* doc/lispref/backups.texi (Auto-Saving): Explain UNIQUIFY being a
secure hash in auto-save-file-name-transforms.

* etc/NEWS: Mention change in `auto-save-file-name-transforms'.

* lisp/files.el (auto-save-file-name-transforms): Adapt docstring.
(make-auto-save-file-name): Care, if UNIQ is a secure hash symbol.

3 years ago; Fix oddities in etc/NEWS
Michael Albinus [Mon, 10 May 2021 11:36:06 +0000 (13:36 +0200)]
; Fix oddities in etc/NEWS

3 years agoAvoid saving session customizations in the custom-file
Mauro Aranda [Mon, 10 May 2021 11:33:32 +0000 (13:33 +0200)]
Avoid saving session customizations in the custom-file

* lisp/custom.el (custom-theme-recalc-variable): Only stash theme
settings for void variables.
(custom-declare-variable): After initializing a variable, unstash a
theme setting, if present.
(disable-theme): When disabling a theme, maybe unstash a theme
setting.

* test/lisp/custom-resources/custom--test-theme.el: Add two settings
for testing the fix.

3 years agoAlways heed the `lexical-binding' local variable
Lars Ingebrigtsen [Mon, 10 May 2021 10:40:11 +0000 (12:40 +0200)]
Always heed the `lexical-binding' local variable

* doc/lispref/variables.texi (File Local Variables): Document
`permanently-enabled-local-variables'.

* lisp/files.el (enable-local-variables): Mention the new variable.
(set-auto-mode): Always call `hack-local-variables'.
(hack-local-variables): Factor out the variable gathering into its
own function, and respect the new variable (bug#47843).
(hack-local-variables--find-variables): Factored out from
`hack-local-variables'.
(permanently-enabled-local-variables): New variable.

3 years ago* lib-src/Makefile.in (clean): Tidy up seccomp-filter files.
Glenn Morris [Mon, 10 May 2021 01:46:11 +0000 (18:46 -0700)]
* lib-src/Makefile.in (clean): Tidy up seccomp-filter files.

3 years ago* test/Makefile.in (SUBDIRS, subdir_template): Fix out-of-tree.
Glenn Morris [Mon, 10 May 2021 01:33:44 +0000 (18:33 -0700)]
* test/Makefile.in (SUBDIRS, subdir_template): Fix out-of-tree.

3 years agoSmall fixes for out-of-tree clean rules.
Glenn Morris [Mon, 10 May 2021 01:27:04 +0000 (18:27 -0700)]
Small fixes for out-of-tree clean rules.

* Makefile.in (top_maintainer_clean, extraclean): Fix out-of-tree.

3 years agoSmall fixes for Makefile clean rules
Glenn Morris [Mon, 10 May 2021 01:22:49 +0000 (18:22 -0700)]
Small fixes for Makefile clean rules

* Makefile.in (maintainer-clean): Move some items from extraclean.
(extraclean): doc/emacs already deletes emacsver.texi.

3 years agoBase the "extraclean" Make rule on "maintainer-clean"
Glenn Morris [Mon, 10 May 2021 01:14:12 +0000 (18:14 -0700)]
Base the "extraclean" Make rule on "maintainer-clean"

* Makefile.in (FIND_DELETE): New, set by configure.
(extraclean_dirs): Remove.
(extraclean): Make it just a small variation on maintainer-clean.
* admin/charsets/Makefile.in (extraclean):
* admin/grammars/Makefile.in (extraclean):
* admin/unidata/Makefile.in (extraclean):
* leim/Makefile.in (extraclean):
* lib-src/Makefile.in (extraclean):
* lisp/Makefile.in (extraclean):
* lwlib/Makefile.in (extraclean):
* nt/Makefile.in (extraclean):
* src/Makefile.in (extraclean): Remove target.
* lib/Makefile.in (extraclean): Merge into maintainer-clean.

3 years ago* lisp/misearch.el (multi-isearch-switch-buffer): New function.
Juri Linkov [Sun, 9 May 2021 19:27:08 +0000 (22:27 +0300)]
* lisp/misearch.el (multi-isearch-switch-buffer): New function.

* lisp/isearch.el (isearch-search-string):
* lisp/misearch.el (multi-isearch-wrap, multi-isearch-pop-state): Use it.

https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg00309.html

3 years ago; * etc/NEWS.27: Revert last change.
Basil L. Contovounesios [Sun, 9 May 2021 13:49:23 +0000 (14:49 +0100)]
; * etc/NEWS.27: Revert last change.

This reverts commit 3d276324edd90b2df9f0987f635ca0c39037a81d
2021-05-09 "; Fix decoded-time-set-defaults typo in NEWS.27."
which was mistakenly applied to etc/NEWS.27 on the master branch.

It is replaced by commit c233f4eccddf09e41441b2a292491b469fd61792
2021-05-09 "; * etc/NEWS: Fix decoded-time-set-defaults typo."
on the emacs-27 branch (bug#48298).

3 years agoCleanups for Tramp out-of-band methods on MS Windows
Michael Albinus [Sun, 9 May 2021 13:37:37 +0000 (15:37 +0200)]
Cleanups for Tramp out-of-band methods on MS Windows

* doc/misc/tramp.texi (Frequently Asked Questions):
tramp-use-ssh-controlmaster-options is nil on MS Windows.

* lisp/net/tramp.el (tramp-unquote-shell-quote-argument): Revert previous
change, it worked (not as expected but) properly.

* test/lisp/net/tramp-tests.el (tramp-test17-dired-with-wildcards):
Don't skip on MS Windows.
(tramp--test-windows-nt-and-scp-p): Remove.
(tramp--test-special-characters): Skip for out-of-band methods on
MS Windows, sometimes.

3 years agoMake autoloads-force work in build directory
Andreas Schwab [Sun, 9 May 2021 12:22:05 +0000 (14:22 +0200)]
Make autoloads-force work in build directory

* lisp/Makefile.in (autoloads-force): Remove $(lisp)/loaddefs.el,
not loaddefs.el.

3 years agoDefault to 1970 in decoded-time-set-defaults
Basil L. Contovounesios [Sun, 9 May 2021 08:50:00 +0000 (09:50 +0100)]
Default to 1970 in decoded-time-set-defaults

* lisp/calendar/time-date.el (decoded-time-set-defaults): Set an
unspecified year field to 1970, as promised in the docstring, and to
ensure it's representable on all systems (bug#48298).

3 years agoReintroduce autoloads for edebug-all-defs/edebug-all-forms
Lars Ingebrigtsen [Sun, 9 May 2021 09:47:01 +0000 (11:47 +0200)]
Reintroduce autoloads for edebug-all-defs/edebug-all-forms

* lisp/emacs-lisp/edebug.el (edebug-all-defs, edebug-all-forms):
Reintroduce ;;;###autoload of these user options that were removed
in bae2cfe63c, because this leads to errors in a common (and
recommended) use case (bug#47516).

3 years agoFix indentation of lines starting with # in js-mode
Lars Ingebrigtsen [Sat, 8 May 2021 12:42:51 +0000 (14:42 +0200)]
Fix indentation of lines starting with # in js-mode

* lisp/progmodes/js.el (js--proper-indentation): # is not like in
C -- it doesn't have to appear on the beginning of the line
(bug#47488).

3 years ago; Fix decoded-time-set-defaults typo in NEWS.27.
Basil L. Contovounesios [Sun, 9 May 2021 08:40:40 +0000 (09:40 +0100)]
; Fix decoded-time-set-defaults typo in NEWS.27.

See bug#48298.

3 years agoTiny fixes to recent native compilation docs
Basil L. Contovounesios [Sat, 8 May 2021 16:53:41 +0000 (17:53 +0100)]
Tiny fixes to recent native compilation docs

For discussion, see the following thread:
https://lists.gnu.org/r/emacs-devel/2021-05/msg00347.html

* doc/lispref/compile.texi (Native Compilation): Fix grammar in @ref
online label.
(Native-Compilation Functions): Consistently unhyphenate
'sub-process'.  Fix grammar.
(Native-Compilation Variables): Fix @cindex entry.

3 years ago; Fix recent re-builder doc changes.
Basil L. Contovounesios [Sat, 8 May 2021 14:07:38 +0000 (15:07 +0100)]
; Fix recent re-builder doc changes.

3 years agoDocument native-compilation
Eli Zaretskii [Sat, 8 May 2021 13:26:41 +0000 (16:26 +0300)]
Document native-compilation

* doc/lispref/loading.texi (How Programs Do Loading)
(Library Search): Update for native-compilation features.
* doc/lispref/compile.texi (Native Compilation)
(Native-Compilation Functions, Native-Compilation Variables): New
chapter and sections.
* doc/lispref/elisp.texi (Top): Update the top-level menus.

* etc/NEWS: Add a reference to the ELisp manual.

3 years agoDon't delete socket on server exit if it was passed in
Lars Ingebrigtsen [Sat, 8 May 2021 12:22:30 +0000 (14:22 +0200)]
Don't delete socket on server exit if it was passed in

* lisp/server.el (server-sentinel): Don't delete the socket if it
was passed in to Emacs (bug#47511).

3 years agoRemove dead URL in isearchb.el comments
Lars Ingebrigtsen [Sat, 8 May 2021 12:17:11 +0000 (14:17 +0200)]
Remove dead URL in isearchb.el comments

* lisp/isearchb.el: Remove dead URL in comments (bug#47514).

3 years agoPrevent the selected window being a dead mini-window when switching frames
Alan Mackenzie [Sat, 8 May 2021 12:10:00 +0000 (12:10 +0000)]
Prevent the selected window being a dead mini-window when switching frames

This fixes bug #48249 and also a situation where, with recursive minibuffers
enabled and minibuffer-follows-selected-frame t, switching frames when a
minibuffer was open would leave the mini-window selected on the old frame.

* lisp/window.el (record-window-buffer): Add extra parameter DO-MINIBUF, and
amend the code such that minibuffers only get processed when that parameter is
non-nil.

* src/minibuf.c (zip_minibuffer_stacks, read_minibuf): Call
Qrecord_window_buffer with the new argument set to Qt.
(move_minibuffers_onto_frame): Set the selected window on the old frame when
this would otherwise remain the mini-window.

3 years agoMention that Emacs is usually case-insensitive in a couple of places
dalanicolai [Sat, 8 May 2021 11:59:03 +0000 (13:59 +0200)]
Mention that Emacs is usually case-insensitive in a couple of places

* doc/lispref/searching.texi (Regular Expressions): Mention
`case-fold-search'.

* lisp/emacs-lisp/re-builder.el (re-builder): Mention case
sensitivity toggles (bug#47534).

Copyright-paperwork-exempt: yes

3 years agoRevert "Fix moving directories with the same name to trash"
Lars Ingebrigtsen [Sat, 8 May 2021 11:42:51 +0000 (13:42 +0200)]
Revert "Fix moving directories with the same name to trash"

This reverts commit f618cc5bc83d3822759c5bb85d15320651ca2431.

This patch doesn't cover some corner cases, I think.

3 years agoFix moving directories with the same name to trash
Codruț Constantin Gușoi [Sat, 8 May 2021 11:40:03 +0000 (13:40 +0200)]
Fix moving directories with the same name to trash

* lisp/files.el (move-file-to-trash): Allow moving several
directories with the same name to Trash (bug#48280).

Copyright-paperwork-exempt: yes

3 years ago* lisp/gnus/nnoo.el (defvoo, deffoo): Add `doc-string` property
Stefan Monnier [Sat, 8 May 2021 02:41:44 +0000 (22:41 -0400)]
* lisp/gnus/nnoo.el (defvoo, deffoo): Add `doc-string` property

3 years agoEnsure `<menu-bar> <edit> <clear>' handles rectangular regions
Jim Porter [Mon, 3 May 2021 15:24:01 +0000 (08:24 -0700)]
Ensure `<menu-bar> <edit> <clear>' handles rectangular regions

* lisp/delsel.el (delete-active-region): Autoload it and make it interactive.
* lisp/menu-bar.el (menu-bar-edit-menu): Bind "Clear" to
`delete-active-region'.

3 years agoDon't use symbolic links in the test resource directory.
Philipp Stephani [Fri, 7 May 2021 16:36:57 +0000 (18:36 +0200)]
Don't use symbolic links in the test resource directory.

This doesn't work on Windows.  Instead, use the EMACS_TEST_DIRECTORY
environment variable to find the BPF files.

* test/src/emacs-tests.el (emacs-tests--lib-src): New constant.
(emacs-tests/seccomp/allows-stdout)
(emacs-tests/seccomp/forbids-subprocess)
(emacs-tests/bwrap/allows-stdout): Use it.

3 years agoTramp: Fix file name quoting on MS Windows
Michael Albinus [Fri, 7 May 2021 15:25:49 +0000 (17:25 +0200)]
Tramp: Fix file name quoting on MS Windows

* lisp/net/tramp-sh.el (tramp-make-copy-program-file-name):
Use `tramp-unquote-shell-quote-argument'.

* lisp/net/tramp.el (tramp-unquote-shell-quote-argument):
Adapt for MS Windows.

* test/lisp/net/tramp-tests.el (tramp--test-special-characters):
Adapt for MS Windows.

3 years agoFix a recent change in rmc.el
Eli Zaretskii [Fri, 7 May 2021 14:09:44 +0000 (17:09 +0300)]
Fix a recent change in rmc.el

* lisp/emacs-lisp/rmc.el (read-multiple-choice): Doc fix.  Improve
the message when entering recursive-edit.

3 years agoFix some annoyances wrt file-name-non-special
Michael Albinus [Fri, 7 May 2021 12:31:17 +0000 (14:31 +0200)]
Fix some annoyances wrt file-name-non-special

* lisp/files.el (file-name-non-special): Do not expand `file-truename'.

* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Use local `default-directory' for `start-process'.

3 years ago`mail-envelope-from' doc clarification
Lars Ingebrigtsen [Fri, 7 May 2021 11:17:12 +0000 (13:17 +0200)]
`mail-envelope-from' doc clarification

* lisp/mail/sendmail.el (mail-envelope-from): Note that the buffer
should be narrowed before calling (bug#47616).

3 years agoTune Tramp traces
Michael Albinus [Fri, 7 May 2021 11:04:28 +0000 (13:04 +0200)]
Tune Tramp traces

* doc/misc/tramp.texi (Traces and Profiles): Describe call traces.

* lisp/net/tramp-compat.el: Add `tramp-suppress-trace' property for all
functions.

* lisp/net/tramp.el (tramp-verbose): Adapt docstring.
(tramp-file-name-method, tramp-file-name-user)
(tramp-file-name-domain, tramp-file-name-host)
(tramp-file-name-port, tramp-file-name-localname)
(tramp-file-name-hop, tramp-file-name-user-domain)
(tramp-file-name-host-port, tramp-file-name-port-or-default)
(tramp-tramp-file-p, tramp-find-method, tramp-find-user)
(tramp-find-host, tramp-dissect-file-name)
(tramp-dissect-hop-name, tramp-debug-buffer-name)
(tramp-debug-outline-level, tramp-get-debug-buffer)
(tramp-get-debug-file-name, tramp-read-passwd)
(tramp-clear-passwd): Add `tramp-suppress-trace' property.
(tramp-debug-message): Activate call traces.

* test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case): Simplify.

3 years agoShell-quote the directory when finding a project's files
Jim Porter [Wed, 5 May 2021 23:05:25 +0000 (16:05 -0700)]
Shell-quote the directory when finding a project's files

* lisp/progmodes/project.el (project--files-in-directory):
Shell-quote the directory (bug48247).

3 years agoproject--buffer-list: Tighten the check
Dmitry Gutov [Thu, 6 May 2021 17:43:02 +0000 (20:43 +0300)]
project--buffer-list: Tighten the check

* lisp/progmodes/project.el (project--buffer-list): Tighten the
check to speed up in the presence of multiple Tramp sessions, too.
(https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg00152.html)

3 years ago; * test/lisp/image-tests.el: fix previous commit
Mattias Engdegård [Thu, 6 May 2021 15:23:44 +0000 (17:23 +0200)]
; * test/lisp/image-tests.el: fix previous commit

3 years agoRename comp-eln-load-path → native-comp-eln-load-path
Andrea Corallo [Thu, 6 May 2021 14:28:43 +0000 (16:28 +0200)]
Rename comp-eln-load-path → native-comp-eln-load-path

* src/comp.c (Fcomp_el_to_eln_filename): Rename comp-eln-load-path →
native-comp-eln-load-path.
* src/lread.c (maybe_swap_for_eln): Likewise.
* lisp/startup.el (native-comp-eln-load-path)
(normal-top-level): Likewise.
* lisp/emacs-lisp/comp.el (comp-spill-lap-function, comp-final)
(comp-eln-load-path-eff, comp-trampoline-compile)
(comp-clean-up-stale-eln, comp-run-async-workers)
(comp-lookup-eln, batch-byte-native-compile-for-bootstrap): Likewise.

3 years agoRename comp-warning-on-missing-source
Andrea Corallo [Thu, 6 May 2021 13:00:00 +0000 (15:00 +0200)]
Rename comp-warning-on-missing-source

* src/lread.c (maybe_swap_for_eln): Rename
comp-warning-on-missing-source →
native-comp-warning-on-missing-source.
* src/comp.c (syms_of_comp): Likewise.
* lisp/emacs-lisp/comp.el (native-comp-warning-on-missing-source):
Likewise.

3 years agoRename comp-native-driver-options → native-comp-driver-options
Andrea Corallo [Thu, 6 May 2021 12:57:48 +0000 (14:57 +0200)]
Rename comp-native-driver-options → native-comp-driver-options

* src/comp.c (add_driver_options, syms_of_comp): Rename
comp-native-driver-options → native-comp-driver-options.
* lisp/emacs-lisp/comp.el (native-comp-driver-options)
(comp-ctxt, comp-spill-lap-function, comp-final)
(comp-run-async-workers): Likewise.
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Likewise.

3 years ago* Rename comp-async-query-on-exit → native-comp-async-query-on-exit
Andrea Corallo [Thu, 6 May 2021 12:55:30 +0000 (14:55 +0200)]
* Rename comp-async-query-on-exit → native-comp-async-query-on-exit

* lisp/emacs-lisp/comp.el (native-comp-async-query-on-exit)
(comp-run-async-workers): Rename comp-async-query-on-exit →
native-comp-async-query-on-exit.

3 years ago* Rename comp-async-report-warnings-errors
Andrea Corallo [Thu, 6 May 2021 12:54:32 +0000 (14:54 +0200)]
* Rename comp-async-report-warnings-errors

* lisp/emacs-lisp/comp.el (native-comp-async-report-warnings-errors)
(comp-accept-and-process-async-output): Rename
comp-async-report-warnings-errors →
native-comp-async-report-warnings-errors.

3 years ago* Rename comp-async-env-modifier-form → native-comp-async-env-modifier-form
Andrea Corallo [Thu, 6 May 2021 12:53:28 +0000 (14:53 +0200)]
* Rename comp-async-env-modifier-form → native-comp-async-env-modifier-form

* lisp/emacs-lisp/comp.el (native-comp-async-env-modifier-form)
(comp-final, comp-run-async-workers): Rename
comp-async-env-modifier-form → native-comp-async-env-modifier-form.

3 years ago* Rename comp-async-all-done-hook → native-comp-async-all-done-hook
Andrea Corallo [Thu, 6 May 2021 12:52:43 +0000 (14:52 +0200)]
* Rename comp-async-all-done-hook → native-comp-async-all-done-hook

* lisp/emacs-lisp/comp.el (native-comp-async-all-done-hook)
(comp-run-async-workers): Rename comp-async-all-done-hook →
native-comp-async-all-done-hook.

3 years ago* Rename comp-async-cu-done-functions → native-comp-async-cu-done-functions
Andrea Corallo [Thu, 6 May 2021 12:49:31 +0000 (14:49 +0200)]
* Rename comp-async-cu-done-functions → native-comp-async-cu-done-functions

* lisp/emacs-lisp/comp.el (native-comp-async-cu-done-functions)
(comp-run-async-workers): Rename comp-async-cu-done-functions →
native-comp-async-cu-done-functions.

3 years ago* Rename comp-async-jobs-number → native-comp-async-jobs-number
Andrea Corallo [Thu, 6 May 2021 08:27:57 +0000 (10:27 +0200)]
* Rename comp-async-jobs-number → native-comp-async-jobs-number

* lisp/emacs-lisp/comp.el (native-comp-async-jobs-number)
(comp-effective-async-max-jobs, native--compile-async)
(native-compile-async): Rename comp-async-jobs-number →
native-comp-async-jobs-number.

3 years agoRename comp-never-optimize-functions → native-comp-never-optimize-functions
Andrea Corallo [Thu, 6 May 2021 08:26:33 +0000 (10:26 +0200)]
Rename comp-never-optimize-functions → native-comp-never-optimize-functions

* lisp/emacs-lisp/nadvice.el (advice--add-function): Rename
comp-never-optimize-functions → native-comp-never-optimize-functions.
* lisp/emacs-lisp/comp.el (native-comp-never-optimize-functions)
(comp-subr-trampoline-install, comp-call-optim-form-call): Likewise.

3 years agoRename comp-bootstrap-deny-list → native-comp-bootstrap-deny-list
Andrea Corallo [Thu, 6 May 2021 08:19:35 +0000 (10:19 +0200)]
Rename comp-bootstrap-deny-list → native-comp-bootstrap-deny-list

* lisp/emacs-lisp/comp.el (native-comp-bootstrap-deny-list)
(batch-native-compile): Rename comp-bootstrap-deny-list →
native-comp-bootstrap-deny-list.

3 years ago* Rename comp-always-compile → native-comp-always-compile
Andrea Corallo [Thu, 6 May 2021 08:18:32 +0000 (10:18 +0200)]
* Rename comp-always-compile → native-comp-always-compile

* lisp/emacs-lisp/comp.el (native-comp-always-compile)
(comp-run-async-workers): comp-always-compile →
native-comp-always-compile.

3 years ago* Rename comp-verbose -> native-comp-verbose
Andrea Corallo [Thu, 6 May 2021 08:17:12 +0000 (10:17 +0200)]
* Rename comp-verbose -> native-comp-verbose

* lisp/emacs-lisp/comp.el (native-comp-verbose, comp-log)
(comp-log-func, comp-final, comp-run-async-workers): Rename
comp-verbose -> native-comp-verbose.

3 years agoRename comp-debug -> native-comp-debug
Andrea Corallo [Thu, 6 May 2021 08:14:00 +0000 (10:14 +0200)]
Rename comp-debug -> native-comp-debug

* src/comp.c (emit_ctxt_code, syms_of_comp): Rename comp-debug ->
native-comp-debug.
* lisp/emacs-lisp/comp.el (native-comp-debug, comp-ctxt)
(comp-spill-lap-function, comp-run-async-workers): Likewise.
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Likewise.
* test/src/comp-tests.el (comp-tests-bootstrap): Likewise.

3 years agoRename comp-speed -> native-comp-speed
Andrea Corallo [Thu, 6 May 2021 08:12:48 +0000 (10:12 +0200)]
Rename comp-speed -> native-comp-speed

* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Rename
comp-speed -> native-comp-speed.
* lisp/emacs-lisp/comp.el (native-comp-speed, comp-ctxt, comp-func,
comp-spill-lap-function, comp-trampoline-compile,
comp-run-async-workers): Likewise.
* src/comp.c (emit_ctxt_code, load_comp_unit, syms_of_comp): Likewise.
* test/src/comp-tests.el (comp-tests-tco, comp-tests-fw-prop-1)
(comp-tests-check-ret-type-spec, comp-tests-pure): Likewise.

3 years ago* Rename comp-limple-mode -> native-comp-limple-mode
Andrea Corallo [Thu, 6 May 2021 07:57:35 +0000 (09:57 +0200)]
* Rename comp-limple-mode -> native-comp-limple-mode

* lisp/emacs-lisp/comp.el (comp-limple-lock-keywords): Doc update.
(native-comp-limple-mode, comp-log-to-buffer): Rename comp-limple-mode
-> native-comp-limple-mode.

3 years agoIn Tramp, use scp "-T" argument if available
Michael Albinus [Thu, 6 May 2021 15:15:30 +0000 (17:15 +0200)]
In Tramp, use scp "-T" argument if available

* lisp/net/tramp-sh.el (tramp-scp-strict-file-name-checking): New defvar.
(tramp-scp-strict-file-name-checking): New defun.
(tramp-do-copy-or-rename-file-out-of-band): Use it.
(tramp-methods) <scp, scpx>: Use "%x".
(tramp-make-copy-program-file-name): Use local quoting.
(tramp-sh-handle-make-process): Don't call
`tramp-maybe-open-connection', this happens implicitly by
`tramp-send-command'.

* lisp/net/tramp.el (tramp-methods): Adapt docstring.

* test/lisp/net/tramp-tests.el (tramp-test40-special-characters)
(tramp-test40-special-characters-with-stat)
(tramp-test40-special-characters-with-perl)
(tramp-test40-special-characters-with-ls): Don't skip for
`tramp--test-windows-nt-and-scp-p'.

3 years ago; * src/doc.c (syms_of_doc): Fix last change.
Eli Zaretskii [Thu, 6 May 2021 15:08:53 +0000 (18:08 +0300)]
; * src/doc.c (syms_of_doc): Fix last change.

3 years agoImprove formatting in text-quoting-style docstring
Stefan Kangas [Thu, 6 May 2021 14:31:20 +0000 (16:31 +0200)]
Improve formatting in text-quoting-style docstring

* src/doc.c (syms_of_doc) <text-quoting-style>: Doc fix; improve
formatting for readability.

3 years agoRemove another variable alias obsolete since Emacs 23
Stefan Kangas [Thu, 6 May 2021 14:05:36 +0000 (16:05 +0200)]
Remove another variable alias obsolete since Emacs 23

* lisp/menu-bar.el (menu-bar-files-menu): Delete variable alias for
`menu-bar-file-menu'.
* etc/NEWS: Announce its deletion.

3 years agoDon't fail image-tests if JPEG format isn't compiled in
Mattias Engdegård [Thu, 6 May 2021 13:15:55 +0000 (15:15 +0200)]
Don't fail image-tests if JPEG format isn't compiled in

* test/lisp/image-tests.el (image-type/from-filename):
Make jpeg test conditional.  Test pbm (always present).

3 years agoTidy file-matching regexps and remove some ineffective backslashes
Mattias Engdegård [Thu, 6 May 2021 13:50:39 +0000 (15:50 +0200)]
Tidy file-matching regexps and remove some ineffective backslashes

* lisp/emacs-lisp/package.el (package--delete-directory):
* lisp/net/tramp-cmds.el (tramp-recompile-elpa):
Escape dot; replace $ with \'.
* lisp/help.el (help-for-help):
* lisp/transient.el (transient-font-lock-keywords):
Remove useless backslashes.

3 years agoMake (setf (map-elt ...)) return the value in the alist/plist cases
Lars Ingebrigtsen [Thu, 6 May 2021 11:30:52 +0000 (13:30 +0200)]
Make (setf (map-elt ...)) return the value in the alist/plist cases

* lisp/emacs-lisp/map.el (map-elt): Return the value in the list
case (which can signal a `map-not-inplace' error.
(map-elt): Return the value in the list case, too (bug#47572).

3 years agoAdd tests for `map-elt'
Matt Armstrong [Thu, 6 May 2021 11:29:33 +0000 (13:29 +0200)]
Add tests for `map-elt'

* test/lisp/emacs-lisp/map-tests.el: Add (failing) tests for `map-elt'
(bug#47572).

3 years agoFix bug#47625 in dired
Michael Albinus [Thu, 6 May 2021 11:08:56 +0000 (13:08 +0200)]
Fix bug#47625 in dired

* lisp/dired-aux.el (dired-create-files): Check, that
`dired-do-symlink' does not create symlinks on different hosts.
(Bug#47625)

3 years agoFix wrong handling of minibuffers when frames get iconified/made invisible
Alan Mackenzie [Thu, 6 May 2021 10:48:14 +0000 (10:48 +0000)]
Fix wrong handling of minibuffers when frames get iconified/made invisible

This should fix bug #47766.

* lisp/window.el (window-deletable-p): Add a quote where it was missing from
minibuffer-follows-selected-frame.

* src/frame.c (check_minibuf_window): Delete the function.
(delete_frame): In place of calling check_minibuf_window, call
move_minibuffers_onto_frame, possibly to move minibuffers onto the new current
frame.
(Fmake_frame_invisible, Ficonify_frame): Remove calls to check_minibuf_window.

* src/minibuf.c (Factive_minibuffer_window): Search the frames for the active
minibuffer rather than just assuming minibuf_window has been correctly
updated.

3 years agocperl-mode: Eliminate bad interpretation of ?foo?
Harald Jörg [Thu, 6 May 2021 10:33:40 +0000 (12:33 +0200)]
cperl-mode: Eliminate bad interpretation of ?foo?

* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Delete
?? from the allowed bare regexp delimiters.
(cperl-short-docs): Delete ?...? from the documentation.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-bug-47598):
Add tests for good, bad, and ambiguous use of ? as regex
delimiter (bug#47598).

3 years agoOnly look at the headers when computing the envelope from address
Lars Ingebrigtsen [Thu, 6 May 2021 10:21:11 +0000 (12:21 +0200)]
Only look at the headers when computing the envelope from address

* lisp/mail/smtpmail.el (smtpmail-send-it)
(smtpmail-send-queued-mail, smtpmail-via-smtp):
* lisp/mail/sendmail.el (sendmail-send-it): Only look at the
headers when computing the envelope from (bug#47616).

3 years agoFix ispell program comparison
Dmitrii Kuragin [Thu, 6 May 2021 09:45:06 +0000 (11:45 +0200)]
Fix ispell program comparison

* lisp/textmodes/ispell.el (ispell-set-spellchecker-params):
Compare strings with `equal', not `eq' (since the identity of the
string may change) (bug#48246).

Copyright-paperwork-exempt: yes

3 years agoMake Info completion more robust
Lars Ingebrigtsen [Thu, 6 May 2021 09:24:39 +0000 (11:24 +0200)]
Make Info completion more robust

* lisp/info.el (Info-build-node-completions): Don't signal an
error if there are no nodes in the file we're computing
completions over (bug#47771).

3 years agoAdd a help option to the open large files prompt
Daniel Martín [Thu, 6 May 2021 08:27:03 +0000 (10:27 +0200)]
Add a help option to the open large files prompt

* lisp/files.el (files--ask-user-about-large-file-help-text): New
function that returns information about opening large files in
Emacs.  (Bug#45412)
(files--ask-user-about-large-file): Use read-multiple-choice to
display the available actions.
* etc/NEWS: Advertise the new feature.

3 years agoExtend read-multiple-choice to support free-form help descriptions
Daniel Martín [Thu, 6 May 2021 08:21:59 +0000 (10:21 +0200)]
Extend read-multiple-choice to support free-form help descriptions

* lisp/emacs-lisp/rmc.el (read-multiple-choice): Add a new argument to
override the default help description in `read-multiple-choice'.  Use
the `help-char' variable instead of ?\C-h.  Also support the `edit'
action from `query-replace-map', so that help links can be visited by
entering a recursive edit.

3 years agoNew option to confirm deletion in bookmark menu
Karl Fogel [Wed, 5 May 2021 21:40:52 +0000 (16:40 -0500)]
New option to confirm deletion in bookmark menu

* lisp/bookmark.el (bookmark-menu-confirm-deletion): New defcustom.
(bookmark-delete-all): Add comment explaining why we don't use the new
confirmation formula here.
(bookmark-bmenu-execute-deletions): Conditionally confirm deletion.
Note that the bulk of the code diff here is just reindentation of an
otherwise unchanged `let' expression.

* etc/NEWS: Announce the new option.

Thanks to Lars Ingebrigtsen and Eli Zaretskii for review, and thanks
to Oliver Taylor for suggesting the option in the first place:

  https://lists.gnu.org/archive/html/emacs-humanities/2021-02/msg00022.html
  From: Oliver Taylor
  Subject: Re: [emacs-humanities] Extending Emacs Bookmarks to Work with EWW
  To: Karl Fogel
Cc: Stefan Kangas, Emacs-humanities mailing list
  Date: Wed, 3 Feb 2021 20:21:59 -0800
  Message-Id: <936D47EA-4D11-452B-8303-971B6386877B@me.com>

3 years agoRename feature `nativecomp' into `native-compile'
Andrea Corallo [Wed, 5 May 2021 15:18:07 +0000 (17:18 +0200)]
Rename feature `nativecomp' into `native-compile'

* test/src/comp-tests.el : Rename feature `nativecomp' into
`native-compile'.
* test/lisp/help-fns-tests.el (help-fns-test-lisp-defun): Likewise.
* src/comp.c (syms_of_comp): Likewise.
* lisp/startup.el (normal-top-level): Likewise.
* lisp/loadup.el: Likewise.
* lisp/help.el (help-function-arglist): Likewise.
* lisp/emacs-lisp/package.el (package--native-compile-async)
(package--delete-directory): Likewise.
* lisp/emacs-lisp/nadvice.el (advice--add-function): Likewise.
* lisp/emacs-lisp/comp.el (comp-ensure-native-compiler): Likewise.
* lisp/emacs-lisp/advice.el (ad-add-advice): Likewise.

3 years agoFix setting of 'width' and 'height' frame parameters
Martin Rudalics [Wed, 5 May 2021 16:36:00 +0000 (18:36 +0200)]
Fix setting of 'width' and 'height' frame parameters

* src/frame.c (Fframe_parameters): Fix bogus setting of 'height'
and 'width' parameters.

3 years ago* test/lisp/help-fns-tests.el (help-fns-test-lisp-defsubst): Fix (bug#48221).
Andrea Corallo [Wed, 5 May 2021 15:11:08 +0000 (17:11 +0200)]
* test/lisp/help-fns-tests.el (help-fns-test-lisp-defsubst): Fix (bug#48221).

3 years agoTweak how some Japanese punctuation chars are translated to ASCII
Kazuhiro Ito [Wed, 5 May 2021 15:09:07 +0000 (17:09 +0200)]
Tweak how some Japanese punctuation chars are translated to ASCII

* lisp/language/japan-util.el (japanese-symbol-table): Tweak
Japanese punctuation character translation (bug#47767).

3 years ago* Better identify native compiler presence in two tests.
Andrea Corallo [Wed, 5 May 2021 15:00:59 +0000 (17:00 +0200)]
* Better identify native compiler presence in two tests.

* test/lisp/help-fns-tests.el (help-fns-test-lisp-defun)
(help-fns-test-lisp-defsubst): Better identify native-comp
presence.

3 years agoDon't bug out in `Info-goto-node' completion
Daniel Mendler [Wed, 5 May 2021 14:58:35 +0000 (16:58 +0200)]
Don't bug out in `Info-goto-node' completion

* lisp/info.el (Info-read-node-name-1): Don't bug out in the
middle of completion, but return nil instead (and issue a message)
(bug#47771).

3 years agoFix error in ses.el when setting the current row
Boruch Baum [Wed, 5 May 2021 13:05:50 +0000 (15:05 +0200)]
Fix error in ses.el when setting the current row

* lisp/ses.el (ses-jump, ses-list-local-printers)
(ses-list-named-cells): Use `user-error' for user errors.
(ses-set-header-row): Function `ses-set-header-row' was
determining the current row based upon variable `ses--curcell',
but that variable is NIL until one begins an operation on a cell
(eg. keybindings '=', '"'), so navigating to a row was
insufficient to select that row, and further generated an ERROR
because the code was not expecting a NIL value for variable
`ses--curcell' (bug#47784).

3 years agoAllow `C-x C-k l' to work even if `C-h l' is unbound
Lars Ingebrigtsen [Wed, 5 May 2021 12:59:49 +0000 (14:59 +0200)]
Allow `C-x C-k l' to work even if `C-h l' is unbound

* lisp/kmacro.el (kmacro-edit-lossage): `view-lossage' may be
bound to a different key than `C-h l' (bug#47785).

3 years agoRemove unnecessary call to message in js.el
Matt Beshara [Wed, 5 May 2021 12:49:33 +0000 (14:49 +0200)]
Remove unnecessary call to message in js.el

* lisp/progmodes/js.el (js--end-of-defun-nested): Remove debugging
message left over (bug#48234).

3 years agoUse @defmac on eval-{and,when}-compile
Lars Ingebrigtsen [Wed, 5 May 2021 08:31:33 +0000 (10:31 +0200)]
Use @defmac on eval-{and,when}-compile

* doc/lispref/compile.texi (Eval During Compile):  Use @defmac
instead of @defspec on two macros (bug#47862).

3 years agoFix two GTK3 event handling issues
Martin Rudalics [Wed, 5 May 2021 08:26:32 +0000 (10:26 +0200)]
Fix two GTK3 event handling issues

* src/xterm.c (handle_one_xevent): For GTK3 PropertyNotify and
MapNotify events explicitly request the stored frame sizes when
the frame changes from iconified to a non-hidden state
(Bug#24526).  For Expose events do not change the frame's
visibility or iconified state.  For FocusIn events on GTK3 do
not apply the fix for Bug#42655.  The latter two changes are to
avoid that plain invisible frames get reported as iconified.

3 years agoMake the ELC+ELN lines line up with the other lines
Lars Ingebrigtsen [Wed, 5 May 2021 07:41:49 +0000 (09:41 +0200)]
Make the ELC+ELN lines line up with the other lines

3 years agoAdd new defvoo nnimap-keepalive-intervals to Gnus nnimap servers
Eric Abrahamsen [Mon, 3 May 2021 16:14:24 +0000 (09:14 -0700)]
Add new defvoo nnimap-keepalive-intervals to Gnus nnimap servers

* lisp/gnus/nnimap.el (nnimap-keepalive-intervals): New per-server
config for customizing when keepalive commands are sent.
(nnimap-keepalive, nnimap-open-connection-1): Consult in these
places.  Additionally, use nnimap-streaming -> t when sending the
keepalive NOOP, so we don't wait for the response.
* doc/misc/gnus.texi (Customizing the IMAP Connection): Document.

3 years agoRemove unused lexical variables in cc-defs.el
Basil L. Contovounesios [Tue, 4 May 2021 19:56:37 +0000 (20:56 +0100)]
Remove unused lexical variables in cc-defs.el

* lisp/progmodes/cc-defs.el (c-sc-scan-lists-no-category+1+1)
(c-sc-scan-lists-no-category+1-1, c-sc-scan-lists-no-category-1+1)
(c-sc-scan-lists-no-category-1-1): Remove unused lexical variable
'here' to pacify byte-compilation warnings in cc-engine.el.

3 years ago* Do not try to load unexistent eln file if async compilation was skipped
Andrea Corallo [Tue, 4 May 2021 19:31:44 +0000 (21:31 +0200)]
* Do not try to load unexistent eln file if async compilation was skipped

* lisp/emacs-lisp/comp.el (comp-run-async-workers): Don't try to
load if the eln file was not produced.

3 years agoFix infloop in lsp-mode
Eli Zaretskii [Tue, 4 May 2021 17:37:33 +0000 (20:37 +0300)]
Fix infloop in lsp-mode

* src/indent.c (line_number_display_width): Make sure the selected
window's buffer is current before using display code on it:
redisplay assumes that the window's buffer is current at all
times.  Reported by Evgeny Kurnevsky via lsp-mode's issue 1621,
https://github.com/emacs-lsp/lsp-mode/issues/1621.

3 years agoMerge from origin/emacs-27
Glenn Morris [Tue, 4 May 2021 14:50:28 +0000 (07:50 -0700)]
Merge from origin/emacs-27

40228fffd7 (origin/emacs-27) Fix code for newline-and-indent in skele...
56c4c8ef32 * lisp/jka-compr.el (jka-compr-uninstall): Fix function re...

3 years ago; Merge from origin/emacs-27
Glenn Morris [Tue, 4 May 2021 14:50:28 +0000 (07:50 -0700)]
; Merge from origin/emacs-27

The following commits were skipped:

6a46d3d809 (emacs-27) ; Auto-commit of loaddefs files.
ccfd2e20a9 Fix GUD overlay arrows in M-x gdb when debugging over Tram...
e61688f87d Fix setting breakpoints in M-x gdb for remote files.  Don'...

3 years agoMerge from origin/emacs-27
Glenn Morris [Tue, 4 May 2021 14:50:25 +0000 (07:50 -0700)]
Merge from origin/emacs-27

101a049f55 Improve doc string of 'tab-width'.
43c154404e * lisp/emacs-lisp/elp.el: Doc fixes.
1984213f62 * lisp/emacs-lisp/pp.el: Doc fixes.
6486c9dc73 * admin/make-tarball.txt: Note to update more files on web...

3 years agoRemove as of recently unused GDK macro
Basil L. Contovounesios [Tue, 4 May 2021 14:08:16 +0000 (15:08 +0100)]
Remove as of recently unused GDK macro

Its only use was removed in the recent change of 2021-04-27 "Major
rewrite of adjust_frame_size", announced in the following thread:
https://lists.gnu.org/r/emacs-devel/2021-04/msg01162.html

* src/gtkutil.c [USE_GTK && !HAVE_GTK3] (gdk_window_get_geometry):
Remove unused macro to pacify -Wunused-macros build warning.

3 years ago; Fix and simplify last change in bookmark.el.
Basil L. Contovounesios [Tue, 4 May 2021 09:36:56 +0000 (10:36 +0100)]
; Fix and simplify last change in bookmark.el.

3 years agoFix inconsistent behaviour in find-file-noselect when using nowarn
Lars Ingebrigtsen [Tue, 4 May 2021 09:48:27 +0000 (11:48 +0200)]
Fix inconsistent behaviour in find-file-noselect when using nowarn

* lisp/files.el (after-find-file): Behave the same in when
warning/not warning (bug#47850).  This fixes this test case:
(switch-to-buffer (find-file-noselect "non-existing-dir/test.el" t))
which would leave the buffer read-only.

3 years agoAllow TAB to go to a key in EPA key buffers
Lars Ingebrigtsen [Tue, 4 May 2021 09:25:33 +0000 (11:25 +0200)]
Allow TAB to go to a key in EPA key buffers

* lisp/epa.el (epa--insert-keys): Allow TAB to go to the keys
(bug#47876).

3 years agoFix doc marker for previous bookmark NEWS change
Lars Ingebrigtsen [Tue, 4 May 2021 09:04:38 +0000 (11:04 +0200)]
Fix doc marker for previous bookmark NEWS change

3 years agoFontify lines when setting a bookmark
Boruch Baum [Tue, 4 May 2021 08:58:52 +0000 (10:58 +0200)]
Fontify lines when setting a bookmark

* lisp/bookmark.el (bookmark-fontify): New user option (bug#48179).
(bookmark-face): New face.
(bookmark--fontify, bookmark--unfontify): New functions.
(bookmark-set-internal, bookmark--jump-via, bookmark-delete): Use
them.

3 years agoEnsure updating the animated image in all windows
Lars Ingebrigtsen [Tue, 4 May 2021 07:57:30 +0000 (09:57 +0200)]
Ensure updating the animated image in all windows

* lisp/image.el (image-show-frame): Simplify the window update --
pass in the buffer, which is a noop if the buffer isn't displayed.

3 years agoFix a problem with x_set_tab_bar_lines (Bug#46827)
Martin Rudalics [Tue, 4 May 2021 07:17:11 +0000 (09:17 +0200)]
Fix a problem with x_set_tab_bar_lines (Bug#46827)

* src/xfns.c (x_set_tab_bar_lines): Call
x_change_tab_bar_height only if the number of tab bar lines
changed from or to zero (Bug#46827).
* src/xterm.c (x_make_frame_visible): Make frame_size_history
update less noisy by doing it only if the frame wasn't visible
before.