emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-29 02e046566e 3/3: Set beginning/end-of-defun-function in tree


From: Stefan Monnier
Subject: Re: emacs-29 02e046566e 3/3: Set beginning/end-of-defun-function in treesit-major-mode-setup
Date: Thu, 22 Dec 2022 09:59:50 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> +    ;; `end-of-defun' will not work completely correctly in nested
> +    ;; defuns due to its implementation.  However, many lisp programs
> +    ;; use `beginning/end-of-defun', so we should still set
> +    ;; `beginning/end-of-defun-function' so they still mostly work.
> +    ;; This is also what `cc-mode' does: rebind user commands and set
> +    ;; the variables.  In future we should update `end-of-defun' to
> +    ;; work with nested defuns.
> +    (setq-local beginning-of-defun-function #'treesit-beginning-of-defun)
> +    (setq-local end-of-defun-function #'treesit-end-of-defun)))

Is there a bug report for that?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]