From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] org 9 hangs on link search Date: Thu, 08 Dec 2016 22:43:55 +0100 Message-ID: <8760mugkpw.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cF6Tr-00067A-Nn for emacs-orgmode@gnu.org; Thu, 08 Dec 2016 16:43:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cF6Tq-0005V8-VR for emacs-orgmode@gnu.org; Thu, 08 Dec 2016 16:43:55 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:59976) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cF6Tq-0005Ur-Oq for emacs-orgmode@gnu.org; Thu, 08 Dec 2016 16:43:54 -0500 In-Reply-To: (Samuel Wales's message of "Thu, 8 Dec 2016 10:58:28 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Samuel Wales Cc: emacs-orgmode@gnu.org Hello, Samuel Wales 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