unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dmitry Gutov <dmitry@gutov.dev>
To: Psionic K <psionik@positron.solutions>
Cc: help-gnu-emacs@gnu.org
Subject: Re: `other-window-prefix' command, running anything in the other window
Date: Tue, 23 Jan 2024 01:39:08 +0200	[thread overview]
Message-ID: <2c8cd4b4-1fd6-43b4-a06b-1e8a6f60d53b@gutov.dev> (raw)
In-Reply-To: <CADQMGAR75=fRxsnanbbOohR8r+4zxAJWBUcUCN_2Ec1oYBVLXQ@mail.gmail.com>

On 23/01/2024 00:21, Psionic K wrote:
> Oh yikes.  The `other-window-prefix' we have already is pretty limited.  
> No go.  The behavior I want to achieve is: `other-window-prefix' + 
> `scroll-window' -> `scroll-other-window'
> 
> Second draft:
> 
> 1. Switch window if there is another window.  If there is no other 
> window, run other-window-prefix to be sure we get a new one.
> 2. In post command hook, switch back to the previous window
> 
> I think it should work this way anyway, although not using a hook if 
> written  for Emacs.

You can make your version based on this one.

E.g. implement it on top of the existing function, or just look at the 
implementation and tweak as necessary.



      reply	other threads:[~2024-01-22 23:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-22  8:09 `other-window-prefix' command, running anything in the other window Psionic K
2024-01-22  8:29 ` Emanuel Berg
2024-01-22 21:06 ` Dmitry Gutov
2024-01-22 21:50   ` Psionic K
2024-01-22 22:21     ` Psionic K
2024-01-22 23:39       ` Dmitry Gutov [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=2c8cd4b4-1fd6-43b4-a06b-1e8a6f60d53b@gutov.dev \
    --to=dmitry@gutov.dev \
    --cc=help-gnu-emacs@gnu.org \
    --cc=psionik@positron.solutions \
    /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.
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).