unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: bind M-RET to notmuch-tree-from-search-thread
@ 2019-11-13 22:57 William Casarin
  2019-11-14  5:37 ` Teemu Likonen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: William Casarin @ 2019-11-13 22:57 UTC (permalink / raw)
  To: notmuch

This is an unbound function that is quite useful. It opens a selected
thread in notmuch-tree from the current search query.

Signed-off-by: William Casarin <jb55@jb55.com>

---

This is a simpler alternative to id:20191113080004.32214-1-jb55@jb55.com

 emacs/notmuch.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 773d1206..0d68d123 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -188,6 +188,7 @@ there will be called at other points of notmuch execution."
     (define-key map "-" 'notmuch-search-remove-tag)
     (define-key map "+" 'notmuch-search-add-tag)
     (define-key map (kbd "RET") 'notmuch-search-show-thread)
+    (define-key map (kbd "M-RET") 'notmuch-tree-from-search-thread)
     (define-key map "Z" 'notmuch-tree-from-search-current-query)
     map)
   "Keymap for \"notmuch search\" buffers.")

base-commit: 7ad7cfbff232431377562271901ee00202bf0bd0
-- 
2.23.0

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

* Re: [PATCH] emacs: bind M-RET to notmuch-tree-from-search-thread
  2019-11-13 22:57 [PATCH] emacs: bind M-RET to notmuch-tree-from-search-thread William Casarin
@ 2019-11-14  5:37 ` Teemu Likonen
  2019-11-21  2:51 ` Daniel Kahn Gillmor
  2019-12-03 11:47 ` David Bremner
  2 siblings, 0 replies; 4+ messages in thread
From: Teemu Likonen @ 2019-11-14  5:37 UTC (permalink / raw)
  To: William Casarin, notmuch

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

William Casarin [2019-11-13T14:57:52-08] wrote:

> This is an unbound function that is quite useful. It opens a selected
> thread in notmuch-tree from the current search query.
>
> Signed-off-by: William Casarin <jb55@jb55.com>

Liked-and-Already-Used-by: Teemu Likonen <tlikonen@iki.fi>

-- 
///  OpenPGP key: 4E1055DC84E9DFF613D78557719D69D324539450
//  https://keys.openpgp.org/search?q=tlikonen@iki.fi
/  https://keybase.io/tlikonen  https://github.com/tlikonen

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 694 bytes --]

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

* Re: [PATCH] emacs: bind M-RET to notmuch-tree-from-search-thread
  2019-11-13 22:57 [PATCH] emacs: bind M-RET to notmuch-tree-from-search-thread William Casarin
  2019-11-14  5:37 ` Teemu Likonen
@ 2019-11-21  2:51 ` Daniel Kahn Gillmor
  2019-12-03 11:47 ` David Bremner
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel Kahn Gillmor @ 2019-11-21  2:51 UTC (permalink / raw)
  To: William Casarin, notmuch

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

On Wed 2019-11-13 14:57:52 -0800, William Casarin wrote:
> This is an unbound function that is quite useful. It opens a selected
> thread in notmuch-tree from the current search query.
>
> Signed-off-by: William Casarin <jb55@jb55.com>
>
> ---
>
> This is a simpler alternative to id:20191113080004.32214-1-jb55@jb55.com
>
>  emacs/notmuch.el | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/emacs/notmuch.el b/emacs/notmuch.el
> index 773d1206..0d68d123 100644
> --- a/emacs/notmuch.el
> +++ b/emacs/notmuch.el
> @@ -188,6 +188,7 @@ there will be called at other points of notmuch execution."
>      (define-key map "-" 'notmuch-search-remove-tag)
>      (define-key map "+" 'notmuch-search-add-tag)
>      (define-key map (kbd "RET") 'notmuch-search-show-thread)
> +    (define-key map (kbd "M-RET") 'notmuch-tree-from-search-thread)
>      (define-key map "Z" 'notmuch-tree-from-search-current-query)
>      map)
>    "Keymap for \"notmuch search\" buffers.")
>

LGTM.

Thanks for suggesting this.

       --dkg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

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

* Re: [PATCH] emacs: bind M-RET to notmuch-tree-from-search-thread
  2019-11-13 22:57 [PATCH] emacs: bind M-RET to notmuch-tree-from-search-thread William Casarin
  2019-11-14  5:37 ` Teemu Likonen
  2019-11-21  2:51 ` Daniel Kahn Gillmor
@ 2019-12-03 11:47 ` David Bremner
  2 siblings, 0 replies; 4+ messages in thread
From: David Bremner @ 2019-12-03 11:47 UTC (permalink / raw)
  To: William Casarin, notmuch

William Casarin <jb55@jb55.com> writes:

> This is an unbound function that is quite useful. It opens a selected
> thread in notmuch-tree from the current search query.
>
> Signed-off-by: William Casarin <jb55@jb55.com>

merged to master.

d

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

end of thread, other threads:[~2019-12-03 11:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-13 22:57 [PATCH] emacs: bind M-RET to notmuch-tree-from-search-thread William Casarin
2019-11-14  5:37 ` Teemu Likonen
2019-11-21  2:51 ` Daniel Kahn Gillmor
2019-12-03 11:47 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.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).