From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EG7kGuLEn2DRFwAAgWs5BA (envelope-from ) for ; Sat, 15 May 2021 14:56:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GDTAFuLEn2CrLQAA1q6Kng (envelope-from ) for ; Sat, 15 May 2021 12:56:02 +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 CAE2424B8A for ; Sat, 15 May 2021 14:56:01 +0200 (CEST) Received: from localhost ([::1]:51960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhtpp-0006Eo-1k for larch@yhetil.org; Sat, 15 May 2021 08:56:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhtpO-0006EX-Ba for emacs-orgmode@gnu.org; Sat, 15 May 2021 08:55:34 -0400 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:38658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhtpM-0003zU-KF; Sat, 15 May 2021 08:55:34 -0400 Received: by mail-lj1-x231.google.com with SMTP id v6so1698383ljj.5; Sat, 15 May 2021 05:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version; bh=jfI40OK4flf2ZtlsR9iEwidMdee1AUxT0Ko/IBPxqFg=; b=SlBPtvAhu5BGI0pZD5YU3bo8aEvmmJhvF/pwrArEWeG1uS4x+AouoXShUn0pj3Iy1C LCkaOUq2W6tm1MIhpfwGIvlK+kgrNDFEeH55NbMi3kRhCzwjasRMsmo/SmYt8Mr8WYRr 3HewU9SRNQYP3Sx094wGjF01pFAqHE5AmS29HAabRD2b+bIU5a6m0BgHjH/uroLR7sbQ z6R2JQSpwR080JAhOMAI0pBKCHMd6Xo9wDfKaZE1xFqbICL+CMtZznIoENarUmJR4V1q N7ofd6V4Mvc/fhhfI+aIyjKCjW3XWAnjoJbixdMy05vFOpyd1KvqRE19tA+pQ8tB/Z57 khFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:cc:date :message-id:mime-version; bh=jfI40OK4flf2ZtlsR9iEwidMdee1AUxT0Ko/IBPxqFg=; b=YJzJcGAJBs99MEuHgA4P0PXgWmbfrBjzhCtfexZBj66b20QWfp/8guWSitDuVC+0w9 E57WnWKrZML4tP7wGICeEXl+ySl9DgUi9yV1hkr1tY8IrZ+MjmmY0nYeZux7ySAiwy5O OTJL9UXniqoFCUaRrxrrRr0gLRfL6UqhR8LG8KLsZ6uqWwsm/30ynBeJMnspN4494R31 8GhciC8XXdmJL5qH0bavljUTl/rr9/n/fJGcHUXRW2Qgek29aO1ll/rTgbwf7p9nHd4f SenSNahWM5N71URHteYRH7arNsrsiDCcO9QKyKXf7JX9lUK0709iDHGgE6o4A6tg1gE0 yCMQ== X-Gm-Message-State: AOAM530wac1YSC043sugqGuiqcYQGw/0mXGaOXYND/bPPSbjkcfNigxV wjkJO/ohx9bHuoh90XJRbwS97hSch/BIcl7y X-Google-Smtp-Source: ABdhPJy8+c5BfjLZJIGKSNtipu6AbLddciI/yle3DgEgOHiLjEZc46a+M4c8LDSm9XVa+3/yjXTCzg== X-Received: by 2002:a05:651c:38d:: with SMTP id e13mr41527840ljp.226.1621083330154; Sat, 15 May 2021 05:55:30 -0700 (PDT) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id v7sm2015489ljd.59.2021.05.15.05.55.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 May 2021 05:55:29 -0700 (PDT) From: Ihor Radchenko To: Bastien Subject: Re: Bug: Moving org-inline-tasks produces error message [9.3.6 (9.3.6-elpa @ /home/c.hemminghaus/.emacs.d/elpa/org-9.3.6/)] In-Reply-To: <87r1i8dvje.fsf@gnu.org> References: <875z8s5wu7.fsf@gnu.org> <877dk23hqn.fsf@gnu.org> <87sg2oqmrx.fsf@localhost> <87r1i8dvje.fsf@gnu.org> Date: Sat, 15 May 2021 21:00:21 +0800 Message-ID: <87r1i8m9sq.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=yantar92@gmail.com; helo=mail-lj1-x231.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org, Christian Hemminghaus , mail Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621083361; 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=jfI40OK4flf2ZtlsR9iEwidMdee1AUxT0Ko/IBPxqFg=; b=NeMYmXeFKqUiKFmR8TaPm7gD0hm3+1TRk5ItQaqRo17Z2OQvuzIh47tIH+al2NPE6FCGe2 ZU+kL03WiELtMkcGk4SpG0z0ZQkrjP4eOqEh0iNdn1tq16s5zx/1JSCXeMpJ/y5/qbNtcc muDVF5DUYLo2FJ5UqwbYEJP+9MU75t0BZmDPVABLToxF1EmcCx+YjD+bu+VQ8qPcMjPWat NrGF+bu9L2SFijc801dZoY6yOYu/sMt1r6jVeaXkAbTTxy9oL0N5wu/38jSalsExzku+zz yJgiaT50AvBB5KoNsVqQRPu1AC3JiRAOJZIXIQkzENVRX9utK4YnEUS7D72+/A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621083361; a=rsa-sha256; cv=none; b=Jaz3ssYZZH/gSmFP1VfWkhqWwtdDgXL2wKsKUE2MgFRQZWz6qKVD6qpON7xAH5JM+J3Gqk WN+75nABBQKoo2P5/oTUpcwkHJq6LYuAOxT5SVhspl0N9caMg/60MjbsUI91wxrDNnX363 sxrN6ek7bwg+or3/6u4qAoWZQZDKD8eFVSVEmEEeAgk5Tz8zHwcTOoxEpCGqUziT7GBYeE CnF8wVCma4yFWjrMNkM+CpJpggfzRqeXZgSulAIlqkc/zlO0ey9nn9j6nAOV/UWAudaSTu tyGf4rhu1M2LbQyOzj0biUBXKKGOtvczSmFAVIRW8FO3x07szuKqzvR7uWBxYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=SlBPtvAh; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.85 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=SlBPtvAh; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: CAE2424B8A X-Spam-Score: -0.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: k0TZAFl7wO8F --=-=-= Content-Type: text/plain Bastien writes: > Can you make a patch for this? It was easier than I anticipated. See the attached. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Allow-moving-inlinetasks-using-org-metaup-down.patch >From f681dcb12df823cafe388973bb93c83ce2e0f6bb Mon Sep 17 00:00:00 2001 Message-Id: From: Ihor Radchenko Date: Sat, 15 May 2021 20:57:00 +0800 Subject: [PATCH] Allow moving inlinetasks using org-metaup/down * lisp/org.el (org-metaup, org-metadown): Use `org-drag-elementbackward'/`org-drag-element-forward' to move inlinetasks. --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index ccf438f70..d031e6916 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16213,7 +16213,7 @@ (defun org-metaup (&optional _arg) ((org-at-table-p) (org-call-with-arg 'org-table-move-row 'up)) ((and (featurep 'org-inlinetask) (org-inlinetask-in-task-p)) - (user-error "Dragging inline tasks is not supported")) + (org-drag-element-backward)) ((org-at-heading-p) (call-interactively 'org-move-subtree-up)) ((org-at-item-p) (call-interactively 'org-move-item-up)) (t (org-drag-element-backward)))) @@ -16246,7 +16246,7 @@ (defun org-metadown (&optional _arg) ((org-at-table-p) (call-interactively 'org-table-move-row)) ((and (featurep 'org-inlinetask) (org-inlinetask-in-task-p)) - (user-error "Dragging inline tasks is not supported")) + (org-drag-element-forward)) ((org-at-heading-p) (call-interactively 'org-move-subtree-down)) ((org-at-item-p) (call-interactively 'org-move-item-down)) (t (org-drag-element-forward)))) -- 2.26.3 --=-=-=--