From: Damien Leone <damien.leone@fensalir.fr>
To: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] [PATCH] line-cursor-mode: Add an option to disable automatic threads loading when scrolling down for slow CPUs
Date: Sun, 27 Feb 2011 17:58:46 +0100 [thread overview]
Message-ID: <1298825716-sup-3818@mailer> (raw)
[-- Attachment #1.1.1: Type: text/plain, Size: 365 bytes --]
Sup guys,
I run Sup on a Pogoplug-like device which has a slow CPU and I'm
always annoyed when I scroll down to reach an entry and then
everything stalls because some more threads are loading.
This patch adds an option to disable this behavior.
Cheers,
--
Damien Leone <damien.leone@fensalir.fr>
Web: http://dleone.fensalir.fr/
GPG: 0x82EB4DDF
[-- Attachment #1.1.2: 0001-line-cursor-mode-Add-an-option-to-disable-automatic-.patch --]
[-- Type: application/octet-stream, Size: 1249 bytes --]
From edbe3b4811c66c4764c3c69ef80dfe5297e22173 Mon Sep 17 00:00:00 2001
From: Damien Leone <damien.leone@fensalir.fr>
Date: Sun, 27 Feb 2011 17:35:59 +0100
Subject: [PATCH] line-cursor-mode: Add an option to disable automatic threads loading when scrolling down for slow CPUs
---
lib/sup.rb | 1 +
lib/sup/modes/line-cursor-mode.rb | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/sup.rb b/lib/sup.rb
index 1a15914..8cc7dee 100644
--- a/lib/sup.rb
+++ b/lib/sup.rb
@@ -328,6 +328,7 @@ EOS
:confirm_top_posting => true,
:jump_to_open_message => true,
:discard_snippets_from_encrypted_messages => false,
+ :load_more_threads_when_scrolling => true,
:default_attachment_save_dir => "",
:sent_source => "sup://sent",
:poll_interval => 300,
diff --git a/lib/sup/modes/line-cursor-mode.rb b/lib/sup/modes/line-cursor-mode.rb
index 047444b..aad6fe1 100644
--- a/lib/sup/modes/line-cursor-mode.rb
+++ b/lib/sup/modes/line-cursor-mode.rb
@@ -177,7 +177,7 @@ private
end
def call_load_more_callbacks size
- @load_more_q.push size
+ @load_more_q.push size if $config[:load_more_threads_when_scrolling]
end
end
--
1.7.2.3
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
next reply other threads:[~2011-02-27 17:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-27 16:58 Damien Leone [this message]
2011-03-07 21:23 ` Damien Leone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1298825716-sup-3818@mailer \
--to=damien.leone@fensalir.fr \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox