branch: externals/fontaine commit dc3257aa6c6a472e5c4b64357471057604f78f98 Author: Florent Teissier <teissierflor...@gmail.com> Commit: Protesilaos Stavrou <i...@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)