Commit graph

174242 commits

Author SHA1 Message Date
Pip Cet
8e925d582a Fix coordinate transformations in sfnt.c
Backport.

* src/sfnt.c (sfnt_transform_coordinates):
(sfnt_transform_f26dot6): Fix calculation of transformed coordinates in
the very rare case of arbitrary transformation matrices.
2024-08-11 10:22:19 +00:00
Kazuhiro Ito
4dd953d3cc * lisp/epg.el (epg--start): Don't convert EOL on encoding (bug#72542). 2024-08-10 10:54:18 +03:00
Thomas Fitzsimmons
5cace09ed0 Add PROBLEMS entry for bug#72517
* etc/PROBLEMS (X runtime problems): Document ssh -X session
hang-on-exit after deletion of remote emacsclient -c frame.
(bug#72517)

(cherry picked from commit 9f03300c5c)
2024-08-09 09:03:01 +03:00
Eli Zaretskii
a0406f7c12 ; Improve documentation of 'add-to-list'
* doc/lispref/lists.texi (List Variables):
* lisp/subr.el (add-to-list): Add/clarify caveats of using
'add-to-list'.
2024-08-09 08:45:30 +03:00
Gerd Möllmann
bd6dfb97ff NS: Fix scroll-bar setting code (bug#72331)
* src/nsterm.m (ns_set_vertical_scroll_bar): Use
WINDOW_SCROLL_AREA_WIDTH instead of NS_SCROLL_BAR_WIDTH.
(ns_set_horizontal_scroll_bar): Use WINDOW_SCROLL_AREA_HEIGHT
instead of NS_SCROLL_BAR_HEIGHT. Clear area differently if vertical
scroll bars are present.
* src/nsterm.h (NS_SCROLL_BAR_WIDTH, NS_SCROLL_BAR_HEIGHT): Remove.
2024-08-09 07:21:28 +02: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
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
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
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
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
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
F. Jason Park
1bbb322017 ; * lisp/erc/erc-fill.el (erc-fill-wrap-mode): Doc fix. 2024-08-04 22:27:40 -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
Björn Bidar
b89d65df5f ; * etc/PROBLEMS: How to install sources on SUSE Linux (bug#72465). 2024-08-04 19:23:40 +03: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
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
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
Po Lu
94fe5894d9 ; * lisp/touch-screen.el: Correct commentary. 2024-08-03 08:14:59 +08:00
Eli Zaretskii
c64d653836 ; * lisp/treesit.el (treesit-ready-p): Fix typo (bug#72411). 2024-08-01 18:25:15 +03:00
Eli Zaretskii
ef5466c267 Avoid aborts when buffer is modified during its redisplay
* src/xdisp.c (redisplay_window): Restore point from saved byte
position only if the buffer was not changed meanwhile.
(Bug#72165)
2024-08-01 14:01:17 +03:00
Yuan Fu
cb421286d2
Fix c++-ts-mode indentation for templace (bug#72263)
* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--indent-styles): Add rule for template.
* test/lisp/progmodes/c-ts-mode-resources/indent.erts: Add test.
2024-07-31 23:46:28 -07:00
Po Lu
1154d8aafe Better resolve bug#72188
* lisp/international/fontset.el (setup-default-fontset) <han>:
Don't search for fonts matching the `han' script elsewhere than
on Android, which restores the status quo existing in Emacs 29.
(bug#72188)
2024-08-01 08:23:36 +08:00
Gerd Möllmann
ceb5a15222 MacOS: Let EmacsView implement NSTextInputClient
* src/nsterm.h (@interface EmacsView): Implement NSTextInputClient protocol.
* src/nsterm.m: Implement required NSTextInputClient methods, forwarding
to existing NSTextInput methods.
2024-07-31 05:19:46 +02:00
Gerd Möllmann
9f7c1ace9f NS: Set frame position when entering/exiting fullscreen (bug#71912)
* src/nsterm.h ([EmacsView adjustEmacsRectRect]): Declare.
* src/nsterm.m ([EmacsView windowDidEnterFullScreen]): New method.
([EmacsView windowDidEnterFullScreen]): Call it.
([EmacsView windowDidExitFullScreen]): Call it.
2024-07-30 06:02:15 +02:00
Eli Zaretskii
74fe889a93 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-07-29 21:52:05 +03:00
Juri Linkov
abefd9514b * lisp/tab-bar.el (tab-bar-move-tab-to-group): Fix for a new group's tab.
Move tab with a new group to the end of the tab bar (bug#72352)
Suggested by Ship Mints <shipmints@gmail.com>
2024-07-29 21:16:16 +03:00
Eli Zaretskii
e09982f8f5 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-07-29 13:57:01 +03:00
Po Lu
5cf64d8377 Fix sporadic crashes and `select' failures in dumped images
* src/process.c (init_process_emacs) [HAVE_UNEXEC]: Clear
dumped values of child_signal_read_fd and child_signal_write_fd.
2024-07-29 10:37:16 +08:00
Po Lu
a475360af9 Correct display of Doc View documents after tab switching
* lisp/doc-view.el (doc-view-new-window-function): Prevent
creation of duplicate overlays for the same window after a
window configuration change occasions a call to i-m-r-winprops.
2024-07-29 09:19:48 +08:00
Eli Zaretskii
b0d927e1dc Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-07-28 07:30:32 +03:00
Jim Porter
469bc7c968 Use 'kill-process' as a fallback when a pipe gets broken in Eshell
This is better than 'delete-process' since it will ensure that any
stderr pipe-processes get stopped as well (bug#72117).

* lisp/eshell/esh-proc.el (eshell-insertion-filter): Use 'kill-process'
instead of 'delete-process'.
2024-07-27 12:10:33 -07:00
Eli Zaretskii
158835668d ; * doc/lispref/modes.texi (Mode Line Data): Fix formatting. 2024-07-27 15:56:47 +03:00
Philip Kaludercic
367c0490a8
; * admin/MAINTAINERS: Note what I maintain 2024-07-27 11:01:36 +02:00
Kyle Meyer
88e1ec22f2 Update to Org 9.7.9 2024-07-26 23:58:01 -04:00