aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* test: remove some sed(1) calls in Emacs testsDmitry Kurochkin2011-06-28
| | | | | | | | Few Emacs tests used sed(1) to remove unexpected output in the beginning to avoid getting confused by messages such as "Parsing /home/cworth/.mailrc... done". This is no longer needed since tests are run in a temporary home directory instead of the user's one. So remove these sed(1) calls.
* test: save buffer content to file instead of printing it in Emacs testsDmitry Kurochkin2011-06-28
| | | | | | | | | | | | | | | | | | | | | | Before the change, the common Emacs test scheme was to print buffer content to stdout and redirect it to a file or capture it in a shell variable. This does not work if we switch to using emacsclient(1) for running the tests, because you can not print to the stdout in this case. (Actually, you can print to stdout from Emacs server, but you can not capture the output on emacsclient(1)). The patch introduces new Emacs test auxiliary functions: `test-output' and `test-visible-output'. These functions are used to save buffer content to a file directly from Emacs. For most tests the changes are trivial, because Emacs stdout output was redirected to a file anyway. But some tests captured the output in a shell variable and compare it with the expected output using test_expect_equal. These tests are changed to use files and test_expect_equal_file instead. Note: even if we do not switch Emacs tests to emacsclient(1), the patch makes tests cleaner and is an improvement.
* test: wrap and indent test_emacs callsDmitry Kurochkin2011-06-28
| | | | | | | Most test_emacs calls have long arguments that consist of many expressions. Putting them on a single line makes it hard to read and produces poor diff when they are changed. The patch puts every expression in test_emacs calls on a separate line.
* test: cleanup test_emacsDmitry Kurochkin2011-06-28
| | | | | Move auxiliary function definition and configuration from command line to test-lib.el.
* test: do not set `message-signature' in test_emacsDmitry Kurochkin2011-06-28
| | | | | It is no longer needed since tests are run in a temporary home directory instead of the user's one.
* test: fix argument order of test_expect_equal_file in few testsDmitry Kurochkin2011-06-28
| | | | | | Few Emacs tests had test_expect_equal_file arguments in the wrong order: the first argument should be the test output and the second one should be the expected.
* TODO: Clarify note about changing the way the emacs '*' command works.Carl Worth2011-06-28
| | | | | | Additional detail is available in this mail message: id:8739itagad.fsf@yoom.home.cworth.org
* .gitignore: Ignore the notmuch.sym file.Carl Worth2011-06-28
| | | | This is a generated file, so will not be under git control.
* search --output=files: Output all filenames for each matching messageMark Anderson2011-06-28
| | | | | | | | Messages in the database can have multiple files associated with a single message-id, but until now only one filename for each message has been reported by "notmuch search --output=files" Signed-off-by: Mark Anderson <ma.skies@gmail.com>
* test:Expect multiple filenames for message with multiple filesMark Anderson2011-06-28
| | | | | | | | | | | Update the test mail corpus to have two files with the same content to expose the bug where a single message with multiple filenames only reports a single filename. Update expected results for search --output=files to match new behavior for multiple files corresponding to a single message Signed-off-by: Mark Anderson <ma.skies@gmail.com>
* Makefile: Make emacs compilation depend on global dependencies.Carl Worth2011-06-28
| | | | | | | | We call these "global_deps" for a reason, after all! Without this, emacs compilation would proceed even if the configure script failed, (such as for a missing dependency). That's undesirable as it can cause the helpful error messages from the configure failure to scroll away.
* libnotmuch: build symbols list without relying on gcc -aux-info.David Bremner2011-06-28
| | | | | | | | | | | | | | | Carl reports "gcc -aux-info notmuch.aux lib/notmuch.h" does not generate notmuch.aux for him with Debian gcc 4.6.0-8. A small modification of the original sed regular expression allows us to work directly from lib/notmuch.h, rather than preprocessing with gcc. As with most such simple regex based "parsing", this is quite sensitive to the input format, and needs that each symbol to be exported from libnotmuch should - start with "notmuch_" - be the first non-whitespace token on the line - be followed by an open parenthesis.
* libnotmuch: fix typos in CLEAN setting, add fileDavid Bremner2011-06-28
| | | | | | | - c0961e6 introduced a missing slash between $(dir)$(LIBNAME) and missing $(dir) in front of libnotmuch.a - cdf1c70a created a file $(dir)/notmuch.h.gch and neglected to add it to CLEAN
* python: Do not implicitely call maildir_flags_to_tags etcSebastian Spaeth2011-06-24
| | | | | | | | | | In order to remain consistent with the underlying C API, we do not automatically synchronize notmuch tags and maildir flags anymore. The underlying functions Message.maildir_flags_to_tags and Message.tags_to_maildir_flags still exist and are available to the user. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Merge remote-tracking branch 'origin/master'David Bremner2011-06-23
|\
| * test: remove useless test_emacs call from an emacs FCC testDmitry Kurochkin2011-06-23
| | | | | | | | | | This was inadvertently left over when debugging an early version of this commit. -Carl Worth <cworth@cworth.org>
| * Add dir-locals style variables for C++, Elisp, and shell code.Austin Clements2011-06-23
| | | | | | | | | | Also, slightly reformat dir-locals.el so that the settings align and to make it friendlier for future additions.
| * fix sum moar typos [test-case data]Pieter Praet2011-06-23
| | | | | | | | | | | | | | | | | | Various typo fixes in some test-case data. Signed-off-by: Pieter Praet <pieter@praet.org> Edited-by: Carl Worth <cworth@cworth.org> Restricted to just test-case data.
| * fix sum moar typos [error messages]Pieter Praet2011-06-23
| | | | | | | | | | | | | | | | Various typo fixes in error messages within the source code. Signed-off-by: Pieter Praet <pieter@praet.org> Edited-by: Carl Worth <cworth@cworth.org> Restricted to just error messages.
| * fix sum moar typos [user-visible documentation in code]Pieter Praet2011-06-23
| | | | | | | | | | | | | | | | | | | | | | | | Various typo fixes in documentation within the code that can be made available to the user, (emacs function help strings, "notmuch help" output, notmuch man page, etc.). Signed-off-by: Pieter Praet <pieter@praet.org> Edited-by: Carl Worth <cworth@cworth.org> Restricted to just documentation and fixed fix of "comman" to "common" rather than "command".
| * fix sum moar typos [comments in source code]Pieter Praet2011-06-23
| | | | | | | | | | | | | | | | | | | | Various typo fixes in comments within the source code. Signed-off-by: Pieter Praet <pieter@praet.org> Edited-by: Carl Worth <cworth@cworth.org> Restricted to just source-code comments, (and fixed fix of "descriptios" to "descriptors" rather than "descriptions").
| * fix sum moar typos [build scripts, Makefiles]Pieter Praet2011-06-23
| | | | | | | | | | | | | | | | Various typo fixes in comments within the Makefile and other build scripts. Signed-off-by: Pieter Praet <pieter@praet.org> Edited-by: Carl Worth <cworth@cworth.org> Restricted to just build files.
| * fix sum moar typos [text files]Pieter Praet2011-06-23
| | | | | | | | | | | | | | | | | | Various typo fixes in auxiliary text files included with the source, (README, TODO, etc.). Signed-off-by: Pieter Praet <pieter@praet.org> Edited-by: Carl Worth <cworth@cworth.org> Restricted to just text files.
| * Fix wrong-type-argument lisp error in `notmuch-fcc-header-setup'Dmitry Kurochkin2011-06-23
| | | | | | | | | | | | | | | | | | | | | | This error occurs when `notmuch-fcc-dirs' is set to a list. The error was in the `notmuch-fcc-dirs' format check which was changed in an incompatible way from 0.4 to 0.5. The fix was extracted from a bigger patch series by David Edmondson id:"1290682750-30283-2-git-send-email-dme@dme.org". Signed-off-by: Jameson Graef Rollins <jrollins@finestructure.net>
| * test: Test emacs message composing with various values for notmuch-fcc-dirsCarl Worth2011-06-23
| | | | | | | | | | | | | | We exercise each of the documented values (nil, a string, and a list). For the list, we test matching a specific entry, matching a catch-all regular expression, and no match at all (in which case there is no FCC set).
* | debian: fix installation of notmuch-vim READMEDavid Bremner2011-06-23
| | | | | | | | There was a leftover override, installing it into the wrong package.
* | start new changelog stanzaDavid Bremner2011-06-23
| |
* | Revert "debian: Override RPATH_LDFLAGS"David Bremner2011-06-23
|/ | | | | | | This reverts commit fc126d89b2baa479d98c864fbef4174b6da707c0. This override of the make variable RPATH_LDFLAGS should no longer be required since the auto-configuration was fixed
* debian: Set conflicts from package split to point to an existing version.David Bremner2011-06-23
| | | | | The previous version was harmless, since there were no versions uploaded between ~237 and ~254, but this is less confusing.
* debian: fix typo in short description of notmuch-vimDavid Bremner2011-06-23
| | | | Thanks to Dirk Eddelbuettel for noticing.
* debian: update changelog for upload 0.6~254, bump standards version to 3.9.2David Bremner2011-06-23
|
* debian: remove Xapian exceptions symbols from libnotmuch1.symbolsDavid Bremner2011-06-23
| | | | | These were never intended to be public, since the library exports only a C API.
* debian: split off vim interface to its own packageDavid Bremner2011-06-23
| | | | So far the package does notthing fancy with vim-addon-manager.
* debian: split off emacs interface into its own package.David Bremner2011-06-23
| | | | | | | | | | - rename emacsen-install/remove files, and change embedded package name - split notmuch.install, notmuch.dirs - add Breaks/Replaces for previous notmuch packages with overlapping files.
* debian: Build depend on emacs-nox instead of emacs.David Bremner2011-06-23
| | | | | Nothing in the build process needs X, and the number of dependencies that need to be installed is much smaller.
* debian: build package for python-bindings.David Bremner2011-06-23
| | | | | | | This uses dh_python2 (included with sufficiently recent versions of the python/python-all packages). python-all brings in all of the supported versions of python. The double calls to dh_auto_install and friends are to avoid looping over python versions ourselves.
* tests: add a test for symbol hiding side effectsDavid Bremner2011-06-23
| | | | | | | | | | | The worry here is that a binary linking with libnotmuch might lose access to Xapian::Error symbols because libnotmuch hides them. We are careful here to create ./fakedb/.notmuch in order to trigger a Xapian exception, and not just a missing file check. Thanks to jrollins and amddragon for suggestions. (cherry picked from commit 66f37f5f6864a988f94ddb893e3a176af57f6c8e)
* libnotmuch: add linker script to declare only notmuch_* symbols as global.David Bremner2011-06-23
| | | | | | | | | | | This is closely tied to gcc and particularly gnu ld, but I guess the shared library linking code would need to be adjusted to work on a non-gnu linker anyay. I had to make a few not-obviously related changes to the lib/Makefile.local to make this work: libnotmuch_modules is defined with := and used in place of $^ (cherry picked from commit 014bf85b1c06ff49be2bde5a26433d2cf376cf70)
* debian: add changlog stanza for new snapshot 0.6~237David Bremner2011-06-22
| | | | (cherry picked from commit 17daa480e435ad4c1d8f4f18447eff1ff36dbe00)
* debian: Changelog stanza for new git snapshot 0.6~215David Bremner2011-06-22
| | | | (cherry picked from commit b85a415a7bd91c360c0acd453ead39be854f63f7)
* debian: update symbols file for libnotmuch1David Bremner2011-06-22
| | | | | | One of the Xapian exception symbols has gone missing. Hopefully this doesn't mean we should be bumping the SONAME. (cherry picked from commit e8260d63f1f5a37094801ecd5d110bf48f22ee45)
* debian: Changelog stanza for new snapshot 0.6~180David Bremner2011-06-22
| | | | (cherry picked from commit 54a3983d3c38830e2b609be0a96c5cf6dc6de054)
* debian: update symbols file for libnotmuch1David Bremner2011-06-22
| | | | | This re-exports three symbols from Xapian. (cherry picked from commit f36c36ddd13486d1e38b4dd0efa717108f56c4f9)
* debian: Override RPATH_LDFLAGSDavid Bremner2011-06-22
| | | | | | Probably there is a nicer way to do this; perhaps it should be a configure option. (cherry picked from commit 387dc520dd68cc805e390f3a1399f85b5d5bd83a)
* debian: Add changelog stanza for new snapshot 0.6~171David Bremner2011-06-22
| | | | | | | After some debate, we settled on 0.6~$num as a snapshot version number, at least until 0.6 is released. This has the needed property of sorting after 0.5+nmu$num. (cherry picked from commit 54f7766febc3fa3c9dc475f6ec6718c5e87a189e)
* debian: Add myself (David Bremner) as an uploaderDavid Bremner2011-06-22
| | | | | This avoids having to mark every upload as a non-maintainer upload. (cherry picked from commit e849851d2d38cbf985f3fd884226100b93f3044f)
* debian: Incorporate changelog entries from post 0.5 uploadsDavid Bremner2011-06-22
| | | | | These uploads added the timeout to the tests to fix build failures. (cherry picked from commit 0901faabd90a689728d8079b3163bd76b29d29aa)
* emacs: Show all multipart/alternative parts by default.Jameson Graef Rollins2011-06-22
| | | | | | | | | | | | | | | | | | This is patch is a temporary work-around for a slight regression that popped up in the part handling reorganization. Currently, text/plain parts are always preferred, if present, over other non-text/plain parts in multipart/alternative. However, this means that if there is a blank text/plain part, no content will be displayed. One way to get around this is to set the "notmuch-show-all-multipart/alternative-parts" customization variable to True ('t'), which will cause all parts to always be displayed. Since we want to move forward with the next release, we're going to set this variable true by default, to make sure that no content is unretrievably hidden from the user. Once we come up with a better solution for easy display of hidden parts we can set this back to a default value of 'nil'.
* smtp-dummy: Prefer return rather than exit() in main.Carl Worth2011-06-22
| | | | | | | | | The main() function should be written as just another function with a return value. This allows for more reliable code reuse. Imagine that main() grows too large and needs to be factored into multiple functions. At that point, exit() is probably the wrong thing, yet can also be hard to notice as it's in less-frequently-tested exceptional cases.
* Fix compilation warnings in test/smtp-dummy.c.Dmitry Kurochkin2011-06-22
| | | | | * Remove unused variables in main(): buf, bytes and greeting. * Replace return with no value in main() with exit(3).