LISTSERV mailing list manager LISTSERV 16.0

Help for LINUX-L Archives


LINUX-L Archives

LINUX-L Archives


LINUX-L@LISTS.UFL.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

LINUX-L Home

LINUX-L Home

LINUX-L  2019

LINUX-L 2019

Subject:

Re: Editing Firefox text boxes with emacs?

From:

Brian Bartholomew <[log in to unmask]>

Reply-To:

Platform Independent Linux List! <[log in to unmask]>

Date:

Thu, 6 Jun 2019 20:38:18 -0400

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (177 lines)

It's now working with Bugzilla, here are some notes.

--

Versions

	$ lsb_release -a
	No LSB modules are available.
	Distributor ID:	Ubuntu
	Description:	Ubuntu 18.04.2 LTS
	Release:	18.04
	Codename:	bionic

	Firefox->Help->About Firefox
		Firefox Quantum 67.0 (64-bit)

	(emacs-version)
	"GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
	 of 2017-09-22, modified by Debian"

	web application with textareas is Bugzilla 5.0.4+

XXX dead end
	Works but isn't used for this plugin
	$ emacs --daemon
	$ emacsclient -c foo.txt
	C-x #

	"Because the Chrome(ium) security model doesn't allow for extensions
	spawning processes we can't just exec() the editor process."

XXX dead end
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_docwhat_itsalltext&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=id6-MSpEgCiA7eM21jkS6u7ZHK9sqQTWagW3aVc4mbw&m=6d14bG6joJScMM4dvh6Ux3L0TUslHnyGI7EKGsoQvuI&s=yGEd267XRlDyAO6hNgXFZXWMSgPA9Bv63f19LOcO7VI&e= 

	This project is dead!

	With the Firefox 57, It's All Text! has stopped working and
	fixing it would require throwing everything out and starting
	again from scratch.

	Instead, I would suggest using one of these projects:

	    emacs chrome (which is ported to Firefox)
	    GhostText

https://urldefense.proofpoint.com/v2/url?u=https-3A__addons.mozilla.org_en-2DUS_firefox_addon_edit-2Dwith-2Demacs1_&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=id6-MSpEgCiA7eM21jkS6u7ZHK9sqQTWagW3aVc4mbw&m=6d14bG6joJScMM4dvh6Ux3L0TUslHnyGI7EKGsoQvuI&s=lGbOQg4wIQXELoGfWVLmWEyHdlW2qePdtGDb_-SpsnU&e= 
	aka
	https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_stsquad_emacs-5Fchrome_&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=id6-MSpEgCiA7eM21jkS6u7ZHK9sqQTWagW3aVc4mbw&m=6d14bG6joJScMM4dvh6Ux3L0TUslHnyGI7EKGsoQvuI&s=OuvxKtHrD-yA5-4QHTtwMG23BL08VH7M7yJgMPU1Bpw&e= 

	Add to firefox

Firefox
	upper right hamburger button menu entry
	left sidebar Puzzle piece Extensions menu entry
	Edit with Emacs
	Preferences

XXX dead end
Firefox
	Extension
	Settings
	Configuration
	Edit Server
	Talks about loopback address, not socket in /tmp/emacs1000
	doesn't appear to use emacs --daemon / emacsclient -c
	instead uses its own edit-server.el given on Configuration page
	but contents of edit-server.el file doesn't appear when clicked

Firefox
	Extension
	Settings
	Interface
	checked Show 'edit' button next to textarea
	checked Enable context menu item to invoke editor
	checked Allow double click on textarea to invoke editor
	checked Enable Alt-Enter Keyboard shortcut to invoke editor

XXX dead end
emacs
	M-x package-install
	edit-server
	but package name doesn't exist

git clone https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_stsquad_emacs-5Fchrome.git&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=id6-MSpEgCiA7eM21jkS6u7ZHK9sqQTWagW3aVc4mbw&m=6d14bG6joJScMM4dvh6Ux3L0TUslHnyGI7EKGsoQvuI&s=loBKOZUIBZcOOBr3ZCxk5KoecvACnb8D0TRA6DiJ67o&e= 

	servers/README

	Because the Chrome(ium) security model doesn't allow for extensions
	spawning processes we can't just exec() the editor process.

	./test-travis.sh
	ran and passed emacs tests
	error from not linting javascript due to missing program jshint

	didn't find installation notes or script

Firefox
	Extension
	Settings
	Information
	can't select/copy .el code from screen

XXX dead end
cat >> ~/.emacs
	(add-to-list 'load-path "~/.emacs.d")
	(require 'edit-server)
	;;; (edit-server-start)
	no I am not going to start this edit server in every emacs

	cp ~/emacs_chrome/servers/edit-server* ~/.emacs.d

	emacs
	Warning (initialization): Your ‘load-path’ seems to contain
	your ‘.emacs.d’ directory: ~/.emacs.d
	This is likely to cause problems...
	Consider using a subdirectory instead, e.g.: /home/bb/.emacs.d/lisp

	rm ~/.emacs.d/edit-server*

mkdir ~/.emacs.d/lisp
cp ~/emacs_chrome/servers/edit-server* ~/.emacs.d/lisp

cat >> ~/.emacs
	(add-to-list 'load-path "~/.emacs.d/lisp")
	(require 'edit-server)
	;;; (edit-server-start)

emacs
	(edit-server-start)
	nil

Firefox
	Extension
	Settings
	Test
	Test Edit Server
	Test
	edit-server is running.

Firefox
	in a textarea
	notice new edit button at upper-right corner
	edit button brings up emacs
	double-click brings up emacs
	Alt-Enter brings up emacs
	right-click menu Edit with Emacs brings up emacs
	minor mode EditSrv
	C-h m	; docs for modes with "server" don't give keybindings
	C-x C-s	; text copied to textarea, emacs window closes and reppears
		; textarea background goes yellow then yellow fades
	C-c C-c	; text copied to textarea, emacs window closes
		; textarea background goes yellow then yellow fades

Firefox
	Extension
	Settings
	Interface
	unchecked Show 'edit' button next to textarea

Read https://urldefense.proofpoint.com/v2/url?u=https-3A__www.emacswiki.org_emacs_Edit-5Fwith-5FEmacs&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=id6-MSpEgCiA7eM21jkS6u7ZHK9sqQTWagW3aVc4mbw&m=6d14bG6joJScMM4dvh6Ux3L0TUslHnyGI7EKGsoQvuI&s=ZLLxm12wN4_GCdcKbZMqPIBWzQ9b0fwN5kpZJN-vyX0&e= 

XXX dead end
	kill prevous emacs textarea edit server
	$ emacs --daemon
	$ emacsclient -e '(edit-server-start)'
	nil
	no emacs response from the browser

Working in Bugzilla.  Textarea is apparently hacked with javascript
added on, not fundamentally connected to emacs within browser.
Connection to textarea seems tenuous; right-click Edit with Emacs on a
single line search field showed previous textarea's contents, and put
edits in previous textarea.

-- 
Working Version                 Brian Bartholomew, President
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.workver.com&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=id6-MSpEgCiA7eM21jkS6u7ZHK9sqQTWagW3aVc4mbw&m=6d14bG6joJScMM4dvh6Ux3L0TUslHnyGI7EKGsoQvuI&s=El07Se0mq6LdPjtpEbOEX1ZYuZGN3ZeFqgIUQTmUgSI&e=          Host Factory computer configuration management

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

2019
2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000
1999
1998
1997

ATOM RSS1 RSS2



LISTS.UFL.EDU

CataList Email List Search Powered by the LISTSERV Email List Manager