From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: agenda csv export: three problems (batch, koi8-r and commas) Date: Fri, 1 Jun 2007 09:07:48 +0200 Message-ID: References: <87y7j51h4a.fsf@kosolapov-nb.plesk.ru> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hu1Eq-0003vN-GE for emacs-orgmode@gnu.org; Fri, 01 Jun 2007 03:07:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hu1Eo-0003v9-V9 for emacs-orgmode@gnu.org; Fri, 01 Jun 2007 03:07:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hu1Eo-0003v0-PP for emacs-orgmode@gnu.org; Fri, 01 Jun 2007 03:07:54 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hu1En-0008H8-I0 for emacs-orgmode@gnu.org; Fri, 01 Jun 2007 03:07:54 -0400 In-Reply-To: <87y7j51h4a.fsf@kosolapov-nb.plesk.ru> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ruslan Kosolapov Cc: emacs-orgmode@gnu.org On May 31, 2007, at 11:23, Ruslan Kosolapov wrote: > > org-mode 4.75, emacs-snapshot (latest from debian sid) > > --[ 1. Problems with -batch ]-- > > Command > $ emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv "t")' > fails with > Debugger entered--Lisp error: (void-function org-batch-agenda-csv) This function needs to be autoloaded, as you realized yourself. Appearently you do not have (require 'org-install) in .emacs as the instructions require (if you are running a downloaded version of org-mode instead of the one that comes with Emacs. This file does install the autoloads for all entry points, including this one. > Command > $ emacs -batch -l ~/.emacs -eval '(load-library "org") > (org-batch-agenda-csv "t")' > returns nothing useful. And I don't know why :) The would be another solution, except that -eval takes only a single form. So you would have to do -eval '(progn (load-library "org") (org-batch-agenda-csv "t"))' or -eval '(load-library "org")' -eval '(org-batch-agenda-csv "t")' > --[ 2. Problems with koi8-r ]-- > > I use koi8-r for my org-file, its works well in most cases. > > But in csv I got junk instead koi8-r symbols. As far as I understand, > html export works the same way, and in html I see html-entities > instead koi8-r. In browser its look good, but not in terminal and > perl. > > I tried to use utf-8, and fail too. I don't know how to fix this. I am just using princ to send the lines to STDOUT - if you figure out what else to do to get better non-ascii representation there, let me know.