| Deutsch English Français Italiano |
|
<x87ecy8did5.fsf@somewhere.edu> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Ethan Carter <ec1828@somewhere.edu> Newsgroups: comp.emacs Subject: Re: OT Edit with Emacs: Text not written back to text filed Date: Thu, 03 Apr 2025 18:51:02 -0300 Organization: A noiseless patient Spider Lines: 60 Message-ID: <x87ecy8did5.fsf@somewhere.edu> References: <87zfgxk2e2.fsf@zedat.fu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Fri, 04 Apr 2025 20:42:22 +0200 (CEST) Injection-Info: dont-email.me; posting-host="73bc28e5e9b55780aa914f2f2af497dd"; logging-data="206446"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18HZRIWDDY4IdNDsn05PlOmC133FGmDGRo=" Cancel-Lock: sha1:4ZNVXvrXhX6QxaVZiEIhvysQzdY= sha1:Ni79CqtRvNNj37h7KnbtwGWLSNI= Bytes: 3068 "Loris Bennett" <loris.bennett@fu-berlin.de> writes: > Hi, > > I am using the Firefox extension 'Edit with Emacs' to enter text into > text fields on web pages. This generally works well. > > However, with one web-based ticket system I am obliged to use, the Emacs > client window opens OK and I can enter text, but when I then close the > client window, the changed text does not appear in the text field. > > One difference between this text field and others where the extension > works, is that the field seems to convert text into HTML on the fly. I > type > > X > > into the text field and then click on the 'Edit with Emacs' button, an > Emacs frame containing > > <p>X</p> > > opens. This behavior is likely solely caused by the web application itself. > If I edit that to > > <p>XYZ</p> > > and close the frame, I still get just > > X > > in the text field. This is likely due to the fact that when you close the client window, nothing happens on the text field. That is, your XYZ didn't overwrite the previous X you wrote there. > Does anyone have any idea how I could debug and/or solve this issue? I think your greatest problem is why isn't the text field updating. Ideally you'd be able to put the blame correctly---is it EMACS or is it the web application? I never used the extension, but it seems that it takes the text typed in the text field and sends it to the edit server on EMACS that's listening on port 9292. When you close the client window, the edit server is likely sending the buffer text back on the same TCP connection. If EMACS is sending the text back to the extension on the browser, then there's no EMACS fault at all here. Debugging this can always be done by editing the Lisp code on EMACS. You can read the source code, and add some (message ...) calls there to see on your *Messages* buffer what's being sent to the extension (via the TCP connection). Perhaps a better idea would be to put a program between the edit server on EMACS and the extension that would log all the traffic. I don't know if an SSH tunnel would be able to do it all by itself.