emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug] org 9 hangs on link search
Date: Thu, 08 Dec 2016 22:43:55 +0100	[thread overview]
Message-ID: <8760mugkpw.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAJcAo8v5X861i6mVPMJLxwpQm1dOTmwPQ49dFQApnUNnRGOYug@mail.gmail.com> (Samuel Wales's message of "Thu, 8 Dec 2016 10:58:28 -0700")

Hello,

Samuel Wales <samologist@gmail.com> writes:

> in emacs -Q, with my org files, (org-link-search "*test") will hang in
> org 9maint, but not in org 8.  debug on quit produces this re.
>
>   re-search-forward("^\\*+ +.*\\(?:COMMENT[ 	]+\\)?\\(?:\\(?:[
> 	]\\|\\(?:[ 	]*\\[[0-9]*\\(?:%\\|/[0-9]*\\)\\][
> 	]*\\)\\)+\\)?*test\\(?:\\(?:[ 	]\\|\\(?:[
> 	]*\\[[0-9]*\\(?:%\\|/[0-9]*\\)\\][ 	]*\\)\\)+\\)?" nil t)

I committed a simplification of `org-link-search' so it no longer
produces this kind of regexp.

Anyway, please report if you encounter the freeze whenever you get the
chance to test the fix.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2016-12-08 21:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-08 17:58 [bug] org 9 hangs on link search Samuel Wales
2016-12-08 21:43 ` Nicolas Goaziou [this message]
2016-12-13  3:07   ` Samuel Wales
2016-12-15 15:20     ` Nicolas Goaziou
2016-12-15 19:23       ` Samuel Wales
2016-12-15 21:21         ` Nicolas Goaziou
2016-12-15 22:03           ` Samuel Wales
2016-12-17 11:29             ` Nicolas Goaziou
2016-12-18  3:48               ` Samuel Wales

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760mugkpw.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@gmail.com \
    /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/org-mode.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).