emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org id update locations search sequence (was Re: bug report org mode)
@ 2020-01-26 20:55 Samuel Wales
  2020-01-27  8:27 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Wales @ 2020-01-26 20:55 UTC (permalink / raw)
  To: Bastien; +Cc: Siegmar Maier, emacs-orgmode@gnu.org

i have been wondering about the search sequence for this
function.

id updating is capable of being quite slow, which can be distracting
when you follow a link and emacs hangs for a while, so i was thinking
maybe this could be optimized.

idk about data structures and searching, but i think the sequence can
be, in principle, much faster.


in recent master:

			    (org-agenda-files t org-id-search-archives)
			    ;; Explicit extra files
			    (unless (symbolp org-id-extra-files)
			      org-id-extra-files)

what this does is search agenda files together with their archives,
then whatever you set for org id extra files.

thus in master the sequence looks like todo.org todo.org_archive
next.org next.org_archive user-explicitly-set-var-contents.org.


(more detail: org id extra files by default indirects on text search
extra files, which by default is nil.  the user needs to remember to
include text search files in org id extra files if adding anything to
it, as setting it will blow away the default indirection.)


for users who do not set text search extra files or org id files, the
new idea is all agenda before all archive.

for users who do, the new idea is, in addition to the above, stick
whatever the user explicitly sets before all archives.

thus the new sequence is all agenda files, then all org-id-files
(because they are explicitly set by user), then all archive files.

in my case, i set text search agenda files instead of making them
agenda files in order to speed up the ts agenda.*  i would prefer that
they be agenda files, otherwise.

so they are high priority, and following a link should, in my case,
get to them /before/ going through my huge archive files.


if anybody likes and implements this idea, then another good thing is
that it won't load your emacs with archive files as frequently.


so, a wishlist item.


* "timestamp agenda" or "ts agenda" is just my term for daily/weekly agenda.


On 1/26/20, Bastien <bzg@gnu.org> wrote:
> Hi Siegmar,
>
> Siegmar Maier <sierma@hotmail.de> writes:
>
>> According to my examination the problem is with
>> org-id-update-id-locations. Removeing that column makes it work
>> again.
>> If I put that line behind it works also again
>
> Yes, `org-todo-keyword-faces' will be taken into account when set
> before any actual fontification of an Org buffer.
>
> If `org-id-update-id-locations' visits an Org buffer before
> `org-todo-keyword-faces' is set, then this last variable will be
> ignore in the visited buffer.
>
> I hope this helps,
>
> --
>  Bastien
>
>


-- 
The Kafka Pandemic

What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.

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

* Re: org id update locations search sequence (was Re: bug report org mode)
  2020-01-26 20:55 org id update locations search sequence (was Re: bug report org mode) Samuel Wales
@ 2020-01-27  8:27 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2020-01-27  8:27 UTC (permalink / raw)
  To: Samuel Wales; +Cc: Siegmar Maier, emacs-orgmode@gnu.org

Hi Samuel,

I have difficulties understanding the proposal.

Can you restate it as a MEC (Minimal Enhancing Change)?

Thanks,

-- 
 Bastien

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

end of thread, other threads:[~2020-01-27  9:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-26 20:55 org id update locations search sequence (was Re: bug report org mode) Samuel Wales
2020-01-27  8:27 ` Bastien

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