[PATCH v2 1/3] test: update documentation for test_emacs in test/README

2011-07-03 Thread Dmitry Kurochkin
Update test_emacs documentation in test/README according to the latest changes in emacs tests. Move the note regarding setting variables from test/emacs to test/README. --- test/README | 10 +++--- test/emacs |5 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/test

[PATCH v2 0/3] improved broken tests support and test for a bug

2011-07-03 Thread Dmitry Kurochkin
This version implements suggestions by Austin. Regards, Dmitry ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH 2/3] test: improve known broken tests support

2011-07-03 Thread Dmitry Kurochkin
> Oh. I hope atomicity will be there soon. > Three minor comments below. > > On Sun, Jul 3, 2011 at 9:59 PM, Dmitry Kurochkin > wrote: > > There is existing support for broken tests.  But it is not convenient > > to use.  The primary issue is that we have to m

[PATCH 3/3] test: add emacs test for hiding a message following an HTML part

2011-07-03 Thread Dmitry Kurochkin
Human-friendly scenario: * open a thread where a message which ends with an HTML part is followed by another message * make the first message visible * goto the beginning of the second message (first line, first colon) * hit "RET" Result: nothing happens except for "No URL at point" message

[PATCH 2/3] test: improve known broken tests support

2011-07-03 Thread Dmitry Kurochkin
There is existing support for broken tests. But it is not convenient to use. The primary issue is that we have to maintain a set of test_expect_*_failure functions which are equivalent to the normal test_expect_* counterparts except for what functions are called for result reporting. The patch a

[PATCH 1/3] test: update documentation for test_emacs in test/README

2011-07-03 Thread Dmitry Kurochkin
Update test_emacs documentation in test/README according to the latest changes in emacs tests. Move the note regarding setting variables from test/emacs to test/README. --- test/README | 10 +++--- test/emacs |5 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/test

[PATCH 2/2] emacs: skip forward to visible text in notmuch-show-message-extent

2011-07-03 Thread Dmitry Kurochkin
The patch rewrites `notmuch-show-message-extent' to be more robust. The main goal is to make it work as expected if point is invisible. Besides, there are no more point movements and property search functions are used instead manual loops. The comment regarding properties strangeness is removed

[PATCH 1/2] test: add emacs test for hiding message when point is at invisible text

2011-07-03 Thread Dmitry Kurochkin
Human-friendly scenario: * open a thread which has at least 2 messages in notmuch-show view * hide the first message * move to the first line of the second message * press C-a (bound to `beginning-of-visual-line') * press RET (bound to `notmuch-show-toggle-message') Result: the first message is s

[PATCH 2/2] emacs: skip forward to visible text in notmuch-show-message-extent

2011-07-02 Thread Dmitry Kurochkin
The patch rewrites `notmuch-show-message-extent' to be more robust. The main goal is to make it work as expected if point is invisible. Besides, there are no more point movements and property search functions are used instead manual loops. The comment regarding properties strangeness is removed

[PATCH 1/2] test: add emacs test for hiding message when point is at invisible text

2011-07-02 Thread Dmitry Kurochkin
Human-friendly scenario: * open a thread which has at least 2 messages in notmuch-show view * hide the first message * move to the first line of the second message * press C-a (bound to `beginning-of-visual-line') * press RET (bound to `notmuch-show-toggle-message') Result: the first message is s

[PATCH v2] NEWS: spellcheck notes for notmuch 0.6 resease

2011-07-01 Thread Dmitry Kurochkin
Just fix some typos in the recently added NEWS for notmuch 0.6 release. --- Amended version, fixes one more typo. Regards, Dmitry NEWS | 28 ++-- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/NEWS b/NEWS index d55453b..8149899 100644 --- a/NEWS +++

[PATCH] NEWS: spellcheck notes for notmuch 0.6 resease

2011-07-01 Thread Dmitry Kurochkin
Just fix some typos in the recently added NEWS for notmuch 0.6 release. --- NEWS | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/NEWS b/NEWS index d55453b..d9ffb02 100644 --- a/NEWS +++ b/NEWS @@ -79,13 +79,13 @@ Deprecate "notmuch search-tags",

[PATCH v2] NEWS: spellcheck notes for notmuch 0.6 resease

2011-07-01 Thread Dmitry Kurochkin
Just fix some typos in the recently added NEWS for notmuch 0.6 release. --- Amended version, fixes one more typo. Regards, Dmitry NEWS | 28 ++-- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/NEWS b/NEWS index d55453b..8149899 100644 --- a/NEWS +++

[PATCH] NEWS: spellcheck notes for notmuch 0.6 resease

