Re: [O] bbdb or bbdb3 or org-contacts
On Mon, Jan 28, 2013 at 1:52 PM, David Rogers davidandrewrog...@gmail.comwrote: Also look at ASynK, which can synchronize between Google and bbdb3: https://karra-asynk.appspot.com/ ASynK also works with BBDB v2 with a small-ish patch that adds timestamp support. As no one is really maintaining BBDB2.x any more this is not integrated 'upstream'. See here for more info on the patch: http://karra-asynk.appspot.com/doc/asynk/asynk_2.html#SEC8
Re: [O] bbdb or bbdb3 or org-contacts
Hi Greg, Daimrod daim...@gmail.com writes: I think I haven't been clear, I would like to have write access to the upstream repository to merge my changes Great -- please send me your public key. but I will also keep my github version as a bleeding edge version to make it easier to test and propose changes without pushing into the upstream repository. Sure, as you wish! Thanks, -- Bastien
Re: [O] bbdb or bbdb3 or org-contacts
Hi Grégoire, Daimrod daim...@gmail.com writes: See the attached patch files. I still need to need to take into account what could be after the cursor I've applied the patch against org-contacts.el, thanks for it. Do you want write access to the repo for maintaining org-contacts.el? Moreover, `org-contacts.el' doesn't use the new parser from `org-element.el' ATM, and using it might improve the performance too. Indeed! -- Bastien
Re: [O] bbdb or bbdb3 or org-contacts
Bastien b...@altern.org writes: Hi Grégoire, Daimrod daim...@gmail.com writes: See the attached patch files. I still need to need to take into account what could be after the cursor I've applied the patch against org-contacts.el, thanks for it. Do you want write access to the repo for maintaining org-contacts.el? Moreover, `org-contacts.el' doesn't use the new parser from `org-element.el' ATM, and using it might improve the performance too. Indeed! I've been using Daimrods patch for a while, and it makes org-contacts entirely usable even for my 80kb contacts file. I'm looking forward to further improvements! -- Joakim Verona
Re: [O] bbdb or bbdb3 or org-contacts
Bastien b...@altern.org writes: Hi Grégoire, Daimrod daim...@gmail.com writes: See the attached patch files. I still need to need to take into account what could be after the cursor I've applied the patch against org-contacts.el, thanks for it. Thank you. Do you want write access to the repo for maintaining org-contacts.el? I would love to. I've made some changes to `org-contacts.el' and Joakim has been very kind to test them, but there is still a lot of room for improvements (and bugs). However, I think I'll keep my public repository on github to test new features and merge them into upstream when I think they're ready. And if people can test them before that, it's even better. Moreover, `org-contacts.el' doesn't use the new parser from `org-element.el' ATM, and using it might improve the performance too. Indeed! -- Daimrod/Greg pgpWOIookBxzg.pgp Description: PGP signature
Re: [O] bbdb or bbdb3 or org-contacts
Hi Greg, Daimrod daim...@gmail.com writes: However, I think I'll keep my public repository on github to test new features and merge them into upstream when I think they're ready. And if people can test them before that, it's even better. no problem, don't hesitate to share the patches. Thanks! -- Bastien
Re: [O] bbdb or bbdb3 or org-contacts
Bastien b...@altern.org writes: Hi Greg, Daimrod daim...@gmail.com writes: However, I think I'll keep my public repository on github to test new features and merge them into upstream when I think they're ready. And if people can test them before that, it's even better. no problem, don't hesitate to share the patches. Thanks! I think I haven't been clear, I would like to have write access to the upstream repository to merge my changes, but I will also keep my github version as a bleeding edge version to make it easier to test and propose changes without pushing into the upstream repository. -- Daimrod/Greg pgpR2VqFi3Djt.pgp Description: PGP signature
Re: [O] bbdb or bbdb3 or org-contacts
Daimrod daim...@gmail.com writes: I would love to. I've made some changes to `org-contacts.el' and Joakim has been very kind to test them, but there is still a lot of room for improvements (and bugs). Thank you for taking care about org-contacts which makes me inspired to try using it for my Emacs-based contact manager. I don't like idea to keep contacts @Google and bbdb3 might not be as flexible as org-contacts. Sincerely, Gour -- It is far better to discharge one's prescribed duties, even though faultily, than another's duties perfectly. Destruction in the course of performing one's own duty is better than engaging in another's duties, for to follow another's path is dangerous. pgpd986lFQ7b1.pgp Description: PGP signature
Re: [O] bbdb or bbdb3 or org-contacts
Thank you very much for all the input. So in summary it is on the safe side to use bbdb for a transition period because neither the maintainability of bbdb3 nor org-contacts seem to be ensured. Dieter PS: I hope future developments will bring forth a stable database solution maintained within Emacs proper. Daimrod daim...@gmail.com writes: joa...@verona.se writes: Daimrod daim...@gmail.com writes: Bastien b...@altern.org writes: Hi Dieter, Dieter Wilhelm die...@duenenhof-wilhelm.de writes: What do you advise, what is already usable and what is the way ahead, still bbdb or bbdb3 or already org-contacts? BBDB is great. org-contacts.el is too slow when you have many contacts, and it is not really maintained anymore. I've started to use org-contacts.el. I haven't (yet) problem with its speed but I've improved the completion mecanism which prevented me to use it. When I'll finish to document/comment it, I'll post it here. I would be very interested in having a look. See the attached patch files. I still need to need to take into account what could be after the cursor vv ATM I only use this From: John [cursor]D ^^ But I would like to use this But it mostly works. I migrated from bbdb to org-contacts, but it turned out to be too slow, so now I mostly isearch for the contact I want. Recently I've bee thinking of trying a strategy where bbdb could act as a cache for org-contacts, but I havent tried it yet. It shouldnt be too hard I think. org-contacts can generate a list of all contacts, that you then iterate and generate the bbdb database from. It might be a useful addition in any case. I was thinking to add a cache mecanism directly to `org-contacts.el'. It would load the content of the contacts files the first time into the appropriate structure and then reread the files only when they changed. Moreover, `org-contacts.el' doesn't use the new parser from `org-element.el' ATM, and using it might improve the performance too. PS: Sorry for the double patch files but the `org-reverse-string' part hasn't been merged yet and I use it. -- Best wishes H. Dieter Wilhelm Darmstadt Germany
Re: [O] bbdb or bbdb3 or org-contacts
Dieter Wilhelm die...@duenenhof-wilhelm.de writes: So in summary it is on the safe side to use bbdb for a transition period Yes. because neither the maintainability of bbdb3 nor org-contacts seem to be ensured. Why do you think that maintainability of bbdb3 is not safe? To me looks that bbdb3 is in good swing at the moment. PS: I hope future developments will bring forth a stable database solution maintained within Emacs proper. That would be great, but maybe bbdb3 might fill it. Sincerely, Gour -- Even if you are considered to be the most sinful of all sinners, when you are situated in the boat of transcendental knowledge you will be able to cross over the ocean of miseries.
Re: [O] bbdb or bbdb3 or org-contacts
Daimrod daim...@gmail.com writes: Bastien b...@altern.org writes: Hi Dieter, Dieter Wilhelm die...@duenenhof-wilhelm.de writes: What do you advise, what is already usable and what is the way ahead, still bbdb or bbdb3 or already org-contacts? BBDB is great. org-contacts.el is too slow when you have many contacts, and it is not really maintained anymore. I've started to use org-contacts.el. I haven't (yet) problem with its speed but I've improved the completion mecanism which prevented me to use it. When I'll finish to document/comment it, I'll post it here. I would be very interested in having a look. I migrated from bbdb to org-contacts, but it turned out to be too slow, so now I mostly isearch for the contact I want. Recently I've bee thinking of trying a strategy where bbdb could act as a cache for org-contacts, but I havent tried it yet. It shouldnt be too hard I think. org-contacts can generate a list of all contacts, that you then iterate and generate the bbdb database from. It might be a useful addition in any case. Best, -- Joakim Verona
Re: [O] bbdb or bbdb3 or org-contacts
joa...@verona.se writes: Daimrod daim...@gmail.com writes: Bastien b...@altern.org writes: Hi Dieter, Dieter Wilhelm die...@duenenhof-wilhelm.de writes: What do you advise, what is already usable and what is the way ahead, still bbdb or bbdb3 or already org-contacts? BBDB is great. org-contacts.el is too slow when you have many contacts, and it is not really maintained anymore. I've started to use org-contacts.el. I haven't (yet) problem with its speed but I've improved the completion mecanism which prevented me to use it. When I'll finish to document/comment it, I'll post it here. I would be very interested in having a look. See the attached patch files. I still need to need to take into account what could be after the cursor vv ATM I only use this From: John [cursor]D ^^ But I would like to use this But it mostly works. I migrated from bbdb to org-contacts, but it turned out to be too slow, so now I mostly isearch for the contact I want. Recently I've bee thinking of trying a strategy where bbdb could act as a cache for org-contacts, but I havent tried it yet. It shouldnt be too hard I think. org-contacts can generate a list of all contacts, that you then iterate and generate the bbdb database from. It might be a useful addition in any case. I was thinking to add a cache mecanism directly to `org-contacts.el'. It would load the content of the contacts files the first time into the appropriate structure and then reread the files only when they changed. Moreover, `org-contacts.el' doesn't use the new parser from `org-element.el' ATM, and using it might improve the performance too. PS: Sorry for the double patch files but the `org-reverse-string' part hasn't been merged yet and I use it. From d075570c544d89d27eb7eb53fcc46dbb627aa480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= gregoire.j...@gmail.com Date: Sat, 26 Jan 2013 22:27:51 +0100 Subject: [PATCH 1/2] Unify `org-id-reverse-string' and `org-babel-reverse-string' into `org-reverse-string' * lisp/org.el (org-reverse-string): Add `org-reverse-string' to reverse a string. * lisp/org-id.el(org-id-new, org-id-decode): Replace `org-id-reverse-string' by `org-reverse-string'. * lisp/ob-core.el(org-babel-trim): Replace `org-babel-reverse-string' by `org-reverse-string' and declare it. TINYCHANGE --- lisp/ob-core.el |9 +++-- lisp/org-id.el |7 ++- lisp/org.el |4 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index bdf8c54..27f665a 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -91,6 +91,7 @@ (declare-function org-escape-code-in-region org-src (beg end)) (declare-function org-unescape-code-in-string org-src (s)) (declare-function org-table-to-lisp org-table (optional txt)) +(declare-function org-reverse-string org (string)) (defgroup org-babel nil Code block evaluation and management in `org-mode' documents. @@ -2512,10 +2513,6 @@ If the table is trivial, then return it as a scalar. (match-string 1 cell)) cell) t)) -(defun org-babel-reverse-string (string) - Return the reverse of STRING. - (apply 'string (reverse (string-to-list string - (defun org-babel-chomp (string optional regexp) Strip trailing spaces and carriage returns from STRING. Default regexp used is \[ \f\t\n\r\v]\ but can be @@ -2530,8 +2527,8 @@ overwritten by specifying a regexp as a second argument. Strip leading and trailing spaces and carriage returns from STRING. Like `org-babel-chomp' only it runs on both the front and back of the string. - (org-babel-chomp (org-babel-reverse-string -(org-babel-chomp (org-babel-reverse-string string) regexp)) + (org-babel-chomp (org-reverse-string +(org-babel-chomp (org-reverse-string string) regexp)) regexp)) (defvar org-babel-org-babel-call-process-region-original nil) diff --git a/lisp/org-id.el b/lisp/org-id.el index 39ca170..a68adcf 100644 --- a/lisp/org-id.el +++ b/lisp/org-id.el @@ -343,7 +343,7 @@ So a typical ID could look like \Org:4nd91V40HI\. (unless (org-uuidgen-p unique) (setq unique (org-id-uuid ((eq org-id-method 'org) - (let* ((etime (org-id-reverse-string (org-id-time-to-b36))) + (let* ((etime (org-reverse-string (org-id-time-to-b36))) (postfix (if org-id-include-domain (progn (require 'message) @@ -376,9 +376,6 @@ So a typical ID could look like \Org:4nd91V40HI\. (substring rnd 18 20) (substring rnd 20 32 -(defun org-id-reverse-string (s) - (mapconcat 'char-to-string (nreverse (string-to-list s)) )) - (defun org-id-int-to-b36-one-digit (i) Turn an integer between 0 and 61 into a single character 0..9, A..Z, a..z. (cond @@ -432,7 +429,7 @@ and time is the usual three-integer representation of time. (if (= 2 (length parts)) (setq prefix
Re: [O] bbdb or bbdb3 or org-contacts
Hi Dieter, Dieter Wilhelm die...@duenenhof-wilhelm.de writes: What do you advise, what is already usable and what is the way ahead, still bbdb or bbdb3 or already org-contacts? BBDB is great. org-contacts.el is too slow when you have many contacts, and it is not really maintained anymore. Best, -- Bastien
Re: [O] bbdb or bbdb3 or org-contacts
Bastien b...@altern.org writes: Hi Dieter, Dieter Wilhelm die...@duenenhof-wilhelm.de writes: What do you advise, what is already usable and what is the way ahead, still bbdb or bbdb3 or already org-contacts? BBDB is great. org-contacts.el is too slow when you have many contacts, and it is not really maintained anymore. I've started to use org-contacts.el. I haven't (yet) problem with its speed but I've improved the completion mecanism which prevented me to use it. When I'll finish to document/comment it, I'll post it here. Best, -- Daimrod/Greg pgps9yHOag0AE.pgp Description: PGP signature
Re: [O] bbdb or bbdb3 or org-contacts
Hi Greg, Daimrod daim...@gmail.com writes: BBDB is great. org-contacts.el is too slow when you have many contacts, and it is not really maintained anymore. I've started to use org-contacts.el. I haven't (yet) problem with its speed but I've improved the completion mecanism which prevented me to use it. When I'll finish to document/comment it, I'll post it here. Great, thanks in advance! I hereby solemnly declare thou shall be org-contacts.el new maintainer. -- Bastien
Re: [O] bbdb or bbdb3 or org-contacts
Bastien b...@altern.org writes: BBDB is great. org-contacts.el is too slow when you have many contacts, and it is not really maintained anymore. Do you find its flexible-enough in comparison with org-contacts when one wants to add some custom structure? Otoh, I'm also worried about org-contact's future maintainability... Sincerely, Gour pgpyDvYUW41Tj.pgp Description: PGP signature
Re: [O] bbdb or bbdb3 or org-contacts
Hi Gour, Gour g...@atmarama.net writes: Bastien b...@altern.org writes: BBDB is great. org-contacts.el is too slow when you have many contacts, and it is not really maintained anymore. Do you find its flexible-enough in comparison with org-contacts when one wants to add some custom structure? I used org-contacts.el for a few hours only, so I cannot compare. But BBDB is flexible enough for my needs, which are rudimentary. -- Bastien
Re: [O] bbdb or bbdb3 or org-contacts
Dieter Wilhelm die...@duenenhof-wilhelm.de writes: Hi list, I just took up again the Gnus newsreader! Formerly I used it in conjunction with bbdb. It would be nice if I had the possibility to (re)use my contacts from gmail. What do you advise, what is already usable and what is the way ahead, still bbdb or bbdb3 or already org-contacts? Hi Dieter One possibility is google-contacts, which allows you to access Google contacts from Gnus, written by the same person as org-contacts, and found here: http://julien.danjou.info/projects/emacs-packages#google-contacts Also look at ASynK, which can synchronize between Google and bbdb3: https://karra-asynk.appspot.com/ -- David R
[O] bbdb or bbdb3 or org-contacts
Hi list, I just took up again the Gnus newsreader! Formerly I used it in conjunction with bbdb. It would be nice if I had the possibility to (re)use my contacts from gmail. What do you advise, what is already usable and what is the way ahead, still bbdb or bbdb3 or already org-contacts? Thanks a lot Dieter -- Best wishes H. Dieter Wilhelm Darmstadt Germany