Re: [Emacs-orgmode] Re: Attention XEmacs users
This is excellent, thank you very much. - Carsten On Jun 21, 2006, at 2:15, Michael Olson wrote: Carsten Dominik <[EMAIL PROTECTED]> 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 \"/[EMAIL PROTECTED]:/foo\" specifies a location on the system \"/[EMAIL PROTECTED]:\"." (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 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] Re: Attention XEmacs users
Carsten Dominik <[EMAIL PROTECTED]> 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 \"/[EMAIL PROTECTED]:/foo\" specifies a location on the system \"/[EMAIL PROTECTED]:\"." (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 pgpJqKWLIT8Xe.pgp Description: PGP signature ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] org-publish math support
Hi all, Would it be possible to make org-publish support math formulas? For example we could use tex to type the formulas and latex2png to convert to image when export to html as wikipedia does. There are so few apps for taking scientific notes. And this feature will be extremely useful to academic people. Regards, -- Leon ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] Attention XEmacs users
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 /[EMAIL PROTECTED]:/[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 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] Attention XEmacs users
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 /[EMAIL PROTECTED]:/[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
Re: [Emacs-orgmode] Attention XEmacs users
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 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] Attention XEmacs users
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
Re: [Emacs-orgmode] Attention XEmacs users
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 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] Attention XEmacs users
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 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Emacs-orgmode] Re: Can org.el replace planner?
Bastien <[EMAIL PROTECTED]> writes: > Leon <[EMAIL PROTECTED]> writes: > >> Currently I'm using planner as my daily tasks organizer. I'd like to >> try org.el, but I can't figure out what is it good for? So here is the >> question: can org.el replace planner? Could you give a scenario where >> org fits? > > I've been using planner (and emacs-wiki then muse) for nearly two > years. I'm now using org.el and the switch was quite easy. > > I think one of the advantages of org.el over planner is that each task > is a *heading* so that you can store additionnal information under the > task. With planner, this additionnal informations are stored within > the project file -- reaching them is not as straightforward as it is > with org.el. > > More generally, org.el appears to be more flexible, so you can adapt > it to whatever kind of project do you have. > > Best, Thanks, Bastien. I think I'll start using org.el to find out more. -- Leon ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] Attention XEmacs users
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 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] Attention XEmacs users
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
Re: [Emacs-orgmode] Attention XEmacs users
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:/[EMAIL PROTECTED]:/disk:/home/dir/WRK/ tries to open the file "/[EMAIL PROTECTED]/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 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] Attention XEmacs users
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:/[EMAIL PROTECTED]:/disk:/home/dir/WRK/ tries to open the file "/[EMAIL PROTECTED]/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
[Emacs-orgmode] File link in Windows?
Hi I am a long-time Emacs user who has just started using Orgmode, and I must say I'm impressed! I have a small Windows-related problem, though: I can create links to external files, but only when they are on the same drive as my .org file. For example: file:/home/mohi.html is OK, but file:///C:/home/mohi.html is not. I have tried different ways of specifying a URL with a drive letter with no luck so far. Is it possible at all? TIA -- /\/\orten ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] Can org.el replace planner?
Leon <[EMAIL PROTECTED]> writes: > Currently I'm using planner as my daily tasks organizer. I'd like to > try org.el, but I can't figure out what is it good for? So here is the > question: can org.el replace planner? Could you give a scenario where > org fits? I've been using planner (and emacs-wiki then muse) for nearly two years. I'm now using org.el and the switch was quite easy. I think one of the advantages of org.el over planner is that each task is a *heading* so that you can store additionnal information under the task. With planner, this additionnal informations are stored within the project file -- reaching them is not as straightforward as it is with org.el. More generally, org.el appears to be more flexible, so you can adapt it to whatever kind of project do you have. Best, -- Bastien ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Emacs-orgmode] todo and deadline highlighting
This looks like it is doing the right thing. - Carsten On Jun 19, 2006, at 22:09, Piotr Zielinski wrote: On 12/06/06, Carsten Dominik <[EMAIL PROTECTED]> wrote: On Jun 8, 2006, at 1:34, Piotr Zielinski wrote: > The following two functions redefine org-show-todo-tree, so that TODO > items SCHEDULED for the future are not highlighted. Only > non-scheduled TODO items or TODO items scheduled for the past or > present are highlighted. The SCHEDULED directive must be on the same > line as the TODO keyword. This is another interesting idea, but the search must allow more than the current line. Everything up to the next headline (or any level) should be searched. Another try: (defun org-todo-is-current () "Checks whether a TODO item is current." (if (re-search-forward org-scheduled-time-regexp (save-excursion (outline-next-heading) (point)) t) (let ((today (calendar-absolute-from-gregorian (calendar-current-date))) (timestamp (time-to-days (org-time-string-to-time (match-string 1) (<= timestamp today)) t)) Piotr -- 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