[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org b4d7a24f07 4/5: Make org-shiftmetaleft/org-shiftmet
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org b4d7a24f07 4/5: Make org-shiftmetaleft/org-shiftmetaright honour shift-select on MacOS |
Date: |
Sun, 31 Jul 2022 03:57:43 -0400 (EDT) |
branch: externals/org
commit b4d7a24f07c448a3ef714ee91d8ae7ac97b2d8cc
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>
Make org-shiftmetaleft/org-shiftmetaright honour shift-select on MacOS
* lisp/org.el (org-shiftmetaleft):
(org-shiftmetaright): Honour shift-select bound to meta-arrow on
MacOS when `org-support-shift-select' is non-nil.
Fixes
https://orgmode.org/list/CAEOO5Tdg6sdjNfAg=J_DVQ50xx1oxaFaVyyYnda6O_-t3hG2jg@mail.gmail.com
---
lisp/org.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lisp/org.el b/lisp/org.el
index c12b691eb2..3aa8072fc8 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16493,6 +16493,10 @@ Calls `org-promote-subtree', `org-outdent-item-tree',
or
individual commands for more information."
(interactive)
(cond
+ ((and (eq system-type 'darwin)
+ (or (eq org-support-shift-select 'always)
+ (and org-support-shift-select (org-region-active-p))))
+ (org-call-for-shift-select 'backward-char))
((run-hook-with-args-until-success 'org-shiftmetaleft-hook))
((org-at-table-p) (call-interactively 'org-table-delete-column))
((org-at-heading-p) (call-interactively 'org-promote-subtree))
@@ -16509,6 +16513,10 @@ Calls `org-demote-subtree', `org-indent-item-tree', or
individual commands for more information."
(interactive)
(cond
+ ((and (eq system-type 'darwin)
+ (or (eq org-support-shift-select 'always)
+ (and org-support-shift-select (org-region-active-p))))
+ (org-call-for-shift-select 'forward-char))
((run-hook-with-args-until-success 'org-shiftmetaright-hook))
((org-at-table-p) (call-interactively 'org-table-insert-column))
((org-at-heading-p) (call-interactively 'org-demote-subtree))