[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Understanding end-of-defun
From: |
Stefan Monnier |
Subject: |
Re: Understanding end-of-defun |
Date: |
Tue, 25 Oct 2022 22:55:18 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> Presumably this makes us go to the next arg’h begining-of-defun, and goes to
> the end of that defun. However, what if beginning-of-defun-raw couldn’t find
> any defun beyond point, didn’t move point, and returned nil? At that point
> calling end-of-defun-function breaks the assumption that we only call it
> when point is at the beginning of a defun. Am I missing something?
No, you're quite right. We should double check that
`beginning-of-defun-raw` was successful (and do something else if not).
Stefan