2011-07-01 Thread Dmitry Kurochkin
Just fix some typos in the recently added NEWS for notmuch 0.6 release. --- NEWS | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/NEWS b/NEWS index d55453b..d9ffb02 100644 --- a/NEWS +++ b/NEWS @@ -79,13 +79,13 @@ Deprecate "notmuch search-tags",

[PATCH v2 7/7] emacs: remove unused `point-invisible-p' function

2011-07-01 Thread Dmitry Kurochkin
`point-invisible-p' does not work correctly when `invisible' property is a list. There are standard `invisible-p' and related functions that should be used instead. --- emacs/notmuch-lib.el | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/emacs/notmuch-lib.e

[PATCH v2 6/7] emacs: remove no longer used functions from notmuch-show.el

2011-07-01 Thread Dmitry Kurochkin
Remove `notmuch-show-move-past-invisible-backward' and `notmuch-show-move-past-invisible-forward' functions which are unused. --- emacs/notmuch-show.el |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index ad3cc7b..dcaea

[PATCH v2 5/7] emacs: improve hidden signatures handling in notmuch-show-advance-and-archive

2011-07-01 Thread Dmitry Kurochkin
Use `previous-single-char-property-change' instead of going through each character by hand and testing it's visibility. This fixes `notmuch-show-advance-and-archive' to work for the last message in thread with hidden signature. --- emacs/notmuch-show.el | 17 + 1 files changed,

[PATCH v2 4/7] test: `notmuch-show-advance-and-archive' with invisible signature

2011-07-01 Thread Dmitry Kurochkin
Add Emacs test to check that `notmuch-show-advance-and-archive' works for the last message in thread with invisible signature. --- test/emacs | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/test/emacs b/test/emacs index 53f455a..708c504 100755 --- a/test/emac

[PATCH v2 3/7] test: do not set frame width in emacs

2011-07-01 Thread Dmitry Kurochkin
+20,6 @@ ;; ;; Authors: Dmitry Kurochkin -;; avoid crazy 10-column default of --batch -(set-frame-width (window-frame (get-buffer-window)) 80) - ;; `read-file-name' by default uses `completing-read' function to read ;; user input. It does not respect `standard-input' variable

[PATCH v2 2/7] test: avoid using screen(1) configuration files

2011-07-01 Thread Dmitry Kurochkin
Set SCREENRC and SYSSCREENRC environment variables to "/dev/null" as suggested by Jim Paris to avoid potential problems with screen(1) configuration files. --- test/test-lib.sh |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/test-lib.sh b/test/test-lib.sh index 68859

[PATCH v2 1/7] test: run emacs inside screen

2011-07-01 Thread Dmitry Kurochkin
Before the change, emacs run in daemon mode without any visible buffers. Turns out that this affects emacs behavior in some cases. In particular, `window-end' function returns `point-max' instead of the last visible position. That makes it hard or impossible to implement some tests. The patch r

[PATCH v2 0/7] advance-and-archive bugfix, run emacs inside screen

2011-07-01 Thread Dmitry Kurochkin
Amended patch series. Only minor changes: * redirect errors from test_emacs in the emacs server wait loop to /dev/null * reordered patches Regards, Dmitry

[PATCH v2 4/7] test: `notmuch-show-advance-and-archive' with invisible signature

2011-07-01 Thread Dmitry Kurochkin
Add Emacs test to check that `notmuch-show-advance-and-archive' works for the last message in thread with invisible signature. --- test/emacs | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/test/emacs b/test/emacs index 53f455a..708c504 100755 --- a/test/emac

[PATCH v2 3/7] test: do not set frame width in emacs

2011-07-01 Thread Dmitry Kurochkin
+20,6 @@ ;; ;; Authors: Dmitry Kurochkin -;; avoid crazy 10-column default of --batch -(set-frame-width (window-frame (get-buffer-window)) 80) - ;; `read-file-name' by default uses `completing-read' function to read ;; user input. It does not respect `standard-input' variable

[PATCH v2 2/7] test: avoid using screen(1) configuration files

2011-07-01 Thread Dmitry Kurochkin
Set SCREENRC and SYSSCREENRC environment variables to "/dev/null" as suggested by Jim Paris to avoid potential problems with screen(1) configuration files. --- test/test-lib.sh |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/test-lib.sh b/test/test-lib.sh index 68859

[PATCH v2 1/7] test: run emacs inside screen

2011-07-01 Thread Dmitry Kurochkin
Before the change, emacs run in daemon mode without any visible buffers. Turns out that this affects emacs behavior in some cases. In particular, `window-end' function returns `point-max' instead of the last visible position. That makes it hard or impossible to implement some tests. The patch r

