From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: [RFC] Removal of [1]-like footnotes Date: Thu, 17 Dec 2015 11:03:10 +0100 Message-ID: <87oadp9yu9.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9VNF-0004ts-Un for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 05:01:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9VNA-0003Z3-8G for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 05:01:25 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9VNA-0003Yw-23 for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 05:01:20 -0500 Received: from selenimh (unknown [IPv6:2a01:6600:8080:9601::2de]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id A154F172104 for ; Thu, 17 Dec 2015 11:01:18 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode List Hello, As discussed previously, I pushed changes about footnotes in a dedicated branch, "wip-no-plain-fn", for testing. In a nutshell, in this branch, Org no longer recognizes [1]-like constructs as valid footnotes, an no longer spend time matching them. As a consequence, "fn:" can now be unambiguously removed from label and become part of the syntax. Thus, [fn:1] is labelled "1" and [fn:label] is labelled "label". In the process, I had to rewrite `org-footnote-normalize', which used to turn every footnote in a document into [1]-like footnotes. Now, it turns them into [fn:1] footnotes. However, this function also contained a part dealing with non-Org buffers, e.g. just before sending an email, this function could turn Org footnotes into footnote.el-compatible footnotes. This is no longer present currently in the branch. I don't really mind adding it back, but it ought to be a separate function, with a different design. It is not really possible to treat non-Org buffers as Org ones (cf. `orgstruct-mode' problems). However, before spending time on it, I'd like to know if there is any incentive to use it over, e.g. `footnote-mode' right from the start? Feedback welcome. Regards, -- Nicolas Goaziou 0x80A93738