emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Detlef Steuer <detlef.steuer@gmx.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-caldav: Syncing Error: Could not find UID...
Date: Tue, 10 Dec 2013 12:55:51 +0000	[thread overview]
Message-ID: <878uvs6f1k.fsf@ucl.ac.uk> (raw)
In-Reply-To: <20131210110123.3a570d6f@gaia.unibw-hamburg.de> (Detlef Steuer's message of "Tue, 10 Dec 2013 11:01:23 +0100")

Detlef Steuer <detlef.steuer@gmx.de> writes:

> Hi!
>
> I spent most of yesterday afternoon on toying with org-caldav.

[...]

> The third (large) file gives a lot of problems.
>
> 1. I had the same error message as Daniel. I remember my critical UID
>    beginning with TS10...., too. Strange. 

Detlef & Daniel,

I remember having to make a change to org-caldav.el to cater for digits
after the two capital letters, as in "TS9-...".  That change was:

--8<---------------cut here---------------start------------->8---
diff --git a/org-caldav.el b/org-caldav.el
index 0383366..cd5b273 100644
--- a/org-caldav.el
+++ b/org-caldav.el
@@ -786,7 +786,7 @@ is no UID to rewrite. Returns the UID."
      ((re-search-forward "^UID:\\(orgsexp-[0-9]+\\)" nil t)
       ;; This is a sexp entry, so do nothing.
       (match-string 1))
-     ((re-search-forward "^UID:\\(\\s-*\\)\\([A-Z][A-Z]-\\)?\\(.+\\)\\s-*$"
+     ((re-search-forward "^UID:\\(\\s-*\\)\\([A-Z][A-Z][0-9]-\\)?\\(.+\\)\\s-*$"
                         nil t)
       (when (match-string 1)
        (replace-match "" nil nil nil 1))
--8<---------------cut here---------------end--------------->8---

I believe this change was incorporated into org-caldav.el but I am
currently on a system which has not been updated in a while.  In any
case, I wonder if the change could be:

+     ((re-search-forward "^UID:\\(\\s-*\\)\\([A-Z][A-Z][0-9]*-\\)?\\(.+\\)\\s-*$"

instead, adding a "*" to the digit match to cater for any number of
digits after the two capital letters?

HTH,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.4-322-gece429

      reply	other threads:[~2013-12-10 12:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-06 12:13 org-caldav: Syncing Error: Could not find UID Daniel Thom
2013-12-10 10:01 ` Detlef Steuer
2013-12-10 12:55   ` Eric S Fraga [this message]

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=878uvs6f1k.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=detlef.steuer@gmx.de \
    --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).