Re: can I auto save the bbdb file after each change?

2016-02-08 Thread Alan Schmitt
On 2016-02-06 20:32, "Roland Winkler"  writes:

> On Fri Feb 5 2016 Alan Schmitt wrote:
>> Thanks a lot for the suggestion! It was simply a matter of:
>> 
>> (add-hook 'bbdb-after-change-hook 'bbdb-save)
>
> bbdb-after-change-hook runs with one argument, the record that was
> changed.  The first arg of bbdb-save is the optional arg PROMPT.  So
> this arg is always non-nil when called by the hook (thus prompting
> before saving).  Is this what you want?
>
> Otherwise use something like
>
> (add-hook 'bbdb-after-change-hook (lambda (arg) (bbdb-save)))

Indeed, I was wondering why there was a prompt. It’s all well now,
thanks a lot.

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Athmospheric CO₂ (Updated February 7, 2016, Mauna Loa Obs.): 405.98 ppm


signature.asc
Description: PGP signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Re: can I auto save the bbdb file after each change?

2016-02-06 Thread Roland Winkler
On Fri Feb 5 2016 Alan Schmitt wrote:
> Thanks a lot for the suggestion! It was simply a matter of:
> 
> (add-hook 'bbdb-after-change-hook 'bbdb-save)

bbdb-after-change-hook runs with one argument, the record that was
changed.  The first arg of bbdb-save is the optional arg PROMPT.  So
this arg is always non-nil when called by the hook (thus prompting
before saving).  Is this what you want?

Otherwise use something like

(add-hook 'bbdb-after-change-hook (lambda (arg) (bbdb-save)))

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: can I auto save the bbdb file after each change?

2016-02-05 Thread Eric Abrahamsen
Alan Schmitt  writes:

> Hello,
>
> Is there a way to automatically save the bbdb file after each change?
> I searched for `bbdb*save' but could not find anything relevant.

You'll probably want one of the hooks: look for bbdb-*-hook. I think
`bbdb-after-change-hook' should do it.

Yours,
Eric


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: can I auto save the bbdb file after each change?

2016-02-05 Thread Alan Schmitt
Hello Eric,

On 2016-02-05 18:23, Eric Abrahamsen  writes:

> Alan Schmitt  writes:
>
>> Hello,
>>
>> Is there a way to automatically save the bbdb file after each change?
>> I searched for `bbdb*save' but could not find anything relevant.
>
> You'll probably want one of the hooks: look for bbdb-*-hook. I think
> `bbdb-after-change-hook' should do it.

Thanks a lot for the suggestion! It was simply a matter of:

(add-hook 'bbdb-after-change-hook 'bbdb-save)

Thanks again,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Athmospheric CO₂ (Updated February 4, 2016, Mauna Loa Obs.): 403.08 ppm


signature.asc
Description: PGP signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/