1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-25 01:10:47 -08:00
Commit graph

155589 commits

Author SHA1 Message Date
Stefan Kangas
26d5b510e1 Center Emacs logo above text on the splash screen
* lisp/startup.el (fancy-splash-head): Center Emacs logo above
text on the splash and about screen.
2021-09-08 04:18:44 +02:00
Dmitry Gutov
ff2c4a8353 Have Git backend actions accept nil filenames again
* lisp/vc/vc-git.el (vc-git--literal-pathspec):
Move the nil check to the beginning (bug#50422).
2021-09-08 02:33:24 +03:00
Harald Jörg
81677cb699 cperl-mode.el: Use rx sequences for Perl grammar
Following advice by Mattias Engdegård, most uses of rx-to-string
were eliminated, and rx sequences used instead to define Perl
grammar components.
* lisp/progmodes/cperl-mode.el: (cperl-block-declaration-p): New
function, replaces regexp literals.
(cperl-imenu--function-name-regexp-perl): Deleted, use rx
sequences to find imenu entries instead.
(cperl-indent-line): Use rx components instead of regexp literals.
(cperl-sniff-for-indent): use `cperl-block-declaration-p' to
increase accuracy, use rx sequence for labels to replace
inaccurate regexp literals.
(cperl-block-p): Replace inline comment by docstring.  Use
`cperl-block-declaration-p'.
(cperl-after-block-p): Use `cperl-block-declaration-p'.
(cperl-after-block-and-statement-beg): Replace inline comment by
docstring.
(cperl-imenu-package-keywords), (cperl-imenu-sub-keywords),
(cperl-imenu-pod-keywords) : New variables to sort imenu
entries into categories.
(cperl-imenu--create-perl-index): Use rx sequences to collect
imenu entries.
(cperl-init-faces): Use rx components instead of regexp literals
for labels.

* test/lisp/progmodes/cperl-mode-tests.el: Test rx sequences
instead of regexp strings
2021-09-07 22:31:06 +02:00
Philip Kaludercic
2ef6691602
Add rcirc-track-ignore-server-buffer-flag option
* rcirc.el (rcirc-track-ignore-server-buffer-flag): Add option
(rcirc-record-activity): Use rcirc-track-ignore-server-buffer-flag
2021-09-07 21:53:22 +02:00
Eric Abrahamsen
6cca705aa6 Don't let nndiary.el alter variables when loading file
* lisp/gnus/nndiary.el (nndiary-open-server): Move the manipulation of
`gnus-extra-headers' and `nnmail-extra-headers' into this function: it
should only happen if we're actually firing up an nndiary server.
Previously, simply attempting to complete a gnus-* prefixed symbol
could end up loading this file, and changing the variable values.
2021-09-07 11:51:39 -07:00
Glenn Morris
0cd410fb82 ; Improve resolution of previous merge conflict 2021-09-07 09:41:57 -07:00
Alan Mackenzie
400b3c9376 Increase jit-lock-chunk-size from 500 to 1500 for performance reasons
* lisp/jit-lock.el (jit-lock-chunk-size): Increase to 1500.

See also https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg00540.html.
2021-09-07 16:32:49 +00:00
Eli Zaretskii
91afb9363d ; * doc/emacs/maintaining.texi (Project File Commands): Fix wording. 2021-09-07 19:22:48 +03:00
Lars Ingebrigtsen
743a53343c Encode urls more before using in browse-url
* lisp/net/browse-url.el (browse-url-default-windows-browser)
(browse-url-default-macosx-browser): Encode the URL before using
(in case it contains spaces) (bug#50435).
2021-09-07 17:46:55 +02:00
Lars Ingebrigtsen
8448782b40 Fix encoding in browse-url-encode-url
* lisp/net/browse-url.el (browse-url-url-encode-chars): Document
what the argument really is, and simplify the implementation
(bug#50435).
(browse-url-encode-url): Encode spaces.
2021-09-07 17:46:55 +02:00
Alex Bochannek
6b2d5ad615 Add a new Gnus command to toggle whether to use fonts in shr
* doc/misc/gnus.texi (Article Washing): Document it.

* lisp/gnus/gnus-art.el (gnus-article-toggle-fonts): New command
and key binding (bug#50383).
2021-09-07 17:46:55 +02:00
Lars Ingebrigtsen
f10a4aad33 Improve the Info mode line further
* lisp/info.el (Info-set-mode-line): Improve the Info mode line
further (bug#13776).
2021-09-07 17:46:55 +02:00
Eli Zaretskii
4128186cc9 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2021-09-07 18:45:35 +03:00
Eli Zaretskii
11b56fa0b4 Fix a recent documentation change
* lisp/progmodes/xref.el (xref-auto-jump-to-first-definition)
(xref-auto-jump-to-first-xref):
* etc/NEWS: Fix wording and typos.
2021-09-07 18:44:26 +03:00
Glenn Morris
f7c26e7b31 Merge from origin/emacs-27
97aa8240d2 (origin/emacs-27) * doc/misc/efaq.texi: Misc copyedits.
e1050492d1 * doc/misc/efaq.texi (Reporting bugs): Refer to the Emacs ...

# Conflicts:
#	doc/misc/efaq.texi
2021-09-07 08:31:22 -07:00
Michael Albinus
31db28b1bb Adapt tramp-test26-file-name-completion
* test/lisp/net/tramp-tests.el (tramp-test26-file-name-completion):
Do not check for default method.
2021-09-07 16:28:41 +02:00
Eli Zaretskii
b02c9bcceb Improve documentation of new Xref options
* lisp/progmodes/xref.el (xref-auto-jump-to-first-definition)
(xref-auto-jump-to-first-xref): More accurate description in the
doc strings.

* doc/emacs/maintaining.texi (Looking Up Identifiers)
(Identifier Search, List Identifiers, Project File Commands): Fix
the documentation of 'xref-auto-jump-to-first-definition' and
'xref-auto-jump-to-first-xref' to be more accurate.

* etc/NEWS: More accurate wording of the entry about
'xref-auto-jump-to-first-definition' and
'xref-auto-jump-to-first-xref'.
2021-09-07 16:03:27 +03:00
Michael Albinus
d5c6bf9625 Do not expand default method, user, host in remote file name completion
* lisp/net/tramp.el (tramp-completion-handle-file-name-all-completions):
Do not expand default method, user, host.  (Bug#50387)
(tramp-get-completion-methods): `partial-method' can be nil.
2021-09-07 14:36:06 +02:00
Eli Zaretskii
db74a93659 Fix display of tab-bar buttons
* src/xterm.c (x_draw_image_relief):
* src/w32term.c (w32_draw_image_relief): Fix calculation of relief
thickness for tab-bar buttons.

* lisp/tab-bar.el (tab-bar--load-buttons)
(tab-bar-history-mode): Fix the :margin specification for tab-bar
buttons.  (Bug#50424)
2021-09-07 13:24:01 +03:00
Philip Kaludercic
ec0e46d66b
Use fresh symbol for argument list
* rcirc.el (rcirc-define-command): Use make-symbol instead of gensym
2021-09-07 11:03:36 +02:00
Philip Kaludercic
4a0c0e5606
Allow /reconnect while connecting
* rcirc.el (reconnect): Kill previous process and start a new one
2021-09-07 10:33:51 +02:00
A
55540a3d89 * test/lisp/vc/vc-tests.el (vc-test--version-diff): Git env tweak. 2021-09-06 19:12:30 -07:00
Dmitry Gutov
b52cafe496 Support specifying just one command in project-switch-commands
* lisp/progmodes/project.el (project-switch-commands):
Describe the new possible type of value.
(project--switch-project-command):
New function, extract from project-switch-project.
(project-switch-project): If project-switch-commands's value is a
symbol, invoke that command without showing a menu.

Co-authored-by: Jiacai Liu <hello@liujiacai.net>
2021-09-07 04:45:15 +03:00
Stefan Kangas
e09e827145 Small FAQ fixes
* doc/misc/efaq.texi (Colors on a TTY): Remove reference to
ancient Emacs version 22.
(Finding Emacs on the Internet): Use more current terminology.
2021-09-07 03:17:27 +02:00
Stefan Kangas
4c54a6cd5d Remove Emacs FAQ maintainer
* doc/misc/efaq.texi: Remove maintainer Romain Francoise after private
communication.
2021-09-07 03:00:36 +02:00
Stefan Kangas
3a2c6417cc * etc/NEWS: Some further re-organization. 2021-09-07 02:06:39 +02:00
Stefan Kangas
4bd3a40ee3 * etc/NEWS: Clarify entry about the "*Completions*" buffer. 2021-09-07 01:49:33 +02:00
Philip Kaludercic
8275f0b117
Mention list of capabilities that should be implemented
* rcirc.el (rcirc-implemented-capabilities): Add comment
2021-09-06 23:26:05 +02:00
Philip Kaludercic
354929a85a
Implement standard-replies capability
* rcirc.el (rcirc-implemented-capabilities): Add standard-replies to list
(rcirc-response-formats): Add response formats for WARN, FAIL and NOTE
(rcirc-handler-FAIL): Add handler
(rcirc-handler-WARN): Add handler
(rcirc-handler-NOTE): Add handler
2021-09-06 23:19:52 +02:00
Philip Kaludercic
659a77a0eb
Connect to server asynchronously
* rcirc.el (rcirc-connect): Add :nowait option to open-network-stream
(rcirc-sentinel): Handle "open\n" events
2021-09-06 23:19:46 +02:00
Tassilo Horn
163e3052c8 Add possibility to override the default highlighting
* lisp/progmodes/bug-reference.el (bug-reference-fontify): Highlight
99th group if it exists.
(bug-reference-bug-regexp): Document that regexp group 99 can be used
to override the default behavior of highlighting the complete match.
(bug-reference--run-auto-setup): Use run-hook-with-args-until-success
instead of throw/catch.
2021-09-06 21:47:38 +02:00
Mattias Engdegård
96e50693fc ; * etc/NEWS: revert a change that changed the meaning slightly 2021-09-06 19:32:56 +02:00
Mattias Engdegård
c4724add00 Normalise nested progn forms in byte-code optimiser
* lisp/emacs-lisp/byte-opt.el (byte-optimize-body): Flatten body.
This simplifies the source tree and reduces the number of different
cases that other optimisations need to take into account.
2021-09-06 16:47:13 +02:00
Mattias Engdegård
bba48d6ee5 More robust optimisation of ignore
Treat `ignore` as any other function during source-level optimisation,
to avoid having its warning-suppression effects cancelled by repeated
passes.  Instead, define a custom code generation function.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
Don't treat `ignore' specially here.
(side-effect-free-fns): Don't mark `ignore` as side-effect-free
or error-free (although it is), since that would allow the optimiser
to elide calls.
* lisp/emacs-lisp/bytecomp.el (ignore, byte-compile-ignore):
Define and register a code-gen function.
2021-09-06 16:47:13 +02:00
Mattias Engdegård
fab1e220db Optimise member and assoc (etc) with constant empty list
* lisp/emacs-lisp/byte-opt.el
(byte-optimize-assq): New.
(byte-optimize-member, byte-optimize-assoc, byte-optimize-memq):
When the list argument is constant nil, the result is always nil.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test cases.
2021-09-06 16:47:13 +02:00
Dmitry Gutov
ba6df55475 Fixup dired-do-find-regexp-and-replace
* lisp/dired-aux.el (dired-do-find-regexp-and-replace):
Disregard the customized value of xref-auto-jump-to-first-xref
(it breaks the xref-query-replace-in-results invocation).

* lisp/progmodes/xref.el (xref-auto-jump-to-first-xref):
Mention the caveat for users or xref distributed through ELPA.
2021-09-06 17:08:07 +03:00
Michael Albinus
9ff425d16f Revert an accidential change in etc/NEWS 2021-09-06 15:16:51 +02:00
Michael Albinus
5f5623981c ; Fix typos in etc/NEWS 2021-09-06 15:06:07 +02:00
Lars Ingebrigtsen
61e5570863 Make calc-grab-region work with rectangular selects
* lisp/calc/calc.el (calc-grab-region): Heed `rectangle-mark-mode'
(bug#50403).
2021-09-06 12:56:02 +02:00
martin rudalics
9680994d3a Restore the debugging window size more reliably
* lisp/emacs-lisp/debug.el (debug): Restore the debugging window
size more reliably (bug#12921).
2021-09-06 12:48:07 +02:00
Lars Ingebrigtsen
63618ba27a Add a tooltip to the comint-mode mode line format
* lisp/comint.el (comint-mode): Add a tooltip to say what the :run
bit means (bug#13776).
2021-09-06 12:36:32 +02:00
Lars Ingebrigtsen
8ed2f20145 Improve the info-mode mode line
* lisp/info.el (Info-set-mode-line): Add a help echo to help
explain what the thing in parentheses is (bug#13776).
2021-09-06 12:33:22 +02:00
Eli Zaretskii
61562c78dd ; * lisp/tab-bar.el (toggle-frame-tab-bar, tab-bar-new-tab-to): Doc fix. 2021-09-06 13:13:22 +03:00
Eli Zaretskii
555a1ee468 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2021-09-06 13:12:54 +03:00
Eli Zaretskii
c0a0eb5460 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2021-09-06 13:12:30 +03:00
Lars Ingebrigtsen
1ff772e28a Simplify `image-dired-dired-file-marked-p'
* lisp/image-dired.el (image-dired-dired-file-marked-p): Use
`dired-re-mark' instead of open-coding the opposite regexp (bug#14925).
2021-09-06 12:10:37 +02:00
Eli Zaretskii
fb061cd0ca ; * etc/NEWS: Rearrange and fix wording of some entries. 2021-09-06 13:10:16 +03:00
Lars Ingebrigtsen
331be89e7c Improve the gnus-group-default-list-level doc string
* lisp/gnus/gnus-group.el (gnus-group-default-list-level): Improve
doc string.
2021-09-06 11:12:00 +02:00
Lars Ingebrigtsen
9309dc9df9 Reset gnus-group-use-permanent-levels when Gnus restarts
* lisp/gnus/gnus-start.el (gnus-clear-system): Reset
`gnus-group-use-permanent-levels' upon Gnus restart (bug#50416).
2021-09-06 11:07:55 +02:00
Allen Li
7f9ca3b2f4 Make `gnus-group-use-permanent-levels' work better
* lisp/gnus/gnus-group.el (gnus-group-default-level): Removed implicit
setting of gnus-group-use-permanent-levels.
(gnus-group-list-groups): Set gnus-group-use-permanent-levels
explicitly.
(gnus-group-get-new-news): Set gnus-group-use-permanent-levels
explicitly (bug#50417).
(gnus-group-get-new-news): When the user has given a numeric
prefix, use that as the list level.
2021-09-06 11:00:06 +02:00