From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim O'Callaghan Subject: Re: Some suggestions - mostly for non (X)Emacs updating of org mode files. Date: Tue, 16 May 2006 10:44:39 +0200 Message-ID: <20060516084439.GA2584@ELSAMSW37164> References: <20060425142715.GA3120@ELSAMSW37164> <20060427130528.GA3256@ELSAMSW37164> <62799cd4af60f000ed11f842f71418e6@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfvAa-0001Yq-Kd for emacs-orgmode@gnu.org; Tue, 16 May 2006 04:44:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfvAY-0001W3-2h for emacs-orgmode@gnu.org; Tue, 16 May 2006 04:44:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfvAX-0001Vq-RQ for emacs-orgmode@gnu.org; Tue, 16 May 2006 04:44:41 -0400 Received: from [193.120.211.34] (helo=dspsrv.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FfvD8-0000mu-T5 for emacs-orgmode@gnu.org; Tue, 16 May 2006 04:47:23 -0400 Received: from [145.36.45.123] (helo=localhost) by dspsrv.com with asmtp (Exim 3.36 #1) id 1FfvAV-0005QB-00 for emacs-orgmode@gnu.org; Tue, 16 May 2006 09:44:39 +0100 Content-Disposition: inline In-Reply-To: <62799cd4af60f000ed11f842f71418e6@science.uva.nl> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Tue, May 16, 2006 at 09:51:18AM +0200, Carsten Dominik wrote: > > Tim, there were a few things in your email which I previously > overlooked, sorry. > > >With regards to file linking a BUG report: w32-shell-execute needs > >to > >be mswindows-shell-execute in org-file-apps-defaults-windowsnt for > >XEmacs 21.4.19 > > Does anyone know what the systematics on this are? Which Emacs > versions use which nomenclature? > As far as i know XEmacs uses mswindows-* and Gnu Emacs uses w32-*, but the parameters seem to be the same. > >That implementation of links does not allow me to link to an > >external > >file for editing. Say i have a to it tries to find > >a > >mime type and execute a program for it, which then fails. How about > >an > > link, to just open the file directly? Or if the mime > >operation > >fails, just default to opening the file? > > I don't think this is needed. For one, you can set up org-file-app > for specific files to use Emacs. But more importantly, if you use > mouse-3 to follow a file link, or equivalently if you follow the link > with a prefix argument like `C-u C-c C-o' or `C-u RET' (the latter if > you have turned on org-return-follows-link) then the file will always > be opened in Emacs. > I'll try those out. As for using a mouse-3 I prefer using the keyboard, its quicker than using a mouse. I would prefer that under windows, it is the other way around. So that any file that is not specifically mentioned in the org-file-apps is opened by default, and C-RET performs the system mime operation. > Maybe I need to make org-file-apps to accept regular expressions, not > just extensions for identifying file types.... > > > > >Also you probably want to perform an (expand-file-name) on local > >file > >names under windows. As under win2k that will convert the relative > >path to a usable windows one. > > In what situation? When following a file link? > Under XEmacs ms windows the link file:~/.bashrc means nothing. I've come across this before as i use my .xemacs config on a few different platforms. If you use (expand-file-name "~/.bashrc") on windows it might return "C:\\home\ dir\\tim\\.bashrc" and on linux ("/home\ dir/tim/.bashrc"). When combined with calling an external process is better, especially since it also shell-quotes the string. IIRC This works for Gnu Emacs and XEmacs. Could i also suggest that when opening a link that ends in a / or \ that it invokes dired mode on that directory? Tim.