From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Printing Date: Tue, 8 May 2012 12:59:10 +0200 Message-ID: References: <5f0660120903280331y780c80b7i57a8115dc4b029eb@mail.gmail.com> <49CE3A84.9070705@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1336474804 3998 80.91.229.3 (8 May 2012 11:00:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 May 2012 11:00:04 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 08 13:00:02 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SRi98-0004oo-L1 for ged-emacs-devel@m.gmane.org; Tue, 08 May 2012 12:59:58 +0200 Original-Received: from localhost ([::1]:39311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRi98-00057W-2P for ged-emacs-devel@m.gmane.org; Tue, 08 May 2012 06:59:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRi90-00056k-F0 for emacs-devel@gnu.org; Tue, 08 May 2012 06:59:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRi8v-0002hW-LA for emacs-devel@gnu.org; Tue, 08 May 2012 06:59:50 -0400 Original-Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:63694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRi8v-0002gw-Aw for emacs-devel@gnu.org; Tue, 08 May 2012 06:59:45 -0400 Original-Received: by lahi5 with SMTP id i5so451660lah.0 for ; Tue, 08 May 2012 03:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=QkNeJ4NNw7eo5xN6WQadPQSNX2yNeEAKEScYsyO6VVE=; b=CrCq0pLDHwmRaih8s6SdwzFQHDn/8b8/DoxLD7ytethTBvJHYn0hwZrxDHt6SDgOpU mdfRDWxV59lHnurLBuRtVpjXyFh8xWHLYhzXO4jpZuZ8cEx9DcVA/IJkfHYMgMsiGQ+8 E2eaWch9fA7GbEghtV9pw04LMnFISCu0cF0WX4wPz9JL3MGENpoj6rgUx6zTdhyXPYIV nQ7zzSH0TMzyneh53MWuTnDfE2y2r/oKbrmEtVafrh/afOALspgJSVkkt6NZIKjJvwz9 w2L7NaEPK0Y4aL0Mlq/kSMMZUHRqrf93bRCn6n5dJe6z1QQ9PgSowGT8k0kqAdKTivUU mFBA== Original-Received: by 10.112.87.69 with SMTP id v5mr214706lbz.49.1336474782866; Tue, 08 May 2012 03:59:42 -0700 (PDT) Original-Received: by 10.112.41.99 with HTTP; Tue, 8 May 2012 03:59:10 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150370 Archived-At: On Tue, May 8, 2012 at 4:15 AM, YAMAMOTO Mitsuharu wrote: >>>>>> On Tue, 8 May 2012 03:25:33 +0200, Lennart Borgman said: > >>> Actually, the primary motivation of introducing a cairo terminal >>> was to support the generation of PDF data from the buffer contents >>> directly using the Emacs redisplay engine, even from a tty session >>> (i.e., without X server running), rather than supporting multiple >>> window systems. =C2=A0Showing a print dialog, sending the output to a >>> printer, etc. will need another library or something, perhaps in a >>> window-system dependent way. >>> >>> Do you possibly have some idea of "abstraction on a higher level"? > >> Ah, I see. Did you consider the printing already available in >> nXhtml? =C2=A0This makes html pages from buffers (and also from frames >> for other purposes). > > I've heard of the conversion from a buffer contents to html, but I > didn't know that it also supports the conversion from a frame. That is just a minor convenience thing for those wanting to display another type of screen shot. > Yes, conversion to html is useful and handy for many purposes. > Although the direct use of the Emacs redisplay engine in printing via > cairo has its strength in reproducibility of some peculiarities such > as compositions in Emacs display features, if people don't need them > in printing so much, then it might be rather overkill. If the goal is to produce a pdf file you can do that by first making a html file and then display that in a web browser. From the web browser you can then print or create a pdf. What you get is just the buffer content (no extra headers or so), but with colors.