* Attention XEmacs users @ 2006-06-14 16:54 Carsten Dominik 2006-06-15 13:21 ` Tim O'Callaghan 0 siblings, 1 reply; 16+ messages in thread From: Carsten Dominik @ 2006-06-14 16:54 UTC (permalink / raw) To: emacs-orgmode If you are using XEmacs to run org-mode, the following is important for you: Starting with the next release of Org-mode (4.38, only a few days away), Org-mode will require the use of noutline.el, a new implementation of outline mode on which Org-mode is based. This new implementation uses text overlays with invisibility properties to hide text. This new implementation is already standard on GNU Emacs, so nothing needs to be done if you are using GNU Emacs. XEmacs currently still uses the old implementation which is based on selective display to hide text. This works great, but is much harder to program for. Since there is now a port of noutline.el for XEmacs which seems to work stably, I will enforce using it, to make things much easier for the Org-mode side, and thus for me. Therefore, starting with the next version of Org-mode you need to install noutline.el. In the near future, I will slowly but surely remove the code needed for compatibility with the old outline.el. The only way to keep me from doing what I just said is to download noutline.el *now*, test it and report problems with it or with the combination noutline/Org-mode. You may download it at http://www.astro.uva.nl/~dominik/Tools/org/noutline.el and install it in the usual way: byte-compile it, put both noutline.el and noutline.elc on your load path. And put (for now) (require 'noutline) somewhere early into your .xemacs/init.el file. Thanks for your understanding. - Carsten P.S. All credit for noutline.el for XEmacs goes to Greg Chernev for porting it and allowing me to make it available. Thanks Greg! - Carsten -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-14 16:54 Attention XEmacs users Carsten Dominik @ 2006-06-15 13:21 ` Tim O'Callaghan 2006-06-15 17:38 ` Carsten Dominik 2006-06-20 12:09 ` Tim O'Callaghan 0 siblings, 2 replies; 16+ messages in thread From: Tim O'Callaghan @ 2006-06-15 13:21 UTC (permalink / raw) To: emacs-orgmode On Wed, Jun 14, 2006 at 06:54:13PM +0200, Carsten Dominik wrote: > > If you are using XEmacs to run org-mode, the following is important > for you: > > Starting with the next release of Org-mode (4.38, only a few days > away), Org-mode will require the use of noutline.el, a new > implementation of outline mode on which Org-mode is based. This new > implementation uses text overlays with invisibility properties to > hide text. This new implementation is already standard on GNU Emacs, > so nothing needs to be done if you are using GNU Emacs. > > XEmacs currently still uses the old implementation which is based on > selective display to hide text. This works great, but is much harder > to program for. Since there is now a port of noutline.el for XEmacs > which seems to work stably, I will enforce using it, to make things > much easier for the Org-mode side, and thus for me. Therefore, > starting with the next version of Org-mode you need to install > noutline.el. In the near future, I will slowly but surely remove the > code needed for compatibility with the old outline.el. > > The only way to keep me from doing what I just said is to download > noutline.el *now*, test it and report problems with it or with the > combination noutline/Org-mode. > > You may download it at > > http://www.astro.uva.nl/~dominik/Tools/org/noutline.el > > and install it in the usual way: byte-compile it, put both > noutline.el and noutline.elc on your load path. And put (for now) > (require 'noutline) somewhere early into your .xemacs/init.el file. > > Thanks for your understanding. > Could you just add it into a 'contrib' type directory in the distribution file? I was thinking of suggesting the creation of a contrib directory where you can throw things like this, as well as contributed perl scripts and other stuff such as the other org mode extensions.... Tim. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-15 13:21 ` Tim O'Callaghan @ 2006-06-15 17:38 ` Carsten Dominik 2006-06-15 19:02 ` Tim O'Callaghan 2006-06-20 12:09 ` Tim O'Callaghan 1 sibling, 1 reply; 16+ messages in thread From: Carsten Dominik @ 2006-06-15 17:38 UTC (permalink / raw) To: Tim O'Callaghan; +Cc: emacs-orgmode On Jun 15, 2006, at 15:21, Tim O'Callaghan wrote: > > Could you just add it into a 'contrib' type directory in the > distribution file? Yes, I will distribute the file with Org-mode, but in an XEmacs directory, not in contrib. If I put it in contrib, too many people will install it also under Emacs, which will break it and create too many emails for me :-) Yes, we could have a contrib directory. Any suggestions on how this should be structured? It would need to have a mechanism to carry documentation, and to clearly mark things as not under my maintenance. - Carsten > > I was thinking of suggesting the creation of a contrib directory where > you can throw things like this, as well as contributed perl scripts > and other stuff such as the other org mode extensions.... > > Tim. > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-15 17:38 ` Carsten Dominik @ 2006-06-15 19:02 ` Tim O'Callaghan 0 siblings, 0 replies; 16+ messages in thread From: Tim O'Callaghan @ 2006-06-15 19:02 UTC (permalink / raw) To: emacs-orgmode On Thu, Jun 15, 2006 at 07:38:03PM +0200, Carsten Dominik wrote: > > On Jun 15, 2006, at 15:21, Tim O'Callaghan wrote: > > > >Could you just add it into a 'contrib' type directory in the > >distribution file? > > Yes, I will distribute the file with Org-mode, but in an XEmacs > directory, not in contrib. If I put it in contrib, too many people > will install it also under Emacs, which will break it and create too > many emails for me :-) > > Yes, we could have a contrib directory. Any suggestions on how this > should be structured? It would need to have a mechanism to carry > documentation, and to clearly mark things as not under my > maintenance. > A simple Readme-<contribution>.txt possibly? if you published a CVS/whatever tree as a 'src' distribution alongside the normal distro, it would then be up to the contrib maintainers to send you patches against it for distribution. This should work if you use the same type of pre-release warning email you sent for each release. Tim. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-15 13:21 ` Tim O'Callaghan 2006-06-15 17:38 ` Carsten Dominik @ 2006-06-20 12:09 ` Tim O'Callaghan 2006-06-20 13:47 ` Carsten Dominik 1 sibling, 1 reply; 16+ messages in thread From: Tim O'Callaghan @ 2006-06-20 12:09 UTC (permalink / raw) To: emacs-orgmode I experimented with automating the noutline usage with a patch for org-install: (if (featurep 'xemacs) (progn (setq dir (expand-file-name (concat default-directory "xemacs"))) (if (file-directory-p dir) (setq load-path (cons dir load-path))) ) ) The problem here is that default-directory was not set correctly at runtime for some reason, so just added the xemacs dir to my load-path instead. Its something you might consider though. Also ":" needed to be added to org-link-escape-chars, as below: (defconst org-link-escape-chars '((":" . ":") ("[" . "%5B") ("]" . "%5D") (" " . "%20")) "Association list of escapes for some characters problematic in links.") The fix is for a problem that occurs, when trying to open a remote file link. org-open-at-point mangles the EFS file links, possibly tramp ones as well, i've not tried. It by replaces every ':' with '!'. The link file:/user@machine:/disk:/home/dir/WRK/ tries to open the file "/user@machine!/disk!/home/dir/WRK/" Its probably not the best way of going about it, but it works. Tim. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-20 12:09 ` Tim O'Callaghan @ 2006-06-20 13:47 ` Carsten Dominik 2006-06-20 15:03 ` Tim O'Callaghan 0 siblings, 1 reply; 16+ messages in thread From: Carsten Dominik @ 2006-06-20 13:47 UTC (permalink / raw) To: Tim O'Callaghan; +Cc: emacs-orgmode Hi Tim, On Jun 20, 2006, at 14:09, Tim O'Callaghan wrote: > > Also ":" needed to be added to org-link-escape-chars, as below: > (defconst org-link-escape-chars '((":" . ":") ("[" . "%5B") ("]" . > "%5D") (" " . "%20")) > "Association list of escapes for some characters problematic in > links.") Is there a typo in this setting? The above setting should lead to an infinite loop, because you keep replacing ":" with ":" when trying to escape the link characters. And as far as I can see, org-mode passes the file name right through to `find-file'. Could anyone try to reporduce this? - Carsten > > The fix is for a problem that occurs, when trying to open a remote > file link. org-open-at-point mangles the EFS file links, possibly > tramp ones as well, i've not tried. It by replaces every ':' with '!'. > > The link file:/user@machine:/disk:/home/dir/WRK/ tries to open the > file "/user@machine!/disk!/home/dir/WRK/" > > Its probably not the best way of going about it, but it works. > > Tim. > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-20 13:47 ` Carsten Dominik @ 2006-06-20 15:03 ` Tim O'Callaghan 2006-06-20 15:11 ` Carsten Dominik [not found] ` <c55b018aaf03fc22cde44a33e739b86d@science.uva.nl> 0 siblings, 2 replies; 16+ messages in thread From: Tim O'Callaghan @ 2006-06-20 15:03 UTC (permalink / raw) To: emacs-orgmode On Tue, Jun 20, 2006 at 03:47:13PM +0200, Carsten Dominik wrote: > Hi Tim, > > > On Jun 20, 2006, at 14:09, Tim O'Callaghan wrote: > > > >Also ":" needed to be added to org-link-escape-chars, as below: > >(defconst org-link-escape-chars '((":" . ":") ("[" . "%5B") ("]" . > >"%5D") (" " . "%20")) > > "Association list of escapes for some characters problematic in > >links.") > > Is there a typo in this setting? The above setting should lead to an > infinite loop, because you keep replacing ":" with ":" when trying to > escape the link characters. And as far as I can see, org-mode passes > the file name right through to `find-file'. Could anyone try to > reporduce this? > Sorry, it was a quick hack that seemed to work, and now for some reason does not. The issue itself still exists though. I've tracked it down to the convert-standard-filename call in org-open-file. If i remove the convert-standard-filename, it does not recognize it as an efs type file. Anyway convert-standard-filename is what mangles efs type file links. My guess is that it may be related to the C:\\filename problem too. Tim. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-20 15:03 ` Tim O'Callaghan @ 2006-06-20 15:11 ` Carsten Dominik 2006-06-20 16:26 ` Carsten Dominik [not found] ` <c55b018aaf03fc22cde44a33e739b86d@science.uva.nl> 1 sibling, 1 reply; 16+ messages in thread From: Carsten Dominik @ 2006-06-20 15:11 UTC (permalink / raw) To: Tim O'Callaghan; +Cc: emacs-orgmode Yes, looks like this function does not do at all what I think it should be doing. I'll remove the call, thanks for tracking this down. - Carsten On Jun 20, 2006, at 17:03, Tim O'Callaghan wrote: > On Tue, Jun 20, 2006 at 03:47:13PM +0200, Carsten Dominik wrote: >> Hi Tim, >> >> >> On Jun 20, 2006, at 14:09, Tim O'Callaghan wrote: >>> >>> Also ":" needed to be added to org-link-escape-chars, as below: >>> (defconst org-link-escape-chars '((":" . ":") ("[" . "%5B") ("]" . >>> "%5D") (" " . "%20")) >>> "Association list of escapes for some characters problematic in >>> links.") >> >> Is there a typo in this setting? The above setting should lead to an >> infinite loop, because you keep replacing ":" with ":" when trying to >> escape the link characters. And as far as I can see, org-mode passes >> the file name right through to `find-file'. Could anyone try to >> reporduce this? >> > > Sorry, it was a quick hack that seemed to work, and now for some > reason does not. The issue itself still exists though. > > I've tracked it down to the convert-standard-filename call in > org-open-file. If i remove the convert-standard-filename, it does not > recognize it as an efs type file. > > Anyway convert-standard-filename is what mangles efs type file > links. My guess is that it may be related to the C:\\filename problem > too. > > Tim. > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-20 15:11 ` Carsten Dominik @ 2006-06-20 16:26 ` Carsten Dominik 0 siblings, 0 replies; 16+ messages in thread From: Carsten Dominik @ 2006-06-20 16:26 UTC (permalink / raw) To: Carsten Dominik; +Cc: emacs-orgmode On Jun 20, 2006, at 17:11, Carsten Dominik wrote: > Yes, looks like this function does not do at all what I think it > should be doing. I'll remove the call, thanks for tracking this down. Correction: ...what I *thought* it was doing. The function is fine, I was wrong putting the call there.... :-) - Carsten ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <c55b018aaf03fc22cde44a33e739b86d@science.uva.nl>]
[parent not found: <20060620162457.GE1132@ELSAMSW37164>]
* Re: Attention XEmacs users [not found] ` <20060620162457.GE1132@ELSAMSW37164> @ 2006-06-20 16:36 ` Carsten Dominik 2006-06-20 16:53 ` Tim O'Callaghan 0 siblings, 1 reply; 16+ messages in thread From: Carsten Dominik @ 2006-06-20 16:36 UTC (permalink / raw) To: emacs-orgmode Maybe you are not trying to open the file in emacs? Following a link picks an application to open the file, depending on the extension. Under windows, the default is to use "open" for files, which is just like double-clicking them. However, "open" may choke on an efs path. You can force the link to open inside emacs with C-u C-c C-o. Have you tried this? - Carsten On Jun 20, 2006, at 18:24, Tim O'Callaghan wrote: > On Tue, Jun 20, 2006 at 05:10:27PM +0200, Carsten Dominik wrote: >> Yes, looks like this function does not do at all what I think it >> should be doing. I'll remove the call, thanks for tracking this >> down. >> > > I've tracked it down to something in org-open file. It gets past the > "No such file: " clause. Efs seems to be functioning well enough up > until the point where the file actually gets opened. > >> - Carsten >> >> On Jun 20, 2006, at 17:03, Tim O'Callaghan wrote: >> >>> On Tue, Jun 20, 2006 at 03:47:13PM +0200, Carsten Dominik wrote: >>>> Hi Tim, >>>> >>>> >>>> On Jun 20, 2006, at 14:09, Tim O'Callaghan wrote: >>>>> >>>>> Also ":" needed to be added to org-link-escape-chars, as below: >>>>> (defconst org-link-escape-chars '((":" . ":") ("[" . "%5B") ("]" . >>>>> "%5D") (" " . "%20")) >>>>> "Association list of escapes for some characters problematic in >>>>> links.") >>>> >>>> Is there a typo in this setting? The above setting should lead to >>>> an >>>> infinite loop, because you keep replacing ":" with ":" when trying >>>> to >>>> escape the link characters. And as far as I can see, org-mode >>>> passes >>>> the file name right through to `find-file'. Could anyone try to >>>> reporduce this? >>>> >>> >>> Sorry, it was a quick hack that seemed to work, and now for some >>> reason does not. The issue itself still exists though. >>> >>> I've tracked it down to the convert-standard-filename call in >>> org-open-file. If i remove the convert-standard-filename, it does >>> not >>> recognize it as an efs type file. >>> >>> Anyway convert-standard-filename is what mangles efs type file >>> links. My guess is that it may be related to the C:\\filename >>> problem >>> too. >>> >>> Tim. >>> >>> >>> _______________________________________________ >>> Emacs-orgmode mailing list >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>> >>> >> >> -- >> Carsten Dominik >> Sterrenkundig Instituut "Anton Pannekoek" >> Universiteit van Amsterdam >> Kruislaan 403 >> NL-1098SJ Amsterdam >> phone: +31 20 525 7477 >> > > Tim. > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-20 16:36 ` Carsten Dominik @ 2006-06-20 16:53 ` Tim O'Callaghan 2006-06-20 17:13 ` Carsten Dominik 0 siblings, 1 reply; 16+ messages in thread From: Tim O'Callaghan @ 2006-06-20 16:53 UTC (permalink / raw) To: emacs-orgmode On Tue, Jun 20, 2006 at 06:36:19PM +0200, Carsten Dominik wrote: > Maybe you are not trying to open the file in emacs? > Following a link picks an application to open the file, depending on > the extension. Under windows, the default is to use "open" for > files, which is just like double-clicking them. However, "open" may > choke on an efs path. > > You can force the link to open inside emacs with C-u C-c C-o. Have > you tried this? > Yep, it looks like this is the problem. > - Carsten > > On Jun 20, 2006, at 18:24, Tim O'Callaghan wrote: > > >On Tue, Jun 20, 2006 at 05:10:27PM +0200, Carsten Dominik wrote: > >>Yes, looks like this function does not do at all what I think it > >>should be doing. I'll remove the call, thanks for tracking this > >>down. > >> > > > >I've tracked it down to something in org-open file. It gets past the > >"No such file: " clause. Efs seems to be functioning well enough up > >until the point where the file actually gets opened. > > > >>- Carsten > >> > >>On Jun 20, 2006, at 17:03, Tim O'Callaghan wrote: > >> > >>>On Tue, Jun 20, 2006 at 03:47:13PM +0200, Carsten Dominik wrote: > >>>>Hi Tim, > >>>> > >>>> > >>>>On Jun 20, 2006, at 14:09, Tim O'Callaghan wrote: > >>>>> > >>>>>Also ":" needed to be added to org-link-escape-chars, as below: > >>>>>(defconst org-link-escape-chars '((":" . ":") ("[" . "%5B") ("]" > >>>>>. > >>>>>"%5D") (" " . "%20")) > >>>>>"Association list of escapes for some characters problematic in > >>>>>links.") > >>>> > >>>>Is there a typo in this setting? The above setting should lead > >>>>to > >>>>an > >>>>infinite loop, because you keep replacing ":" with ":" when > >>>>trying > >>>>to > >>>>escape the link characters. And as far as I can see, org-mode > >>>>passes > >>>>the file name right through to `find-file'. Could anyone try to > >>>>reporduce this? > >>>> > >>> > >>>Sorry, it was a quick hack that seemed to work, and now for some > >>>reason does not. The issue itself still exists though. > >>> > >>>I've tracked it down to the convert-standard-filename call in > >>>org-open-file. If i remove the convert-standard-filename, it does > >>>not > >>>recognize it as an efs type file. > >>> > >>>Anyway convert-standard-filename is what mangles efs type file > >>>links. My guess is that it may be related to the C:\\filename > >>>problem > >>>too. > >>> > >>>Tim. > >>> > >>> > >>>_______________________________________________ > >>>Emacs-orgmode mailing list > >>>Emacs-orgmode@gnu.org > >>>http://lists.gnu.org/mailman/listinfo/emacs-orgmode > >>> > >>> > >> > >>-- > >>Carsten Dominik > >>Sterrenkundig Instituut "Anton Pannekoek" > >>Universiteit van Amsterdam > >>Kruislaan 403 > >>NL-1098SJ Amsterdam > >>phone: +31 20 525 7477 > >> > > > >Tim. > > > > > > -- > Carsten Dominik > Sterrenkundig Instituut "Anton Pannekoek" > Universiteit van Amsterdam > Kruislaan 403 > NL-1098SJ Amsterdam > phone: +31 20 525 7477 > > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode Tim. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-20 16:53 ` Tim O'Callaghan @ 2006-06-20 17:13 ` Carsten Dominik 2006-06-20 17:29 ` Tim O'Callaghan 0 siblings, 1 reply; 16+ messages in thread From: Carsten Dominik @ 2006-06-20 17:13 UTC (permalink / raw) To: Tim O'Callaghan; +Cc: emacs-orgmode Maybe I should force efs/tramp file names to be opened with Emacs/. What is the best and most general way to test if a file name is efs or tramp or ange-ftp? - Carsten On Jun 20, 2006, at 18:53, Tim O'Callaghan wrote: > On Tue, Jun 20, 2006 at 06:36:19PM +0200, Carsten Dominik wrote: >> Maybe you are not trying to open the file in emacs? >> Following a link picks an application to open the file, depending on >> the extension. Under windows, the default is to use "open" for >> files, which is just like double-clicking them. However, "open" may >> choke on an efs path. >> >> You can force the link to open inside emacs with C-u C-c C-o. Have >> you tried this? >> > > Yep, it looks like this is the problem. > > >> - Carsten >> >> On Jun 20, 2006, at 18:24, Tim O'Callaghan wrote: >> >>> On Tue, Jun 20, 2006 at 05:10:27PM +0200, Carsten Dominik wrote: >>>> Yes, looks like this function does not do at all what I think it >>>> should be doing. I'll remove the call, thanks for tracking this >>>> down. >>>> >>> >>> I've tracked it down to something in org-open file. It gets past the >>> "No such file: " clause. Efs seems to be functioning well enough up >>> until the point where the file actually gets opened. >>> >>>> - Carsten >>>> >>>> On Jun 20, 2006, at 17:03, Tim O'Callaghan wrote: >>>> >>>>> On Tue, Jun 20, 2006 at 03:47:13PM +0200, Carsten Dominik wrote: >>>>>> Hi Tim, >>>>>> >>>>>> >>>>>> On Jun 20, 2006, at 14:09, Tim O'Callaghan wrote: >>>>>>> >>>>>>> Also ":" needed to be added to org-link-escape-chars, as below: >>>>>>> (defconst org-link-escape-chars '((":" . ":") ("[" . "%5B") ("]" >>>>>>> . >>>>>>> "%5D") (" " . "%20")) >>>>>>> "Association list of escapes for some characters problematic in >>>>>>> links.") >>>>>> >>>>>> Is there a typo in this setting? The above setting should lead >>>>>> to >>>>>> an >>>>>> infinite loop, because you keep replacing ":" with ":" when >>>>>> trying >>>>>> to >>>>>> escape the link characters. And as far as I can see, org-mode >>>>>> passes >>>>>> the file name right through to `find-file'. Could anyone try to >>>>>> reporduce this? >>>>>> >>>>> >>>>> Sorry, it was a quick hack that seemed to work, and now for some >>>>> reason does not. The issue itself still exists though. >>>>> >>>>> I've tracked it down to the convert-standard-filename call in >>>>> org-open-file. If i remove the convert-standard-filename, it does >>>>> not >>>>> recognize it as an efs type file. >>>>> >>>>> Anyway convert-standard-filename is what mangles efs type file >>>>> links. My guess is that it may be related to the C:\\filename >>>>> problem >>>>> too. >>>>> >>>>> Tim. >>>>> >>>>> >>>>> _______________________________________________ >>>>> Emacs-orgmode mailing list >>>>> Emacs-orgmode@gnu.org >>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>>>> >>>>> >>>> >>>> -- >>>> Carsten Dominik >>>> Sterrenkundig Instituut "Anton Pannekoek" >>>> Universiteit van Amsterdam >>>> Kruislaan 403 >>>> NL-1098SJ Amsterdam >>>> phone: +31 20 525 7477 >>>> >>> >>> Tim. >>> >>> >> >> -- >> Carsten Dominik >> Sterrenkundig Instituut "Anton Pannekoek" >> Universiteit van Amsterdam >> Kruislaan 403 >> NL-1098SJ Amsterdam >> phone: +31 20 525 7477 >> >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > Tim. > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-20 17:13 ` Carsten Dominik @ 2006-06-20 17:29 ` Tim O'Callaghan 2006-06-20 17:33 ` Carsten Dominik 0 siblings, 1 reply; 16+ messages in thread From: Tim O'Callaghan @ 2006-06-20 17:29 UTC (permalink / raw) To: emacs-orgmode On Tue, Jun 20, 2006 at 07:13:17PM +0200, Carsten Dominik wrote: > Maybe I should force efs/tramp file names to be opened with Emacs/. > > What is the best and most general way to test if a file name is efs > or tramp or ange-ftp? > For tramp you'll need to RTM, but for efs its /[user@]host:/[file path] IIRC ange-ftp uses the same syntax as efs. You cold change the extension filter to a regexp filter i guess. Tim. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-20 17:29 ` Tim O'Callaghan @ 2006-06-20 17:33 ` Carsten Dominik 2006-06-21 0:15 ` Michael Olson 0 siblings, 1 reply; 16+ messages in thread From: Carsten Dominik @ 2006-06-20 17:33 UTC (permalink / raw) To: Tim O'Callaghan; +Cc: emacs-orgmode I just found file-remote-p, which may be the right solution. - Carsten On Jun 20, 2006, at 19:29, Tim O'Callaghan wrote: > On Tue, Jun 20, 2006 at 07:13:17PM +0200, Carsten Dominik wrote: >> Maybe I should force efs/tramp file names to be opened with Emacs/. >> >> What is the best and most general way to test if a file name is efs >> or tramp or ange-ftp? >> > > For tramp you'll need to RTM, but for efs its /[user@]host:/[file path] > IIRC ange-ftp uses the same syntax as efs. > > You cold change the extension filter to a regexp filter i guess. > > Tim. > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Attention XEmacs users 2006-06-20 17:33 ` Carsten Dominik @ 2006-06-21 0:15 ` Michael Olson 2006-06-21 4:55 ` Carsten Dominik 0 siblings, 1 reply; 16+ messages in thread From: Michael Olson @ 2006-06-21 0:15 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1.1: Type: text/plain, Size: 1168 bytes --] Carsten Dominik <dominik@science.uva.nl> writes: > I just found file-remote-p, which may be the right solution. XEmacs and Emacs22 both have this function, but in case you need backwards compatibility with Emacs21, feel free to use something like the following. This handles both Tramp and ange-ftp file specifiers. (defun org-file-remote-p (file) "Test whether FILE specifies a location on a remote system. Return non-nil if the location is indeed remote. For example, the filename \"/user@host:/foo\" specifies a location on the system \"/user@host:\"." (cond ((fboundp 'file-remote-p) (file-remote-p file)) ((fboundp 'tramp-handle-file-remote-p) (tramp-handle-file-remote-p file)) ((and (boundp 'ange-ftp-name-format) (string-match ange-ftp-name-format file)) t) (t nil))) -- Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/ Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG |_] | \| |_| Project involvement: Emacs, Muse, Planner, ERC, EMMS [-- Attachment #1.2: Type: application/pgp-signature, Size: 190 bytes --] [-- Attachment #2: Type: text/plain, Size: 149 bytes --] _______________________________________________ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Re: Attention XEmacs users 2006-06-21 0:15 ` Michael Olson @ 2006-06-21 4:55 ` Carsten Dominik 0 siblings, 0 replies; 16+ messages in thread From: Carsten Dominik @ 2006-06-21 4:55 UTC (permalink / raw) To: Michael Olson; +Cc: emacs-orgmode This is excellent, thank you very much. - Carsten On Jun 21, 2006, at 2:15, Michael Olson wrote: > Carsten Dominik <dominik@science.uva.nl> writes: > >> I just found file-remote-p, which may be the right solution. > > XEmacs and Emacs22 both have this function, but in case you need > backwards compatibility with Emacs21, feel free to use something like > the following. This handles both Tramp and ange-ftp file specifiers. > > (defun org-file-remote-p (file) > "Test whether FILE specifies a location on a remote system. > Return non-nil if the location is indeed remote. > > For example, the filename \"/user@host:/foo\" specifies a location > on the system \"/user@host:\"." > (cond ((fboundp 'file-remote-p) > (file-remote-p file)) > ((fboundp 'tramp-handle-file-remote-p) > (tramp-handle-file-remote-p file)) > ((and (boundp 'ange-ftp-name-format) > (string-match ange-ftp-name-format file)) > t) > (t nil))) > > -- > Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/ > Interests: Emacs Lisp, text markup, protocols -- Jabber: > mwolson_at_hcoop.net > /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG > |_] | \| |_| Project involvement: Emacs, Muse, Planner, ERC, EMMS > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2006-06-21 4:55 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-06-14 16:54 Attention XEmacs users Carsten Dominik 2006-06-15 13:21 ` Tim O'Callaghan 2006-06-15 17:38 ` Carsten Dominik 2006-06-15 19:02 ` Tim O'Callaghan 2006-06-20 12:09 ` Tim O'Callaghan 2006-06-20 13:47 ` Carsten Dominik 2006-06-20 15:03 ` Tim O'Callaghan 2006-06-20 15:11 ` Carsten Dominik 2006-06-20 16:26 ` Carsten Dominik [not found] ` <c55b018aaf03fc22cde44a33e739b86d@science.uva.nl> [not found] ` <20060620162457.GE1132@ELSAMSW37164> 2006-06-20 16:36 ` Carsten Dominik 2006-06-20 16:53 ` Tim O'Callaghan 2006-06-20 17:13 ` Carsten Dominik 2006-06-20 17:29 ` Tim O'Callaghan 2006-06-20 17:33 ` Carsten Dominik 2006-06-21 0:15 ` Michael Olson 2006-06-21 4:55 ` Carsten Dominik
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).