From unknown Thu Sep 18 23:15:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51874 <51874@debbugs.gnu.org> To: bug#51874 <51874@debbugs.gnu.org> Subject: Status: 27.2; [PATCH] `use-region-p' reports non-nil during simple `mouse-1' click Reply-To: bug#51874 <51874@debbugs.gnu.org> Date: Fri, 19 Sep 2025 06:15:27 +0000 retitle 51874 27.2; [PATCH] `use-region-p' reports non-nil during simple `m= ouse-1' click reassign 51874 emacs submitter 51874 Drew Adams severity 51874 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 15 12:44:57 2021 Received: (at submit) by debbugs.gnu.org; 15 Nov 2021 17:44:57 +0000 Received: from localhost ([127.0.0.1]:56056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmg2K-0001fF-OK for submit@debbugs.gnu.org; Mon, 15 Nov 2021 12:44:57 -0500 Received: from lists.gnu.org ([209.51.188.17]:48232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmg2I-0001f6-6b for submit@debbugs.gnu.org; Mon, 15 Nov 2021 12:44:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmg2H-0002k8-St for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2021 12:44:54 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:4980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmg2D-0006u6-GT for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2021 12:44:51 -0500 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1AFGeorj000654 for ; Mon, 15 Nov 2021 17:44:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=ilf5Bnxn1KDt4trEDEz8hkq3FY6IQAtuNrJDGewY71g=; b=zv/5dDS9G/tI+L6ST9tgI/MzyJaKUbBta8S/ti+5BxTRTbVCenNzDn9y4bI3YvqBKGX/ fMHuK6+ch9KGsuaJcn1y8dhWkhRipf00x2cC6jsahL0zeQw898deyjIC0nm0AsFq6syB RbVj3pJaEExNVPTCoTh6GjjmEsrGE2SaIsgU+/DGPs+jDaiuoNnsNIitebAEGvgDgV0u 26fo/4E8R8sE+f7uXVnIY7LTMuN3/mIXMQ/SWSuvzUJ0J6Th9ZVU8QxMpyLKQi/dB2MB ah/51bZD36rQrx34HWTzWUl8SUj/oGhk+TybmzduuZt2aSRhLN9g2CcVVqyaSauAIhnR Cw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by mx0b-00069f02.pphosted.com with ESMTP id 3cbhmnkyad-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 15 Nov 2021 17:44:47 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1AFHebwV188577 for ; Mon, 15 Nov 2021 17:44:47 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2170.outbound.protection.outlook.com [104.47.59.170]) by aserp3020.oracle.com with ESMTP id 3ca56471jd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 15 Nov 2021 17:44:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GPCaDbj06GrwCSPwzuH3BloDEzeeOjy6WKt3zHe/IlU+zbQIMa6jsGgP8r4ZYHgVs73PDIzNoerOiY4X6wVUK+QP3R8HHmqNq2oO+jZPpanrU3Y3Qspj/cjqtJHYYkoPeHQ9O7jnm88KOSNwLrqABw1HmEeejOPwXe6jgdWRosDJ2Y0ul516Ew22FhXEPFJT2rQI3xrbNPYinI2IuelZkVH0GFZlvIMJ7+9SE47BOp+PHaMpFSdBdXvENjA6CEdWEcOKiJegUAYb+6NT09TBzjGuy8HbqDiZSWhA5eCXhVg0uIybb8GC7F7oY3FxJiVJu/j/cwpiDxPinblP0wtV5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ilf5Bnxn1KDt4trEDEz8hkq3FY6IQAtuNrJDGewY71g=; b=f9bHXW2Yi5rdU2ptpyB7wwErDVy+XfPRqQixlxkTYQbEXLb0dMAA5XqGCqbSxjignrQgEUyDGKLYjkXYSWr0Cr4O4pRcr5VGVWS2RLpUGL2QhNF0lw2t+9w9m0Cw3PQYGIwyhArMFOAzKWUm2e6bP0fQUTFwOFjn+4W3FfbcqnDDYNuxKTVMRDACDEX1XubR91nP7dZSMUM0RIOg5UsoqA5rDCb6rcQwvoNSRfsnXIlWLBLXBXqbaLqQYGQFdCEpTfC09PtSVtlSX/gj2SnDmqANWikY6ynGNVUnOVzPIAYETjeavZFbt22DnhNa+jT9q+TwmhMC7tK/Mph7giEu5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ilf5Bnxn1KDt4trEDEz8hkq3FY6IQAtuNrJDGewY71g=; b=Sqs8J0sbEl82JlclOQ7YJ8WoPuIn6fDrGv40lwkR7SLLxgWVuDyEn1HsYg7Lk6qzhFDaK81GziwgTPxW1faJdjT2neX050QyY/p9jKZU3ec0xotvpVWPFVMr/NyJRqtln64raUFeLytGQU4OPBP+mVSv7mAEcsgKRW+hffAIdgs= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by SJ0PR10MB4495.namprd10.prod.outlook.com (2603:10b6:a03:2d6::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.17; Mon, 15 Nov 2021 17:44:45 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::b0d3:555d:98c3:62e3]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::b0d3:555d:98c3:62e3%5]) with mapi id 15.20.4669.016; Mon, 15 Nov 2021 17:44:45 +0000 From: Drew Adams To: "bug-gnu-emacs@gnu.org" Subject: 27.2; [PATCH] `use-region-p' reports non-nil during simple `mouse-1' click Thread-Topic: 27.2; [PATCH] `use-region-p' reports non-nil during simple `mouse-1' click Thread-Index: AdfaR8VFhQi1Ev21Q8i65KIqo/6ACw== Date: Mon, 15 Nov 2021 17:44:45 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 31972927-196e-4859-d2d9-08d9a85f9caf x-ms-traffictypediagnostic: SJ0PR10MB4495: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oWhI6co1OZ6/+H+5dvevGjfSy26b+tdfsrkjc9hOmK14CnGkV2EBAYDSIyIwxg+lnLq77ruT5dI5NuJS6KvFL1m2Nw9GgVX52MjEv0nIvlNrMLsWYE0O19mbWhF4IW2lKsADgaf+kvqwYnjdv/5+puowH3UVaqV+9Q+PlSCF8r8uvwhVOLHuoc50Jd4CR+sJQf7rzNAkd4epfiEIIWDxEKgp8j+8r8tsS9qiv6yTVGUoCwlXJBDy6Mw9svTPjMcVRVXclaPkyfH84f9MsiO4rnWpsMFqXwzV5GqU3XNE/HuPqnivWSCKDudTQOTdk9aYz0nnGiVQ3o3W+rJ3wFavvNWwWjggcrfjHU3dQ+NkXCzwmyW6n5ss6UM6KBxTSYGfkSOzPyNwVqZvKA5raJqnqqISr7L6Yn9f48U48MHvJDPHYIblltviHH8ok+duo54YbgoBcT19/ziPA2qUQLR253v/r/n8yfUuVpVtPllLKVUKHv6WjToUHraebox729j+ntohEu72NRSW7r45fG3oAD+nRrX+sVzyp45O3EQAmtyNn88JJhHAtssptVg+zmQTFBFkvD9tt6CU6b7acfHUSqglo9R2lb7ukl9KYUWiQDgaMkrBbdrX4AlqAmRDBjjUcuREgMMaJcjea2E3adu5n4chvteBI8fFpI1DKOp8/iYhtx5My+/ACfAWwrC3blk0HG0cbnM9SchTga+sP2JTitBNQqM/FHSwDDMUgGGTPSJbkC3qjB6QLL1KZxM7VoXVJZ/Wei+83Az0VAXa+6Tu9A1wa41KtViwMeGHKd5xcDSPLwRJKSXaHntepCxhJVk0 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(33656002)(55016002)(6506007)(966005)(9686003)(26005)(76116006)(5660300002)(7696005)(122000001)(38100700002)(186003)(52536014)(2906002)(66946007)(66556008)(6916009)(508600001)(45080400002)(38070700005)(66446008)(86362001)(64756008)(316002)(66476007)(44832011)(8936002)(83380400001)(71200400001)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?VviCDjlf7OHWgkNr9+XZoE48M/UoLhir6TaaQD22d4FAej9FZcgYsgy9D4DT?= =?us-ascii?Q?+VHEiP8gc04/S+UFhAyubLsM3xEYFqGATAGPbh3UaZLMtrgMy2W+CdukUupP?= =?us-ascii?Q?1mr8N2r/mVu39IjyXN4hJRPsW1ACdo6Gmum9rvIIamWZDGnFIYkYzeRQOX06?= =?us-ascii?Q?BC7WhM0X717DE/Cvuf9SdhcEi93SjQ2reGJWc6TuB3NaZMijgz3UaOkgGDXw?= =?us-ascii?Q?HK5MqA/psM6SAJcn+IzT6QfPIqR09565vYE6ljl5xkcttrzyYjCLbl8G/37R?= =?us-ascii?Q?RFqr0XUd3P/TU4kqPAQVZTl3WAGZh4CWRuCn8ouz9IfYgCOz557TTtKyMBlS?= =?us-ascii?Q?LR+T8wRnT9dd4GH4nAzNmUPlYR/dOkMVeeLNoPZI5K+hbiIBukOgpP977aoF?= =?us-ascii?Q?PusNQ47LG6aZdmW3QqkKGYTVMOEXgi3kJyYzvV7AdGXnkUYXqDQAk9bb1QyS?= =?us-ascii?Q?wN5rVXKODm0M4fTTzdjwAVLu5cTCgAJMhwKhJjjPr+7R2u4ZpsJTnBrptF+r?= =?us-ascii?Q?uF8Kpc1ivq8vFczk8lXsZisyQIwQT/Y9WUwj4NZUVIcGpKmZqmqXcXtox4TZ?= =?us-ascii?Q?B63rSfmoPPCkJ01cguUMl63El1In7UUEX3uS2xCks7hBGJLhKgKOo+sx1bk7?= =?us-ascii?Q?uBJZnr9rh5JQ6imE2LczIQL47X+lgosTVzP0l2kCVzB6Tg8e8FyD4NoLYKLz?= =?us-ascii?Q?fvFC9WV3ddurmTpqQ41TYf9J/gBKwZoeMGrbRwC7I4QxVYGqTGgJXyRAyBiG?= =?us-ascii?Q?npLZFWdqdv7Jrmn3kgcZrGD4O2MpMeK1fNQ+pgoiLa+diA+aNKV+UgGHQUqK?= =?us-ascii?Q?dJi9m+3SyO3FVaeY6F87qpkaAX2md4pJiBMMrpQ4OiAsXELY6pQ886PQwKS3?= =?us-ascii?Q?LbRroXbHhEpQV2uU4xzebYt5Zax9+dqkQ8E5doVBWS5svyxLpK3C4Q3cCni3?= =?us-ascii?Q?RHAXpdYOk5kYm1nhQ9QO98NlvHrSNy43IPoaOfx/84ahTLGlZcyYixabN9Xo?= =?us-ascii?Q?mbU/C4/4kYs3HTFhgxsALKn0MlHfb28PssqP8sLtD/MqoB0uDUbOu7IPkf3J?= =?us-ascii?Q?OpELztxiCdePZIdokXMKyOFG+kp03R8iQNl0GKF1s4Etr5LaV5kbk53PVJ6C?= =?us-ascii?Q?cDRz0CZ05zAb+G0Jt/Zzw8DlXbp9MbNILM0V1mX+oQ04CZawj+QOvyAUvpWB?= =?us-ascii?Q?B1obicbARHuFwbCBNOFpaWvf2tPfXFixg7JnXaapZWyVYNJY+TfCtwmTnhEr?= =?us-ascii?Q?cGAjOaYKcKXIYwIB/oAkwE8e0Iod7HVkKKVYSXe4kxrukCww/EoG/A5nknMc?= =?us-ascii?Q?8jJmdeUPcy/Gj/nnKuWpjdn+aFR7uCdHjskHIp6wJZ2FOxS05Y4K65ju4xtQ?= =?us-ascii?Q?Y1hrhmEWfGk86O9QcvgFlvz344pD1Cg7rZeemiFciS4eFWlr5yELUv9kUlH9?= =?us-ascii?Q?eQgcHfBYBnUFnkDlbM30VIf84t6Th2X/hZn6zccGdOd+IN4I9C0roDttVbmP?= =?us-ascii?Q?CkiwZH4I3khTB2EOyhJRnuBAohqHmr+dErIzHUs9PghTRzoyDF7knMeTAR2y?= =?us-ascii?Q?meeI6ooErpcUBtCfmDukQAjti7Mjn+qFbWNBjaJe82UDWtVScL8WspYftqu5?= =?us-ascii?Q?+w=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 31972927-196e-4859-d2d9-08d9a85f9caf X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Nov 2021 17:44:45.2489 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Z8OzNmD6o4yAsXvTZ811LRNzqD++M+LvmeVz45pbu93tc71K9PDi7YGqEoi4A4r76EpVNJpAy/gR2+sevcETxA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB4495 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10169 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 mlxscore=0 spamscore=0 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111150089 X-Proofpoint-ORIG-GUID: i4C664vNkdP1pmfd0Pau86TjWth02YlK X-Proofpoint-GUID: i4C664vNkdP1pmfd0Pau86TjWth02YlK Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) The bug is detailed in emacs-devel thread "Fix for `use-region-p' problem": https://lists.gnu.org/archive/html/emacs-devel/2021-11/msg00634.html In any case, I include a description here. `use-region-p' is designed to let code know that either (1) the active region is nonempty or (2) the user has OK'd the use of an empty region (non-nil option `use-empty-active-region'). It should return non-nil in those cases only. The problem is in #2: an empty active region that's declared to be OK to use. A user (and code) expects `use-region-p' to return non-nil to show that the region is usable for the _next_ user action (in particular). In simple user terms, in this context (being able to act on the active region) a click of `mouse-1' can be considered a single user action. There's no intention, and little ability, for a user to act _between_ the down & up events of a click (as opposed to a drag). If `use-empty-active-region' is non-nil then the active region is usable even if empty. The bug is that `use-region-p' returns non-nil as soon as you use `down-mouse-1'. If the up-button event, `mouse-1' happens at the same location then the region is deactivated. But in the interim, a call to `use-region-p' returns non-nil. Especially if such a call is reflected by something user-visible, the effect for users can be annoyance or confusion, or both. For example, I have code that shows, in the mode-line, the state of the region. When active, the region size is shown there, highlighted. Clicking `mouse-1' produces a flash, momentarily showing the empty region as active. It should not - a mouse click should not make the empty region "usable" during the click. Doing that is a mistake. This recipe (from tomas@tuxteam.de) shows the problem. Click `mouse-1' to see that `use-region-p' reports non-nil during clicks. (setq use-empty-active-region t) (setq my-timer (run-with-timer 0 0.05 (lambda() (message "%s REG=3D%s" (current-time-string) (use-region-p))))) The fix I found is to have `use-region-p' not return non-nil for the empty region if the last event is `down-mouse-1' or it satisfies `mouse-movement-p'. This is the fixed definition of `use-region-p' I came up with. (defun use-region-p () "Return non-nil if it is appropriate to act on the region. This is used by commands that act specially on the region when Transient Mark mode is enabled. The return value is non-nil if the region is active and either of the following conditions is true; otherwise, the return value is nil. * The region is nonempty. * Option `use-empty-active-region' is non-nil, and the last input did not use `mouse-1' to set or adjust the region. For some commands, it might be appropriate to ignore the value of `use-empty-active-region'; in that case, use `region-active-p'." (ignore-errors (and (region-active-p) (or (> (region-end) (region-beginning)) (and use-empty-active-region (not (eq 'down-mouse-1 (car-safe last-input-event))) (not (mouse-movement-p last-input-event))))))) I'm no expert on events, mouse or otherwise, so if someone sees a better implementation, great. (I'm not sure the `ignore-errors' is needed, for example.) In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 built on CIRROCUMULUS Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.19042 System Description: Microsoft Windows 10 Pro (v10.0.2009.19042.1288) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Dired by name Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired dired-loaddefs tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 104242 12660) (symbols 48 6312 2) (strings 32 17300 1548) (string-bytes 1 526872) (vectors 16 9318) (vector-slots 8 126062 13752) (floats 8 21 108) (intervals 56 20920 4857) (buffers 1000 12)) From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 11:12:23 2022 Received: (at 51874) by debbugs.gnu.org; 20 Sep 2022 15:12:23 +0000 Received: from localhost ([127.0.0.1]:59221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oaev8-0007UC-Oh for submit@debbugs.gnu.org; Tue, 20 Sep 2022 11:12:23 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oaev7-0007Tz-3M for 51874@debbugs.gnu.org; Tue, 20 Sep 2022 11:12:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=L4Qedcyy7qs+k2sqrJxd0cGaK6PN/RjTE6E8p8ReqKQ=; b=bPgfgPsSxvdnWM9YBw3xj8qF3c qxYMUXqLL5Vl6zUPHInXnh7IllrQA/8fgLOHgUdFiGtTOOToQ60E8nZMb0O1TXpV0UhAvIb0jumDy RVTOJNcwjhYSPqpgRMOSZJJMlkI3x2H3c6MIB6P9L9nSIgSv+/4UgWWsrrh2Bumu7Q9Q=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaeuw-0003BX-CV; Tue, 20 Sep 2022 17:12:12 +0200 From: Lars Ingebrigtsen To: Drew Adams Subject: Re: bug#51874: 27.2; [PATCH] `use-region-p' reports non-nil during simple `mouse-1' click In-Reply-To: (Drew Adams's message of "Mon, 15 Nov 2021 17:44:45 +0000") References: X-Now-Playing: Lena Willikens's _Cold Wave Volume 2_: "Howlin Lupus" Date: Tue, 20 Sep 2022 17:12:09 +0200 Message-ID: <87y1uecc6u.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Drew Adams writes: > This is the fixed definition of `use-region-p' I came up with. Makes sense to me -- I've now pushed a slightly tweaked version of that to Emacs 29. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51874 Cc: 51874@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Drew Adams writes: > This is the fixed definition of `use-region-p' I came up with. Makes sense to me -- I've now pushed a slightly tweaked version of that to Emacs 29. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 20 11:12:27 2022 Received: (at control) by debbugs.gnu.org; 20 Sep 2022 15:12:27 +0000 Received: from localhost ([127.0.0.1]:59224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oaevD-0007US-1d for submit@debbugs.gnu.org; Tue, 20 Sep 2022 11:12:27 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oaevB-0007U3-6a for control@debbugs.gnu.org; Tue, 20 Sep 2022 11:12:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nb9NbZzfIKv3nWcjngaqboz9LiFci/7iy8fdvu3yCZo=; b=oChWq2kWf094Bqd4LN9ujouM/B AXpL+rppK/t/s5U6jdQ63QrSfmqPOGs6gUxreCLNFMf6tDY1/2+N8rD6B8dRAQlm0ZTvtyvTAwapm j29BxREeUXtI5SHiTAYgX7mv3dVTINTxmqYJ82i9mc/RH27FON6888i39js10GMn/DEk=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaev2-0003Bd-AN for control@debbugs.gnu.org; Tue, 20 Sep 2022 17:12:18 +0200 Date: Tue, 20 Sep 2022 17:12:15 +0200 Message-Id: <87wn9ycc6o.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51874 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 51874 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 51874 29.1 quit From unknown Thu Sep 18 23:15:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 19 Oct 2022 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator