From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Psionic K Newsgroups: gmane.emacs.help Subject: Re: `other-window-prefix' command, running anything in the other window Date: Tue, 23 Jan 2024 07:21:07 +0900 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14969"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , help-gnu-emacs@gnu.org To: Psionic K Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 22 23:22:01 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rS2g4-0003gn-St for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 22 Jan 2024 23:22:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rS2fS-0002Ez-Le; Mon, 22 Jan 2024 17:21:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rS2fR-0002Ek-Cg for help-gnu-emacs@gnu.org; Mon, 22 Jan 2024 17:21:21 -0500 Original-Received: from mail-yw1-x1130.google.com ([2607:f8b0:4864:20::1130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rS2fP-0006t3-DK for help-gnu-emacs@gnu.org; Mon, 22 Jan 2024 17:21:21 -0500 Original-Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-5ff790d41bdso24879817b3.0 for ; Mon, 22 Jan 2024 14:21:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=positron.solutions; s=google; t=1705962078; x=1706566878; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZKSc3juySpCcqw1m6YvnLE29IyFmVz60KqFFuvHgcrQ=; b=eQ+CNqVESZ3ETtlBZksbIP+YrLwllWx/1mvlsoHNopAiNcl/pblvOVsiuknnvJD81a CMjhmfrdPzHLRYurwTQ6dgvAnFCdIuC5D/gjdXYrNETKV1OMzxfFYZzyua+YxywFK/cx KQaZ30zHhFA8Kk9pQodSb8qQ9Z+raynIS0S8LRLfSBNowp/wEnOVu225UgTDur0rHHgq bexK3ImP53l2xcZEjLkcfgEYIcQLeU9pHFU9azkFgppRGECxA3C6pnbw8Cl2TDexYb+f KJfns8oq7RgWigb/8vldms2IdyMQ/vK956xDgsFlBCDbL8nCrzTxtvglYoD0zHH1QYOv lWew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705962078; x=1706566878; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZKSc3juySpCcqw1m6YvnLE29IyFmVz60KqFFuvHgcrQ=; b=ZpMfgzg821z5PzA62WUVtyg7viu5tftiAbOITyGh4xwdO0F4pRloTvJgseSUQL5S3t J6X2gjRWjbrYQNyiuLuplM7kOY+gJQRmvw4NMX0A9WKcYe3FNfH7ng5p2ii1qMtLGwQi OH0HXOXCMQF6/LlQBaD2oEVArahPv1XXiAlkZfo+KEvzXAAUSadboSGYB+kd8WVt4zbK yMEslEWmjUmougv4z9pmlR8Dvpv9q/8ls1XsJ8q1ONvQEoKo90QPGKeRvhXjt2F7/mj4 22RlMaC4u5uqKilbzEAH/sVhk9+pcEwEkjAkFQ+vwdo8FVokhqBt/XevQCojyegrCiJ/ 0xGQ== X-Gm-Message-State: AOJu0Yx1Mdbm3QPriagQCMAUQWcxMqwvGUtgvHc52EM76NAbMEjg2Yoq pQGN9/x58nKSON7w5mdie/D3Ivv27UUxkfwKhure2CbC8kSz86sd3rk7tmHQkuCvstYCF2DBHmM kNUY+yOutKDelhkvKNnS2zHeZ5p+r3FcOhUeS/69ux2SCezkZtho= X-Google-Smtp-Source: AGHT+IGPuKGF9v+KYWo73DOJpGbnNeNzHc3buamVgA9jVHfVhjHgYeFuXvNXmszDP71fEZAnQj2Z3oEq/D/o5dtfjlI= X-Received: by 2002:a0d:d692:0:b0:5ff:b29d:452d with SMTP id y140-20020a0dd692000000b005ffb29d452dmr3364017ywd.84.1705962077870; Mon, 22 Jan 2024 14:21:17 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1130; envelope-from=exec@positron.solutions; helo=mail-yw1-x1130.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145786 Archived-At: 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.