On June 18, 2025, John Stoffel wrote:
>>>>>> "Daniel" == Daniel Barrett <[email protected]> writes:
>> My original question about unwanted browser windows is still open.
>
>Can you try setting up a minimal .vm and start emacs with 'emacs -q'
>and then slowly add back in the stuff needed to get VM loaded and
>running? Does the problem still happen?
The problem (VM opening a browser window each time I reply to an HTML
message) goes away if I keep these lines:
(setq vm-mime-external-content-types-alist
'(...
("text/html" "chrome-me --new-window")
))
and remove this line:
(add-to-list 'vm-mime-internal-content-type-exceptions "text/html")
This is good. However, the middle mouse button (mouse-2) no longer
opens a browser window when I click on an HTML button in a message.
Instead, it converts the HTML to text and prints the message:
inbox: Inlining text/html by w3m... done.
I can open the browser window with the mouse-3 menu by choosing
"Display using External Viewer" or pressing $e, both of which run
vm-mime-reader-map-display-using-external-viewer. Is there a way to
configure VM to run this function only when I click mouse-2 on an HTML
button? I don't want to interfere with mouse-2's other features like
opening URLs.
Thank you!
Dan