From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Radetsky Newsgroups: gmane.emacs.devel Subject: Re: Disabling mouse input Date: Sun, 3 Nov 2024 00:54:54 -0700 Message-ID: References: <4p6cs2adzzqihjdustvlklr3ykrrz7eq7rtz2ciywcyevgmoej@klyfgnsjtnti> <86h68py3zy.fsf@gnu.org> <86fro9y3ki.fsf@gnu.org> <86bjyxy1nh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27394"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , luangruo@yahoo.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 03 08:55:22 2024 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 1t7VSE-0006z8-8R for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Nov 2024 08:55:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7VRs-000557-BC; Sun, 03 Nov 2024 02:55:00 -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 1t7VRq-00054i-AB for emacs-devel@gnu.org; Sun, 03 Nov 2024 02:54:58 -0500 Original-Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t7VRo-0007Xr-Nr; Sun, 03 Nov 2024 02:54:58 -0500 Original-Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-720d14c8dbfso1908771b3a.0; Sun, 03 Nov 2024 00:54:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730620494; x=1731225294; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=E2eq/RIvcD4u9pFBc/xGtcAp4xqviCgD+/jH9QUrP8w=; b=S7EzdgBeoiJYNeWGOsWhGRH9SP04N+5XpwKO5B21T6Hl7GDuFA1+U1lHqu8RvO85ym TAFNEKFo7eeGpqW6uX77cHIf4V66TB9HlW0CVQRPYfVv5qYpjGBDMe981QMI2F5iqNDR Ey5ObP/YAKtqJGWag40W6AmzTvyx7D+pW4JQT1QBT9cEKTggDlHS5TadA0cqcjynC+CJ VqriYs2iCLmsOHEm06cblXNoI71kp+ekG+tSjrXb0PfpE5O1rkfDl3Sc7/8l6P9tZ68W PRWeHoFiCicYuzPmbOnW2HkcB8gqUGFgIuPYdooJezxmtBvFE06gFFkC5b2Jqn08sXC6 jE0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730620494; x=1731225294; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=E2eq/RIvcD4u9pFBc/xGtcAp4xqviCgD+/jH9QUrP8w=; b=IuHHmfmu8dDIcGNew7eYKxnKbcaK8F0Y1W8QenNAS33qwPLSKpJUNa3xw3y5IscxZL R2JygUYkuikPOYcw2S70nfOUyrAyt6tJ6H2wx3J24L0jMsYJkrHUn7EZrK9yPKlXOsUd bydR42XuuSFk3P77BS/X98/URe0jThjD7nUDqAImNtWQmN8FNyACo5Xw0PYi9owqaEYY 8LEKat/qJepgxNU192g/QB5FRo/pacjUc/QPAXKzZIu0iT0UZk3J/EGGbyeQpy+mjtFN a3ICuZ4z287C562qYAm34xs8B74aBCVf5hgmyqTPpSfneT7FwCKF8GYCgWxA49nFbIFv 7mhw== X-Forwarded-Encrypted: i=1; AJvYcCWFlhRt8TzHZQUG6I5ih7yA4Tv4gbPmHH8UL0ukyEZkTWch6IbPMR5KCGWKti9NsuZa7BqoBeznaoNU2A==@gnu.org X-Gm-Message-State: AOJu0YwBjS7EpIPv8tr2Tufvr1VS6v77WlBUZBD84aMX7lcT1vGyaxXI NfpH7YsiDPrdVXyKSCK8N5MSLsMJsOHJzKctUxOk84NqCDVIxrfA X-Google-Smtp-Source: AGHT+IHxHdeTnVfBHQK8UtMNj8MqpULN6fovTw78YMPryge4gLfP5Q9wVtoF6uwrpOvcsdexhGE/fg== X-Received: by 2002:a05:6a00:92a1:b0:71e:4414:eb21 with SMTP id d2e1a72fcca58-720b9db35a3mr17711788b3a.17.1730620494370; Sun, 03 Nov 2024 00:54:54 -0700 (PDT) Original-Received: from flap ([2601:645:8a81:69c0:4ccd:a261:5c9e:5447]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-720bc2eb683sm5430452b3a.175.2024.11.03.00.54.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Nov 2024 00:54:53 -0700 (PDT) Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=dradetsky@gmail.com; helo=mail-pf1-x431.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, 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.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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325050 Archived-At: On Sat, Nov 02, 2024 at 09:56:31PM GMT, Stefan Monnier wrote: > For that reason, I'm in favor of adding generic support but not > ad-hoc support. Very sensible. FWIW, I provided low-genericity solution at first just because I didn't want to invest a bunch of work before I talked it over with y'all. I figured once (or if) we established that the basic premise was sound (e.g. that I had hooked the event check in at the right place) we could talk about making it more complicated (like exposing the to-filter event list to the user). As we seem to have established the opposite, I'm glad I didn't. > > I agree with your concern and your suggestion looks intriguing so I'm > > going to test it. > > I'm curious to know how it works for your use case. If you encounter > problems, do report them so we can see if maybe there's a way to provide > solutions for them. I created https://github.com/dradetsky/ignore-mouse. It works in the sense of doing what I wanted. However, per Eli's suggestion, the downsides of the approach are likely to be subtle, and when they are problematic, difficult to trace back to this package. But we'll see how it goes. If my emacs explodes and kills the neighbor's dog, I won't mention your name. --dmr