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 03:25:33 +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 1336440374 7868 80.91.229.3 (8 May 2012 01:26:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 May 2012 01:26:14 +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 03:26:13 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 1SRZBt-0007K3-OP for ged-emacs-devel@m.gmane.org; Tue, 08 May 2012 03:26:13 +0200 Original-Received: from localhost ([::1]:40069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRZBs-0001F7-SZ for ged-emacs-devel@m.gmane.org; Mon, 07 May 2012 21:26:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRZBq-0001F2-JP for emacs-devel@gnu.org; Mon, 07 May 2012 21:26:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRZBo-0001pX-Im for emacs-devel@gnu.org; Mon, 07 May 2012 21:26:10 -0400 Original-Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:43848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRZBo-0001pQ-83 for emacs-devel@gnu.org; Mon, 07 May 2012 21:26:08 -0400 Original-Received: by lahi5 with SMTP id i5so149421lah.0 for ; Mon, 07 May 2012 18:26:05 -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=6bW6lPWc6Xa2YqRNVgaMmA0l5mX4RetQKlXxjq6gVIo=; b=WudcXrNockbxhMjCXO94jKY+4vzDXpQNx7bEEwtEeIoRiYTE9dKrp38H67T45F7Qgl QNgGruvUcNeiT/dtOcDL/TAZDFyCX7d/1Qjgfk6I0uxbyqlFDvTrSHZoyQwhBurK9ePe 2wEG4UdTObcJDPki3+vtBZLRbWsPrRW0GKg9T9Anvg1pgpGhNSvo7Tcji4ZI/TnUeQly RS8FzyR4OWa4kKwR02a1Q2D5Q/58pAPzAmMXG1PHPatkHNtUmkLIaK1jKzOEXZAsZjfO RB4RxbGe+BzIvfJmkQ+mjz+QmEZ/phsKH2WC5FT3nmFXqTV+QewcsWOcTwi4AGeuybWo NP0w== Original-Received: by 10.112.23.200 with SMTP id o8mr8205807lbf.21.1336440365742; Mon, 07 May 2012 18:26:05 -0700 (PDT) Original-Received: by 10.112.41.99 with HTTP; Mon, 7 May 2012 18:25:33 -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:150363 Archived-At: On Tue, May 8, 2012 at 3:04 AM, YAMAMOTO Mitsuharu wrote: >>>>>> On Mon, 7 May 2012 13:25:23 +0200, Lennart Borgman said: > >>> Perhaps I'll work a bit locally first, starting with adding a new >>> type of (output-only) graphical terminal for printing. =C2=A0The idea i= s >>> to add a printing support via cairo without being tied with a >>> particular window system. >>> >>> Is anyone already working for supporting multiple types of >>> graphical terminals simultaneously? > >> Is Cairo enough to make a general printing system? Should not the >> abstraction be on a higher level so that different OS:es can be >> supported? > > 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? This makes html pages from buffers (and also from frames for other purposes).