unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jameson Graef Rollins <jrollins@finestructure.net>
To: "Jani Nikula" <jani@nikula.org>, "David Edmondson" <dme@dme.org>,
	"Antoine Beaupré" <anarcat@koumbit.org>,
	notmuch@notmuchmail.org
Subject: Re: [PATCH 1/2] add notmuch keybinding 'd'
Date: Tue, 03 Jan 2012 13:35:23 -0800	[thread overview]
Message-ID: <87hb0c8o6c.fsf@servo.finestructure.net> (raw)
In-Reply-To: <8762gsy2xp.fsf@nikula.org>

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

On Tue, 03 Jan 2012 21:57:22 +0200, Jani Nikula <jani@nikula.org> wrote:
> The code's there, and talk is cheap... but I'd rather like to see a
> solution that would make it easy for users to add arbitrary tagging
> operations to key bindings, instead of a fixed binding for "deleted".

It's already easy for users to add arbitrary key bindings.  It's emacs,
and the whole point of which is that it's infinitely extensible [0]:

(define-key notmuch-show-mode-map "d"
  (lambda ()
    "Delete current message and advance to next message."
    (interactive)
    (notmuch-show-add-tag "delete")
    (notmuch-show-next-open-message-or-pop)))

There really can't be an "easier" solution to add a key binding other
than just adding the above to your .emacs, and I really don't think it
would be worth it to try to make one.

The fact that it's already so easy to customize the key bindings is why
I've been reluctant (or even against) getting into protracted
discussions about what the default key bindings should be.  Everyone is
going to want a different behavior, and since it's easy enough to
customize, just let users define what they want.

> I wouldn't use it either, and I don't use "deleted" tag in the first
> place. And even if I used it, I'd still like to keep the distinction
> between "deleted after reading" and "deleted unread", which this patch
> loses by removing the "unread" tag.

Beyond what I just said about letting everyone customize things
themselves, I agree that I don't personally want other tags added or
removed when I "delete" a message.  The key binding above is actually
the one I use.

jamie.

[0] http://notmuchmail.org/emacstips/#index6h2

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

  reply	other threads:[~2012-01-03 21:35 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-20 20:58 [PATCH] notmuch.el: add functionality to add or remove tags by region Jesse Rosenthal
2010-01-21 11:27 ` Jesse Rosenthal
2010-01-21 15:23 ` Jameson Rollins
2010-01-21 15:35   ` Jesse Rosenthal
2010-01-21 15:56     ` Jameson Rollins
2010-01-21 16:07       ` Jesse Rosenthal
2010-01-21 16:10         ` Jesse Rosenthal
2010-02-17  0:07 ` [PATCH v2] notmuch.el: add functionality in notmuch search mode " Jesse Rosenthal
2010-02-17 12:12   ` [PATCH] notmuch.el: bind 'd' to new function notmuch-search-delete-thread-or-region Sebastian Spaeth
2011-07-15  4:11     ` anarcat
2011-07-19 19:48       ` Matthieu Lemerre
2011-07-16 18:39     ` [PATCH 1/2] add notmuch keybinding 'd' Antoine Beaupré
2012-01-03 14:56       ` David Edmondson
2012-01-03 19:57         ` Jani Nikula
2012-01-03 21:35           ` Jameson Graef Rollins [this message]
2012-01-04  8:27             ` Jani Nikula
2012-01-06 20:10           ` Antoine Beaupré
2012-01-06 20:20             ` Jameson Graef Rollins
2012-01-06 20:51             ` David Bremner
2012-01-17  5:02               ` Antoine Beaupré
2012-01-06 21:33             ` Jani Nikula
2012-01-06 21:40             ` Tomi Ollila
2012-01-04  8:52         ` David Edmondson
2012-01-17  5:03           ` Antoine Beaupré
2010-04-07 21:10   ` [PATCH v2] notmuch.el: add functionality in notmuch search mode to add or remove tags by region Carl Worth
2010-04-09 14:11     ` Jesse Rosenthal
2010-04-13 17:55       ` Carl Worth
2010-04-13 18:00         ` Jesse Rosenthal
2010-04-13 18:47         ` [PATCH] Fix bug, and clean up code duplication, in adding or removing tag " Jesse Rosenthal
2010-04-14 17:14           ` Carl Worth
2010-04-14 17:50             ` Jesse Rosenthal
2010-04-14 19:23               ` Mark Anderson

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=87hb0c8o6c.fsf@servo.finestructure.net \
    --to=jrollins@finestructure.net \
    --cc=anarcat@koumbit.org \
    --cc=dme@dme.org \
    --cc=jani@nikula.org \
    --cc=notmuch@notmuchmail.org \
    /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).