From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Viewing PDFs as text? Date: Thu, 13 Mar 2008 10:29:59 +0100 Message-ID: <873aqv7yzs.fsf@member.fsf.org> References: <7599507d-11a4-4e93-974f-5d7aa924b152@e6g2000prf.googlegroups.com> <8763vs5a5c.fsf@member.fsf.org> <87od9jgupf.fsf@bzg.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205400636 28010 80.91.229.12 (13 Mar 2008 09:30:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Mar 2008 09:30:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Bastien Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 13 10:31:04 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JZjmB-00061S-77 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Mar 2008 10:31:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZjlb-00071h-RX for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Mar 2008 05:30:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZjlI-00070Y-AS for help-gnu-emacs@gnu.org; Thu, 13 Mar 2008 05:30:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZjlD-0006xI-3s for help-gnu-emacs@gnu.org; Thu, 13 Mar 2008 05:30:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZjlC-0006xC-QQ for help-gnu-emacs@gnu.org; Thu, 13 Mar 2008 05:30:02 -0400 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JZjlC-0007KV-Ht for help-gnu-emacs@gnu.org; Thu, 13 Mar 2008 05:30:02 -0400 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 44451C4ECE; Thu, 13 Mar 2008 05:30:02 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 13 Mar 2008 05:30:02 -0400 X-Sasl-enc: QJIAX65aRk9m7UOquoe4HTHLyO8bVJYmjcWOi6ilmWQ2 1205400601 Original-Received: from localhost (dslb-084-063-012-167.pools.arcor-ip.net [84.63.12.167]) by mail.messagingengine.com (Postfix) with ESMTPA id 451ACD35B; Thu, 13 Mar 2008 05:30:01 -0400 (EDT) In-Reply-To: <87od9jgupf.fsf@bzg.ath.cx> (Bastien's message of "Thu, 13 Mar 2008 03:37:48 +0000") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:52357 Archived-At: Bastien writes: Hi Bastien, > I tried it and found this problem: when the buffer is already > converted C-c C-t on it will fail because it tries to create a > directory that does already exist. > > ,---- > | (defun doc-view-doc->txt (txt callback) > | "Convert the current document to text and call CALLBACK when done." > | (make-directory (doc-view-current-cache-dir)) > `---- > > A check before making this directory is enough to make it work ok > here, but you know the code better than I do. That shouldn't happen. ,----[ C-h f make-directory RET ] | make-directory is an interactive compiled Lisp function in `files.el'. | | (make-directory dir &optional parents) | | Create the directory dir and any nonexistent parent dirs. | If dir already exists as a directory, do nothing. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `---- Are you sure this is the place the error is thrown? Bye, Tassilo