* Why is this -batch mode usage coming up with an empty file? @ 2014-04-11 0:26 Dan Jacobson 2014-04-12 4:28 ` Roland Winkler 0 siblings, 1 reply; 2+ messages in thread From: Dan Jacobson @ 2014-04-11 0:26 UTC (permalink / raw) To: emacs help; +Cc: winkler, bbdb-info 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* I am using bbdb3. ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Why is this -batch mode usage coming up with an empty file? 2014-04-11 0:26 Why is this -batch mode usage coming up with an empty file? Dan Jacobson @ 2014-04-12 4:28 ` Roland Winkler 0 siblings, 0 replies; 2+ messages in thread From: Roland Winkler @ 2014-04-12 4:28 UTC (permalink / raw) To: Dan Jacobson; +Cc: emacs help, bbdb-info 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/ ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-12 4:28 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-04-11 0:26 Why is this -batch mode usage coming up with an empty file? Dan Jacobson 2014-04-12 4:28 ` Roland Winkler
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.