1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00
Commit Graph

174647 Commits

Author SHA1 Message Date
Po Lu
3896f5034f Merge from savannah/emacs-30
16462b1a62 Register for more Intents actions on Android
2024-08-09 10:12:26 +08:00
Po Lu
007ccba141 Merge from savannah/emacs-30
a1b8c2610a * lisp/help-macro.el: Add 'help-for-help-use-variable-pit...
a577eccdbb ; * doc/lispref/strings.texi (String Conversion): Fix las...
d22e52375a Remove manual entry for string-to-int
341e5795d5 Support minibuffer-visible-completions in completing-read...
3e30c779a7 * lisp/imenu.el (imenu-flatten): Fix doc about annotation...
2024-08-09 10:12:08 +08:00
Po Lu
673c5e4abc ; Merge from savannah/emacs-30
The following commit was skipped:

09d2125a7f Fix cmake-ts-mode number fontification (Bug#72228)
2024-08-09 10:12:08 +08:00
Po Lu
16462b1a62 Register for more Intents actions on Android
* java/AndroidManifest.xml.in <EmacsOpenActivity>: Register
for SEND Intents with mailto URIs.

* java/org/gnu/emacs/EmacsOpenActivity.java (onCreate): Use
Intent constants rather than string literals.
2024-08-09 10:11:51 +08:00
Michael Albinus
8b66204707 Fix problem in tramp-container.el
* lisp/net/tramp-container.el (tramp-kubernetes--context-namespace):
Handle nil list elements.
2024-08-08 17:29:40 +02:00
Paul W. Rankin
a1b8c2610a * lisp/help-macro.el: Add 'help-for-help-use-variable-pitch' option.
This makes 'variable-pitch-mode' optional, by default ON (to
preserve previous behavior), in Help buffers.  (Bug#72521)
2024-08-08 13:30:55 +03:00
Eli Zaretskii
a577eccdbb ; * doc/lispref/strings.texi (String Conversion): Fix last change. 2024-08-08 11:41:52 +03:00
Ulrich Müller
d22e52375a Remove manual entry for string-to-int
* doc/lispref/strings.texi (String Conversion): Remove mention of
'string-to-int' which was dropped in Emacs 26.  (Bug#72520)
2024-08-08 08:07:31 +02:00
Paul Eggert
9464a1d386 Port zoneinfo-world-style-list to Debian testing
Problem reported by Gijs Hillenius <gijs@hillenius.net> in:
https://lists.gnu.org/r/emacs-devel/2024-08/msg00279.html
* lisp/time.el (zoneinfo-style-world-list): Use Asia/Kolkata
instead of Asia/Calcutta.  The main name was changed in tzdata
2008b every practical system has it now.  Some systems do
not include backward-compatibility names, so it is better
to use the standard time now.
2024-08-07 23:05:52 -07:00
Spencer Baugh
341e5795d5 Support minibuffer-visible-completions in completing-read-multiple
All that's required is to add minibuffer-visible-completions-map on
top of the completing-read-multiple map; this is the same thing that
minibuffer-visible-completions does in completing-read-default.

* lisp/emacs-lisp/crm.el (completing-read-multiple): Add
minibuffer-visible-completions-map (bug#69189)
2024-08-07 19:52:36 +03:00
Juri Linkov
3e30c779a7 * lisp/imenu.el (imenu-flatten): Fix doc about annotation/group limitations. 2024-08-07 19:44:43 +03:00
Randy Taylor
09d2125a7f Fix cmake-ts-mode number fontification (Bug#72228)
* lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode--constants):
Remove "1" and "0".
(cmake-ts-mode--font-lock-settings): Match negative numbers.
2024-08-07 17:35:39 +02:00
Augusto Stoffel
423c86cbde Eglot: send more accurate languageId strings to TeX servers
bug#72343

* lisp/progmodes/eglot.el (eglot-server-programs): Rework TeX-mode entry
2024-08-07 14:44:19 +01:00
João Távora
628f2bf579 Eglot: simplify eglot--lookup-mode
No longer reorder the LANGUAGES return value to have the
originating mode upfront, since it doesn't seem to serve any
practical purpose anymore.

bug#72343

* lisp/progmodes/eglot.el (eglot--lookup-mode): Simplify.

* test/lisp/progmodes/eglot-tests.el
  (eglot-test-server-programs-guess-lang): Adjust.
2024-08-07 14:43:47 +01:00
Gerd Möllmann
2b087abdbb Bind TAB not <tab> in M-x lldb
* lisp/progmodes/gud.el (lldb): Bind TAB not <tab> so that it also works
on terminals.
2024-08-07 11:38:48 +02:00
Randy Taylor
153dc4bd1d Fix cmake-ts-mode number fontification (Bug#72228)
* lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode--constants):
Remove "1" and "0".
(cmake-ts-mode--font-lock-settings): Match negative numbers.
2024-08-07 10:36:07 +02:00
Andrea Corallo
c86fc34465 Clean-up warning due to unused lexical variable
* lisp/progmodes/c-ts-common.el (c-ts-common--fill-block-comment):
Remove 'start-mask-done'.
2024-08-07 09:27:37 +02:00
Yuan Fu
a4db9b35e1
Merge from savannah/emacs-30 2024-08-06 22:02:59 -07:00
Yuan Fu
cd9a215ef0
; Minor fix in c-ts-common--fill-block-comment
* lisp/progmodes/c-ts-common.el:
(c-ts-common--fill-block-comment): Checking for end-mask done is
equivalent to checking end-marker, so the original code doesn't have a
bug.
2024-08-06 22:00:01 -07:00
Yuan Fu
458a79b3c7
; Minor change in c-ts-common--fill-block-comment
* lisp/progmodes/c-ts-common.el:
(c-ts-common--fill-block-comment): Add check for end-mask-done.  This
doesn't affect correctness, but makes the code easier to read.
2024-08-06 21:54:20 -07:00
Po Lu
1a4c26d413 Merge from savannah/emacs-30
679f7ccc49 Prevent accesses to /content files without a GUI connection
f0a7eec5a7 * lisp/net/tramp-integration.el (shortdoc): Use `tramp--w...
fb642d9cf5 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/...
f1e37ae423 Avoid crashes in very large buffers with long lines
4dc9e99349 Update description of string comparison functions
3817355aed Add sanity check when adding Tramp functions to shortdoc
1bbb322017 ; * lisp/erc/erc-fill.el (erc-fill-wrap-mode): Doc fix.
3f6e7e1da6 js-ts-mode: Make jsdoc's "description" block a comment (b...
1c7e00f4f6 Also condition cjk-misc font-spec on Android
b89d65df5f ; * etc/PROBLEMS: How to install sources on SUSE Linux (b...
729b17c202 ; * src/lread.c (Fload): Add comment.  (Bug#72433)
bfb1aee998 Fix ':defer nil' in 'use-package'
d787817076 Document unsupported color Emoji on OpenBSD
db1f749db5 Fix regressions in Customize caused by 'widget-unselected...
f94d58008e Avoid inserting extra space in SVG data
292fcd2009 Fix c-ts-common filling function (bug#71760)
e50d597f45 Fix missing type checks before specbind

# Conflicts:
#	lisp/progmodes/c-ts-common.el
2024-08-07 09:21:27 +08:00
Po Lu
679f7ccc49 Prevent accesses to /content files without a GUI connection
* src/androidvfs.c (android_content_name): Hide all
subdirectories when `android_init_gui' is not set.
2024-08-07 09:17:57 +08:00
Michael Albinus
f0a7eec5a7 * lisp/net/tramp-integration.el (shortdoc): Use `tramp--with-startup'. 2024-08-06 20:25:20 +02:00
Eli Zaretskii
fb642d9cf5 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-08-06 21:20:52 +03:00
Eli Zaretskii
f1e37ae423 Avoid crashes in very large buffers with long lines
* src/xdisp.c (get_large_narrowing_begv, get_large_narrowing_zv)
(get_medium_narrowing_begv, get_medium_narrowing_zv): Use
'ptrdiff_t' instead of 'int', to prevent integer overflow in
large buffers.  (Bug#72497)
2024-08-06 21:19:49 +03:00
Ulrich Müller
4dc9e99349 Update description of string comparison functions
* doc/lispref/strings.texi (Text Comparison): Swap descriptions	of
'string-equal' (the function) and 'string=' (its alias).  Same for
'string-lessp' and 'string<'.  Document 'string>'.  (Bug#72486)
* doc/lispref/sequences.texi (Sequence Functions): Update cross
reference to 'string-lessp'.
2024-08-06 18:04:46 +02:00
Ulrich Müller
aa5c725fe7 * lisp/format.el (format-alist): Make 'duden' format write-only. 2024-08-06 12:05:31 +02:00
Juri Linkov
7b49261b5e * lisp/tab-bar.el (tab-bar--format-tab-group): Add 'current-group'.
Use current-group symbol for current tab group item (bug#71883).
2024-08-06 10:01:05 +03:00
Pip Cet
0822d0c1cd Avoid compiler warning
* src/timefns.c (Fdecode_time): Use 'UNINIT' to avoid a warning with
gcc 14 and checking enabled.
2024-08-05 21:58:16 +00:00
Pip Cet
e7109dfd9c Fix typo in pdumper.c
* src/pdumper.c (dump_interval_node): Call 'dump_field_fixup_later' with
the correct arguments.  Discovered by Danny McClanahan.
2024-08-05 21:47:57 +00:00
Pip Cet
ca258e81b8 * src/search.c (Fre__describe_compiled): Use 'CHECK_STRING'. 2024-08-05 21:46:58 +00:00
Mattias Engdegård
ee371f55b3 Avoid warning when building on macOS versions < 14 (bug#72440)
* src/nsterm.m ([EmacsView initFrameFromEmacs:]):
The clipsToBounds property of NSView is only public from macOS 14 on.
2024-08-05 21:27:17 +02:00
Michael Albinus
3817355aed Add sanity check when adding Tramp functions to shortdoc
* lisp/net/tramp-integration.el (shortdoc): Check, that Tramp
isn't disabled.
2024-08-05 20:19:30 +02:00
Gerd Möllmann
3ad4623bec ; Fix the fix for EmacsView
* src/nsterm.m ([EmacsView initFrameFromEmacs:]): Check if
setClipsToBound is available.
2024-08-05 17:26:23 +02:00
Mattias Engdegård
1d0c68fbdc ; * lisp/transient.el: require pp to defvar pp-default-function 2024-08-05 16:44:17 +02:00
Jonas Bernoulli
c7d9cd722e
Update to Transient v0.7.4-1-g3d9e9358 2024-08-05 14:41:02 +02:00
Gerd Möllmann
f1e2950682 ; Fix last change in EmacsView
* src/nsterm.m ([EmacsView initFrameFromEmacs:]): Don't check AppKit
version.
2024-08-05 11:39:44 +02:00
Gerd Möllmann
9253910a5a Restore a default before macOS 14 API change (bug#72440)
* src/nsterm.m ([EmacsView initFrameFromEmacs:]): Set clipsToBounds to
YES.
2024-08-05 09:41:15 +02:00
Juri Linkov
7a14f60b90 * lisp/tab-bar.el (tab-bar-tab-group-format-default): Hide hints.
Don't display hints when tab-bar-show-inactive-group-tabs is customized
to t (bug#71939).  Suggested by Ship Mints <shipmints@gmail.com>.
2024-08-05 09:56:38 +03:00
F. Jason Park
1bbb322017 ; * lisp/erc/erc-fill.el (erc-fill-wrap-mode): Doc fix. 2024-08-04 22:27:40 -07:00
Yuan Fu
5ecd35555e
Fix c-ts-common filling
* lisp/progmodes/c-ts-common.el:
(c-ts-common--fill-block-comment): Exclude the last line from filling if
it only has non-word characters like *=-.
* test/lisp/progmodes/c-ts-mode-resources/filling.erts: Fir the
multi-line test and add a single line test.
2024-08-04 20:49:02 -07:00
Damien Cassou
3f6e7e1da6
js-ts-mode: Make jsdoc's "description" block a comment (bug#72461)
* lisp/progmodes/js.el (js-ts-mode): Add "description" to
`c-ts-common--comment-regexp'.
2024-08-04 20:18:48 -07:00
Po Lu
1c7e00f4f6 Also condition cjk-misc font-spec on Android
* lisp/international/fontset.el (setup-default-fontset)
<cjk-misc>: Don't search for matching scripts elsewhere than on
Android.
2024-08-05 09:34:17 +08:00
Jim Porter
f70a6ea0ea Add support for variable-pitch fonts in 'visual-wrap-prefix-mode'
* lisp/emacs-lisp/subr-x.el (string-pixel-width): Allow passing BUFFER
to use the face remappings from that buffer when calculating the width.

* lisp/visual-wrap.el (visual-wrap--prefix): Rename to...
(visual-wrap--adjust-prefix): ... this, and support PREFIX as a number.
(visual-wrap-fill-context-prefix): Make obsolete in favor of...
(visual-wrap--content-prefix): ... this.
(visual-wrap-prefix-function): Extract inside of loop into...
(visual-wrap--apply-to-line): ... this.

* doc/lispref/display.texi (Size of Displayed Text): Update
documentation for 'string-pixel-width'.

* etc/NEWS: Announce this change.
2024-08-04 10:46:28 -07:00
Björn Bidar
b89d65df5f ; * etc/PROBLEMS: How to install sources on SUSE Linux (bug#72465). 2024-08-04 19:23:40 +03:00
Philip Kaludercic
0756f3085e
Clarify that 'pcase-lambda' only destructs
* lisp/emacs-lisp/pcase.el (pcase-lambda): Copy notice from
'pcase-let', indicating that pcase-lambda won't pattern match
like 'pcase', but just try to destruct with uncertain side
effects if this fails. (Bug#71503)
2024-08-04 16:53:51 +02:00
Michael Albinus
1b806a200e Remove further compat code from Tramp
* lisp/net/tramp-adb.el (tramp-adb-handle-process-file):
Use `process-file-return-signal-string'.

* lisp/net/tramp-cache.el (tramp-dump-connection-properties):
Use "lisp-data" for persistency file.

* lisp/net/tramp-cmds.el (tramp-cleanup-this-connection)
(tramp-rename-these-files, tramp-recompile-elpa):
Declare `completion'.

* lisp/net/tramp-container.el (tramp-kubernetes--container)
(tramp-kubernetes--pod, tramp-kubernetes--namespace): Make more
robust.

* lisp/net/tramp-crypt.el (tramp-crypt-remove-directory):
Declare `completion'.

* lisp/net/tramp-gvfs.el (file-notyify-callback): Declare.

* lisp/net/tramp-sh.el (process-file-return-signal-string)
(vc-handled-backends): Don't declare.

* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory):
Use `copy-directory-create-symlink'.

* lisp/net/tramp.el (tramp-skeleton-write-region): Use `lock-file' and
`unlock-file'..
(tramp-handle-make-lock-file-name): Use `remote-file-name-inhibit-locks'.
(tramp-handle-unlock-file): Use `remote-file-name-inhibit-locks'
and `userlock--handle-unlock-error'.
(tramp-handle-shell-command): Use `shell-command-buffer-name-async'
and `shell-command-buffer-name'.
(tramp-read-passwd): Remove workaround.
2024-08-04 13:23:43 +02:00
Eli Zaretskii
729b17c202 ; * src/lread.c (Fload): Add comment. (Bug#72433) 2024-08-04 11:58:00 +03:00
Eli Zaretskii
bfb1aee998 Fix ':defer nil' in 'use-package'
* lisp/use-package/use-package-core.el
(use-package-normalize-keywords): Use 'plist-get' instead of
'plist-member'.  (Bug#72414)
2024-08-04 11:52:12 +03:00
Manuel Giraud
d787817076 Document unsupported color Emoji on OpenBSD
Bug#72268

* etc/PROBLEMS (Runtime problems related to font handling):
Document unsupported color Emoji on OpenBSD.
2024-08-04 11:18:30 +03:00