パッチありがとうございます。マージしてみました。

このパッチとは関係ありませんが、:search//するとエラーに
なったので、修正してみました。

> あと、現状のcompleting-readでは空白文字の
> 入力時にquoted-insertしないといけないので少し面倒です。

これ、意外と面倒ですね…。


> 松尾です。

> やたがわさんのsearch-mode branchに機能を追加する
> パッチを書いてみました。

> ・0001-Add-new-timeline-spec-string-for-hashtag.patch
> 「#hashtag」の形のtimeline spec
> specとしては '(search "#hashtag") に変換されます。

> ・0002-Support-functional-alias-as-a-timeline-spec-string.patch
> functional alias
> aliasに関数を指定できるようになります

> (setq twittering-timeline-spec-alias
> `(("related-to" .
> ,(lambda (username)
> (if username
> (format ":search/to:%s OR from:%s OR @%s/"
> username username username)
> ":home")))
> ))

> としておくと、"$related-to(USER)"というspec stringを指定すると
> ":search/to:USER OR from:USER OR @USER/"を指定したものとして
> 解釈されます。

> この例はUSERが自分がfollowしていない人としている会話も見られる
> timelineです。
> 手元では更に
> ("r" . ,(lambda (username) (format "$related-to(%s)" username)))
> も追加して"$r(USER)"で使えるようにしてたりします。

> どうでしょうか。

> ---
> 松尾 直志 <t...@mymail.twin.jp>

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
twmode-users mailing list
twmode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/twmode-users

メールによる返信