From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Doc-view as default viewer for pdf, ps and dvi files Date: Thu, 18 Oct 2007 02:34:31 +0300 Organization: JURTA Message-ID: <878x61nx3k.fsf@jurta.org> References: <87bqbhkhc6.fsf@baldur.tsdh.de> <58152.128.165.0.81.1191330286.squirrel@webmail.lanl.gov> <878x6ljwb4.fsf@baldur.tsdh.de> <87fy0r2u3z.fsf@baldur.tsdh.de> <87wsu1sear.fsf@baldur.tsdh.de> <878x6gqqfa.fsf@baldur.tsdh.de> <87ve9jhifi.fsf@jurta.org> <87d4vpwqo3.fsf@baldur.tsdh.de> <87ir5h4cz1.fsf@jurta.org> <87zlys8xud.fsf@baldur.tsdh.de> <878x6cq7ky.fsf@jurta.org> <87r6k2l9sr.fsf_-_@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192664521 8942 80.91.229.12 (17 Oct 2007 23:42:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2007 23:42:01 +0000 (UTC) Cc: Richard Stallman To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 18 01:42:01 2007 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 1IiIVt-0007Hs-4x for ged-emacs-devel@m.gmane.org; Thu, 18 Oct 2007 01:41:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiIVG-0004wy-Va for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2007 19:40:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiITq-0004PW-SZ for emacs-devel@gnu.org; Wed, 17 Oct 2007 19:39:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiITp-0004P0-PH for emacs-devel@gnu.org; Wed, 17 Oct 2007 19:39:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiITp-0004Oq-Am for emacs-devel@gnu.org; Wed, 17 Oct 2007 19:39:13 -0400 Original-Received: from mailman.kiev.sovam.com ([89.162.150.100]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IiITj-0007um-S6; Wed, 17 Oct 2007 19:39:08 -0400 Original-Received: from relay01.kiev.sovam.com ([62.64.120.200]) by mailman.kiev.sovam.com with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1IiLHJ-0007qQ-1D; Thu, 18 Oct 2007 02:38:29 +0000 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1IiITh-000Pc8-Qg; Thu, 18 Oct 2007 02:39:06 +0300 In-Reply-To: <87r6k2l9sr.fsf_-_@baldur.tsdh.de> (Tassilo Horn's message of "Thu\, 11 Oct 2007 03\:28\:04 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Scanner-Signature: 0a21689c2f1d2e94d8aa83f1a1b60733 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 1631 [Oct 17 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 25 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (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:81110 Archived-At: > With `C-c C-c' one can toggle between image and source text display. > Both display modes are read-only. With `C-c C-e' one can switch to an > appropriate editing mode -- ps-mode for ps files and fundamental-mode > for pdf and dvi files. I still have doubts that `C-c C-e' is necessary. Isn't it possible to put .ps files in ps-mode, and also put it in `doc-view-minor-mode'? It would be like `image-minor-mode'. Also rebinding `C-x k' to a different command is not a good thing. When the user has a habit to type `C-x k RET' to kill the current buffer, then if a pdf file was visited from the dired buffer, typing `C-x k RET' in doc-view-mode will visit it again (rebound `C-x k' will kill the buffer without confirmation, and RET will revisit from the dired buffer :-) I suggest you to bind `q' to `doc-view-kill-proc-and-buffer' and don't rebind `C-x k'. Also I noticed that often the message "DocView: finished conversion from PDF/PS to PNG!" overwrites the message "Type C-c C-c to toggle between image and text display." in the minibuffer, so the user may miss this information. -- Juri Linkov http://www.jurta.org/emacs/