[PATCH v2 7/7] emacs: remove unused `point-invisible-p' function

2011-07-01 Thread Dmitry Kurochkin
`point-invisible-p' does not work correctly when `invisible' property is a list. There are standard `invisible-p' and related functions that should be used instead. --- emacs/notmuch-lib.el | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/emacs/notmuch-lib.e

[PATCH v2 6/7] emacs: remove no longer used functions from notmuch-show.el

2011-07-01 Thread Dmitry Kurochkin
Remove `notmuch-show-move-past-invisible-backward' and `notmuch-show-move-past-invisible-forward' functions which are unused. --- emacs/notmuch-show.el |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index ad3cc7b..dcaea

[PATCH v2 5/7] emacs: improve hidden signatures handling in notmuch-show-advance-and-archive

2011-07-01 Thread Dmitry Kurochkin
Use `previous-single-char-property-change' instead of going through each character by hand and testing it's visibility. This fixes `notmuch-show-advance-and-archive' to work for the last message in thread with hidden signature. --- emacs/notmuch-show.el | 17 + 1 files changed,

[PATCH v2 0/7] advance-and-archive bugfix, run emacs inside screen

2011-07-01 Thread Dmitry Kurochkin
Amended patch series. Only minor changes: * redirect errors from test_emacs in the emacs server wait loop to /dev/null * reordered patches Regards, Dmitry ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuc

[PATCH] test: do not hide test_emacs errors

2011-07-01 Thread Dmitry Kurochkin
Do not redirect test_emacs stderr to /dev/null. Test_emacs uses emacsclient(1) now and it does not print unwanted messages (like those from `message') to stderr. But it does print useful errors, e.g. when emacs server connection fails, given expression is not valid or undefined function is called

[PATCH] test: json show format of message with inline attachment with filename

2011-07-01 Thread Dmitry Kurochkin
The patch adds a test to check that json show format includes filenames for attachments with inline disposition. --- Carl, I owe you this test case for my patch that added filenames for inline attachments :) Regards, Dmitry test/json | 13 + 1 files changed, 13 insertions(+), 0

[PATCH] test: do not hide test_emacs errors

2011-07-01 Thread Dmitry Kurochkin
Do not redirect test_emacs stderr to /dev/null. Test_emacs uses emacsclient(1) now and it does not print unwanted messages (like those from `message') to stderr. But it does print useful errors, e.g. when emacs server connection fails, given expression is not valid or undefined function is called

[PATCH] test: json show format of message with inline attachment with filename

2011-07-01 Thread Dmitry Kurochkin
The patch adds a test to check that json show format includes filenames for attachments with inline disposition. --- Carl, I owe you this test case for my patch that added filenames for inline attachments :) Regards, Dmitry test/json | 13 + 1 files changed, 13 insertions(+), 0

[PATCH 1/6] test: run emacs inside screen

2011-06-30 Thread Dmitry Kurochkin
On Wed, 29 Jun 2011 16:16:40 -0400, Jim Paris wrote: > Dmitry Kurochkin wrote: > > Before the change, emacs run in daemon mode without any visible > > buffers. Turns out that this affects emacs behavior in some > > cases. In particular, `window-end' function returns

[PATCH] test: avoid using screen(1) configuration files

2011-06-30 Thread Dmitry Kurochkin
Set SCREENRC and SYSSCREENRC environment variables to "/dev/null" as suggested by Jim Paris to avoid potential problems with screen(1) configuration files. --- test/test-lib.sh |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/test-lib.sh b/test/test-lib.sh index 8d7c9

[PATCH 1/3] test: `notmuch-show-advance-and-archive' with invisible signature

2011-06-29 Thread Dmitry Kurochkin
On Wed, 29 Jun 2011 09:10:19 +0400, Dmitry Kurochkin wrote: > On Wed, 29 Jun 2011 05:48:50 +0400, Dmitry Kurochkin gmail.com> wrote: > > Add Emacs test to check that `notmuch-show-advance-and-archive' > > works for the last message in thread with invisible signature. >

[PATCH 6/6] emacs: remove unused `point-invisible-p' function

2011-06-29 Thread Dmitry Kurochkin
`point-invisible-p' does not work correctly when `invisible' property is a list. There are standard `invisible-p' and related functions that should be used instead. --- emacs/notmuch-lib.el | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/emacs/notmuch-lib.e

[PATCH 5/6] emacs: remove no longer used functions from notmuch-show.el

