emacs_chrome icon indicating copy to clipboard operation
emacs_chrome copied to clipboard

edit-server-mode not entered

Open torpesco opened this issue 14 years ago • 7 comments

When I click the "edit" button and an Emacs frame is launched, the buffer is not in edit-server mode. I can manually enable it using M-x edit-server-mode.

Output from Messages buffer when I click 'edit' in Chrome:

Ispell process killed
Starting new Ispell process [default] ...
Modification-flag cleared
Toggling edit-server-edit-mode off; better pass an explicit argument.

torpesco avatar Sep 23 '11 21:09 torpesco

Hmmm this is odd. I suspect this might be a result of your version of emacs and having a weird (define-minor-mode) macro. What do you get when you do:

C-h f edit-server-edit-mode

Does it show the one parameter as optional?

stsquad avatar Oct 31 '11 13:10 stsquad

Just noticed something new: I got the error "Toggling edit-server-edit-mode off; better pass an explicit argument."

C-h f edit-server-edit-mode does say that the one argument is optional.

The modes I see on the mode line are "Text Fly".

torpesco avatar Oct 31 '11 20:10 torpesco

Hmm that is weird. I can't reproduce the problem on my setup. What version of emacs are you running an on what platform?

stsquad avatar Oct 31 '11 23:10 stsquad

I'm on Ubuntu 11.10, running "GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.5) of 2011-08-14 on allspice, modified by Debian"

torpesco avatar Nov 01 '11 01:11 torpesco

Looks like it's in edit-server-create-edit-buffer on the final call to edit-server-edit-mode. I changed that to (edit-server-edit-mode 1) and now I don't get that error, but the mode still isn't enabled.

I also just tried getting rid of the flyspell-mode hook for text-mode buffers and still get the same result.

torpesco avatar Nov 01 '11 02:11 torpesco

I'll have another go at recreating this when I get one of my desktops to Ubutnu 11.10, hopefully next week.

stsquad avatar Nov 05 '11 18:11 stsquad

If it's not easily reproducible for you, I'm definitely open to attempting some more debug. Just not sure where to start.


Sent from my BlackBerry®

torpesco avatar Nov 05 '11 18:11 torpesco