From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Fabián Ezequiel Gallina" <fabian@anue.biz>, 13438@debbugs.gnu.org
Subject: bug#13438: /srv/bzr/emacs/emacs-24 r111196: * imenu.el (imenu-default-create-index-function): Remove useless
Date: Fri, 25 Jan 2013 03:34:53 -0500 [thread overview]
Message-ID: <g2ip6lu0cy.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <jwvr4lav3lp.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 24 Jan 2013 13:30:16 -0500")
>> Why is this issue (apparently) only seen in Python mode
Answering my own question, it happens in any mode that sets
imenu-prev-index-position-function and
imenu-extract-index-name-function, but there are very few of those.
Eg prolog mode. With buffer contents:
------
fac(0,1).
fac(N,F) :- N > 0, M is N - 1,
fac(M,Fm), F is N * Fm.
------
and point at point-min, switching to prolog-mode causes the same issue.
How about taking the more cautious approach with:
(when (and (= pos (point))
(not (bobp)))
(error "Infinite loop... ))
(IIUC, this was actually the suggestion in
http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00510.html ?)
next prev parent reply other threads:[~2013-01-25 8:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1Ty8dP-0000cA-TK@vcs.savannah.gnu.org>
2013-01-24 18:01 ` bug#13438: /srv/bzr/emacs/emacs-24 r111196: * imenu.el (imenu-default-create-index-function): Remove useless Glenn Morris
2013-01-24 18:30 ` Stefan Monnier
2013-01-25 8:34 ` Glenn Morris [this message]
2013-01-25 13:55 ` Fabián Ezequiel Gallina
2013-01-27 2:12 ` Glenn Morris
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=g2ip6lu0cy.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=13438@debbugs.gnu.org \
--cc=fabian@anue.biz \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.