unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs/tree: add notmuch-tree-quit-all
@ 2020-04-23 23:44 William Casarin
  2021-06-05 11:35 ` David Bremner
  0 siblings, 1 reply; 5+ messages in thread
From: William Casarin @ 2020-04-23 23:44 UTC (permalink / raw)
  To: notmuch

This is a simple binding in notmuch-tree-mode that closes both the
message buffer and thread buffer at the same time. This is a common
action after entering a thread from search with M-Enter.

Signed-off-by: William Casarin <jb55@jb55.com>
---
 emacs/notmuch-tree.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index e5c23de2..701d12f8 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -293,6 +293,7 @@ FUNC."
     ;; Override because we want to close message pane first.
     (define-key map [remap notmuch-jump-search] (notmuch-tree-close-message-pane-and #'notmuch-jump-search))
 
+    (define-key map "Q" 'notmuch-tree-quit-all)
     (define-key map "S" 'notmuch-search-from-tree-current-query)
     (define-key map "U" 'notmuch-unthreaded-from-tree-current-query)
     (define-key map "Z" 'notmuch-tree-from-unthreaded-current-query)
@@ -591,6 +592,10 @@ Shows in split pane or whole window according to value of
   (when (or (not (notmuch-tree-close-message-window)) kill-both)
     (kill-buffer (current-buffer))))
 
+(defun notmuch-tree-quit-all ()
+  (interactive)
+  (notmuch-tree-quit t))
+
 (defun notmuch-tree-close-message-window ()
   "Close the message-window. Return t if close succeeds."
   (interactive)
-- 
2.25.1

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

* Re: [PATCH] emacs/tree: add notmuch-tree-quit-all
  2020-04-23 23:44 [PATCH] emacs/tree: add notmuch-tree-quit-all William Casarin
@ 2021-06-05 11:35 ` David Bremner
  2021-06-05 11:39   ` David Bremner
  2021-06-06 17:40   ` William Casarin
  0 siblings, 2 replies; 5+ messages in thread
From: David Bremner @ 2021-06-05 11:35 UTC (permalink / raw)
  To: William Casarin, notmuch

William Casarin <jb55@jb55.com> writes:

> This is a simple binding in notmuch-tree-mode that closes both the
> message buffer and thread buffer at the same time. This is a common
> action after entering a thread from search with M-Enter.
>
> Signed-off-by: William Casarin <jb55@jb55.com>

Apologies for the epic delay. Should this binding also be added to the
message window?

d

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

* Re: [PATCH] emacs/tree: add notmuch-tree-quit-all
  2021-06-05 11:35 ` David Bremner
@ 2021-06-05 11:39   ` David Bremner
  2021-06-05 18:24     ` David Bremner
  2021-06-06 17:40   ` William Casarin
  1 sibling, 1 reply; 5+ messages in thread
From: David Bremner @ 2021-06-05 11:39 UTC (permalink / raw)
  To: William Casarin, notmuch

David Bremner <david@tethera.net> writes:

> William Casarin <jb55@jb55.com> writes:
>
>> This is a simple binding in notmuch-tree-mode that closes both the
>> message buffer and thread buffer at the same time. This is a common
>> action after entering a thread from search with M-Enter.
>>
>> Signed-off-by: William Casarin <jb55@jb55.com>
>
> Apologies for the epic delay. Should this binding also be added to the
> message window?
>

BTW, for new keybindings please update doc/notmuch-emacs.rst

thanks,

d

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

* Re: [PATCH] emacs/tree: add notmuch-tree-quit-all
  2021-06-05 11:39   ` David Bremner
@ 2021-06-05 18:24     ` David Bremner
  0 siblings, 0 replies; 5+ messages in thread
From: David Bremner @ 2021-06-05 18:24 UTC (permalink / raw)
  To: William Casarin, notmuch

David Bremner <david@tethera.net> writes:

> David Bremner <david@tethera.net> writes:
>
>> William Casarin <jb55@jb55.com> writes:
>>
>>> This is a simple binding in notmuch-tree-mode that closes both the
>>> message buffer and thread buffer at the same time. This is a common
>>> action after entering a thread from search with M-Enter.
>>>
>>> Signed-off-by: William Casarin <jb55@jb55.com>
>>
>> Apologies for the epic delay. Should this binding also be added to the
>> message window?
>>
>
> BTW, for new keybindings please update doc/notmuch-emacs.rst
>

Oh! I forget devel/emacs-keybindings.org, which is probably even more
important, since that is what (in theory, unless we forget it) keeps us
from binding collisions.

d

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

* Re: [PATCH] emacs/tree: add notmuch-tree-quit-all
  2021-06-05 11:35 ` David Bremner
  2021-06-05 11:39   ` David Bremner
@ 2021-06-06 17:40   ` William Casarin
  1 sibling, 0 replies; 5+ messages in thread
From: William Casarin @ 2021-06-06 17:40 UTC (permalink / raw)
  To: David Bremner; +Cc: notmuch

On Sat, Jun 05, 2021 at 08:35:41AM -0300, David Bremner wrote:
>William Casarin <jb55@jb55.com> writes:
>
>> This is a simple binding in notmuch-tree-mode that closes both the
>> message buffer and thread buffer at the same time. This is a common
>> action after entering a thread from search with M-Enter.
>>
>> Signed-off-by: William Casarin <jb55@jb55.com>
>
>Apologies for the epic delay. Should this binding also be added to the
>message window?

ah sure, I don't use emacs anymore so I won't have time to update
these patches. sorry about that :( 

feel free to mark these as abandoned unless someone wants to pick it up.

Cheers,
Will

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

end of thread, other threads:[~2021-06-06 17:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23 23:44 [PATCH] emacs/tree: add notmuch-tree-quit-all William Casarin
2021-06-05 11:35 ` David Bremner
2021-06-05 11:39   ` David Bremner
2021-06-05 18:24     ` David Bremner
2021-06-06 17:40   ` William Casarin

unofficial mirror of notmuch@notmuchmail.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/notmuch/0 notmuch/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 notmuch notmuch/ https://yhetil.org/notmuch \
		notmuch@notmuchmail.org
	public-inbox-index notmuch

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.mail.notmuch.general
	nntp://news.gmane.io/gmane.mail.notmuch.general


code repositories for project(s) associated with this inbox:

	notmuch.git.git (no URL configured)

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git