0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:36:26 +00:00

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
This commit is contained in:
Ihor Radchenko 2021-11-23 21:24:52 +08:00
parent 97c7ad8bfc
commit b4d7a24f07
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -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))