松尾です。

> emacs-major-versionで場合分けをするのは、最小限に
> しませんか。以下を例にして言うと、
> 
> (if (fboundp 'delete-dups)
>     ;; delete-dupsをつかったコード
>   ;; 自前で実装したコード
> 
> にしたほうが、保守する際に前提となる知識が少なくて
> 済むからです。

機能の違いが直接分かる場合には極力emacs-major-versionを
使わない方が良いですね。twittering-remove-duplicates()を
そのように修正しました。

> もっとも、今回のケースでは、completing-read()には
> 常にalistを渡すようにしてもよいと思いますが。。

こちらはどうしましょうか。
completing-read()に丸投げできるときはそうした方が安心の
ような気もします。

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

------------------------------------------------------------------------------
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

メールによる返信