aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch.el
Commit message (Collapse)AuthorAge
...
* Clean up code duplication in adding or removing tag by region.Gravatar Jesse Rosenthal2010-04-14
| | | | | | Clean up code duplication, as per Carl's suggestion, by making notmuch-search-{add/remove}-tag-thread a special case of the -region commands, where the region in question is between (point) and (point).
* Fix bug in adding or removing tag by region.Gravatar Jesse Rosenthal2010-04-14
| | | | | | | | | | | | | | There was a bug in notmuch-search-{add,remove}-tag-region, which would not behave correctly if the region went beyond the last message. Now, instead of simply iterating to the last line of the region, these functions will iterate to the minimum of the last line of the region and the last possible line, i.e. (- (line-number-at-pos (point-max)) 2) Tested-by: Carl Worth <cworth@cworth.org> Note that the old, buggy behavior included infinite loops of emacs lisp code, so the new behavior is significantly better than that.
* emacs: Correct the documentation for notmuch-search-add-tag (and -remove-tag)Gravatar Carl Worth2010-04-07
| | | | | | These commands act on all messages in the thread, not simply those that match the search. (There are use case for both behaviors, but the documentation must match the behavior that's actually implemented).
* notmuch.el: add functionality in notmuch search mode to add or remove tags ↵Gravatar Jesse Rosenthal2010-04-07
| | | | | | | | | | | | | | | | | | | | | by region This patch adds `-region' versions of the `notmuch-search-' commands to find properties. It also splits up `notmuch-add/remove-tags' into both a `-thread' and a `-region' version. (This makes us modify `notmuch-search-archive-thread' to use the `notmuch-search-remove-tag-thread' function, instead of `notmuch-search-remove-tag', for consistency.) The add/remove-tag command called by pressing `+' or `-' will then choose accordingly, based on whether region is active. This version fixes a couple of errors in the first version, which led to incorrect marking of some tags in the search view (though the actual tagging was still correct). It's also based on current master. I'm not sure any more if region selection is actually the correct way to do this, or if a mutt-style message-marking method would be better. But I didn't want a buggy incorrect version out there.
* notmuch.el: colorize lines in notmuch-search based on thread tags.Gravatar Jameson Rollins2010-04-07
| | | | | | | | | | | | | | | Arbitrary font faces can be specified for given thread tags. By default, no coloring is applied. To specify coloring, place something like this in your .emacs: (setq notmuch-search-line-faces '(("delete" . '(:foreground "red")) ("unread" . '(:foreground "green")))) Order matters: line faces listed first will take precedence (in the example above, a thread tagged both "delete" and "unread" will be colored red, since the "delete" face is listed before the "unread"). notmuch.el | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 deletions(-)
* notmuch.el: Make notmuch-show buffer name first subject, instead of ↵Gravatar Jesse Rosenthal2010-04-07
| | | | | | | | | | | | | | | thread-id (supersedes V1--3) Change the buffer name to a uniquified subject of the thread (i.e. the subject of the first message in the thread) instead of the thread-id. This is more meaningful to the user, and will make it easier to scroll through numerous open buffers. Note that this patch adds an optional `buffer-name' argument to notmuch show. Signed-off-by: Jesse Rosenthal <jrosenthal@jhu.edu> Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* notmuch.el: 'F' in search mode takes us to a list of folders.Gravatar David Edmondson2010-04-07
|
* notmuch.el: fontify date in headerGravatar Jameson Rollins2010-04-07
| | | | | | | The date was unfairly left out of getting pretty colors in the notmuch-show header display. This fixes that grave injustice. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* emacs: Move notmuch-show functionality to notmuch-show.elGravatar David Edmondson2010-04-05
| | | | | | | To ease the transition to a JSON based implementation of `notmuch-show', move the current implementation into a separate file. Create `notmuch-lib.el' to hold common variables.
* emacs: Fix "free variable" warning for notmuch-folder-show-empty.Gravatar Carl Worth2010-04-03
| | | | | Emacs really wants us to defvar each variable before assigning to it, (which gives us a place to document the variable as well).
* emacs/notmuch.el: Improve tag highlighting in search modeGravatar David Edmondson2010-04-03
| | | | | | | Assume that tags never include an opening bracket, and hence improve the regular expression used to highlight them. This avoids false matches where the 'from' address of a thread participant includes an opening bracket.
* emacs: Fix the notmuch-search-authors-width variable.Gravatar Carl Worth2010-03-31
| | | | This variable existed previously, but wasn't actually used for anything.
* emacs: Fix search refresh when on the last line of a search buffer.Gravatar Carl Worth2010-03-10
| | | | | | | | | | | | | | | We currently allow the cursor to be positioned on the "End of search results" line after the last thread in a search buffer. When refreshing on this line, there's no thread ID to be used as the target. Previously, a refresh from this case would result in a nil thread target, but we were also using nil to indicate that the target thread had been found. This caused the position to be lost during refresh, (the cursor would move from the last line in the buffer to the first). We fix this by using a magic string of "found" rather than nil to clearly indicate whether the target thread has actually been found.
* emacs: Adjust search refresh to use a target line not a target position.Gravatar Carl Worth2010-03-10
| | | | | | It doesn't make sense to move the cursor to some random point in the middle of a line. We always want the refresh to leave the cursor at the beginning of some line instead.
* emacs: Move emacs UI (currently just one file) to subdirectory.Gravatar David Bremner2010-03-09
Add emacs/Makefile.local and emacs/Makefile. Move emacs targets into emacs/Makefile.local, but leave the byte compilation rule in the top level Makefile.