1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00
Commit graph

174431 commits

Author SHA1 Message Date
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
Stephen Berman
db1f749db5 Fix regressions in Customize caused by 'widget-unselected' face
* lisp/wid-edit.el (widget-checklist-add-item): Don't call
'widget-specify-selected'.  (Bug#72404)  (Bug#72156)
2024-08-04 10:47:46 +03:00
David Ponce
f94d58008e Avoid inserting extra space in SVG data
* lisp/svg.el (svg-print): Remove useless extra space from
the XML representation of child node.  (Bug#72198)
2024-08-04 10:47:16 +03:00
Damien Cassou
292fcd2009
Fix c-ts-common filling function (bug#71760)
* lisp/progmodes/c-ts-common.el (c-ts-common--fill-block-comment): If
masking hasn't been done, don't unmask.
2024-08-03 20:03:32 -07:00
Mattias Engdegård
e50d597f45 Fix missing type checks before specbind
This fixes bugs that crashed Emacs when the Lisp interpreter was fed
bad code.

* src/eval.c (FletX, Flet, internal_lisp_condition_case)
(funcall_lambda): Hoist symbol-with-pos elimination and type checks to a
dominating position for efficiency.  This also plugs at least two typing
holes. (Mea culpa.)
* test/src/eval-tests.el (eval-bad-specbind): New regression test.
2024-08-03 19:32:23 +02:00
Eli Zaretskii
ff6954b9c8 Improve font search and handling on MS-Windows
* src/w32font.c: Add commentary about font search on MS-Windows.
(w32font_coverage_ok, add_font_entity_to_list)
(font_supported_scripts): Consider the coverage OK if a font has
only the SIP bit set, but also sets relevant codepage bits in the
CSB bits.
(font_supported_scripts): Fix script for USB bit 99.
* src/font.c (font_parse_fcname, font_parse_family_registry)
[HAVE_NTGUI]: Don't consider hyphenated suffixes of some Windows
fonts as not belonging to the family name.
* src/w32uniscribe.c (uniscribe_check_otf_1): Increase tags[]
array size, to avoid the E_OUTOFMEMORY error for some fonts.

* lisp/international/fontset.el (font-encoding-alist): Add
'unicode-sip'.
2024-08-03 18:11:57 +03:00
Po Lu
ef8276d424 Merge from savannah/emacs-30
8d073823c6 Revert "Remove redundant byte-swapping boundary"
c25687e860 Fix various typos reported by Pip Cet
2024-08-03 17:36:58 +08:00
Po Lu
8d073823c6 Revert "Remove redundant byte-swapping boundary"
This reverts commit daefd6771a.

* src/sfnt.c (sfnt_read_OS_2_table): Restore realignment after
s_family_class, as it occupies byte 32, not 34.  Reported by Pip
Cet <pipcet@protonmail.com>.
2024-08-03 17:34:32 +08:00
Po Lu
c25687e860 Fix various typos reported by Pip Cet
* src/ftfont.c (get_adstyle_property):

* src/sfntfont.c (sfntfont_list_1): Correct typos.  Reported by
Pip Cet <pipcet@protonmail.com>.
2024-08-03 17:09:49 +08:00
Po Lu
5bd3011730 Merge from savannah/emacs-30
e539a5c7d7 NS: Fix placement of candidate window (bug#72422)
94fe5894d9 ; * lisp/touch-screen.el: Correct commentary.
2024-08-03 16:55:35 +08:00
Po Lu
743a052cc9 ; Merge from savannah/emacs-30
The following commit was skipped:

c64d653836 ; * lisp/treesit.el (treesit-ready-p): Fix typo (bug#72411).
2024-08-03 16:55:35 +08:00
Po Lu
4915131630 Merge from savannah/emacs-30
ef5466c267 Avoid aborts when buffer is modified during its redisplay
cb421286d2 Fix c++-ts-mode indentation for templace (bug#72263)
2024-08-03 16:55:35 +08:00
Gerd Möllmann
e539a5c7d7 NS: Fix placement of candidate window (bug#72422)
* src/nsterm.m ([EmacsView firstRectForCharacterRange:actualRange:]):
Call method of NSTextInput.
2024-08-03 10:29:24 +02:00
Eli Zaretskii
15afa72460 Fix 'script-representative-chars' for the 'han' script
* lisp/international/fontset.el (script-representative-chars):
Remove from 'han' codepoints that belong to 'cjk-misc'.
2024-08-03 10:29:38 +03:00
Po Lu
94fe5894d9 ; * lisp/touch-screen.el: Correct commentary. 2024-08-03 08:14:59 +08:00
Richard Stallman
18491f48d9 Install cond*
* oond-star.el: New file.
2024-08-02 12:03:45 -04:00
Eli Zaretskii
80108438e5 Fix display of empty margins when default face is remapped
* src/xdisp.c (display_line): Append space glyphs to margin areas
if the default face is remapped and nothing is written to the
margin area of this screen line.
(produce_special_glyphs): If the truncation/continuation glyphs do
not specify a face, use the remapped default face, not the
original frame-global default face.  Reported by Nicolas
P. Rougier <nicolas.rougier@inria.fr> in
https://lists.gnu.org/archive/html/emacs-devel/2024-07/msg01217.html.
2024-08-02 09:48:55 +03:00