1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-03 14:10:47 -08:00
Commit graph

49784 commits

Author SHA1 Message Date
Po Lu
c8cec840d7 Prevent rare freeze on Android 4.2 through 4.4
* src/android.c (android_run_select_thread, android_init_events)
(android_select): Enable self-pipes on all Android versions <= 21.
The Android C library provides a functioning pselect on these
systems, but it does not apply the signal mask atomically.
(android_run_select_thread): Correct typo.  This never produced
any adverse consequences, as the relevant signals would already
have been blocked by `setupSystemThread'.

Do not merge to master.
2025-02-28 22:40:14 +08:00
Eli Zaretskii
0d89aa6b6c ; * src/keymap.c: Fix last change (bug#75219).
(cherry picked from commit 412c1a4f0e)
2025-02-28 09:54:10 +02:00
Eli Zaretskii
b3181a8071 Fix mouse-2 clicks on mode line and header line
* src/keymap.c (Fcurrent_active_maps): For clicks on mode-line and
header-line, always override the keymaps at buffer position.
(Bug#75219)

(cherry picked from commit c41ea047a4)
2025-02-28 09:53:42 +02:00
Stefan Kangas
6f5c322f59 Recommend secure-hash in md5 docstring
* src/fns.c (Fmd5): Repeat explanation from manual about md5 being
"semi-obsolete", and recommend using secure-hash instead.
2025-02-28 05:22:53 +01:00
Eli Zaretskii
706426f966 Fix setup of coding-systems on MS-Windows
* src/emacs.c (main) [HAVE_PDUMPER] [WINDOWSNT]: Call
'w32_init_file_name_codepage' again after loading the pdumper
file.
* src/w32.c (w32_init_file_name_codepage) [HAVE_PDUMPER]:
Reinitialize additional variables.  (Bug#75207)

(cherry picked from commit cc5cd4de93)
2025-02-26 15:12:42 +02:00
Eli Zaretskii
0c6b8643ae Fix a typo in 'window_text_pixel_size'
This typo caused strange mis-behaviors in buffers
with non-ASCII characters.
* src/xdisp.c (window_text_pixel_size): Fix typo.  (Bug#76519)
2025-02-24 21:02:14 +02:00
Yuan Fu
2dbf7d0b1b
Use character position for ranges in treesit_sync_visible_region
* src/treesit.c (treesit_sync_visible_region): Use character position
instead of byte position when comparing to ranges, because the
ranges are in character position.
2025-02-23 00:08:56 -08:00
Po Lu
25ba253609 Fix reported Haiku build error in emacs-30.1-rc1
* src/haiku_support.cc (keysym_from_raw_char): Don't define
duplicate cases on the previous release.
2025-02-21 13:28:55 +08:00
Stefan Kangas
92e96a1175 ; Delete troff markers from ChangeLog files 2025-02-20 02:46:43 +01:00
Po Lu
e34ea5db5f * src/pgtkterm.c (pgtk_enumerate_devices): Circumvent bug#76239. 2025-02-17 10:56:45 +08:00
Po Lu
58e4bfe340 Add two missing NULL checks of malloc'd values on Android
* src/android.c (sendDndUri, sendDndText): Verify that allocated
string memory is non-nil before writing to it.
2025-02-15 16:58:18 +08:00
Eli Zaretskii
316e47c5af ; * src/fns.c (Fmapconcat): Doc fix (bug#76242). 2025-02-13 11:03:26 +02:00
Eli Zaretskii
143f1096da Improve documentation of 'file-name-concat'
* doc/lispref/files.texi (Directory Names):
* src/fileio.c (Ffile_name_concat): Advise not to use
'file-name-concat' unless necessary.  (Bug#76023)
2025-02-06 10:42:04 +02:00
Eli Zaretskii
5c36b41265 * src/fileio.c (Fsubstitute_in_file_name): Doc fix (bug#76023). 2025-02-04 16:06:36 +02:00
Eli Zaretskii
0b3e050c6c * src/puresize.h (BASE_PURESIZE): Increase (bug#75907). 2025-01-30 08:38:05 +02:00
Eli Zaretskii
0c6aa27cde ; Fix Cygw32 build (bug#75926)
(cherry picked from commit cb62a47896)
2025-01-29 18:00:24 +02:00
Stefan Kangas
cda78edc7d ; Fix typos 2025-01-23 03:14:37 +01:00
Eli Zaretskii
ce50a1d3c1 ; * src/w32.c (w32_memory_info): Fix coding style of last change. 2025-01-21 21:25:15 +02:00
Arthur Miller
58d3d4820a Fix bug in w32_memory_info
* src/w32.c (w32_memory_info): Initialize struct size.
2025-01-21 21:22:58 +02:00
Eli Zaretskii
7738641205 Avoid crashes in redisplay due to problematic font setups
* src/xdisp.c (handle_single_display_spec)
(produce_stretch_glyph): Avoid crashes if a face's font is NULL.
(Bug#75725)
2025-01-21 14:24:57 +02:00
Eli Zaretskii
04c475a39f ; Fix documentation about faces of tool-tip text
* lisp/tooltip.el (tooltip):
* src/frame.c (syms_of_frame) <use-system-tooltips>: Doc fixes.
2025-01-18 15:07:52 +02:00
Eli Zaretskii
ee61b9a050 ; Fix documentation of completion commands
* src/minibuf.c (Fcompleting_read): Move part of doc string of
'read-from-minibuffer' to doc string of this function.  Suggested
by Eshel Yaron <me@eshelyaron.com>.
2025-01-11 12:40:59 +02:00
Ulrich Müller
6468c3f7a7 Update doc string of 'insert'
* src/editfns.c (Finsert): Mention 'decode-coding-string' instead
of the obsolete 'string-as-multibyte' in doc string.  (Bug#75345)
2025-01-04 15:31:24 +02:00
Stefan Kangas
7fa975adbc Update copyright year to 2025
Run "TZ=UTC0 admin/update-copyright".
2025-01-02 18:39:42 +01:00
Eli Zaretskii
8064b2a679 Document undocumented completion commands
* src/minibuf.c (Fread_from_minibuffer):
* lisp/minibuffer.el (minibuffer-complete-history)
(minibuffer-complete-defaults): Doc fixes.

* doc/emacs/mini.texi (Completion Commands): Fix markup, style of
describing commands, and indexing.  Document 'C-x UP' and 'C-x
DOWN'.
2024-12-24 21:25:02 +02:00
Eli Zaretskii
5e97079cc7 ; Fix call to 'decode_string_utf_8' in #ifdef'ed-away code
* src/coding.c (Finternal_decode_string_utf_8): Fix calling
sequence of 'decode_string_utf_8' to adapt to changes in the
latter's signature.
2024-12-21 14:12:14 +02:00
Robert Pluim
c6ce11b2a4 Mention network-interface-list in network-interface-info docstring
* src/process.c (Fnetwork_interface_info): Reference
'network-interface-list'.
2024-12-18 16:00:55 +01:00
Robert Pluim
4b685bc4fc ; * src/process.c (Fnetwork_interface_list): Fix typo. 2024-12-16 13:35:51 +01:00
Manuel Giraud
f65de1019d Fix the version of librsvg API change
* src/image.c (init_svg_functions, svg_load_image): The first
official version that introduces
'rsvg_handle_get_pixbuf_and_error' is 2.59.0 not 2.58.0.
(Bug#74606)
2024-12-02 18:23:28 +02:00
Yuan Fu
3c7687c1dd
Allow passing nil to treesit-node-match-p (bug#74612)
* src/treesit.c (Ftreesit_node_match_p): Return nil if NODE is nil.
2024-12-01 11:35:06 -08:00
Manuel Giraud
748b19e56e Update to version 2.58 of librsvg API (bug#74606)
* src/image.c (init_svg_functions): Declare new function.
(svg_load_image): Use it.
2024-12-01 16:51:55 +02:00
Martin Rudalics
bda0bce9e4 Don't inadvertently reset frame scroll bar sizes (Bug#74435)
* src/frame.c (gui_set_scroll_bar_width)
(gui_set_scroll_bar_height): When the new size equals the old one
do not reset size to default size (Bug#74435).
2024-11-28 18:53:45 +01:00
Aaron Jensen
03ae07291e Fix NS non-native fullscreen on initial frame load (bug#59790)
* src/nsterm.m ([EmacsView toggleFullScreen:]): Reset fs_is_native
2024-11-24 11:54:24 +00:00
Eli Zaretskii
83fc3cf53a Future-proof loading tree-sitter library on MS-Windows
* src/treesit.c (syms_of_treesit) <tree-sitter--library-abi>: New
internal variable.

* lisp/term/w32-win.el (dynamic-library-alist): Use
'tree-sitter--library-abi' to select a proper libtree-sitter DLL
version.
2024-11-21 14:55:38 +02:00
Eli Zaretskii
9c484d5101 ; Avoid assertion violations in "temacs -Q"
* src/lread.c (build_load_history): Use Fequal to compare strings.
2024-11-18 20:54:15 +02:00
Eli Zaretskii
90c97d3fac Fix handling of permanent-local variables in 'kill-all-local-variables'
The original implementation went too far and caused unexpected
results.
* src/buffer.c (reset_buffer_local_variables): Second argument is
now 'int', and can be 0, 1, or 2.
(Fkill_all_local_variables): Call 'reset_buffer_local_variables'
with 2nd argument 2 if KILL-PERMANENT is non-nil.  (Bug#74091)
2024-11-10 20:49:45 +02:00
Eli Zaretskii
775970a783 ; * src/ftcrfont.c (ftcrhbfont_end_hb_font): Improve commentary (bug#73752). 2024-11-08 10:03:35 +02:00
Tim Ruffing
9149aa89ee Fix display of compositions when font style changes (Cairo backend)
* src/ftcrfont.c (ftcrhbfont_end_hb_font): Don't persist the
result of 'cairo_ft_scaled_font_lock_face' in violation of the
API contract.  (Bug#73752)
2024-11-08 09:56:54 +02:00
Eli Zaretskii
3bf00777be ; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko (bug#74241). 2024-11-07 19:34:43 +02:00
Stefan Monnier
9e1abf11fc Tweak doc w.r.t to "void function" (bug#73886)
* doc/lispref/functions.texi (Function Cells): Avoid talking
about the function cell being void.

* src/data.c (Fboundp, Ffmakunbound, Fsymbol_function):
Don't suggest that "void" can be considered as a kind of value.
2024-10-27 14:52:25 -04:00
Eli Zaretskii
b0aaee93fd Update the documentation of void functions
* doc/lispref/functions.texi (Function Cells):
* src/data.c (Ffboundp, Ffmakunbound, Fsymbol_function): Update
documentation to the changes of how void functions are represented
since Emacs 24.5.  (Bug#73886)
2024-10-27 13:16:36 +02:00
Eli Zaretskii
48024096fe Avoid crashes when scrolling images under winner-mode
* src/window.c (window_scroll_pixel_based): Fix calculation of a
window's vscroll.  (Bug#73933)
2024-10-21 20:42:01 +03:00
Eli Zaretskii
681f70ea04 * src/lread.c (READ_AND_BUFFER): Reject negative chars (bug#73914). 2024-10-20 22:39:53 +03:00
Mattias Engdegård
e5d600006e ; * src/doc.c (Ftext_quoting_style): Make doc string agree with code. 2024-10-17 18:23:58 +02:00
Eli Zaretskii
ae75ea6232 ; * src/fileio.c (Ffile_newer_than_file_p): Fix wording (bug#73709). 2024-10-13 18:29:34 +03:00
Eli Zaretskii
d664227f81 ; More accurate documentation of 'file-newer-than-file-p'
* doc/lispref/files.texi (File Attributes):
* src/fileio.c (Ffile_newer_than_file_p): Say the comparison uses
the last-modification times.  (Bug#73709)
2024-10-10 11:03:48 +03:00
Eli Zaretskii
f520008744 Avoid segfaults in Rmail-MIME
Rmail-MIME decodes text of email, including removal of
CR characters, but that can segfault if the text of some
MIME part is empty.
* src/coding.c (decode_coding_raw_text):
* lisp/mail/rmailmm.el (rmail-mime-insert-decoded-text): Don't
attempt to decode empty text region.
2024-10-09 16:22:52 +03:00
Eli Zaretskii
8f265b49e3 ; Fix last change
* doc/lispref/lists.texi (Building Lists):
* src/fns.c (Fappend): Fix last change (bug#73427).  Suggested by
Mattias Engdegård <mattias.engdegard@gmail.com>.
2024-09-23 17:13:31 +03:00
Eli Zaretskii
c8ed48b990 ; Improve documentation of 'append'
* doc/lispref/lists.texi (Building Lists):
* src/fns.c (Fappend): Improve documentation of 'append'.  (Bug#73427)
2024-09-23 14:41:34 +03:00
Eli Zaretskii
eced135120 Fix 'replace-regexp' in WDired
* src/search.c (Freplace_match): Revert the search.c part of the
change from Apr 7, 2024, which aims to fix bug#65451, but causes
bug#73018.  Do not merge to master.

* test/src/editfns-tests.el
(editfns-tests--before/after-change-functions): Expect this test
to fail.
2024-09-21 12:26:24 +03:00