From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Internal Links with Spaces Date: Mon, 09 Mar 2015 19:28:41 -0400 Message-ID: References: <1825534239.18268273.1425911896744.JavaMail.zimbra@redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV76P-000352-G4 for emacs-orgmode@gnu.org; Mon, 09 Mar 2015 19:28:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YV76K-0002Tt-Iw for emacs-orgmode@gnu.org; Mon, 09 Mar 2015 19:28:49 -0400 Received: from mail-qg0-x236.google.com ([2607:f8b0:400d:c04::236]:39564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV76K-0002Tn-Dk for emacs-orgmode@gnu.org; Mon, 09 Mar 2015 19:28:44 -0400 Received: by qgdq107 with SMTP id q107so32655287qgd.6 for ; Mon, 09 Mar 2015 16:28:44 -0700 (PDT) In-reply-to: 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: Jacob Gerlach Cc: Leo Ufimtsev , Org-mode I think you need to set (setq org-id-link-to-org-use-id 'create-if-interactive) Then the usual C-c l and C-c C-l should work to store links and insert them. It might be worth noting though, that in my experience, this is most useful for links within a file, or to files in your agenda list. org does not have a good way to find an id in a non-agenda file if that file is not already open. Although there should be a .org-id-locations file somewhere that stores this mapping of id to file. I have not experienced 100% success with this. Also, you have to be a little cautious about copying a headline to another place, because then you have two ids in different places. anyway, the point is try it out and see if it works for you ;) Jacob Gerlach writes: > On Mon, Mar 9, 2015 at 10:38 AM, Leo Ufimtsev wrote: >> On the side, if of any help: >> >> I generally use ID's for linking to headings. >> The benefit is that headings can be re-named safley and links still work. > > A great suggestion. I wasn't aware of the feature, and renaming safety > is a great benefit while also solving my space problem. > > I don't suppose there's a trick to automatically update descriptions > for links whose target has been renamed? > > When exploring this, I found the function org-id-store-link. This > seemed like what I wanted - it creates a custom ID if one doesn't > exist, but it doesn't actually store a link (or at least, it wasn't > available when I then ran org-insert-link). The docstring is pretty > light, but it seems like this might be a bug. Is this the expected > behavior? > > Thanks for the pointer in any case. > > Regards, > Jake -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu