]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years ago* Use `expand-file-name' in place of `concat' in comp-tests.el
Andrea Corallo [Mon, 26 Apr 2021 15:28:38 +0000 (17:28 +0200)]
* Use `expand-file-name' in place of `concat' in comp-tests.el

* test/src/comp-tests.el (comp-test-src,
comp-test-dyn-src) (comp-tests-bootstrap, comp-tests-pure,
comp-test-src): Use `expand-file-name' in place of `concat'.

3 years agoMove native compiler test data into proper directory (bug#48031)
Andrea Corallo [Mon, 26 Apr 2021 15:03:19 +0000 (17:03 +0200)]
Move native compiler test data into proper directory (bug#48031)

* test/src/comp-tests-resources/comp-test-45603.el: Rename.
* test/src/comp-tests-resources/comp-test-funcs-dyn.el: Likewise.
* test/src/comp-tests-resources/comp-test-funcs.el: Likewise.
* test/src/comp-tests-resources/comp-test-pure.el: Likewise.
* test/src/comp-tests.el (comp-test-directory): Update.

3 years ago* test/src/comp-tests.el: Fix it for non native compiled build (bug#48031).
Andrea Corallo [Mon, 26 Apr 2021 14:58:36 +0000 (16:58 +0200)]
* test/src/comp-tests.el: Fix it for non native compiled build (bug#48031).

3 years ago* Fix comp-cstr tests for vanilla build (bug#48021)
Andrea Corallo [Mon, 26 Apr 2021 14:49:22 +0000 (16:49 +0200)]
* Fix comp-cstr tests for vanilla build (bug#48021)

* test/lisp/emacs-lisp/comp-cstr-tests.el (comp-ctxt): Fix tests
for vanilla build (bug#48021)

3 years ago* lisp/emacs-lisp/comp.el (comp-accept-and-process-async-output): Fix regexp.
Andrea Corallo [Mon, 26 Apr 2021 13:59:06 +0000 (15:59 +0200)]
* lisp/emacs-lisp/comp.el (comp-accept-and-process-async-output): Fix regexp.

3 years agoSome rearrangement in gitlab-ci.yml
Michael Albinus [Mon, 26 Apr 2021 13:53:59 +0000 (15:53 +0200)]
Some rearrangement in gitlab-ci.yml

* test/infra/gitlab-ci.yml (test-filenotify-gio, test-gnustep):
Add 'needs:' clause.
(build-native-bootstrap-speed0, build-native-bootstrap-speed1)
(build-native-bootstrap-speed2): Rename from 'test-*'.  Do not use
'--without-makeinfo'.

3 years agoFix typo in tramp-get-remote-gid
Dario Gjorgjevski [Mon, 26 Apr 2021 07:57:23 +0000 (09:57 +0200)]
Fix typo in tramp-get-remote-gid

* lisp/net/tramp.el (tramp-get-remote-gid): Pass the correct
operation to find-file-name-handler.  (Bug#48026)

3 years ago* src/editfns.c (Fpropertize): Doc fix; reference Info manual.
Stefan Kangas [Mon, 26 Apr 2021 02:39:51 +0000 (04:39 +0200)]
* src/editfns.c (Fpropertize): Doc fix; reference Info manual.

3 years ago; NEWS copyedits
Glenn Morris [Mon, 26 Apr 2021 00:49:42 +0000 (17:49 -0700)]
; NEWS copyedits

3 years ago; Add 2021 to copyright years
Glenn Morris [Mon, 26 Apr 2021 00:24:48 +0000 (17:24 -0700)]
; Add 2021 to copyright years

3 years ago* lisp/url/url-proxy.el (url-find-proxy-for-url): Minor simplification
Stefan Monnier [Sun, 25 Apr 2021 21:29:01 +0000 (17:29 -0400)]
* lisp/url/url-proxy.el (url-find-proxy-for-url): Minor simplification

3 years ago* lisp/startup.el (comp-eln-load-path): Silence a warning.
Andrea Corallo [Sun, 25 Apr 2021 18:56:32 +0000 (20:56 +0200)]
* lisp/startup.el (comp-eln-load-path): Silence a warning.

3 years agoHack around problems in Turkish environments in url-proxy
Lars Ingebrigtsen [Sun, 25 Apr 2021 18:54:26 +0000 (20:54 +0200)]
Hack around problems in Turkish environments in url-proxy

* lisp/url/url-proxy.el (url-find-proxy-for-url): Work around a
problem in Turkish language environments (where a downcased I is
?ı (bug#44604).

3 years ago* lisp/emacs-lisp/comp.el (no-native-compile): Minor doc fixes.
Stefan Kangas [Sun, 25 Apr 2021 18:47:20 +0000 (20:47 +0200)]
* lisp/emacs-lisp/comp.el (no-native-compile): Minor doc fixes.

3 years ago* lisp/help-macro.el: Remove stale Change Log.
Stefan Kangas [Sun, 25 Apr 2021 15:33:41 +0000 (17:33 +0200)]
* lisp/help-macro.el: Remove stale Change Log.

3 years agoAdjust regexp to extra native-comp lines
Lars Ingebrigtsen [Sun, 25 Apr 2021 18:36:01 +0000 (20:36 +0200)]
Adjust regexp to extra native-comp lines

3 years agoMerge branch 'feature/native-comp' into into trunk
Andrea Corallo [Sun, 25 Apr 2021 18:06:22 +0000 (20:06 +0200)]
Merge branch 'feature/native-comp' into into trunk

3 years agoRevert window/winner changes (Revert 0454bfd3313)
Lars Ingebrigtsen [Sun, 25 Apr 2021 17:47:06 +0000 (19:47 +0200)]
Revert window/winner changes (Revert 0454bfd3313)

See bug#23621 for an explanation.

3 years agoCC Mode: Get proper search limits in c-font-lock-cut-off-declarators
Alan Mackenzie [Sun, 25 Apr 2021 17:40:16 +0000 (17:40 +0000)]
CC Mode: Get proper search limits in c-font-lock-cut-off-declarators

* lisp/progmodes/cc-fonts.el (c-font-lock-cut-off-declarators): Instead of
using a crude 2,000 characters back limit for backward searching, which is
erroneous when that point is in a literal, use the already calculated
c-determine-limit result.

3 years agoMerge from origin/emacs-27
Glenn Morris [Sun, 25 Apr 2021 16:16:09 +0000 (09:16 -0700)]
Merge from origin/emacs-27

7d5b973959 (origin/emacs-27) * doc/misc/cl.texi (For Clauses): Minor ...
4570781f8d ; * doc/lispref/files.texi (Directory Names): Add missing ...
1b52fd538d Minor update for make-tarball.txt
8efb8491b2 * doc/misc/cl.texi (Iteration Clauses): fix `never' clause...
0873134682 ; Fix Texinfo in last change to minibuf.texi.
cad8913c89 Improve filling-related documentation
2b7eed23eb ; * doc/lispref/keymaps.texi (Easy Menu): Fix typo.
47fc92cefc Fix reference to "yanking" in the main Emacs manual
1789dcdb35 Improve documentation of 'map-y-or-n-p'

3 years agoAdd more scroll key bindings to make-help-screen
Stefan Kangas [Sun, 25 Apr 2021 14:57:47 +0000 (16:57 +0200)]
Add more scroll key bindings to make-help-screen

* lisp/help-macro.el (make-help-screen): Add bindings to scroll on
<PageUp>, <PageDown>, <up>, <down>.

3 years agoFix the handling of the Delete key in help screens.
Gregory Heytings [Sun, 25 Apr 2021 13:30:15 +0000 (13:30 +0000)]
Fix the handling of the Delete key in help screens.

* lisp/help-macro.el (make-help-screen): Handle the Delete key
in help screens as in Emacs 23 and earlier.

Copyright-paperwork-exempt: yes

3 years ago; * lisp/help.el (help-for-help): Fix thinko.
Stefan Kangas [Sun, 25 Apr 2021 11:57:32 +0000 (13:57 +0200)]
; * lisp/help.el (help-for-help): Fix thinko.

3 years ago* lisp/ses.el: Doc fixes.
Stefan Kangas [Sun, 25 Apr 2021 11:12:48 +0000 (13:12 +0200)]
* lisp/ses.el: Doc fixes.

3 years agoDon't hard-code face of "Install" button
Stefan Kangas [Sun, 25 Apr 2021 10:59:14 +0000 (12:59 +0200)]
Don't hard-code face of "Install" button

* lisp/emacs-lisp/package.el (package-make-button): Use the
'custom-button' face for the "Install" button.  (Bug#47944)

3 years agoRemove redundant #' before lambda in printing.el
Stefan Kangas [Sun, 25 Apr 2021 10:14:17 +0000 (12:14 +0200)]
Remove redundant #' before lambda in printing.el

* lisp/printing.el (pr-menu-create, pr-eval-setting-alist)
(pr-complete-alist, pr-file-list, pr-ps-file-list)
(pr-insert-section-1, pr-insert-section-2)
(pr-insert-section-4, pr-insert-section-5, pr-choice-alist)
Remove redundant #' before lambda.

3 years ago* src/keyboard.c (Flossage_size): Improve prompt.
Stefan Kangas [Sun, 25 Apr 2021 09:49:37 +0000 (11:49 +0200)]
* src/keyboard.c (Flossage_size): Improve prompt.

3 years agoShow correct lossage size in help-for-help
Stefan Kangas [Sun, 25 Apr 2021 09:46:00 +0000 (11:46 +0200)]
Show correct lossage size in help-for-help

* lisp/help.el (help-for-help): Show correct lossage size.  Add
trailing newline.
Suggested by Gregory Heytings <gregory@heytings.org>.

3 years ago* doc/lispref/macros.texi (Eval During Expansion): Copy edit.
Štěpán Němec [Sat, 24 Apr 2021 19:19:48 +0000 (21:19 +0200)]
* doc/lispref/macros.texi (Eval During Expansion): Copy edit.

3 years ago(completion-all-sorted-completions): Fix history use with boundaries
Daniel Mendler [Mon, 19 Apr 2021 22:01:44 +0000 (00:01 +0200)]
(completion-all-sorted-completions): Fix history use with boundaries

Preprocess the history (and the default) through the new function
`minibuffer--sort-preprocess-history` to filter out the completion
base for completion tables with boundaries (in particular the file
completion table).

* lisp/minibuffer.el (minibuffer--sort-preprocess-history_: New function.
(completion-all-sorted-completions): Use it.
* test/lisp/minibuffer-tests.el (completion-all-sorted-completions):
Add tests for various combinations of with/without history/base/default.

3 years ago* lisp/progmodes/project.el: Use project-prefixed-buffer-name in more places.
Juri Linkov [Sat, 24 Apr 2021 21:54:01 +0000 (00:54 +0300)]
* lisp/progmodes/project.el: Use project-prefixed-buffer-name in more places.

(project-shell, project-eshell): Use project-prefixed-buffer-name (bug#47975).
(project-compilation-buffer-name-function): Add :version tag.

3 years ago* doc/misc/cl.texi (For Clauses): Minor copyedits.
Philipp Stephani [Sat, 24 Apr 2021 21:29:58 +0000 (23:29 +0200)]
* doc/misc/cl.texi (For Clauses): Minor copyedits.

3 years ago; * doc/lispref/files.texi (Directory Names): Add missing parenthesis
Philipp Stephani [Sat, 24 Apr 2021 21:22:44 +0000 (23:22 +0200)]
; * doc/lispref/files.texi (Directory Names): Add missing parenthesis

3 years ago* lisp/mpc.el: Avoid (implicit) `eval`; prefer #' to quote function names
Stefan Monnier [Sat, 24 Apr 2021 19:57:22 +0000 (15:57 -0400)]
* lisp/mpc.el: Avoid (implicit) `eval`; prefer #' to quote function names

(mpc-format): Compose functions instead of constructing
source-code expressions at run time.
Rename `mpc-pred` property to `mpc--uptodate-p`.
(mpc-status-buffer-refresh): Adjust to the new property name.

3 years ago* lisp/svg.el: Fix typo in sample code; add minor optimization
Stefan Monnier [Sat, 24 Apr 2021 18:07:12 +0000 (14:07 -0400)]
* lisp/svg.el: Fix typo in sample code; add minor optimization

(svg--elliptical-arc-command, svg--moveto-command)
(svg--lineto-command): Use `mapcan`.

3 years ago* doc/lispref/macros.texi (Eval During Expansion): Fix fixme
Stefan Monnier [Sat, 24 Apr 2021 17:45:08 +0000 (13:45 -0400)]
* doc/lispref/macros.texi (Eval During Expansion): Fix fixme

3 years agoSimlify top-level Makefile since admin is always included
Glenn Morris [Sat, 24 Apr 2021 17:05:17 +0000 (10:05 -0700)]
Simlify top-level Makefile since admin is always included

* Makefile.in (clean_dirs, distclean_dirs, maintainer_clean_dirs):
Add admin directories.
(clean, distclean, bootstrap-clean, maintainer-clean): Simplify.
(maybeclean_dirs): Remove - this dates to when admin/ was not
included in tar files.

3 years ago; Fix some typos in doc strings and manuals
Štěpán Němec [Tue, 21 Apr 2020 08:51:45 +0000 (10:51 +0200)]
; Fix some typos in doc strings and manuals

3 years ago* lisp/help.el (help--for-help-make-sections): Fix typo.
Stefan Kangas [Sat, 24 Apr 2021 16:05:15 +0000 (18:05 +0200)]
* lisp/help.el (help--for-help-make-sections): Fix typo.

3 years agoRedesign and improve the help-for-help (C-h C-h) command
Stefan Kangas [Sat, 24 Apr 2021 13:18:03 +0000 (15:18 +0200)]
Redesign and improve the help-for-help (C-h C-h) command

* lisp/help.el (help-for-help): Redesign help screen; add sections,
rearrange and reword.
(help-for-help-header): New face.
(help--for-help-make-commands, help--for-help-make-sections): New
functions.
(help-for-help-buffer-name): New variable.

* lisp/help-macro.el (make-help-screen): New optional argument
BUFFER-NAME.  Fontify keys.

This change was discussed in:
https://lists.gnu.org/r/emacs-devel/2021-02/msg01695.html
https://lists.gnu.org/r/emacs-devel/2021-03/msg00670.html
https://lists.gnu.org/r/emacs-devel/2021-04/msg00292.html

3 years agoImprove detection of pdumper file and *.eln files
Eli Zaretskii [Sat, 24 Apr 2021 13:01:19 +0000 (16:01 +0300)]
Improve detection of pdumper file and *.eln files

* src/emacs.c (load_pdump_find_executable): Resolve symlinks even
if argv[0] includes leading directories.  (Bug#46790)

3 years agoMinor update for make-tarball.txt
Eli Zaretskii [Sat, 24 Apr 2021 12:17:40 +0000 (15:17 +0300)]
Minor update for make-tarball.txt

* admin/make-tarball.txt (UPDATING THE EMACS WEB PAGES AFTER A
RELEASE): Update and enhance the section to make it easier to find
the banner and verify the updated pages are in place.

3 years ago; * etc/NEWS: Fix last change.
Eli Zaretskii [Sat, 24 Apr 2021 12:00:13 +0000 (15:00 +0300)]
; * etc/NEWS: Fix last change.

3 years ago* doc/misc/cl.texi (Iteration Clauses): fix `never' clause typo
Jorge P. de Morais Neto [Thu, 22 Apr 2021 23:16:33 +0000 (20:16 -0300)]
* doc/misc/cl.texi (Iteration Clauses): fix `never' clause typo

This fixes bug#47962.

Copyright-paperwork-exempt: yes

3 years agoObsolete the TAB binding in *xref* buffers
Eli Zaretskii [Sat, 24 Apr 2021 09:54:44 +0000 (12:54 +0300)]
Obsolete the TAB binding in *xref* buffers

* doc/emacs/maintaining.texi (Xref Commands): Remove the
description of the TAB binding.  Enhance the description of the
RET binding.  (Bug#44611)

* etc/NEWS: Announce the obsolescence of TAB binding in XREF.

* lisp/progmodes/xref.el (xref-goto-xref): Improve doc string.

3 years ago* lisp/rot13.el: Improve documentation. (Bug#47970)
Stefan Kangas [Sat, 24 Apr 2021 08:47:50 +0000 (10:47 +0200)]
* lisp/rot13.el: Improve documentation.  (Bug#47970)

3 years agoImprove diagnostics of loading *.eln files
Eli Zaretskii [Sat, 24 Apr 2021 08:20:50 +0000 (11:20 +0300)]
Improve diagnostics of loading *.eln files

* src/pdumper.c (dump_do_dump_relocation): Improve diagnostics
when loading preloaded *.eln files fails.  (Bug#46790)

3 years ago* lisp/subr.el (remove-hook): Improve last change
Stefan Monnier [Fri, 23 Apr 2021 22:51:40 +0000 (18:51 -0400)]
* lisp/subr.el (remove-hook): Improve last change

Don't put a `hook--depth-alist` property if there isn't one already.

3 years agoFix thinko introduced in the last ERC patch (bug#47788)
Amin Bandali [Fri, 23 Apr 2021 22:49:37 +0000 (18:49 -0400)]
Fix thinko introduced in the last ERC patch (bug#47788)

* lisp/erc/erc-backend.el (erc-open-network-stream): Need to use apply
to call open-network-stream with the supplied arguments because of the
plist p of arguments.  Thanks to neverwas for pointing it out.

3 years ago* lisp/files.el (minibuffer-with-setup-hook): Fix bug#46326
Stefan Monnier [Fri, 23 Apr 2021 21:17:40 +0000 (17:17 -0400)]
* lisp/files.el (minibuffer-with-setup-hook): Fix bug#46326

3 years ago* lisp/subr.el (add-hook): Try and fix bug#46326
Stefan Monnier [Fri, 23 Apr 2021 20:50:12 +0000 (16:50 -0400)]
* lisp/subr.el (add-hook): Try and fix bug#46326

Use `eq` indexing on `hook--depth-alist`.

(remove-hook): Remove old entries from `hook--depth-alist`.

3 years ago* lisp/net/tramp-cmds.el (tramp-recompile-elpa-command-completion-p):
Michael Albinus [Fri, 23 Apr 2021 17:57:50 +0000 (19:57 +0200)]
* lisp/net/tramp-cmds.el (tramp-recompile-elpa-command-completion-p):

Check, whether Tramp has a package description.

3 years ago* lisp/wdired.el (wdired--before-change-fn): Wrap body in save-match-data.
Juri Linkov [Fri, 23 Apr 2021 16:52:22 +0000 (19:52 +0300)]
* lisp/wdired.el (wdired--before-change-fn): Wrap body in save-match-data.

Suggested by Michael Heerdegen <michael_heerdegen@web.de> (bug#14013)

3 years ago; * etc/NEWS: Fix quoting.
Eli Zaretskii [Fri, 23 Apr 2021 13:33:36 +0000 (16:33 +0300)]
; * etc/NEWS: Fix quoting.

3 years agoFix a recent change in minibuf.texi
Eli Zaretskii [Fri, 23 Apr 2021 13:32:37 +0000 (16:32 +0300)]
Fix a recent change in minibuf.texi

* doc/lispref/minibuf.texi (Basic Completion)
(Programmed Completion): Improve wording, punctuation, and markup
of a recently-added text.

3 years ago; * etc/NEWS: Fix typo.
Stefan Kangas [Fri, 23 Apr 2021 13:14:13 +0000 (15:14 +0200)]
; * etc/NEWS: Fix typo.

3 years ago; * etc/NEWS: Fix a recently added entry.
Eli Zaretskii [Fri, 23 Apr 2021 13:02:42 +0000 (16:02 +0300)]
; * etc/NEWS: Fix a recently added entry.

3 years ago* etc/NEWS: 'world-clock-mode' is no longer interactive.
Stefan Kangas [Fri, 23 Apr 2021 12:31:40 +0000 (14:31 +0200)]
* etc/NEWS: 'world-clock-mode' is no longer interactive.

3 years agoExpand documentation on nontrivial completion boundaries.
Philipp Stephani [Fri, 23 Apr 2021 11:01:51 +0000 (13:01 +0200)]
Expand documentation on nontrivial completion boundaries.

The interplay between nontrivial completion boundaries and the other
completion functions is somewhat subtle, so it deserves a bit more
explanation.

* doc/lispref/minibuf.texi (Basic Completion)
(Programmed Completion): Add a few more remarks about nontrivial
completion boundaries.

3 years agoFix small bug in 'completion-table-subvert'.
Philipp Stephani [Fri, 23 Apr 2021 10:52:51 +0000 (12:52 +0200)]
Fix small bug in 'completion-table-subvert'.

Even for a trivial underlying completion table (where the 'boundaries'
action returns nil), we need to provide nontrivial boundaries so that
they match the behavior of 'all-completions'.

* lisp/minibuffer.el (completion-table-subvert): Return boundaries
even for trivial underlying completion table.
* test/lisp/minibuffer-tests.el (completion-table-subvert-test):
Amend unit test to also test boundaries.  While there, also test
the other completion functions.

3 years agoRevert "Remove the binding for xref-quit-and-goto-xref"
Eli Zaretskii [Fri, 23 Apr 2021 06:25:35 +0000 (09:25 +0300)]
Revert "Remove the binding for xref-quit-and-goto-xref"

This reverts commit 522c34f0e80f60969861b0dc34bc7105249f9994.

Making changes to which there was an explicit disagreement
and a long discussion is unacceptable.  (Bug#44611)

3 years agoMisc changes
Dmitry Gutov [Fri, 23 Apr 2021 00:24:06 +0000 (03:24 +0300)]
Misc changes

* lisp/progmodes/project.el (project-shell, project-eshell):
Simplify.
(project-switch-commands, project-switch-use-entire-map):
Add :group keywords (to fix misattribution to project-vc).

3 years agoAdd support for using a TLS client certificate with 'erc-tls' (bug#47788)
Amin Bandali [Fri, 23 Apr 2021 00:22:38 +0000 (20:22 -0400)]
Add support for using a TLS client certificate with 'erc-tls' (bug#47788)

* lisp/erc/erc-backend.el (erc-session-client-certificate): New
buffer-local variable storing the TLS client certificate used for the
current connection.
(erc-open-network-stream): Use open-network-stream instead of
make-network-process, and pass any additional arguments to it.
(erc-server-connect): Add an optional client-certificate argument
that if present is passed with the :client-certificate keyword as part
of the arguments to erc-server-connect-function.
* lisp/erc/erc.el (erc-open): Add new optional client-certificate
argument, set it as erc-session-client-certificate, and pass it along
to erc-server-connect.
(erc): Clarify documentation string with respect to the full-name
argument.
(erc-tls): Add new client-certificate keyword argument and pass it in
the direct call to erc-open (instead of going through erc).
(erc-open-tls-stream): Pass any additional arguments (such as
:client-certificate) to open-network-stream.  Also allow overriding
:nowait if desired.

* doc/misc/erc.texi: Add documentation for erc-tls, including the new
:client-certificate argument.

* etc/NEWS: Announce the change.

3 years agoIntroduce project-compilation-buffer-name-function
Ivan Sokolov [Fri, 23 Apr 2021 00:14:44 +0000 (03:14 +0300)]
Introduce project-compilation-buffer-name-function

* lisp/progmodes/project.el (project-compilation-buffer-name-function):
New option.
(project-compile): Use it.
(project-prefixed-buffer-name): New function.

Copyright-paperwork-exempt: yes

3 years ago* lisp/progmodes/xref.el: Remove the "still experimental" note.
Dmitry Gutov [Thu, 22 Apr 2021 21:19:26 +0000 (00:19 +0300)]
* lisp/progmodes/xref.el: Remove the "still experimental" note.

3 years agoRemove the binding for xref-quit-and-goto-xref
Dmitry Gutov [Thu, 22 Apr 2021 21:18:01 +0000 (00:18 +0300)]
Remove the binding for xref-quit-and-goto-xref

* lisp/progmodes/xref.el (xref--xref-buffer-mode-map):
Remove the binding for xref-quit-and-goto-xref (bug#44611).

* doc/emacs/maintaining.texi (Xref Commands): Update.

3 years ago; * configure.ac (LD_SWITCH_SYSTEM_TEMACS) [mingw32]: Fix last change.
Eli Zaretskii [Thu, 22 Apr 2021 19:11:08 +0000 (22:11 +0300)]
; * configure.ac (LD_SWITCH_SYSTEM_TEMACS) [mingw32]: Fix last change.

3 years ago* lisp/time.el (world-clock-mode): Make non-interactive.
Stefan Kangas [Thu, 22 Apr 2021 18:34:37 +0000 (20:34 +0200)]
* lisp/time.el (world-clock-mode): Make non-interactive.

3 years agoMinor improvements to world-clock
Stefan Kangas [Thu, 22 Apr 2021 18:27:18 +0000 (20:27 +0200)]
Minor improvements to world-clock

* lisp/time.el (world-clock-mode-map): New variable.  Bind 'n' and
'p' to 'next-line' and 'previous-line'.
(world-clock-update): Preserve point.

3 years agoFix MS-Windows link switches for unexec
Eli Zaretskii [Thu, 22 Apr 2021 17:23:23 +0000 (20:23 +0300)]
Fix MS-Windows link switches for unexec

* configure.ac (LD_SWITCH_SYSTEM_TEMACS) [mingw32]: Disable ASLR
when linking for unexec.  Reported by Nikolay Kudryavtsev
<nikolay.kudryavtsev@gmail.com>.

3 years ago* lisp/progmodes/which-func.el: Doc fixes.
Stefan Kangas [Thu, 22 Apr 2021 16:02:06 +0000 (18:02 +0200)]
* lisp/progmodes/which-func.el: Doc fixes.

3 years agoMove part of the fix from project to xref
Dmitry Gutov [Thu, 22 Apr 2021 00:29:09 +0000 (03:29 +0300)]
Move part of the fix from project to xref

* lisp/progmodes/project.el (project--find-regexp-in-files):
Don't unquote file names here.

* lisp/progmodes/xref.el (xref-matches-in-files): Do it here.
And only if the first element in the list is quoted (bug#47799).

3 years agoEnsure that argument to 'verify' is a constant expression.
Philipp Stephani [Thu, 22 Apr 2021 14:11:10 +0000 (16:11 +0200)]
Ensure that argument to 'verify' is a constant expression.

Casting NULL is not a constant expression (Bug#47951).

* lib-src/seccomp-filter.c (main): Turn check for null pointer
representation into a runtime assertion.

3 years ago* lisp/window.el (display-buffer): Doc fix. (Bug#47950)
Utkarsh Singh [Thu, 22 Apr 2021 13:44:43 +0000 (15:44 +0200)]
* lisp/window.el (display-buffer): Doc fix.  (Bug#47950)

Copyright-paperwork-exempt: yes

3 years agoFix unload+reload of files using `custom-initialize-delay` (bug#47072)
Stefan Monnier [Thu, 22 Apr 2021 13:32:04 +0000 (09:32 -0400)]
Fix unload+reload of files using `custom-initialize-delay` (bug#47072)

* lisp/custom.el (custom-initialize-delay): Don't delay if
`custom-delayed-init-variables` has already been processed.
* lisp/startup.el (command-line): Mark `custom-delayed-init-variables`
as processed.

3 years agoFix unclean "can't happen" error handling in read_minibuf_unwind
Alan Mackenzie [Thu, 22 Apr 2021 12:07:21 +0000 (12:07 +0000)]
Fix unclean "can't happen" error handling in read_minibuf_unwind

Also fix a bug where, with minibuffer-follows-selected-frame neither nil nor
t, a minibuffer could appear in two frames at the same time.

* src/window.c (Fset_window_configuration): Add a new &optional parameter
DONT-SET-MINIWINDOW, which inhibits the minibuffer from being restored from
the supplied window configuration.
(restore_window_configuration): Enhance to match the above.

* src/minibuf.c (read_minibuf): Enhance the argument list to the
restore_window_configuration calls to match the above.  In the main case,
restoring the minibuffer is inhibited.
(read_minibuf_unwind): Should the frame with the expired minibuffer not be
found ("can't happen"), unwind the stacked data nevertheless, rather than just
exiting.

* src/keyboard.c (read_char_help_form_unwind): Amend a call of
Fset_window_configuration.

* doc/lispref/windows.texi (Window Configurations): Document the new form of
set-window-configuration.

* etc/NEWS (Lisp Changes in Emacs 28.1): Amend the entry for
set-window-configuration.

3 years agoFix Isearch hscrolling in a corner case
Eli Zaretskii [Thu, 22 Apr 2021 11:01:42 +0000 (14:01 +0300)]
Fix Isearch hscrolling in a corner case

* lisp/isearch.el (isearch-update): When we start hscrolled,
consider also the case that point ends up being to the left of the
hscrolled window's edge.  (Bug#46316)

3 years agoFix 'window-text-pixel-size' when there's after-string at EOB
Eli Zaretskii [Thu, 22 Apr 2021 10:59:08 +0000 (13:59 +0300)]
Fix 'window-text-pixel-size' when there's after-string at EOB

* src/xdisp.c (move_it_to): Fix logic of reaching TO_CHARPOS when
there's a display or overlay string(s) at EOB.  (Bug#47860)

3 years agoImprove a native compiler test
Andrea Corallo [Thu, 22 Apr 2021 07:57:30 +0000 (09:57 +0200)]
Improve a native compiler test

* test/src/comp-tests.el (comp-test-47868-1): Improve
testcase.
* test/src/comp-test-funcs.el (comp-test-47868-3-f)
(comp-test-47868-4-f): New functions.

3 years agoAvoid lowering gc-cons-threshold
Stefan Kangas [Thu, 22 Apr 2021 02:11:02 +0000 (04:11 +0200)]
Avoid lowering gc-cons-threshold

* lisp/cedet/semantic/wisent/comp.el (wisent--compile-grammar):
* lisp/international/mule-cmds.el (ucs-names):
* lisp/progmodes/ebrowse.el (ebrowse-read):
* test/src/coding-tests.el (benchmark-decoder): Avoid lowering
gc-cons-treshold.

3 years ago* lisp/strokes.el: Doc fix; update URL.
Stefan Kangas [Thu, 22 Apr 2021 01:07:53 +0000 (03:07 +0200)]
* lisp/strokes.el: Doc fix; update URL.

3 years agoUse khaki1 as 'match' background
Dmitry Gutov [Thu, 22 Apr 2021 00:09:13 +0000 (03:09 +0300)]
Use khaki1 as 'match' background

* lisp/replace.el (match): Use khaki1 as the background color for
light backgrounds (bug#47574).

3 years ago* lisp/emacs-lisp/package.el (package-archives): Bump :version.
Stefan Kangas [Wed, 21 Apr 2021 21:27:13 +0000 (23:27 +0200)]
* lisp/emacs-lisp/package.el (package-archives): Bump :version.

3 years ago* lisp/emacs-lisp/package.el: Doc fix.
Stefan Kangas [Wed, 21 Apr 2021 21:24:50 +0000 (23:24 +0200)]
* lisp/emacs-lisp/package.el: Doc fix.

3 years ago* lisp/emacs-lisp/comp.el (comp-imm-equal-test): Style fix.
Andrea Corallo [Wed, 21 Apr 2021 21:15:56 +0000 (23:15 +0200)]
* lisp/emacs-lisp/comp.el (comp-imm-equal-test): Style fix.

3 years agoMake outline commands repeatable (bug#47878)
Philip K [Wed, 21 Apr 2021 20:17:27 +0000 (22:17 +0200)]
Make outline commands repeatable (bug#47878)

* outline.el (outline-navigation-repeat-map): Add new map.
(outline-editing-repeat-map): Add new map.

3 years agoDon't erroneously declare `mark` as error-free
Mattias Engdegård [Wed, 21 Apr 2021 15:27:14 +0000 (17:27 +0200)]
Don't erroneously declare `mark` as error-free

* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns)
(side-effect-and-error-free-fns):
`mark` is side-effect-free but not error-free.

3 years ago* lisp/isearch.el (isearch-forward-thing-at-point): New command (bug#39512).
Juri Linkov [Wed, 21 Apr 2021 20:39:27 +0000 (23:39 +0300)]
* lisp/isearch.el (isearch-forward-thing-at-point): New command (bug#39512).

(search-map): Bind "M-s M-." to isearch-forward-thing-at-point.
(isearch-forward-thing-at-point): New defcustom.

3 years ago* lisp/thingatpt.el (region): Put property bounds-of-thing-at-point, bug#39512
Juri Linkov [Wed, 21 Apr 2021 19:37:05 +0000 (22:37 +0300)]
* lisp/thingatpt.el (region): Put property bounds-of-thing-at-point, bug#39512

3 years agoRemove a self-reference from the Emacs Lisp manual.
Philipp Stephani [Wed, 21 Apr 2021 18:54:32 +0000 (20:54 +0200)]
Remove a self-reference from the Emacs Lisp manual.

* doc/lispref/minibuf.texi (Programmed Completion): Remove
self-reference.

3 years agoImprove error message for missing Info manual
Stefan Kangas [Wed, 21 Apr 2021 16:19:46 +0000 (18:19 +0200)]
Improve error message for missing Info manual

* lisp/info.el (Info-find-file): Improve error message for missing
Info manual.  (Bug#46236)
Fix suggested by Eli Zaretskii <eliz@gnu.org>.

3 years ago* lisp/emacs-lisp/comp.el (batch-byte-native-compile-for-bootstrap): Fix typo.
Andrea Corallo [Wed, 21 Apr 2021 13:23:33 +0000 (15:23 +0200)]
* lisp/emacs-lisp/comp.el (batch-byte-native-compile-for-bootstrap): Fix typo.

3 years agoFix native compiler string hash consing strategy (bug#47868)
Andrea Corallo [Wed, 21 Apr 2021 13:23:23 +0000 (15:23 +0200)]
Fix native compiler string hash consing strategy (bug#47868)

* test/src/comp-tests.el (comp-test-47868-1): Add new test.
* test/src/comp-test-funcs.el (comp-test-47868-1-f)
(comp-test-47868-2-f): New functions.
* lisp/emacs-lisp/comp.el (comp-imm-equal-test): Define new hash
tanble test.
(comp-data-container): Use it.
(comp-final, comp-run-async-workers): have comp required before
reading dumped hashes so that `comp-imm-equal-test' is defined.

3 years agoIntroduce `sxhash-equal-including-properties'.
Andrea Corallo [Wed, 21 Apr 2021 12:22:11 +0000 (14:22 +0200)]
Introduce `sxhash-equal-including-properties'.

* src/fns.c (collect_interval): Move it upwards.
(Fsxhash_equal_including_properties): New function.
(syms_of_fns): Register `sxhash-equal-including-properties'.
* etc/NEWS: Add 'sxhash-equal-including-properties'.

3 years agosgml-mode: Only set sgml-xml-mode if guessed to be an XML file
Philip K [Wed, 14 Apr 2021 17:19:01 +0000 (19:19 +0200)]
sgml-mode: Only set sgml-xml-mode if guessed to be an XML file

* lisp/textmodes/sgml-mode.el (sgml-mode): Don't override
sgml-xml-mode if the result of the guess is used as the buffer local
value.  (Bug#47877)

3 years ago; * lisp/mail/rmailmm.el (rmail-mime-set-bulk-data): Fix last change.
Eli Zaretskii [Wed, 21 Apr 2021 12:29:49 +0000 (15:29 +0300)]
; * lisp/mail/rmailmm.el (rmail-mime-set-bulk-data): Fix last change.

3 years ago* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Fix bug#47925
Stefan Monnier [Tue, 20 Apr 2021 23:40:09 +0000 (19:40 -0400)]
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Fix bug#47925

In order to correctly detect the case of the "new style" with an empty body,
remove the old optional arguments `init-value`, `lighter`, and `keymap`,
so we can distinguish the "nil arg" from the "absent arg" cases.

3 years agocperl-mode: Avoid abbrev expansion in variable names
Harald Jörg [Mon, 19 Apr 2021 22:25:39 +0000 (00:25 +0200)]
cperl-mode: Avoid abbrev expansion in variable names

* lisp/progmodes/cperl-mode.el (cperl-electric-else): Don't expand
scalar variables like '$continue' as keywords.  (Bug#47902)
* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test-hyperactive-electric-else): Verify that keywords are
expanded but variable names aren't.

3 years ago* lisp/wdired.el (wdired--self-insert): Put symbol property delete-selection.
Juri Linkov [Tue, 20 Apr 2021 20:04:36 +0000 (23:04 +0300)]
* lisp/wdired.el (wdired--self-insert): Put symbol property delete-selection.

3 years ago* lisp/isearch.el (isearch-post-command-hook): Revert ff796823e5 (bug#47894).
Juri Linkov [Tue, 20 Apr 2021 20:00:26 +0000 (23:00 +0300)]
* lisp/isearch.el (isearch-post-command-hook): Revert ff796823e5 (bug#47894).