Article View: fj.editor.xemacs
Article #114Re: Draft mode での X-Face の画像表示
From: Atsushi Shinmura
Date: Tue, 23 Oct 2001 04:58
Date: Tue, 23 Oct 2001 04:58
92 lines
5561 bytes
5561 bytes
新村です。 山岡さん お世話になります。
結果から言いますと、訳がわからず失敗。とりあえず、
Mew,T-Gnus,Wanderlust の現在、メッセージが見れて、Draft バッファにエン
コードされた文字列がインサートされている設定を写します。
---.mew.el
;;編集中にxfaceを表示する
(setq x-face-default-xbm-file "~/.xface")
(add-hook 'mew-draft-mode-hook 'x-face-insert)
(add-hook 'mew-make-massage-hook 'x-face-turn-off)
---end
---.gnus
;;xfaceの設定
(defvar gnus-x-face-file (expand-file-name "~/.x-face"))
(defun mail-insert-x-face ()
(save-excursion
(goto-char (point-min))
(search-forward mail-header-separator)
(beginning-of-line nil)
(insert "X-Face:")
(insert-file gnus-x-face-file)))
(add-hook 'message-setup-hook 'mail-insert-x-face)
---end
---.wl
;; X-Face を表示する (要 x-face (and x-face-mule))
(when window-system
(cond ((and (featurep 'xemacs) ; for XEmacs
(module-installed-p 'x-face))
(autoload 'x-face-xmas-wl-display-x-face "x-face" nil t)
(setq wl-highlight-x-face-function 'x-face-xmas-wl-display-x-face))
;; for Mule (GNU Emacs)
((module-installed-p 'x-face-mule)
;; for x-face-mule distributed with bitmap-mule 8.0 or later
(autoload 'x-face-decode-message-header "x-face-mule")
(setq wl-highlight-x-face-function 'x-face-decode-message-header))
))
---end
.emacs には、X-Face 関係の設定はありません。いずれも、各々のメーラー、
ニューズのドキュメントから、そのまま写しただけです。
これで、メッセージを読む時は、きちんと表示されていますが、ドラフト時に
は、エンコードされた文字列が、X-Face:に入るだけです。どうしてもこうし
ても駄目なので、元に戻して見ました。x-face-1.3.6.13.tar.gz の
README.ja は何度も見返しましたが、Wanderlust だけが、ドキュメントどお
りの設定になっております。
>>>>> On Tue, 23 Oct 2001 08:57:11 +0900
>>>>> yamaoka@jpl.org(Katsumi Yamaoka) said:
山岡さん> x-face-xmas-auto-image の値がデフォルトの t で、x-face-insert コ
山岡さん> マンドを対話的に (M-x で) 使った場合にインライン表示します。
山岡さん> hook などで x-face-insert を関数 call した場合にもインライン表示
山岡さん> させたい場合は、
やってみたのですが、「そんな関数ないよ」と言われます。何故??
山岡さん> (x-face-insert ...)
山岡さん> の次に
山岡さん> (x-face-xmas-display-x-face 1)
山岡さん> を行なってみて下さい。ただ、これによって生の X-Face フィールドに
山岡さん> invisible と read-only の属性が付けられるので、MUA によっては送
山岡さん> 信直前のヘッダのエンコード時に不具合を生じることがあります (最近
山岡さん> はどうなっているか知りませんが、過去に Mew では多発しました)。
やっぱり、駄目でした。一体、何がおかしいのだろう??混乱して、問題点を
絞れません。
山岡さん> 以下 README.ja より:
山岡さん> もっと良いのは、ヘッダを書き変えるプログラムが実行されるより前に
山岡さん> (x-face-xmas-remove-x-face-glyph)
.emacs で指示してみたのですが、
---.emacs
; XEmacs の場合のみ。詳細は 6. XEmacs の項をご覧下さい。
(autoload 'x-face-xmas-display-x-face "x-face"
"Display X-Face fields as XEmacs-glyph." t)
(autoload 'x-face-xmas-force-display-x-face "x-face"
"Display X-Face fields compulsorily as XEmacs glyph.")
(autoload 'x-face-xmas-remove-x-face-glyph "x-face"
"Remove X-Face images and some text-properties.")
---end
変化ありませんでした。もう訳が解らず、どうしようもない有り様です。
どこに、大きな勘違いがあるのでしょうか?よろしくご教示下さいませ。
--
Atsushi Shinmura
Technical Details
Message-ID:
<m0ofmzrlzt.fsf@maria.issui.co>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!Q.T.Honey!news.join.ad.jp!wnoc-tyo-news!newsfeed.btnis.ad.jp!newsgate1.web.ad.jp!news501.nifty.com!not-for-mailReferences:
<m0d73f60ow.fsf@maria.issui.co> <yosuofmz6xet.fsf@jpl.org>Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 1107f7,f9acc8979beb274f
X-Google-Attributes: gid1107f7,public
X-Google-ArrivalTime: 2001-10-22 22:07:45 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!Q.T.Honey!news.join.ad.jp!wnoc-tyo-news!newsfeed.btnis.ad.jp!newsgate1.web.ad.jp!news501.nifty.com!not-for-mail
From: Atsushi Shinmura <GGB03631@nifty.ne.jp>
Newsgroups: fj.editor.xemacs
Subject: Re: Draft mode での X-Face
の画像表示
Date: Tue, 23 Oct 2001 13:58:14 +0900
Organization: @nifty netnews service
Lines: 92
Sender: maria@maria.issui.co
Message-ID: <m0ofmzrlzt.fsf@maria.issui.co>
References: <m0d73f60ow.fsf@maria.issui.co> <yosuofmz6xet.fsf@jpl.org>
NNTP-Posting-Host: nara003n073.ppp.infoweb.ne.jp
Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya")
Content-Type: text/plain; charset=ISO-2022-JP
X-Trace: news512.nifty.com 1003813332 26741 211.2.82.233 (23 Oct 2001 05:02:12 GMT)
X-Complaints-To: -
NNTP-Posting-Date: Tue, 23 Oct 2001 05:02:12 +0000 (UTC)
X-cite: xcite 1.41
X-Face: +U!d{`0K<K`LWEF1+z/<Hda`cOUyA<sIRL^+trpj?|hvjDM?'z{~ll>ljF8f$Yb1a5"KE<z
7g~f@N+G2MZpOa"'Xf*dBP\lv]'WnPqG&uqv<I2v<ri?,r/iVi%6?Hh-rk"O#BzD*|a@B}Qkod$'uy
(Kjk;|s`>]S;Db9?l.""C[h)w1L4C#LJC?1={;auE$^uXOy{wU7T/"7DuD,1*^b8UXY#ikc8-ABA{7
M~-<o4'Hq:gK3=_"JQ'&LzKtfemO8Cd/(d,|btzI-J3gj=23Z0Z/=Pz2fkeZGMC"|l,@A,&|YO()PU
"$4G+GLM
User-Agent: T-gnus/6.15.4 (based on Oort Gnus v0.04) (revision 08)
SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigoryōmae)
APEL/10.3 MULE XEmacs/21.5 (beta3) (asparagus) (i586-pc-linux)