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
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
Eli Zaretskii
7c7a47b86e ; * etc/NEWS: Fix a recent change. 2021-09-05 13:33:46 +03:00
Lars Ingebrigtsen
3d0276e98b Improve the documentation around the read-key/minibuffer prompting
* lisp/subr.el (read-char-choice-use-read-key): Explain the
difference.
(read-char-choice): Mention the variables.
(y-or-n-p-use-read-key): Explain the difference.
(y-or-n-p): Mention the variable (bug#50390).
2021-09-05 12:02:20 +02:00
Lars Ingebrigtsen
73a90cda4a Clarify completion-list-mode NEWS entry
* etc/NEWS: Clarify completion-list-mode entry (bug#50394).
2021-09-05 12:02:20 +02:00
Eli Zaretskii
8f2e8add98 ; * doc/emacs/maintaining.texi (Looking Up Identifiers): Fix last change. 2021-09-05 12:30:35 +03:00
Juri Linkov
0972cbe42f * lisp/progmodes/xref.el: Fix defcustoms (bug#50067)
* lisp/progmodes/xref.el (xref-auto-jump-to-first-definition)
(xref-auto-jump-to-first-xref, xref-search-program): Fix defcustoms.
2021-09-05 11:36:30 +03:00
Eli Zaretskii
2ed2999ce5 Improve documentation of new Xref options
* doc/emacs/maintaining.texi (Looking Up Identifiers):
* etc/NEWS: Document the new Xref user options.  Move a lost
Xref-related entry to the rest of them.
2021-09-05 10:59:07 +03:00
Augusto Stoffel
1fdd898704 Fixes for 'python-shell-send-string' and 'python-shell-send-file'
* lisp/progmodes/python.el (python-shell-send-string): use a temporary
file for sufficiently long strings.
(python-shell-send-file, python-shell-eval-file-setup-code): Avoid
showing "plumbing code" in the traceback (bug#32042).
2021-09-05 09:43:13 +02:00
Ian W
ba84ec8bd9 Fix error handling in 'ispell-init-process'
* lisp/textmodes/ispell.el (ispell-init-process): When Ispell
initialization reports an error, call 'ispell-accept-output' only
if the Ispell process is still alive.  (Bug#50370)

Copyright-paperwork-exempt: yes
2021-09-05 10:25:22 +03:00
Michael Albinus
e6f936eb4d Cleanup tramp-tests.el
* test/lisp/net/tramp-tests.el
(tramp--test--deftest-direct-async-process): Fix macro declaration.
(tramp-test29-start-file-process, tramp-test30-make-process):
Do not run connection type test for direct async processes.
2021-09-05 09:23:30 +02:00
Glenn Morris
76300b87d4 * test/lisp/vc/vc-tests.el (vc-test-sccs06-version-diff): Fix it. 2021-09-04 18:39:20 -07:00
Dmitry Gutov
94530e7ea9 Belated fix
* lisp/progmodes/xref.el: (xref--show-xref-buffer):
Fix support for xref-auto-jump-to-first-xref.
2021-09-05 03:52:29 +03:00
Dmitry Gutov
c298337505 * lisp/progmodes/xref.el: Bump version. 2021-09-05 03:36:30 +03:00
Dmitry Gutov
1be8bfae6b Xref: automatic jumping to the first definition or reference
* lisp/progmodes/xref.el (xref-auto-jump-to-first-definition)
(xref-auto-jump-to-first-xref): New user options.
Discussed in bug#50067.
(xref--show-xrefs, xref--show-defs): Use them here.
(xref--auto-jump-first): New function, handles different values.
(xref-show-definitions-buffer)
(xref-show-definitions-buffer-at-bottom): Use it.
2021-09-05 03:35:43 +03:00
Dmitry Gutov
1d36043809 Fix test on machines with Bzr not set up
* test/lisp/vc/vc-tests.el (vc-test--version-diff):
Add EMAIL= to the environment to avoid potential failure.
2021-09-05 02:44:08 +03:00
Philip Kaludercic
608b2ec9be
Replace with-current-buffer with buffer-local-value where applicable
* rcirc.el (rcirc-buffer-process): Use buffer-local-value
(rcirc-last-quit-line): Use buffer-local-value
(rcirc-bury-buffers): Use buffer-local-value
(rcirc-record-activity): Use buffer-local-value
2021-09-05 01:39:52 +02:00
Matthias Meulien
ea53f0df65 Add tests for vc-version-diff
* test/lisp/vc/vc-tests.el (vc-test--version-diff):
New function.
(vc-test-%s06-version-diff): New family of tests.
2021-09-05 02:32:49 +03:00
Dmitry Gutov
88795df552 Rename xref-select-and-{goto,show}-xref
* lisp/progmodes/xref.el (xref-select-and-show-xref):
Rename from xref-select-and-goto-xref (bug#35376).
Update all references.
2021-09-05 01:45:46 +03:00
Basil L. Contovounesios
534e631b00 Avoid segfault in command-modes
* src/data.c (Fcommand_modes): Check that bytecode object is
interactive before accessing its interactive spec to avoid
segfaulting (bug#50376).
2021-09-04 21:28:31 +02:00
Stefan Kangas
0fe03c4740 ; * etc/NEWS: Fix copyright year; file recreated in 2019 for 28.1. 2021-09-04 20:11:12 +02:00
Basil L. Contovounesios
16a36732b8 ; * etc/NEWS: Fix markup in recent example. 2021-09-04 18:03:48 +01:00
Stefan Monnier
c78969d31b * lisp/emacs-lisp/timer.el (timer-create): Don't inline it 2021-09-04 12:52:16 -04:00
Eli Zaretskii
0daad76704 Improve documentation of line truncation and wrapping
* doc/emacs/display.texi (Line Truncation, Visual Line Mode):
* doc/lispref/display.texi (Truncation): Document that turning on
line truncation disables wrapping, and vice versa.

* src/buffer.c (syms_of_buffer) <truncate-lines>:
* src/xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>:
Warn against turning on when 'visual-line-mode' is in effect.
* lisp/simple.el (visual-line-mode): Document that this mode
disables line truncation.  (Bug#29664)
2021-09-04 13:34:32 +03:00
Lars Ingebrigtsen
a8de88e330 Allow killing the diff buffer after `C-x v u'
* doc/emacs/maintaining.texi (VC Undo): Document this.
* lisp/vc/vc.el (vc-revert-show-diff): Allow a `kill' value.
(vc-revert): Use it (bug#16902).
2021-09-04 11:14:12 +02:00
Lars Ingebrigtsen
56c98a4ad8 Improve error message in ielm on printing errors
* lisp/ielm.el (ielm-eval-input): Don't claim that there's a bug
on pp -- it may just be something that nests too far (bug#18012).
2021-09-04 10:38:50 +02:00
Lars Ingebrigtsen
239ca285f9 Add a customization group link from whitespace-mode
* lisp/whitespace.el (whitespace-mode): Add a link to the
whitespace customization group to see the faces (bug#18296).
2021-09-04 10:19:39 +02:00
Lars Ingebrigtsen
3f999c03c2 Add support for customization group hyperlinks in doc strings
* lisp/help-mode.el (help-customization-group): New button.
(help-xref-customization-group-regexp): New const.
(help-make-xrefs): Use them to allow making customization group
buttons.
2021-09-04 10:19:03 +02:00
Lars Ingebrigtsen
7e7723796c Make multi-frame M-x calendar' setup work when pop-up-frames'
* lisp/calendar/calendar.el (calendar): Make the calendar frame
setup work when pop-up-frames is non-nil (bug#19256).
2021-09-04 09:34:29 +02:00
Lars Ingebrigtsen
7ca949b7ef Tweak hi-lock-mode doc string
* lisp/hi-lock.el (hi-lock-mode): Tweak the doc string so that
running hi-lock-mode in a *Help* buffer showing this help text
won't issue an error (bug#20977).
2021-09-04 09:12:10 +02:00
Lars Ingebrigtsen
c6b1f8daa7 Make `M-x term' offer completion
* lisp/term.el (term): Have completion in the prompt (bug#21296).
2021-09-04 09:12:10 +02:00
Yuchen Pei
ca7e76c6f9 Add diary-offset to diary-lib.el
* doc/emacs/calendar.texi: Document the change.
* lisp/calendar/diary-lib.el (diary-offset):
* test/lisp/calendar/icalendar-tests.el: Add a test (bug#50195).
2021-09-04 09:12:10 +02:00
Stefan Kangas
f9dcde3906 * etc/DISTRIB: Refer to gnu.org instead of the deleted file etc/GNU. 2021-09-04 09:08:54 +02:00