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 ms11 with LMTPS id AIc5Ej7XVV+qWAAA0tVLHw (envelope-from ) for ; Mon, 07 Sep 2020 06:46:22 +0000 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 GLUfDj7XVV9jBwAAB5/wlQ (envelope-from ) for ; Mon, 07 Sep 2020 06:46:22 +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 AA45D9401D0 for ; Mon, 7 Sep 2020 06:46:21 +0000 (UTC) Received: from localhost ([::1]:60076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFAuw-00087o-5H for larch@yhetil.org; Mon, 07 Sep 2020 02:46:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFAuc-00087R-7p for emacs-orgmode@gnu.org; Mon, 07 Sep 2020 02:45:58 -0400 Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]:42432) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFAuZ-0005Hh-9q; Mon, 07 Sep 2020 02:45:57 -0400 Received: by mail-qv1-xf36.google.com with SMTP id h1so5982377qvo.9; Sun, 06 Sep 2020 23:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IkyodR5qzGp9VSUJnA3maZxvYhKdTYB1rZIYSHTlANI=; b=NFMFtJ4xPPe8ohdhQM9lEr8UKhwntplfo8VgmSe0MmR8FuFir7Kbg0yd0JdfKd0uY+ R3NFSI6E97HBvk30aNG2SA0bkoTFXwQdkx14L7xw/B6NMbpiWZVmyT/dOR1/dv/YX5Px 2xKToxwWJlSeASgPKTjWDrnEubG4wSdHGw+AsecuhX3RGKNp3fE1x6+ZD4FOWTzAdjv6 qZ1bDgT7YK+vaw1ra2nelXYnAoCL99UJdojJ4vGPNaMVkqwvWzPKxAnZWhnZvmVZOY7F 2IQD9xvgsD84x9brXkuZ+vP93/iXstPtFZJyn2vn+4Q8JbdaGodo60RpoFHEIvcskB6+ K9FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IkyodR5qzGp9VSUJnA3maZxvYhKdTYB1rZIYSHTlANI=; b=Nyp4hzXFSkL7N1u2WquhX3dyYstK/z9d9ZPYFdhfdb/qwOJMzF+/XG0ZYcarJ7CAOd +IKaxf77Lw8aIsbRKdtNsbMtzXXRYrQj/WxSOp+SzNnuTIOsJ+0wa86UoDdfs/D/X9hs PbCvcr1OSmcFsEl01Wdqvt2YHIkpKMoAa7ovGb2a+MreGxlkDvCdjewaZ7H2O6BojcsB H+nNeUAe9W1kPBMq4S6NJo9EZCEI15RIJyLtkaQJcm6PoNUZ0XXVjHaV4xvyWrY35qK0 A/SpF7Rc8d7Sd/lyolnywNSAldH99LiFtom00GXXWMFS5VMf7/6wIQn4nXJsunwktqv+ m9zg== X-Gm-Message-State: AOAM530GgBHJT8Y/sVCaiwHnq+I7UAi65LMoMMfCX+aP61tWMKXyA5w9 QtAWOD5E5nhL3sWMBVrHPlseVFspUgU+A+yzqcwV8ir++1Q= X-Google-Smtp-Source: ABdhPJyPyBalqWniSG15UsvP1IAjJJ3qkC50mSKhHG6MHfGhrUF47vGDATWgZbFONzQWl3yxU63KSsUs4xOtUBDG8fw= X-Received: by 2002:a0c:b786:: with SMTP id l6mr3756877qve.11.1599461152192; Sun, 06 Sep 2020 23:45:52 -0700 (PDT) MIME-Version: 1.0 References: <875z8s5wu7.fsf@gnu.org> In-Reply-To: <875z8s5wu7.fsf@gnu.org> From: Christian Hemminghaus Date: Mon, 7 Sep 2020 08:45:26 +0200 Message-ID: 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/)] To: Bastien Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::f36; envelope-from=chrhemmi@gmail.com; helo=mail-qv1-xf36.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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_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 Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=NFMFtJ4x; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -1.71 X-TUID: N4TI/jsz9Nx6 Hi Bastien, > I guess this is due to `org-element-at-point' considering inline tasks > as headlines, thus trying to move only one line. > > Nicolas, would you know how to solve this (if it does not get us into > hard syntactic decisions)? This would probably be the clean solution. As a (temporary) workaround, I hooked org-metaup/-down and ask for org-inlintask at point explicitly. ``` (defun ch/org-metaup-inlinetask () "If at inline task and not active region, drag inline task backward." (if (and (not (org-region-active-p)) (org-inlinetask-at-task-p)) (org-drag-element-backward) nil)) (defun ch/org-metadown-inlinetask () "If at inline task and not active region, drag inline task forward." (if (and (not (org-region-active-p)) (org-inlinetask-at-task-p)) (org-drag-element-forward) nil)) (add-hook 'org-metaup-hook 'ch/org-metaup-inlinetask t) (add-hook 'org-metadown-hook 'ch/org-metadown-inlinetask t) ``` Regards, Christian