From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.devel Subject: Re: Temporarily select-window, without updating mode-line face and cursor fill? Date: Sun, 2 May 2021 22:15:13 -0400 Message-ID: <1941D505-E603-41DD-904E-9BD7E4F28155@gmail.com> References: <56F746A2-B842-421E-8FBF-EA5E93EA26CE@gmail.com> <83pmya8d49.fsf@gnu.org> <6168853E-E5B1-4247-A0D7-4D4191DCED0A@gmail.com> <83im418wap.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_63C139E2-A580-4B4B-92E2-9E19F10665CE" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14317"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 03 04:16:38 2021 Return-path: Envelope-to: ged-emacs-devel@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 1ldO8T-0003d3-Py for ged-emacs-devel@m.gmane-mx.org; Mon, 03 May 2021 04:16:37 +0200 Original-Received: from localhost ([::1]:60478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldO8S-0001Nh-TR for ged-emacs-devel@m.gmane-mx.org; Sun, 02 May 2021 22:16:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldO7D-0000qn-BB for emacs-devel@gnu.org; Sun, 02 May 2021 22:15:19 -0400 Original-Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]:41582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldO7B-0005Ez-2r; Sun, 02 May 2021 22:15:18 -0400 Original-Received: by mail-qk1-x729.google.com with SMTP id 8so3765850qkv.8; Sun, 02 May 2021 19:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=oSDKZmbnIgkRMhDtoekJYixzXPZIf2aDSEnTP8rsY3c=; b=BYSMsIy3RtausWf2gEZ2CUUsGJpj+xyqeJyZc2w5XNhoejNnzqxFhVFOudsl84SA8U Wen8GQDmBXkUNCnZbz9toSlv1w2bVtGJaVj5Ngggw6IrngUU0gJ2UWckW8OUFnreYWci fluCNOur40dQ4ticjnVKr9v9Gl7vhLy9PTHScjKwB0hOp0n5D2vIcbB8/bsUP/3q4XBl ZDCrh7UX1v0MNEpByxaQLEwZuuJk0nVDadz+HuAhxlzgbBylcr28naxPHfhn5uELs4Pi PFNzeGJCsIgFV2dmRidY8AacWnmMJKRs4sK488Fs5NXjs70enhOnQmtItT7sUKn9rV2Y AdEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=oSDKZmbnIgkRMhDtoekJYixzXPZIf2aDSEnTP8rsY3c=; b=Lxd/q2LYlckl807tZPDV/49FWKcbCScsDUkaRnIfSx5iRD7gle1Gof1r8LmLrrCA8P aPrK3fzHXHvlsfdd7NpzRn325+Mc+hhU7trbZFSGPTG9WCwiSjryExwglDennenDu2Hv UrimEbkBx3z3RDV/6oL06u78Ba8u3/M0/iX0D/wiwgd/SeO5Z8O0mUFEuaHwexl+w9Kg t9hAu+qRBmkDwO5JCaXbn64ggqGrZJFmehaiVs9EAShX7AVY9Faka476LsHTQaw9OETf bH9hQX2NEkQrXn0CcvqV3SzCBTuYyFvAxTgIqkw9nIz/IT8p7jCNjWRZl8/3r88yneel z6/Q== X-Gm-Message-State: AOAM5333t/iwE5Y2h9VHZoEP5bCwAofMY+EviITMLT2zwwUBGcA/tjY0 uhcmGnbWoRDwq310ZzKKJaZv9ABopL0ouQ== X-Google-Smtp-Source: ABdhPJzP9JYe6MSx3FqKb/Fc2mg9pgC/P8lAADXAk21eFmLz5IMbaw7G/D6NacwhIY8R/WN44gWPZw== X-Received: by 2002:a37:8ec4:: with SMTP id q187mr17117402qkd.381.1620008115425; Sun, 02 May 2021 19:15:15 -0700 (PDT) Original-Received: from smtpclient.apple (cm-134-228-25-135.buckeyecom.net. [134.228.25.135]) by smtp.gmail.com with ESMTPSA id p145sm7503216qke.67.2021.05.02.19.15.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 May 2021 19:15:14 -0700 (PDT) In-Reply-To: <83im418wap.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.80.0.2.43) Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=jdtsmith@gmail.com; helo=mail-qk1-x729.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268791 Archived-At: --Apple-Mail=_63C139E2-A580-4B4B-92E2-9E19F10665CE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On May 2, 2021, at 2:49 AM, Eli Zaretskii wrote: >=20 > Sure, but the event gives you the window, and through it the buffer of > that window, so I see no particular reason to make the window > selected. A given buffer may appear in multiple windows, which likely will have = different =E2=80=9Cwindow-start=E2=80=9D and =E2=80=9Cwindow-end=E2=80=9D.= So you have to find the line position in the buffer relevant for that = particular window. Also tying me to this is the fact that the = format-mode-line method obviously uses windows, not buffers.= --Apple-Mail=_63C139E2-A580-4B4B-92E2-9E19F10665CE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On May 2, 2021, at 2:49 AM, Eli Zaretskii <eliz@gnu.org> = wrote:

Sure, but the event gives you = the window, and through it the buffer of
that window, so I see no particular reason to make the = window
selected.

A given buffer may = appear in multiple windows, which likely will have different = =E2=80=9Cwindow-start=E2=80=9D and =E2=80=9Cwindow-end=E2=80=9D. =  So you have to find the line position in the buffer relevant for = that particular window.  Also tying me to this is the fact that the = format-mode-line method obviously uses windows, not = buffers.
= --Apple-Mail=_63C139E2-A580-4B4B-92E2-9E19F10665CE--