unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Davide Masserut via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 58986@debbugs.gnu.org
Subject: bug#58986: [PATCH] Bind "DEL" in dictionary-mode
Date: Thu, 03 Nov 2022 15:31:38 +0100	[thread overview]
Message-ID: <87wn8cjeh0.fsf@mssdvd.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 762 bytes --]

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'

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Bind-DEL-in-dictionary-mode.patch --]
[-- Type: text/patch, Size: 800 bytes --]

From c14a5e295d72d7a88d0454d17a6c96a6738b680e Mon Sep 17 00:00:00 2001
From: Davide Masserut <dm@mssdvd.com>
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


             reply	other threads:[~2022-11-03 14:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-03 14:31 Davide Masserut via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-11-06  8:14 ` bug#58986: [PATCH] Bind "DEL" in dictionary-mode Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wn8cjeh0.fsf@mssdvd.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=58986@debbugs.gnu.org \
    --cc=dm@mssdvd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).