Subject: bug#46999: 28.0.50; semantic-idle-summary-mode moves point during eldoc

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 08 Mar 2021 20:38:03 +0100

nvp <[email-masked]> writes:

> When `semantic-idle-summary-mode` is active in c-mode and the
> cursor is on an empty line, the cursor is moved to the next
> non-empty line when `semantic-idle-summary-mode`'s eldoc
> function executes. I think this was introduced after commit
> 2987376bc3 with the introduction of the
> `eldoc-documentation-functions` hook.
>
> From emacs -Q
>   1. open a buffer in c-mode
>   2. enable `semantic-mode`, `eldoc-mode`, and
>      `semantic-idle-summary-mode`
>   3. Move cursor to empty line, eg. '|' in
>
>     int main(int argc, char *argv[]) {
>       |  
>       return 0;
>     }
>   4. Idle momentarily to allow eldoc to run

Thanks for the clear recipe for reproduction.

This should now be fixed in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no