From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: org-goto-local-search-headings usage? Date: Tue, 15 May 2012 16:28:36 +0100 Message-ID: <87obpp31ln.fsf@ed.ac.uk> Reply-To: emacs-orgmode Mode , Myles English Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUJaz-0002AR-6N for emacs-orgmode@gnu.org; Tue, 15 May 2012 11:23:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUJas-0003UA-Sz for emacs-orgmode@gnu.org; Tue, 15 May 2012 11:23:28 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:62288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUJas-0003TM-Gn for emacs-orgmode@gnu.org; Tue, 15 May 2012 11:23:22 -0400 Received: by eaan1 with SMTP id n1so2087230eaa.0 for ; Tue, 15 May 2012 08:23:20 -0700 (PDT) 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 Mode Hi, Can anyone see what I am doing wrong here? I just want to open a file ~/tmp/gtd.org and goto the heading "* My workflow". So, starting like this: emacs -Q -l ~/tmp/gtd with ~/tmp/gtd: (add-to-list 'load-path "~/.emacs.d/plugins/org-mode/lisp") (require 'org-install) ;; to use the emacs-org-mode rather than the one ;; installed with emacs (defun gtd() (interactive) (find-file "~/tmp/gtd.org") (goto-char (point-min)) (setq wf "My workflow") (org-goto-local-search-headings wf nil nil) ) and ~/tmp/gtd.org: * My workflow then I do: M-x gtd and get the message: byte-code: Search failed: "My workflow" I have tried edebugging but didn't get anywhere, perhaps I am not using it properly. Thanks, -- `--[ Myles ]