From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 sBRuOwlerWQ2HgAASxT56A (envelope-from ) for ; Tue, 11 Jul 2023 15:50:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gJYbAAperWSdXwEA9RJhRA (envelope-from ) for ; Tue, 11 Jul 2023 15:50:02 +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 8C64C4CCC6 for ; Tue, 11 Jul 2023 15:50:01 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fqQzkXKE; 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=1689083401; 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=nFTJRzh0e98VbCgHV2cTsDo6v4Mbv9CS7hM404sxkek=; b=DioOZPGigdt/IlVahrF/HOFrxJAdK8d7ugeoHeTDPMPt4lX3N1e5PL4SezgIzqQxw4Znpw IZ5qqsr+iiIh4heS440EduQrPqjSwUqU1yEiy9MPsh++kQHw6ASipuhcyvoQfGtnPp4ZGa X2Pcio7P5/DCm+5wn9EGbhl/PcL4fxzLnp00oS2IsTbGIzdztniJbyurxpG/jmO3wKF6AF 4hRblBwGQPlrE8o7zU7SHdrv+e4wAFvXcXPOjAuBaaA22TstJXzSitys+WFsTozYNk9/mu FSYQzTZLaLKYMklt33goYHmaYF2gQGyCVd9hk0gXDLvtzFyZN2hwCwqDM0cF0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fqQzkXKE; 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=1689083401; a=rsa-sha256; cv=none; b=Z0j2rLNj1eXLQPO474HguxlCwndS3EdbIy2U3F4FZRR+Bm9xNfeda8pb0GTFkbpsvAkZol 0iF+Au1xqpQSu3W+t/uEEVwF5uOyONOCmXbfyV3We570e9WGrsxvH3X9l9TU69Pe42BHRZ UwwyqsOUADh2MWx93baddBfcLAsRCTgrggsuJxpsUyn1dRlXHqlTchCMjOLPgG88YiTl8m adIcwnaGMatcQ7kCPduAPL/dG7wuk2s5i1cPlTpNoICgWJwucML3i/+YoXWRpAnGGDnmhH BhIhp0SBgBb/RCkr56mBjWccqANWtT3G9Z/DF7UM4ZkBqFYno26ibftcRcFkIg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJDk1-0007sH-0M; Tue, 11 Jul 2023 09:49:21 -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 1qJDjx-0007rk-Nc for emacs-orgmode@gnu.org; Tue, 11 Jul 2023 09:49:18 -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 1qJDjv-00058R-61 for emacs-orgmode@gnu.org; Tue, 11 Jul 2023 09:49:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6C34D24002A for ; Tue, 11 Jul 2023 15:49:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689083352; bh=gn6Ggm5JODShv/+aeEVt3gpggeFXi3IxVnmDmdFDb/E=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Disposition:From; b=fqQzkXKEirivkcTQrhwpXZLX5IX1jRw1qm8exBjYZMMBklcQcVDpVPEq/tvcKBki7 Ai0Gr3MxjFZkAa0/wWNGMSsHidz2BPt2EuG/08lCXBit5UT3vZ0xj97T/7Li+DXiCH 3fMB7Gfw8rlF7UVq5EVhdFefOM6AJuRMo3hHsO+E9vigeFuoW6JZD3gM2sAR5EXnLe lrXnXcRtcl6a/GdJ9vtRYx2oVqX1M+WEg0kh/UkLynz4p4J2uACm+lg/2ejtDY7114 ZKPSyDuAKTYH0RTN2aQ50HXQD65o4Cav11JzTs5FZxO/P7+nHkDjkoJOjatuLK3Z55 wAP5l1NVyDsgw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R0j075knqz9rxM; Tue, 11 Jul 2023 15:49:11 +0200 (CEST) Date: Tue, 11 Jul 2023 13:49:10 +0000 From: Hammer Hu To: Ihor Radchenko 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/)] Message-ID: References: <87mt027klw.fsf@localhost> <44rsvv2dwp2cnpbikqs7kysct5ylsxivm3scirj55efm7qvwat@flec34dbbdbb> <87fs5u7fcp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87fs5u7fcp.fsf@localhost> Received-SPF: pass client-ip=185.67.36.65; envelope-from=hammer@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: 8C64C4CCC6 X-Migadu-Spam-Score: -9.27 X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -9.27 X-TUID: zE6iSl6OB0Up Please change bug.el to (add-hook 'org-mode-hook #'org-modern-mode) (setq-default org-adapt-indentation t) Select the region and M-x indent-region multiple times. Best, --------------------------------------------- From: Ihor Radchenko Sent: 11.07.2023 13:22 To: Hammer Hu 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/)] [ Adding Org mailing list back to CC. Please use "reply all" ] Hammer Hu writes: > I tried on the latest version, but the problem persists: > > Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) > of 2023-07-11 > Package: Org mode version 9.6.6 (release_9.6.6 @ /usr/share/emacs/30.0.50/lisp/org/) Sorry, but I am unable to reproduce. I tried the following: 1. Create /tmp/bug.org ** A level-2 heading something something #+begin_quote a block #+end_quote and something 2. Create bug.el (add-hook 'org-mode-hook #'org-indent-mode) (add-hook 'org-mode-hook #'org-modern-mode) 3. emacs -Q -L /path/to/compat/ -L /path/to/org-modern/ -l compat -l org-modern -l /tmp/bug.el /tmp/bug.org 4. Select region containing the code block 5. M-x indent-region 6. Nothing happens I tried emacs master, emacs 28, and emacs 27. Please, provide more detailed reproducer. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at