From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65449: 30.0.50; [PATCH] strokes: Support running other function when no stroke matches Date: Tue, 22 Aug 2023 14:17:28 +0300 Message-ID: <83jztntjg7.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37577"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65449@debbugs.gnu.org To: Liu Hui Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 22 13:18:11 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 1qYPOk-0009XP-Hf for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Aug 2023 13:18:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYPOc-0005V4-4M; Tue, 22 Aug 2023 07:18:02 -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 1qYPOa-0005Ut-8F for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 07:18:00 -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 1qYPOZ-0007do-Vr for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 07:18:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYPOc-0001Bh-Cb for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 07:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Aug 2023 11:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 65449-submit@debbugs.gnu.org id=B65449.16927030374510 (code B ref 65449); Tue, 22 Aug 2023 11:18:02 +0000 Original-Received: (at 65449) by debbugs.gnu.org; 22 Aug 2023 11:17:17 +0000 Original-Received: from localhost ([127.0.0.1]:58640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYPNt-0001Af-B8 for submit@debbugs.gnu.org; Tue, 22 Aug 2023 07:17:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYPNr-0001AS-Pd for 65449@debbugs.gnu.org; Tue, 22 Aug 2023 07:17:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYPNj-0007SB-Hl; Tue, 22 Aug 2023 07:17:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wTY5QyZt7KxLONyICjXHYMiAfLla0wgSbYjo04xm1rw=; b=Nkv+P7oLE/VM vTQo2mvsxWm7v0Bu5xPy0sLayJfDLFfAut0ilSdQgbm258iR5F/8RsoZZbnm5q7em9r7KUY59gDII DTDTX3o3qzz4QVe/Q6zVbw6GDIqw/ScIejY3vcXfpydEG8ezwcp9+AfLHYek7Igv0hKSzO/mUw3bS EgIMsmVeVZ9eUVrF1vts3DhgbE30ehwlwA5/k+vG60BNb2n1/3WDysTHOa64JrzOd5skWbKz+bmej GpNA9nF8PWuL7hZfHR8zPmvM9HWYBant71ppJeK1+kwTQpFJ/yWMeq/t1VRaiE4LUMQ4+CfvVxiTs aEn2a/i9D176sNafFDjpjA==; In-Reply-To: (message from Liu Hui on Tue, 22 Aug 2023 14:25:24 +0800) 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:268161 Archived-At: > From: Liu Hui > Date: Tue, 22 Aug 2023 14:25:24 +0800 > > This patch allows users to call another function when no stroke > matches, instead of signaling an error. I bind down-mouse-3 to > strokes-do-stroke, and would like to pop up the context menu when no > stroke matches. In addition, two arguments stroke and match can be > passed to the function for other uses (e.g. making the error message > more informative). Thanks. This is a useful extension, IMO, but please extend the doc string of strokes-no-match-function to explain how it will be called and what is expected from it, including the expected return value(s) and their meaning.