From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kBGzI+u2h2B8sQAAgWs5BA (envelope-from ) for ; Tue, 27 Apr 2021 09:02:03 +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 4NliH+u2h2BTSwAA1q6Kng (envelope-from ) for ; Tue, 27 Apr 2021 07:02:03 +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 075421FDA6 for ; Tue, 27 Apr 2021 09:02:00 +0200 (CEST) Received: from localhost ([::1]:40284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbHjK-0004o6-V6 for larch@yhetil.org; Tue, 27 Apr 2021 03:01:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbHho-0004mq-H3 for emacs-orgmode@gnu.org; Tue, 27 Apr 2021 03:00:24 -0400 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:39486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbHhd-0006sv-7T; Tue, 27 Apr 2021 03:00:24 -0400 Received: by mail-ed1-x52e.google.com with SMTP id g14so8969716edy.6; Tue, 27 Apr 2021 00:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=2PMgYlAFmv8mY09NH10fEPDgqWp0pYWaeQwwCSbYh9E=; b=JD1DgSCg1X6eDtfu38C718JMyiU07FpqvtdiMZwHNt/ZXOu5VNu2tM9AoshLWWsEEv qaSc6GJhzHN4Uh+9K288wrCr+DF4qo+l5kQ/OcKIWG1VvtYB0Fw4npScwvSwK6ZkBG+u mBUNIIiQnkFrp5vBf79tT1ejqEvOXbqQ9lPK08qwSzrbDS0ILgKFBtKCI1lg58Bl75If qTjBZfZR4JoMeIUAMiKtdPlSjeeNwe5hdZfJbnE2uGF0FO78tqxRs7RL6U2tDlteJVHp p/xR2qqnkv921Y8alahlMKOS5UbFLtZJclpOxfr15sHxmicrNIf7y8YadAFvYJxlRl+p efAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=2PMgYlAFmv8mY09NH10fEPDgqWp0pYWaeQwwCSbYh9E=; b=tEK1aufpidekvjV9ms9i4MOEkx6oFgERTf2pV3/aZm18rCj6wBtp2w357qFa2NcmTk uTFNBqO1RbUR3Xdt1txQ5iGnRWIu+8TuvPyaawBjhO76InAV/unU95yZG8Vet/t9l1Sh XUgAW5ZAjK5TATk1Hro8qNGuckPX7ilLjkpdFKPTAYxsPwe2IOiA0ZT3THveQiHXR3gi VmPmQjuYmHT7UxmHXsfUkQSj0ztm1cTCsoMTwWpQLDVqas02rikafEcpR3ZD/CGssHei SY7rGuWAGaS/iomawnGRMK8qGLi6I7G4Am/XgIsz7sr0jxktr1ExOwx+vvurrBBvgTOE QoTw== X-Gm-Message-State: AOAM5325Huk254wNKQWLRotkTLXDfGiQxIttQsL8LkIxtIcjy+Uu9Ndz mkbz8S1mmf2hMLMWon6xtUJrD54IWqkIEqVc X-Google-Smtp-Source: ABdhPJxA/9Pcm8Q9WJPtn4EZ5STYcYZh48jcm3gIkOgztekQXG18H7MyqKzzd4XhxGm/SdsrZgZ4xg== X-Received: by 2002:aa7:de8b:: with SMTP id j11mr2585442edv.363.1619506810955; Tue, 27 Apr 2021 00:00:10 -0700 (PDT) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id j20sm3619221ejc.110.2021.04.27.00.00.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Apr 2021 00:00:10 -0700 (PDT) From: Ihor Radchenko To: Bastien , Gustavo Barros Subject: Re: Bug: Logbook drawer and org-adapt-indentation with value headline-data [9.4 (9.4-7-g3eccc5-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200921/)] In-Reply-To: <87v988p6ow.fsf@bzg.fr> References: <87r1qukjjs.fsf@gmail.com> <878s9p4xtt.fsf@gnu.org> <87v988p6ow.fsf@bzg.fr> Date: Tue, 27 Apr 2021 15:04:34 +0800 Message-ID: <87pmygnr7h.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=yantar92@gmail.com; helo=mail-ed1-x52e.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 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=1619506920; 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=2PMgYlAFmv8mY09NH10fEPDgqWp0pYWaeQwwCSbYh9E=; b=SMz1Usp4Ck/Yr5I0fNpwkRrxkHFaXstLTpafqJxZOZ0Pgb2Dft2l21ot6HoKol2VZtwM2l hTala9u+EaFWd84lVzgSqmV4EawtCC/ruyAW8dFk/9aWUzDvKCzHko3iTn0GBByzjjUp9Q 1iZLww9e+PfMit2h87vhpVKR30jIRky50ltvvkRhXSr+/ITlmN7OXwx0l2f2lgZG2PYnMQ K4Wyoyl1dOVeNH93s2qfuJYnvuraDVKPyuPeVQA1JqTla8fc6HC6fgCkQSDb9OOPGbkrM3 qMLe7Jni9a8+cS+EteOzka8JHNeiEwYV9SOtKjhQAaOnaJ+YK81W3KWfdbkzjw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619506920; a=rsa-sha256; cv=none; b=mY266hhuL6dZ5MQZt6GmfieWvjA8tE1ABDwSKWAJdJE3dFnyw2/A9z/hXfPmBUsHe7PTKY ud0I3B5Sp+swfds2aE7+LOD5ODHmtGvtjnJLaUn1Cetr5wMN7eAvo88YiyRQKeeITv7FUG ihmXy3ad127GinpGssYcEG3MghO+3AQ+8ICZZWRb787JukdS+Hv9LfFn73NXaqI31zaUZh 3SjUmeFjqfJKSMOOdp8rJDLFqlYhk5H7KPr/dmquzfC3E+rageawx+RJvBRX8O4fHYvUME rzFprEImJgGYUzSpI8CqwlthzmiA0QuvsD212tMzpG8afXRXWLTrM529dPnUyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=JD1DgSCg; 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-Migadu-Spam-Score: -2.65 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=JD1DgSCg; 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-Migadu-Queue-Id: 075421FDA6 X-Spam-Score: -2.65 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2GK9PqDRYbsA Bastien writes: > This should be fixed with commit 730a05f78. > ;; FIXME: when storing a note in a LOGBOOK drawer, > ;; `org-store-log-note' needs to insert a new line before > ;; the newly inserted note, thus the `type' at point will > ;; return `paragraph' instead of the expected `drawer', so > ;; we need to manually detect the drawer. Maybe you can use (eq (org-element-type (car (org-element-lineage element))) 'drawer) A quick test showed that org-element-lineage can detect drawer even when element is a note inside LOGBOOK drawer. Best, Ihor