From unknown Sat Aug 16 18:43:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27777: Footnotes: only allow creation when in text body [Code included] Resent-From: Boruch Baum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Jul 2017 21:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 27777@debbugs.gnu.org X-Debbugs-Original-To: Emacs Bug Reporting Received: via spool by submit@debbugs.gnu.org id=B.15005868201915 (code B ref -1); Thu, 20 Jul 2017 21:41:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Jul 2017 21:40:20 +0000 Received: from localhost ([127.0.0.1]:50102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYJBD-0000Up-MI for submit@debbugs.gnu.org; Thu, 20 Jul 2017 17:40:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYJBC-0000Ud-6F for submit@debbugs.gnu.org; Thu, 20 Jul 2017 17:40:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYJB6-0000Yo-BQ for submit@debbugs.gnu.org; Thu, 20 Jul 2017 17:40:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_05,FREEMAIL_FROM, RCVD_IN_SORBS_SPAM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34733) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dYJB6-0000YO-7g for submit@debbugs.gnu.org; Thu, 20 Jul 2017 17:40:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYJB5-000613-5e for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2017 17:40:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYJB2-0000Ua-3r for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2017 17:40:11 -0400 Received: from mout.gmx.net ([212.227.15.18]:57137) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYJB1-0000Sm-PT for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2017 17:40:08 -0400 Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx002 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MNYxW-1dWgLX1SB8-007E5G for ; Thu, 20 Jul 2017 23:40:05 +0200 Date: Thu, 20 Jul 2017 17:40:02 -0400 From: Boruch Baum Message-ID: <20170720214002.GK803@E15-2016.optimum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:DApnwwOYkbLfaObWfVQuP5W7K2Sad+cgbJIni/hbU3ylr9kqhi4 tKEZsF4pHpezW2H47asuLxtAQlWOZ7AgEREvW18kHDZsiw30qnbEUkxUTSyw+F3FSK0UOx4 7rVo4b7WsxZZJmNePZmN7yTEoQb7mU6MtYSqXWn7tsSrz2QBFXMAlh21Dt0KsRFzPPeTckA vzymWAt2US8blyxOxUbRQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:QQP7ByCybXQ=:WNk8noKRIh6W7AV5dxeH5g S7CnuGpz7HW6oSTJp6A5Zey8oR8p25kUOqNXV76dpMNo38yzOL2sqlH/xlJH/Qvz3mT6uwn9C K7ZIeEfu9UOTHQWu1l39ReiCBKtrp7cGcxZqcAA1n96CxEOSyGc5o+ih5pwwQ2we0sQED937b ekchVDxxku6zfg8WiY0pviJHxkMybiUPpZWWqwSKW2wGVLvaEs2mWXfuUX2UsQixpmnsF7LtC oH+XsoJ5yvdo+o5q2M/+ML1XR3Ae+CO1YQS1/sMH0uBf/YMYRUn+1lLs0fMqr1rwTzpJpFwQZ MbzdKHZIuiTwZ28G5lysGWMmuhvGGBPd/6SkY4jl7MJsAWgtkwhjTEsiXYBlxdOxZD+PUmFKJ 6FefTvaYv9AygRu5GNDeIFyw9Y8WEf6FBk+D+vroj7aBqdZpYoBQ7XTW6kL3Qg7qz9+ikxs1Q iYs4TOqAHjhF1PPwbuL+ueeWr+FjNQUVasLlDUrb++Mlt4fd8bq5+xqD+ECcXikPs+fktHsMX bbUq+S9Yz0z01WxjXeWR5ycApTzdd4Fwt8574z3y8Dnj87W0m1N23Wau4ZUbTrmoeY7UV4hLU MNHbOcNfMETG2ZcF0WSThYlaekEF7pKoOJ7We3F4HQXxthqikhb+qtJaawnQdXu/qbm8aH+ky S34qvtkdtF8cb2EtEznmBz0LS8Xa3BdIWBtccXaEeM8vE9OrXeeJwNo+6R+3CBLwWsNbGFMnw wS3R1OjN6I6lJlQq0v9ULMtkUdHDHtLm+OqC40GRdUvKzowDyTrAKyRwKWQGGBBa7ys9KQF51 AchV9SD3oRkeofWGzfTNqdJ3s+FMQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) I'm experiencing a bug in that emacs is allowing me to add a footnote when I am already in the footnote region. In that case, emacs blithely adds a footnote text marker at point within the footnote region. Of course, it also then adds a footnote reference marker. Here's my fix, for your consideration. #+BEGIN_SRC emacs-lisp (defadvice Footnote-add-footnote (around abort-when-in-fn-area activate) (interactive) (if (or (not footnote-text-marker-alist) (< (point) (cdr (first footnote-text-marker-alist)))) ad-do-it (message "Add footnotes only while in text body"))) #+END_SRC -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 From unknown Sat Aug 16 18:43:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27777: Footnotes: only allow creation when in text body [Code included] Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Jul 2019 14:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Boruch Baum Cc: 27777@debbugs.gnu.org Received: via spool by 27777-submit@debbugs.gnu.org id=B27777.156371839826937 (code B ref 27777); Sun, 21 Jul 2019 14:14:01 +0000 Received: (at 27777) by debbugs.gnu.org; 21 Jul 2019 14:13:18 +0000 Received: from localhost ([127.0.0.1]:59233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpCaT-00070P-UB for submit@debbugs.gnu.org; Sun, 21 Jul 2019 10:13:18 -0400 Received: from quimby.gnus.org ([80.91.231.51]:58574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpCaS-00070E-85 for 27777@debbugs.gnu.org; Sun, 21 Jul 2019 10:13:16 -0400 Received: from [80.169.244.84] (helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpCaN-0004W0-PG; Sun, 21 Jul 2019 16:13:14 +0200 From: Lars Ingebrigtsen References: <20170720214002.GK803@E15-2016.optimum.net> Date: Sun, 21 Jul 2019 16:13:11 +0200 In-Reply-To: <20170720214002.GK803@E15-2016.optimum.net> (Boruch Baum's message of "Thu, 20 Jul 2017 17:40:02 -0400") Message-ID: <87tvbf5vd4.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Boruch Baum writes: > I'm experiencing a bug in that emacs is allowing me to add a footnote > when I am already in the footnote region. In that case, emacs blithely > adds a footnote text marker at point within the footn [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Boruch Baum writes: > I'm experiencing a bug in that emacs is allowing me to add a footnote > when I am already in the footnote region. In that case, emacs blithely > adds a footnote text marker at point within the footnote region. Of > course, it also then adds a footnote reference marker. I think adding footnotes when you're in a footnote is fine -- it's often used for humorous effect. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 21 10:13:23 2019 Received: (at control) by debbugs.gnu.org; 21 Jul 2019 14:13:23 +0000 Received: from localhost ([127.0.0.1]:59236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpCaZ-00070j-6s for submit@debbugs.gnu.org; Sun, 21 Jul 2019 10:13:23 -0400 Received: from quimby.gnus.org ([80.91.231.51]:58588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpCaW-00070Y-HU for control@debbugs.gnu.org; Sun, 21 Jul 2019 10:13:21 -0400 Received: from [80.169.244.84] (helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpCaT-0004W7-V9 for control@debbugs.gnu.org; Sun, 21 Jul 2019 16:13:19 +0200 Date: Sun, 21 Jul 2019 16:13:17 +0200 Message-Id: <87sgqz5vcy.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27777 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 27777 wontfix close 27777 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 27777 wontfix close 27777 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 22 20:17:37 2019 Received: (at control) by debbugs.gnu.org; 23 Jul 2019 00:17:37 +0000 Received: from localhost ([127.0.0.1]:33748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpiUo-0002w6-Mp for submit@debbugs.gnu.org; Mon, 22 Jul 2019 20:17:35 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:35141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpiUl-0002vp-Us; Mon, 22 Jul 2019 20:17:32 -0400 Received: by mail-io1-f65.google.com with SMTP id m24so78061145ioo.2; Mon, 22 Jul 2019 17:17:31 -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; bh=8O4jWX2C7DqW4pPqfIWnZ0H/XsqupS/JhFLQkeSV3ow=; b=EkO8wiCWZwMEPgPhLN0yeIaInYmhoHhPfs2153+fqtTNVuDNx7FoUOu0DTjebK6fse H7R4n2pTzhmztXrMtn6SWFzUysTtIJaGs7lLrcrua2Wo7SnuYptl3AdkXa6/lYIPd3Mv rp7V7wSWayIs3V3ls75Zkx1M70MaG0ZTHQZJIBl1nTCmM7U5ovDg//D+oWJ/3gkQ8o1t 4SEEyGigRRbzIYUl5Tdh001GfkPBoJhL9lkeCVVbWYYGqEJUO7RpHXGDlinz4M0ZvI/u TZ4tJye5VyzaehJIubwXTXZk4195jWLE6O203ots4tXz9Kp7F0I4kkuZrWQ1RMfmzSKF JPQg== 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; bh=8O4jWX2C7DqW4pPqfIWnZ0H/XsqupS/JhFLQkeSV3ow=; b=U0S38n8u9nJ5ssZ8exEcPJFRUH8nWdFh0ipf6jYvwgRpzPnXq9UWI22RU8xnqnu3Vn I8YCv5TO9J2KZ+sgxJjCL8FFx5oooV1g5arfE4KlpdRoMuVN6UvCQufjDl3YA8mkgrVA aucaUsVQj6sQRb7PSZjm4EUxoZf3s4GexyeLtoL4SpKSYqqqrwA4miJ8o8H3F26kBl1Y eOc8dYFSSgyfVmRHi+PPu8mM7j1vFusG/oIUe0IXdpVauPdu7wDCwJFgmT151LH5WMnG 28fpsWv9+KMsZ/LVzReASkAlWNhvp/fgMOC5/XKhvXX31al2belHdJnoCYy2NK3XCupo H+HQ== X-Gm-Message-State: APjAAAXFKEhKpXetl+4Pa9DKAAw+khZsmd7ZFFGKsoTl63eOveDPgEfo XBMQtwvnX6AYszh/UugibAZnS6ko X-Google-Smtp-Source: APXvYqzjL/YQAyPZ6MsN0JgY5Hrqkyr7QXKFmNtXZRhEzzk1Syn4k4OFFNjlzjfqPjcTJPDHMd1E4w== X-Received: by 2002:a6b:6a01:: with SMTP id x1mr29174511iog.77.1563841046178; Mon, 22 Jul 2019 17:17:26 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id b14sm44743464iod.33.2019.07.22.17.17.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jul 2019 17:17:25 -0700 (PDT) From: Noam Postavsky To: Lars Ingebrigtsen Subject: Re: bug#29756: 25.2; Footnote-mode: recursive footnotes [UPDATED PATCH] References: <20171217161156.ojy5s3c37dqtgjch@E15-2016.optimum.net> <20171217212131.v46ijlpze6dsws6i@E15-2016.optimum.net> <83y3lulua1.fsf@gnu.org> <20171224233731.766dkag7jso7zlgv@E15-2016.optimum.net> <20190624170050.khxoeu47ddhtjgs4@E15-2016.optimum.net> Date: Mon, 22 Jul 2019 20:17:24 -0400 In-Reply-To: (Lars Ingebrigtsen's message of "Mon, 24 Jun 2019 22:43:56 +0200") Message-ID: <87zhl5wqnf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: 29756@debbugs.gnu.org, Eli Zaretskii , Boruch Baum X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 27777 29756 quit Lars Ingebrigtsen writes: > Boruch Baum writes: > >> On 2019-06-24 17:32, Lars Ingebrigtsen wrote: >>> Is this patch still applicable or did it get solved in conjunction with >>> that separate feature? >> >> It's a few years old, and I only have the vaguest memory of it. > > It's in > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=29756 I think this is the same as Bug#27777, which was recently wontfix'd; I'm merging them (I agree with the wontfix reason: that recursive footnotes should be allowed).