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 iJILDNOImWQ9gAEASxT56A (envelope-from ) for ; Mon, 26 Jun 2023 14:47:15 +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 aPrDC9OImWS+PQEAauVa8A (envelope-from ) for ; Mon, 26 Jun 2023 14:47:15 +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 BEC861DCAD for ; Mon, 26 Jun 2023 14:47:14 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GxJlSRK5; 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=1687783634; a=rsa-sha256; cv=none; b=IOr5oW+i7ogi3QUBI2QwyutTDuknsNu0pdty2Rmz7NEhCxw1yocahmoftLLufJ+kKKDF9d IoVJemS9J+3WG0XjNlzfNS5bQnGHsthEmIJHIr8lr0GbOJVLtAWV5QodLGg4HQt4uXPeXv UTonpSPSVXchBpWTmEMiSNZFum7xHU82iRuw16dgC3xqK7L3j3smScYGKfvjF65rPZXLze 58ng2WSP10XKX69cBcs0Xv0yXoMFQ+K3IpLX7fZTIY19bmSv8PWdk+lx5HyzSlpj8j7DCe 4Cagj6R6VLYFxBjGXDD3Ke2bCrUZS073Fpzkusv883t0cx3hH39aMNHh9EEUgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GxJlSRK5; 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=1687783634; 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: 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=QWDN6LcRfBgRklSh6Fd65PWDGzdeVcUm79Fpx3843L4=; b=a7tCFR6qgfL6TqP31IkrC68frwlbGd0EAhZbptGGaLn4039O293y4JmTRgPTDvaoxEZDk8 PH9EXm6CUNsPfW94aTXL8DynqNTS6KbIowZ70Dr29au6JpYkv6yrrtwWtuXfRJz6S3JUhU dYmZDUEPy7DEWlsUe5M67UAGCZjdm5AQtWW9FNEYjaJb81tL7Nv9JMXBkKyfuLWxKZr/qo 3gBhijfo1DRumf2BBl3x0n0Qp6f7mFyFtJx5TgGS578UbfWplHbDRXzgf8MP2qIgmPwyRa 00bogZDVzBWmBHFV1RpxBNeKEV8fFIpaIgQNYz46b8u7p1z97kpNh6cTBUnaSw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDlVG-0007Bm-7l; Mon, 26 Jun 2023 08:39:34 -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 1qDlV0-0006yO-1V for emacs-orgmode@gnu.org; Mon, 26 Jun 2023 08:39:25 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDlUx-0005Yo-Ve for emacs-orgmode@gnu.org; Mon, 26 Jun 2023 08:39:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C9882240104 for ; Mon, 26 Jun 2023 14:39:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687783153; bh=jjjSaA8sRnZAHsClbgk5RjoojGVXy+BnW2o3O15w6eg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=GxJlSRK51MOXQMIDPQRq3e0aNRro5wGIUwJVZ5EuYLBaUuAUuptn2EalrOnqQR5J/ IwBP2cfY0tYt3TERU/CbtHrDdAEEmwhxf0mL//pN1K0uMU0qZQ3pyoUUCkok/oWbAv dheHibBjl7PSxFCeHg0ExGzHNDX9Jn3W0BAwOcNYSBqwLLoGxcZcMD/XURX5G6hFoj +qf/S/dbU6R2qbUmjIvhoVeX4UxFgTCkrgzyVwkll+WJ2T5nO0+Yq3z3tCCk6giiF6 rEcfQie4idXb2Ld+MVbRxQNDuIk7n0B2yW9hut9/cGgZqtCqLL3J5f5Vy8baptXuDl c5+SyuS8yGRvA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QqS8J50rTz6twh; Mon, 26 Jun 2023 14:39:12 +0200 (CEST) From: Ihor Radchenko To: sebastien.miquel@posteo.eu Cc: wolf , emacs-orgmode@gnu.org 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/)] In-Reply-To: <1a97917c-bbab-4d7f-b629-0c84807448f2@posteo.eu> 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> <87cz1itp8k.fsf@localhost> <1a97917c-bbab-4d7f-b629-0c84807448f2@posteo.eu> Date: Mon, 26 Jun 2023 12:44:07 +0000 Message-ID: <87a5wmtmug.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.22 X-Migadu-Queue-Id: BEC861DCAD X-Spam-Score: -6.22 X-TUID: x9O6ocTM1nL2 S=C3=A9bastien Miquel writes: > Ihor Radchenko writes: >> May you please provide an example for such breakage? >> From my point of view, alignment is far lesser concern compared to >> indentation breaking code execution/tangling/other functional parts of O= rg. > > Let's say tab-width is 8 and elisp-mode uses tabs for indentation. In > the following snippet, arg2 should be indented with a tab. > > #+BEGIN_SRC emacs-lisp > (some-f arg1 > arg2) ;; arg2 is indented at column 8 > #+END_SRC > > If I add two spaces at the beginning of the block. It should visually > look like this: > > #+BEGIN_SRC emacs-lisp > (some-f arg1 > arg2) ;; arg2 is indented at column 8 > #+END_SRC This is not a problem. We can just apply appropriate 'display property in `org-src-font-lock-fontify-block', manually replacing the tab with appropriate number of spaces (as in the origin buffer). > Calling =3Dindent-to=3D would rather put the two spaces after the tab > character. Then, we should not use `indent-to' and instead put spaces manually. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at