unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tim Bielawa <tbielawa@redhat.com>
To: notmuch@notmuchmail.org
Subject: Re: [PATCH 1/1] Add a function....
Date: Wed, 07 Mar 2012 18:09:40 -0500	[thread overview]
Message-ID: <87y5rct3d7.fsf@dehydrator.spatula.rdu.redhat.com> (raw)
In-Reply-To: <1331159950-21565-1-git-send-email-tbielawa@redhat.com>

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

Sorry about the subject spam in that first message

Backstory: When I switched to a newer 0.12 build the function I was
using at the time stopped letting me tag messages while in search
mode. notmuch-search-remove-tag had been changed to take 0
arguments. Old function:

> (defun notmuch-search-delete ()
>   "Remove 'unread' tag"
>   (interactive)
>   (notmuch-search-remove-tag "unread")
>   (forward-line))
>
> (define-key notmuch-search-mode-map "u" 'notmuch-search-delete)
 
I don't typically go into threads to mark them unread. But that
kind of functionality is all I could find on the updated emacstips, lots
of "notmuch-show-*" functions. [0]

This patch tries to remedy that by introducing a function,
notmuch-search-tag-and-advance which allows you to apply a number of
tags at once to the current thread under the point --
non-interactively. It follows the form of the
notmuch-search-archive-thread function.

This github gist [1] is a .el file that I load with notmuch. It includes
the new defun in full and demonstrates how to use it in a custom
function mapped to a key.

If this patch is accepted I would be happy to hash-out something to add
to the emacs tips docs.


[0] http://notmuchmail.org/emacstips/#index6h2
[1] https://gist.github.com/1996899

-- 
Tim Bielawa, Software Engineer/Scribe
Production Control Team (RDU)
919.332.6411 Cell | IRC: tbielawa
1BA0 4FAB 4C13 FBA0 A036  4958 AD05 E75E 0333 AE37

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

      parent reply	other threads:[~2012-03-07 23:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-07 22:39 [PATCH 1/1] Add a function for applying an arbitrary number of tags to the highlighted message thread while in notmuch-search-mode. Intended to restore the original functionality of notmuch-search-remove-tag and notmuch-search-add-tag prior to 2beaefa2 Tim Bielawa
2012-03-07 22:49 ` [PATCH] Function to apply many tags in notmuch-search-mode Tim Bielawa
2012-03-07 23:09 ` Tim Bielawa [this message]

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=87y5rct3d7.fsf@dehydrator.spatula.rdu.redhat.com \
    --to=tbielawa@redhat.com \
    --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).