emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-id-locations
@ 2009-11-27 22:16 Bernt Hansen
  2009-11-27 23:01 ` org-id-locations Carsten Dominik
  2009-11-27 23:02 ` org-id-locations Carsten Dominik
  0 siblings, 2 replies; 4+ messages in thread
From: Bernt Hansen @ 2009-11-27 22:16 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Hi Carsten,

I've recently started using org-ids to find tasks in my org files and
org-mode is storing the ids and associated files in
~/.emacs.d/.org-id-locations.

Now I've modified or linked to locations on my laptop and on my
workstation and these files differ (both are modified differently) so I
need to do something magical to bring everything back in sync.

Manually merging the contents will be a bit of a pain since the order of
the entries are mixed up now.

Do bad things happen if I just delete or ignore syncing these files
between the laptop and workstation?

What's the right way to handle this?

Thanks,
Bernt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-id-locations
  2009-11-27 22:16 org-id-locations Bernt Hansen
@ 2009-11-27 23:01 ` Carsten Dominik
  2009-11-27 23:02   ` org-id-locations Bernt Hansen
  2009-11-27 23:02 ` org-id-locations Carsten Dominik
  1 sibling, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2009-11-27 23:01 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Carsten Dominik, emacs-orgmode

Hi Bernt,

M-x org-id-update-id-locations RET

should do the trick.  This only thin that can go wrong that it will  
miss a file.

It scans:

- agenda files and archives
- the files in org-id-extra-files
- all the files that are currently in the id list
- any live buffers visiting an org-mode file

So in case of doubt, load in all org-files and run the command.

This command will also run automatically if an id cannot be found -  
assuming that something has been moved behind org's back - which is  
just your case.

HTH

- Carsten

On Nov 27, 2009, at 11:16 PM, Bernt Hansen wrote:

> Hi Carsten,
>
> I've recently started using org-ids to find tasks in my org files and
> org-mode is storing the ids and associated files in
> ~/.emacs.d/.org-id-locations.
>
> Now I've modified or linked to locations on my laptop and on my
> workstation and these files differ (both are modified differently)  
> so I
> need to do something magical to bring everything back in sync.
>
> Manually merging the contents will be a bit of a pain since the  
> order of
> the entries are mixed up now.
>
> Do bad things happen if I just delete or ignore syncing these files
> between the laptop and workstation?
>
> What's the right way to handle this?
>
> Thanks,
> Bernt

- Carsten

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-id-locations
  2009-11-27 22:16 org-id-locations Bernt Hansen
  2009-11-27 23:01 ` org-id-locations Carsten Dominik
@ 2009-11-27 23:02 ` Carsten Dominik
  1 sibling, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2009-11-27 23:02 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Carsten Dominik, emacs-orgmode


On Nov 27, 2009, at 11:16 PM, Bernt Hansen wrote:

> Hi Carsten,
>
> I've recently started using org-ids to find tasks in my org files and
> org-mode is storing the ids and associated files in
> ~/.emacs.d/.org-id-locations.
>
> Now I've modified or linked to locations on my laptop and on my
> workstation and these files differ (both are modified differently)  
> so I
> need to do something magical to bring everything back in sync.
>
> Manually merging the contents will be a bit of a pain since the  
> order of
> the entries are mixed up now.
>
> Do bad things happen if I just delete or ignore syncing these files
> between the laptop and workstation?

Yes, do not sync them, this will be best.

- Carsten

>
> What's the right way to handle this?
>
> Thanks,
> Bernt

- Carsten

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-id-locations
  2009-11-27 23:01 ` org-id-locations Carsten Dominik
@ 2009-11-27 23:02   ` Bernt Hansen
  0 siblings, 0 replies; 4+ messages in thread
From: Bernt Hansen @ 2009-11-27 23:02 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Carsten Dominik, emacs-orgmode

Ah Thanks!

-Bernt


Carsten Dominik <carsten.dominik@gmail.com> writes:

> Hi Bernt,
>
> M-x org-id-update-id-locations RET
>
> should do the trick.  This only thin that can go wrong that it will
> miss a file.
>
> It scans:
>
> - agenda files and archives
> - the files in org-id-extra-files
> - all the files that are currently in the id list
> - any live buffers visiting an org-mode file
>
> So in case of doubt, load in all org-files and run the command.
>
> This command will also run automatically if an id cannot be found -  
> assuming that something has been moved behind org's back - which is
> just your case.
>
> HTH
>
> - Carsten
>
> On Nov 27, 2009, at 11:16 PM, Bernt Hansen wrote:
>
>> Hi Carsten,
>>
>> I've recently started using org-ids to find tasks in my org files and
>> org-mode is storing the ids and associated files in
>> ~/.emacs.d/.org-id-locations.
>>
>> Now I've modified or linked to locations on my laptop and on my
>> workstation and these files differ (both are modified differently)
>> so I
>> need to do something magical to bring everything back in sync.
>>
>> Manually merging the contents will be a bit of a pain since the
>> order of
>> the entries are mixed up now.
>>
>> Do bad things happen if I just delete or ignore syncing these files
>> between the laptop and workstation?
>>
>> What's the right way to handle this?
>>
>> Thanks,
>> Bernt
>
> - Carsten
>
>
>
>

-- 
Bernt

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-27 23:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-27 22:16 org-id-locations Bernt Hansen
2009-11-27 23:01 ` org-id-locations Carsten Dominik
2009-11-27 23:02   ` org-id-locations Bernt Hansen
2009-11-27 23:02 ` org-id-locations Carsten Dominik

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).