From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KDkBGxgWsV/SLwAA0tVLHw (envelope-from ) for ; Sun, 15 Nov 2020 11:50:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eIfuFhgWsV/CTQAAB5/wlQ (envelope-from ) for ; Sun, 15 Nov 2020 11:50:48 +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 CC0C3940538 for ; Sun, 15 Nov 2020 11:50:47 +0000 (UTC) Received: from localhost ([::1]:45980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1keGYP-0007GU-BY for larch@yhetil.org; Sun, 15 Nov 2020 06:50:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1keGWp-0007GB-QR for emacs-orgmode@gnu.org; Sun, 15 Nov 2020 06:49:09 -0500 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:36378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1keGWo-0004C0-8h for emacs-orgmode@gnu.org; Sun, 15 Nov 2020 06:49:07 -0500 Received: by mail-pf1-x434.google.com with SMTP id a18so10936789pfl.3 for ; Sun, 15 Nov 2020 03:49:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=p7sdvERquR0sdGbTc+yqTe1Al3aHKn3zxlcf+37TfxY=; b=G2+V4sSh0DiGKPNrFylBrKUmhGZW+dyc5vb2ZvR6ZyfpFwCaub12Mx/xRORDiAQUT4 GsxDJAMv4cnyIkgWoy7DUxFWghY22OYqW9G4B5r71iGZDSTPHF5b0lD9fmtXua4kmvYH 8DmLA20ltuFzaPgNzRJo3JhZtcRX55/wRcMGSuy/0baUvAKn4buOY9BCYQfl7exNsWE+ lRbAGsuD55wSwHTxamnkghemC2NMeG5MBCIxuWrwZP921FiGEMmfgkKW0/j9VnrSD7Oo 92BkBmbIwTOSCJgIae+GMXBEAVr3Ci8DEC/yQ6EFld/agTfMp0UApLTFhNEww7G/StcD NI7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=p7sdvERquR0sdGbTc+yqTe1Al3aHKn3zxlcf+37TfxY=; b=l0yg/4CRn8CTivOhTbfwFv4qyQx+fF1HrVe+8zVbjLEOaUOYpaRunEy64sq7ELGFYz minsyE2p/YSDGrFj+dVrQWdrlfQaSPSHEy4w++eELVsWYah/4CuvPsVNNrpxPqHjbmMm TGGzDuf4zcojGpaf/FTFjCfmfdjkRG3+GaTV5o9GdDMk1Yo5vgdAkcJadVuYqMp7jhf4 TI543Bg/ShJd9Ey9k7nkpyvKMkM1jlnNYqGRJeMlbz/dVraqSrmamciHkC9Fp9XuINYE zucydGlnCtNizszOLdXYG/InvZxkGDYidUEvmcpwWosjVxFYs7Cn3xxTUugXnzTfa4q7 jayw== X-Gm-Message-State: AOAM533uC8eyCX5kyAnljE3yh5VjXEPWQQqrSm2OHdrXmQN0rybXBy/9 4PaoDppmSKBcopxOp9q6n2w= X-Google-Smtp-Source: ABdhPJwDgukczbg/RH6HVcmaQF0DwtaNUnn5kGDcTh3AVcnvKAUmlM0YSbY2y4QaW3g8knZeBOncdQ== X-Received: by 2002:a62:2b88:0:b029:163:c6fb:f2a with SMTP id r130-20020a622b880000b0290163c6fb0f2amr9732809pfr.7.1605440942921; Sun, 15 Nov 2020 03:49:02 -0800 (PST) Received: from gusbrs-laptop ([199.116.118.169]) by smtp.gmail.com with ESMTPSA id t13sm3099953pjq.15.2020.11.15.03.48.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Nov 2020 03:49:02 -0800 (PST) From: Gustavo Barros To: Greg Minshall Subject: Re: Changed list indentation behavior: how to revert? References: <665024.1605436621@apollo2.minshall.org> Date: Sun, 15 Nov 2020 08:48:56 -0300 In-Reply-To: <665024.1605436621@apollo2.minshall.org> (Greg Minshall's message of "Sun, 15 Nov 2020 13:37:01 +0300") Message-ID: <87y2j2u9g7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=gtvbrs@gmail.com; helo=mail-pf1-x434.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=1, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Cc: Karl Voit , David Rogers , emacs-orgmode@gnu.org, Karl Voit , Jean Louis Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=G2+V4sSh; dmarc=fail reason="SPF not aligned (relaxed)" 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-Spam-Score: 1.09 X-TUID: x3ttgL25JknM Hi All, On Sun, 15 Nov 2020 at 13:37, Greg Minshall wrote: > hi, all. > > David Rogers wrote: > >> Am I=C2=A0crazy to say that your last example of unwanted behavior is >> easier for me to read and understand? (and to me the common=20 >> indenting is a hopeless mess?) > > yes, in fact, the "new" way sort of has the buffer indentation match > that of the outline structure of the file (specified by asterisks). > there's a lot to be said for that. (though, obviously, it's not what > everyone would want.) > > if the new mode stays as the standard, maybe we'd want to capture an > asterisk typed immediately after a newline that would (by default), put > that line-beginning asterisk back in column one? > > otherwise, this is what one gets (without remembering to do a C-j > instead of ): > ----- > * i wanted a headline > * i wanted a subhead, but it's ignored by org mode > ----- > which is maybe not optimal? > > in most non-org modes (including in Org Src... buffers, and in org files > when writing org-mode lists), i'm a big fan of electric indent mode. > > maybe an org-specific setting, "org-file-indent-follows-structure"? if > true, it means the user wants to have a "raw" org document laid out > according to the outline structure of the document. if false, it means > one, in general, wants the org file laid out with left-alignment (or, > right, in right-to-left) languages (not including embedded lists, and > whatever else i might be ignoring). > > cheers, Greg I'm quite surprised by the reaction to this issue, because `electric-indent-mode' *does not change Org's indentation settings*, it just applies them alongside RET. Which makes me think that those who've been so bitten by it where actually manually overriding (their own) settings in this area by never applying indentation. If that's your case, you'd probably be very surprised of running `org-indent-region' in your documents (don't do it, I don't want to break them). In particular, one "surprising" result of the "new behavior" is that of indentation after a heading. That was already and continues to be controlled by the user option `org-adapt-indentation'. If you don't want your content to be indented after a heading, set it to nil. And `electric-indent-mode' should do what you expect in this regard.=20 I'm not sure if thus overriding your own (or Org's, if you prefer) indentation settings by selectively applying indentation is a sane approach, so perhaps `electric-indent-mode' may help you discipline your editing to your benefit. And make you more conscious of Org indentation. Especially because indentation is not a "free variable" in Org, it is a syntactical aspect of an Org document and, conspicuously, is critical to the definition of a heading and of plain lists. An example from Greg: > ----- > * i wanted a headline > * i wanted a subhead, but it's ignored by org mode > ----- That's because the first one is indeed a heading, and the second is not, it is a plain list item. By definition a heading must start at the left margin. You (plural) could probably also get some juice from looking into, and incorporating to muscle memory, `M-RET', `C-RET' and `C-j'. Of course, with that said, if you really don't like `electric-indent-mode' for Org, you can disable it as described in the Org News, previously linked to in this thread. There is ground to prefer this, particularly for the list case, mentioned by Karl in the original message of this thread. But `electric-indent-mode' does not induce a new pattern of indentation for Org, it just applies your settings in this area, whose defaults have not changed of recent, as far as I recall. Finally, the "change" was not brought about by Org, but by Emacs. Org just (belatedly) tagged along. Best regards, Gustavo.