[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: emacs-w3m doesn't play well with (iswitchb-mode) in Emacs 22.0.92



>>>>> In [emacs-w3m : No.09055] Chris Moore wrote:

> I have
>   (iswitchb-mode)
> in my .emacs file.

> This results in C-x b being bound to iswitchb-buffer everywhere, and
> gives me a different 'switch buffer' experience.  Everywhere, that is,
> except for in the *w3m* buffer, where C-b is bound to
> w3m-e21-switch-to-buffer, which seems to act very much like the
> default switch-to-buffer command.

Thank you for pointing it out.  I've added the iswitchb-mode
support to `w3m-e21-switch-to-buffer' in the CVS trunk.  Here is
a patch:
--- w3m-e21.el~	2006-09-22 11:26:50 +0000
+++ w3m-e21.el	2007-01-10 23:02:21 +0000
@@ -809,7 +809,9 @@
 (defun w3m-e21-switch-to-buffer (buffer &optional norecord)
   "Run `switch-to-buffer' and redisplay the header-line.
 Redisplaying is done by wobbling the window size."
-  (interactive "BSwitch to buffer: ")
+  (interactive (list (if iswitchb-mode
+			 (iswitchb-read-buffer "iswitch ")
+		       (read-buffer "Switch to buffer: "))))
   (prog1
       (switch-to-buffer buffer norecord)
     (when (and header-line-format
Regards,