From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Antero Mejr via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64750: 30.0.50; [PATCH] Clicking at screen edge in X11 echoes " is undefined" Date: Thu, 20 Jul 2023 18:12:31 +0000 Message-ID: <87pm4mlaeo.fsf@mailbox.org> Reply-To: Antero Mejr Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7182"; mail-complaints-to="usenet@ciao.gmane.io" To: 64750@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 20 20:13:22 2023 Return-path: Envelope-to: geb-bug-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 1qMY9P-0001cE-Kc for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jul 2023 20:13:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMY9A-0003Gy-OD; Thu, 20 Jul 2023 14:13:04 -0400 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 1qMY98-0003Gq-OI for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 14:13:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qMY98-0002mi-GV for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 14:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMY98-0001cL-0p for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 14:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Jul 2023 18:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64750 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16898767786201 (code B ref -1); Thu, 20 Jul 2023 18:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jul 2023 18:12:58 +0000 Original-Received: from localhost ([127.0.0.1]:59826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMY94-0001bx-9b for submit@debbugs.gnu.org; Thu, 20 Jul 2023 14:12:58 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:47056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMY91-0001be-IZ for submit@debbugs.gnu.org; Thu, 20 Jul 2023 14:12:57 -0400 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 1qMY8w-0003GI-5u for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 14:12:50 -0400 Original-Received: from mout-p-101.mailbox.org ([80.241.56.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qMY8t-0002jF-K6 for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 14:12:49 -0400 Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4R6LPt406hz9sTD for ; Thu, 20 Jul 2023 20:12:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1689876754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ngD0O9z8lQyqR+1rcXnt+SAxZr0MREOJDj34UUy6VQI=; b=ZRa29KVUaVk4M4dIXpG+Ukxy68bVFaJU0cCAMpPTlvMzYD+NEHkbsr1/Jf9yp35cVv7FRZ BUF4EX0/Ma/0TtWy4fzajW8jD4+Wk/82AYLh7RzuHhT1PWMkupwWuO6qCwLUfafACWcg8a mE2xulCCC5fWra8MqYRiZ7KDHcMsJYipWusB8/rlRRkrFBjPCeW7nJH0JJtixe+urcT1jC S9veMdzPf1U+b7WPjv2cFagYZbG/OkNIrLndB20Z08nBxo6cdQDTFfBmEpbK5QgpuWcovr H7elEHsFXtSdjfaKwRf+7Yu15HfInGvZQobudrlT89fCTYsNDer3fUtCpONTKg== X-MBO-RS-ID: 33e38c11a56a634893a X-MBO-RS-META: 76qx5wsaut7f7z9kej8ifg9644cwwyrk Received-SPF: pass client-ip=80.241.56.151; envelope-from=antero@mailbox.org; helo=mout-p-101.mailbox.org 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, 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:265626 Archived-At: --=-=-= Content-Type: text/plain When clicking along the left edge of screen in a maximized emacs X11 window, the message " is undefined" or " is undefined" will appear. This can also be done with the right fringe, and with the top edge of the screen if the menu and tool bars are disabled. It can also be done using mouse events besides , like , , or . This occurs with emacs -Q, regardless of fringe mode or internal border settings. It is easier to reproduce with larger internal borders (-ib 10 or so) or larger fringes, because that expands the size of the nil or fringe area. When internal border and fringes are disabled, there is still a 1-pixel wide area with this problem. This bug makes using programs with clickable UI elements at the edge of the frame annoying. The cursor tends to land in the nil or fringe areas, then the distracting/irrelevant message appears in the echo area when you attempt to click. The attached patch globally ignores all inputs for those areas in fringe.el. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Ignore-input-in-the-fringe-and-nil-areas.patch >From bcf7e7a528620f830c54ec2ad9457acf1259416b Mon Sep 17 00:00:00 2001 From: Antero Mejr Date: Thu, 20 Jul 2023 17:30:07 +0000 Subject: [PATCH] Ignore input in the fringe and nil areas * lisp/fringe.el: Add global key bindings to ignore clicks in the left-fringe, right-fringe, and nil areas. --- lisp/fringe.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/fringe.el b/lisp/fringe.el index b5ab4f9f605..f5a85365a89 100644 --- a/lisp/fringe.el +++ b/lisp/fringe.el @@ -336,6 +336,10 @@ options to pick a fringe bitmap." (put symbol 'fringe (get value 'fringe)) (force-window-update))) +(global-set-key [left-fringe] #'ignore) +(global-set-key [right-fringe] #'ignore) +(global-set-key [nil] #'ignore) + (provide 'fringe) ;;; fringe.el ends here -- 2.41.0 --=-=-=--