* [PATCH] emacs: when archiving move the cursor depending on the sort order.
@ 2010-04-13 13:04 Servilio Afre Puentes
2010-04-14 8:35 ` Michal Sojka
0 siblings, 1 reply; 4+ messages in thread
From: Servilio Afre Puentes @ 2010-04-13 13:04 UTC (permalink / raw)
To: notmuch
The current hardcoded behaviour will not take you to the next unread
thread when the sort order is set to newer-first from the default of
older-first.
Signed-off-by: Servilio Afre Puentes <servilio@gmail.com>
---
emacs/notmuch.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 517c53a..728aa2b 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -572,7 +572,9 @@ thread or threads in the current region."
This function advances the next thread when finished."
(interactive)
(notmuch-search-remove-tag-thread "inbox")
- (forward-line))
+ (if notmuch-search-oldest-first
+ (forward-line)
+ (previous-line)))
(defun notmuch-search-process-sentinel (proc msg)
"Add a message to let user know when \"notmuch search\" exits"
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] emacs: when archiving move the cursor depending on the sort order.
2010-04-13 13:04 [PATCH] emacs: when archiving move the cursor depending on the sort order Servilio Afre Puentes
@ 2010-04-14 8:35 ` Michal Sojka
2010-04-14 9:53 ` Sebastian Spaeth
0 siblings, 1 reply; 4+ messages in thread
From: Michal Sojka @ 2010-04-14 8:35 UTC (permalink / raw)
To: Servilio Afre Puentes, notmuch
On Tue, 13 Apr 2010, Servilio Afre Puentes wrote:
> The current hardcoded behaviour will not take you to the next unread
> thread when the sort order is set to newer-first from the default of
> older-first.
Is this really what we want? If I sort messages by newest first, it
menas that I want to process my emails from the newest to the oldest.
I'm satisfied with the current behavour.
-Michal
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] emacs: when archiving move the cursor depending on the sort order.
2010-04-14 8:35 ` Michal Sojka
@ 2010-04-14 9:53 ` Sebastian Spaeth
2010-04-14 14:29 ` Servilio Afre Puentes
0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Spaeth @ 2010-04-14 9:53 UTC (permalink / raw)
To: Michal Sojka, Servilio Afre Puentes, notmuch
On 2010-04-14, Michal Sojka wrote:
> On Tue, 13 Apr 2010, Servilio Afre Puentes wrote:
> > The current hardcoded behaviour will not take you to the next unread
> > thread when the sort order is set to newer-first from the default of
> > older-first.
>
> Is this really what we want? If I sort messages by newest first, it
> menas that I want to process my emails from the newest to the oldest.
> I'm satisfied with the current behavour.
Agreed, I would be very surprised to get a different behavior.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] emacs: when archiving move the cursor depending on the sort order.
2010-04-14 9:53 ` Sebastian Spaeth
@ 2010-04-14 14:29 ` Servilio Afre Puentes
0 siblings, 0 replies; 4+ messages in thread
From: Servilio Afre Puentes @ 2010-04-14 14:29 UTC (permalink / raw)
To: Sebastian Spaeth; +Cc: notmuch
On 14 April 2010 05:53, Sebastian Spaeth <Sebastian@sspaeth.de> wrote:
> On 2010-04-14, Michal Sojka wrote:
>> On Tue, 13 Apr 2010, Servilio Afre Puentes wrote:
>> > The current hardcoded behaviour will not take you to the next unread
>> > thread when the sort order is set to newer-first from the default of
>> > older-first.
>>
>> Is this really what we want? If I sort messages by newest first, it
>> menas that I want to process my emails from the newest to the oldest.
>> I'm satisfied with the current behavour.
>
> Agreed, I would be very surprised to get a different behavior.
Hmmm, interesting. I still want to process my messages from oldest to
newest but prefer them to be shown with the newest at the top.
I will create and send a second version of the patch later today that
takes this into account...
Servilio
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-14 14:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-13 13:04 [PATCH] emacs: when archiving move the cursor depending on the sort order Servilio Afre Puentes
2010-04-14 8:35 ` Michal Sojka
2010-04-14 9:53 ` Sebastian Spaeth
2010-04-14 14:29 ` Servilio Afre Puentes
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).