From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zhu Shenli Newsgroups: gmane.emacs.help Subject: Re: Open file with external program Date: Wed, 21 Apr 2010 16:51:54 +0800 Message-ID: <4BCEBCAA.4040201@gmail.com> References: <4BCE79BA.9060106@gmail.com> <816BC80E-285A-43DA-A43F-41CDDD428B95@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271840745 31591 80.91.229.12 (21 Apr 2010 09:05:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Apr 2010 09:05:45 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 21 11:05:42 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O4VsL-0002y1-Et for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Apr 2010 11:05:41 +0200 Original-Received: from localhost ([127.0.0.1]:39503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4VsK-0002fA-Ql for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Apr 2010 05:05:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4VfT-0006dM-ML for help-gnu-emacs@gnu.org; Wed, 21 Apr 2010 04:52:23 -0400 Original-Received: from [140.186.70.92] (port=43422 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4VfO-0006aG-OB for help-gnu-emacs@gnu.org; Wed, 21 Apr 2010 04:52:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4Vf9-0004Ki-3u for help-gnu-emacs@gnu.org; Wed, 21 Apr 2010 04:52:17 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:54899) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4Vf8-0004KQ-UR for help-gnu-emacs@gnu.org; Wed, 21 Apr 2010 04:52:03 -0400 Original-Received: by pwi2 with SMTP id 2so6170222pwi.0 for ; Wed, 21 Apr 2010 01:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=MlXHMvqYlv3Ei8MOpG3pGdim/SQoHuo8g+hJEx6LJIw=; b=Yqu0t90nvT98Sw5shhUnwF0sUlTFjbF3XujF5s6urqK7KJVxcbx+6eLHMp5eJ8AJtH z/8IawBQloVjuiKB6/qDmaZ0PJ+qUXlkdJ82k66H5IDxpNV8NUMfVJlNtqs/GA0j4452 ggyBki+JNCOmShKipFv7WO0vGRvVniAz0b2UM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=OvDTXoc5QeaGrrzLPityzZg/6J6ULjMibAJETlOkK1ImHv747db+h2Rdn4g+j3rFqZ EjTPgMVRoBueh5/BJAa9+P2eiasrOP/juJWMSnAtQ8DbdcdFN1L6KnmAwE1ZIPZTsPLD 3Fw9mx/7UVW2OzE0QH5NHWQ3p/j8m0WJQAOOg= Original-Received: by 10.141.88.16 with SMTP id q16mr2190626rvl.156.1271839921928; Wed, 21 Apr 2010 01:52:01 -0700 (PDT) Original-Received: from [116.232.89.245] ([116.232.89.245]) by mx.google.com with ESMTPS id o38sm8501567rvp.12.2010.04.21.01.51.59 (version=SSLv3 cipher=RC4-MD5); Wed, 21 Apr 2010 01:52:01 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 In-Reply-To: <816BC80E-285A-43DA-A43F-41CDDD428B95@Web.DE> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:72780 Archived-At: On 04/21/2010 03:38 PM, Peter Dyballa wrote: > > Am 21.04.2010 um 06:06 schrieb Zhu Shenli: > >> So, I guess whether there is any existing tool do that: Ask in >> mini-buffer "Do you want to open the file in (a) Emacs (b) >> program-name-1 (c) ... > > > No. Either use an old version of GNU Emacs without doc-view-mode or > delete particular file types from its control: > > (setq auto-mode-alist (delete '("\\.\\(?:PDF\\|DVI\\|pdf\\|dvi\\)\\'" > . doc-view-mode) auto-mode-alist)) > > > More details in info. > > -- > Greetings > > Pete > > Sorry my terrible English, my native language Lisp > Hi Pete, thank you! Dmitri suggested to use dired-x shell command guessing. And it works well both on dired and locate.