aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-11-04notmuch.el: Override next-line and previous-line to make them reliable.Carl Worth
I noticed that these functions would sometimes leave point on an invisible character[*]. The problem would be that point would appear to be on a particular message, but adding or removing a tag would actually add/remove a tag from the *previous* message. Fix the C-n and C-p keybindings at least to call the underlying command and then advance to a visible character. We set this-command in our overrides so that the temporary-goal-column feature still works. [*] The documentation says that command loop is supposed to move point outside of any invisible region when a command exits. But apparently not.
2009-11-04notmuch.el: Un-break the magic space bar to scroll a long, single message.Carl Worth
Clearly some recent code was very fragile, which I noticed in that the space bar would no longer scroll a long message if it was the only message in a thread. This resulted in a lot of churn, but hopefully things are more robust now, (for example by using new predicates like notmuch-show-last-message-p rather than doing heuristics based on (eobp) or (window-end)). As usual, the presence of invisible characters complicates the task of making this stuff robust.
2009-11-04notmuch.el: Fix to show *something* when all messages are already read.Carl Worth
With the recent change of showing the first unread message, we would scroll down to the end of the buffer if all messages were already read. This would confusingly show nothing visible in the window. Instead, detect this case and move to the beginning of the buffer.
2009-11-04notmuch.el: Make magic space bar advance to next unread messages.Carl Worth
The magic of the space bar is all about unread messages, so there's no reason for it to advance to messages that have already been read. Similarly, we now remove any magic from (n)ext so that it simply advances to the next message without marking anything read, (which makes it symmetrical with (p)revious).
2009-11-04notmuch.el: Move to first unread message on notmuch-show.Carl Worth
This is important for when a new message is delivered to an existing enormous thread.
2009-11-04notmuch.el: Make next-message move to end of buffer after last message.Carl Worth
We need an easier way to detect when we're done with the last message so taking advantage of the end-of-buffer position helps here.
2009-11-04notmuch.el: Leave a blank line after last thread in search.Carl Worth
This allows for pleasant termination of the "show next thread" magic in notmuch-show mode. Now, it will terminate and show the notmuch-search results rather than continually displaying the last thread over and over.
2009-11-04notmuch.el: Move "show next thread" from magic-space-bar to archive-threadCarl Worth
If I explicitly hit the 'a' key before reading the whole thread, I still want to advance to the next thread in my search.
2009-11-04notmuch.el: More magic for magic space bar: Show next thread from search.Carl Worth
This is implemented by stashing away the parent notmuch-search buffer into a variable within the notmuch-show buffer. Then, when magic space bar triggers an archive of the current thread, it switches to the parent search buffer and shows the next thread.
2009-11-04notmuch.el: notmuch-search: Advance to next line before showing thread.Carl Worth
The idea here is that after viewing the thread, when we come back to this buffer we'll be all ready to view the next thread.
2009-11-04notmuch.el: Make archive-thread more efficient for already archived messages.Carl Worth
The approach here is to move the optimization from mark-read to the more general remove-tag. Namely, don't call out to a "notmuch tag" command to remove a tag that's not there already.
2009-11-04notmuch.el: Make the magic spacebar archive a thread in the end.Carl Worth
Next all it needs to do is kill the buffer and show the next thread.
2009-11-04notmuch.el: Start implementing the magic space bar.Carl Worth
Currently this will either advance by screenfuls, or to the next message if it's already within a screenful, and will mark each message read as it is left. It doesn't yet complete the magic by archiving the messages nor by advancing to the next thread in the search.
2009-11-04notmuch.el: Fix to hide citations in body of read messages.Carl Worth
Previously, unhinding a read message would still show all the citations in that message without an explicit command to make them visible. Fix.
2009-11-04notmuch.el: Redefine behavior of notmuch-show-previous-messageCarl Worth
Now, if the user has manually moved point to somewhere within a message, executing the previous-message command onece will rewind point only to the beginning of the current message. Previously this would go back to the previous message, (which the user can now do easily and naturally by simply executing the command one more time).
2009-11-04notmuch.el: Fix notmuch-snow-next-message when on the last message.Carl Worth
Before this just brought the current line to the top of the window. Now it actually moves to the beginning of the current message. This is built on a much more solid foundation now with a function to move to the summary-line of the current message, and then moving from there.
2009-11-03notmuch.el: Add more complete documentation to the major modes.Carl Worth
These now provide a summary of the most useful features/bindings as well as a complete printout of the relevant mode maps to show all available keybindings.
2009-11-03notmuch.el: Make archive-thread advance to next line.Carl Worth
This is the command in notmuch-search mode and it's cer convenient for it to advance to the next line there. (It would be even more convenient if it didn't also take forever, but as mentioned before that's an issue we'll need to fix in Xapian.)
2009-11-03notmuch.el: Add 't' binding to filter results to a specific tag.Carl Worth
This is a convenience function to avoid having to type "tag:" with the (f)ilter command.
2009-11-03notmuch.el: Add bindings for scrolling to notmuch-search mode.Carl Worth
We turn on the scroll-preserve-screen-position option which seems like what's desired here, (though that's not what I normally use when editing files---but I think scrolling through a list of email threads is different).
2009-11-03Drop inapplicable copyright statements.Carl Worth
I had put these in here since I had originally planned to copy liberally from the body of the implementation of 'compile in order to get process output into a buffer. But once I found call-process in the documentation of emacs, that was all I needed. And all the code I've written since has been entirely my own with just the help of emacs documentation.
2009-11-03notmuch-el: Fix implementation of show/hide-thread-ids.Carl Worth
I'm definitely more comfortable with the add-to-invisibility-spec now than I was when I first wrote these functions, (which weren't working at all).
2009-11-03notmuch.el: Add command to (a)rchive a thread from notmuch-show mode.Carl Worth
This is our first race-free implementation of archive-thread! It acts only on the messages explcitly contained in the buffer, not on an entire thread ID, so it's safe in the face of new messages have been delivered for this thread since the view was made.
2009-11-03notmuch.el: Don't try to remove an "unread" tag that's not there.Carl Worth
This optimization wouldn't be necessary if we had a nice fast "notmuch tag" command. But since it's currently fairly slow, (see Xapian defect 250: http://trac.xapian.org/ticket/250), we're willing to take some extra care to avoid calling "notmuch tag" unnecessarily.
2009-11-03notmuch show: Remove custom "unread" hack, (printing tag in two locations).Carl Worth
I previously had a hack that special-cased the "unread" tag and printed it on the same line as the message ID. But now that we are printing all tags at the end of the one-line summary we don't need this anymore. Get rid of it, and just read "unread" from the list of tags just like any other tag.
2009-11-03notmuch.el: Add + and - bindings to add/remove tags from messages.Carl Worth
This is in notmuch-show mode rather than in notmuch-search mode, (where we had + and - working already). This gives the same visual feedback as in notmuch-search-mode, (the tags are manipulated first in the database and then the list of tags in the buffer is updated).
2009-11-03notmuch show: Print tags for each message.Carl Worth
This is in the one-line summary so should always be visible even in our emacs client that's so eager to make things invisible.
2009-11-03notmuch.el: Preserve current thread when refreshing search results.Carl Worth
Otherwise, try to keep point in the same place, (such as when the current thread has been archived away).
2009-11-03notmuch.el: Add an '=' key to refresh the current view.Carl Worth
This will allow for updates when a separate process (say, a notmuch- show buffer), has archived messages.
2009-11-03notmuch.el: Mark messages read when the (n)ext keybinding is pressedCarl Worth
Of course, technically, we're removing the "unread" tag, but you get the idea. :-)
2009-11-03notmuch.el: Hide citations and signatures.Carl Worth
The user can make these visible again by pressing 'c' or 's', (though we'd like to move to direct manipulation instead soon).
2009-11-03Hide bodies of message that have already been read.Carl Worth
Also hide all markers. From here, all we really need for legibility is the following: * Hide away citations and signatures * Call out the one-line summary some way, (larger font size?) * Add nesting for replies
2009-11-02notmuch.el: Hide email headers by default.Carl Worth
The display of the header can be toggled with the 'h' key.
2009-11-02notmuch show: Switch to control character to mark sections of outputCarl Worth
We were previously using things like "%message{" which were not guaranteed to never appear in an email message. Using a control character (^L or '\f' instead of '%') gives us better assurance that our delimiter doesn't show up in an original email message. This still isn't entirely safe since we're decoding encoded text in the body of the email message so almost all bets are off really.
2009-11-02notmuch.el: Make 'n' and 'p' bring the current message to the top.Carl Worth
This is much more convenient for reading the messages, and happens to match the behavior of sup.
2009-11-02notmuch.el: Add (n)ext and (p)revious bindings to notmuch-show mode.Carl Worth
Almost starting to get usable now. Still need to make it mark messages as they are read, (by removing the unread tag), and selectively hiding the full header.
2009-11-02TODO: Add an idea from talking with keithp on the train.Carl Worth
I mentioned the read-only directory optimization to Keith, and he liked it but wanted to be able to configure it to be fully automated.
2009-11-02notmuch.el: Add '<' and '>' bindings to goto first/last thread.Carl Worth
Also, take care to remove a final blank line to avoid the point going beyond the last thread in the buffer.
2009-11-02TODO: Organize tasks based on emacs interface, command-line tool, or library.Carl Worth
There are conceptually three different projects here, so it helps to keep the tasks for each separated.
2009-11-02notmuch.el: Add commands to (s)earch globally, and (f)ilter a searchCarl Worth
Also add 'q' and 'x' keybindings to kill the current buffer.
2009-11-02Tweak relative dates to be close to the same length.Carl Worth
Most all of the returned strings will now fill most of a 12-character string, (depending on the length of the month).
2009-11-02Remove notmuch_message_get_header_size and notmuch_message_get_all_headersCarl Worth
The notmuch.c main program now uses GMime directly rather than using these functions, and I'd rather not export any functions unless we have good evidence that the functions are necessary.
2009-11-02notmuch.el: Hide thread IDs in notmuch-search mode.Carl Worth
One more baby step toward something that's pleasant to use.
2009-11-02notmuch.el: Implement visual feedback for add/remove tags.Carl Worth
There's no undo still, but at least you can see what you are doing now.
2009-11-02Drop date.c file, (use identical function from GMime instead).Carl Worth
We had originally copied this function in at a time when notmuch wasn't actually depending on the GMime library. Now that it does, we might as well call the function that exists there rather than having a private copy of it.
2009-11-02notmuch show: Don't print non-text MIME parts.Carl Worth
Additionally, print a part number for each MIME part so that the client could (conceivably) ask for the contents of a specific part by part number.
2009-11-02Fix to decode header values, (primarily subject).Carl Worth
Use GMime function to decode message-header values according to RFC 2047.
2009-11-02Print "part" markers for each MIME part (with Content-type).Carl Worth
This can allow for the client to hide undesired MIME parts such as text/html.
2009-11-02notmuch show: Use GMime to decode messages.Carl Worth
We now actually get text content rather than blocks of BASE64, etc.
2009-11-02TODO: Add several items.Carl Worth
These are the things that are actively preventing me from being able to use notmuch as an email-reading client.