aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Check for buffer liveness when accessing tree-sitter node (bug#71012)Yuan Fu2024-06-013-0/+26
| | | | | | | | | * src/treesit.h (treesit_node_buffer_live_p): Declare function. * src/print.c (print_vectorlike): Print node without position if buffer is killed. * src/treesit.c (treesit_node_buffer_live_p): New function. (treesit_check_node): Add buffer liveness check. (syms_of_treesit): New error treesit-node-buffer-killed.
* ; Fix typosStefan Kangas2024-05-271-1/+1
|
* Avoid assertion violations in displaying under 'outline-minor-mode'Eli Zaretskii2024-05-251-1/+1
| | | | | | | * src/xdisp.c (init_from_display_pos): Initialize BYTEPOS correctly, since 'init_iterator' no longer computes it from CHARPOS as needed. This fixes a change made on Mar 13, 2013. (Bug#71194)
* Avoid crashes on MS-Windows due to invalid UNC file namesEli Zaretskii2024-05-221-1/+1
| | | | | | | * src/w32.c (parse_root): Avoid crashes due to invalid (too short) UNC names, such as "\\". (Bug#70914) * test/src/fileio-tests.el (fileio-tests-invalid-UNC): New test.
* ; Improve documentation of 'set-fontset-font'Eli Zaretskii2024-05-171-1/+10
| | | | | * doc/lispref/display.texi (Fontsets): * src/fontset.c (Fset_fontset_font): Doc fix (bug#70993).
* ; * src/window.c (Fwindow_scroll_bars): Doc fix.Eli Zaretskii2024-05-131-3/+12
|
* Avoid assertion violations in 'push_prefix_prop'Eli Zaretskii2024-04-212-1/+5
| | | | | | * src/xdisp.c (push_prefix_prop): Set the 'string_from_prefix_prop_p' flag for any valid value of the 'line-prefix' or 'wrap-prefix' property/variable. (Bug#70495)
* Fix display of vscrolled windowsEli Zaretskii2024-04-111-1/+1
| | | | | * src/xdisp.c (redisplay_window): Fix condition for resetting the window's vscroll. (Bug#70038)
* ; * src/filelock.c (Flock_file): Doc fix (bug#70216).Eli Zaretskii2024-04-071-2/+5
|
* Fix documentation of 'other-window-for-scrolling'Eli Zaretskii2024-03-251-7/+10
| | | | | | * src/window.c (Fother_window_for_scrolling): More accurate documentation of how "the other" window is looked for. Suggested by Karthik Chikmagalur <karthikchikmagalur@gmail.com>.
* ; Fix 'usage:' keyword in Ffile_name_concat doc.Basil L. Contovounesios2024-03-161-1/+1
|
* ; * src/lread.c (maybe_swap_for_eln): Clarify warning message.Eli Zaretskii2024-03-141-3/+3
|
* ; * src/composite.c (composition_compute_stop_pos): Add comment.Eli Zaretskii2024-03-041-5/+21
|
* ; * src/buffer.c (Fmake_indirect_buffer): Doc fix.Eli Zaretskii2024-03-011-2/+8
|
* Avoid assertion violations in bidi.cEli Zaretskii2024-02-271-1/+2
| | | | | | | * src/bidi.c (bidi_resolve_brackets): Move assertion about 'resolved_level' to where it belongs. This avoids unnecessary aborts when the character is not a bracket type and doesn't need BPA resolution. (Bug#69421)
* Fix "emacs -nw" on MS-WindowsEli Zaretskii2024-01-282-2/+7
| | | | | | | | | * src/w32term.c (w32_flip_buffers_if_dirty): Do nothing if F is not a GUI frame. This avoids rare crashes in "emacs -nw". * src/w32console.c (initialize_w32_display): Set the ENABLE_EXTENDED_FLAGS bit in 'prev_console_mode'. (cherry picked from commit e1970c99f097715fc5bb3b88154799bfe13de90f)
* Simplify 'without-restriction'Gregory Heytings2024-01-151-8/+8
| | | | | | | | | | | | | | | This simplification is symmetrical to 01fb898420. * src/editfns.c: (Finternal__labeled_widen): Add a call to 'Fwiden', and rename from 'internal--unlabel-restriction'. (unwind_labeled_narrow_to_region): Use the renamed function, and remove the call to 'Fwiden'. (syms_of_editfns): Rename the symbol. * lisp/subr.el (internal--without-restriction): Use the renamed function. (cherry picked from commit 9e9e11648d3d5514de85edfb69f0949a062f4716)
* Fix blunder in labeled_narrow_to_regionGregory Heytings2024-01-141-1/+1
| | | | | | * src/editfns.c (labeled_narrow_to_region): Record point before, instead of after, calling narrow-to-region; otherwise point may already have been changed. Fixes bug#66764.
* * src/comp.c (Fcomp__compile_ctxt_to_file): Fix hash table Qunbound use.Andrea Corallo2024-01-041-2/+2
|
* ; * src/window.c (Fset_window_margins): Doc fix.Eli Zaretskii2024-01-031-1/+5
|
* ; Add 2024 to copyright yearsPo Lu2024-01-02259-259/+259
|
* Revert "Fix treesit-node-field-name and friends (bug#66674)"Yuan Fu2023-12-291-3/+4
| | | | | | | | | This reverts commit 9874561f39e62c1c9fada6c2e013f93d9ea65729. See bug#67990. Basically our original code is correct, the error is in libtree-sitter, which only manifests in certain cases. https://github.com/tree-sitter/tree-sitter/pull/2104
* ; * src/buffer.c (syms_of_buffer) <default-directory>: Doc fix (bug#68088).Eli Zaretskii2023-12-281-2/+2
|
* Increment parser timestamp when narrowing changes (bug#67977)Yuan Fu2023-12-232-2/+8
| | | | | | | | | | | | | | | | | When narrowing changes, parse reparses, so the timestamp should definitely increment, just like in ts_record_changes. Failing to increment this timestamp, outdated nodes would think they are still up-to-date, and try to print their type name. Printing their type name involves accessing the old parse tree, which is already freed during the last reparse. I also found that we don't increment timestamp when changing parser ranges and fixed that as well. * src/treesit.c (treesit_sync_visible_region): (Ftreesit_parser_set_included_ranges): Increment timestamp. * src/treesit.h (Lisp_TS_Parser): Add some comments.
* ; * src/treesit.c (treesit_traverse_child_helper): Fix comment.Eli Zaretskii2023-12-191-1/+1
|
* Fix an issue when searching subtree backward (bug#67117)Denis Zubarev2023-12-181-2/+2
| | | | | | | | | | | * src/treesit.c (treesit_traverse_child_helper): Do not call treesit_traverse_sibling_helper when the named node is required and the last child is the named node. Otherwise treesit_traverse_sibling_helper will move cursor to the previous sibling and last node will be skipped. * test/src/treesit-tests.el (treesit-search-subtree-forward-1): (treesit-search-subtree-backward-1): Add tests.
* Fix treesit-node-field-name and friends (bug#66674)Yuan Fu2023-12-101-4/+3
| | | | | | | | | | | | | | | So turns out ts_node_field_name_for_child takes a named node index, but we were passing it normal index that counts both named and anonymous nodes. That's what makes the field name all wrong in treesit explorer. * doc/lispref/parsing.texi: (Accessing Node Information): Update docstring. * lisp/treesit.el (treesit-node-index): Add some unrelated comment. (treesit-node-field-name): Get named node index rather than all node index. * src/treesit.c (Ftreesit_node_field_name_for_child): Update docstring, use ts_node_named_child_count.
* ; Fix typosStefan Kangas2023-12-101-1/+1
|
* ; Fix typos in ChangeLog filesStefan Kangas2023-12-104-8/+8
|
* ; Fix typosStefan Kangas2023-12-038-8/+8
|
* Fix setting cursor when the window's op line has 'line-prefix'Eli Zaretskii2023-12-021-2/+4
| | | | | * src/xdisp.c (set_cursor_from_row): Skip glyphs that come from a string if their 'avoid_cursor_p' flag is set. (Bug#67486)
* Document, that PROCESS of signal-process can be a stringMichael Albinus2023-11-301-0/+2
| | | | | | * doc/lispref/processes.texi (Signals to Processes) [signal-process]: * src/process.c (Fsignal_process): Document, that PROCESS can be a string.
* Add 2 SQLite extensions to allow-list.Eli Zaretskii2023-11-181-0/+2
| | | | | | * src/sqlite.c (Fsqlite_load_extension): Add 2 Free Software extensions to the allow-list. For the details, see https://lists.gnu.org/archive/html/emacs-devel/2023-11/msg00234.html.
* ; * src/editfns.c (Fline_beginning_position): Doc fix.Eli Zaretskii2023-11-161-0/+1
|
* Improve documentation of signaling errors in batch modeEli Zaretskii2023-11-091-0/+4
| | | | | | | | | | | | * doc/lispref/control.texi (Signaling Errors) (Processing of Errors): * doc/lispref/os.texi (Batch Mode): * doc/lispref/debugging.texi (Invoking the Debugger): * lisp/emacs-lisp/debug.el (debug): * src/eval.c (Fsignal): * lisp/subr.el (error): Document more prominently that signaling an unhandled error in batch mode kills Emacs. Better documentation of backtrace in batch mode.
* ; 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.