From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qCCJJhRrqWV9igAAe85BDQ:P1 (envelope-from ) for ; Thu, 18 Jan 2024 19:16:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id qCCJJhRrqWV9igAAe85BDQ (envelope-from ) for ; Thu, 18 Jan 2024 19:16:52 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KLqT5wYo; 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=1705601812; 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=p6cTXKQ8ybXNQaGyrLnx+T2/c/8GB0Ej7OPsbVDRlys=; b=TnKTxpJz3jrwfgpo2u7k5pVLrrTa0rNTjD86aQRYDqJy0iPZb4azsqlbQmLnkY1jI6wg32 NbfnkUDPQXmJXU86jpd7zWROw9UIVg5Q8t7DpuFdLzqsZxNCfZlQ0fzH5dlW/QMNCL/pXb yG/OC2ppyjDhMRMqo86QIF9dfyC3aXNdq33zoGffk6tzRtQHowAWss4ZYeVWfquwdTPZ2L 8u5pGv75rw5aQC3oh2BJNhzd41vrfmxUxG5IWi0A0d1kDxYXzax7xQYsUYeU3shOLXSTBh GgjmPX9IwcPMUsByslDloKi/0nE5tjTVWI+kz1okaEBM7045Thcqb0gzFGUQTQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KLqT5wYo; 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=1705601812; a=rsa-sha256; cv=none; b=K/9wF+cG+Q4HBwIJ1MzuX9dLO3IbxS2Pk/bsnvVaq0zm28eSsvLI1WeMgLsPfTm5jboVKf zp5L8rvnsNG6AVEiF5pe/i1AgYvLRQgGevXWbNZo8l99mXzy+jK0X9g9/3VuX5mNVhWyss zsggFgzvxJyuBOfDsFr4FNg/I4f+/Qz33dgMaU8ctryvaMFhWwOwRSx+oVsBR4T4rZJAv2 kcgOSSN9V/Ngai+rXaOZ9+mSuTecX3wi6KAa+lG4oRYJ3b56tsYxxlYuT48So5L153n/6z vYbT77WJMNJhxjr3fdd7ND5XDCMA+PDVWkGT99292hFPkdulDAu0Qh7DjaPygw== 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 729A139082 for ; Thu, 18 Jan 2024 19:16:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQWw1-00030b-Uu; Thu, 18 Jan 2024 13:16:13 -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 1rQWvz-0002zt-Ss for emacs-orgmode@gnu.org; Thu, 18 Jan 2024 13:16:11 -0500 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 1rQWvx-0007DZ-Qi for emacs-orgmode@gnu.org; Thu, 18 Jan 2024 13:16:11 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 88474240103 for ; Thu, 18 Jan 2024 19:16:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705601767; bh=8Bc+UM2sPNH3imRvhLY3qJrZSLdU78T8pjanjVd5eMQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=KLqT5wYo+zHhZ4e9J6YoqqAXgZDWaDjez4opdMxKjy2DEM5TCAIN9Tl7BrRFeRgM+ 7ncKPlpJOUKK40/zaI/XIvwyL/NPQbyu7vC2UUGTJISmpw1CWBQJ1dOBN3pyGOFOWW iGq0liStuL5KhZ6IGBGJEDg4MHRegYJ/RGyjlaB7qnDj5sYxK7pMpO9+yzHRVy2GF9 XYvz0ik8UTVT7vEFACmhhXWL4I5JQ2L23m/qeHQNdSRGkNYE1OVFC5oSQ2GTXNCgXa 50PVeQz91/hgCPw08gvXVlLY1p4vX0LICOkVDzsMtOzn6Svg5W1zqDGNwEcOeddf3g iXOKde4k8H8qA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TG9sz0YHvz6tvJ; Thu, 18 Jan 2024 19:16:07 +0100 (CET) From: Ihor Radchenko To: gerard.vermeulen@posteo.net Cc: sebastien.miquel@posteo.eu, emacs-orgmode@gnu.org, emacs-orgmode-bounces+gerard.vermeulen=posteo.net@gnu.org Subject: Re: [BUG] defaults make it hard to edit Elisp blocks in org buffers In-Reply-To: References: <878r4makff.fsf@localhost> Date: Thu, 18 Jan 2024 18:19:23 +0000 Message-ID: <87le8mpkr8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.90 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -5.90 X-Migadu-Queue-Id: 729A139082 X-TUID: PsQaieAJaUUs gerard.vermeulen@posteo.net writes: >> I cannot think of any common use where the two approches differ, and >> it is indeed simpler. The possibility that the block does not have the >> common indentation still stands. > > As far as I understand, the effect also occurs when the block has a > common indentation. Below are the steps: > ... > And with POINT after "?" and typing ENTER (wait more than 1 second > for automatic indenting of 2 spaces), I can type parentheses with > some sort of common indentation like below: > #+begin_src emacs-lisp > ;; common indentation? > (()) > (()) > (()) > #+end_src > When I place POINT in the middle of the lowest parentheses and > type ENTER, then everything moves 2 spaces to the right like below: This is expected, because we already have a special case for creating an empty line - it does not contribute to common indentation we calculate. But the special case for empty line does not cover your original reproducer. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at