2011-06-29 Thread Dmitry Kurochkin
Remove `notmuch-show-move-past-invisible-backward' and `notmuch-show-move-past-invisible-forward' functions which are unused. --- emacs/notmuch-show.el |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index ad3cc7b..dcaea

[PATCH 4/6] emacs: improve hidden signatures handling in notmuch-show-advance-and-archive

2011-06-29 Thread Dmitry Kurochkin
Use `previous-single-char-property-change' instead of going through each character by hand and testing it's visibility. This fixes `notmuch-show-advance-and-archive' to work for the last message in thread with hidden signature. --- emacs/notmuch-show.el | 17 + 1 files changed,

[PATCH 3/6] test: `notmuch-show-advance-and-archive' with invisible signature

2011-06-29 Thread Dmitry Kurochkin
Add Emacs test to check that `notmuch-show-advance-and-archive' works for the last message in thread with invisible signature. --- test/emacs | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/test/emacs b/test/emacs index e59de47..bad1122 100755 --- a/test/emac

[PATCH 2/6] test: do not set frame width in emacs

2011-06-29 Thread Dmitry Kurochkin
+20,6 @@ ;; ;; Authors: Dmitry Kurochkin -;; avoid crazy 10-column default of --batch -(set-frame-width (window-frame (get-buffer-window)) 80) - ;; `read-file-name' by default uses `completing-read' function to read ;; user input. It does not respect `standard-input' variable

[PATCH 1/6] test: run emacs inside screen

2011-06-29 Thread Dmitry Kurochkin
Before the change, emacs run in daemon mode without any visible buffers. Turns out that this affects emacs behavior in some cases. In particular, `window-end' function returns `point-max' instead of the last visible position. That makes it hard or impossible to implement some tests. The patch r

Re: [PATCH 1/6] test: run emacs inside screen

2011-06-29 Thread Dmitry Kurochkin
On Wed, 29 Jun 2011 16:16:40 -0400, Jim Paris wrote: > Dmitry Kurochkin wrote: > > Before the change, emacs run in daemon mode without any visible > > buffers. Turns out that this affects emacs behavior in some > > cases. In particular, `window-end' function returns

[PATCH] test: avoid using screen(1) configuration files

2011-06-29 Thread Dmitry Kurochkin
Set SCREENRC and SYSSCREENRC environment variables to "/dev/null" as suggested by Jim Paris to avoid potential problems with screen(1) configuration files. --- test/test-lib.sh |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/test-lib.sh b/test/test-lib.sh index 8d7c9

Re: [PATCH 1/3] test: `notmuch-show-advance-and-archive' with invisible signature

2011-06-29 Thread Dmitry Kurochkin
On Wed, 29 Jun 2011 09:10:19 +0400, Dmitry Kurochkin wrote: > On Wed, 29 Jun 2011 05:48:50 +0400, Dmitry Kurochkin > wrote: > > Add Emacs test to check that `notmuch-show-advance-and-archive' > > works for the last message in thread with invisible signature. > > -

[PATCH 6/6] emacs: remove unused `point-invisible-p' function

2011-06-29 Thread Dmitry Kurochkin
`point-invisible-p' does not work correctly when `invisible' property is a list. There are standard `invisible-p' and related functions that should be used instead. --- emacs/notmuch-lib.el | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/emacs/notmuch-lib.e

[PATCH 5/6] emacs: remove no longer used functions from notmuch-show.el

2011-06-29 Thread Dmitry Kurochkin
Remove `notmuch-show-move-past-invisible-backward' and `notmuch-show-move-past-invisible-forward' functions which are unused. --- emacs/notmuch-show.el |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index ad3cc7b..dcaea

[PATCH 4/6] emacs: improve hidden signatures handling in notmuch-show-advance-and-archive

2011-06-29 Thread Dmitry Kurochkin
Use `previous-single-char-property-change' instead of going through each character by hand and testing it's visibility. This fixes `notmuch-show-advance-and-archive' to work for the last message in thread with hidden signature. --- emacs/notmuch-show.el | 17 + 1 files changed,

[PATCH 3/6] test: `notmuch-show-advance-and-archive' with invisible signature

2011-06-29 Thread Dmitry Kurochkin
Add Emacs test to check that `notmuch-show-advance-and-archive' works for the last message in thread with invisible signature. --- test/emacs | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/test/emacs b/test/emacs index e59de47..bad1122 100755 --- a/test/emac

[PATCH 2/6] test: do not set frame width in emacs

2011-06-29 Thread Dmitry Kurochkin
+20,6 @@ ;; ;; Authors: Dmitry Kurochkin -;; avoid crazy 10-column default of --batch -(set-frame-width (window-frame (get-buffer-window)) 80) - ;; `read-file-name' by default uses `completing-read' function to read ;; user input. It does not respect `standard-input' variable

