GNU bug report logs -
#57367
[PATCH] Speed up em-smart
Previous Next
Reported by: Morgan Smith <Morgan.J.Smith <at> outlook.com>
Date: Tue, 23 Aug 2022 20:07:02 UTC
Severity: normal
Tags: moreinfo, patch
Fixed in version 30.1
Done: Jim Porter <jporterbugs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
(Please keep the debbugs address in the CCs -- otherwise it won't reach
the bug tracker.)
Morgan Smith <Morgan.J.Smith <at> outlook.com> writes:
> So the hook is local to the buffer but it runs this bit of code:
>
> (set-window-start (selected-window) (line-beginning-position) t)
>
> So I want to set all windows that refer to the hook buffer to start at a
> certain location. Ideally I want to do this even if the window doesn't
> currently exist as I want it to be properly scrolled when I get back to
> it.
Hm, right.
> I guess that explains why the original author simply walked through
> all windows and also attached the hook to
> `window-configuration-change-hook'. I guess I could restore the
> original solution but it doesn't seem particularly elegant.
>
> Let me know if you have a better idea, otherwise I'll simply send
> another patch that puts some of the old stuff back in.
I think you probably have to wait until the window actually exists to
effect scrolling in it (you may have the same buffer in several windows,
or in none), really, so I think walking the windows is the only
practical solution here.
But there may be other tricks here -- perhaps somebody else has some
ideas.
This bug report was last modified 1 year and 211 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.