Hi, I've updated the Troubleshooting section of the emacs-w3m info. Here is an extract: ,---- | * Q. Why doesn't the emacs-w3m frame pop up to the front? | | It is quite convenient that the `M-x w3m RET' command makes the | emacs-w3m frame pop to the front even if it is hidden under the | other frames. However, it was reported that it does not work when | running Emacs on some platforms (e.g., Fedora Core Linux) in which | the `metacity' window manager is used. In those systems, other | features which raise the Emacs frames will not work, either. If | you are in such a miserable circumstance, it might be worth trying | the following advice: | | (if (or (featurep 'xemacs) (not window-system)) | nil | (defadvice raise-frame | (after make-it-work (&optional frame) activate) | "Make it work with the aid of wmctrl." | (call-process | "wmctrl" nil nil nil "-i" "-R" | (frame-parameter (or frame (selected-frame)) | 'outer-window-id)))) | | Where `wmctrl' is the external command which you can get from: | | `http://sweb.cz/tripie/utils/wmctrl/' | | Note that you have to install the `wmctrl' command before putting | the advice into the `~/.emacs' file. | | In addition to this, if your Emacs has been built with the | `--with-gtk' option, the following advice also might be necessary: | | (if (or (featurep 'xemacs) | (not window-system) | (not (featurep 'gtk))) | nil | (defadvice select-frame (around set-input-focus | (frame) activate) | "Run `select-frame-set-input-focus'." | (setq ad-return-value (and (framep frame) | (frame-live-p frame) | frame)) | (ad-deactivate 'select-frame) | (unwind-protect | (select-frame-set-input-focus frame) | (ad-activate 'select-frame)))) | | It is said that those workarounds will become needless when the | next version of Emacs 22.1 is released. `---- Furthermore, I use this advice personally. It is useful when `pop-to-buffer' raises a frame (i.e., the case where `pop-up-frames' is bound to t).
Attachment:
binSrDryeGPjH.bin
Description: application/emacs-lisp
Regards,