unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* option for loading up a gui specific emacs daemon
@ 2016-12-13 23:02 Filipe Silva
  2016-12-13 23:14 ` Alex Hutcheson
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Filipe Silva @ 2016-12-13 23:02 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]

Dear developers of the mighty emacs editor,

I'd like to load emacs with emacs --daemon=gui and then connect to it with
emacsclient -c --sever-file=gui.

This works almost right. The problem is that various popular packages make
extensive use of the (display-graphic-p) function/predicate to query frame
capabilities. For example, a theme package may query (display-graphic-p)
and assign gui or tty colors accordingly.

the thing is that(display-graphic-p) always returns nil in a emacs --deamon
type of loading, because emacs does not know if you are using emacsclient
with a gui or a tty.

Is there a way to say to emacs something like, "look, I'm starting you as a
daemon, but I promise I'll only connect to you with gui frames, so for all
intents and purposes, pretend that you are being started up as a gui".

If there is not a way to do that, maybe we could add that kind of option?

The impact of not having this options is that cosmetic packages that make
use of (display-graphic-p) always look off in a emacs --daemon loading
scenario.

thanks in advance,

Ninrod

[-- Attachment #2: Type: text/html, Size: 2422 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-12-15 13:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-13 23:02 option for loading up a gui specific emacs daemon Filipe Silva
2016-12-13 23:14 ` Alex Hutcheson
2016-12-14  0:02 ` Kaushal Modi
2016-12-14 11:22   ` Filipe Silva
2016-12-14  1:34 ` Noam Postavsky
2016-12-14 11:11   ` Filipe Silva
2016-12-14 15:59     ` Noam Postavsky
2016-12-14 15:47 ` Eli Zaretskii
2016-12-15 13:10 ` Ken Raeburn

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).