stsquad / emacs_chrome

A Chromium/Firefox "clone" of It's All Text for spawning an editor to edit text areas in browsers. Based on David Hilley's original Chromium extension.

Home Page:https://chrome.google.com/extensions/detail/ljobjlafonikaiipfkggjbhkghgicgoh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nothing happens if only emacs --daemon is running

DirkSchmitt opened this issue · comments

Description

My personal setup is emacs running in daemon mode.
If all „frames“ are closed, but the daemon still running I can't open a new frame with Edit with Emacs.

The problem is mitigated if at least 1 frame is opened again

Environment

  • emacs25
  • firefox 57.0.4
  • edit with emasc 1.14

Startup code:

(require 'edit-server)
(when (daemonp)
  ; customise to have full menu
  (setq  edit-server-new-frame-alist
         '((name . "Edit with Emacs FRAME")
           (width . 80)
           (height . 25)))
  ; preset some per domain mode settings
  (setq edit-server-url-major-mode-alist
        '(("github\\.com" . markdown-mode)))
  (edit-server-start))

Is this the same symptoms as #132? I'd like to see what (edit-server-start 4) leaves in the logs.

Ahh I think this is the regression from:

(if (memq window-system '(ns mac nil))
    ;; Aquamacs, Emacs NS, Emacs (experimental) Mac port, termcap.
    ;; matching (nil) avoids use of DISPLAY from TTY environments.
    (make-frame edit-server-new-frame-alist)
  (make-frame-on-display (getenv "DISPLAY")
                                   edit-server-new-frame-alist)))

Can everyone test the latest master?

1st Test is successfull :-)

I killed emacs --daemon and replaced edit-server.elwith the current version from github.
After that run emacs --daemon again and start editing this comment with Edit with Emacs.

OK closing as fixed. Thanks for your test.

This worked for me too after update new edit-server.el.
Even, i restart my emacs daemon, and never open any frame,
i still could invoke emacs frame now.

Thanks very much for this.

Emacs version: 26.1, Arch linux