From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8364: 24.0.9999; PATCH: Fit to width/height/page for doc-view.el Date: Mon, 28 Mar 2011 11:17:27 -0400 Message-ID: References: <878vvz8sml.fsf@fastmail.fm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1301359076 9042 80.91.229.12 (29 Mar 2011 00:37:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2011 00:37:56 +0000 (UTC) Cc: Tassilo Horn , 8364@debbugs.gnu.org To: sho nakatani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 29 02:37:52 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4MwQ-0002ef-M7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2011 02:37:50 +0200 Original-Received: from localhost ([127.0.0.1]:58326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4MwQ-0000qV-6c for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Mar 2011 20:37:50 -0400 Original-Received: from [140.186.70.92] (port=39299 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4Mvr-0000Z3-TS for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2011 20:37:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4Mvq-00059u-P2 for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2011 20:37:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4Mvq-00059o-NC for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2011 20:37:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q4Mqp-0004rV-29; Mon, 28 Mar 2011 20:32:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Mar 2011 00:32:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8364 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 8364-submit@debbugs.gnu.org id=B8364.130135868018591 (code B ref 8364); Tue, 29 Mar 2011 00:32:03 +0000 Original-Received: (at 8364) by debbugs.gnu.org; 29 Mar 2011 00:31:20 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4Mq7-0004pk-3C for submit@debbugs.gnu.org; Mon, 28 Mar 2011 20:31:19 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4Mq5-0004pR-ML for 8364@debbugs.gnu.org; Mon, 28 Mar 2011 20:31:18 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p2T0WNjS028575; Mon, 28 Mar 2011 20:32:23 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 66778663EF; Mon, 28 Mar 2011 11:17:27 -0400 (EDT) In-Reply-To: (sho nakatani's message of "Mon, 28 Mar 2011 23:56:14 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3810=0 X-NAI-Spam-Version: 2.2.0.9286 : core <3810> : streams <614374> : uri <837526> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 28 Mar 2011 20:32:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45447 Archived-At: >> Good, thanks. =A0I'll still have to do it by hand, sadly, since I like to >> "fit the text" rather than "fit the page", i.e. I like to keep the >> margins outside of the viewable area. =A0A command to do that >> automatically would be really nifty. > Sad to say, I have no idea to realize such function, although I completely > agree with you. Neither do I, which is why I haven't implemented it yet. Actually, I think it's largely impossible to do it the way I like to do it by hand, because I often keep page headers and footers outside of the viewable area, so the tool would have to be able to recognize those automatically, which seems close to impossible. I've tried to use pdfcrop a few times but it almost always bumps into some text displayed in some corner and ends up showing me more than I want to see. Stefan