Skip to content

Commit 620fb24

Browse files
committed
org-keys: Do not rely on deprecated boolean value of `window-system'
* lisp/org-keys.el: Do not rely on boolean value of `window-system'. Such usage is deprecated. Use `display-graphic-p' instead.
1 parent db3870b commit 620fb24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lisp/org-keys.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ become effective."
244244

245245
(defcustom org-use-extra-keys nil
246246
"Non-nil means use extra key sequence definitions for certain commands.
247-
This happens automatically if `window-system' is nil. This
247+
This happens automatically if `display-graphic-p' returns nil. This
248248
variable lets you do the same manually. You must set it before
249249
loading Org."
250250
:group 'org-startup
@@ -495,7 +495,7 @@ COMMANDS is a list of alternating OLDDEF NEWDEF command names."
495495
;; We only set them when really needed because otherwise the
496496
;; menus don't show the simple keys
497497

498-
(when (or org-use-extra-keys (not window-system))
498+
(when (or org-use-extra-keys (not (display-graphic-p)))
499499
(org-defkey org-mode-map (kbd "C-c C-x c") #'org-table-copy-down)
500500
(org-defkey org-mode-map (kbd "C-c C-x m") #'org-meta-return)
501501
(org-defkey org-mode-map (kbd "C-c C-x M") #'org-insert-todo-heading)

0 commit comments

Comments
 (0)