bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#23079: 25.0.92; Movement commands leave cursor in invisible line


From: Eli Zaretskii
Subject: bug#23079: 25.0.92; Movement commands leave cursor in invisible line
Date: Wed, 23 Mar 2016 05:41:18 +0200

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Tue, 22 Mar 2016 21:59:38 -0400
> Cc: 23079@debbugs.gnu.org, jonas@bernoul.li
> 
> >       (let ((inhibit-read-only t)
> >             (deactivate-mark nil)
> >             (selection (magit-region-sections)))
> >         (mapc #'delete-overlay magit-section-highlight-overlays)
> >         (setq magit-section-unhighlight-sections
> >               magit-section-highlighted-sections
> >               magit-section-highlighted-sections nil)
> >         (unless (eq section magit-root-section)
> >           (run-hook-with-args-until-success
> >            'magit-section-highlight-hook section selection))
> >         (--each magit-section-unhighlight-sections
> >           (run-hook-with-args-until-success
> >            'magit-section-unhighlight-hook it selection))
> >         (restore-buffer-modified-p nil)
> 
> Hmm... what kind of buffer modifications might happen in here?

Deletion of overlays, perhaps?  And there are all those hooks which
might not be nil.





reply via email to

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