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

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

bug#28844: 26.0.90; display-line-numbers-mode should call window-configu


From: Eli Zaretskii
Subject: bug#28844: 26.0.90; display-line-numbers-mode should call window-configuration-change-hook
Date: Fri, 20 Oct 2017 12:42:18 +0300

> Date: Tue, 17 Oct 2017 11:33:57 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 28844@debbugs.gnu.org, agrambot@gmail.com
> 
> So having looked at your package, I think post-command-hook will solve your
> problem.  All you need to do in the hook is check if line-number-display-width
> returns a value different from the last time, and if so, call your function
> olivetti-set-environment; otherwise do nothing.

Another possibility is to use pre-redisplay-function.  An example is
in tabulated-list.el.

Anyway, since there were no further comments, I'm marking this bug
done.





reply via email to

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