From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sven Bretfeld" Newsgroups: gmane.emacs.help Subject: Re: emacs --batch and --geometry (no joke) Date: 16 Mar 2011 13:33:08 +0100 Message-ID: <87d3lrutx7.fsf@gmx.ch> References: <87r5a89i41.fsf@puma.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1300278884 6633 80.91.229.12 (16 Mar 2011 12:34:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2011 12:34:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 16 13:34:39 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pzpvx-0002n3-I1 for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2011 13:34:39 +0100 Original-Received: from localhost ([127.0.0.1]:40785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pzpvv-0003t0-Vj for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2011 08:34:36 -0400 Original-Received: from [140.186.70.92] (port=47516 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pzpud-0003I3-NB for help-gnu-emacs@gnu.org; Wed, 16 Mar 2011 08:33:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pzpuc-0003tG-FN for help-gnu-emacs@gnu.org; Wed, 16 Mar 2011 08:33:15 -0400 Original-Received: from mi.ruhr-uni-bochum.de ([134.147.64.33]:60247 helo=mx5.rz.ruhr-uni-bochum.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Pzpuc-0003sz-70 for help-gnu-emacs@gnu.org; Wed, 16 Mar 2011 08:33:14 -0400 X-Queued: (qmail 2726 invoked from network); 16 Mar 2011 12:33:13 -0000 Original-Received: from c2-3-4.rz.ruhr-uni-bochum.de (134.147.64.5) by mx5.rz.ruhr-uni-bochum.de with SMTP; 16 Mar 2011 12:33:13 -0000 X-Queued: (qmail 3384 invoked by uid 281); 16 Mar 2011 12:33:11 -0000 X-Qmailscanner: from 95.223.105.84 (0axIjN0NPR/HhSqCOUDJIw==@95.223.105.84) by c2-3-4.rz.ruhr-uni-bochum.de (envelope-from , uid 80) with qmail-scanner-2.01 (sophie: 3.05/3.15/4.61. Clear:RC:1(95.223.105.84):. Processed in 0.020159 secs); 16 Mar 2011 12:33:11 -0000 Original-Received: from ip-95-223-105-84.unitymediagroup.de (HELO kamaloka) (0axIjN0NPR/HhSqCOUDJIw==@95.223.105.84) by c2-3-4.rz.ruhr-uni-bochum.de with (DHE-RSA-AES128-SHA encrypted) SMTP; 16 Mar 2011 12:33:11 -0000 In-Reply-To: <87r5a89i41.fsf@puma.rapttech.com.au> (Tim X.'s message of "Wed, 16 Mar 2011 08:41:34 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAACXBIWXMAAABIAAAASABGyWs+ AAAACXZwQWcAAAAwAAAAMADO7oxXAAABxElEQVRYw+1Yy3XEIAxkedtKTjn66F7cVDpwLz66lyQV 5JA8WdZnLNgEyHurk1fYYhhGQuzt5fVt35bEbJpX4WlpWc+t8YmHP7Xb5/tHLzJMy7R0QUAbPmxA pmJMZwOUB0P7tuj5hKeB2A+GTDTt021IUSeo6GleWwr8xFDfknhi6NsITeNiyO1giHKNxroQdjC0 b0sk89sxJED0EtNpyzQI7iSqtIdMc+y97IXNIFaKlW9s5kEJ/BlE4Qw9ePSaTY4Z884nps/0A/8Z OeDEmzqFCZN4M4ugpTUaa9+EhYtc6CzTcgbr1nlAsCKf2xoyFxovBJF85ED56B3H9ToTc/qkCj33 i4k9XjOYhhKhokhWZ6ULyFsrMJBu3pL0LO6WiUJQisMcihSIEEPVUErbmGlekYZAdK/we3C9O4zI x31bLhjS35QagG4GvKhDXEaPNEagfHDE07y6lVoUVvP88rqDyBq85iIq6qL90sq4XDBZSNQYawSf 9x+LFr7csu43oVFvrkmpnRcb3ceItilZTQ/2cyd/GIIhrpPrfqjBvYyrdgiGuNWkfR9A5qWxJ6Dg pfHX7f9oaDhAvUT93LJqQM8t+7Ev0JuM5jl6Ys0AAAAldEVYdGRhdGU6Y3JlYXRlADIwMTAtMTIt MjNUMTI6NDg6MTYrMDE6MDDfxXPHAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDEwLTA1LTAzVDAxOjIx OjI3KzAyOjAwW9UkOQAAAABJRU5ErkJggg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 134.147.64.33 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80167 Archived-At: Hi Tim Yes, that's strange. I have solved the problem with some sed operations now. But it's only a workaround. Greetings, Sven Tim X writes: > "Sven Bretfeld" writes: > >> Hi to all >> >> This might seem an absurd question. I'm looking for a possibility to >> start emacs --batch with geometry parameters. Of course, I know that >> emacs --batch will have no frame. >> >> The reason is this: I start emacs --batch as a cronjob to regularly >> create some html files of org-agenda-views (org-export-as-html). How the >> html files look like is dependent on the frame-size in which the export >> is done. So, in batch-mode there are many line-breaks and the output >> looks ugly. The default frame-size set in a load-file is ignored, as >> well as a --geometry option. >> >> It would be an option to execute the export function with run-at-time >> within my always running Emacs session (daemon), but since the function >> needs some time to finish, my workflow would be interrupted for about 20 >> seconds. >> >> The only workaround I can imagine, is an always running independent >> Emacs session which runs the function regularly via run-at-time. >> > > I must be missing something, but I would suggest something is very wrong > with the HTML generation if it depends on the size of the frame/window > it will be browsed in at a later time or even worse, the size of the > window/frame at the time it is generated. A major aim of HTML was/is to > provide a markup language that can be rendered by clients using > different display parameters (i.e. window size, font size, etc). > > As far as I know, there is no way of having both -batch and -geometry > mean something at the same time. Part of the rationale behaind batch is > to speed things up by not having to worry about all the display stuff. > > I'd be looking at the html generation to find out what it is doing that > 'hard codes' display sizes and remove that. Such formatting should be > left to the client, not the generator of the HTML (yes, you may need to > use additional techniques, such as CSS div etc and provide enough > details to the client so that it will render appropriately). > > Tim