From: Boruch Baum <boruch_baum@gmx.com>
To: 27777@debbugs.gnu.org
Subject: bug#27777: Footnotes: only allow creation when in text body [Code included]
Date: Thu, 20 Jul 2017 17:40:02 -0400 [thread overview]
Message-ID: <20170720214002.GK803@E15-2016.optimum.net> (raw)
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
next reply other threads:[~2017-07-20 21:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-20 21:40 Boruch Baum [this message]
2019-07-21 14:13 ` bug#27777: Footnotes: only allow creation when in text body [Code included] Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170720214002.GK803@E15-2016.optimum.net \
--to=boruch_baum@gmx.com \
--cc=27777@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).