From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: stromme@math.uib.no (Stein Arild =?iso-8859-1?Q?Str=F8mme?=) Newsgroups: gmane.emacs.help Subject: Re: postscript printing from emacs Date: Wed, 28 Mar 2007 13:11:43 +0200 Organization: Universitetet i Bergen, Matematisk institutt Message-ID: References: <243C6E55-C719-4B05-9290-C5C5A8472B71@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1175081922 20058 80.91.229.12 (28 Mar 2007 11:38:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2007 11:38:42 +0000 (UTC) Cc: HansFredrik.Nordhaug@math.uib.no To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 28 13:38:35 2007 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.50) id 1HWWU2-00006t-1f for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 13:38:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWWWU-0006BK-Bf for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 06:41:02 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!ltu.se!luth.se!129.240.12.32.MISMATCH!uio.no!nntp.uib.no!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: mi061052.klientdrift.uib.no Original-X-Trace: toralf.uib.no 1175080303 10547 129.177.61.52 (28 Mar 2007 11:11:43 GMT) Original-X-Complaints-To: abuse@uib.no Original-NNTP-Posting-Date: 28 Mar 2007 11:11:43 GMT User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:zVVT3wxMyOcjrZjUtAVoLHMbt2I= Original-Xref: shelby.stanford.edu gnu.emacs.help:146630 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:42235 Archived-At: [Stein Arild Strømme] | [Lennart Borgman] | | | Stein Arild Strømme wrote: | | | | > OK, I have no doubts that it works, but it is too cumbersome. | | | | | | If you try htmlize-view.el and tell me what you find too much work I | | will be glad to change it if it is possible. | | I did try it now, and I'm impressed. Can't really think of much of an | improvement. Thanks a lot! Turns out that there is a problem in Emacs 21.4 (Fedora Core release 5 distribution, started with -q option). I get the following backtrace: Debugger entered--Lisp error: (wrong-number-of-arguments #[(prefix &optional dir-flag) "ÁÁÂτ !ˆ‚ ÉÊÉË&ˆÉ‡" [prefix temporary-file-directory file dir-flag make-temp-name expand-file-name make-directory write-region "" nil silent excl] 8) ((file-already-exists t))] 3 1390966] 3) make-temp-file("/tmp/htmlize-view" nil ".htm") htmlize-view-gettemp-file-name() (let (magic-mode-alist auto-mode-alist (html-temp-buffer ...) (file ...)) (set-buffer html-temp-buffer) (write-file file nil) (if htmlize-view-kill-view-buffers (kill-buffer html-temp-buffer)) file) (save-excursion (let (magic-mode-alist auto-mode-alist ... ...) (set-buffer html-temp-buffer) (write-file file nil) (if htmlize-view-kill-view-buffers ...) file)) htmlize-buffer-to-tempfile(nil) (let* ((html-file ...)) (browse-url-of-file html-file)) htmlize-view-buffer() * call-interactively(htmlize-view-buffer) In current CVS Emacs (22.0.50) everything works OK, but I cannot get the university to distribute that to everyone.. SA -- Stein Arild Strømme +47 55584825, +47 95801887 Universitetet i Bergen Fax: +47 55589672 Matematisk institutt, UiB http://math.uib.no/stromme/ Johs Brunsg 12, N-5008 BERGEN stromme@math.uib.no