From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Davide Masserut via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58986: [PATCH] Bind "DEL" in dictionary-mode Date: Thu, 03 Nov 2022 15:31:38 +0100 Message-ID: <87wn8cjeh0.fsf@mssdvd.com> Reply-To: Davide Masserut 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="9382"; mail-complaints-to="usenet@ciao.gmane.io" To: 58986@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 03 15:33:45 2022 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 1oqbHt-0002Gq-5D for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Nov 2022 15:33:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqbHF-0007CN-FL; Thu, 03 Nov 2022 10:33:05 -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 1oqbHD-0007Bx-FG for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 10:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqbHD-0001BS-7B for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 10:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqbHC-00084c-Lt for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 10:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Davide Masserut Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Nov 2022 14:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58986 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.166748596430998 (code B ref -1); Thu, 03 Nov 2022 14:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Nov 2022 14:32:44 +0000 Original-Received: from localhost ([127.0.0.1]:49868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqbGu-00083u-18 for submit@debbugs.gnu.org; Thu, 03 Nov 2022 10:32:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqbGq-00083l-Q8 for submit@debbugs.gnu.org; Thu, 03 Nov 2022 10:32:42 -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 1oqbGq-00073y-KU for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 10:32:40 -0400 Original-Received: from out0.migadu.com ([2001:41d0:2:267::]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqbGn-00019p-Gd for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 10:32:40 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mssdvd.com; s=key1; t=1667485952; 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=POITZFevVAfwSpPHvo71WcejeROpPbn7ZSmtmh7Atlw=; b=X+H214deppihu1piK2PAS2Vy5BZV3Tvao8UOCS9wD8rEGRweu9eKj85t7jY8ZRndVHAX35 6DdVhhzv37Mdy2S07iElw/C8RfL0xEAwNxBF4CGDazFGgPCOVTWkBkXOPBzJpPNkkXdt+q WXuh55rYWSQkWK4QXBoYC1upBX4h2R5WpbZOAPbNYgepu4Lso9X6gOdUHyFPchGukQdAxL kL+e/Z2KoTurxxc+OWDHfLtR1HHdKuE1tCbL5TwkNrxCHfOvN7odXG2FLyCel9LuCJmoI5 Y7o3FOi9BQJvckDMbE5iEzCUHm7XKylL0LyIEFGpuLunzET/qzYS3PW8axoP3Q== X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:2:267::; envelope-from=dm@mssdvd.com; helo=out0.migadu.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246968 Archived-At: --=-=-= Content-Type: text/plain; format=flowed Tags: patch This patch binds "DEL" to scroll-down-command in dictionary-mode In GNU Emacs 29.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-11-02 built on T480s Repository revision: 62d40f27b2467a5eeaefec37fea305bda54f6524 Repository branch: master System Description: Arch Linux Configured using: 'configure --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib --localstatedir=/var --with-pgtk --with-native-compilation 'CFLAGS=-march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/home/davide/src/emacs-mssdvd-git/src=/usr/src/debug' LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Bind-DEL-in-dictionary-mode.patch >From c14a5e295d72d7a88d0454d17a6c96a6738b680e Mon Sep 17 00:00:00 2001 From: Davide Masserut Date: Thu, 3 Nov 2022 15:16:21 +0100 Subject: [PATCH] Bind "DEL" in dictionary-mode * lisp/net/dictionary.el (dictionary-mode-map): Bind it to scroll-down-command. --- lisp/net/dictionary.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/net/dictionary.el b/lisp/net/dictionary.el index b8f5018005..572eecab5a 100644 --- a/lisp/net/dictionary.el +++ b/lisp/net/dictionary.el @@ -341,7 +341,8 @@ dictionary-mode-map "p" #'backward-button "SPC" #'scroll-up-command "S-SPC" #'scroll-down-command - "M-SPC" #'scroll-down-command) + "M-SPC" #'scroll-down-command + "DEL" #'scroll-down-command) (defvar dictionary-connection nil -- 2.38.1 --=-=-=--