From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sho nakatani Newsgroups: gmane.emacs.bugs Subject: bug#8364: 24.0.9999; PATCH: Fit to width/height/page for doc-view.el Date: Thu, 31 Mar 2011 15:57:11 +0900 Message-ID: References: <878vvz8sml.fsf@fastmail.fm> <87k4fj6z8e.fsf@member.fsf.org> <87hbanw3ll.fsf@member.fsf.org> <8762r0wsqj.fsf@member.fsf.org> <877hbf94w4.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1301555247 2627 80.91.229.12 (31 Mar 2011 07:07:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2011 07:07:27 +0000 (UTC) Cc: 8364@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 31 09:07:22 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 1Q5ByT-0002PA-QZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Mar 2011 09:07:22 +0200 Original-Received: from localhost ([127.0.0.1]:46896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5ByS-0004NY-BK for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Mar 2011 03:07:20 -0400 Original-Received: from [140.186.70.92] (port=52063 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5ByM-0004MY-4A for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2011 03:07:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5ByJ-0004rk-L0 for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2011 03:07:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5ByJ-0004ra-JT for bug-gnu-emacs@gnu.org; Thu, 31 Mar 2011 03:07:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q5BpS-0006qb-Ax; Thu, 31 Mar 2011 02:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: sho nakatani Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Mar 2011 06:58:02 +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.130155463926271 (code B ref 8364); Thu, 31 Mar 2011 06:58:02 +0000 Original-Received: (at 8364) by debbugs.gnu.org; 31 Mar 2011 06:57:19 +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 1Q5Bol-0006pg-JB for submit@debbugs.gnu.org; Thu, 31 Mar 2011 02:57:19 -0400 Original-Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5Boj-0006pR-DU for 8364@debbugs.gnu.org; Thu, 31 Mar 2011 02:57:18 -0400 Original-Received: by wyb29 with SMTP id 29so1715649wyb.3 for <8364@debbugs.gnu.org>; Wed, 30 Mar 2011 23:57:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=mta0pqwvBOpYtVzY3+EZX57WJhKEkYzg14WqHR7UZZ4=; b=T0Hv2G//4jWSQb1YMQrBy9XMUy6Lh2cPV1XutRvjUCIC6T10R1GOJzGye3ELYW6ic0 t5oBdcIWpgJ87oN7aflSpJC4Q8rHym1Al/+36mNar9qQFByr5/v5Yso9Z5FMFzzwJGVb ERxPPA7sHIDsbqEQV2MoNLZdH9Kakg5wEo5UM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=c86yHaZ6Rw8SIDOXkFkClmB7Nqw/lGNVhxsYFtUDiyH4ZI5YRzxpMKO86qVgIG4CLl yvjC6EFGJoB0m0duhRE29D+12JX2MDP6/a4glgvJ/mXUKCq9XxlPV0mvxCKiyYrgHtE3 9eAa9qAJMJubDFaqzukQVyYlLXyxYqtMuxi0c= Original-Received: by 10.216.120.193 with SMTP id p43mr698386weh.92.1301554631523; Wed, 30 Mar 2011 23:57:11 -0700 (PDT) Original-Received: by 10.216.120.146 with HTTP; Wed, 30 Mar 2011 23:57:11 -0700 (PDT) In-Reply-To: <877hbf94w4.fsf@member.fsf.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 31 Mar 2011 02:58:02 -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:45516 Archived-At: Hi. 2011/3/31 Tassilo Horn : > Stefan Monnier writes: > >>> Implementation-wise, the difference is that Nakatani's current >>> approach simply uses the image slice for the geometry, your rectangle >>> approach requires another buffer-local variable. >> >> I don't see why you'd need another buffer-local var. It'd just set >> the zoom level and the scrolling. Unless you mean a new buffer-local >> var to remember "keep it fitted", but I don't need that. > > Oh, right. So you'd set the rectangle once, which would adjust the zoom > level and hscroll, and since doc-view preserves the hscroll anyway, > there's nothing to remember. > > Hm, I can see that this is also handy, although not much different to > slice&fit. One complication here is that you have to set the hscroll in > terms of columns while the rectangle is pixel-based. > > Nakatani, if you want, you could try to implement a > `doc-view-fit-rectangle-to-window' function. Basically, the right Off course I'm interested in it but unfortunatelly I don't have enough time. My school will begin soon and I want to give my all energy to my research and study. Although it is possible that I start to implement the function after a month or so, I cannot be certain about it. So if anyone (including Tassilo :-D ) can try it, it would be better than just waiting for my implementation. I feel a bit sorry not to be able to help you ;-( Bye, -- Sho Nakatani