松尾です。

Emacs22以降ではcompleting-read()に与える補完候補として
stringのlistを使えますが、Emacs21以前では使うことが
できません(alistにする必要があります)。

completing-read()を呼び出す場面で一々対処するのは見通しも
よくないのでtwittering-completing-read()という関数を追加
してそちらで対処するようにしてみました。

また、補完候補から重複を除くのに使っていたdelete-dups()は
Emacs21以前では定義されていません。
こちらもtwittering-remove-duplicates()という関数を作って
Emacs21以前の環境では自前で実装したものを使うようにして
います。
delete-dups()は引数のlistに対して破壊的に働きますが、
twittering-remove-duplicates()は引数のオブジェクトを
変更しないようにしてあります。

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

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
twmode-users mailing list
twmode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/twmode-users

メールによる返信