From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Fran=C3=A7ois_Pinard?= Subject: Re: org-grep, and problems Date: Tue, 15 Oct 2013 21:26:22 -0400 Message-ID: <86txgit39d.fsf@iro.umontreal.ca> References: <864n8pw2eg.fsf@iro.umontreal.ca> <20131010165406.GC2619@kuru.dyndns-at-home.com> <20131010185947.GA21631@kuru.dyndns-at-home.com> <867gdkvca6.fsf@iro.umontreal.ca> <20131011074335.GC21631@kuru.dyndns-at-home.com> <86d2n7mmyb.fsf@iro.umontreal.ca> <20131015090643.GA6656@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWFsd-0002FR-4V for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 21:26:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWFsV-0007fD-TO for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 21:26:31 -0400 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:57393 helo=mercure.bureau.ubity.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWFsV-0007f8-Nn for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 21:26:23 -0400 In-Reply-To: <20131015090643.GA6656@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Tue, 15 Oct 2013 11:06:43 +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: emacs-orgmode@gnu.org Suvayu Ali writes: > I can try debugging org-grep, but I don't know where I should start. I would either step through org-grep (using C-u C-M-x first over any line of the org-grep definition within org-grep.el, or add (message ...) lines within the function before to later check the *Messages* buffer, and after calling org-grep the normal way to trigger the trace, pay special attention to the argument given to shell-command. That command, repeated in a mere shell outside Emacs, should find hits in your Org files. If not, I would play with that command to see how it should have been written to be successful, then amend org-grep so it generates the proper command. If everything that should be found gets found, then I'd suspect the code after shell-command which reformats the output, and step through it to find where it does it wrong. The code is small, so the bug does not have much room to hide :-). Fran=C3=A7ois