unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37648: [PATCH] Add "next" and "previous" shortcuts in eww-history buffers
@ 2019-10-07 19:33 Raimon Grau
  2019-10-13  2:27 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Raimon Grau @ 2019-10-07 19:33 UTC (permalink / raw)
  To: 37648

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

Hello,

I found that eww-history-mode buffers (you get there via 
eww-list-histories or 'H' in an *eww* buffer) has plain 'n' and 
'p' shortcuts commented out since some refactor it had and haven't 
been added.

Here's a patch to enable them.

Cheers,

Raimon Grau,


[-- Attachment #2: 0001-Add-next-and-previous-shortcuts-in-eww-history-buffe.patch --]
[-- Type: text/plain, Size: 947 bytes --]

From 23136c029ec9bbb0c5ccb78dfba275d41d94d225 Mon Sep 17 00:00:00 2001
From: Raimon Grau <raimonster@gmail.com>
Date: Mon, 7 Oct 2019 13:42:24 +0100
Subject: [PATCH] Add "next" and "previous" shortcuts in eww-history buffers

* lisp/net/eww.el (eww-history-mode-map): add "n" and "p" for
  "next-line" and "previous-line".
---
 lisp/net/eww.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index fb495a9..d9539f7 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1901,8 +1901,8 @@ eww-history-browse
 (defvar eww-history-mode-map
   (let ((map (make-sparse-keymap)))
     (define-key map "\r" 'eww-history-browse)
-;;    (define-key map "n" 'next-error-no-select)
-;;    (define-key map "p" 'previous-error-no-select)
+    (define-key map "n" 'next-line)
+    (define-key map "p" 'previous-line)
 
     (easy-menu-define nil map
       "Menu for `eww-history-mode-map'."
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#37648: [PATCH] Add "next" and "previous" shortcuts in eww-history buffers
  2019-10-07 19:33 bug#37648: [PATCH] Add "next" and "previous" shortcuts in eww-history buffers Raimon Grau
@ 2019-10-13  2:27 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-13  2:27 UTC (permalink / raw)
  To: Raimon Grau; +Cc: 37648

Raimon Grau <raimon@konghq.com> writes:

> I found that eww-history-mode buffers (you get there via
> eww-list-histories or 'H' in an *eww* buffer) has plain 'n' and 
> 'p' shortcuts commented out since some refactor it had and haven't
> been added.
>
> Here's a patch to enable them.

Thanks; applied to the trunk.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-13  2:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 19:33 bug#37648: [PATCH] Add "next" and "previous" shortcuts in eww-history buffers Raimon Grau
2019-10-13  2:27 ` Lars Ingebrigtsen

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).