From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EKwnHJvQpWSbewAASxT56A (envelope-from ) for ; Wed, 05 Jul 2023 22:20:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MKIMHJvQpWTjGAEA9RJhRA (envelope-from ) for ; Wed, 05 Jul 2023 22:20:43 +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 149DC8C25 for ; Wed, 5 Jul 2023 22:20:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qH8yY-0004mZ-Py; Wed, 05 Jul 2023 16:19:46 -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 1qH8yV-0004li-H2 for emacs-orgmode@gnu.org; Wed, 05 Jul 2023 16:19:43 -0400 Received: from confino.investici.org ([93.190.126.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qH8yT-0000bp-5k for emacs-orgmode@gnu.org; Wed, 05 Jul 2023 16:19:43 -0400 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4Qx9xP4Sn1z110b for ; Wed, 5 Jul 2023 20:19:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1688588377; bh=LCoSFdCNoO7PF3ZYBYWLE9uxggLc9hH+7IyhjQWN4ko=; h=Date:From:To:Subject:From; b=HEEcBIy1BVwNxwTlQQ4lRhrmiZG/R+iZFOW568mQpf7M+OuRV/mj+Nh0smTGXk35u Zo/E8alIurBhczgHNt55mhCtOASbAiVH5ItydAGWYsYSDtKKM5gM77hsr/IiuBretk NmtkO6ocKT98OOJaErx4SK6R4n1ow77ALKeFO6uw= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: civeax@inventati.org) by localhost (Postfix) with ESMTPSA id 4Qx9xP3XVyz10v4 for ; Wed, 5 Jul 2023 20:19:37 +0000 (UTC) Date: Wed, 5 Jul 2023 21:19:31 +0100 From: fluentpwn To: emacs-orgmode@gnu.org Subject: [BUG] org-indent-mode breaks indentation in source blocks Message-ID: <2lx6htwszgni63v5o537j6qwd4k6wftrj6ixonrjvb5o7pjtt4@i5jn6v7qb3r4> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=93.190.126.19; envelope-from=civeax@inventati.org; helo=confino.investici.org 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, SPF_HELO_PASS=-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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688588443; a=rsa-sha256; cv=none; b=sj5gwYIutEKyWVZX8ODkgZsOb86vf9K/NfezEmFf2zsW6Obf6tFMAPPNtemdqrZIbBISkF 7xlSKTCtsiDoW1SRS5bJOF5sb0HDpnD4+1c3dDnkHKjWQz3FDdxpvLp/fxhD3MDvvS4azE vWNKUYqfvfCl9cos/7bp59a3QdQzrSCdA1SKAxGnPbT0akXJEgPaabhSzJE5kIs9kZMZdW SmbZuWRL0cCKV7HLHk07x5rXPOVx7PSII3TJxoqsK8V0dHceDgUvGzrLRqkhRqLOhPdGJZ 4PpZU9W78AzE1xqUScQcIXw+NdO9o+a2d/MlpC3wwnhJGc63PnGFnCwTwFASqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=inventati.org header.s=stigmate header.b=HEEcBIy1; dmarc=pass (policy=reject) header.from=inventati.org; 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=1688588443; 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=LCoSFdCNoO7PF3ZYBYWLE9uxggLc9hH+7IyhjQWN4ko=; b=QVDDjG6GREGdTX+ei6+hDM4CAm13TzDbGfB28XBXRquuldT51uav8uChpD5rJzi1aXPknj AzwcFMaWo9HhoJJyCN9Rc7ZRbUuC4OXlM9G3Qpg6zU1uu76AVZ8UF/Hx8WWLxfeW+fwWZv FCpPOv3RhXm4A0610lO8fLXMR9LR9/g3j16lZYztlTAtnsPkTeP2Q/nW9SQd7E7s9K6kOp XiJFdv58KSQ7K4wertjUAA22pwizYwWoeqXyLM8F8pvIxMBG3CkDutn2XpgXJMRG6VuzA5 i43YtOY+OrLT4ib4576VDiRpAb5sb7wM6jIr6WZsreZMFyNv9/27Yu09YauPXA== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=inventati.org header.s=stigmate header.b=HEEcBIy1; dmarc=pass (policy=reject) header.from=inventati.org; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -6.10 X-Spam-Score: -6.10 X-Migadu-Queue-Id: 149DC8C25 X-TUID: hHFgyMnD0laI For example(written as it looks): (abababa abab :abab abab "abab") #+end_src * aba #+begin_src emacs-lisp (abababa abab :abab abab "abab") #+end_src * ababa #+begin_src emacs-lisp (abababa abab :abab abab "abab") #+end_src * abababa #+begin_src emacs-lisp (abababa abab :abab abab "abab") #+end_src * ababababa #+begin_src emacs-lisp (abababa abab :abab abab "abab") #+end_src When copying and pasting the indent is right for every level of indent, not only first and 4th(i am guessing every 4th?) Searching through the mailing lists, I found this: https://lists.gnu.org/archive/html/emacs-orgmode/2021-10/msg00729.html I am really "not an expert", but I think that this difference between soft and hard indentation is what's making it wrong. Thanks for any help! Emacs : GNU Emacs 29.0.92 (build 5, x86_64-pc-linux-gnu, GTK+ Version 2.24= =2E33, cairo version 1.16.0) of 2023-07-02 Package: Org mode version 9.6.6 (release_9.6.6 @ /usr/local/share/emacs/29.= 0.92/lisp/org/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq 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-persist-after-read-hook '(org-element--cache-persist-after-read) org-export-before-parsing-hook '(org-attach-expand-links) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-he= ader-arg-expand) org-archive-hook '(org-attach-archive-delete-maybe) org-edit-src-content-indentation 0 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 '(toc-org-enable (lambda nil (org-bullets-mode 1)) org-inden= t-mode #[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-all append loca= l] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-confirm-shell-link-function 'yes-or-no-p outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-startup-indented t org-agenda-before-write-hook '(org-agenda-add-entry-text) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-confi= gure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-speed-command-hook '(org-speed-command-activate org-babel-speed-comman= d-activate) org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal org-persist-before-write-hook '(org-element--cache-persist-before-write) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-a= rg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil 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 or= g-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :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 :st= ore org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-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) ("fi= le+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) )