From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SKo6FGRzk2KFHQEAbAwnHQ (envelope-from ) for ; Sun, 29 May 2022 15:21:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uFtLFGRzk2InMwEA9RJhRA (envelope-from ) for ; Sun, 29 May 2022 15:21:40 +0200 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 EB96CB1A3 for ; Sun, 29 May 2022 15:21:39 +0200 (CEST) Received: from localhost ([::1]:49350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvIrS-0000AR-TY for larch@yhetil.org; Sun, 29 May 2022 09:21:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvIqI-00086h-Sr for emacs-orgmode@gnu.org; Sun, 29 May 2022 09:20:26 -0400 Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]:40774) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvIq2-00006h-A5 for emacs-orgmode@gnu.org; Sun, 29 May 2022 09:20:26 -0400 Received: by mail-qv1-xf2d.google.com with SMTP id el14so1321827qvb.7 for ; Sun, 29 May 2022 06:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=DEdlSA6Bw5MNwGC78SWAgW43fDuPbhKY8Yx+M2NpgTE=; b=OuYB+lpjeYMOnNhmYZPGK75vGvDspmb02hAMEzofH3HmA2pxr12z5SDE2TAOBvhpPr wFsUub1ELpVt0JcSUMjQbBJG5DUZ1c9+PCR1sopVaIM2foBTHjHOrhzQwU8jgehb53Kq E4lmqJQRuLY2e23OZgI3t1zaJrcij0j8jPsnYVI+qK1m9umswKTBnbcliblAwyxQJgOC l+X8W0rWmPXeEJgOv+SO5PcaQnwGAJrYE2zNNRd2guq2utjpMqPTrm30fDwjZsytEjNy 8QgpX+1zOa4Ta3fj3lTu3wjohmR5kDY0Yx3hze9oT0NlX9WGcZIDyXvzmyDTvSHVxCD2 CY+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=DEdlSA6Bw5MNwGC78SWAgW43fDuPbhKY8Yx+M2NpgTE=; b=vdBmnui8KdJx1h0gzKc4uQuwethq6gw3oBewixcNjA2b4j//kCVcl44dIONoScegZk EQNqqg8zO5mSGnQVXT7WcR1TQmh6DMnNoGWu114mjXGQAgIkb9T4AeJQA34UMDrzgelI XAuR11gen89V5LeUGTM3C7p6xJ7WZ6gCAOCdPRUXv6lsDNdrAHJrpfPOeFY4s/8Gsm6w /O31zVmd4aPvMPw5av6XmHMJ1WpkaNS93JWa6+pLE63kikElxs7YjapHOxNBrtWwUVGW OSu2BotcTvQ3vfQ8QwM77gkJ7VLqEVM97/1WRNws9ZnIlqz0GpqL1Mf8Gj1R3JWHeCnG Uzcw== X-Gm-Message-State: AOAM532jLxekLLXhk5z1z4KSIctm8weaBjl+6opgjFQwNfDnJ9iMMWOI ML7wjvr4nuZwozwi7Akgv2U= X-Google-Smtp-Source: ABdhPJzxVXXSxjvwnTFmQDCjYRN25tkymlNSXCJ032iQySF9I0kd9+Rbtah5YT2JOMX2BzUgoWX7vg== X-Received: by 2002:a0c:c206:0:b0:461:d481:b54b with SMTP id l6-20020a0cc206000000b00461d481b54bmr42522759qvh.65.1653830409402; Sun, 29 May 2022 06:20:09 -0700 (PDT) Received: from localhost (22.b2.a86c.ip4.static.sl-reverse.com. [108.168.178.34]) by smtp.gmail.com with ESMTPSA id s13-20020ac8758d000000b002f9050bb622sm5635449qtq.69.2022.05.29.06.20.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 06:20:08 -0700 (PDT) From: Ihor Radchenko To: Vladimir Nikishkin Cc: emacs-orgmode Subject: Re: Bug: org-adapt-indentation is not compatible with paragraph-indent-minor-mode [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/lockywolf/.emacs.d/elpa/org-plus-contrib-20210412/)] In-Reply-To: References: <87ilzd58yl.fsf@laptop.lockywolf.net> Date: Sun, 29 May 2022 21:20:48 +0800 Message-ID: <87a6b08ogf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f2d; envelope-from=yantar92@gmail.com; helo=mail-qv1-xf2d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653830500; 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=DEdlSA6Bw5MNwGC78SWAgW43fDuPbhKY8Yx+M2NpgTE=; b=V9XDsH1OlKIjjVb5LIQU/WsroyXWqiW7W/jUNeKlSkQ3ab5BL9K6vF3Gl1/sxI+HOdsGff JmiWJngMOYF5oVDq/PVLizwfnuTO7K4h+RMnBv3ZurVxpv0Dpnw4d6zFEqip6vgh3mryvZ AlW82Wwd7zY1nU7zn4Mywq6Z8EfG9lC7x69flRnzbDqTvYFbrsS+DRDymEVsAaS3Zwbfpj g3Wc1uAZYRYerxg9FFkiic6kq5X+xxJiSEXD4jQRsX8kBdobBdP6+y0CXW5lIz5f1pNu8l sx1TV44EWglLLnzCNwCaG6HCXpQ+cy7iU007nW7H6x8sbFgcetxkvqoNwM1D+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653830500; a=rsa-sha256; cv=none; b=tu1Ruo2XznDAKXlt742RccDMf08UmmS+F2zIGd+EG95IVyeI7DGBByHWRkuriKn1VOBdU1 TDdFEi0huPEhPYbRTPhJ003NZCdjpWnisWhJk63z5BxGkbvRkvaz6Wen7iI851lYNNAGa+ 1asgdye96wAIbCR3Zgi2jySMaTTTw2+u9SB2NalE0rVrPtOjv0pCx0GHtlOPTwRnOcpq7+ 2JGX8iKurHN0x2PKxE6QGnIyxPtnqDb33dGiicYw4emtgOlCQkZNOcpMzpnpB5YkfJHKvR /QDnMKwlyOx7Yfn0Nd1qAKbrUum5rUNuJTk2X5SNN8dOFB5Aib5q0s7gn+S3RQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OuYB+lpj; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OuYB+lpj; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EB96CB1A3 X-Spam-Score: -5.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: pHgTTltpS9JN Vladimir Nikishkin writes: > This report is not about exporting Org code. It is perfectly fine that > an empty line is required in org to demarcate a paragraph. The example > above is just what I would imagine as an "ideal case". > However, when `paragraph-indent-minor-mode` is turned on, > `org-adapt-indentation` stops working, even though nothing else has > changed. The text is exactly the same, and is valid org markup. This is because paragraph-indent-minor-mode trashes major-mode settings for indent-line-function. Org mode relies on indent-line-function to be org-indent-line, which makes all the handling of `org-adapt-indentation' among other things. paragraph-indent-minor-mode sets indent-line-function to indent-to-left-margin instead of org-indent-line. I doubt that paragraph-indent-minor-mode can be changed in general way to handle cases like this. Instead, it may be possible to implement org-mode equivalent of paragraph-indent-minor-mode. Patches are welcome! Meanwhile, paragraph-indent-minor-mode should be considered incompatible. Best, Ihor