aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
...
* emacs: Use async process helper for searchGravatar Austin Clements2013-06-01
| | | | | | | | | | Previously, search started the async notmuch process directly. Now, it uses `notmuch-start-notmuch'. This simplifies the process sentinel a bit and means that we no longer have to worry about errors interleaved with the JSON output. We also update the tests of Emacs error handling, since the error output is now separated from the search results buffer.
* emacs: Utilities to manage asynchronous notmuch processesGravatar Austin Clements2013-06-01
| | | | | | | | This provides a new notmuch-lib utility to start an asynchronous notmuch process that handles redirecting of stderr and checking of the exit status. This is similar to `notmuch-call-notmuch-json', but for asynchronous processes (and it leaves output processing to the caller).
* test: Remove extraneous Emacs error handling testGravatar Austin Clements2013-06-01
| | | | | | | We now check error handling more carefully in the last test in test/emacs and we're about to add more error handling tests. (This was also a strange place for this test, since it had nothing to do with large search buffers.)
* News for Emacs part handling changesGravatar Austin Clements2013-05-31
|
* emacs: Bind MIME part commands to "." submapGravatar Austin Clements2013-05-31
| | | | | | | | | | | | | Since the part commands are no longer tied to a button, but can be applied with point anywhere within a part, bind the part commands keymap to "." everywhere in the show buffer. This lets you save or view parts without having to navigate to the part button, and is particularly useful for parts that have no button. This removes the un-prefixed MIME part commands from the part button keymap, but that's okay because those clashed in annoying ways with show buffer bindings like "s" for search. RET on part buttons is unaffected, which is the most important part button binding.
* emacs: Simplify MIME part command implementationGravatar Austin Clements2013-05-31
| | | | | | | | | | | | | | | | | | | | This unifies the part button actions and the underlying part action functions into single interactive command that simply applies to the part containing point using the just-added part p-list text property instead of button properties. Since all part actions can be performed by applying the appropriate mm function to an mm-handle, this patch abstracts out the creation of mm handles, making the implementations of the part commands trivial. This also eliminates our special handling for part save in favor of using the appropriate mm function. This necessarily modifies the way we handle the default part button action, but in a way that does not change the meaning of the notmuch-show-part-button-default-action defcustom. Since these commands are no longer specific to buttons, this patch eliminates the extra metadata stored with each button. This also eliminates one rather special-purpose macro for a collection of general purpose part handling utilities.
* emacs: Record part p-list in a text propertyGravatar Austin Clements2013-05-31
| | | | | | | This is similar to what we already do with the message p-list, though we apply the part's text property to the whole part's text, in contrast with the message p-list, which is (rather obscurely) only applied to the first character.
* emacs: Retain text properties when toggling buttonsGravatar Austin Clements2013-05-31
| | | | | | | | Previously, we lost any text properties applied to part buttons or wash buttons when they were toggled because `insert' directly copies the text properties of the string being inserted. Fix this by capturing the properties applied to the button beforehand and re-applying them after inserting the new text.
* TODO: keybindings for next/previous thread doneGravatar Jani Nikula2013-05-31
|
* cli: remove unused argument descriptionsGravatar Jani Nikula2013-05-31
| | | | | Clean up leftovers from help system rework. These are no longer needed. They are easy to resurrect and update if a need later arises.
* NEWS: added information about new --stderr=FILE top level optionGravatar Tomi Ollila2013-05-29
|
* man: documented --stderr=FILE in notmuch.1 manual pageGravatar Tomi Ollila2013-05-29
|
* test: added --stderr=FILE testsGravatar Tomi Ollila2013-05-29
| | | | | | --stderr=FILE tests were added to test/help-test as it is the one doing most global option testing. Also, it was simplest to test this new option using `notmuch help` command.
* cli: add global option --stderr=FILEGravatar Tomi Ollila2013-05-29
| | | | | | | With this option all writes to stderr are redirected to the specified FILE (or to stdout on case FILE is '-'). This is immediately useful in emacs interface as some of its exec intefaces do not provide separation of stdout and stderr.
* emacs: Fix trimming regexp in notmuch-check-exit-statusGravatar Austin Clements2013-05-27
| | | | | | | | | | | | | | | | | | | | | | | | | For such a simple regexp, this was broken in a very complicated way. The intent was to strip the newline (and potentially other whitespace) off the end of the error string so there wasn't an extra newline in the error signal. However, the regexp was deeply dependent on the active syntax table and the subtleties of $. We didn't notice this because all notmuch major modes put ?\n in the whitespace class, which makes this behaved as intended: the "\\s " matches all newlines, but by matching the newline character, causes the $ *not* to match *except* where it matched the empty string at the very end of the string, which was not followed by a newline. However, if the syntax table declares ?\n to be non-whitespace (lisp-mode declares it as endcomment, and is likely to be the mode you're in when testing functions), then this regexp behaves completely differently, matching trailing spaces at the end of every line within the string. The solution is to say what we mean for whitespace *and* to switch from $ to \', which matches only the end of the string, rather than the end of each line. Both are necessary or this will strip away interior newlines, which is not what we want.
* build: fix out-of-tree buildsGravatar Jani Nikula2013-05-26
| | | | | | | | | | | | | | | | | | | | | | Support for out-of-tree builds was added in commit 3e4a9d60a9419621b08c647a306843d76c47c2cb Author: Carl Worth <cworth@cworth.org> Date: Wed Mar 9 15:02:42 2011 -0800 build: Add support for non-source-directory builds. and broken in commit 7beeb8c88a014ecbc53d8241f10683b3c4c16228 Author: David Bremner <bremner@debian.org> Date: Sat Nov 17 12:28:15 2012 -0400 test: initial performance testing infrastructure Fix the build breakage. Out-of-tree 'make test' has been broken since earlier than the above, and remains broken, as does out-of-tree perf test, but at least the build now works.
* emacs: add show view bindings to move to previous/next threadGravatar Jani Nikula2013-05-26
| | | | We have most of the plumbing in place, add the bindings M-n and M-p.
* emacs: Don't override mm-show-part in notmuch-show-view-partGravatar Austin Clements2013-05-26
| | | | | | | | | | | | | | Previously, notmuch-show-view-part overrode the function binding of mm-show-part to redirect it to notmuch-show-save-part to get notmuch's default file name handling in case mm-display-part decided to fall back to saving the part. In addition to being messy, this depended on the now-deprecated dynamic binding behavior of flet. This patch removes the mm-show-part override in favor of passing the file name in to mm-show-part the way it expects, so we get its default file name handling. It's not clear why we didn't do this before; mm-show-part has supported default file names since at least Emacs 23.1.
* NEWS: a bunch of cli news since 0.15Gravatar Jani Nikula2013-05-26
|
* Merge branch 'release'Gravatar David Bremner2013-05-25
|\ | | | | | | merge back debian-only release into master
| * debian: bump standards version to 3.9.4Gravatar David Bremner2013-05-25
| |
* | NEWS: No Emacs 22 supportGravatar Tomi Ollila2013-05-25
| |
* | debian: package ruby bindingsGravatar Felipe Contreras2013-05-23
| | | | | | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* | ruby: use in-tree notmuch libraryGravatar Felipe Contreras2013-05-23
| | | | | | | | | | | | | | | | | | | | | | | | Currently it simply finds any library available, and if notmuch is installed in the system, it would give priority to that library. Let's implement our own helper functions to link directly to the local library, and give priority to the local header file. Also, add an option to properly check if there are missing symbols. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* | emacs: Compute build dependencies to fix byte compile issuesGravatar Austin Clements2013-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we simply byte compiled each Elisp source file independently. This is actually the wrong thing to do and can lead to issues with macros and performance issues with substitutions because 1) when the byte compiler encounters a (require 'x) form, it will load x.elc in preference to x.el, even if x.el is newer, and as a result may load old macro and substitution definitions and 2) if we update a macro or substitution definition in one file, we currently won't re-compile other files that depend on the file containing the definition. This patch addresses these problems by computing make dependency rules from the (require 'x) forms in the Elisp source files, which we inject into make's dependency database.
* | ruby: fix missing symbol UINT2FIX()Gravatar Felipe Contreras2013-05-23
| | | | | | | | | | | | | | | | It has never existed in Ruby (maybe JRuby). Fortunately the symbols are loaded lazily, so nobody would notice unless they try 'query::count_messages'. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* | devel: add dkg's printmimestructure script to notmuch devel scriptsGravatar David Bremner2013-05-23
| | | | | | | | | | | | | | | | I find this script pretty useful when figuring out who to blame for MIME rendering problems. The notmuch repo will be the new primary home for this script, unless and until a better home turns up.
* | contrib: pick: add a target message for pickGravatar Mark Walters2013-05-20
| | | | | | | | | | | | | | | | This adds a target message for pick which it will jump to when (if) it appears. It adds the target to notmuch-pick-from-show-current-query so that pick goes straight to the message that was current in the show view and it adds target to notmuch-pick-refresh-view so that the current message is preserved.
* | contrib: pick: move save-excursion closer to message insertionGravatar Mark Walters2013-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | Pick keeps point roughly at the top of the buffer while inserting messages at the end as they come in (from the async parser). Previously the save-excursion to do this was done once for each thread inserted: now it is done for each individual message. The advantage is that the message insertion code can decide where to leave point. In the next patch point will be left on the target message. Note notmuch-pick-insert-msg is unchanged as that is used by the tag display update code.
* | emacs: show: handle inline patch fake parts at top levelGravatar Mark Walters2013-05-20
| | | | | | | | | | The inline patch fake part handler also modifies the content-type so handle this in notmuch-show-insert-bodypart too.
* | emacs:show: separate out handling of application/octet-streamGravatar Mark Walters2013-05-20
| | | | | | | | | | | | | | | | | | | | Currently mime parts are basically handled based on their mime-type with the exception of application/octet-stream parts. Deal with these parts at the top level (notmuch-show-insert-bodypart). This is needed later in the series as we need to put in a part button for each part (which means knowing its mime type) while deferring the actual insertion of the part.
* | emacs: Proper error string handling in search sentinelGravatar Austin Clements2013-05-18
| | | | | | | | | | | | | | Apparently Emacs provides a function to stringify errors properly. Use this in the search sentinel where we have to do our own error messaging, rather than assuming the first error argument will be the descriptive string.
* | emacs: tag: fix compile warningGravatar Mark Walters2013-05-15
| | | | | | | | | | | | | | | | When compiling notmuch-tag.el there is a compile warning: notmuch-tag.el:27:1:Warning: cl package required at runtime Since we have decided to allow runtime use of cl we suppress this warning by adding a tail comment to the file.
* | perf-test: add notmuch-memory-testGravatar David Bremner2013-05-15
| | | | | | | | | | | | Somehow this file was not added to the patch set which split the tests into time and memory tests. Take advantage of the the "new" way of running tests to avoid listing the explicitly.
* | perf-test: run all appropriately named time testsGravatar David Bremner2013-05-15
| | | | | | | | This avoids hassle with manually adding every test to the master list.
* | perf-test: rename time tests to have .sh suffixGravatar David Bremner2013-05-15
| | | | | | | | This will simplify notmuch time tests
* | perf-test: rename memory testsGravatar David Bremner2013-05-15
| | | | | | | | The common suffix will help running them all automatically.
* | man: document search --exclude=allGravatar Peter Wang2013-05-13
| | | | | | | | Document the new search --exclude=all option.
* | test: add tests for search --exclude=allGravatar Peter Wang2013-05-13
| | | | | | | | Test the new search --exclude=all option.
* | cli: add --exclude=all option to notmuch-search.cGravatar Mark Walters2013-05-13
| | | | | | | | Add a --exclude=all option to notmuch search.
* | lib: add --exclude=all optionGravatar Mark Walters2013-05-13
| | | | | | | | | | | | Adds a exclude all option to the lib which means that excluded messages are completely ignored (as if they had actually been deleted).
* | lib/database.cc: change how the parent of a message is calculatedGravatar Aaron Ecay2013-05-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Presently, the code which finds the parent of a message as it is being added to the database assumes that the first Message-ID-like substring of the In-Reply-To header is the parent Message ID. Some mail clients, however, put stuff other than the Message-ID of the parent in the In-Reply-To header, such as the email address of the sender of the parent. This can fool notmuch. The updated algorithm prefers the last Message ID in the References header. The References header lists messages oldest-first, so the last Message ID is the parent (RFC2822, p. 24). The References header is also less likely to be in a non-standard syntax (http://cr.yp.to/immhf/thread.html, http://www.jwz.org/doc/threading.html). In case the References header is not to be found, fall back to the old behavior. V2 of this patch, incorporating feedback from Jani and (indirectly) Austin.
* | test: add tests for the handling of References and In-Reply-To headersGravatar Aaron Ecay2013-05-13
| | | | | | | | | | | | | | | | | | These tests are known_broken, the following commit fixes them. amended per id:87txmi1zq3.fsf@nikula.org id:87vc6yalo7.fsf@zancas.localnet
* | emacs: removed code attempting to support emaces prior to version 23Gravatar Tomi Ollila2013-05-13
| | | | | | | | | | | | | | | | | | The support for emacs version 22 has not worked at least since September 2011 when I attempted to use it. I expanded the support in id:yf6ippgtbn0.fsf@taco2.nixu.fi but that was not enough and then I found it easier to switch to emacs 23. In case one wants to resurrect emacs 22 (or earlier!) support, pick the changes from the patch email referenced above.
* | emacs/notmuch-address.el: add notmuch-address-selection-functionGravatar Tomi Ollila2013-05-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a customizable variable notmuch-address-selection-function and the function with the same name to provide a way for user to change the function called to do address selection. By default the functionality is exactly the same as it has been so far; completing-read is called with the same parameters as before. Setting equivalent lambda expression in place of using notmuch-address-selection-function function is done as follows: (setq notmuch-address-selection-function (lambda (prompt collection initial-input) (completing-read prompt collection nil nil initial-input))) For example drop-in replacement with ido-completing-read can be done easily as an one alternative to the default.
* | cli: config: fix config file save when the file does not existGravatar Jani Nikula2013-05-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The use of realpath(3) in commit 58ed67992d0ec1fa505026105218fa449f7980b0 Author: Jani Nikula <jani@nikula.org> Date: Sun Apr 7 20:15:03 2013 +0300 cli: config: do not overwrite symlinks when saving config file broke config file save when the file does not exist, which results in 'notmuch setup' always failing to create a new config file. Fix by checking ENOENT from realpath(3).
* | test: add basic test for notmuch setupGravatar Jani Nikula2013-05-12
| | | | | | | | And annotate with test_subtest_known_broken. Hooray.
* | man: clarify search --exclude=flagGravatar Peter Wang2013-05-12
| | | | | | | | | | Improve the description of the search --exclude=flag option, using text taken from the commit that introduced the option.
* | man: clarify search --exclude documentationGravatar Peter Wang2013-05-12
| | | | | | | | | | | | | | | | Highlight "excluded messages" as a term with a meaning that may not be obvious. Be explicit about the effects of search --exclude=true and --exclude=false.
* | emacs: add kernel.org mail archive redirectorGravatar Jani Nikula2013-05-05
| | | | | | | | See http://lkml.kernel.org/