GNU bug report logs - #27777
Footnotes: only allow creation when in text body [Code included]

Previous Next

Package: emacs;

Reported by: Boruch Baum <boruch_baum <at> gmx.com>

Date: Thu, 20 Jul 2017 21:41:02 UTC

Severity: minor

Tags: patch, wontfix

Merged with 29756

Found in version 25.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27777 in the body.
You can then email your comments to 27777 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#27777; Package emacs. (Thu, 20 Jul 2017 21:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Boruch Baum <boruch_baum <at> gmx.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 20 Jul 2017 21:41:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Boruch Baum <boruch_baum <at> gmx.com>
To: Emacs Bug Reporting <bug-gnu-emacs <at> gnu.org>
Subject: Footnotes: only allow creation when in text body [Code included]
Date: Thu, 20 Jul 2017 17:40:02 -0400
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#27777; Package emacs. (Sun, 21 Jul 2019 14:14:01 GMT) Full text and rfc822 format available.

Message #8 received at 27777 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Boruch Baum <boruch_baum <at> gmx.com>
Cc: 27777 <at> debbugs.gnu.org
Subject: Re: bug#27777: Footnotes: only allow creation when in text body
 [Code included]
Date: Sun, 21 Jul 2019 16:13:11 +0200
Boruch Baum <boruch_baum <at> gmx.com> 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




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 21 Jul 2019 14:14:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 27777 <at> debbugs.gnu.org and Boruch Baum <boruch_baum <at> gmx.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 21 Jul 2019 14:14:02 GMT) Full text and rfc822 format available.

Forcibly Merged 27777 29756. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 23 Jul 2019 00:18:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 20 Aug 2019 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.