From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Is it possible to use another GUI client and connect it to Emacs?
Date: Mon, 30 Mar 2015 10:13:46 +0200 [thread overview]
Message-ID: <874mp2j41x.fsf@gmail.com> (raw)
In-Reply-To: jwvzj6yoz5u.fsf-monnier+gmane.emacs.help@gnu.org
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> For example, is it possible for me to write a package that connects Emacs
>> from Firefox and exchange messages, so that I can manipulate texts and
>> Firefox layout directly from headless Emacs server?
>
> Of course. E.g. you can run "emacsclient --eval <exp>" and it will
> execute that expression and return the value.
The problem is how to call emacsclient from firefox.
You have for this to setup a new protocol in firefox, which is not
allowed by firefox, you can workaround this by creating yourself the new
protocol with this small library:
https://github.com/thierryvolpiatto/firefox-protocol
You can then use a bookmarklet to call your script using emacsclient.
I actually use this to show my firefox bookmark list in emacs and to
bookmark web pages in regular emacs bookmarks.
Hope that help.
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
next prev parent reply other threads:[~2015-03-30 8:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-27 4:58 Is it possible to use another GUI client and connect it to Emacs? Tu, Do
2015-03-27 10:11 ` Xavier Maillard
2015-03-27 18:52 ` Jacob Gerlach
2015-03-27 22:29 ` Stefan Monnier
2015-03-30 8:13 ` Thierry Volpiatto [this message]
2015-03-27 22:46 ` Pascal J. Bourguignon
2015-03-30 6:46 ` Tu, Do
2015-03-30 16:19 ` Phillip Lord
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=874mp2j41x.fsf@gmail.com \
--to=thierry.volpiatto@gmail.com \
--cc=help-gnu-emacs@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.