From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id y9w6C8Xyj2BZgAEAgWs5BA (envelope-from ) for ; Mon, 03 May 2021 14:55:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UCQ1BsXyj2DhfwAAbx9fmQ (envelope-from ) for ; Mon, 03 May 2021 12:55:33 +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 83F611946F for ; Mon, 3 May 2021 14:55:32 +0200 (CEST) Received: from localhost ([::1]:35140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldY6l-0002vU-FQ for larch@yhetil.org; Mon, 03 May 2021 08:55:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldY4y-0001dZ-Tw for emacs-orgmode@gnu.org; Mon, 03 May 2021 08:53:44 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:41937) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldY4q-0004yo-Om; Mon, 03 May 2021 08:53:40 -0400 Received: by mail-wm1-x334.google.com with SMTP id t11-20020a05600c198bb02901476e13296aso3451640wmq.0; Mon, 03 May 2021 05:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=dnNRcobucwgFWE4TGd/QCs31x/brCobotjAw4NVmVl4=; b=kYhWmrkJ18/En2bEJdcosX7jokAkyM1MSULKH/c2fUXjrUb7VMGhz3F5OPH3b3Duoz xR93HT569Y/QmoLs8/x+L+zktAOpRV7/i3HQVGVfbvCi407juGpv9l3G0z60X+JnpV9x 3sW5aA+zsE1raCeZgm9NYSt/ojDShFPtArPrmAUH5l3tED/drg7eIm9PoGOOypnyivWf vnRNJc+11FpO7rij9/ZMIhhuXcEuzrYK4o7D43XaiKnTWu0EYgsRS0q0bnGHwUpt2iyO sRJQrZXToDKv986cYqcBbN0cJUBSz/OBw/gi6hXesgzVZv4K69Yazgwl52eNb2mdodUe ae8Q== 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:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=dnNRcobucwgFWE4TGd/QCs31x/brCobotjAw4NVmVl4=; b=HrAz/b7z+YMFphsnlhBW5gLXrmtAbXt9YMbBnRymSb5EbDPOiV+gSbEdqm/J7sDpK6 WYuhappxqJWb7FgZ5hrc6K0JwsAnfMIMS3S1Ws0ONDUOSkp09++bK45NbniaOcMQAqX2 ixdweCXClm0tY0ntkxZ9uvDUZaxfdC1pdx5wl7ypow3H8qWvQ4+uC22nwtvfgm5IVGM9 5tXoTO2qQlj8WXAwQUSjhM6k6vLWc+ffYkeEELEhNwCqu0ffHyEZNnzos5giK3RhJpzv V5Wafd+4pH3fPnyodOWhUIOq7vxQqzMPRl/wDgpI0gJsyVQGsUuU+nsTekI/AQxB0vVT QpJw== X-Gm-Message-State: AOAM533OM+feetRh9QYo7LC3BMpQXYCDdY0LopgFwOeDaemCvpcsV5Tq C+SuQS14kxYFfbERjisILvuBqXZfhzs= X-Google-Smtp-Source: ABdhPJxe1W/MhWGvf/9ee0uqtUfihcv+IKUfejYElRhWjXQEftoKujeh36woaXuaN3PlfKsecOHLlQ== X-Received: by 2002:a1c:f313:: with SMTP id q19mr21141248wmq.142.1620046406784; Mon, 03 May 2021 05:53:26 -0700 (PDT) Received: from amdahl30 ([2a01:e0a:20e:d340:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id h5sm21191714wmq.23.2021.05.03.05.53.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 05:53:26 -0700 (PDT) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: Bastien Subject: Re: [POLL] Setting `org-adapt-indentation' to nil by default? References: <878s4x3bwh.fsf@gnu.org> <87y2cwooh5.fsf@gmail.com> <87fsz4gtjs.fsf@gmail.com> <87a6pcfdh2.fsf@bzg.fr> Date: Mon, 03 May 2021 14:53:25 +0200 In-Reply-To: <87a6pcfdh2.fsf@bzg.fr> (Bastien's message of "Mon, 03 May 2021 10:06:33 +0200") Message-ID: <871rao7zcq.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x334.google.com 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 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=1620046532; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dnNRcobucwgFWE4TGd/QCs31x/brCobotjAw4NVmVl4=; b=k5/vVJY4PlWuvvjiA6k2ZtaIX2/kZO47zMHMBfe5DNjc/W7JBlO1Yptt8DdgGE9NQYNzk2 /slCXVVUbucggARzXiqRsSeY+YgGIr7dtGKI3shRo3lCyta0XCSH9drjBRAtdMtLAiUElu ugQ/z0bcPl7jVaZ3O/wcROedr5Zzaqe6ugL/648kXqXbnLHBSkGVHyAtMVT3te1/GWkpBl PJ/+CVG5dzZ3ZgjodGm7Kp/LVyF2expndVOkIcMGmEZKDwpwKlEnggrMxJSx0J+STJ6S78 brHZ4H2Xfa3+cT1O6nMjC+7H/MP8NJfjB/WedS+t/OKGBZcN1PRv/ox/y4OaZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620046532; a=rsa-sha256; cv=none; b=U1p6omQSriMgV3Iumtu3NHKzVwEzqKgIROzfEsQ8KvThCtg5cyGl22OZeSmH8iFZelYnf6 dkXiMrQ7Ur7DDpNTj7a8V2Dhzd8XhpHuwHcJqLdA8VaZoL1JfYmI3pkvlbLTgVIbO2qFNn jM51DFboW4y1Xe02fhlA5RYnUBsiCblNzHr8ygedfc5Q09XNp1De85heGdI0yagpOdfLGO 5Q2w570FDudjJmTJEcyEIVVJBrWi9xf53nMkKa+PJdQxxgblGzltQWuVEYT5kJ/CnH8daa hSs431wv+uVGJ2uAqFYJfcn8q2umBgQjfm4cCYi8w8PKdwwZcBcsM4vi2v916g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=kYhWmrkJ; 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.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=kYhWmrkJ; 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: 83F611946F X-Spam-Score: -2.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: waTl2kAQCyHX Bastien writes: > K=C3=A9vin Le Gouguec writes: > >> A fews more moles to whack, maybe: >> >> - RET after an ":END:" starts an indented line, >> - "* headline RET text TAB" indents "text" (and subsequent RETs are then >> indented). > > Fixed, thanks. Great! One last snag that I can see: when inserting properties or clocking in, the :LOGBOOK:, :PROPERTIES: and :END: lines are indented, but the /first/ :property: or CLOCK: line remains at column 0. I've looked briefly at org-indent-line; IIUC, those lines get caught in this condition: (save-excursion (beginning-of-line 1) (skip-chars-backward "\n") (or (org-at-heading-p) (org-at-drawer-p) (org-at-planning-p))) I'm guessing we'd need to throw some (org-at-property-p) and (org-at-clock-log-p) guards *before* skipping backward over "\n", but I haven't thought this through completely yet. >> should at least write test cases for them. Will try to find the time >> Sometime Later=E2=84=A2. > > This might help: https://orgmode.org/worg/org-faq.html#indentation Wonderful! That will definitely help, thanks.