aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ; Fix broken links to gmane.orgStefan Kangas2023-10-241-1/+1
|
* Correctly register focus events concomitant with alpha changesPo Lu2023-10-171-2/+12
| | | | | | | | | * src/xterm.c (x_frame_highlight, x_frame_unhighlight): Skip changing the frame alpha when the frame is not eligible for focus state-specific alpha values; otherwise, the alpha might be reset by the time a alpha change wrought by a focus change arrives, impeding handle_one_xevent from subsequently restoring the initial value. (bug#66398)
* Fix updating process-mark position in 'set-process-buffer'Eli Zaretskii2023-10-071-1/+2
| | | | | | * src/process.c (update_process_mark): Update marker position only if P's process-mark is not already associated with P's buffer. (Bug#66313)
* Fix setting the pipe capacity for subprocessesEli Zaretskii2023-10-061-2/+8
| | | | | | * src/process.c (create_process) [F_SETPIPE_SZ]: Set the pipe capacity only if the required read-process-max is larger than the default capacity of the pipe. (Bug#66288)
* Handle LANG on macOS differently (bug#65908)Gerd Möllmann2023-10-051-18/+21
| | | | | | * src/nsterm.m (ns_init_locale): If LANG is set, try to use that, otherwise try to deduce what LANG should be. Check is the result is valid, and use LANG="en_US.UTF-8" if not.
* ; Improve wording of last changeStefan Kangas2023-10-011-2/+2
| | | | | | * doc/emacs/macos.texi (Mac / GNUstep Customization): * src/nsfns.m (syms_of_nsfns): Improve wording. Reported by Gerd Möllmann <gerd.moellmann@gmail.com>.
* Improve documentation of `ns-use-proxy-icon`Stefan Kangas2023-10-011-1/+6
| | | | | | | * doc/emacs/macos.texi (Mac / GNUstep Customization): * src/nsfns.m (syms_of_nsfns): Fix documentation of 'ns-use-proxy-icon'; explain what it does and how it's used. (Bug#66190)
* ; Fix doc strings of overlay-arrow variablesEli Zaretskii2023-10-011-2/+3
| | | | | * src/xdisp.c (syms_of_xdisp) <overlay-arrow-string> <overlay-arrow-variable-list>: Doc fixes. (Bug#66282)
* ; Silence macOS 14 warningEshel Yaron2023-09-291-0/+5
| | | | | * src/nsterm.m: Implement 'applicationSupportsSecureRestorableState' to silence warning on macOS 14. (Bug#66245)
* Fix 'window-text-pixel-size' when there are several images at STARTEli Zaretskii2023-09-141-1/+0
| | | | | * src/xdisp.c (window_text_pixel_size): Remove unnecessary call to 'move_it_to'. (Bug#65899) (Bug#54862)
* (report_overlay_modification): Fix bug#65929Stefan Monnier2023-09-131-1/+1
| | | | | | | | | | | | | | Somehow the new overlay code in Emacs-29 changed slightly the test to decide when to run the `modification-hooks` of overlays, with the consequence that these hook functions end up being executed also when text is deleted right after an empty overlay, which is contrary to Emacs-28 behavior as well as contrary to the Texinfo doc. * src/buffer.c (report_overlay_modification): Better reproduce the Emacs-28 code. * test/src/buffer-tests.el (overlay-modification-hooks): Add corresponding test.
* Fix SVG colors (bug#56182)Alan Third2023-09-131-0/+12
| | | | | * src/image.c (svg_load_image): Reverse the R and B bytes in the Windows colors before using them to generate the SVG.
* Fix regression of treesit_cursor_helper_1Yuan Fu2023-09-111-2/+9
| | | | | | | * src/treesit.c (treesit_cursor_helper_1) (treesit_cursor_first_child_for_byte): Use ts_tree_cursor_goto_first_child_for_byte first, and ts_tree_cursor_goto_first_child second.
* ; * src/font.h (struct font): Comment about use of average_width.Eli Zaretskii2023-09-101-4/+10
|
* Unbreak builds with CHECK_STRUCTS.Philipp Stephani2023-09-071-1/+1
| | | | | | | | * src/pdumper.c (dump_buffer): Fix hash for 'struct buffer'. The recent changes to that structure where commits 8f3091defb3ec4396ccea563f67c005044b822ca and 0bd46619413e83fe3c85c8a1dfbf5e20dfce8605, both of which just affected comments.
* Avoid crashes on macOS with context menusDaniel Martín2023-09-071-0/+8
| | | | | * src/nsmenu.m ([EmacsMenu menuNeedsUpdate:]): Avoid crashes with context menus. (Bug#63495)
* * src/regex-emacs.c (mutually_exclusive_p): Fix inf-loop (bug#65726)Stefan Monnier2023-09-041-1/+1
|
* ; Fix typosStefan Kangas2023-09-021-1/+1
|
* Doc fixes for obsolete functions and variablesStefan Kangas2023-09-021-3/+3
| | | | | | | | | | | | | * admin/notes/multi-tty: * doc/emacs/building.texi (Debugger Operation): * doc/misc/efaq-w32.texi (Line ends by file system): * doc/misc/gnus.texi (Hashcash): * lisp/emacs-lisp/eieio.el (eieio-class-parents) (eieio-class-children): * lisp/progmodes/perl-mode.el: * lisp/textmodes/ispell.el (ispell-lookup-words): * src/buffer.h: Update or delete references to variables and functions made obsolete in Emacs 24.4.
* ; Improve documentation of 'char-table-range'Eli Zaretskii2023-09-011-1/+2
| | | | | | * doc/lispref/sequences.texi (Char-Tables): * src/chartab.c (Fchar_table_range): Clarify what 'char-table-range' returns for an argument that is a cons cell.
* ; * src/treesit.c: Add ts function boilerplateYuan Fu2023-08-311-0/+4
|
* Improve performance of treesit_cursor_helper_1Yuan Fu2023-08-301-13/+9
| | | | | | | * src/treesit.c: (treesit_cursor_helper_1): Use ts_tree_cursor_goto_first_child_for_byte to speed up traversing among siblings. The "while (ts_node_end_byte (cursor_node) < end_pos)" can be removed with the check added in the loop below.
* ; Effect a safer version of that fix for Emacs 29Po Lu2023-08-271-1/+1
| | | | | | | * src/haikuterm.c (haiku_draw_stretch_glyph_string): Use computed X value, as on X. Do not merge to master.
* Repair bug#65068 on Emacs 29Po Lu2023-08-261-0/+10
| | | | | | | * src/xterm.c (x_term_init): Disable ControlFallback library control wherever present. (bug#65068) Do not merge to master.
* ; Fix doc string of 'current-idle-time'Eli Zaretskii2023-08-251-1/+2
| | | | * src/keyboard.c (Fcurrent_idle_time): Doc fix (bug#65512).
* Fix touchpad scrolling on MS-WindowsEli Zaretskii2023-08-191-1/+1
| | | | | | | | | | * src/w32term.c (w32_construct_mouse_wheel): The number of lines to scroll should always be positive in wheel-scroll events. Whether to scroll up or down is encoded in the modifiers, which produce either wheel-up or wheel-down event. (Bug#65070) * doc/lispref/commands.texi (Misc Events): Clarify the documentation of 'wheel-up' and 'wheel-down' events.
* ; * src/treesit.c (Ftreesit_node_parent): Improve commentary.Eli Zaretskii2023-08-181-0/+4
|
* Improve documentation of case transfer in replacement commandsEli Zaretskii2023-08-171-1/+3
| | | | | | | | * doc/emacs/search.texi (Replacement and Lax Matches): * src/search.c (Freplace_match): * lisp/replace.el (query-replace, query-replace-regexp): Clarify in the doc string and the manual how letter-case is transferred from the replaced text to the replacement text. (Bug#65347)
* ; * src/fns.c (Fcopy_sequence): Doc fix. (Bug#64960)Eli Zaretskii2023-08-161-1/+2
|
* Avoid crashes in 'display_count_lines' when current buffer was killedEli Zaretskii2023-08-122-0/+5
| | | | | | * src/xdisp.c (Fformat_mode_line): * src/fns.c (Fline_number_at_pos): Don't allow to count lines in a dead buffer. (Bug#65060)
* Fix rare crashes in redisplay due to problems with fontsetsEli Zaretskii2023-08-121-5/+16
| | | | | | | * src/xdisp.c (get_next_display_element): If we have no usable face to display a character/composition, treat that as glyphless. (produce_glyphless_glyph): If neither it->face nor its ASCII face are usable, fall back to the frame's default font. (Bug#65198)
* Fix the -x switch in non-X buildsEli Zaretskii2023-08-101-16/+8
| | | | | | | * src/emacs.c (main): Move the handling of the -x switch out of the HAVE_X_WINDOWS condition, and simplify the rest of the code by avoiding code duplication in HAVE_X_WINDOWS and !HAVE_X_WINDOWS cases. (Bug#65048)
* Better fix for bug#65156Po Lu2023-08-091-3/+3
| | | | | * src/fileio.c (Finsert_file_contents): Correct seek-ability test, since lseek returns -1 upon failure. (Bug#65156)
* Fix insert-file-contents with pipes and /dev/stdinEli Zaretskii2023-08-081-2/+2
| | | | | * src/fileio.c (Finsert_file_contents): Restore logic of non-regular but seekable files. (Bug#65156)
* Fix bug#65042Po Lu2023-08-081-8/+11
| | | | | * src/pgtkterm.c (fill_background_by_face): Respect the frame's background alpha property.
* Fix "Paste from Kill Menu" in non X toolkit buildsEli Zaretskii2023-08-041-1/+5
| | | | | | * src/keymap.c (possibly_translate_key_sequence): Don't signal an error if 'key-valid-p' returns nil. Suggested by Stefan Monnier <monnier@iro.umontreal.ca>. (Bug#64927)
* Fix link to info node in prin1 docstringStefan Kangas2023-08-031-2/+1
| | | | | | * src/print.c (Fprin1): Fix linking to info node in docstring. (cherry picked from commit 4b73edb8d1da74fd1bda8894e982d9768fd1f18c)
* Support files compressed by 'pigz'Amritpal Singh2023-08-011-1/+1
| | | | | | | | * src/decompress.c (md5_gz_stream): Check 'stream.avail_in' as well. (Bug#63832) Copyright-paperwork-exempt: yes (cherry picked from commit 46b6d175054e8f6bf7cb45e112048c0cf02bfee9)
* ; * src/character.c (Fstring_width): Fix last change.Eli Zaretskii2023-07-301-4/+5
|
* ; * src/character.c (Fstring_width, Fchar_width): Doc fixes.Eli Zaretskii2023-07-301-13/+22
|
* Fix bug#64923Po Lu2023-07-301-0/+11
| | | | | * src/xfns.c (Fx_create_frame): Prevent cairo surface from being left without a desired size. (bug#64923)
* Avoid crashes due to invalid 'mode-line-format'Eli Zaretskii2023-07-301-1/+2
| | | | | | | * src/xdisp.c (display_mode_element, redisplay_window_error): Don't take XCAR of what can be Qnil. (Bug#64893) (cherry picked from commit 7ea3f39deec3d54914077455e70605a14eb7d200)
* Avoid crashes under 'which-key-mode'Eli Zaretskii2023-07-301-2/+2
| | | | | | | * src/keyboard.c (Fthis_single_command_keys): Don't allow calls to Fvector with negative first argument. (Bug#64857) (cherry picked from commit 65834b8f8d53402517da7fe2446f5bac0aa30c39)
* ; Minor documentation fixesEli Zaretskii2023-07-301-1/+1
| | | | | | | | | * src/character.c (Fstring_width): Doc fix. * doc/emacs/trouble.texi (Understanding Bug Reporting): Fix typo (bug#64854). (cherry picked from commit f6e4e77d23d0be79be83ef41c3ea9acd5c983af2)
* ; Improve documentation of 'last-command-event'Eli Zaretskii2023-07-221-1/+2
| | | | | | | * doc/lispref/text.texi (Commands for Insertion): * doc/lispref/commands.texi (Command Loop Info): * src/cmds.c (syms_of_cmds) <post-self-insert-hook>: Improve the documentation of 'last-command-event' and 'post-self-insert-hook'.
* Unbreak build with CHECK_STRUCTS.Philipp Stephani2023-07-211-1/+1
| | | | | | | The hash for the Lisp_Overlay structure has changed due to the (comment-only) commit 7ac947f34c745c61f8acc1fe2452a2c720d57a0d. * src/pdumper.c (dump_overlay): Update struct hash.
* Revert "Improve commentary in nsfns.m"Mattias Engdegård2023-07-211-5/+1
| | | | | | This reverts commit 3af27a4b815906c2ee38cbaf3a765289b3df061a, because it missed the point completely. Please talk to the original author next time.
* Fix NetBSD build --with-soundEli Zaretskii2023-07-201-0/+2
| | | | | * src/sound.c (alsa_write): Use ESTRPIPE only if defined. (Bug#64698)
* ; * src/xdisp.c: Fix wording in commentary.Eli Zaretskii2023-07-201-2/+1
|
* Improve commentary in nsfns.mPo Lu2023-07-201-1/+5
| | | | | | * src/nsfns.m (lispString): Avoid C++ comment and make the commentary actually relevant to the reason `make_string' is used.