[PATCH 1/6] test: run emacs inside screen

2011-06-29 Thread Dmitry Kurochkin
Before the change, emacs run in daemon mode without any visible buffers. Turns out that this affects emacs behavior in some cases. In particular, `window-end' function returns `point-max' instead of the last visible position. That makes it hard or impossible to implement some tests. The patch r

[PATCH 1/3] test: `notmuch-show-advance-and-archive' with invisible signature

2011-06-29 Thread Dmitry Kurochkin
On Wed, 29 Jun 2011 05:48:50 +0400, Dmitry Kurochkin wrote: > Add Emacs test to check that `notmuch-show-advance-and-archive' > works for the last message in thread with invisible signature. > --- > > This patch series fixes the bug reported by Sebastien in [1]. I > was a

[PATCH] emacs: remove unused `point-invisible-p' function

2011-06-29 Thread Dmitry Kurochkin
`point-invisible-p' does not work correctly when `invisible' property is a list. There are standard `invisible-p' and related functions that should be used instead. --- emacs/notmuch-lib.el | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/emacs/notmuch-lib.e

bug in emacs-ui ?

2011-06-29 Thread Dmitry Kurochkin
On Tue, 28 Jun 2011 21:38:17 +0400, Dmitry Kurochkin wrote: > Hi Jani. > > On Tue, 28 Jun 2011 10:35:48 + (UTC), Jani Nikula > wrote: > > Carl Worth writes: > > > > > > > > On Wed, 22 Jun 2011 08:50:23 +0200, Sebastien Binet > > > wrot

[PATCH 3/3] emacs: remove no longer used functions from notmuch-show.el

2011-06-29 Thread Dmitry Kurochkin
Remove `notmuch-show-move-past-invisible-backward' and `notmuch-show-move-past-invisible-forward' functions which are unused. --- emacs/notmuch-show.el |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index ad3cc7b..dcaea

[PATCH 2/3] emacs: improve hidden signatures handling in notmuch-show-advance-and-archive

2011-06-29 Thread Dmitry Kurochkin
Use `previous-single-char-property-change' instead of going through each character by hand and testing it's visibility. This fixes `notmuch-show-advance-and-archive' to work for the last message in thread with hidden signature. --- emacs/notmuch-show.el | 17 + 1 files changed,

[PATCH 1/3] test: `notmuch-show-advance-and-archive' with invisible signature

2011-06-29 Thread Dmitry Kurochkin
Add Emacs test to check that `notmuch-show-advance-and-archive' works for the last message in thread with invisible signature. --- This patch series fixes the bug reported by Sebastien in [1]. I was able to reproduce it and confirm that the second patch from this series fixes the problem. Unfort

[PATCH 10/10] test: use emacsclient(1) for Emacs tests

2011-06-29 Thread Dmitry Kurochkin
On Tue, 28 Jun 2011 15:14:04 -0700, Carl Worth wrote: > On Tue, 28 Jun 2011 08:45:11 +0400, Dmitry Kurochkin gmail.com> wrote: > > Before the change, every Emacs test ran in a separate Emacs > > instance. Starting Emacs many times wastes considerable time and > > it gets

[PATCH 2/2] test: use emacsclient(1) for Emacs tests

2011-06-29 Thread Dmitry Kurochkin
On Tue, 28 Jun 2011 13:10:58 -0700, Carl Worth wrote: Non-text part: multipart/signed > On Tue, 28 Jun 2011 20:42:42 +0400, Dmitry Kurochkin gmail.com> wrote: > > I would like to hear what other (Carl in particular) think about this. > > If the consensus is for your approach, I

[PATCH 2/2] test: use emacsclient(1) for Emacs tests

2011-06-29 Thread Dmitry Kurochkin
On Tue, 28 Jun 2011 13:10:58 -0700, Carl Worth wrote: > On Tue, 28 Jun 2011 20:42:42 +0400, Dmitry Kurochkin gmail.com> wrote: > > I would like to hear what other (Carl in particular) think about this. > > If the consensus is for your approach, I would be happy to impleme

Re: [PATCH 1/3] test: `notmuch-show-advance-and-archive' with invisible signature

2011-06-28 Thread Dmitry Kurochkin
On Wed, 29 Jun 2011 05:48:50 +0400, Dmitry Kurochkin wrote: > Add Emacs test to check that `notmuch-show-advance-and-archive' > works for the last message in thread with invisible signature. > --- > > This patch series fixes the bug reported by Sebastien in [1]. I > w

