Commit Graph

151382 Commits

Author SHA1 Message Date
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
Stefan Kangas
bd4a2fc385 ; * etc/NEWS: Restore entry that had been inadvertently deleted. 2021-09-06 08:49:37 +02:00
Juri Linkov
4e5af2988f * etc/NEWS: Reorder "Isearch and Replace" items 2021-09-06 09:32:39 +03:00
Eli Zaretskii
f9cd9d430a * doc/emacs/maintaining.texi (Xref Commands): Fix indexing. 2021-09-06 07:28:05 +03:00
Stefan Kangas
c3ca31308f * etc/NEWS: Improve file organization. 2021-09-06 04:27:12 +02:00
Stefan Kangas
e7fc61f739 Improve documentation of save-place-abbreviate-file-names
* lisp/saveplace.el (save-place-abbreviate-file-names): Document why
you might want to enable this option.
2021-09-06 04:26:30 +02:00
Stefan Kangas
c88c4467cb * etc/NEWS: Don't mention a fixed bug. 2021-09-06 04:26:30 +02:00
Stefan Kangas
ff7867b4e7 ; * test/lisp/newcomment-tests.el: Fix copyright year. 2021-09-06 04:26:30 +02:00
Dmitry Gutov
71f8b55f46 project--files-in-directory: Fix handling of ignores
* lisp/progmodes/project.el (project--files-in-directory):
Pass "." as the DIR argument to 'find' because otherwise the ignore
expression can match the project root directory name, which we don't
want to happen (bug#50240).  Fixup the resulting file names at the end
with concatenation.
Originally I thought it could lead to worse performance, but the
results show equal or slightly better timings.

* lisp/progmodes/xref.el (xref-matches-in-directory):
Apply a similar fix.
(xref--find-ignores-arguments): Use file-name-as-directory, so
that when passed "." replace-match still had the expected effect.

* test/lisp/progmodes/project-tests.el (project-ignores-bug-50240):
New test.

* test/lisp/progmodes/xref-tests.el
(xref-matches-in-directory-filters-with-ignores): New test.
2021-09-06 05:01:07 +03:00
Dmitry Gutov
80d318aabb Try to fix vc-test-git06-version-diff on Hydra
* test/lisp/vc/vc-tests.el (vc-test--version-diff):
Fix Git backend when running in clean environment.
(vc-test-git06-version-diff): Unskip on Hydra.
2021-09-06 02:32:46 +03:00
Glenn Morris
97aa8240d2 * doc/misc/efaq.texi: Misc copyedits.
Prefer mailing lists to newgroups.
(History of Emacs): Rename from "Status of Emacs".
Move XEmacs node here.
(Emacs for other operating systems): Merge all the "non-Unix"
systems into a single node.
2021-09-05 15:51:35 -07:00
Glenn Morris
dd4be8ad3b * test/lisp/vc/vc-tests.el (vc-test-git06-version-diff): Skip on hydra. 2021-09-05 14:04:43 -07:00
Dmitry Gutov
d864389c34 * lisp/progmodes/xref.el: Bump the version again. 2021-09-05 22:25:15 +03:00
Philip Kaludercic
70d459914f Implement multi-prefix capability
* rcirc.el (rcirc-implemented-capabilities): Add capability
(rcirc-user-nick): Handle multiple prefixes
2021-09-05 20:46:14 +02:00
Philip Kaludercic
e37f3ce3b4 Fix rcirc-track-abbrevate-flag documentation
* rcirc.el (rcirc-track-abbrevate-flag): Rephrase docstring
2021-09-05 20:34:18 +02:00
Philip Kaludercic
0f1db3dc2b Store symbols in rcirc-acked-capabilities
* rcirc.el (rcirc-handler-CAP): Use intern and downcase
2021-09-05 20:30:43 +02:00
Eli Zaretskii
aecf4518a0 ; * lisp/indent.el (tab-first-completion): Fix :version tag. 2021-09-05 21:24:22 +03:00
Juri Linkov
794fdce55d Improve tab-bar event handling (bug#41343)
* lisp/tab-bar.el (tab-bar--key-to-number): Rename from tab--key-to-number.
(tab-bar--event-to-item): New function from tab-bar-handle-mouse.
(tab-bar-mouse-select-tab, tab-bar-mouse-close-tab)
(tab-bar-mouse-context-menu, tab-bar-mouse-move-tab):
Use tab-bar--event-to-item.

* src/menu.c (x_popup_menu_1): Handle Qtab_bar in the second list element.

* src/xdisp.c (tty_get_tab_bar_item): Change arg 'end' to bool 'close_p'.
(tty_get_tab_bar_item): Detect if the close button was clicked.
(tty_handle_tab_bar_click): Return a list with caption that has
text properties.
2021-09-05 20:16:33 +03:00
Philip Kaludercic
008a033bbb Print value on malformed input
* rcirc.el (rcirc-define-command): Unquote argument
2021-09-05 19:13:48 +02:00
Lars Ingebrigtsen
c5b654b3f1 Autoload cl-struct-slot-info
* lisp/emacs-lisp/cl-macs.el (cl-struct-slot-info): Autoload
(bug#50301).

* test/lisp/emacs-lisp/memory-report-tests.el: Don't require cl-macs.
2021-09-05 16:52:14 +02:00