From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yALoLh89rWRgvQAASxT56A (envelope-from ) for ; Tue, 11 Jul 2023 13:29:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IFRoLR89rWSSEQEAG6o9tA (envelope-from ) for ; Tue, 11 Jul 2023 13:29:35 +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 0D6DB68D66 for ; Tue, 11 Jul 2023 13:29:35 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="cf/MDtA0"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689074975; 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=EBOUU+sIYHb8x9waJF9uT54AzjwXzEqzSKHgHzaRP/A=; b=e+W1J/aUN84sdBV+1XINSFiYnuLn6SzY049/Yp7Gd2maRUp2ofRCbJCW0rhYA6F/CvVSkI j6XLqy4K1SICtdyfkhCv+kStOAm41/BQHzEJeiQLIJxJ3Jnfi3r3Mb+v2KK8ttQCW0SYzn sKCDy66FZlJpXv1LOTjDQpB8KSQcpoBCsPoyBzoXd/nxzjnh2rtzQKK0pCdFQD9Gh/9Xwy Lt44qsDnOqkXFnyo+sFHIV0/gjDOI+e/XXDS6MbveCTcyOmTDyFyLnmxEUxFwkv/S1qJft d0t6pjrJ3bjwLBCjUEJZ9h4W3LHFY6eaM7SFMYdt/wDu9fBHW6xmGqmFbgXiMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="cf/MDtA0"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689074975; a=rsa-sha256; cv=none; b=nBAQa77gIFXRGA2xcW5F7BQ7fwHv+5IcQsTr8fwvDlmyULgHTSM+tiLfIBx10B7orGKijb r7lvVGrhEIay/Wpb4hujY6HdLwvi/s/Re6+AMoB705GFsvFwIawQuvAI2H7Sq4XCwBde/u N0ol0EZm3VxLfH19QMWb7dd09N98XoE4fxZHIRwKKBVRUyECEEKKWXV12bq9VgG/jXP/LP GtoS/Km6MTQZJ1GvDgmHsK84s2yYpiiHrFMlDQOQnee+YI92LTPNWTjplQMdHkY2nbJ31J CiKUJb/eFc2J7jpoarEHXlBaV8a+p642TOm9nAI8eiws2wq6AahVSmNQg620Ow== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJBXy-000615-Pg; Tue, 11 Jul 2023 07:28:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJBXv-00060d-MD for emacs-orgmode@gnu.org; Tue, 11 Jul 2023 07:28:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJBXs-0006fU-7a for emacs-orgmode@gnu.org; Tue, 11 Jul 2023 07:28:43 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 322BC240028 for ; Tue, 11 Jul 2023 13:28:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689074916; bh=p9mfYWMHO4LSKjMipYZqP2QOdketg57Q3dRBQcmRSAQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=cf/MDtA0uLxguudxYofOFKkzdluzlgSspkjimBTE3DX5B2ByDKCnLu2sWc9Q4XeL4 hOzLv4TV5wpjAQRiQXsCGIMnCSeyxYQOCqinNf8R4uysKmAby6V/PD2FTcYMTBsKZI CPdlwgtOx9lP90Yxo8JoHbBFvBpCbiaLShE1/UZOpTRIeIbni1s1nBRjHzyIaJweRo dy5mGYZEN4w69m+8fShaS6ymlIVPiLyKTm4Hdl7u7lbWPJjbxA48ktREuQgzBuoP1/ faoArR7/g614de+klfRH1Vvnni+RXDTY+btZvHCRJjY9H3V78AnnJrLNtSlmKTD+cy UPxy7wyW4K9gg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R0dsv2zdcz6trs; Tue, 11 Jul 2023 13:28:35 +0200 (CEST) From: Ihor Radchenko To: Hammer Hu Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Incorrect indentation when there are invisible/diplay properties on the line [9.6.7 ( @ /home/huzf/.cache/emacs_configs/default/elpa.28/org-9.6.7/)] In-Reply-To: References: Date: Tue, 11 Jul 2023 11:28:43 +0000 Message-ID: <87mt027klw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 0D6DB68D66 X-Migadu-Spam-Score: -9.23 X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -9.23 X-TUID: vUzzNpKpdbDY Hammer Hu writes: > When `org-modern' is installed and `org-modern-mode' is enable in a > buffer, the fontification is augmented. See > [[https://raw.githubusercontent.com/minad/org-modern/screenshots/example.gif]] > for a demonstration. But when I have `org-modern-mode' turned on, > `org-adapt-indentation' to be `t', and indent some region, it becomes: > ... > #+begin_quote > Thanks. I can reproduce the problem. It seems that `org-indent-region' > or `org-indent-line' has issues computing the indentation if there are > invisible/diplay properties on the line. This is not something we can > fix in org-modern, since `org-modern' only augments the fontification > and does not override indentation functionality. It should be repaired > in Org directly if even - maybe ask on the Org issue tracker? I suggest > you either don't use `org-adapt-identation' or set > `org-modern-block-name' to nil. With `org-modern-block-name=nil' the > issue also seems to go away. > #+end_quote > > Emacs : GNU Emacs 28.2.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) > of 2023-01-07 Thanks for reporting! Org relies on `current-indentation' to determine indentation. AFAIU, `current-indentation' was not able to handle invisible and display properties before Emacs 29. May you please try to reproduce using Emacs 29 or newer? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at