From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Halton Newsgroups: gmane.emacs.help Subject: Re: ps-print doesn't omit invisible text Date: Fri, 08 Dec 2006 22:14:12 +0000 Message-ID: <4579E3B4.9030607@gmail.com> References: NNTP-Posting-Host: dough.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 1165619012 8126 80.91.229.10 (8 Dec 2006 23:03:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Dec 2006 23:03:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 09 00:03:31 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gsokc-0002xX-5Q for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Dec 2006 00:03:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gsokb-0004tF-Qb for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Dec 2006 18:03:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gsnz7-0005fa-N6 for help-gnu-emacs@gnu.org; Fri, 08 Dec 2006 17:14:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gsnz6-0005f4-8B for help-gnu-emacs@gnu.org; Fri, 08 Dec 2006 17:14:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gsnz6-0005f1-6B for help-gnu-emacs@gnu.org; Fri, 08 Dec 2006 17:14:24 -0500 Original-Received: from [64.233.182.189] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gsnz5-0000y4-W1 for help-gnu-emacs@gnu.org; Fri, 08 Dec 2006 17:14:24 -0500 Original-Received: by nf-out-0910.google.com with SMTP id d4so1305265nfe for ; Fri, 08 Dec 2006 14:14:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=eK0DUXLVZ0jdFHQtPJa63szTZA01247WyFOUJDpN9wjDBjsVKUzslW/6XrlfXQPnuea2puWQuOv2tt+58a/BZrMWGzTt9wr0rA7z1UWwcDehypYDzIGK2swKR0HwwR6tLb1hBIJCfkfG9zE1QI5mIkTLzXzpDlCkh9BtQ7ujYts= Original-Received: by 10.49.13.19 with SMTP id q19mr955184nfi.1165616062744; Fri, 08 Dec 2006 14:14:22 -0800 (PST) Original-Received: from ?86.11.100.96? ( [86.11.100.96]) by mx.google.com with ESMTP id a24sm11560089nfc.2006.12.08.14.14.21; Fri, 08 Dec 2006 14:14:22 -0800 (PST) User-Agent: IceDove 1.5.0.8 (X11/20061128) Original-To: Kevin Rodgers In-Reply-To: X-Mailman-Approved-At: Fri, 08 Dec 2006 18:03:14 -0500 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:39364 Archived-At: Kevin Rodgers wrote: > John Halton wrote: >> I'm using an emacs mode (tagging.el) that uses invisible overlays to >> hide text that doesn't match a given tag (a la folding.el). >> >> However, when I print out the buffer, I get the whole buffer including >> invisible text, not just the text displaying on screen. By contrast, >> quick print via web browser (from the File menu) only prints out the >> visible text. >> >> Looking at the ps-print.el file, it looks like ps-print does have the >> ability to skip invisible text when printing, but I'm too much of a >> LISP ignoramus to understand why it should be failing to do so in this >> instance. >> >> I'm running Emacs 22.0.91.1 under Windows (work PC...), installed from >> EmacsW32. However, the same issue also occurs in Emacs 21. > > Are you using `M-x ps-print-buffer-with-faces' to print the buffer? No, just ps-print-buffer. I take it that's where I may be going wrong? Makes sense. Will try it when I'm back at work on Monday. Thanks! John