From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: bug#16832: Emacs goes crazy when deleting lines Date: Sat, 15 Mar 2014 18:57:37 +0100 Message-ID: <87k3bvs5ta.fsf@gmail.com> References: <86d2igl9x3.fsf@somewhere.org> <861tys93qy.fsf@somewhere.org> <86eh2r4ipj.fsf@somewhere.org> <86bnxugmkv.fsf@somewhere.org> <83txbly9xq.fsf@gnu.org> <86y50xirtv.fsf@somewhere.org> <861ty4ojm1.fsf@somewhere.org> <83y50bbh01.fsf@gnu.org> <87ob17sag9.fsf@gmail.com> <83wqfvbbzy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOsph-0008De-1A for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 13:57:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOspb-0002M3-Mb for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 13:57:16 -0400 In-Reply-To: <83wqfvbbzy.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 Mar 2014 19:36:01 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eli Zaretskii Cc: fni-news@pirilampo.org, emacs-orgmode@gnu.org, 16832@debbugs.gnu.org Eli Zaretskii writes: > Do you happen to know, or can measure, how much faster is the latest > version? Given the timing provided by the OP, it'd have to be at > least 100 times faster, to avoid annoying delays after each command. Basically it is, (search-forward "call_") versus (re-search-forward "\\([^\n]*?\\)call_\\([^()[:space:]\n]+?\\)\\(\\[\\(.*?\\)\\]\\|\\(\\)\\)(\\(.*?\\))\\(\\[\\(.*?\\)\\]\\)?") Of course, the speed factor depends on the length of the lines in the document, but it could make a significant difference for the OP. Regards, -- Nicolas Goaziou