From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WOp5L0DOj2CRQQEAgWs5BA (envelope-from ) for ; Mon, 03 May 2021 12:19:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eGkuK0DOj2CbJgAA1q6Kng (envelope-from ) for ; Mon, 03 May 2021 10:19:44 +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 B0C60161C7 for ; Mon, 3 May 2021 12:19:43 +0200 (CEST) Received: from localhost ([::1]:58088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldVfy-0008Kg-Gr for larch@yhetil.org; Mon, 03 May 2021 06:19:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldVfA-0008K8-AB for emacs-orgmode@gnu.org; Mon, 03 May 2021 06:18:52 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:39941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldVf7-00034y-Qm for emacs-orgmode@gnu.org; Mon, 03 May 2021 06:18:52 -0400 Received: from localhost ([::ffff:154.226.104.226]) (AUTH: PLAIN securesender, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000046165.00000000608FCE06.00001C84; Mon, 03 May 2021 03:18:46 -0700 Date: Mon, 3 May 2021 13:15:02 +0300 From: Jean Louis To: Tim Cross Subject: Re: [POLL] Setting `org-adapt-indentation' to nil by default? Message-ID: Mail-Followup-To: Tim Cross , emacs-orgmode@gnu.org References: <878s4x3bwh.fsf@gnu.org> <87h7jl5xk5.fsf@gmail.com> <87mttcbw22.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <87mttcbw22.fsf@gmail.com> User-Agent: Mutt/2.0.6 (2021-03-06) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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: , Cc: emacs-orgmode@gnu.org 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=1620037183; 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; bh=UO6wjRrwmhUckmoOKLVaqZ0xvDaKf/ce/U2pugVbuPA=; b=rUkzDZa3D3ge18mzWFGK1Irn2Bsx43HwKaVrfziUX95bHpoKKyjBOwEYfmk3VXKeFkmXuY Wr4lSUenqirIu2atHL4H8BvCI60ij5/NRDiiumHxZvErx2Qss04RF/2nAHeA55UZMjS9uO v6Yk1mkYo0Yvn9DSVS8eRDZumRwNRSxe1bKG54/haEMaMt1/Tmsan+VbKPsJOVJl52ia9n bMs8Vag8/GQZkvbUHyK/8r43BG4vkO8qvYwcSzGHXmhxdHzeYufMo2Ic0Z5sxGcne8nGtY qOplCS9/Js9bIz9FG07k9SyI/qLuCiqHYxTIC3JI2KScHiRAnVdPDBU5a9wUdw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620037183; a=rsa-sha256; cv=none; b=NFroKl7hGCHdWpskc28FtLQhsZMPeWDumV96FXJfq6RCUJZaFhJw4S8Lo3IGOX8akHaMaK QGMAGhBiQPuVOprB3l3WKCvBnvvKPAPz8oGg5OinIGH3l98peMXTI1lvKgeLuWmzTMiIwe Nsd0txVUBKvIm3AtuVR6HdsyMJ6wXaVmRIxWltelIQH+maJLnZokoeNTLYNeolUbYZ+4Vz nuOdve3CHKP1pAISMaq8ZqkNaoBv7kDV1vcJXebxrt+OaBWIOHX5OA2e/lgAUi7iC5/QGe 4Eh2dQUxvOvdLvCNDvLgDrpwl+zLgGesg2gEuR0/CSgAnTKNiU9zDcfBtkFQeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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.96 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: B0C60161C7 X-Spam-Score: -0.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0KSfvQuWEtGI * Tim Cross [2021-05-03 01:39]: > This is exactly what headline-data does. I suspect what your running > into is electric-indent-mode and you need to turn it off to get the > behaviour you want. So set org-adapt-indentation to hedline-data and > turn off electric-indent-mode and you will get the indentation style you > are after. > > The issue here isn't that org-adapt-indentation changed. The issue is > that the effect of this setting changed when org mode was updated to be > consistent with the rest of emacs and honour electric-indent-mode, which > is enabled by default in emacs. Previously, org ignored this wider Emacs > default setting. I got it after Bastien explained it. I am just not sure if right settings should be like this: (add-hook 'org-mode-hook (lambda () (electric-indent-mode 0))) (add-hook 'org-mode-hook (lambda () (setq org-adapt-indentation 'heading-data))) I understand from debate that changed was brought to make it consistent with Emacs and users have already got habits. IMHO change was made rather for the sake of computer program as quite number of people like it different. > I'm not sure the full impact of enabling electric-indent-mode was > realised at the time. With org, I think the general principal is to try > and have defaults set to the 'least surprising' value, particularly for > new users. > -- > Tim Cross That is it. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns Sign an open letter in support of Richard M. Stallman https://stallmansupport.org/ https://rms-support-letter.github.io/