[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: W3M frame-local buffers (w3m-fb.el).
>>>>> Katsumi Yamaoka writes:
(B > > I will test the code, and have a look at this problem.
(B > Oops, I found your reply just now in the Gmane newsgroup (mails
(B > sent to me tends to stagnate for these days :-<). Anyway, I seem
(B > to have fixed the problem.
(BI don't think this fully fixes it. What if someone does (setq
(Bw3m-fb-mode t) and hasn't set w3m-pop-up-frames?
(BMaybe something like the attached is needed, perhaps even a warning
(BRCS file: /storage/cvsroot/emacs-w3m/w3m-util.el,v
(Bretrieving revision 1.97
(Bdiff -u -r1.97 w3m-util.el
(B--- w3m-util.el 19 Dec 2005 10:51:35 -0000 1.97
(B+++ w3m-util.el 19 Dec 2005 11:02:37 -0000
(B@@ -399,10 +399,14 @@
(B ;; because `buffers' may have been sorted.
(B (let ((fbs (w3m-fb-frame-parameter w3m-fb-list-buffers-frame
(B- (setq rest buffers)
(B- (while rest
(B- (unless (memq (setq buffer (pop rest)) fbs)
(B- (setq buffers (delq buffer buffers))))))
(B+ ;; Maybe someone did (setq w3m-fb-mode t) in which case the
(B+ ;; W3M buffers have not been associated with frames, and the
(B+ ;; relevant hooks have not been set up.
(B+ (when fbs
(B+ (setq rest buffers)
(B+ (while rest
(B+ (unless (memq (setq buffer (pop rest)) fbs)
(B+ (setq buffers (delq buffer buffers)))))))