Re: [BBDB] ChangeLog 2016-10-02: Use lexical binding

2016-10-22 Thread Stefan Monnier
>> The first solution binds the  variables lexically rather than
>> dynamically.  That means that if those  appear lexically inside
>> the  things will work correctly, but if  calls a function
>> which then refers to  this reference will fail.
> Thank you for the clarification.  The code in bbdb-anniv binds the
> variables lexcially via let which also contains the call of eval.
> So this is fine.

Not sure I understand.  You seem to describe something like

(let ((x1 v1)) ... (eval exp) ...)

in which case the evaluation of `exp' will not have access to `x1'.
What I suggested was

(eval exp `((x1 . ,v1)))

in which case the value of `exp' can contain references to `x1'.
But it's still different from a dynamic-binding of `x1', because

(let ((exp '(+ x1 4)))
  (eval exp `((x1 . 5

will correctly return 9, but

(defun my-f (y) (+ x1 y))
(let ((exp '(my-f 4)))
  (eval exp `((x1 . 5

will signal en error because `x1' is not visible to `my-f' (it's only
visible lexically within `exp').

In many cases, this is perfectly acceptable, in which case it's the
solution I recommend.


Stefan


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: ASynK vs org-vcard

2016-10-22 Thread Sriram Karra
On Sat, Oct 22, 2016 at 8:31 PM, Saša Janiška  wrote:

>
> > I am happy to look into and debug any issues you may find.
>
> May I know which server do you use for syncing?


ASynK has been known to work with the following CardDAV servers: Apple
CalendarServer, Baikal, OwnCloud, and Fastmail's contacts server. I do not
use CardDAV for my own contacts so I rely on user feedback to know if
things are working or broken.
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

more than one BBDB file

2016-10-22 Thread Saša Janiška
Hello,

recently I did asked author of vdir.el to provide support for using more
than one repo vdir repo for the contacts since I manage email accounts
for my & my wife on the desktop while she is mostly using mobile phone.

So, I’m interested if there is possibility to have more than one BBDB
file - e.g. one for my contacts and another for my wife and being able
to switch between the two before invoking BBDB?

Here (https://github.com/DamienCassou/vdirel/issues/2) is the
explanation how it is solved and usage in vdirel.


Sincerely,
Gour

-- 
Just try to learn the truth by approaching a spiritual master.
Inquire from him submissively and render service unto him.
The self-realized souls can impart knowledge unto you because
they have seen the truth.


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Re: ASynK vs org-vcard

2016-10-22 Thread Saša Janiška
Sriram Karra  writes:

> There are no open issues that I know of
> related to losing contacts with CardDAV / Baikal.

Good.

> Can you give it a shot?

I’ll do, for sure, since using ASynK would eliminate the need to
constantly import *.vcard into BBDB. ;)

> I am happy to look into and debug any issues you may find.

May I know which server do you use for syncing?

Sincerely,
Gour

-- 
As a lamp in a windless place does not waver, so the transcendentalist,
whose mind is controlled, remains always steady in his meditation on the
transcendent self.


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Re: ASynK vs org-vcard

2016-10-22 Thread Sriram Karra
[ + The List this time ]

I am the author of ASynK. There are no open issues that I know of related
to losing contacts with CardDAV / Baikal. Can you give it a shot? I am
happy to look into and debug any issues you may find.

On Mon, Oct 17, 2016 at 3:07 AM, Saša Janiška  wrote:

> Hello,
>
> I do sync my (Android) phone contacts (and calendars) by using DAVDroid
> application which talks to Baikal server.
>
> On my Linux desktop side I use khard for editing contacts which are then
> synced with the Baikal server via vdirsyncer.
>
> In order to sync my BBDB contacts with khard, atm I use bbdb-vcard
> (https://github.com/tohojo/bbdb-vcard) which can import/export them.
>
> There is also ASynK (https://github.com/skarra/ASynK) package which
> could eliminate the need for bbdb-vcard and could automatically sync my
> BBDB contacts with the Baikal server, but would like to hear some
> experiences in using it and/or whether it does work with Baikal server
> (I’ve recently switched to it from ownCloud for simplicity reasons)?
>
> Moreover, by looking at the mailing list I see that there were cases
> when people lost their contacts with it…
>
>
> Sincerely,
> Gour
>
> --
> He who is satisfied with gain which comes of its own accord, who
> is free from duality and does not envy, who is steady in both
> success and failure, is never entangled, although performing actions.
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> bbdb-info@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bbdb-info
> BBDB Home Page: http://bbdb.sourceforge.net/
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/