emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: emacs-orgmode Mode <emacs-orgmode@gnu.org>,
	Myles English <mylesenglish@gmail.com>
Subject: Re: org-goto-local-search-headings usage?
Date: Tue, 15 May 2012 11:48:55 -0400	[thread overview]
Message-ID: <4409.1337096935@alphaville> (raw)
In-Reply-To: Message from Myles English <mylesenglish@gmail.com> of "Tue, 15 May 2012 16:28:36 BST." <87obpp31ln.fsf@ed.ac.uk>

Myles English <mylesenglish@gmail.com> wrote:

> 
> 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"
> 

Works for me: the cursor is placed at the end of the headline.
I tried both with just the one headline and also with half a 
dozen.

Maybe M-x toggle-debug-on-error and try again to get a backtrace?
Or add

   (setq debug-on-error t)

to your initialization file.

Nick

  reply	other threads:[~2012-05-15 15:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-15 15:28 org-goto-local-search-headings usage? Myles English
2012-05-15 15:48 ` Nick Dokos [this message]
2012-05-15 21:09   ` Myles English
2012-05-15 21:33     ` Nick Dokos
2012-05-15 21:44       ` Nick Dokos
2012-05-16 10:30         ` Myles English
2012-05-16 14:56           ` Nicolas Goaziou
2012-05-16 20:37             ` Myles English

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4409.1337096935@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mylesenglish@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).