From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: Fix for `use-region-p' problem [was: Elisp test for whether `mouse-1' is pressed?] Date: Mon, 8 Nov 2021 09:28:14 +0100 Message-ID: <20211108082814.GA4971@tuxteam.de> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15662"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 08 09:33:31 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 1mk05r-0003pu-0E for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Nov 2021 09:33:31 +0100 Original-Received: from localhost ([::1]:36518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mk05p-0007vd-LE for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Nov 2021 03:33:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mk00x-0004Su-Fv for emacs-devel@gnu.org; Mon, 08 Nov 2021 03:28:27 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:35950) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1mk00s-0004nq-MW for emacs-devel@gnu.org; Mon, 08 Nov 2021 03:28:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=3iHO0CemPLQjDREx7LfPE32PbAnHn09mV2Qn0s4AU/w=; b=a5JuVXuawMBJVVhyq0sxgvFlWrSY7RQZ59reZ+xeT/hHqiiJ47ihlKSYLC8y8uE+R40Du8A/uSPDU2jIk27YY1nmrU2y2LDdbdCSQ4JROMUHV1Mdhyjb+54QCZTlXsunkoGWbbiSsid8GC0SYXZp7elbCruTZ6RXyPXYp4PbKpBGANt0n02x8EEZtz/wGM4hmmiC8nd237KpfF2osddAQzK1GFagDthTxi0pkc3W6cCQaL6vH7swHgWQ81HmPL/SGz4sYigi2WzlNda+oNNs5QLU/CC2hbBbSUFQsFpSk7Nq1nPQsRvdEnL+V9/JQuqYeocltig/NqkrrItOzXjh5w==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1mk00k-0001V7-5T for emacs-devel@gnu.org; Mon, 08 Nov 2021 09:28:14 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, 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.29 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:279026 Archived-At: --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Sun, Nov 07, 2021 at 11:26:45PM +0000, Drew Adams wrote: > I got no response to my question of how to tell > whether `mouse-1' is still pressed during a click. [...] I read twice through your text and I'm still trying to wrap my head around the gist of it. Perhaps that's because I don't use the mouse much (when doing text, at least). Perhaps it's something else. My feeling (it mitght be totally wrong: I'm trying to expound it just in an attempt to debug what's going on) is that you are connecting directly two layers which are too far apart: at the abstract/model/text end selection and its handling, at the concrete/physical/UI end the mouse clicks. In another debugging attempt: could you try to explain what you are up to assuming the user has no mouse? Now the above sounds as if I was trying to imply that you are somehow "wrong". That I am not! I'm just at a loss trying to understand what you are trying and even feel it's difficult for me adequately expressing my difficulties. Cheers - t --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmGI354ACgkQBcgs9XrR2kbdEACfbCXuFLuZ00iD/xG3XJ8sHL/L GJsAmgLROWzNeZKx/taGQIMqHsCM249A =4Q/e -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--