[mew-dist 27720] Re: mew-*-sentinel

Kazu Yamamoto ( 山本和彦 ) kazu at example.com
2007年 6月 26日 (火) 16:43:32 JST


山本です。

> mew-pop-sentinelでsave-excursionなしでset-bufferしていて、
> mew-pop-sentinelの前後でbufferが変わっているのが原因のようで、
> save-excursionを追加するとエラーが消えました。
> 
> 環境がないためテストしていませんが、mew-imap-sentinel、
> mew-nntp-sentinelも同様に修正したパッチを添付します。

レポート、ありがとうございます。

Elisp の info を読み返したところ、filter の章には、こう書いてありました。

----
   Many filter functions sometimes or always insert the text in the
process's buffer, mimicking the actions of Emacs when there is no
filter.  Such filter functions need to use `set-buffer' in order to be
sure to insert in that buffer.  To avoid setting the current buffer
semipermanently, these filter functions must save and restore the
current buffer.  They should also update the process marker, and in some
cases update the value of point.  Here is how to do these things:
----

sentinel の章には、このような記述はありませんが、filter と同様だと思い
ます。

Mew のコードを見直したところ、大幅に変更しないといけないようです。(はぁ)
後で修正しておきます。

--かず






Mew-dist メーリングリストの案内