[PATCH] emacs: remove unused `point-invisible-p' function

2011-06-28 Thread Dmitry Kurochkin
`point-invisible-p' does not work correctly when `invisible' property is a list. There are standard `invisible-p' and related functions that should be used instead. --- emacs/notmuch-lib.el | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/emacs/notmuch-lib.e

bug in emacs-ui ?

2011-06-28 Thread Dmitry Kurochkin
Hi Jani. On Tue, 28 Jun 2011 10:35:48 + (UTC), Jani Nikula wrote: > Carl Worth writes: > > > > > On Wed, 22 Jun 2011 08:50:23 +0200, Sebastien Binet > > wrote: > > > On Tue, 21 Jun 2011 15:09:20 -0700, Carl Worth wrote: > > > > Perhaps this is an emacs bug? > > > could be, but, > > > >

[PATCH 2/2] test: use emacsclient(1) for Emacs tests

2011-06-28 Thread Dmitry Kurochkin
On Tue, 28 Jun 2011 12:22:57 -0400, Austin Clements wrote: > Quoth myself on Jun 27 at 11:49 pm: > > Quoth Dmitry Kurochkin on Jun 28 at 5:03 am: > > EMACSDONE=$TEST_DIRECTORY/emacsdone > > mkfifo $EMACSDONE > > coproc emacs --batch --eval '(while t (eva

Re: bug in emacs-ui ?

2011-06-28 Thread Dmitry Kurochkin
On Tue, 28 Jun 2011 21:38:17 +0400, Dmitry Kurochkin wrote: > Hi Jani. > > On Tue, 28 Jun 2011 10:35:48 + (UTC), Jani Nikula wrote: > > Carl Worth writes: > > > > > > > > On Wed, 22 Jun 2011 08:50:23 +0200, Sebastien Binet > > > wrote:

[PATCH 3/3] emacs: remove no longer used functions from notmuch-show.el

2011-06-28 Thread Dmitry Kurochkin
Remove `notmuch-show-move-past-invisible-backward' and `notmuch-show-move-past-invisible-forward' functions which are unused. --- emacs/notmuch-show.el |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index ad3cc7b..dcaea

[PATCH 2/3] emacs: improve hidden signatures handling in notmuch-show-advance-and-archive

2011-06-28 Thread Dmitry Kurochkin
Use `previous-single-char-property-change' instead of going through each character by hand and testing it's visibility. This fixes `notmuch-show-advance-and-archive' to work for the last message in thread with hidden signature. --- emacs/notmuch-show.el | 17 + 1 files changed,

[PATCH 1/3] test: `notmuch-show-advance-and-archive' with invisible signature

2011-06-28 Thread Dmitry Kurochkin
Add Emacs test to check that `notmuch-show-advance-and-archive' works for the last message in thread with invisible signature. --- This patch series fixes the bug reported by Sebastien in [1]. I was able to reproduce it and confirm that the second patch from this series fixes the problem. Unfort

Re: [PATCH 10/10] test: use emacsclient(1) for Emacs tests

2011-06-28 Thread Dmitry Kurochkin
On Tue, 28 Jun 2011 15:14:04 -0700, Carl Worth wrote: > On Tue, 28 Jun 2011 08:45:11 +0400, Dmitry Kurochkin > wrote: > > Before the change, every Emacs test ran in a separate Emacs > > instance. Starting Emacs many times wastes considerable time and > > it gets worse

Re: [PATCH 2/2] test: use emacsclient(1) for Emacs tests

2011-06-28 Thread Dmitry Kurochkin
On Tue, 28 Jun 2011 13:10:58 -0700, Carl Worth wrote: Non-text part: multipart/signed > On Tue, 28 Jun 2011 20:42:42 +0400, Dmitry Kurochkin > wrote: > > I would like to hear what other (Carl in particular) think about this. > > If the consensus is for your approach, I

Re: [PATCH 2/2] test: use emacsclient(1) for Emacs tests

2011-06-28 Thread Dmitry Kurochkin
On Tue, 28 Jun 2011 13:10:58 -0700, Carl Worth wrote: > On Tue, 28 Jun 2011 20:42:42 +0400, Dmitry Kurochkin > wrote: > > I would like to hear what other (Carl in particular) think about this. > > If the consensus is for your approach, I would be happy to implement > >

Re: bug in emacs-ui ?

2011-06-28 Thread Dmitry Kurochkin
Hi Jani. On Tue, 28 Jun 2011 10:35:48 + (UTC), Jani Nikula wrote: > Carl Worth writes: > > > > > On Wed, 22 Jun 2011 08:50:23 +0200, Sebastien Binet > > wrote: > > > On Tue, 21 Jun 2011 15:09:20 -0700, Carl Worth wrote: > > > > Perhaps this is an emacs bug? > > > could be, but, > > > >

