Skip to content

Commit

Permalink
org-keys: Do not rely on deprecated boolean value of `window-system'
Browse files Browse the repository at this point in the history
* lisp/org-keys.el: Do not rely on boolean value of `window-system'.
Such usage is deprecated.  Use `display-graphic-p' instead.
  • Loading branch information
yantar92 committed Jun 25, 2022
1 parent db3870b commit 620fb24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lisp/org-keys.el
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ become effective."

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

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

0 comments on commit 620fb24

Please sign in to comment.