From: "Rüdiger Sonderfeld" <ruediger@c-plusplus.de>
To: emacs-devel@gnu.org
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>,
Ted Zlatanov <tzz@lifelogs.com>
Subject: [PATCH 2/5] eww: Add menu for `eww-bookmark-mode'.
Date: Fri, 20 Dec 2013 00:44:34 +0100 [thread overview]
Message-ID: <2374402.LvHh1uQteE@descartes> (raw)
In-Reply-To: <cover.1387496431.git.ruediger@c-plusplus.de>
* lisp/net/eww.el (eww-bookmark-mode-map): Add menu.
---
lisp/ChangeLog | 1 +
lisp/net/eww.el | 11 +++++++++++
2 files changed, 12 insertions(+)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index db57dbc..cf8553d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -5,6 +5,7 @@
(eww-bookmark-prepare, eww-bookmark-kill, eww-bookmark-yank)
(eww-bookmark-browse, eww-next-bookmark, eww-previous-bookmark):
Use `user-error'.
+ (eww-bookmark-mode-map): Add menu.
2013-12-19 Teodor Zlatanov <tzz@lifelogs.com>
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index feec873..1da2bb2 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1224,6 +1224,17 @@ (defvar eww-bookmark-mode-map
(define-key map [(control k)] 'eww-bookmark-kill)
(define-key map [(control y)] 'eww-bookmark-yank)
(define-key map "\r" 'eww-bookmark-browse)
+
+ (easy-menu-define nil map
+ "Menu for `eww-bookmark-mode-map'."
+ '("Eww Bookmark"
+ ["Exit" eww-bookmark-quit t]
+ ["Browse" eww-bookmark-browse
+ :active (get-text-property (line-beginning-position) 'eww-bookmark)]
+ ["Kill" eww-bookmark-kill
+ :active (get-text-property (line-beginning-position) 'eww-bookmark)]
+ ["Yank" eww-bookmark-yank
+ :active eww-bookmark-kill-ring]))
map))
(define-derived-mode eww-bookmark-mode nil "eww bookmarks"
--
1.8.5
next prev parent reply other threads:[~2013-12-19 23:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1387496431.git.ruediger@c-plusplus.de>
2013-12-19 23:44 ` [PATCH 1/5] eww: Use `user-error' Rüdiger Sonderfeld
2013-12-19 23:44 ` Rüdiger Sonderfeld [this message]
2013-12-19 23:44 ` [PATCH 3/5] eww: Use `setq-local' Rüdiger Sonderfeld
2013-12-19 23:44 ` [PATCH 4/5] eww: Add tool bar support Rüdiger Sonderfeld
2013-12-19 23:44 ` [PATCH 5/5] eww: Check for `html-mode' using `fboundp' Rüdiger Sonderfeld
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=2374402.LvHh1uQteE@descartes \
--to=ruediger@c-plusplus.de \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
--cc=tzz@lifelogs.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).