Re: [PATCH 2/2] test: use emacsclient(1) for Emacs tests

2011-06-28 Thread Dmitry Kurochkin
On Tue, 28 Jun 2011 12:22:57 -0400, Austin Clements wrote: > Quoth myself on Jun 27 at 11:49 pm: > > Quoth Dmitry Kurochkin on Jun 28 at 5:03 am: > > EMACSDONE=$TEST_DIRECTORY/emacsdone > > mkfifo $EMACSDONE > > coproc emacs --batch --eval '(while t (eva

[PATCH] test: use emacsclient(1) for Emacs tests

2011-06-28 Thread Dmitry Kurochkin
Before the change, every Emacs test ran in a separate Emacs instance. Starting Emacs many times wastes considerable time and it gets worse as the test suite grows. The patch solves this by using a single Emacs server and emacsclient(1) to run multiple tests. Emacs server is started on the first

[PATCH 10/10] test: use emacsclient(1) for Emacs tests

2011-06-28 Thread Dmitry Kurochkin
Before the change, every Emacs test ran in a separate Emacs instance. Starting Emacs many times wastes considerable time and it gets worse as the test suite grows. The patch solves this by using a single Emacs server and emacsclient(1) to run multiple tests. Emacs server is started on the first

[PATCH 09/10] test: generate run_emacs script once on test startup

2011-06-28 Thread Dmitry Kurochkin
Instead of generating auxiliary run_emacs script every time test_emacs is run, do it once in the beginning of the test. Also, use absolute paths in the script to make it more robust. --- test/test-lib.sh | 17 +++-- 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/tes

[PATCH 08/10] test: set variables using `let' instead of `setq' in Emacs tests

2011-06-28 Thread Dmitry Kurochkin
Using `setq' for setting variables in Emacs tests affect other tests that may run in the same Emacs environment. Currently it works because each test is run in a separate Emacs instance. But in the future multiple tests will run in a single Emacs instance. The patch changes all variables to use `

[PATCH 07/10] test: use emacs_deliver_message in Emacs SMTP send test

2011-06-28 Thread Dmitry Kurochkin
Minor changes to expected results of other Emacs tests were needed because the message Date header changed. --- test/emacs | 34 +- 1 files changed, 9 insertions(+), 25 deletions(-) diff --git a/test/emacs b/test/emacs index 4592005..409e033 100755 --- a/test/ema

[PATCH 06/10] test: remove some sed(1) calls in Emacs tests

2011-06-28 Thread Dmitry Kurochkin
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. --- t

[PATCH 05/10] test: save buffer content to file instead of printing it in Emacs tests

2011-06-28 Thread Dmitry Kurochkin
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

[PATCH 04/10] test: wrap and indent test_emacs calls

2011-06-28 Thread Dmitry Kurochkin
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/emacs | 124 ++

[PATCH 03/10] test: cleanup test_emacs

