From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UNXHCKoDlGD8hwAAgWs5BA (envelope-from ) for ; Thu, 06 May 2021 16:56:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mHqEBKoDlGDkMgAA1q6Kng (envelope-from ) for ; Thu, 06 May 2021 14:56:42 +0000 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 6E74F26690 for ; Thu, 6 May 2021 16:56:41 +0200 (CEST) Received: from localhost ([::1]:50306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lefQe-0004ag-5x for larch@yhetil.org; Thu, 06 May 2021 10:56:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lefKu-0008JX-5R for emacs-orgmode@gnu.org; Thu, 06 May 2021 10:50:44 -0400 Received: from ciao.gmane.io ([116.202.254.214]:49200) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lefKs-0001AI-GA for emacs-orgmode@gnu.org; Thu, 06 May 2021 10:50:43 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lefKq-0007eR-8x for emacs-orgmode@gnu.org; Thu, 06 May 2021 16:50:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Maxim Nikulin Subject: Re: [POLL] Setting `org-adapt-indentation' to nil by default? Date: Thu, 6 May 2021 21:50:32 +0700 Message-ID: References: <878s4x3bwh.fsf@gnu.org> <87y2cwooh5.fsf@gmail.com> <87fsz4gtjs.fsf@gmail.com> <87a6pcfdh2.fsf@bzg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 In-Reply-To: <87a6pcfdh2.fsf@bzg.fr> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620313001; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=/aABzMvvAssEQ98PdZ5UxxHWHhxSpvlM3d17pR3q/Cw=; b=qGlazBVKsGgdSDELFe9RUsfu9cWe1KS7DfFK+qO7oEyNfm78+kHJnZ2AN8xIO1YtguShLL +R2fXrJ1ooZmaIHbKMAQ3gFp1JxVunHX2oVC28XcncJgYZpZKQq/L8egy3teNY4TL5gs2L Xbf9KObjDgNL1XeqrHm7wUPbJasErXFD0c1GcE7GQi4/CXNdGfGAGsiVoDhP4n4WSuTpFB zGLPnD2p8qB/aF+zhAOe9LyUrYnAUcGBZcELbjswQG8K1MtS6znyK4K5S56MHtZKNu/S2M FKCIS03JF6kuhcQI5l/ucEJZmhLHPnTZHA9XYoQ+PMirO54r8XsG11Ay5f6cOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620313001; a=rsa-sha256; cv=none; b=CXsC65y4LGVEofVko2UPw3FZmD68T0dfFWWWs6XVHkPdqJ4NEKBrWkwyTzLLMxvkHIvv6Z J8Js+SsO+dugquXo7hCE5wsX76rEkT93ApS639bza9dRcjR3UePmM+UdmYaJ+ADwmUjW0Y bVt8qdt1VDY6T96Nk9416O8pj19bClL8fMRCeQak8dskz5ElPNwvl2DY7+B/tDwSPb+Zsp 7jWXv73qBA0RD1de8eGiux2vMa6l4ybFBhL6JTmggCxW+LFnRHPSucYOOQCSWB12waj8qy U2jqdtO1fqDeMbplSOimaCHvGUtCjZr1YZd2V9DvquM7egaAnMKFXD1aCKV6Sw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: 0.64 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 6E74F26690 X-Spam-Score: 0.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8VZjhdLpDopv Bastien, thank you for the fixes of electric-indent-mode, there is no feeling that it is necessary to choose between broken and inconvenient configuration options any more. On 03/05/2021 15:06, Bastien wrote: > > This might help: https://orgmode.org/worg/org-faq.html#indentation "What is the best setup for indenting?" I think, the something like the following should be added to the answer. It was not obvious for me at first. Gustavo explained it in https://orgmode.org/list/87blfxv966.fsf@gmail.com/ Do not try to avoid or ignore indentation of heading body or properties drawer determined by current org-adapt-indentation and electric-indent-mode by pressing C-j instead of RET (or vice versa). It is unsure way. When you refile heading or change its level (promote or demote it), you may find that despite your efforts, elements are indented accordingly to Org mode current settings instead of your visual preferences. It is better to customize org-adapt-indentation. I would suggest to mention =#+STARTUP: indent= as well as a visual alternative to (org-adapt-indentation t) that actually cancels its effect. Maybe it should be stressed in the ORG-NEWS file that previously there were suggestion to set electric-indent-local-mode to -1 for Org buffers. Now it is hopefully not necessary due to bug fixes and changed defaults. Finally, a case that might be fixed. - item 1 + item 2 +← cursor is here In this case TAB allows to cycle through indentation variants and it is great. Unfortunately just after RET (there are only some spaces on the new line) TAB fixes indentation as continuation of previous item and does not allow to shift left before marker is added. It is confusing at first since e.g. python mode is more liberal. Is there equivalent of TAB for indentation cycle when some item text is added since TAB is busy for switching of item visibility?