Re: [twmode-users] 追加部分のみ再描画 するようにしました

2010-01-19 スレッド表示 Yuto Hayamizu

はやみずです

%@ については再描画しないと延々"1 minute ago"くらいが並ぶことになってし
まいますね。どうしたもんか、、

At Sun, 17 Jan 2010 23:01:05 +0900 (JST),
Tadashi MATSUO wrote:
> 
> 松尾です。
> 
> twittering-render-timeline()で追加されたstatusだけを
> 再描画できるようにしました。
> 
> optional引数additionalがnon-nilのとき、既存のbuffer
> 内容を消去せず、twittering-timeline-dataの中のまだ
> 描画されていないstatusだけを追加します。
> 
> 今回の更新では自動取得時にのみ追加的再描画が行われます。
> 自動取得時の硬直時間が短くなっていると思います。
> 
> twittering-status-formatを変更しても描画済みの
> statusの描画には反映されない点がこれまでと異なりますが
> あまり重要でないと思うのでそのままにしてあります。
> 
> 
> 今回の変更でscroll-modeの実装も変更したのですが、機能と
> 名前の対応が分かりにくいような気がします。
> 意味としては「更新の前後でカーソル位置のstatusが変わらない
> mode」ですよね?「現在のstatusにくっつく」という意味で
> sticky-mode等の方が機能が分かりやすいんじゃないでしょうか。
> 
> ---
> 松尾 直志 
> 
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> twmode-users mailing list
> twmode-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/twmode-users

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
twmode-users mailing list
twmode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/twmode-users


Re: [twmode-users] 追加部分のみ再描画 するようにしました

2010-01-17 スレッド表示 Yuto Hayamizu

はやみずです

> 今回の変更でscroll-modeの実装も変更したのですが、機能と
> 名前の対応が分かりにくいような気がします。
> 意味としては「更新の前後でカーソル位置のstatusが変わらない
> mode」ですよね?「現在のstatusにくっつく」という意味で
> sticky-mode等の方が機能が分かりやすいんじゃないでしょうか。

sticky-modeのほうがわかりやすいですね。scroll-modeは正直わかりにくい名
前だと思います。


At Sun, 17 Jan 2010 23:01:05 +0900 (JST),
Tadashi MATSUO wrote:
> 
> 松尾です。
> 
> twittering-render-timeline()で追加されたstatusだけを
> 再描画できるようにしました。
> 
> optional引数additionalがnon-nilのとき、既存のbuffer
> 内容を消去せず、twittering-timeline-dataの中のまだ
> 描画されていないstatusだけを追加します。
> 
> 今回の更新では自動取得時にのみ追加的再描画が行われます。
> 自動取得時の硬直時間が短くなっていると思います。
> 
> twittering-status-formatを変更しても描画済みの
> statusの描画には反映されない点がこれまでと異なりますが
> あまり重要でないと思うのでそのままにしてあります。
> 
> 
> 今回の変更でscroll-modeの実装も変更したのですが、機能と
> 名前の対応が分かりにくいような気がします。
> 意味としては「更新の前後でカーソル位置のstatusが変わらない
> mode」ですよね?「現在のstatusにくっつく」という意味で
> sticky-mode等の方が機能が分かりやすいんじゃないでしょうか。
> 
> ---
> 松尾 直志 
> 
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> twmode-users mailing list
> twmode-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/twmode-users

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
twmode-users mailing list
twmode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/twmode-users


Re: [twmode-users] 追加部分のみ再描画 するようにしました

2010-01-17 スレッド表示 Yuto Hayamizu

はやみずです

> twittering-render-timeline()で追加されたstatusだけを
> 再描画できるようにしました。

実装ありがとうございます。


> twittering-status-formatを変更しても描画済みの
> statusの描画には反映されない点がこれまでと異なりますが
> あまり重要でないと思うのでそのままにしてあります。

これはおいおい対応していきましょう。

アイコン画像の取得で一時ファイルを作成しないように変更した際、アイコン
の取得を同期的に行うようにしたのですが、作業をしているEmacsのバックグラ
ウンドでtwittering-modeを動かす場合や、回線が遅い場合、convertでの変換
がわりと重い、などなどことを考えてアイコンの画像取得は非同期に行うよう
に書き換えようと思っています。そうなると、アイコンを取得したstatusにつ
いても再描画してあげなければいけません。
status-format の変更はそれほど頻繁ではないので今の段階では再描画をしな
くてもたいして問題はないと思います。

実装のアイディアとしては、再描画する id のリスト
twittering-status-id-redrawn を定義しておいて、render-timeline の中でこ
の変数を参照して再描画し、最後にリストをクリアする、という感じでしょう
か。あとは適宜再描画してほしいタイミング(アイコンが取得できたとか)でこ
のリストにidを追加していけばよいでしょう。

format-stringの変更検出は、twittering-last-format-status とか1つ変数を
作ってそこに古いフォーマット文字列を覚えておくとかでしょうか。あまり変
数をボンボン作って名前空間を汚したくはありませんが。。


At Sun, 17 Jan 2010 23:01:05 +0900 (JST),
Tadashi MATSUO wrote:
> 
> 松尾です。
> 
> twittering-render-timeline()で追加されたstatusだけを
> 再描画できるようにしました。
> 
> optional引数additionalがnon-nilのとき、既存のbuffer
> 内容を消去せず、twittering-timeline-dataの中のまだ
> 描画されていないstatusだけを追加します。
> 
> 今回の更新では自動取得時にのみ追加的再描画が行われます。
> 自動取得時の硬直時間が短くなっていると思います。
> 
> twittering-status-formatを変更しても描画済みの
> statusの描画には反映されない点がこれまでと異なりますが
> あまり重要でないと思うのでそのままにしてあります。
> 
> 
> 今回の変更でscroll-modeの実装も変更したのですが、機能と
> 名前の対応が分かりにくいような気がします。
> 意味としては「更新の前後でカーソル位置のstatusが変わらない
> mode」ですよね?「現在のstatusにくっつく」という意味で
> sticky-mode等の方が機能が分かりやすいんじゃないでしょうか。
> 
> ---
> 松尾 直志 
> 
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ___
> twmode-users mailing list
> twmode-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/twmode-users

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
twmode-users mailing list
twmode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/twmode-users