unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Harald Jörg" <haj@posteo.de>
To: Juri Linkov <juri@linkov.net>
Cc: Emacs Developer List <emacs-devel@gnu.org>
Subject: Re: [ELPA] New package: perl-doc
Date: Thu, 28 Jul 2022 20:58:16 +0000	[thread overview]
Message-ID: <877d3xosyf.fsf@hajtower> (raw)
In-Reply-To: <861qu5do9x.fsf@mail.linkov.net> (Juri Linkov's message of "Thu,  28 Jul 2022 22:34:50 +0300")

Juri Linkov <juri@linkov.net> writes:

>>>     Harald> I have failed to find a hook for a change of window
>>>     Harald> width, but man.el simply uses an idle timer to check for changes.  I'll
>>>     Harald> adopt that in my code.
>>>
>>> It sounds like you want a buffer-local `window-size-change-functions' in
>>> combination with `window-old-body-pixel-width'.
>>
>> Correct: I want exactly that!
>>
>> In the meantime I had discovered window-state-change-functions (used in
>> man.el) which is not quite as good.
>
> Why do you think it's not quite good?  It's called when the window
> is resized too.

I should clarify: Using window-state-change-functions works fine!

I meant it is not quite as good as window-size-change-functions because
a function in windows-state-change-functions is also called in
situations where I don't need it to be called (e.g. after a M-x
other-window command, or when the window loses focus).  So it is a small
improvement to use window-size-change-functions.
-- 
Cheers,
haj



  reply	other threads:[~2022-07-28 20:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-27 16:16 [ELPA] New package: perl-doc Harald Jörg
2022-07-27 17:32 ` Akib Azmain Turja
2022-07-27 17:59   ` Harald Jörg
2022-07-28  7:24     ` Robert Pluim
2022-07-28  9:22       ` Harald Jörg
2022-07-28  9:39         ` Robert Pluim
2022-07-28 12:17           ` Harald Jörg
2022-07-28 12:34             ` Robert Pluim
2022-07-28 19:34         ` Juri Linkov
2022-07-28 20:58           ` Harald Jörg [this message]
2022-07-28 11:19     ` Gregor Zattler
2022-07-30  7:16       ` Akib Azmain Turja
2022-07-28  4:17 ` Visuwesh
2022-07-28  5:53   ` Eli Zaretskii
2022-07-28  8:57     ` Harald Jörg
2022-08-03 12:16 ` Alexander Adolf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877d3xosyf.fsf@hajtower \
    --to=haj@posteo.de \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).