unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: 陈育龙 <chenyulong1@gmail.com>, 16436@debbugs.gnu.org
Subject: bug#16436: feature request: select-window-hook
Date: Sat, 12 Jan 2019 10:15:39 +0100	[thread overview]
Message-ID: <5C39B03B.7070008@gmx.at> (raw)
In-Reply-To: <CAPObjnd+-NkD4s5rPmBBfvBsbsM2vQJ3CH_2ejx6NO9fwZvdvw@mail.gmail.com>

 > I don't know whether I missed something but I can't find a hook like
 > select-window-hook in stand
 > hooks<http://www.gnu.org/software/emacs/manual/html_node/elisp/Standard-Hooks.html>,
 > and I find some other emacs user has the same issue.
 >
 > I really want to have a function as select-last-window for emacs, by now, I
 > hack it in a ugly way, and I think select-window-hook can make it better.

Emacs now provides a hook called 'window-selection-change-functions'
which should fix your problem.  Please have a look.

Thanks, martin





      parent reply	other threads:[~2019-01-12  9:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14  3:48 bug#16436: feature request: select-window-hook 陈育龙
2014-01-14  7:47 ` martin rudalics
2019-01-12  9:15 ` martin rudalics [this message]

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=5C39B03B.7070008@gmx.at \
    --to=rudalics@gmx.at \
    --cc=16436@debbugs.gnu.org \
    --cc=chenyulong1@gmail.com \
    /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).