unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22244: 25.0.50; Make eww use display-buffer to display eww buffer
@ 2015-12-26 16:54 Michael Heerdegen
  2015-12-26 17:02 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 24+ messages in thread
From: Michael Heerdegen @ 2015-12-26 16:54 UTC (permalink / raw)
  To: 22244; +Cc: Lars Ingebrigtsen


Hello,

this has been discussed several times, but since Lars is here now, an
official request:

Wouldn't it be better to let eww use display-buffer instead of
switch-to-buffer in several places (at least, when calling eww and
eww-browse-url, probably some more)?  display-buffer's behavior can be
controlled via binding variables, while display-buffer makes the same a
horror.

For example, when I'm reading newspaper feeds from Gnus and want to open
a link with eww in a new pop up frame, I have to use this ugly hack,
ugh:

--8<---------------cut here---------------start------------->8---
(defun my-eww-browse-url-pop-up-frame (url &optional _)
  "My private version of `eww-browse-url', creating a new frame."
  (let ((frame (make-frame '()))
        (buffer (generate-new-buffer "*eww*"))
        win)
    (with-current-buffer buffer
      (eww-mode)
      (eww url))
    (select-frame-set-input-focus frame)
    (setq win (frame-root-window frame))
    (set-window-buffer win buffer)
    frame))
--8<---------------cut here---------------end--------------->8---


Thanks,

Michael.




In GNU Emacs 25.0.50.8 (x86_64-pc-linux-gnu, GTK+ Version 3.18.5)
 of 2015-12-23
Repository revision: 09053075225fec8a6cf7a72017a6dfc1ec6b6f0c
Windowing system distributor 'The X.Org Foundation', version 11.0.11703000
System Description:	Debian GNU/Linux testing (stretch)

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY
LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
  value of $LC_ALL: de_DE.utf8
  value of $LC_COLLATE: C
  value of $LC_TIME: C
  value of $LANG: de_DE.utf8
  locale-coding-system: utf-8-unix






^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2016-02-04 19:09 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-26 16:54 bug#22244: 25.0.50; Make eww use display-buffer to display eww buffer Michael Heerdegen
2015-12-26 17:02 ` Lars Ingebrigtsen
2015-12-26 17:29   ` Michael Heerdegen
2015-12-26 17:45     ` Lars Ingebrigtsen
2015-12-26 18:09       ` Michael Heerdegen
2015-12-26 18:19         ` Lars Ingebrigtsen
2015-12-26 23:19           ` Michael Heerdegen
2015-12-26 23:28             ` Lars Ingebrigtsen
2016-01-09  6:01               ` Michael Heerdegen
2016-02-02  4:55                 ` Lars Ingebrigtsen
2016-02-02 15:24                   ` Mark Oteiza
2016-02-03  1:59                     ` Lars Ingebrigtsen
2016-02-03  2:57                       ` Mark Oteiza
2016-02-04  2:18                         ` Lars Ingebrigtsen
2016-02-04  6:31                           ` bug#22244: [PATCH] New command eww-switch-to-buffer Mark Oteiza
2016-02-04  7:02                             ` Lars Ingebrigtsen
2016-02-04 13:10                               ` Michael Heerdegen
2016-02-04 17:49                                 ` Mark Oteiza
2016-02-04 19:09                                   ` Michael Heerdegen
2016-02-04 16:46                             ` Eli Zaretskii
2016-02-04 17:48                               ` Mark Oteiza
2016-02-02  4:58                 ` bug#22244: 25.0.50; Make eww use display-buffer to display eww buffer Lars Ingebrigtsen
2016-02-02 14:19                   ` Michael Heerdegen
2016-02-03  2:35                     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).