From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#8364: 24.0.9999; PATCH: Fit to width/height/page for doc-view.el Date: Wed, 30 Mar 2011 17:17:00 +0200 Message-ID: <871v1owscz.fsf@member.fsf.org> References: <878vvz8sml.fsf@fastmail.fm> <87k4fj6z8e.fsf@member.fsf.org> <87hbanw3ll.fsf@member.fsf.org> <87vcz0x62y.fsf@member.fsf.org> <87ipv0wxuw.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1301499465 18290 80.91.229.12 (30 Mar 2011 15:37:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2011 15:37:45 +0000 (UTC) Cc: 8364@debbugs.gnu.org To: sho nakatani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 30 17:37:40 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 1Q4xSl-00025V-DN for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Mar 2011 17:37:40 +0200 Original-Received: from localhost ([127.0.0.1]:33897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4xSi-00029F-UX for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Mar 2011 11:37:37 -0400 Original-Received: from [140.186.70.92] (port=33698 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4xSW-00023s-6m for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2011 11:37:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4xSJ-0007hT-17 for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2011 11:37:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4xSI-0007hO-Vo for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2011 11:37:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q4x9l-0002tl-Q1; Wed, 30 Mar 2011 11:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Mar 2011 15:18:01 +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.130149823011085 (code B ref 8364); Wed, 30 Mar 2011 15:18:01 +0000 Original-Received: (at 8364) by debbugs.gnu.org; 30 Mar 2011 15:17:10 +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 1Q4x8v-0002sk-N8 for submit@debbugs.gnu.org; Wed, 30 Mar 2011 11:17:09 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4x8t-0002sL-AK for 8364@debbugs.gnu.org; Wed, 30 Mar 2011 11:17:08 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 486B47817777; Wed, 30 Mar 2011 17:17:01 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18572-02; Wed, 30 Mar 2011 17:17:00 +0200 (CEST) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad (tsdh.uni-koblenz.de [141.26.67.142]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 853747817775; Wed, 30 Mar 2011 17:17:00 +0200 (CEST) In-Reply-To: (sho nakatani's message of "Wed, 30 Mar 2011 23:35:51 +0900") User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.9999 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 30 Mar 2011 11:18:01 -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:45502 Archived-At: sho nakatani writes: >>> But your function doesn't work for some files. >> >> What exactly doesn't work? > > I meant that after calling `doc-view-fit-slice-width-to-window' the > image disappeared from the window. That was the effect of your original function, too. So you might want to double-check that no floating point numbers are given to any image function for :width or 'slice... > I tested some files written in both English and Japanese. After that, > I realized only images written in Japanese sometimes (not always) > cause this error. > > I guess this error is related with font set and ghostscript, or my own > environment. I can confirm that ghostscript sometimes has issues with fonts. However, in that case it would be awkward if fitting works without slice, but fails with slice... Bye, Tassilo