On Fri Apr 11 2014 Dan Jacobson wrote:
> Why is this -batch mode usage coming up with an empty file?
> $ cat m.el
> (defun foo ()
>   (bbdb ".")
>   (write-file "*BBDB*"))
> $ emacs --batch -l m.el -f foo
> $ ls -l *BBDB*
> -rw-r--r-- 1 jidanni jidanni 0 04-11 08:22 *BBDB*

It seems that the command write-file is not intended for batch mode.

(defun foo ()
  (bbdb-display-all-records)
  (with-current-buffer (get-buffer bbdb-buffer-name)
    (write-region (point-min) (point-max) "my-bbdb")))

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to