From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yK+lI3aqn2ACcgEAgWs5BA (envelope-from ) for ; Sat, 15 May 2021 13:03:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wA5iH3aqn2C5YAAA1q6Kng (envelope-from ) for ; Sat, 15 May 2021 11:03:18 +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 63C2B2438F for ; Sat, 15 May 2021 13:03:17 +0200 (CEST) Received: from localhost ([::1]:44510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhs4h-0003aa-BE for larch@yhetil.org; Sat, 15 May 2021 07:03:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhs3B-0003Ya-Om for emacs-orgmode@gnu.org; Sat, 15 May 2021 07:01:43 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:36789) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhs38-0000gq-D9; Sat, 15 May 2021 07:01:41 -0400 Received: by mail-lf1-x12e.google.com with SMTP id m11so1978579lfg.3; Sat, 15 May 2021 04:01:36 -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=M0uHv0R5PTTAto9n0cTOo11Q9OI2UDewbSxrfXmQbmI=; b=A/9mdNepGgAx3Uu19axzODzYV1eyVgDl8ys+PMP8Yxuea5jA4MZgIac0WeIK7GXjpT lxhNBr2v4mLP3IrcGVtH2DxUDOWDWN+VSaQyl83H2Cs9xP3AXkmjFholhRQBSwvkpNuc H/3MDtDJD9eDWYp12kLFUJKO9v8cSPGl6Q4eoj9anhZY9bBGaHjnYoYcIDXYsQu2xu8j N2zzWV4+8759Mtk21MBoPtHTIzhu3cWZN1QKEnplqrRIjJx8LuH8j0lrvbBM4f67Twqp ihHG/l4itzDIacWjqbob8/+qxOWq1e018Rc614vjSxK5Z4alOstAORBSree8O08R+kin VSpQ== 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=M0uHv0R5PTTAto9n0cTOo11Q9OI2UDewbSxrfXmQbmI=; b=eCofY+ybcz6WuQAJpX4b3L0DceXcIOsU1+0cRXyQs+Rwz8fJ3CPvf6oYhGVW0ysDn+ nuUYKIEw37yCreN430aERmUUM+FWBLjZe2tbIoak0oxdQebQNcy0eoqgd5BzYKIOn0co DBylZGNr2MqgoOQZM4jo+mkwzY7LKAKf2NzY/jkzDXXhHmCm2gGuOixjk6cCDnA63a3D bmK01gzYaZ4Yv/HFxUexF7g8/RY2NrqpRPxA7UGLTycqHncuNEVs7ZgsE0j/9vS5FwPV R02IrWmstt/QfCg4QsbfJVzkg2eaeFPvLgLQYDl+PKfdSUl8PSwHnLTd6HHrmz//8AXH NoWg== X-Gm-Message-State: AOAM531kJ+8bZjOcsgFVeqCjj8SkIyTuZOs/P5jkpkBy2nOH0AXXPZ2I iyWSy8oQlMguBk2izUDWJwwyOXD1vfAQ0w== X-Google-Smtp-Source: ABdhPJwCsz+btH6507wSR/hF6BcyK5Dx/Vfgs/ui8x1lUkmtda585tbHGdRotC5sLjODn8/w4nKUYg== X-Received: by 2002:a05:6512:5c6:: with SMTP id o6mr3432423lfo.455.1621076495409; Sat, 15 May 2021 04:01:35 -0700 (PDT) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id b20sm1351260lfp.308.2021.05.15.04.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 May 2021 04:01:34 -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: <877dk23hqn.fsf@gnu.org> References: <875z8s5wu7.fsf@gnu.org> <877dk23hqn.fsf@gnu.org> Date: Sat, 15 May 2021 19:06:26 +0800 Message-ID: <87sg2oqmrx.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12e.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, mail , Christian Hemminghaus 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=1621076598; 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=M0uHv0R5PTTAto9n0cTOo11Q9OI2UDewbSxrfXmQbmI=; b=m3tIKcD5NI80w+WhVuX/UoAC6H4S+SJmHl+PRm6x1KOeeilsXtgnHYWKX4+laocW+S2GTU fY7mlugskuVaF631bSGHY+bEuX6oaW4sbZ2eD5A5DSntkgz/gf0je5BrWA3mf15iBL1UgX EbOqGwI5C2nL7NPy0guN8x8EsUJWlmOGSATQTyOVC+yA9C/pCOZ3A0uXg2zb9s8YzNUoHS /yf0/Dy5fTWCs7dt9W2oF4YJ3t8xCG49FkKzsbFAfTyTXlkYirVmu6Sbg8iBlBdmgxjvns UFktC4oF34olkflyobWKL0gN/otGGy8VuUYhgyTtLO21PNZPb6N7SVtdaaXaPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621076598; a=rsa-sha256; cv=none; b=qL0KHwEumxgYa2xpBsV+gBUVr/gPNlbvLAy/UmbP2WVx95hTPaA6uGoAgX3MlKskJaXaKJ XwhWRmjiPJKcpSlI1DFKYLawkR8JCmsC2TEptSQ0p06eRHxoMwHCPN9iP73RQKSw9n5aH4 oU41qiDJpTY/Bg/FnPj7QIigwmuRI/icT7wZTVWoJfOxSXp0ttNb5II0vtF00qiWyAO2kF nPcbJ5HvbVXAcfeMlirOTTPrRO2B9V0aZ7XVkwsO5dltO7k9j8XrKBAHP7sylLOtkr+CLP 54yVTxtk48NiAjZ5ITwBLMzCd1vOAUrH2MS5OuxwA5+fP+CJuujaS5z0YUuIiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="A/9mdNep"; 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-Spam-Score: -0.85 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="A/9mdNep"; 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: 63C2B2438F X-Spam-Score: -0.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: MZs7+KbtOhL6 Bastien writes: > Carsten proposed a patch that I adapted a little bit and pushed to the > maint branch. We now throw an error saying that dragging inline tasks > is not supported. Isn't it easy to implement using org-element-swap-A-B? Something like (defun org-element-swap-at-point (&optional down) (when-let* ((el-cur (org-element-at-point)) (el-other (org-with-point-at (if down (org-element-property :end el-cur) (1- (org-element-property :begin el-cur))) (org-element-at-point)))) (unless (equal el-cur el-other) (org-element-swap-A-B el-cur el-other)))) Best, Ihor