1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-28 07:50:48 -08:00
Commit graph

161866 commits

Author SHA1 Message Date
Eli Zaretskii
98c273ce1c Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-11-10 12:09:39 +02:00
Eli Zaretskii
7e9afea775 ; * test/lisp/dired-tests.el (dired-test-bug59047): Rename. 2022-11-10 12:08:47 +02:00
Alan Mackenzie
af6a93b2b8 * lisp/progmodes/cc-mode.el (c-fl-decl-start): Fix off-by-one error.
This fixes bug #59070.
2022-11-10 10:06:20 +00:00
Gabriel do Nascimento Ribeiro
7879eca247 Make 'dired-hide-details-mode' work after 'dired-hide-subdir'
* lisp/dired.el (dired--unhide): Restore text properties.
(Bug#59047)

* test/lisp/dired-tests.el (dired-test-bugXXXX): New test.
2022-11-10 12:05:59 +02:00
Matt Armstrong
b4db61f580 Rewrite the `kill-buffer-delete-auto-save' tests (bug#59028)
These tests had been annoying to me when run in interactive mode.
They failed to bind `kill-buffer-delete-auto-save' as needed, so they
depended on the user's settings, and they failed to mock out the
"Buffer modified, save?" prompt.

* test/src/buffer-tests.el (test-kill-buffer-auto-save): New helper
function that mocks the two different kinds of prompts that occur when
killing modified buffers that visit a file.  Tests fail if expected
prompts are not issued.
(test-kill-buffer-auto-save-default): Use it, and explicitly bind
`kill-buffer-delete-auto-save' to nil.
(test-kill-buffer-auto-save-delete): Delete it.
(test-kill-buffer-auto-save-delete-yes): New test for the "yes" half
of the old `test-kill-buffer-auto-save-delete'.
(test-kill-buffer-auto-save-delete-yes): Ditto for the "no" half.
2022-11-10 11:53:46 +02:00
Nicolas Graner
abbb0facea Better support for 'textarea' and 'select' tags in EWW
* lisp/net/eww.el (eww-tag-textarea, eww-tag-select): Don't miss
'textarea' and 'select' tags.  (Bug#58973)
2022-11-10 11:45:40 +02:00
Po Lu
0047bdeb33 Be a little more paranoid about XI 2.0 implementations
* src/xterm.c (xi_populate_device_from_info):
(xi_disable_devices): Do not restore valuator values if the
valuator info has a mode of Relative and a value of 0.0.
2022-11-10 13:25:28 +08:00
Juanma Barranquero
ef3627508a Make 't' in bs-mode be more defensive
* lisp/bs.el (bs-visit-tags-table): Verify that	the
buffer holds a tags-table file before using it as
such. This is identical to bug#54133 affecting
Buffer-menu, and this fix is copied from the one
by Eli Zaretskii in commit 794fbd1c07 of 2022-02-24.
Thanks to Bob Rogers <rogers@rgrjr.com> for noticing.
2022-11-10 01:31:22 +01:00
Alan Mackenzie
78144156b0 Optimize c-bs-interval, changing its value from 5000 to 2000
* lisp/progmodes/cc-engine.el (c-bs-interval): This optimization speeds
forward scrolling in a C Mode buffer by ~2.4%, backward scrolling by ~1.8%.
2022-11-09 21:28:18 +00:00
Juri Linkov
60219b1e4e * lisp/tab-bar.el (tab-bar-auto-width): Add selected-frame to the cache key. 2022-11-09 19:29:37 +02:00
Eli Zaretskii
85b0587a93 Avoid assertion violations in matrix_row
* src/xdisp.c (cursor_in_mouse_face_p): Avoid rare assertion
violations when the cursor's VPOS winds up being invalid for the
window.  (Bug#59147)
2022-11-09 16:25:02 +02:00
Stefan Kangas
6d1af1560e * lisp/thread.el (thread-list-mode-map): Prefer defvar-keymap. 2022-11-09 15:10:24 +01:00
Stephen Leake
43db0e2784 Delete emacs < 26.2 workaround in eglot--apply-text-edits
* lisp/progmodes/eglot.el (eglot--apply-text-edits): Delete emacs <
26.2 workaround; fixes bug in ada-mode test.
2022-11-09 06:00:40 -08:00
Eli Zaretskii
7c7e12405b ; Fix typos in help.texi
* doc/lispref/help.texi (Documentation Groups): Fix typos.
Reported by Yuan Fu <casouri@gmail.com>.  (Bug#59136)
2022-11-09 15:26:42 +02:00
F. Jason Park
4bd5ac04a3 Teach thing-at-point to recognize bracketed IPv6 URLs
* lisp/thingatpt.el (thing-at-point-bounds-of-url-at-point): Allow
IPv6 addresses as hosts.  Overshoots in the case of bracketed markup
but is rescued by `thing-at-point--bounds-of-well-formed-url'.
* test/lisp/thingatpt-tests.el (thing-at-point-test-data): Add cases
for IPv6 URLs.  Bug#56514.
2022-11-09 05:15:11 -08:00
Po Lu
b7e476a3d3 Make the PGTK port display a loud warning when run under X
* src/pgtkterm.c (pgtk_display_x_warning): New function.
(pgtk_term_init): Call it.
2022-11-09 21:05:24 +08:00
Po Lu
6f329bd239 "Fix" iconification handling on PGTK
* src/pgtkterm.c (pgtk_iconify_frame): Write some more comments
and refrain from setting the frame as iconified here.
(map_event): Remove redundant braces.
(window_state_event): Remove useless code and manage frame
visibility as correctly as possible under Wayland while
iconified.  (bug#55836)
2022-11-09 21:05:24 +08:00
Po Lu
c05b013174 Avoid use of `uint' type in XKB code
* src/xterm.c (x_find_modifier_meanings, handle_one_xevent): Use
`unsigned int' instead of `uint'.
2022-11-09 20:18:18 +08:00
Mattias Engdegård
8dc36cc53b * src/lread.c (syms_of_lread): Drop unused capture group. 2022-11-09 11:54:57 +01:00
Nicholas Vollmer
a01024c859 bytecomp.el (byte-recompile-directory): Fix negated ignore logic
Previous logic would only compile files which matched the
byte-compile-ignore-files regular expression.  (Bug#59115)
2022-11-09 09:50:38 +01:00
Juri Linkov
3820e75d2f * lisp/tab-bar.el (tab-bar-auto-width): Use 'frame-inner-width'. 2022-11-09 10:39:51 +02:00
Juri Linkov
9cbc0fd66a * lisp/tab-bar.el (tab-bar-get-buffer-tab): Add optional arg 'all-tabs'. 2022-11-09 09:45:17 +02:00
Alexander Adolf
0e25a39e69 EUDC: Add ecomplete and mailabbrev backends
* doc/misc/eudc.texi (Overview): Add ecomplete and mailabbrev
nodes.
(ecomplete, mailabbrev): New nodes.
(Installation): Add ecomplete and mailabbrev nodes.
(LDAP Configuration): Use code formatting instead of quotes.
(macOS Contacts Configuration): Likewise.
(ecomplete Configuration): New node.
(mailabbrev Configuration): Likewise.
* etc/NEWS (EUDC): Mention ecomplete and mailabbrev backends,
mention eudc-server-hotlist default change.
* lisp/net/eudc-vars.el (eudc-known-protocols): Add ecomplete and
mailabbrev.
(eudc-server-hotlist): Add entries for ecomplete and mailabbrev.
* lisp/net/eudcb-ecomplete.el: New EUDC backend file.
* lisp/net/eudcb-mailabbrev.el: Likewise.
* test/lisp/net/eudc-resources/ecompleterc,
test/lisp/net/eudc-resources/mailrc: New eudc-tests resource
files.
* test/lisp/net/eudc-tests.el (eudc-test-rfc5322-quote-phrase)
(eudc-test-make-address, eudcb-ecomplete, eudcb-mailabbrev): New
test cases.
2022-11-08 18:19:15 -05:00
Thomas Fitzsimmons
1f53a5f1b3 EUDC: Deprecate eudc-server variable
* lisp/net/eudc-vars.el (eudc-server): Deprecate variable for
Emacs 29.1.
2022-11-08 18:19:15 -05:00
Stephen Leake
5b9b393c61 * lisp/progmodes/eglot.el (eglot--pos-to-lsp-position): Improve comment 2022-11-08 09:45:26 -08:00
Alan Mackenzie
5fa0fcf18b CC Mode: Improve accuracy of recognition of bitfields
* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): When we've got two
identifiers followed by a colon, additionally check for a number (or
identifier) followed by a semicolon or comma before concluding we have a
bitfield.
2022-11-08 14:55:40 +00:00
Robert Pluim
444e46fbee Don't use @w around @xref in ede.texi
Texinfo 7 warns about this now.

* doc/misc/ede.texi (ede-project-placeholder, ede-project,
ede-cpp-root-project, ede-simple-project,ede-simple-base-project,
ede-proj-project, project-am-makefile, ede-step-project, ede-target,
ede-proj-target, ede-proj-target-makefile,
semantic-ede-proj-target-grammar, ede-proj-target-makefile-objectcode,
ede-proj-target-makefile-archive, ede-proj-target-makefile-program,
ede-proj-target-makefile-shared-object, ede-proj-target-elisp,
ede-proj-target-elisp-autoloads,
ede-proj-target-makefile-miscelaneous, ede-proj-target-makefile-info,
ede-proj-target-scheme, project-am-target, project-am-objectcode,
project-am-program, project-am-header-noinst, project-am-header-inst,
project-am-lisp, project-am-texinfo, project-am-man,
ede-compilation-program, ede-compiler, ede-object-compiler,
ede-linker): Remove @w around @xref.
2022-11-08 14:16:51 +01:00
Po Lu
12e601f981 Clean up some duplicate event group conversion code
* src/xterm.c (xi_convert_event_keyboard_state): New function.
Move keyboard event state over.
(handle_one_xevent): Use it where necessary.
2022-11-08 20:00:36 +08:00
Alan Mackenzie
b8134a7eba CC Mode: Stabilize the fontification in the presence of "register" keywords
This fixes bug #58883.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): New variable
unsafe-maybe.  Set it in CASE 10 rather than setting c-record-type-identifiers
to nil.  Near the end of the function, when unsafe-maybe is set, bind
c-promote-possible-types to 'just-one rather than t around the call to
c-forward-type.
2022-11-08 11:53:37 +00:00
Thomas Fitzsimmons
68e2a9cd92 EUDC: Add eudc-ignore-options-file customization
* etc/NEWS (EUDC): Document eudc-ignore-options-file.
* doc/misc/eudc.texi (The Server Hotlist): Likewise
* lisp/net/eudc-vars.el (eudc-ignore-options-file): New variable.
(eudc-options-file): Mention new variable.
* lisp/net/eudc.el: Warn on load if eudc-ignore-options-file is
set but the options file exists.
(eudc-set-server): Support
eudc-ignore-options-file.
(eudc-bookmark-server): Likewise.
(eudc-save-options): Likewise.  (Bug#56154)
2022-11-07 20:05:05 -05:00
Juri Linkov
80c3fadfd5 ; * lisp/tab-bar.el (tab-bar-auto-width): Remaining renaming in docstring. 2022-11-07 20:05:38 +02:00
Eli Zaretskii
d04433b962 ; Improve documentation of automatic tab-bar tab resizing
* etc/NEWS:
* lisp/tab-bar.el (tab-bar-auto-width): Rename from
tab-bar-fixed-width.  All similar variables changed accordingly;
all users changed.
(tab-bar-auto-width, tab-bar-auto-width-max)
(tab-bar-auto-width-min): Doc fixes.

* etc/NEWS: Resurrect the lost Local variables section.
2022-11-07 15:40:33 +02:00
Po Lu
d30a7c142d Add missing SAFE_FREE on XI 2.0 servers
* src/xterm.c (xi_populate_device_from_info): Add missing
SAFE_FREE.
2022-11-07 20:34:14 +08:00
Alan Mackenzie
c19ca5eb7f CC Mode: Fix infinite loop in c-brace-stack-at.
This fixes bug #59038.  The infinite loop occurred with a buffer containing
Base-64 encoded text rather than appropriate C Mode text.

* lisp/progmodes/cc-engine.el (c-update-brace-stack): Don't execute
c-beginning-of-current-token unless the previous c-syntactic-re-search-forward
has succeeded at least once.
2022-11-07 12:20:07 +00:00
Po Lu
802671493d Avoid invalid values showing up in scroll valuators
* src/xterm.c (xi_populate_device_from_info): Reset emacs_value
when invalid_p is cleared.
2022-11-07 18:08:57 +08:00
Juri Linkov
236703ca05 * lisp/outline.el (outline-minor-mode): Ensure margins are either 0 or 1.
This check is necessary to make it idempotent to multiple calls.
2022-11-07 10:14:45 +02:00
Stefan Monnier
35221a7bd5 (itree_insert_gap, itree_delete_gap): Minor optimization
`limit` can get smaller in either of the two children of a node.
It can also happen that the root node itself has a low enough limit
that the loop can be interrupted right away.

The previous code only checked `limit` when going down to a left
child, which is not wrong, but tests suggest that it is also very
common to reach this limit when going to a right child, so move the
test accordingly.

* src/itree.c (itree_insert_gap, itree_delete_gap): Check `limit` for
all nodes, rather than only when following a `left` pointer.
2022-11-07 00:38:43 -05:00
Stefan Kangas
61d55ce3bb Merge from origin/emacs-28
70fb03a49a ; * doc/emacs/search.texi (Lax Search): Improve suggestion...
5779df0c5b ; * doc/lispref/searching.texi: Remove reference to Posix....
46929f6b73 ; Improve documentation of character classes in regexps
2022-11-06 23:21:01 +01:00
Philip Kaludercic
8fe62b2ab5 Revert "* lisp/vc/vc-git.el (vc-git--rev-parse): Allow abbreviating commits"
This reverts commit 307ad21004.
2022-11-06 22:50:59 +01:00
Ingo Lohmar
4103b6c407 Fix sql-{beginning,end}-of-statement counting
* lisp/progmodes/sql.el (sql-beginning-of-statement, sql-end-of-statement):
Do not count statement separators if inside a string.
2022-11-06 17:31:05 +01:00
Mattias Engdegård
e46f680489 ; * lisp/emacs-lisp/package.el (package-load-all-descriptors): Use \` 2022-11-06 16:01:13 +01:00
Eli Zaretskii
6cb963ff19 ; Avoid compiler warnings in 'extend_face_to_end_of_line'
* src/xdisp.c (extend_face_to_end_of_line): Return if no
default_face is cached or could be realized.  This avoids
compilation warnings about NULL pointer dereferences.
2022-11-06 16:45:30 +02:00
Stefan Kangas
9c0b90e6a9 Prefer defvar-keymap in octave.el
* lisp/progmodes/octave.el (octave-mode-map): Prefer
defvar-keymap.
2022-11-06 15:40:19 +01:00
Stefan Kangas
2ea9f69f07 Fix failing eshell alias tests
* test/lisp/eshell/esh-var-tests.el (esh-var-test/alias/function)
(esh-var-test/alias/symbol-pair): Fix tests.  (Bug#59062)
2022-11-06 15:38:10 +01:00
Eli Zaretskii
5233186611 Revert "Pacify -Wnull-dereference"
This reverts commit dad452552b.
Please don't assume I write such code by omission.
2022-11-06 16:31:25 +02:00
Po Lu
44138d5ecc ; * src/image.c (syms_of_image): Add missed part of change.
Author:
2022-11-06 20:11:56 +08:00
Po Lu
5f8c655a44 Fix splash screen display on NS and Haiku with native image APIs
* src/image.c (syms_of_image): Add Qsvg image type if SVG is
also supported by native image APIs.
2022-11-06 20:07:49 +08:00
Po Lu
dad452552b Pacify -Wnull-dereference
* src/xdisp.c (extend_face_to_end_of_line): Use FACE_FROM_ID,
not FACE_FROM_ID_OR_NULL, when the next line proceeds to
immediately dereference the face.
2022-11-06 19:42:36 +08:00
Po Lu
f305d1ab3a Write more commentary on XI2 device management
* src/xterm.c (xi_populate_device_from_info): Take dpyinfo.
Describe what master and slave devices are, how they represent
seats, and how they are used to multiplex user input.  Also
simplify ifdefs and avoid looping over scroll classes on XI 2.0.
(x_cache_xi_devices, handle_one_xevent): Adjust accordingly.
(x_term_init): Set dpyinfo->xi2_version before calling
x_cache_xi_devices.
2022-11-06 19:39:01 +08:00
Eli Zaretskii
cd296e19a2 ; * src/itree.h (forget_itree): Make the prototype conditional. 2022-11-06 12:22:11 +02:00