1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-07 16:10:46 -08:00
Commit graph

173671 commits

Author SHA1 Message Date
Eli Zaretskii
adbcf268bc Merge from origin/emacs-29
f0300fb059 ; Tweak "(emacs)Bug Reference" formatting/wording.
ea62a14ea3 Fix display of vscrolled windows
4cefa3c0b1 ; * doc/emacs/files.texi (Backup): Clarify "saving" (bug#...
db7b571aaa ; Improve documentation of 'world-clock'
6a0bb7beae * doc/emacs/misc.texi (emacsclient Options): Suggest forw...
859b4227e3 Update go-ts-mode to support latest tree-sitter-go grammar
407e85ce13 Fix c++-ts-mode defun navigation (bug#65885)
aca5064f12 ; Fix last change.
55aab2d471 ; * etc/PROBLEMS: An entry about focus issues with XFCE (...
19cee16576 ; * doc/emacs/misc.texi (emacsclient Options): Fix typo. ...
2a41b6ba51 ; * src/filelock.c (Flock_file): Doc fix (bug#70216).
2024-04-13 07:37:13 -04:00
Eli Zaretskii
952f20fabe ; Fix documentation of last change.
* etc/NEWS:
* doc/lispref/display.texi (Other Display Specs):
* doc/lispref/text.texi (Special Properties): Fix last changes.
2024-04-13 14:20:16 +03:00
Vladimir Kazanov
5734047b81 Support tooltips for fringe indicators
* src/xdisp.c (note_fringe_highlight): New function.
(note_mouse_highlight): Call it when the mouse is on the fringes.
* src/frame.c (syms_of_frame) <left-fringe-help>
<right-fringe-help>: DEFSYM them.

* etc/NEWS:
* doc/lispref/text.texi (Special Properties):
* doc/lispref/display.texi (Other Display Specs): Document the new
properties.
* etc/TODO: Remove the todo item about this.
2024-04-13 14:14:04 +03:00
Eli Zaretskii
8b210a636f ; Improve documentation of tree-sitter "things"
* doc/lispref/parsing.texi (User-defined Things): Fix text,
punctuation, and markup.
(Tree-sitter Major Modes): Add the missing "things" reference.

* etc/NEWS: Fix "thing"-related entries.
2024-04-13 11:52:57 +03:00
Basil L. Contovounesios
f0300fb059 ; Tweak "(emacs)Bug Reference" formatting/wording. 2024-04-13 10:36:50 +02:00
Philip Kaludercic
6c721af9c8 Allow 'help-quick' to use a non-global keymap
* lisp/help.el (help-quick-sections): Mention
'help-quick-use-map' in docstring.
(help-quick-use-map): Add new variable, defaulting to the
global-map.
(help-quick): Use new variable.
2024-04-13 10:21:43 +02:00
Philip Kaludercic
5f6834ab97 ; Fix typo in 'help-quick-sections' docstring 2024-04-13 10:21:43 +02:00
Eli Zaretskii
02e795738b ; * src/alloc.c (process_mark_stack): Fix commentary. 2024-04-13 11:15:18 +03:00
john muhl
d5d61618c8 Mark Flymake regions more accurately in 'lua-ts-mode'
* lisp/progmodes/lua-ts-mode.el (lua-ts-flymake-luacheck): Use
the end position provided by Luacheck rather than relying on
'thing-at-point' to guess where the end should be.  (Bug#70167)
2024-04-13 11:11:18 +03:00
Eli Zaretskii
71f8b2c324 Fix Icalendar export with ISO dates
* lisp/calendar/icalendar.el (icalendar--datestring-to-isodate):
Accept dashes in ISO-style numeric dates.  Patch by Erwan Hingant
<erwan.hingant@mailo.com>. (Bug#69894)

* test/lisp/calendar/icalendar-tests.el
(icalendar--datestring-to-isodate): Add a test for dashes in
ISO-style numeric dates.
2024-04-13 10:52:55 +03:00
Po Lu
4fc3771078 Fix task-switching failures on Android 2.3
* java/org/gnu/emacs/EmacsWindowManager.java (registerWindow):
Don't specify F_A_MULTIPLE_TASK on Android 4.4 and earlier.
2024-04-13 11:28:48 +08:00
Stefan Monnier
e8adb8cf5a (elisp-tests-syntax-propertize): New test for bug#24542
* test/lisp/progmodes/elisp-mode-tests.el (elisp-tests-syntax-propertize):
New test.
2024-04-12 21:54:53 -04:00
Paul Eggert
c26261c027 rcs2log now groks add-log-time-zone rule
* lib-src/rcs2log (extractTZ): Adjust to renaming of
change-log-time-zone-rule to add-log-time-zone rule, by allowing
either spelling.
2024-04-12 13:14:29 -07:00
Stefan Monnier
648b7bf7e2 (emacs-lisp-mode-syntax-table): Fix bug#24542
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode-syntax-table):
Remove `p` from the flags of `@`.
2024-04-12 13:28:45 -04:00
Juri Linkov
5bd4d45867 * lisp/buff-menu.el: Improve 'Buffer-menu-group-by-mode' (bug#70150).
(Buffer-menu-group-by): Replace function-item with const
better suitable for Customization UI.
(Buffer-menu-group-by-mode): Use 'mouse-buffer-menu-mode-groups'
to group buffers by mode.
2024-04-12 19:39:49 +03:00
Juri Linkov
414f8d02c1 New user option 'tab-line-tabs-buffer-group-function'
* lisp/tab-line.el (tab-line-tabs-buffer-group-function):
Turn defvar into defcustom with the default value
'tab-line-tabs-buffer-group-by-mode'.
(tab-line-tabs-buffer-group-by-mode): New function with body from
'tab-line-tabs-buffer-group-name'.
(tab-line-tabs-buffer-group-by-project): New function.
(tab-line-tabs-buffer-groups): Use fallback name "No group" instead of "All".
2024-04-12 19:35:55 +03:00
Michael Albinus
2fc7e21f5e ; * etc/NEWS: Fix typo. 2024-04-12 15:51:26 +02:00
Eli Zaretskii
f93df59e8c ; Fix documentation of a recent change in dbus.el (bug#70301)
* lisp/net/dbus.el (dbus-string-to-byte-array)
(dbus-byte-array-to-string):
* etc/NEWS:
* doc/misc/dbus.texi (Type Conversion): Fix documentation of these
two D-Bus functions.
2024-04-12 14:26:27 +03:00
Eshel Yaron
4ff852a558
; Optimize 'completion-preview--try-table'
* lisp/completion-preview.el (completion-preview-completion-styles):
New variable.  Default to only include the 'basic' completion style.
(completion-preview--try-table): Let-bind 'completion-styles' when
calling 'completion-all-completions'.  With the default value of
'completion-preview-completion-styles', this yields a significant
performance improvement (up to 4 times faster compared to the
'substring' style when tested with 'elisp-completion-at-point').

Suggested by Ergus <spacibba@aol.com>
2024-04-12 10:20:25 +02:00
Michael Albinus
a69890eea9 Improve D-Bus byte-array conversion
* doc/misc/dbus.texi (Type Conversion): Adapt dbus-byte-array-to-string.

* etc/NEWS: D-Bus byte array conversion works over raw UTF-8 bytes.
Fix typos.

* lisp/net/dbus.el (dbus-string-to-byte-array)
(dbus-byte-array-to-string): BYTE-ARRAY must be an UTF-8 raw bytes
sequence.  Make optional argument MULTIBYTE obsolete.  (Bug#70301)
(dbus-call-method-handler, dbus-register-signal)
(dbus-escape-as-identifier): Use `length=' and `length>'.

* test/lisp/net/dbus-tests.el (dbus--test-method-handler)
(dbus-test09-get-managed-objects): Use `length='.
(dbus-test01-type-conversion): Extend test.

* test/lisp/net/secrets-tests.el (secrets-test03-items): Extend test.
2024-04-12 10:09:45 +02:00
Joseph Turner
21775a936b Display Info buffer after ensuring it contains text
* lisp/info.el (info-pop-to-buffer): Move display of Info buffer
to a later stage after its text contents is ready to display.
This helps to use fit-window-to-buffer in display-buffer-alist (bug#70213).
2024-04-12 09:44:56 +03:00
Eli Zaretskii
0fab2649e2 ; Improve documentation of completion commands
* doc/emacs/mini.texi (Completion Commands): Mention that '?' also
shows a couple of commands.
2024-04-11 21:48:47 +03:00
Dmitry Gutov
0284b296f2 minibuffer-completion-help: Fix regression when END < EOB
Which can happen with in-buffer completion (though this scenario
is preffed off by default).

* lisp/minibuffer.el (minibuffer-completion-help): Include the
buffer contents after END into BASE-SUFFIX (bug#48356).
2024-04-11 20:33:16 +03:00
Eli Zaretskii
af57516ed8 etags-regen--tags-generate: Handle spaces in project root name
* lisp/progmodes/etags-regen.el (etags-regen--tags-generate):
Quote the tags file name (bug#70329).
2024-04-11 20:10:18 +03:00
Eli Zaretskii
bbe98eddf7 Fix file names with embedded whitespace in Ediff
* lisp/vc/ediff-ptch.el (ediff-patch-file-internal): Quote file
names that can include special characters.  (Bug#70329)
2024-04-11 19:14:56 +03:00
Eli Zaretskii
c4a8976d59 ; * lisp/bindings.el (mode-line-mode-menu): Add Completion Preview. 2024-04-11 19:04:25 +03:00
Eli Zaretskii
ea62a14ea3 Fix display of vscrolled windows
* src/xdisp.c (redisplay_window): Fix condition for resetting the
window's vscroll.  (Bug#70038)
2024-04-11 18:34:53 +03:00
Mattias Engdegård
b436f430e3 Don't hide flymake diagnostics on empty first line (bug#70310)
A diagnostic first in the buffer, typically the lexical cookie warning,
got lost if that line was empty.

* lisp/progmodes/elisp-mode.el (elisp-flymake--byte-compile-done):
Make sure the location interval doesn't go beyond the buffer bounds.
2024-04-11 13:55:39 +02:00
Mattias Engdegård
fba8f3a6f1 ; * etc/NEWS: Group JSON changes. 2024-04-11 11:49:12 +02:00
Eli Zaretskii
afc0aa3683 ; * lisp/minibuffer.el (completion-base-suffix): Doc fix (bug#48356). 2024-04-11 09:53:34 +03:00
Eli Zaretskii
5d35ef858a ; Fix whitespace in editfns-tests.el
* test/src/editfns-tests.el
(editfns-tests--before/after-change-functions): Fix whitespace.
2024-04-11 08:55:12 +03:00
Po Lu
ad428e39d7 Guarantee presence of emacs-module.h during cross-compilation
* cross/Makefile.in (src/emacs-module.h): New rule.
(src/libemacs.so): Depend on the same.
2024-04-11 10:31:17 +08:00
Po Lu
3b6bc312f2 Guarantee presence of epaths.h during cross-compilation
* cross/Makefile.in (src/epaths.h): New rule.
(src/libemacs.so): Depend on the same.
2024-04-11 10:25:29 +08:00
Po Lu
b9acfd7c2b Optimize R8 configuration
* java/org/gnu/emacs/EmacsWindowManager.java (WindowConsumer):
Mark as package-local.

* java/proguard.conf: List only symbols that must be preserved,
enabling R8 to optimize the remainder.
2024-04-11 10:15:25 +08:00
Po Lu
7720c614af Adjust priority of Emacs background service notification
* java/org/gnu/emacs/EmacsService.java (onStartCommand): Reword
lightly and set importance to IMPORTANCE_LOW.
2024-04-11 09:16:57 +08:00
Po Lu
2733329b46 ; * java/Makefile.in: Render config.status relative to builddir. 2024-04-11 09:16:57 +08:00
Dmitry Gutov
0288bc6c94 Generalize the file-name specific workaround in minibuffer-completion-help
* lisp/minibuffer.el (completion-base-suffix):
New function (bug#48356).
(minibuffer-completion-help): Use it here.
(minibuffer-completion-help): Cut off the double completion
boundary when it occurs inside
completion-list-insert-choice-function..
2024-04-11 03:57:09 +03:00
Arash Esbati
ca528f7c6a Suppress bogus messages in the echo area
* lisp/textmodes/reftex-dcr.el (reftex-view-crossref-when-idle):
Check if point inside a mandatory argument where the cite/ref key
usually resides.  For example, with \cite[45]{emacs:30} and point
on 4, the following bogus message in the echo area is suppressed:
"cite: no such database entry: \cite[45]".  (bug#38258)
Fix docstring.
2024-04-10 23:08:17 +02:00
Eshel Yaron
3a91186ad3
; Remove obsolete 'mouse-wheel-up/down-event' bindings
Following commit e720ba6219 'mouse-wheel-up-event' and
'mouse-wheel-down-event' are translated to 'wheel-up/down'
events, so we only need to bind 'wheel-down/up' in
'completion-preview--mouse-map'.

* lisp/completion-preview.el: Don't require 'mwheel'.
(completion-preview--mouse-map): Remove bindings for
'mouse-wheel-up/down-event'.
2024-04-10 22:03:38 +02:00
Eli Zaretskii
4cefa3c0b1 ; * doc/emacs/files.texi (Backup): Clarify "saving" (bug#70326). 2024-04-10 22:31:57 +03:00
Juri Linkov
103a2fdf18 * doc/lispref/parsing.texi (Parsing Program Source): Fix menu.
Add the new node "User-defined Things" to the menu.
2024-04-10 21:07:21 +03:00
Andrea Corallo
3eb462405e * lisp/emacs-lisp/comp-cstr.el (comp-cstr-type-p): Improve last change. 2024-04-10 18:45:47 +02:00
Andrea Corallo
ee03a73375 * lisp/emacs-lisp/comp-cstr.el (comp-cstr-type-p): New function. 2024-04-10 18:16:26 +02:00
Andrea Corallo
d4d8575bf0 * lisp/emacs-lisp/comp-cstr.el (comp-cstr-symbol-p): Simplify. 2024-04-10 18:16:26 +02:00
Andrea Corallo
219b98916b * lisp/emacs-lisp/comp-cstr.el (comp-cstr-fixnum-p): Fix. 2024-04-10 18:16:26 +02:00
Stefan Monnier
36cb16556c (en/decode_coding_object): Fix after-change-functions
For `en/decode-coding-string/region`, `after-change-functions`
were either not run at all, or run only after deleting the text
but not after inserting it.

* src/coding.c (decode_coding_object, encode_coding_object): Run the
after-change-functions after inserting the result.

* test/src/editfns-tests.el (sanity-check-change-functions-with-op):
New macro.
(sanity-check-change-functions-errors): New function.
(editfns-tests--before/after-change-functions): Use them to add
cases for `en/decode-coding-string/region`.
2024-04-10 12:15:26 -04:00
Po Lu
15bafc0432 * java/Makefile.in (classes.dex): Make proguard.conf relative to srcdir. 2024-04-10 23:22:38 +08:00
Po Lu
0bfc1d4e7e Merge remote-tracking branch 'savannah/master' into master-android-1 2024-04-10 22:34:02 +08:00
Po Lu
049bdfdaec * java/proguard.conf: New file. 2024-04-10 22:33:33 +08:00
Po Lu
ed88bed3af Optimize generated Android DEX bytecode
* configure.ac (D8): Attempt to locate the bundle where d8 is
installed, detect whether an installation of `r8' is similarly
present, and use this installation in place of d8 if so.

* java/Makefile.in (ANDROID_MIN_SDK, IS_D8_R8): New
substitutions.
(classes.dex): Provide --min-api, --debug or --release and
--pg-conf to d8 or r8.
2024-04-10 22:33:08 +08:00