From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rustom Newsgroups: gmane.emacs.help Subject: Re: Sunrise Commander: Version 3 released. Date: Wed, 18 Mar 2009 05:26:47 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <83101699-846a-45a0-9632-6c95a6c1a4d9@e3g2000vbe.googlegroups.com> <753c080b-d061-46cc-8c60-6fbe6a08934b@e1g2000pra.googlegroups.com> <7d4d510f-9b6d-4164-b494-5e2a7db10b9f@v15g2000yqn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1237380108 28386 80.91.229.12 (18 Mar 2009 12:41:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Mar 2009 12:41:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 18 13:43:05 2009 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 1Ljv6h-0000OR-Uk for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Mar 2009 13:42:52 +0100 Original-Received: from localhost ([127.0.0.1]:45142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ljv5L-0004S4-JO for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Mar 2009 08:41:27 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!postnews.google.com!w24g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 50 Original-NNTP-Posting-Host: 220.225.70.2 Original-X-Trace: posting.google.com 1237379207 19595 127.0.0.1 (18 Mar 2009 12:26:47 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 18 Mar 2009 12:26:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w24g2000prd.googlegroups.com; posting-host=220.225.70.2; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-Via: 1.1 PT-PROXY1, 1.1 PT-PROXY2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167749 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:63044 Archived-At: On Mar 18, 2:42=A0pm, escherdra...@gmail.com wrote: > On Mar 18, 9:57 am, rustom wrote: > (...) > > > > > This makes the command `op file' behave like double click in eshell > > > So then I need to redefine dired-find-file thus: > > > (defun dired-find-file () > > =A0 (interactive) > > =A0 (eshell/op (dired-get-file-for-visit)) > > =A0) > > > So some questions: > > How do you put such a redefinition on a hook? (Needs to be defuned > > after dired is require-d) > > It needs to be more sophisticated: eg this way hitting return on a > > directory opens windows explorer but it should probably open another > > dired. =A0More generally all the emacs-ish should stay in emacs with th= e > > w32-shell-execute only used as a catch-all for files that emacs cant/ > > shouldnt handle. > > Oh, once again I forgot point 0.5 :) > > 0.5) Get and install Markus Triska's openwith -- it will allow to open > your files using external programs based on file extension. It can be > found in the Emacs Wiki:http://www.emacswiki.org/emacs/OpenWith > > Isn't this solution good enough? I find it fantastic, but to be honest > I haven't tried it on Windows. Does not work on windows. > > Another possibility for you rodent lovers ;-) would be to give dired- > dd (http://www.asahi-net.or.jp/~pi9s-nnb/dired-dd-home.html) a try. Actually I am quite rodent-allergic. The problem is that windows keeps a helluva lot of info in the registry and a program that does not use it effectively (aka vanilla emacs) is not well clued in. The w32-shell-execute open... at least allows to do 'the right' thing on a given file. > Unfortunately it won't work right out of the box with sunrise, but > after applying the following patch to dired-dd it does (I'm currently > trying to get in contact with the author to have it included in the > standard distribution of dired-dd):