* Re: org-store-link and org-link-to-org-use-id issue
@ 2012-12-14 20:06 John Hendy
2012-12-15 8:21 ` Bastien
0 siblings, 1 reply; 5+ messages in thread
From: John Hendy @ 2012-12-14 20:06 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]
This is a continuation from here:
http://comments.gmane.org/gmane.emacs.orgmode/61552
I thought this was fixed, but something's not functioning correctly. My
main .emacs calls an org file with babel blocks housing my various
configurations. Below are relevant sections:
#+begin_src .emacs
;; set load paths
;; set load dirs and global config options
(add-to-list 'load-path "~/.elisp/site-lisp/")
(add-to-list 'load-path "~/.elisp/org.git/contrib/lisp/")
(add-to-list 'load-path "~/.elisp/org.git/lisp/")
(add-to-list 'load-path "~/.elisp/site-lisp/ess/lisp/")
;; setup babel languages
(org-babel-do-load-languages
'org-babel-load-languages
'((latex . t)
(emacs-lisp . t)
(org . t)
(R . t)
(sh . t)
(python .t )))
;; load org-based config
(org-babel-load-file "~/org/aux/emacs-config.org")
#+end_src
#+begin_src ~/org/aux/emacs-config.org
Load orgmode modules:
#+begin_src emacs-lisp
(require 'org-id)
;; use unique ids for links
(setq org-link-to-org-use-id "create-if-interactive")
#+end_src
Any reason this shouldn't create a unique ID when I do =C-c l= on a
headline? I thought it was working as you can see from the followup to the
thread above. Now, with the same settings, it's not working again.
Thanks for any suggestions,
John
[-- Attachment #2: Type: text/html, Size: 2022 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-store-link and org-link-to-org-use-id issue
2012-12-14 20:06 org-store-link and org-link-to-org-use-id issue John Hendy
@ 2012-12-15 8:21 ` Bastien
2012-12-20 17:21 ` John Hendy
0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2012-12-15 8:21 UTC (permalink / raw)
To: John Hendy; +Cc: emacs-orgmode
Hi John,
John Hendy <jw.hendy@gmail.com> writes:
> (setq org-link-to-org-use-id "create-if-interactive")
This should be
(setq org-link-to-org-use-id 'create-if-interactive)
If you copied this from a page, please let the author know!
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-store-link and org-link-to-org-use-id issue
2012-12-15 8:21 ` Bastien
@ 2012-12-20 17:21 ` John Hendy
0 siblings, 0 replies; 5+ messages in thread
From: John Hendy @ 2012-12-20 17:21 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 710 bytes --]
On Sat, Dec 15, 2012 at 2:21 AM, Bastien <bzg@altern.org> wrote:
> Hi John,
>
> John Hendy <jw.hendy@gmail.com> writes:
>
> > (setq org-link-to-org-use-id "create-if-interactive")
>
> This should be
>
> (setq org-link-to-org-use-id 'create-if-interactive)
>
>
Grrr. I bet I know what happened -- I used =M-x customize-variable= to try
the setting, it worked, and then I added it to .emacs since I don't like
the jumbled customizations at the end of my config. Being an elisp newb, I
entered the value as a string instead of with the single tick as you posted.
Thanks for the response to my user error!
John
> If you copied this from a page, please let the author know!
>
> Thanks,
>
> --
> Bastien
>
[-- Attachment #2: Type: text/html, Size: 1355 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* org-store-link and org-link-to-org-use-id issue
@ 2012-10-12 20:34 John Hendy
2012-10-12 21:21 ` John Hendy
0 siblings, 1 reply; 5+ messages in thread
From: John Hendy @ 2012-10-12 20:34 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I have the following in .emacs:
(setq org-link-to-org-use-id "create-if-interactive")
When I navigate to a headline and do =C-c l=, a unique ID is not
created for that headline. Am I misunderstanding the
'create-if-interactive' setting for this variable? It reads as though
if I call =org-store-link= manually, a unique ID will be created. I've
tried both =C-c l= and =M-x org-store-link=. Neither produces the ID.
As a side note, is there completion for links? This would be even
better for me than using =C-c l=. I'd like to just do =C-c l file: RET
~/org/filename.org/ TAB for headline names... etc.=
Something similar to interactive refiling would be fantastic for
links. Does this exist?
Thanks,
John
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-store-link and org-link-to-org-use-id issue
2012-10-12 20:34 John Hendy
@ 2012-10-12 21:21 ` John Hendy
0 siblings, 0 replies; 5+ messages in thread
From: John Hendy @ 2012-10-12 21:21 UTC (permalink / raw)
To: emacs-orgmode
Disregard... missed the bit about having org-id in loaded modules for
all of this to work. Everything's now fine.
Sorry for the noise,
John
On Fri, Oct 12, 2012 at 3:34 PM, John Hendy <jw.hendy@gmail.com> wrote:
> Hi,
>
>
> I have the following in .emacs:
>
> (setq org-link-to-org-use-id "create-if-interactive")
>
> When I navigate to a headline and do =C-c l=, a unique ID is not
> created for that headline. Am I misunderstanding the
> 'create-if-interactive' setting for this variable? It reads as though
> if I call =org-store-link= manually, a unique ID will be created. I've
> tried both =C-c l= and =M-x org-store-link=. Neither produces the ID.
>
> As a side note, is there completion for links? This would be even
> better for me than using =C-c l=. I'd like to just do =C-c l file: RET
> ~/org/filename.org/ TAB for headline names... etc.=
>
> Something similar to interactive refiling would be fantastic for
> links. Does this exist?
>
>
> Thanks,
> John
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-12-20 17:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-14 20:06 org-store-link and org-link-to-org-use-id issue John Hendy
2012-12-15 8:21 ` Bastien
2012-12-20 17:21 ` John Hendy
-- strict thread matches above, loose matches on Subject: below --
2012-10-12 20:34 John Hendy
2012-10-12 21:21 ` John Hendy
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).