From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QEt1DiM7rWQI3gAASxT56A (envelope-from ) for ; Tue, 11 Jul 2023 13:21:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mCBXDiM7rWTcJgEA9RJhRA (envelope-from ) for ; Tue, 11 Jul 2023 13:21:07 +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 AE66B4ADDB for ; Tue, 11 Jul 2023 13:21:06 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZfGaC9ug; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689074466; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=iayywYJS8cspPNvXanKmCvGQ2yPCy5Rr6PTAMUHZS3s=; b=QIUCqL6H7JA5BaYNEoZC46mHnuAOWckFkaBB6UFqWYvrmXxP91sllHXnZHMJQZVNCM/zQf FGydWpMkLYYX6ke2VHCw9sdVQh3bTZmcwQ0ABDwn4mqR5kkZThyvlq0dfNiR82cy2hhIQp sPR53IhfoJqs3gZv/OL7/H8lz9Ahz59+IiTX/5Q5gKMNtyjx6piXQFvXWkhW43vYB1ysfD QBi1Weh1qh7VJDHslb4HXP2c6CXrjXen9VBfNo8HfzMF4hH6icAC84F+JEirjs4rYfXOGg 63o3MchF/P8CEX9kiRRCJZrVvuXr18RJiGfJkGogR8QgUkRdPeif/OmwwXXcvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZfGaC9ug; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689074466; a=rsa-sha256; cv=none; b=SqB2tcujBkKuDeQvU9a57Hs5jy7VEXoeGCxQNcgNPYA6pmnTfvkVDy8IbUJXP92AtbRrXO +9UzJP2JkuGd/b2IWweps8WGuyFkn4+jR0Z2XeHOS9b2+x1hTqzgz56/P9vAFMSwLuaqED lqtJvTziFFAAqHwJJL0hapVhrkFnJ+AAO1pAtuabzHnL5LgpftBX5ZCPceAP2WVTVzxzEh EKGJFhZYR+GivSiChpF4uDOCVdblIXgKwIBrxCeJWiN23o1fEHFkXyJKGHBmeE1lWV7hw/ Shp6FijS2QXiQEtyg9PUSt3ESpPxUv7maLHoS4pdw3Y+wsTe2MhwDcL63j3KuA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJBPn-0003gf-QJ; Tue, 11 Jul 2023 07:20:19 -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 1qIsjA-0000lQ-4R for emacs-orgmode@gnu.org; Mon, 10 Jul 2023 11:23:04 -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 1qIsj6-00087I-VF for emacs-orgmode@gnu.org; Mon, 10 Jul 2023 11:23:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 18374240029 for ; Mon, 10 Jul 2023 17:22:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689002577; bh=9RaGIOF3A+byvloJa+6LNJzIXORVBdha0bbtLnjIkC8=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Disposition: Content-Transfer-Encoding:From; b=ZfGaC9ug/m9WWZ3+wtdzuEZ/RrlhRWyZ9+UgqsZji0aV/u6oTqRm49qjZUBsLsnjI H7E0jsW5+MsAFFYvL+hkgF2Dz4Yea+LdmUlD1K8A20aZctPiEaO44UfIRM/dhQ91hl qkVpdCOw9Tagr/3+gCSkkbUuqYJZtNYIh265d6XUSHGH3f8/sLa8k62oZuPXxOIPxv ykES7dxEgsA0MPN2dUSiDnvlHbBbYsE4BIm5TkPa3JYPC+IzLpNo22pgs3Gu6EOCxi K96BGeeAjWGAz8I8Alr5hs1/nZSpyxsA0I681kunSw74VPLO8+9QJkaKrbUgMP4Hvi +vUOaZv/gJdgg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R076m2ynhz9rxG for ; Mon, 10 Jul 2023 17:22:56 +0200 (CEST) Date: Mon, 10 Jul 2023 15:22:55 +0000 From: Hammer Hu To: emacs-orgmode@gnu.org Subject: [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: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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-Mailman-Approved-At: Tue, 11 Jul 2023 07:20:14 -0400 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: AE66B4ADDB X-Migadu-Spam-Score: -6.27 X-Migadu-Scanner: mx2.migadu.com X-Spam-Score: -6.27 X-TUID: 9ybV1b/CQh1M --text follows this line-- Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ Hi there, I found this problem when indenting a region with `org-adapt-indentation=3D= t' and `org-modern-mode' is turned on. I initially posted this issue on the issue tracker of `org-modern' [[https://github.com/minad/org-modern/issues/144]], but as the author suggested, I need to turn to the `org' side. Below is the problem. 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.gi= f]] 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 ** A level-2 heading something something #+begin_quote a block #+end_quote and something #+end_quote While it should become: #+begin_quote ** A level-2 heading something something #+begin_quote a block #+end_quote and something #+end_quote Here is the reply from minad (author of `org-modern'): #+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=3Dnil' the issue also seems to go away. #+end_quote Best ----- Emacs : GNU Emacs 28.2.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24= =2E36, cairo version 1.17.6) of 2023-01-07 Package: Org mode version 9.6.7 ( @ /home/huzf/.cache/emacs_configs/default= /elpa.28/org-9.6.7/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-archive-location "/home/huzf/org/personal/archive.org::* Archive" org-link-elisp-confirm-function 'yes-or-no-p org-bibtex-headline-format-function #[257 "\300=01\236A\207" [:title] 3 "\= n\n(fn ENTRY)"] org-log-done t org-startup-folded 'content org-agenda-files '("/home/huzf/org/personal/todo.org" "/home/huzf/org/personal/inbox.org" "/home/huzf/org/personal/archive.org") org-persist-after-read-hook '(org-element--cache-persist-after-read) org-refile-targets '((nil :maxlevel . 5) (org-agenda-files :maxlevel . 5)) org-export-before-parsing-hook '(org-attach-expand-links) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-default-notes-file "/home/huzf/org/personal/inbox.org" org-refile-use-outline-path 'file org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lin= es org-cycle-optimize-window-after-visibility-change org-cycle-display-inline-images) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-mode-hook '(# #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-a= ll append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes org-modern-mode) org-agenda-clockreport-parameter-plist '(:link t :maxlevel 3) org-confirm-shell-link-function 'yes-or-no-p org-reveal-start-hook '(org-decrypt-entry) org-adapt-indentation t outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-agenda-mode-hook '((closure (t) nil (add-hook 'window-configuration-change-hook 'org-agenda-align-tags nil t) ) ) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-agenda-after-show-hook '(org-show-entry) org-edit-timestamp-down-means-later t org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-window-setup 'current-window org-tags-exclude-from-inheritance '("crypt") org-hide-leading-stars t org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!/!)") (sequence "PROJECT(p)" "|" "DONE(d!/!)" "CANCELLED(c@/= !)") (sequence "WAITING(w@/!)" "DELEGATED(e!)" "HOLD(h)" "|" "CANCELLED(c@/!)") ) org-support-shift-select t org-modern-block-name nil org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-modern-hide-stars nil org-modern-mode-hook '(org-modern-mode-set-explicitly) org-fold-core-isearch-open-function 'org-fold--isearch-reveal org-cite-export-processors '((beamer natbib) (latex biblatex) (csl csl)) org-persist-before-write-hook '(org-element--cache-persist-before-write) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(org-decrypt-entries) org-agenda-loop-over-headlines-in-active-region nil org-todo-keyword-faces '(("NEXT" :inherit warning) ("PROJECT" :inherit font-lock-string-face)) org-cite-global-bibliography '("/home/huzf/plugable/share/bib/global.bib") org-fold-reveal-start-hook '(org-decrypt-entry) org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-lin= k) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-lin= k) ("irc" :follow org-irc-visit :store org-irc-store-li= nk :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link :insert-description org-info-description-as-command) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open :export org-link-doi-export) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302=04Q=02\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("mailto" :follow #[514 "\301\300\302=04Q=02\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("https" :follow #[514 "\301\300\302=04Q=02\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("http" :follow #[514 "\301\300\302=04Q=02\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("ftp" :follow #[514 "\301\300\302=04Q=02\"\207" ["ftp" browse-url= ":"] 6 "\n\n(fn URL ARG)"] ) ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp)) org-metaup-hook '(org-babel-load-in-session-maybe) org-modern-table nil org-refile-allow-creating-parent-nodes 'confirm org-todo-repeat-to-state "NEXT" org-outline-path-complete-in-steps nil org-fast-tag-selection-single-key 'expert org-tags-column -80 org-refile-target-verify-function '(closure (t) nil (not (member (nth 2 (org-heading-component= s)) org-done-keywords) ) ) )