emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/fontaine dc3257aa6c 1/2: do not throw error about non E


From: ELPA Syncer
Subject: [elpa] externals/fontaine dc3257aa6c 1/2: do not throw error about non Emacs GUI when using --daemon
Date: Sun, 12 Jun 2022 23:57:44 -0400 (EDT)

branch: externals/fontaine
commit dc3257aa6c6a472e5c4b64357471057604f78f98
Author: Florent Teissier <teissierflorent@gmail.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    do not throw error about non Emacs GUI when using --daemon
    
    We don't want to throw an error complaining that we are not in GUI
    when launching emacs in daemon mode with the command `emacs --daemon`
---
 fontaine.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fontaine.el b/fontaine.el
index 510aa94fc8..2a4bd0c010 100644
--- a/fontaine.el
+++ b/fontaine.el
@@ -476,7 +476,7 @@ non-nil."
         (caar fontaine-presets)
       (fontaine--set-fonts-prompt))
     current-prefix-arg))
-  (if (not window-system)
+  (if (and (not (daemonp)) (not window-system))
       (user-error "Cannot use this in a terminal emulator; try the Emacs GUI")
     (fontaine--apply-default-preset preset frame)
     (fontaine--apply-fixed-pitch-preset preset frame)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]