From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kNSXA3nsnGEWgwAAgWs5BA (envelope-from ) for ; Tue, 23 Nov 2021 14:28:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CIriOnjsnGGfZQAAB5/wlQ (envelope-from ) for ; Tue, 23 Nov 2021 13:28:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A65EC6B4D for ; Tue, 23 Nov 2021 14:28:24 +0100 (CET) Received: from localhost ([::1]:37184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpVqP-0003l0-Ub for larch@yhetil.org; Tue, 23 Nov 2021 08:28:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpVof-0003kr-I3 for emacs-orgmode@gnu.org; Tue, 23 Nov 2021 08:26:33 -0500 Received: from [2a00:1450:4864:20::531] (port=47018 helo=mail-ed1-x531.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpVod-0000S2-LZ for emacs-orgmode@gnu.org; Tue, 23 Nov 2021 08:26:33 -0500 Received: by mail-ed1-x531.google.com with SMTP id y13so91978653edd.13 for ; Tue, 23 Nov 2021 05:26:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=S1wXaQpZu185AUzDS+pITVzQg9/V9b8HchEg/BabdyE=; b=BFeZr+wzkyGbhXY4UF7hiSGYUZ1Lhh4Ti8X7hreCBr5mWh1m1B+oYsWGu21sXO9c34 zdmUgN6aixUXmr9cWcGWgJNeKw0vNH53b0XboN2WB1Pj5MKJ6yFeUgKoMhghsSR49/+B W3inaEm1sDPrrmoK9N7SVQ2hSZRXnhE2/clVhOCTYof0Y1jkuMjSKta/JccbyZZJZ3Mj vIeIiTpNpzBEEVQgTs5CCze+QYozr8BQdK1NvRJGCK6JNOXKv9hBmn7ntmrSW7/faa7I 0O+5PVn4yJmC5R+Y2xCmu5ipghuvyavs7BV4/12HBm5x7XC46u3/kFoO/KYEFQ98rdsX 3m8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=S1wXaQpZu185AUzDS+pITVzQg9/V9b8HchEg/BabdyE=; b=AlCZYrEBGdSxm3DwakX4LWdvrcIAP7Fnaky5VjEf8vhZImMFRyCfdWuEQdr76CSW6D rBzn1d7N/YGZ8esqdrIyr5BRYgoJshEsjXB/F5crjGsmjzzjLrvpj0v8y92/C2K88sCm qI2Emnz0WV+oGYkGz+EL358fMF3f0PzJBoLFstUF+pdypnmwAHOFZlsK1vXF8v8QTT88 Au7YzLKylc5lmalbYz1xnC9S1CwKZkzFcn/8lFTT2FIcWYwoSDbk9+yQVHoTromYAMhH 0wa+eGhAUMZzXgML5ytOy2QZwKYK8w+DWZ79jLEp2QiM9FDIu8KkzAKaJOgRy7O+gs+5 FEBw== X-Gm-Message-State: AOAM533TF91p4kz9ji84IWRdKio3hf9cg5UiOnMi5PuA6n1XYBBHlHgO uRDZX9WzaTeb04vYJj6JVY+NjnEU/SV2Mltk9XmQwA== X-Google-Smtp-Source: ABdhPJwKlD25XOGsOkLgNkWNaB1s9bnv2OwmFa9oOHmFWR0aGUSuL3kSHHqnCy2UfPBvngHPA1Z7Cg== X-Received: by 2002:a17:906:58c9:: with SMTP id e9mr7598641ejs.181.1637673990302; Tue, 23 Nov 2021 05:26:30 -0800 (PST) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id q7sm5812574edr.9.2021.11.23.05.26.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 05:26:29 -0800 (PST) From: Ihor Radchenko To: Carlos Pita Subject: [PATCH] Re: org-metashiftleft/right should honor org-support-shift-select In-Reply-To: References: Date: Tue, 23 Nov 2021 21:27:54 +0800 Message-ID: <87zgpvf1d1.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::531 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=yantar92@gmail.com; helo=mail-ed1-x531.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637674104; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=S1wXaQpZu185AUzDS+pITVzQg9/V9b8HchEg/BabdyE=; b=tLbYspNLMDd13i0rfXtTUJeBeskRksjeAYmvNl+ClHHRakgSQzmB/Q7Zn4I3f8Cp+YKu8o 1+zoT6KtdxLaS+pF1I4WotuPmEVsTyraoTvUWTyzPbhb5tT2CGhuHhD4f69Z+LcJ2ZV174 tD3EJRa/CdduiQCLOl++Phb2AH/BZQSg7Wg1oHgnJmBXTMpynbrcrADmzQ82jCr3Paw5ev kiR6U83IrGTP30GnIyvKoIX6Yvh1L4/KqzSLY3mNA1S75hGMHNkKessaDPFhr7tOQPPAcx ebwE7gBKbd2RChbr4H/ckdL4BHh6QLDWaQEEZuCbWx+01pQClSQPsNjAt5EUIQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637674104; a=rsa-sha256; cv=none; b=LPUwurp1x+9fIlaQqdF2KHAuZg5oCjxhbcweQ9iAC9xPvIuzURZICaz4jlTLtLROrjzhY2 dBzP8dsnWQis5K03zX1u7DLh/rJzQ70dV0XGNYxoez5Dlyp4q7necHrhIYW/QE1Yq5CfPo tmj5eF8Mpv0CEsm6CGaS1+hmvis3ntjiuG9iSwJSMyKjyXH6JUxEvS/AU4eDhDyEjEamCm 3u06fkYl4s3LeJPYT2rll3qhPcK/BLloKqU7heBZ/IXErz/WB4F75BNnYqJTJVdrUXp5uK lZwNtjZFInajiPEHUPE0vdjm6CBPdFiF4tXN3FMF7W8XfnCtGtbafwK5qSEHWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BFeZr+wz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.58 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BFeZr+wz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A65EC6B4D X-Spam-Score: -3.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: ObvJqu38Qc7g --=-=-= Content-Type: text/plain Carlos Pita writes: > Hi all, > > on macOS option-shift-left / right extend the selection by one word. > Emacs by default binds meta-shift-left / right in a way that is > compatible with the system shortcuts. But org-mode interferes with > these bindings even when org-support-shift-select is t. OTOH, an > effort has been done to support shift selection in > org-shiftcontrolleft / right. The problem is that macOS uses option > instead of control to achieve selection by word. Can you test the attached patch? I am not using MacOS. Best, Ihor --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Make-org-shiftmetaleft-org-shiftmetaright-honour-shi.patch >From 77312a266c200a65a4a8cf63040e32357304396c Mon Sep 17 00:00:00 2001 Message-Id: <77312a266c200a65a4a8cf63040e32357304396c.1637674022.git.yantar92@gmail.com> From: Ihor Radchenko Date: Tue, 23 Nov 2021 21:24:52 +0800 Subject: [PATCH] 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 048abb142..a86ad301f 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -17378,6 +17378,10 @@ (defun org-shiftmetaleft () 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)) @@ -17394,6 +17398,10 @@ (defun org-shiftmetaright () 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)) -- 2.32.0 --=-=-=--