From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wPvjN0+QoWX5zwAAkFu2QA (envelope-from ) for ; Fri, 12 Jan 2024 20:17:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eNGNMk+QoWXEkwAAqHPOHw (envelope-from ) for ; Fri, 12 Jan 2024 20:17:35 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Zqmk96fT; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705087055; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jj6TbG0UBIK35EHihWbGQpNku/Ers8ePcLUqZEsr4xE=; b=CchK93qQX3NgL5iJ6OBhxwgtbMVRaJa+odMcTyFmGJRpAR50tg69Wm5onTq+LVg2GKjZS7 2nEvp8MsNYoO4nzAWCzJcve/NmLb2CogjruSMNTr6pkieKItpTwle5vRcX4Vu4qINoPQwy 5SeTa8EbHyGx7H9FJBfOd2uMvgkIPx23a/ASEvSB1LnAscaY0XpO9K+qIeq40EinA1gGc9 Jh7qxjDTw7j75qq4sb4QLY2LGeLZQZNM2vi1bostPG0gWbtK2Si4j6M74CyZY1e3s24AAS e3YNKrnz6eUH2yoHKf/TSq/Y3Q3V8QJgML8q4zCKyK8IGqeDhokn5bf4junWkw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Zqmk96fT; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705087055; a=rsa-sha256; cv=none; b=R1e7HGI44dzmiD/mP6iTiz6GQYNNOkBsmOhSkDoa/VFWXq5FS0JLevzT0i7teWXYtu5q4q kPWmVFQRwV9T9/1DrbK4Y7j8qc9rTjrkdOmMm8BiBAIrG7Ru6JEHv6Hd8j0nTqto+xcv9w WNsGT9hMjo23Dx51JXf1YLDSNZPB56+o1PQeT9zAnP+bJyxcULk/3WOmO1F52tApZ/FYW8 EKVUS4ZAMldqVOfaUxqFY+pWirMl7KxKKXmqSBFoIDj8Nx//I2mIy0f10Y0oSPsWrWqOX8 gdm/xXkzM4Zj2KddqrZ1BF0gznyCWEvhAkTlc5n8WP3TtZFbjE31d1/d7nyl3Q== 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 91D0741D7A for ; Fri, 12 Jan 2024 20:17:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rON1L-0002it-Vf; Fri, 12 Jan 2024 14:16:47 -0500 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 1rON1K-0002ig-S3 for emacs-orgmode@gnu.org; Fri, 12 Jan 2024 14:16:46 -0500 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 1rON1H-0003jS-G5 for emacs-orgmode@gnu.org; Fri, 12 Jan 2024 14:16:45 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7008E240029 for ; Fri, 12 Jan 2024 20:16:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705087000; bh=VVR+chxXDsYwgmFI9/XXEB4kXmu7IAdi04S6htmy2vI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Zqmk96fTrJEhNmFTgNo61y27S6IsXpbslDJS3HL6tZp82Fl00COVgK3Y9GRqUVcXg oljlYQA8kBkzJjhVfP769YaqhEzUPJ6LM2JkxxtghjDmS/ICozwgCFnAotGyd0le1b lQ+j/FfsGLoUrVBTPVSbrrh95kEwnnGKmLTa4D3dvRx8eBDJRy3MaecMWwUUlRfdGx tUhCHqZvEQFccOW6D39sf+f2IQJOQcuDl35socFImPjpa96+z4YVHr2/ep0rUx5sy1 QOmVsqCVO9jmztOhiPHuMZS0MuKMwe4rNevIaav4mLbgQYocE9B2DfFQHXPsdY+eTC iEH3WgWRkz53g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TBWVb5r4Xz9rxK; Fri, 12 Jan 2024 20:16:39 +0100 (CET) From: Ihor Radchenko To: gerard.vermeulen@posteo.net Cc: Emacs orgmode Subject: Re: [BUG]: unexpected behavior related to org-indent-block In-Reply-To: <87mstcjbas.fsf@localhost> References: <87mstcjbas.fsf@localhost> Date: Fri, 12 Jan 2024 19:19:53 +0000 Message-ID: <87ply6nyue.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@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-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-Spam-Score: -9.34 X-Migadu-Queue-Id: 91D0741D7A X-Spam-Score: -9.34 X-Migadu-Scanner: mx11.migadu.com X-TUID: C7iEeQDonWU8 Ihor Radchenko writes: >> --- >> #+begin_src emacs-lisp >> >> #+end_src >> --- > ... > I cannot reproduce. "---" turned out to be important. This is not a bug. After (insert (org-element-interpret-data copy)) The point ends up at --- line, which is not recognized as a source block. So, (org-indent-block) signals an error. This error is intended. I updated the docstring to make it clear that error is thrown when not at block. Handled, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1aa4552e5 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at