emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Brian van den Broek <brian.van.den.broek@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: internal links not being followed; instead, offer to create new heading
Date: Sun, 10 Feb 2013 13:53:16 -0500	[thread overview]
Message-ID: <CAF6DajJQ-57_AT-hyC4J8nZCEb+mB0fN-4Ob=LC=TUyhCdTFpg@mail.gmail.com> (raw)

Hi all,

I am having trouble with following internal org links. After carefully
reading the documentation (especially 4.2 Internal Links
<http://orgmode.org/org.html#Internal-links>) with the following
test.org file, I would expect that C-c C-o on the link text in the bar
tree would jump to the corresponding text in the foo tree.

#+BEGIN_EXAMPLE
* foo

  a string to search for

* bar

  [[string to search]]
#+END_EXAMPLE

Instead, what occurs is that I get the following in the Messages
buffer:

#+BEGIN_QUOTE
Position saved to mark ring, go back with C-c &.
No match - create this as a new heading? (y or n)
org-link-search: No match
#+END_QUOTE

where the last line appears after I hit `n' in respond to the prompt.

This works as expected with a minimal init loading org 6.33 that
shipped with my Emacs.

I have tried it with the following minimal init:

#+BEGIN_SRC emacs-lisp
(setq load-path (cons "/home/brian/code/foreign/org-mode/lisp" load-path))
(setq load-path (cons "/home/brian/code/foreign/org-mode/contrib/lisp"
load-path))

(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)

(setq org-directory "/home/brian/docs/org")
(setq org-default-notes-file "~/docs/org/inbox.org")
#+END_SRC

My emacs and org:

Org-mode version 7.9.3e (7.9.3e-973-gba38de @
/home/brian/code/foreign/org-mode/lisp/)
GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of
2012-08-24 on trouble, modified by Debian

I don't rule out that I have misunderstood something, but the observed
behaviour doesn't match (how I understand) the documented behaviour.

Thanks and best,

Brian vdB

             reply	other threads:[~2013-02-10 18:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-10 18:53 Brian van den Broek [this message]
2013-02-10 21:21 ` internal links not being followed; instead, offer to create new heading John Hendy
2013-02-10 22:28   ` Brian van den Broek
2013-02-10 22:38     ` John Hendy

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='CAF6DajJQ-57_AT-hyC4J8nZCEb+mB0fN-4Ob=LC=TUyhCdTFpg@mail.gmail.com' \
    --to=brian.van.den.broek@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).