From: Jameson Rollins <jrollins@finestructure.net>
To: Carl Worth <cworth@cworth.org>,
racin@free.fr, Sebastian Spaeth <Sebastian@SSpaeth.de>
Cc: notmuch <notmuch@notmuchmail.org>
Subject: Re: [PATCH] add notmuch-show-delete keybinding 'd'
Date: Wed, 24 Feb 2010 14:01:18 -0500 [thread overview]
Message-ID: <87tyt61mrl.fsf@servo.finestructure.net> (raw)
In-Reply-To: <87sk8qwjlt.fsf@yoom.home.cworth.org>
[-- Attachment #1: Type: text/plain, Size: 1680 bytes --]
On Wed, 24 Feb 2010 10:53:50 -0800, Carl Worth <cworth@cworth.org> wrote:
> But this patch does have two good ideas not in the other patch, (both of
> which I mentioned in the review):
>
> 1. It adds a keybinding to the notmuch-show mode
>
> 2. It removes the "inbox" and "unread" tags while adding the tag to
> indicate deletion.
Hey, Carl. Why is this last point important? I've been using my own
patchs for handling deleted messages, and all deleting a message or
thread does is add the "delete" tag. Why should it modify any other
tags? A message/thread should be allowed to be both deleted and in the
inbox.
As for "unread", I think that should be handled by actually reading the
message, not by manually applying a state to it.
FWIW, below are the functions I've added to my notmuch .el to handle
message/thread deleting.
jamie.
(defun notmuch-search-delete-thread ()
"Delete thread (add \"delete\" tag).
This function advances the next thread when finished."
(interactive)
(notmuch-search-add-tag "delete")
(forward-line))
(define-key notmuch-search-mode-map "d" 'notmuch-search-delete-thread)
(defun notmuch-show-delete-message ()
"Delete message (add \"delete\" tag).
Add the \"delete\" tag to message. Then kill this buffer and
show the next thread from the search from which this thread was
originally shown."
(interactive)
(notmuch-show-add-tag "delete")
(let ((parent-buffer notmuch-show-parent-buffer))
(kill-this-buffer)
(if parent-buffer
(progn
(switch-to-buffer parent-buffer)
(forward-line)))))
(define-key notmuch-show-mode-map "d" 'notmuch-show-delete-message)
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next prev parent reply other threads:[~2010-02-24 19:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-20 10:32 [PATCH] add notmuch-show-delete keybinding 'd' Sebastian Spaeth
2010-01-20 10:56 ` racin
2010-02-24 18:53 ` Carl Worth
2010-02-24 19:01 ` Jameson Rollins [this message]
2010-02-24 19:28 ` Carl Worth
2010-02-24 19:46 ` Jameson Rollins
2010-02-25 10:53 ` Sebastian Spaeth
2010-02-25 14:21 ` James Vasile
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://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tyt61mrl.fsf@servo.finestructure.net \
--to=jrollins@finestructure.net \
--cc=Sebastian@SSpaeth.de \
--cc=cworth@cworth.org \
--cc=notmuch@notmuchmail.org \
--cc=racin@free.fr \
/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://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).