From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith David Bershatsky Subject: bug#16265: 24.3.50; re-search-forward (error "Invalid search bound (wrong side of point)") Date: Tue, 31 Dec 2013 09:37:15 -0800 Message-ID: References: Mime-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vy3Gb-0005Hj-NT for emacs-orgmode@gnu.org; Tue, 31 Dec 2013 12:38:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vy3GV-0007bW-Hb for emacs-orgmode@gnu.org; Tue, 31 Dec 2013 12:38:09 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:40870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vy3GV-0007bS-99 for emacs-orgmode@gnu.org; Tue, 31 Dec 2013 12:38:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vy3GU-0008EH-Nr for emacs-orgmode@gnu.org; Tue, 31 Dec 2013 12:38:02 -0500 In-Reply-To: Sender: "Debbugs-submit" Resent-Message-ID: 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: Nicolas Richard Cc: 16265@debbugs.gnu.org Nicolas: Yes, `(setq-default cache-long-scans nil)` does indeed fix the problem. In a version of Emacs Trunk built on October 5, 2013, the default value for `cache-long-scans` is `nil`. In the recent version of Emacs Trunk built on December 23, 2013, the default value for `cache-long-scans` is `t`. I would suspect that anyone who uses `org-capture` will have significant problems performing various operations on the `org-agenda-files` subsequent to the initial call. So my recommendation would be that the Emacs team return the default value of `cache-long-scans` to `nil`; or, fix it somehow so that it doesn't interfere with popular functions like `re-search-forward` and `re-search-backward` after calling `org-capture`. Thank you very much for your hard work tracking down the issue. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; At Tue, 31 Dec 2013 15:16:40 +0100, Nicolas Richard wrote: > > Nicolas Richard writes: > > I'll bisect this (I tested 24.3, it works there) and post the result > > bisection is done. > # first bad commit: [f56f1e3993fd79240e03666cf8390f489b4a2435] Switch cache-long-scans to t by default. > > and indeed, running > emacs -Q --batch --eval '(setq-default cache-long-scans nil)' -l filenamehere > worked for me. > > Keith, can you test if it fixes the problems your are seeing as well ? > (If it doesn't then I guess we'll need another bug report.) If it does, > the next step is to understand why things break when the caching > mechanism is enabled -- I give up there. > > -- > Nico.