From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: printing ediff Date: Wed, 19 Oct 2005 23:17:46 +0200 Message-ID: <4356B7FA.70907@student.lu.se> References: <1164549.post@talk.nabble.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1129757138 16875 80.91.229.2 (19 Oct 2005 21:25:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2005 21:25:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, hniksic@xemacs.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 23:25:28 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESLOs-00072M-3Q for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Oct 2005 23:23:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESLOr-000359-F2 for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Oct 2005 17:23:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESLOd-00034t-PQ for help-gnu-emacs@gnu.org; Wed, 19 Oct 2005 17:22:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESLOc-00032t-5q for help-gnu-emacs@gnu.org; Wed, 19 Oct 2005 17:22:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESLOc-00032l-2X for help-gnu-emacs@gnu.org; Wed, 19 Oct 2005 17:22:50 -0400 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ESLOb-0005gr-Vq for help-gnu-emacs@gnu.org; Wed, 19 Oct 2005 17:22:50 -0400 Original-Received: from [192.168.123.121] (83.249.218.133) by pne-smtpout1-sn1.fre.skanova.net (7.2.060.1) id 4349BB8600246139; Wed, 19 Oct 2005 23:17:47 +0200 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Kevin Rodgers In-Reply-To: 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:30384 Archived-At: Kevin Rodgers wrote: > rajenho (sent by Nabble.com) wrote: > > I want to send out a package for code review. I work in a > > predominantly microsoft environment and in my company we distribute > > printed packages for code reviews with original and changed code. I > > really like the ediff utility to see the code differences. Can someone > > tell me if there is a way to print the code differences that i see with > > ediff utility? > > Your window system should have a utility that you can use to print the > Emacs frame. > > I don't think you can do what you want inside of Emacs, because ediff > displays the original file and new file in separate buffers. You can > print either of those buffers (or a region in either buffer) with M-x > ps-print-buffer-with-faces (or M-x ps-print-region-with-faces), but you > can't print both at once. I thought that maybe this could be done the way I do printing in EmacsW32. I let htmlize.el convert the buffer to HTML and then the web-browser prints it. (This could be done on any system that has a web-browser, but EmacsW32 implements this for w32 only. Just a little change to the code should make the "preview" part portable I realize right now ...) Unfortunately this did not work for the ediff buffer in my test now. Hrvoje, you are the author of this excellent package. Do you know why it does not work for an ediff buffer? Or rather: maybe can I guess why, but is that something you plan to implement?;-)