From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wC4bI6h6mWQWPAEASxT56A (envelope-from ) for ; Mon, 26 Jun 2023 13:46:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8IPNIqh6mWT/UwEAauVa8A (envelope-from ) for ; Mon, 26 Jun 2023 13:46:48 +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 4033F1B854 for ; Mon, 26 Jun 2023 13:46:48 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=HFwwmDvl; dmarc=pass (policy=none) header.from=posteo.eu; 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=1687780008; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+n0thllZng2eVSbGJ4za6+VzsZqfh781x3uM40YvT4o=; b=lAVXD+rB5AiyDzZPGxqM5tH5PhmOXlQXBqWBoM8V3f3p/y4hddjcASgMJoOPQ5d9mEocw1 0x6M6UetPfNqKdLNNpMYFkV/JPhvnGCsyiMuskGuyW8j4l4w+0RS0L9OcdeSTX61pYt38H 6tJpnNy11FRDdsKhtNkZfSo9z0GW3LeRftJvn0ablpPjm3N0+jgbUxGvnKT1mbnvcmi1fc gAL+dNpB43VobhocvEmJDX+NRGFoWJ+BiezUjXjRhMw69pRam0G6wa3JAoZdTlGPgO5hI0 ADZE8i9zRhTHaGXowVIAetc/MEIzbALWXcQ1BpU7vKjHIQGhYER41vODswcBvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=HFwwmDvl; dmarc=pass (policy=none) header.from=posteo.eu; 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=1687780008; a=rsa-sha256; cv=none; b=AecZkAPZ8C0sRPfl6B3x6LNxKd8nrIN2D/We+3Nv4OVuc26BLTVDx46WA99lVbrrLvu03F Ydr9tSqen5wBkD7dTGez8e40f8Bq5XYRabd4q9t6kJsUFbfXrplMbTpZXceJupVEC5y8Xt 0Yi5Pm4ZZE/eH1qhRO51ok5RtVfHjCPAJJVGJrB9HKWgLEDyF6jvaJxE6OX1ou9NRLCamc L8Dt/BenCloahJY276VV28iV0JLHTUZOE7jWzUy1NfOCBrC3f4M/nKf+/2G9b/qclXr/SD 5WlieCPjZl10Hldx0OTHEqFoIHGbdvS07MPOL7s6wTmCExv8dsnO9A+rlqqf+A== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDkfD-0005si-Sc; Mon, 26 Jun 2023 07:45: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 1qDkfB-0005rC-SG for emacs-orgmode@gnu.org; Mon, 26 Jun 2023 07:45:45 -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 1qDkf8-0000Px-3a for emacs-orgmode@gnu.org; Mon, 26 Jun 2023 07:45:45 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 86B9F240027 for ; Mon, 26 Jun 2023 13:45:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1687779939; bh=Jz92aZeVvLlKk4BRMEnWM3JEwZKNF+w3Ft4Cu2W2Hgw=; h=Message-ID:Date:MIME-Version:Subject:From:To:Reply-To:Cc: Content-Transfer-Encoding:From; b=HFwwmDvlDUNUQRHbPnkR4DqHYgYkuLyp84x/37UV9m6JA+3mq8BZEb+sCGQJZWvO9 cdngNqHfHa/zEeJ2H1t8BxR11lWGo2KLgz3k3VNxv2WW98q5TAxDQVk6aNN9w3WBlZ 7eRRvOKg09z1o7vvGGaByqcRJHxdUboWYNrPTcqigY+uoDvr4UiT0t0Z2TGHB+zF4l ExO/+ohz2NlrtOXUS/n6mypnNv/127oA752Jdb8E9vb50BQ1gU5A84Jaw0dHvGGBpt G+kwFv6a0658RjgM9p1zcg5iPMZdaQLTAw25jD/gdbrq+h83bv8beMi9i3cHPucD7A Ds3I7J8XvCPCw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QqQyW0dCmz6tyL; Mon, 26 Jun 2023 13:45:39 +0200 (CEST) Message-ID: <2885ed50-1951-cb1b-1069-a4a05acab4c7@posteo.eu> Date: Mon, 26 Jun 2023 11:45:38 +0000 MIME-Version: 1.0 Subject: Re: [BUG] Source block indentation does not work properly for yaml-mode [9.6.6 ( @ /home/user/.emacs.d/elpa/org-9.6.6/)] Content-Language: fr From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= To: Ihor Radchenko References: <87ttva8chx.fsf@localhost> <8d8642c9-ced3-b254-0f49-f7b9c06311ff@posteo.eu> <87352p9g13.fsf@localhost> <87zg4vsof6.fsf@localhost> <37d86bbf-c0e2-6337-efc2-cdf63dbf4580@posteo.eu> <87sfamsb7m.fsf@localhost> <274bbd61-790d-8e19-d3a0-0793126c3bb0@posteo.eu> Cc: emacs-orgmode In-Reply-To: <274bbd61-790d-8e19-d3a0-0793126c3bb0@posteo.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=sebastien.miquel@posteo.eu; 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: , Reply-To: sebastien.miquel@posteo.eu 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -8.05 X-Spam-Score: -8.05 X-Migadu-Queue-Id: 4033F1B854 X-TUID: UcTw7ytVFAjZ Sébastien Miquel writes: > Should we use native buffer's value of =indent-tabs-mode= to set > =use-tabs?= ? I think this trivial change should work. It doesn't seem quite that easy. If we want to add 4 columns to a tab indented line (and tab width is 8), we can either call =indent-to= to indent with a tab and 4 spaces, or add the spaces at the beginning. With the second option, we risk breaking vertical alignement in the org buffer. With the first option, on a subsequent edit, the current =org-do-remove-indentation= will break the tab character into 4 spaces, making the indentation 8 spaces instead of a tab. You need to have =org-do-remove-indentation= re-indent the whole line, with the correct value of =indent-tabs-mode=. -- Sébastien Miquel