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

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

[elpa] externals/org 620fb24050: org-keys: Do not rely on deprecated boo


From: ELPA Syncer
Subject: [elpa] externals/org 620fb24050: org-keys: Do not rely on deprecated boolean value of `window-system'
Date: Sat, 25 Jun 2022 04:57:48 -0400 (EDT)

branch: externals/org
commit 620fb240502190e3c85128afee34e92c2c557b2e
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    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.
---
 lisp/org-keys.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org-keys.el b/lisp/org-keys.el
index 782ffa8710..ee12061018 100644
--- a/lisp/org-keys.el
+++ b/lisp/org-keys.el
@@ -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
@@ -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)



reply via email to

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