[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-orgmode] Some suggestions - mostly for non (X)Emacs updating

From: Tim O'Callaghan
Subject: Re: [Emacs-orgmode] Some suggestions - mostly for non (X)Emacs updating of org mode files.
Date: Tue, 16 May 2006 10:44:39 +0200
User-agent: mutt-ng/devel-r655 (CYGWIN_NT-5.1)

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 <file:~/.bashrc> it tries to find 
> >a
> >mime type and execute a program for it, which then fails. How about 
> >an
> ><edit:> 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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]