Post by Travis Zhang
I have set the option "browse-url-browser-function" to "eww-browse-url".
"C-c C-d h" opens in a new buffer but same window.
But i want it to open a new window instead using the same window
slime occupies. I guess i would have to
create a function for "browse-url-browser-function".
I don't normally use eww but what you want is built into it the
browse-url design. I see that eww-browse-url takes an optional prefix
argument to open the url in a new buffer, so it is compliant/
Before calling browse-url just supply a prefix arument. C-u M-x
browse-url - and if with your b-u-b-f eww will open up the specified url
a new buffer instead of the *eww* buffer.
If you *always* want you could use a defadvice to define an around
advice on eww-browse-url which binds current-prefix-arg t around
PS Please remember use the solidly well-designed defadvice API. Plesse
do NOT use the utterly RETARDED-CROCK-DESIGNED add-advice or
add-function APIs which are now unfortunately built into elisp which are
designed to make it utterly impossible to remove the the added functions
or closures especially when they are added locally