GNU bug report logs - #77256
Treesit language-at-point

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Tue, 25 Mar 2025 18:44:02 UTC

Severity: normal

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #79 received at 77256 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 77256 <at> debbugs.gnu.org, Vincenzo Pupillo <v.pupillo <at> gmail.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#77256: Treesit language-at-point
Date: Wed, 16 Apr 2025 20:12:21 +0300
>> This seems a bit convoluted to me.  What do you think about adding
>> some hook or generic function to outline-minor-mode?
>
> Is this better?
>
> diff --git a/lisp/outline.el b/lisp/outline.el
> -(defun outline--fix-buttons-after-change (beg end _len)
> +(defvar outline-after-change nil
> +  "List of functions to call after each text change in outline-mode.")
> +
> +(defun outline--fix-buttons-after-change (beg end len)
> +  (run-hook-with-args 'outline-after-change beg end len)
>    ;; Handle whole lines
>    (save-excursion (goto-char beg) (setq beg (pos-bol)))
>    (save-excursion (goto-char end) (setq end (pos-eol)))

This is pushed as well.




This bug report was last modified 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.