2011-06-28 Thread Dmitry Kurochkin
/test/test-lib.el +++ b/test/test-lib.el @@ -20,6 +20,14 @@ ;; ;; Authors: Dmitry Kurochkin +;; avoid crazy 10-column default of --batch +(set-frame-width (window-frame (get-buffer-window)) 80) + +(defun notmuch-test-wait () + "Wait for process completion." + (while (get-buffer-proces

[PATCH 02/10] test: do not set `message-signature' in test_emacs

2011-06-28 Thread Dmitry Kurochkin
It is no longer needed since tests are run in a temporary home directory instead of the user's one. --- test/test-lib.sh |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/test/test-lib.sh b/test/test-lib.sh index cc20f41..3ec388c 100755 --- a/test/test-lib.sh +++ b/test/te

[PATCH 01/10] test: fix argument order of test_expect_equal_file in few tests

2011-06-28 Thread Dmitry Kurochkin
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. --- test/emacs |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/emacs b/test/emacs index 6f82b08..f4ff3f1

[PATCH 2/2] test: use emacsclient(1) for Emacs tests

2011-06-28 Thread Dmitry Kurochkin
On Tue, 28 Jun 2011 00:17:42 -0400, Austin Clements wrote: > Quoth Dmitry Kurochkin on Jun 28 at 7:59 am: > > I am sure that would work, but I do not like the complexity. How about > > getting back to standard emacsclient and running a watchdog in the > > emacs? Like: &

[PATCH 2/2] test: use emacsclient(1) for Emacs tests

2011-06-28 Thread Dmitry Kurochkin
On Mon, 27 Jun 2011 23:49:37 -0400, Austin Clements wrote: > Quoth Dmitry Kurochkin on Jun 28 at 5:03 am: > > > > The only way I know to > > > > reliably kill a child process is to open a pipe to it and have it exit > > > > on its own when it reads EOF.

[PATCH 2/2] test: use emacsclient(1) for Emacs tests

2011-06-28 Thread Dmitry Kurochkin
Austin, On Tue, 28 Jun 2011 00:22:41 +0400, Dmitry Kurochkin wrote: > On Mon, 27 Jun 2011 16:02:12 -0400, Austin Clements > wrote: > > This looks like a great idea! The test suite has been getting irritating > > slow. > > > > A few minor comments: This pa

[PATCH 2/2] test: use emacsclient(1) for Emacs tests

2011-06-28 Thread Dmitry Kurochkin
;))' >&$EMACSFD > echo 'Test' >&$EMACSFD > > Thoughts? > I like it and I will implement it. Thanks for the idea. Regards, Dmitry > [1] If you don't do this, emacs complains that it can't read from > stdin before it exits. It wo

[PATCH] test: use emacsclient(1) for Emacs tests

2011-06-27 Thread Dmitry Kurochkin
Before the change, every Emacs test ran in a separate Emacs instance. Starting Emacs many times wastes considerable time and it gets worse as the test suite grows. The patch solves this by using a single Emacs server and emacsclient(1) to run multiple tests. Emacs server is started on the first

[PATCH 04/10] test: wrap and indent test_emacs calls

2011-06-27 Thread Dmitry Kurochkin
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/emacs | 124 ++

[PATCH 10/10] test: use emacsclient(1) for Emacs tests

2011-06-27 Thread Dmitry Kurochkin
Before the change, every Emacs test ran in a separate Emacs instance. Starting Emacs many times wastes considerable time and it gets worse as the test suite grows. The patch solves this by using a single Emacs server and emacsclient(1) to run multiple tests. Emacs server is started on the first

[PATCH 08/10] test: set variables using `let' instead of `setq' in Emacs tests

2011-06-27 Thread Dmitry Kurochkin
Using `setq' for setting variables in Emacs tests affect other tests that may run in the same Emacs environment. Currently it works because each test is run in a separate Emacs instance. But in the future multiple tests will run in a single Emacs instance. The patch changes all variables to use `

[PATCH 09/10] test: generate run_emacs script once on test startup

2011-06-27 Thread Dmitry Kurochkin
Instead of generating auxiliary run_emacs script every time test_emacs is run, do it once in the beginning of the test. Also, use absolute paths in the script to make it more robust. --- test/test-lib.sh | 17 +++-- 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/tes

[PATCH 07/10] test: use emacs_deliver_message in Emacs SMTP send test

2011-06-27 Thread Dmitry Kurochkin
Minor changes to expected results of other Emacs tests were needed because the message Date header changed. --- test/emacs | 34 +- 1 files changed, 9 insertions(+), 25 deletions(-) diff --git a/test/emacs b/test/emacs index 4592005..409e033 100755 --- a/test/ema

[PATCH 05/10] test: save buffer content to file instead of printing it in Emacs tests

2011-06-27 Thread Dmitry Kurochkin
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

[PATCH 06/10] test: remove some sed(1) calls in Emacs tests

2011-06-27 Thread Dmitry Kurochkin
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. --- t

[PATCH 03/10] test: cleanup test_emacs

2011-06-27 Thread Dmitry Kurochkin
/test/test-lib.el +++ b/test/test-lib.el @@ -20,6 +20,14 @@ ;; ;; Authors: Dmitry Kurochkin +;; avoid crazy 10-column default of --batch +(set-frame-width (window-frame (get-buffer-window)) 80) + +(defun notmuch-test-wait () + "Wait for process completion." + (while (get-buffer-proces

[PATCH 02/10] test: do not set `message-signature' in test_emacs

2011-06-27 Thread Dmitry Kurochkin
It is no longer needed since tests are run in a temporary home directory instead of the user's one. --- test/test-lib.sh |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/test/test-lib.sh b/test/test-lib.sh index cc20f41..3ec388c 100755 --- a/test/test-lib.sh +++ b/test/te

[PATCH 01/10] test: fix argument order of test_expect_equal_file in few tests

2011-06-27 Thread Dmitry Kurochkin
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. --- test/emacs |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/emacs b/test/emacs index 6f82b08..f4ff3f1

<    6   7   8   9   10   11   12   13   >