aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.el
Commit message (Collapse)AuthorAge
* notmuch.el: Make 'x' and 'X' in show-mode archive the current thread.Gravatar Carl Worth2009-11-30
| | | | | | | | | This makes these keys different than 'q' in this mode, (where 'x' and 'q' are identical in all of the other modes currently). The idea here is to make it easier to do non-linear reading of messages, (such as when poking in to read just one or two threads from a search result that returned many threads).
* notmuch.el: Use let to avoid assigning to a free variable.Gravatar Carl Worth2009-11-30
| | | | | | The dynamic scoping of emacs lisp is such that we never want to assign to any variable unless it's something we've defined with `defvar' or else something we're using locally via `let'.
* notmuch.el: Avoid warning about referencing free variable `button'.Gravatar Carl Worth2009-11-30
| | | | | I'm not even sure how the previous code worked at all---it seems clear it was supposed to be using `cite-button' rather than `button'.
* notmuch.el: Avoid calling next/previous-line non-interactively.Gravatar Carl Worth2009-11-30
| | | | Emacs always complains if we use these from lisp code.
* notmuch.el: Make notmuch-help use a full-screen window.Gravatar Carl Worth2009-11-30
| | | | | | | Our documentation is long enough that I think it will be more useful to use an entire window for it (which is easily dismissed with 'q'). This is also kinder for a user not well-initiated with emacs, for whom the multi-window help can be confusing.
* notmuch.el: Make documentation of notmuch-search-mode dynamic.Gravatar Carl Worth2009-11-30
| | | | | | | | Previously, we had some hard-coded keybindings mentioned in the introductory paragraphs of the documentation for notmuch-search-mode. Now, we take advantage of the substitute-command-keys functionality to produce the same text by default, but to dynamically generate the correct text in the face of the user customizing the keybindings.
* notmuch.el: Clean up documentation of notmuch-folder-mode-map commands.Gravatar Carl Worth2009-11-30
| | | | | | Again, ensuring we have standalone first-line documentation strings, and overriding builtin commands to add our own documentation strings to them.
* notmuch.el: Clean up documentation of notmuch-show-mode-map commands.Gravatar Carl Worth2009-11-30
| | | | | | | | | | As we did recently for notmuch-search-mode-map, ensure that the first line of docuemntation for each command stands alone. We also take advantage of the substitute-command-keys functionality within notmuch-help so that the introductory paragraphs can talk about key bindings by key (rather than function name) in a way that will always be current even in the face of the user rebinding keys.
* notmuch.el: Fix notmuch-help to properly display prefixed bindings.Gravatar Carl Worth2009-11-30
| | | | | | | | | | | Previously, we would do only a single-level traverse of the keymap. That meant that for a keybinding such as "M-TAB" we would just see the prefix key ("ESC") and print that it was a keymap---never printing the TAB nor the documentation for the command it is bound to. Now, we do the full walk, constructing a proper description of the full keybdinding with prefix characters, (and converting "ESC" to "M-" for legibility).
* notmuch.el: Clean up documentation of notmuch-search-mode-map commands.Gravatar Carl Worth2009-11-30
| | | | | | | | | | | Since notmuch-help now displays a single line of documentation from each of these commands we ensure that the first line stands alone for each command. We also override some builtin commands with new commands that don't behave any differently, but have our own notmuch-specific documentation, (such as "select next thread" rather than "move point to next line").
* notmuch.el: Fix notmuch-search-goto-last-thread.Gravatar Carl Worth2009-11-30
| | | | | | This broke when we switched to filter-based processing of search results and added the "End of search results" line onto the end. Fix to skip ignore that line when moving to the last thread.
* notmuch.el: Fix notmuch-search-scroll-down to go to first thread.Gravatar Carl Worth2009-11-30
| | | | | | | | When there's no more to scroll, we want to select the first thread. This used to work, and I'm not sure when it broke, (perhaps when we switched from post-process decorating of the search results to filtering). Fix the calculation to work again.
* notmuch.el: Don't document mouse actions in notmuch-help.Gravatar Carl Worth2009-11-30
| | | | | | | | | | The concept behind direct manipulation with mouse clicks is that documentation shouldn't be necessary, (though my original motivation here was simply that "<mouse-1>" was exceeding my TAB width. This does cause a blank line to be added for the mouse binding. This isn't directly desired, but as long as it's there we put it at a natural place for a separator.
* notmuch.el: Reorder notmuch-search-mode keybindings map.Gravatar Carl Worth2009-11-30
| | | | | | | I had originally created this keymap in order from most important to least important commands. But our new notmuch-help command is presented with the list in the reverse order. So we reverse the input so that the user sees the most important commands first.
* notmuch.el: Implement our own notmuch-help instead of describe-mode.Gravatar Carl Worth2009-11-30
| | | | | | | | This gives somewhat friendlier output for the '?' binding than we had previously with `describe-mode'. First, we no longer have the various minor modes cluttering up the output. Second the display of the binding table uses the first line of documentation for the bound function rather than the function name.
* notmuch.el: Add documentation for notmuch-search-show-thread.Gravatar Carl Worth2009-11-30
| | | | | It's especially unkind to leave interactive functions without documentation.
* notmuch.el: Don't use beginning-of-buffer from elisp program.Gravatar Carl Worth2009-11-30
| | | | | | This silences a warning when compiling notmuch.el. The documentation of beginning-of-buffer does say (rather emphatically) that it's not to be used from lisp programs.
* More portable and easier to read regex in notmuch-search-operate-allGravatar Jed Brown2009-11-28
| | | | | | | The former one worked in 23.1.50.1 but not in 23.1.1. Signed-off-by: Jed Brown <jed@59A2.org> Tested-by: Keith Packard <keithp@keithp.com>
* Adjust autoload commentsGravatar Keith Amidon2009-11-28
| | | | | | The previous location of autoload comments didn't seem to correspond with the functions most likely to be the entry points for using notmuch. This change adjusts them to match those likely entry points.
* notmuch.el: Add face support to search modeGravatar Aneesh Kumar K.V2009-11-27
| | | | | | | | | | | | | | | | | | | | This patch use notmuch-tag-face showing tags in the notmuch-search-mode. We can selectively highlight each tag by setting notmuch-tag-face-alist as below (defface notmuch-tag-unread-face '((((class color)) (:foreground "goldenrod"))) "Notmuch search mode face used to highligh tags.") (defface notmuch-tag-inbox-face '((((class color)) (:foreground "red"))) "Notmuch search mode face used to highligh tags.") (setq notmuch-tag-face-alist '(("unread" . 'notmuch-tag-unread-face) ("inbox" . 'notmuch-tag-inbox-face))) (require 'notmuch) Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
* Key binding rearrangement for save attachments in show modeGravatar Keith Amidon2009-11-27
| | | | | | | The most obvious bindings for save attachments are already taken. The existing 'w' binding was bound to view the raw message. This commit moves it to 'V' which still seems somewhat mnemonic and uses 'w' for save (write) attachments.
* Provide ability to save attachmentsGravatar Keith Amidon2009-11-27
| | | | | Previously the only way to save an attachment was to attempt to view it and then save it from within the viewer program.
* Forward individual messages using message-forwardGravatar Keith Amidon2009-11-27
| | | | | | Sometimes forwarding a message is preferable to replying and modifying the set of recipients. This commit provides that ability using the message-forward function.
* Factor out message buffer mgmt from notmuch-show-view-all-mime-partsGravatar Keith Amidon2009-11-27
| | | | | | | | | | | | The ability to temporarily create a buffer containing only the contents of the currently selected message in notmuch show mode is generally useful. This commit factors the majority of the code required to do so out of notmuch-show-view-all-mime-parts into a macro called with-current-notmuch-show-message and rewrites the original function in terms of the macro. A future set of commits will provide additional functionality using the macro as well.
* Add key binding for notmuch-search in show-modeGravatar Keith Amidon2009-11-27
| | | | | It's not uncommon to want to start a search as a result of something read in a message so this is convenient.
* notmuch.el: Use message-mode font-face to highlight mail headersGravatar Aneesh Kumar K.V2009-11-27
| | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
* Add some very rudimentary support for handling html partsGravatar Alexander Botero-Lowry2009-11-27
| | | | | | | If there is an html mime-part in the message and it's the first part, it gets inlined using `mm-display-part' to convert it to plain text. The HTML content is still available as a non-text part as well.
* notmuch.el: Require message mode to avoid undefined function in replies.Gravatar Eric Anholt2009-11-27
| | | | | Otherwise, those without keithp's .emacs would end up with reply mode not being entered. Suggested by keithp.
* notmuch-search-add/remove-tag: restrict to messages in current queryGravatar Jed Brown2009-11-27
| | | | | | | | | | | | Rather than tagging the everything in the thread. This is arguably more desirable behavior and is consistent with clearly desirably behavior of notmuch-search-operate-all. Note that this change applies indirectly to notmuch-search-archive-thread (which is actually equivalent behavior since this function is primarily used when browsing an inbox). Signed-off-by: Jed Brown <jed@59A2.org>
* New function notmuch-search-operate-all: operate on all messages in the ↵Gravatar Jed Brown2009-11-27
| | | | | | | | | | | | current query. It is often convenient to change tags on several messages at once. This function applies any number of tag whitespace-delimited tag modifications to all messages matching the current query. I have bound this to `*'. Signed-off-by: Jed Brown <jed@59A2.org>
* Return unpropertized strings for filename and message-idGravatar Tassilo Horn2009-11-26
|
* notmuch.el: Use variable notmuch-search-oldest-first to decide the search orderGravatar Aneesh Kumar K.V2009-11-26
| | | | | | | | Make sure we use notmuch-search-oldest-first to decide the how the search result should be displayed. This helps to set the value to nil and have latest mail shown first Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
* notmuch.el: When removing tags, offer only those a msg/thread has set.Gravatar Jan Janak2009-11-26
| | | | | | | When removing a tag from a message or thread, build a completion buffer which contains only tags that the message or thread has really set. Signed-off-by: Jan Janak <jan@ryngle.com>
* notmuch.el: Select tag names with completion.Gravatar Jan Janak2009-11-26
| | | | | | | | | | | | Several commands ask the user for a tag name. With this feature the user can just press tab and Emacs automatically retrieves the list of all existing tags from notmuch database with 'notmuch search-tags' and presents a completion buffer to the user. This feature is very useful for users who have a large number of tags because it saves typing and minimizes the risk of typos. Signed-off-by: Jan Janak <jan@ryngle.com>
* notmuch.el: Remove some dead code.Gravatar Carl Worth2009-11-25
| | | | | This was left over from before the switch to using a filter for processing the results of "notmuch search".
* notmuch.el: Quote arguments to protect from shell interpretation.Gravatar Carl Worth2009-11-24
| | | | | | We want to allow the user to be able to use search expressions with parentheses and semi-colons, etc. and we definitely don't want the shell interpreting those!
* notmuch.el: Exceute "notmuch search" asynchronously.Gravatar Carl Worth2009-11-24
| | | | | | | | | | | Previously, our emacs interface was waiting for the "notmuch search" to complete before it would display anything. Now, we execute the process asyncrhonously and filter results as they come in. This takes advantage of the recent work to make "notmuch search" results stream out steadily. The result is that some search results will be available nearly instantly and the user can navigate and view those while additional results continue loading.
* Remove the global expand body keymappingGravatar Alexander Botero-Lowry2009-11-24
| | | | With local buttons done now, we don't need this anymore.
* Make bodies locally toggleableGravatar Alexander Botero-Lowry2009-11-24
| | | | | | | | | | | | Having actually implemented this, I realized that my initial approach of providing a function to configure a button was wrong. Instead I've replaced that with button types. This then makes it possible to provide the fully expanded view when all threads in a message are unread. It also has the potential to allow global-expansion functions if that is desireable
* make a nice function for generating invisibility toggle buttonsGravatar Alexander Botero-Lowry2009-11-24
| | | | | | I realized I was replicating this code over and over again, so this way if I change my mind about something I only have to do it on one place.
* cleanup a lot of left-overs from the global invisGravatar Alexander Botero-Lowry2009-11-24
| | | | | Basically I'd left in a lot of the key-bindings and all the invisiblity spec variables so just rid the world of those
* make headers locally expandable/collapsableGravatar Alexander Botero-Lowry2009-11-24
| | | | | | | This is the same as with citations and signatures. I used an ellipsis here for the invisible region, which I think make it more obvious that there are extra headers. MH-e used this for extra long To/CC headers.
* notmuch.el: Add TAB and M-TAB buttons to move between buttons.Gravatar Carl Worth2009-11-23
| | | | | Thanks to Alexander Botero-Lowry for pointing out the interesting functions to use here. This functionality was really easy to add.
* Add notmuch-folder mode to provide an overview of search matchesGravatar Keith Packard2009-11-23
| | | | | | | | | | | Folder mode takes a (user-configurable) list of search patterns and produces a list of those patterns and the count of messages that they match. When an entry in this list is selected, a search window with the defined search is opened. The set of folders is defined as a list, each element contains the name of the folder and the query string to count. Signed-off-by: Keith Packard <keithp@keithp.com>
* Make mouse-1 click in search view show threadGravatar Keith Packard2009-11-23
| | | | | | | | Selecting text in the search view isn't all that useful, so instead, make mouse-1 clicks actually show the thread you click on. It's almost like direct manipulation or something. Signed-off-by: Keith Packard <keithp@keithp.com>
* Insert signature into repliesGravatar Keith Packard2009-11-23
| | | | | | | | | When you compose a new message, message mode carefully inserts your mail signature at the bottom of the message; as notmuch constructs the reply all by itself, this doesn't happen then. Use the message mode function 'message-insert-signature' to add that to reply buffers. Signed-off-by: Keith Packard <keithp@keithp.com>
* Quote file names passed to the shellGravatar Jed Brown2009-11-23
| | | | | Prior to this, notmuch-show-pipe-message could not handle file names with spaces and similar.
* switch to button-1, which seems to interact poorly with text-selection by mouseGravatar Alexander Botero-Lowry2009-11-22
|
* instead of trying to cause a redisplay, actually do a redisplayGravatar Alexander Botero-Lowry2009-11-22
|
* put a newline after the headersGravatar Alexander Botero-Lowry2009-11-22
|