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 01:57:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: <753c080b-d061-46cc-8c60-6fbe6a08934b@e1g2000pra.googlegroups.com> References: <83101699-846a-45a0-9632-6c95a6c1a4d9@e3g2000vbe.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 1237369309 25983 80.91.229.12 (18 Mar 2009 09:41:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Mar 2009 09:41:49 +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 10:43:06 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 1LjsIj-0008SW-Rc for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Mar 2009 10:43:06 +0100 Original-Received: from localhost ([127.0.0.1]:48689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjsHM-0003yL-Qu for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Mar 2009 05:41:41 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e1g2000pra.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: 220.225.70.2 Original-X-Trace: posting.google.com 1237366638 11923 127.0.0.1 (18 Mar 2009 08:57:18 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 18 Mar 2009 08:57:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e1g2000pra.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:167742 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:63040 Archived-At: Thanks Jos=E9 for all the points I continue to try to make my usage of file mgmt better. Here are some small attempts and questions: > 5) Master Emacs Dired. After all, Sunrise is nothing more than a fancy fr= ont end for all the > amazing capabilities Dired offers. So trying to go back to using dired better I discover that right-click open is a commonly used paradigm. [Note: Its not the mouse thats important -- the windows application does the same job better -- its the functionality] So I found this (somewhere in eshell on wiki?? dont remember) (defun eshell/op (FILE) "Invoke (w32-shell-execute \"Open\" FILE) and substitute slashes for backslashes" (w32-shell-execute "Open" (substitute ?\\ ?/ (expand-file-name FILE)))) 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 () (interactive) (eshell/op (dired-get-file-for-visit)) ) 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. More generally all the emacs-ish should stay in emacs with the w32-shell-execute only used as a catch-all for files that emacs cant/ shouldnt handle.