From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= Newsgroups: gmane.emacs.devel Subject: Reconciling org-mode idiosyncrasies with Emacs core (was: Convert some files from outline-mode to org-mode) Date: Wed, 29 Apr 2020 13:37:06 +0200 Message-ID: <87pnbqo74t.fsf_-_@gmail.com> References: <20200426172206.GC18629@ACM> <87y2qhnc9a.fsf@gmail.com> <20200427102311.GA4976@ACM> <87mu6xtano.fsf@gmail.com> <87k120ohsq.fsf@mail.linkov.net> <87blnbir01.fsf@nicolasgoaziou.fr> <87o8rbmbfa.fsf@mail.linkov.net> <87k11yftqo.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="15663"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Alan Mackenzie , Emacs developers , Stefan Kangas , Juri Linkov To: Nicolas Goaziou Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 29 13:42:29 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTl6i-0003x8-Ug for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 13:42:28 +0200 Original-Received: from localhost ([::1]:59358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTl6h-0008FF-VV for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 07:42:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49462) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTl5A-0007B3-9l for emacs-devel@gnu.org; Wed, 29 Apr 2020 07:41:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTl1a-0001QZ-2l for emacs-devel@gnu.org; Wed, 29 Apr 2020 07:40:52 -0400 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:38988) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTl1Z-0001QR-Ma for emacs-devel@gnu.org; Wed, 29 Apr 2020 07:37:09 -0400 Original-Received: by mail-wm1-x32e.google.com with SMTP id y24so1633831wma.4 for ; Wed, 29 Apr 2020 04:37:09 -0700 (PDT) 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=mH1HR5gEG2PAgVzfRntem/ZxR4SjxQFmtPdMtIj0z08=; b=le5L5MOmOYNn539ipM/YDjO/51v9OfXtiub1DP/IX8iVo5t8NGAu5uhwjfg/ImUIti d4UdovyW+K3PwxObetO3zKhiqJDWPWFULfCY3vB4AHpd+YFvrzyMHlmDZL3y3h4secli vyZ/ICqXBHJ1KJpjK2HsBWUVKLs5A+bsjgKZQEyGP9dbR88GJb4CO2E3Cz/hXB8azAHe SHO6fIM4drrJ+40QOA5n7aTUxLofunhFK4uHfNCkQRP2apK/WeId1+q4JD1Xps4rDdEq 0pbXRx+WM8EY9CuSH99zyqBODOaSMhcnTyheUX9lYaojrP6vW9n7QP9QfM3rQKJ70iJr s3+Q== 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=mH1HR5gEG2PAgVzfRntem/ZxR4SjxQFmtPdMtIj0z08=; b=tdZdN5WksZCfrSGdrA5V+FFAoZI/7fxLCkSUUoVIrA088nzO6cHQOm3OiKZHtkZ5xE PNwGVpIYzZucXzjWxtXDaChyIMV5r4VY558InYYL4q675fF7264xP8g+ED/Qbq1tGPnd EvBEPzKNP3cf67pHGtKk1WeOg6n1mkad24W8NrO18UPImu1F8uMjWHg4mrWd1WVPJ+he K+CYm04LWzqIjt6N30mrpSzAPS+yGZ/jv005ImbO+46WSRF6BSYLfvJZAWuMOSpX/XEA MaDrf2bwB1Sn7MBc1Tuel4fY/674CGosY+r0UKtoVSZaKRn2jlA/glXnvAoizuqYlFxz dnEg== X-Gm-Message-State: AGi0PuZAadSTZwda5pkizN3hynDZuh31ORs+pwSXNQ9NjioiifLq8j4m gHe5VkQPLjBWYAf4cjVI3ers1eM2c0wMqQ== X-Google-Smtp-Source: APiQypJABRd9RjiwhCfLCad6lXzh2f7AEomiPS5T5P44kCImY4ez4VakTFHJdu4ZPIwYekddYrom+A== X-Received: by 2002:a05:600c:20c:: with SMTP id 12mr2764683wmi.158.1588160227611; Wed, 29 Apr 2020 04:37:07 -0700 (PDT) Original-Received: from klegouguec-HP-ProBook-450-G1 (200.143.13.109.rev.sfr.net. [109.13.143.200]) by smtp.gmail.com with ESMTPSA id j13sm31035092wrq.24.2020.04.29.04.37.06 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Apr 2020 04:37:06 -0700 (PDT) In-Reply-To: <87k11yftqo.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Wed, 29 Apr 2020 12:53:35 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x32e.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::32e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248116 Archived-At: Nicolas Goaziou writes: > For example, having RET > inserting a plain newline would be a disaster in many locations. I don't think I've seen anybody advocating for that! If you are referring to this bit: > (Frustratingly, org-mode uses what I think of as the "old" convention > to use RET as "plain newline" and C-j as "smart newline with indent".) If anything, I was advocating for RET not to insert a plain newline *at all* (when electric-indent-mode is t, anyway). > For example, Org expects > a specific, context-aware, "newline and indent" function. But it could > include support for Electric Indent mode. Would Someone=E2=84=A2 want to = help in > that area? Do you think a patch that - tweaked org-return (bound to RET) to default its INDENT argument to the current value of electric-indent-mode, - tweaked org-return-indent (bound to C-j) to call electric-newline-and-maybe-indent (the new default binding for C-j everywhere else in Emacs, which takes care of consulting electric-indent-mode) instead of newline-and-indent, would be well-received? I would love to cook up such a patch, but I would be loath to break the workflows of long-time Org users who have come to rely on C-j indenting and RET inserting plain newlines =E2=80=A6