all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: ferkiwi+a@gmail.com, Paul R <paul.r.ml@gmail.com>, emacs-devel@gnu.org
Subject: Re: Why Emacs should have a good web-browser
Date: Wed, 22 Jul 2009 01:31:23 +0900	[thread overview]
Message-ID: <87iqhm3smc.fsf@catnip.gol.com> (raw)
In-Reply-To: <jwv3a8qavfv.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 21 Jul 2009 11:52:28 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> This is a very naïve suggestion, as I dont know much of emacs display
>> engine. I just notice that emacs wants to display formated text, with
>> hyperlinks, colors, pictures, antialiasing, etc. All of that (and much
>> more, like complex layouts, tables, etc) is already very well adressed
>> in an xhtml/css+js engine such as gecko or webkit, both free software
>> and available for integration in third party applications.
>
> It might be possible to use one of those engines as Emacs's rendering
> engine, indeed.  To me, it wouldn't seem like an good solution to the
> problem at hand because I don't think it would allow me to control the
> web-browser from Emacs (e.g., how would I access from Elisp the content
> of pages generated from HTML?).  So it'd be more like embedding Emacs
> inside a normal browser.  It's not a bad idea, but I don't think it'll
> provide as many benefits from Emacs's point of view.

If Emacs used the "high level" rendering component, I dunno how well it
would work, as an Emacs buffer is pretty different than a web page.

Most obviously, it's dynamic, and changing it is expected to be very
cheap even if the buffer is huge.

Another issue might be that, to the best of my knowledge, html rendering
engines tend to generate a "rendered" representation of the entire page,
no matter how little of it is displayed (as opposed to Emacs, which does
the most expensive processing mostly only the parts of a buffer that are
displayed).  This has obvious benefits (e.g., scrolling around after the
long initial setup can be fast, and your scrollbar can easily show
physical display units), but has obvious problems too:  displaying a 1GB
file might take a l.o.n.g time to show the first page....

I don't know how well these engines deal with the underlying text
changing; given that a small text change might affect the _entire_
"rendered" data structure, there seems a good chance the answer might be
"not very well."

But all of this is mostly speculation on my part...

-Miles

-- 
Bore, n. A person who talks when you wish him to listen.




  reply	other threads:[~2009-07-21 16:31 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-08 20:11 Why Emacs should have a good web-browser Fernando
2009-07-08 20:54 ` Chong Yidong
2009-07-08 21:55   ` joakim
2009-07-08 22:42     ` Lennart Borgman
2009-08-13 22:54       ` Daniel Colascione
2009-07-08 22:55     ` Chong Yidong
2009-07-08 22:59       ` Lennart Borgman
2009-07-08 23:05         ` Davis Herring
2009-07-09  0:05       ` joakim
2009-07-09 12:36       ` Jason Rumney
2009-07-09 14:25         ` joakim
2009-07-09 16:01           ` Chong Yidong
2009-07-09 17:39             ` joakim
2009-07-09 22:19       ` Richard Stallman
2009-07-08 20:58 ` Richard Riley
2009-07-09 21:12 ` Paul R
2009-07-11 20:24 ` Stefan Monnier
2009-07-12 11:01   ` Robert D. Crawford
2009-07-13  7:18   ` Ken Raeburn
2009-07-17 15:59   ` Paul R
2009-07-18  1:29     ` Miles Bader
2009-07-21  9:18       ` Paul R
2009-07-21 15:52         ` Stefan Monnier
2009-07-21 16:31           ` Miles Bader [this message]
2009-07-21 17:25             ` Thomas Lord
2009-07-22  9:23             ` Paul R
2009-07-21 16:52           ` David Reitter
2009-07-21 20:34             ` Chong Yidong
2009-07-21 17:13           ` Thomas Lord
2009-07-21 18:21             ` Adam Wołk
2009-07-21 19:01               ` Lennart Borgman
2009-07-21 19:26                 ` Adam Wołk
2009-07-21 19:33                   ` Lennart Borgman
2009-07-21 19:47                     ` Adam Wołk
2009-07-21 20:02                   ` Robert D. Crawford
2009-07-21 20:08                     ` Lennart Borgman
2009-07-21 20:37                       ` Robert D. Crawford
2009-07-21 20:24                     ` Adam Wołk
2009-07-21 21:27                       ` Robert D. Crawford
2009-07-21 21:36                         ` T.V. Raman
2009-07-21 22:14                           ` Robert D. Crawford
2009-07-21 21:48                         ` Adam Wołk
2009-07-21 22:24                           ` Robert D. Crawford
2009-07-22 10:33               ` Tassilo Horn
2009-07-22  9:12           ` Paul R
2009-07-22 14:47             ` Stefan Monnier
     [not found]       ` <fxezoucvx5x8i57cbqUYAxe124vaj_firegpg@mail.gmail.com>
2009-07-21 22:09         ` Stephen Eilert
2009-07-21 23:05           ` Chong Yidong
2009-07-22 17:40             ` Stephen Eilert
2009-07-22 18:07               ` Chong Yidong
2009-08-30 18:22   ` joakim
2009-09-02  9:58     ` martin rudalics
2009-09-02 12:00       ` joakim
2009-09-12 19:03 ` Deniz Dogan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iqhm3smc.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ferkiwi+a@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=paul.r.ml@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.