From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 8OoGKIR4kWROjgAASxT56A (envelope-from ) for ; Tue, 20 Jun 2023 11:59:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WMIJJ4R4kWS54AAAG6o9tA (envelope-from ) for ; Tue, 20 Jun 2023 11:59:32 +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 DE05B170C5 for ; Tue, 20 Jun 2023 11:59:31 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBY7Z-0001fp-Jy; Tue, 20 Jun 2023 05:57:57 -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 1qBY7V-0001eX-8P for emacs-orgmode@gnu.org; Tue, 20 Jun 2023 05:57:53 -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 1qBY7Q-0002N1-Ef for emacs-orgmode@gnu.org; Tue, 20 Jun 2023 05:57:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B5DB3240104 for ; Tue, 20 Jun 2023 11:57:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687255062; bh=ayB0b553v6k6y4ySN8kHyt2VRRPNP3A9tOq4U6lugec=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=mTX97VJbdwClYN4nLlj4pyveqTm9ZA8DXz/O1sXBYCk9d4Tj9CXhEAQ/o5XlbnSH/ Cw/ddst9g3I6abUn6OeJ2dfQ0WxogtOty/5+W/bq1xvdM4qf3IykTLl+JH6TeOqeUK pes+16ny1r4TXlhbcwVCTg9uO7uT+e8pw9tvFe5LggGXKkl4g0+3VhM2IkZ0SeLCRJ Gvlhbz3wGmT+9B2x2y7yvqKNAX1EX/zFWdWMBV5k/hzup5NopoStFkKCrItt6G0kkA +/d4PlgNxG0CCoMS3LIY1CVh+kr5W0fNFfrKxidI6S+PABKzcGOv1SxIlvXuxvcBlw znWuYEymkWCcg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qlhrj5ysrz6tsf; Tue, 20 Jun 2023 11:57:41 +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: <37d86bbf-c0e2-6337-efc2-cdf63dbf4580@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> Date: Tue, 20 Jun 2023 10:02:37 +0000 Message-ID: <87sfamsb7m.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687255172; 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=Irn6GFUjsYh/qpu75Wb1SylWFgq7IZRo1eMvngPvvUA=; b=kvb3GY3m2EAebPBjO4q191cK7S8jGeAhlWHnM0xS8nUnyy3ZW9/Fpyx/Kr7LrT7dlN0gg3 Bd0Cesbi9KUkyx6R5DA6RwCcWVVZxrq9KETRHY4N4IrL4MhU3Bxk1FAvlsuaXkuX2DY3BR YwbWfjN4ECA5cJ4L3TZkosJFUo4rpipJ2V83okrseFrp2K+przB9WtuUJ/rDZlXMCVNzgP 29gzExAY+Hj7ALc1hvpEOn3XUIUo8pnPjbDZRi5C8v7paGVtRghdV9DYDNwLL3cC+7h6Ch MWRWFsDoTe7N2N2UcEwHZaxTBTik535mKrX4m2QTHKQeVlWidR+eEyGJrcoB1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mTX97VJb; 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=1687255172; a=rsa-sha256; cv=none; b=akFw+oG2gsUdwAkcVcA4VY3HRU6oheyC29KxwDeS5wi7fQl5q41HdO97X1anqdlJqZqzey yVBAKelY9Wyf7C/ctis5arNehj7GJGmBhZ82DhKbjQXNB4dNMtlWYrnBzxih8fDlKwTbY4 54LVvq2fZ7eLGq0p6u7+NsBczSnhVMJ3WvKTyHrX/lJt6LCQAVkBGauJsiuAQr/sxXYFxJ On7jRo+AMVnTTbmB7xu2S7ZtSLhAc49IA/Q/MWnnJgGmXR1xnHVvGUwwZPYZNDgRKHBdkh 3rtqpX8G+WUkKTnQ9BXG8Vcocn/iVNJfTeHhk/5GVFKrwlTTCgD/Qn2k5m4R2Q== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mTX97VJb; 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" X-Migadu-Queue-Id: DE05B170C5 X-Spam-Score: -4.71 X-TUID: w0oUFBMXhW3B S=C3=A9bastien Miquel writes: >> 1. When `org-src-preserve-indentation' is in effect, remove the common >> `org-src-preserve-indentation' + #+begin indentation from the body. > > You've mixed up =3Dorg-src-preserve-indentation=3D and > =3Dorg-edit-src-content-indentation=3D so I may misunderstand. You are right. I was referring to the value of `org-edit-src-content-indentation' when talking about the indentation offset. > ...But I guess > what you propose amounts to > ... You are right. >>> I was not aware of how we treated inline src blocks, but I don't think >>> so. LaTeX fragments, in particular $$=E2=80=A6$$ fragments, can have >>> significant (for the user) newlines. >> >> May you provide an example? >> AFAIK, LaTeX usually treats newlines as whitespace, same with " ". > > When I say significant, I don't mean for compilation. When editing an > array of equations for example, one might want to keep one equation > per line in the buffer. Then, may latex-fragment-specific logic be moved to `org-edit-latex-fragment'? It already provides WRITE-BACK in the `org-src--edit-element' call. We may as well take care about clearing up indentation of the first line and other things there. Side note: It looks like `org-edit-special' docstring does not mention all the cases it considers. In particular, latex fragments are not mentioned. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at