doomemacs/lisp
Henrik Lissner 8bf308f9b1
fix: failure to recognize X switches in PGTK builds
This is a regression introduced in 1c4217a.

Doom unsets command-line-x-option-alist when it reasonably suspects it's
not running in an X environment. The heuristic for that is checking when
`initial-window-system` is set to `x`, but as it turns out, PGTK builds
of Emacs set this to `pgtk`, so PGTK users were deprived of Emacs' X
switches, like --geometry, --foreground, --font, etc (they'd throw an
"Unknown option" error at startup). This was fixed.

However, this heuristic isn't perfect. Not all PGTK users are on X (I'd
hazard to guess most of them aren't). So a more reliable check is
needed (and it's too early in the startup process for us to call
display-graphic-p on any frame). The `(not IS-LINUX)` or `(or IS-MAC
IS-WINDOWS)` I had previously used (before 1c4217a) wasn't enough
either, because users can (and do) install X on these
systems (especially where WSL is involved). Still, until I've found a
better one, this is an acceptable workaround.

Amend: 1c4217aa27
2022-09-25 11:35:48 +02:00
..
cli fix(cli): doom install: wrong-number-of-args error 2022-09-24 23:09:17 +02:00
lib refactor: introduce doom-module-context 2022-09-24 22:09:46 +02:00
doom-cli.el fix(cli): doom-cli-load: replace load! w/ doom-load 2022-09-24 22:09:39 +02:00
doom-editor.el refactor: minor refactors & commentary revision 2022-09-24 20:31:34 +02:00
doom-keybinds.el refactor: remove use-package from doom-keybinds.el 2022-09-24 22:10:02 +02:00
doom-lib.el tweak(lib): log calling hook from doom-run-hook 2022-09-24 22:10:02 +02:00
doom-modules.el refactor: introduce doom-module-context 2022-09-24 22:09:46 +02:00
doom-packages.el refactor: introduce doom-module-context 2022-09-24 22:09:46 +02:00
doom-profiles.el refactor: introduce doom-module-context 2022-09-24 22:09:46 +02:00
doom-projects.el nit: comment revision and formatting 2022-09-16 01:14:22 +02:00
doom-start.el refactor: introduce doom-context 2022-09-24 22:09:05 +02:00
doom-ui.el perf: move doom-init-ui-h to window-setup-hook 2022-09-24 22:10:02 +02:00
doom.el fix: failure to recognize X switches in PGTK builds 2022-09-25 11:35:48 +02:00
init.el fix: add :depth field to modules 2022-09-24 18:46:21 +02:00
packages.el module: add :config use-package 2022-09-24 18:46:21 +02:00