From: "T.V. Raman" <tv.raman.tv@gmail.com>
To: emacs-devel@gnu.org
Subject: Why Emacs should have a good web-browser
Date: Tue, 21 Jul 2009 14:36:14 -0700 [thread overview]
Message-ID: <5f0ff9220907211436jd44ff08o3c19cfda5d8a1c38@mail.gmail.com> (raw)
In-Reply-To: <87hbx5916k.fsf@comcast.net>
Note that emacspeak does integrate with firefox via mozrepl ---
Google for "firebox" --- code is in emacspeak-moz.el.
That code needs some updating to make keyboard input work with
Firefox 3 --- things changed on the firefox side post FF2, and
I've not had the chance to finish the work.
But roughly, here is how it works:
0. I start Firefox with mozrepl enabled --- in my case I tell FF
to use an Xvfb created framebuffer --- but that's just an aside,
since I dont start Gnome or any other graphical desktop --- my
desktop is Emacs.
1. From emacs, I open a repl interaction handle via which I can
send forms to FF for evaluation.
2. On the FF side, I load in a JS library I wrote called adom.js
http://emacspeak.googlecode.com/svn/trunk/js/
that defines a set of helper functions in JS -- facilitate
receiving HTML in emacs back from Firefox.
--
Best Regards,
--raman
Title: Research Scientist
Email: raman@google.com
WWW: http://emacspeak.sf.net/raman/
Google: tv+raman
GTalk: raman@google.com, tv.raman.tv@gmail.com
PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
3. Finally, I define a special Mozilla interaction mode where I
can send js commands to FF from Emacs, and the response back as
HTML --- I then hand off this HTML to either W3 or W3M for
processing.
All this works upto a point --- except that at present keyboard
input to FF from the emacs side is broken.
In effect, the above turns FF into a DOM-server for Emacs.
--
Best Regards,
--raman
Title: Research Scientist
Email: raman@google.com
WWW: http://emacspeak.sf.net/raman/
Google: tv+raman
GTalk: raman@google.com, tv.raman.tv@gmail.com
PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
On 7/21/09, Robert D. Crawford <rdc1x@comcast.net> wrote:
> Adam Wołk <netprobe@gmail.com> writes:
>
>> Dnia 21-07-2009 o 22:02:28 Robert D. Crawford <rdc1x@comcast.net>
>> napisał(a):
>>
>>> Adam Wołk <netprobe@gmail.com> writes:
>>>
>>>> I believe that having a good default and supported browser that
>>>> integrates well with Emacs would be great.
>>>
>>> Correct me if I am wrong, but this does not sound like "default" but
>>> more like "de facto," the difference being that we are talking about
>>> separate applications that run independently of each other.
>>
>> They run independently as applications but thanks to extensions like
>> mozrepl they can communicate the same way as Emacs + SLIME can with
>> many Common Lisp implementations. So really embracing mozrepl would
>> allow building a bridge between regular Emacs usage and browsing,
>> focusing on conkeror allows us to have a more familiar environment
>> both for usage and extending.
>
> Granted. I like the interaction of a REPL. I've played with the python
> REPL in emacs and I see it as working like emacs-w3m in that the user
> sends commands and the output gets sent to an emacs buffer. This works
> well as it just becomes more text that can be "read" through like any
> other buffer.
>
>> quote from mozrepl website:
>>> Connect to Firefox and other Mozilla apps, explore and modify them
>>> from the inside, while they're running.
>>> Execute Javascript, play with browser GUI, sneak into HTML pages,
>>> examine functions and variables, redefine them on the fly, hot-fix
>>> bugs, ... MozRepl itself is programmable from within MozRepl.
>>
>> Conkeror can be connected both ways with Emacs using mozrepl so I can
>> imagine (but can't confirm) that one could implement a feature that
>> would send website text content directly to emacspeak.
>
> If I understand what you are saying, the text would be sent to the
> speech server but not be rendered in an emacs buffer. This will not
> work as it would prevent scrolling through the text, killing/yanking,
> sending URLs to other processes (mplayer and pdf2text come to mind).
> I'm not even sure how that would work with emacspeak as it relies on
> emacs to get its input... at least that is how I understand it.
>
>> So my guess is that You could not only pass every browser buffer to
>> emacspeak but also wouldn't have problems with pages using heavy
>> javascript and flash for navigation. Before You take my words for
>> granted it would be wise to wait for confirmation of this possibility
>> from someone with actual experience with mozrepl.
>
> There is some integration between emacspeak and the mozrepl. I've not
> played with it in a very long time so I don't know exactly what it can
> do. I do know that Dr. Raman was using it for javascript development
> but not for browsing.
>
>> I also saw a browser extension for Firefox called 'It's all text' that
>> could send text input elements from forms and allow to edit them in
>> external editors, sending it back when the editor saved the file. If
>> exporting text from regular Firefox this way is possible then I assume
>> that the website text content wouldn't be much different.
>
> I guess what I'm really hoping for is the speed of emacs-w3m with the
> extensibility of emacs/w3. The main purpose of my posting is to try to
> move things in the direction of adding more accessibility to emacs.
> Plus, having a browser that can replace w3, which is getting really old,
> is a good idea.
>
> Thanks for listening,
> rdc
> --
> Robert D. Crawford rdc1x@comcast.net
>
>
>
>
next prev parent reply other threads:[~2009-07-21 21:36 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
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 [this message]
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=5f0ff9220907211436jd44ff08o3c19cfda5d8a1c38@mail.gmail.com \
--to=tv.raman.tv@gmail.com \
--cc=emacs-devel@gnu.org \
/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.