From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: doc-view-current-slice only used internally Date: Sat, 5 Jan 2008 15:49:37 +0000 (UTC) Message-ID: References: <871w8xbdls.fsf@member.fsf.org> <87wsqp9qhk.fsf@member.fsf.org> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1199548194 9948 80.91.229.12 (5 Jan 2008 15:49:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Jan 2008 15:49:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 05 16:50:12 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JBBHm-00025c-Vm for ged-emacs-devel@m.gmane.org; Sat, 05 Jan 2008 16:50:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBBHP-0004Hm-Ry for ged-emacs-devel@m.gmane.org; Sat, 05 Jan 2008 10:49:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBBHL-0004FS-JA for emacs-devel@gnu.org; Sat, 05 Jan 2008 10:49:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBBHG-0004DQ-6e for emacs-devel@gnu.org; Sat, 05 Jan 2008 10:49:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBBHG-0004DN-03 for emacs-devel@gnu.org; Sat, 05 Jan 2008 10:49:38 -0500 Original-Received: from cpe-69-204-164-144.nycap.res.rr.com ([69.204.164.144] helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBBHF-0001JU-K9 for emacs-devel@gnu.org; Sat, 05 Jan 2008 10:49:37 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Sat, 5 Jan 2008 15:49:37 +0000 (UTC) In-reply-to: <87wsqp9qhk.fsf@member.fsf.org> (message from Tassilo Horn on Fri, 04 Jan 2008 23:26:47 +0100) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86184 Archived-At: Tassilo Horn wrote (add-hook 'doc-view-mode-hook (lambda () (setq doc-view-current-slice '(100 100 600 800)))) Thank you! That is good since novices who want to learn are already told in the Emacs Introduction how to write `add-hook' and `lambda' expressions in their .emacs file. The cache is useful. Without it, that is to say, when you first start doc-view-mode, an `emacs -Q -D' instance says the DVI to PNG conversion is pdf/ps->png, which is obviously an error. Also, it takes a minute to convert the first thirty pages. Put another way, it takes a very long time when your document has 173 pages in it. xdvi takes less time than I can determine. Perhaps you can save time by checking whether xdvi exists on the computer and, if so, use it in Emacs. Incidently, when I have the cache and am starting a new instance of `emacs -Q -D', doc-view-mode seems to require that I go a page ahead to see the smaller slice (or else I never waited long enough). That does not happen when I am first starting doc-view-mode, but, as I said, a document takes a long time to convert. -- Robert J. Chassell GnuPG Key ID: 004B4AC8 bob@rattlesnake.com bob@gnu.org http://www.rattlesnake.com http://www.teak.cc