[Orgmode] Re: [PATCH] org-mode typos
I just applied the patch. Thanks again. - Carsten On Dec 16, 2008, at 6:41 PM, Bernt Hansen wrote: Hi Carsten, I decided to scour the org-mode code today and fix up all the typos I could find easily. I've pushed the result to my 'fix-typos' branch at git://git.norang.ca/org-mode. I also fixed up some whitespace changes as separate commits (which you can drop if you don't like them). Let me know if you want me to rework any of this. Most of the typos are in comments and docstrings but there are a few that affect logic in org.el and the commit message reflects that. Please review. I'll tweak this series anyway you like so you can include it easily including rebasing it on newer work that you may have in progress. Hope this helps! Bernt Hansen (34): Fix typos in org-agenda.el Fix typos in org-archive.el Fix typo in org-attach.el Fix typo in org-bibtex.el comments Fix typos in org-clock.el comments Fix typos in org-colview.el Fix typos on org-colview-xemacs.el Fix typos in org.el Fix typos in logic for org.el Whitespace Fix typos in org-exp.el Whitespace Fix typos in org-export-latex.el and whitespace Whitespace Fix comment typo in org-faces.el Fix typos in description of org-id.el Fix comment typo in org-irc.el Whitespace Fix typos in org-jsinfo.el Whitespace Fix typos in org-list.el Fix typo in org-macs.el Whitespace Whitespace Fix typos in org-mouse.el Whitespace Fix typo in org-plot.el Whitespace Fix typo in org-publish.el Fix typos in org-remember.el Whitespace Fix typos in org-table.el Fix typos in org-timer.el Fix typos and whitespace in org-w3m.el Diffstat follows: lisp/org-agenda.el | 36 +++--- lisp/org-archive.el|4 +- lisp/org-attach.el |2 +- lisp/org-bibtex.el |2 +- lisp/org-clock.el |4 +- lisp/org-colview-xemacs.el | 12 +- lisp/org-colview.el| 10 +- lisp/org-exp.el| 268 + +-- lisp/org-export-latex.el | 34 +++--- lisp/org-faces.el |2 +- lisp/org-id.el | 16 ++-- lisp/org-irc.el| 180 +++--- lisp/org-jsinfo.el |4 +- lisp/org-list.el | 224 ++-- lisp/org-macs.el |2 +- lisp/org-mhe.el| 62 +- lisp/org-mouse.el | 32 +++--- lisp/org-plot.el | 52 +- lisp/org-publish.el| 66 ++-- lisp/org-remember.el | 12 +- lisp/org-table.el | 116 ++-- lisp/org-timer.el |6 +- lisp/org-w3m.el| 12 +- lisp/org.el| 98 24 files changed, 628 insertions(+), 628 deletions(-) I can post the 34 patches here but decided that's probably not worth flooding the list with this. If you are interested the patches are available for viewing here: http://git.norang.ca/?p=org-mode;a=shortlog;h=refs/heads/fix-typos Cheers! Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Links to Org-mode FAQ
Hi Matt, to be honest, I had hoped you'd step forward, I am sure you will do a great job with this, thanks so much. - Carsten On Dec 16, 2008, at 3:10 PM, Matthew Lundin wrote: Hi Carsten, I would be happy to take charge of tending the FAQ and to keep an eye on the mailing list for (1) questions that are already answered on the FAQ (2) good answers that should be added to the FAQ. (I would, of course, also gladly defer to someone with a deeper knowledge of org-mode.) Best, Matt Carsten Dominik carsten.domi...@gmail.com writes: Dear all, Sebastian has implemented into his org-info.js to use named anchors to link to sections of a document. This is now finally a god way to link to specific FAQ entries, without being afraid that the link may not work after the next FAQ update. So if you com across a question that can be answered with a FAQ, go to the FAQ in your webbrowser. Pressing l or L at the location will display a link to this location that you can copy and paste into the email answer to that question! You can get HTML links, and Org-style links in this way. So since this makes the FAQ more useful, if you know a good answer to a question that is to yet a FAQ, please consider to format the answer nicely and either send it to one of the people with Worg access, or get Worg access yourself and simply add it. Since we are talking about the FAQ: Is there anyone here who would like to volunteer to spear-head the FAQ, by making it his/her mission to identify good answers and making sure they will get up into the FAQ? :-) I think I deserve another volunteer for this after having fixed all those LaTeX issues even though I had hope someone else would get in and run point on this part... :-) Thanks. - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Links to Org-mode FAQ
Hi Sivaram, the FAQ, like all of Worg, is user editable, and you contributions would be most welcome. I am sure Matt will find ways to put part of the work on you :-) - Carsten On Dec 16, 2008, at 5:57 PM, Sivaram Neelakantan wrote: Matthew Lundin m...@imapmail.org writes: Hi Carsten, I would be happy to take charge of tending the FAQ and to keep an eye on the mailing list for (1) questions that are already answered on the FAQ (2) good answers that should be added to the FAQ. (I would, of course, also gladly defer to someone with a deeper knowledge of org-mode.) Best, Matt And I'd too would like to help in whatever fashion Matt would require help on. :-) Me being an org user and all. [...] sivaram -- ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] question about org-region-active-p
Hi Robert, no, I do not think this would make sense, to step out with an error, because all the commands that need a region will also work without one. This is how regions work in Emacs. If you find places in the documentation where this could be made clearer, let me know. Thanks. - Carsten On Dec 16, 2008, at 4:43 PM, Robert Goldman wrote: Carsten Dominik wrote: Hi Robert, Samuel has it right, let me add this: In Emacs, you do never remove the mark from the buffer, it is always there, wherever you or some command last left it. The only way to tell if the user intends to apply a command to a region is therefore the state of a flag that says if the mark is active. Setting the mark activates the mark, most commands besides cursor motion and search deactivate it. The state flag does only exist if transient-mark-mode is active. Thank you both for the clarification. Here's a question: would it be worth adding a message to warn a user when org-region-active-p is called and transient-mark-mode is off? So should we have something like (and (or transient-mark-mode (error Transient mark mode must be active for this command to work.) mark-active) Error is likely not the right thing here, but on the other hand it seems to me that the user should somehow know that the current command will not work as expected, because an expectation of the org-mode code has been violated. As I said, I discovered this because I was trying to publish a subtree of an org file as HTML, and instead of publishing the subtree, I got the whole file, and the output went to an unexpected location (because my export file setting, attached to the heading, was ignored). So the above is a case where the software quietly does something radically different from what I expected (and what was documented) because an expectation (really a code precondition) was violated. That seems to me to be an exception condition that should be brought to the user's attention. A complicating issue is that the system should just go ahead and publish the whole file if there is no region selected, but there doesn't seem to me to be any way for the system to tell that the user intended to publish only a region if transient-mark-mode is off. Maybe the user should just be told not to use org-mode without t-m-m? Even this seems too extreme, because the user might never intend to publish anything Or the user might never intend to publish anything except a whole file, in which case who cares if tmm is off? A very knotty issue Best, r - Carsten On Dec 16, 2008, at 2:51 AM, Robert Goldman wrote: The definition of org-region-active-p in my copy of org-mode is as follows: (defun org-region-active-p () Is `transient-mark-mode' on and the region active? Works on both Emacs and XEmacs. (if org-ignore-region nil (if (featurep 'xemacs) (and zmacs-regions (region-active-p)) (if (fboundp 'use-region-p) (use-region-p) (and transient-mark-mode mark-active) What seems odd to me is that this command will only work on an emacs 22 (like my Aquamacs) if transient-mark-mode is enabled. Is that correct, and is that what's desired? [I found this because I tried to publish a subtree of an org file, and I found that org-region-active-p was NIL even after C-c @ (outline-mark-subtree).] This may be an oddity of aquamacs -- it seems to prefer cua-mode and turn off transient-mark-mode by default. I confess to not really understanding that decision or its implications. thanks, r ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Links to Org-mode FAQ
--- Mar 16/12/08, Matthew Lundin m...@imapmail.org ha scritto: I would be happy to take charge of tending the FAQ and to keep an eye on the mailing list hello, Matthew, (I would, of course, also gladly defer to someone with a deeper knowledge of org-mode.) you could also post the FAQ you've written in ML, with a subject like i.e. [FAQ revision], and we can discuss it. cheers, Giovanni ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org Mdoe Auto Complete Source
Hi Jonathan, I cannot get this to work yet, what do I need to do in make auto- complete use this? - Carsten On Dec 16, 2008, at 8:31 PM, Jonathan Arkell wrote: Hi list! I have just finished a little something to hook org mode into the auto-complete. Right now it does a verbatim copy of most of org- complete (which is bad). Carsten, would it be possible to separate the gathering of completion candidates from the actual UI, that way other completion systems can be hooked in? (Anything, Auto- Complete, etc.) Enjoy! Jonathan Arkell Sr. Web Developer Inspired by Drum + Bass, Scheme, Kawaii 402 – 11 Avenue SE Calgary, AB T2G 0Y4 t: 403.206.4377 www.criticalmass.com The information contained in this message is confidential. It is intended to be read only by the individual or entity named above or their designee. If the reader of this message is not the intended recipient, you are hereby notified that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message. auto-complete-org.el___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Print headlines including DEADLINE?
Hi Christopher, Changing the columns format from view to view is not trivial. This is what the variable org-overriding-column-format is for. You must not set this in a normal way, but only as an option for an agenda command, for example (setq org-agenda-custom-commands '((x With deadline columns alltodo ((org-agenda-overriding-columns-format %20ITEM %DEADLINE) (org-agenda-start-view-columns-initially t) This will define the x as an agenda dispatcher custom key, creating an agenda view, defining a special columns format, and immediately turning on column view. Hmmm, at least this was *supposed* to work this way, but I see now that there is a little bug. You need to get the latest git release (or release 6.15c) for this to work correctly - Carsten On Dec 16, 2008, at 4:12 AM, Christopher DeMarco wrote: On Tue, Dec 09, 2008 at 08:17:38AM +0100, Carsten Dominik wrote: you may want to take a look at column view, which can show the deadline. Get back here when you cannot figure out how to do this. OK, so I can't figure out how to do this :-) First, how I'm using org-mode: Inside ~/working I have nested project directories; some for home and some for work; projects within projects within projects. Whenever I need a new PROJECTNAME.org, I create it wherever in the hierarchy it belongs, and then symlink it into the proper toplevel (which roughly corresponds to the start of a particular SVN or Git repository). This way, I have much smaller list of org-agenda-files to maintain. I have some custom agenda views defined, that tell me things like what I have to do today, and what to do in various contexts etc. For this I aggregate all of the .org files I've written. I don't want to go adding a :COLUMNS: property to every .org file that I want to include in a custom view; I'd rather define :COLUMNS: for types of views that I want. Where would I define this? I suppose that I could write definitions in hidden files that get explicitly sourced based on what view I want, but that seems roundabout... Thanks... and org-mode rocks! -- Christopher DeMarco dema...@maya.com IT Director MAYA Group +1-412-708-9660 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bug in `org-get-outline-path'
Hi, I've encountered a problem with `org-get-outline-path' (as of today) which fails if the (optional) argument `level' is nil. The error occured when calling `org-archive-subtree'. The following fixes it for me. --- org.el.orig 2008-12-17 09:55:44.0 +0100 +++ org.el 2008-12-17 10:23:38.0 +0100 @@ -7542,7 +7542,7 @@ (defun org-get-outline-path (optional fastp level heading) Return the outline path to the current entry, as a list. - (if ( level 19) (error Outline path failure, more than 19 levels.)) + (if (and level ( level 19)) (error Outline path failure, more than 19 levels.)) (if fastp (progn (loop for i from level upto 19 do Ulf ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Is it possible to export html that remains the outline feature?
Bastien (2008-12-17 12:21 +0100) wrote: anhnmncb anhnm...@sina.com writes: Hi, list, as title :) Yes! Check this: http://orgmode.org/worg/code/org-info-js/ Hello Bastien, my org version is Org-mode version 6.15a, do I still need something else? I have tried your example given in the doc: #+INFOJS_OPT: path:org-info.js #+INFOJS_OPT: toc:nil localtoc:t view:info mouse:underline #+INFOJS_OPT: up:http://www.legito.net/ #+INFOJS_OPT: home:http://orgmode.org buttons:nil But find that org can only export html via C-c C-e. Am I miss something? ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Footnotes and org-export, revisited
Hi Carsten Carsten Hi Paul, I think we can easily have both, I can do the coding Carsten based on your function, this is a small change. Ok so here is the latest version in my .emacs : You'll need (eval-when-compile (require 'cl)) because of rx ... When I wrote this function I wanted to try rx, but if it is annoying I can rewrite back all the regexp as strings. ; (setq muse-footnote-prefix fn:) ;; todo : handle footnotes in comments (defun muse-build-list-of-footnotes () (let ((refkey )(def )(count 0)(deb 0)(def-deb 0)(def-fin 0)(liste nil)(found nil)) (save-excursion (goto-char (point-min)) (while (re-search-forward (rx (minimal-match (seq (one-or-more not-newline) [ (group (and (eval muse-footnote-prefix) (one-or-more wordchar))) ]))) nil t) (setq found t) (incf count) (setq refkey (match-string 1)) (replace-match (number-to-string count) nil nil nil 1) (save-excursion (unless (re-search-forward (dont-compile (rx (seq bol [ (eval refkey) ] (zero-or-more blank nil t) (setq def (list (concat Unable to find footnote definition for refkey))) (signal 'quit def)) (setq deb (match-beginning 0)) (setq def-deb (match-end 0)) (re-search-forward (rx (or \n\n (seq \n[ (eval muse-footnote-prefix)) (seq (zero-or-one \n) buffer-end (setq def-fin (match-beginning 0)) (push (buffer-substring def-deb def-fin) liste) (delete-region deb def-fin) ) ) (goto-char (point-max)) (setq liste (reverse liste)) (setq count 0) (setq def (dolist (elem liste def) (incf count) (setq def (concat def [ (number-to-string count) ] (muse-publish-escape-specials-in-string elem 'document) \n\n (if found (insert (concat \n\nFootnotes:\n def)) nil) ))) ;;; -- Paul ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] question about org-region-active-p
Carsten Dominik wrote: Dear Robert, also region-active-p requires transient-mark-mode to be active, if you look at the definition of the region-active-p function, you will see that. transient-mark-mode is on by default in Emacs. Why did you turn it *off* in the first place? I suspect that this is an aquamacs oddity. Aquamacs (I believe) turns on cua-mode by default and at least in the past, cua-mode was incompatible with transient-mark-mode, and there was even an order dependency (you had to turn cua-mode off before turning transient-mark-mode on). There's a fair amount of discussion about this that one can find by googling. I believe that this has changed, however, since looking at a modern copy of cua-mode.el doesn't seem to reveal any disabling of t-m-m. I'll be honest with you --- I don't even know HOW I turned t-m-m off, much less why! When I explicitly turn it ON in .emacs, all is well. When I run aquamacs without my init files, it's on. But nothing directly in my .emacs turns it off, nor do I have any customizations. This suggests that some library I'm using, somewhere, interferes with it, but as yet I have not found it. Best, r - Carsten On Dec 17, 2008, at 3:12 PM, Robert Goldman wrote: Carsten Dominik wrote: Hi Robert, no, I do not think this would make sense, to step out with an error, because all the commands that need a region will also work without one. This is how regions work in Emacs. If you find places in the documentation where this could be made clearer, let me know. Thank you Carsten for the response. I am still inclined to think that this case is one where the user should get some warning because it's in that bad class of bug-like situations where code quietly does something that the user does not expect and that contradicts the documentation. On the other hand, I can't see where one would raise an error. It's not an error to call org-region-active-p without transient-mark-mode; indeed some libraries turn this on and off, and the user is entitled not to use it. The call to export isn't right, because the export command does not give the system any opportunity to infer whether the user intended to operate on a region or on the whole. So there's no way to tell that the user's expectations are going to be violated. The loading of org-mode isn't the right place, either, since the vast majority of org-mode works just fine with t-m-m turned off. I'm inclined to think that the answer is simply that one shouldn't turn transient-mark-mode off, ever. This works for me, but I hate to think of the next person coming along to fall into this same trap, from which the only means of escape is to inspect the source code and use the debugger. I would suggest a modification to the manual and will submit one, but need clarification about one issue: the use of t-m-m seems to be a fallback for older emacsen that don't have region-active-p. I have such an emacs, so I don't know --- does this mean that on newer emacsen org-region-active-p will work even without transient-mark-mode? Best, Robert ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: question about org-region-active-p
Hi Carsten, Just to add to the discussion, transient-mark-mode is off for me in GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-11-09 on raven, modified by Debian. If I start with emacs -q transient-mark-mode is nil. I've explicitly set it on in my .emacs (as of the beginning of this discussion) and that makes things work better for me. ,[ end of my .emacs ] | (transient-mark-mode 1) ` Regards, Bernt Carsten Dominik domi...@science.uva.nl writes: Dear Robert, also region-active-p requires transient-mark-mode to be active, if you look at the definition of the region-active-p function, you will see that. transient-mark-mode is on by default in Emacs. Why did you turn it *off* in the first place? - Carsten On Dec 17, 2008, at 3:12 PM, Robert Goldman wrote: Carsten Dominik wrote: Hi Robert, no, I do not think this would make sense, to step out with an error, because all the commands that need a region will also work without one. This is how regions work in Emacs. If you find places in the documentation where this could be made clearer, let me know. Thank you Carsten for the response. I am still inclined to think that this case is one where the user should get some warning because it's in that bad class of bug-like situations where code quietly does something that the user does not expect and that contradicts the documentation. On the other hand, I can't see where one would raise an error. It's not an error to call org-region-active-p without transient-mark-mode; indeed some libraries turn this on and off, and the user is entitled not to use it. The call to export isn't right, because the export command does not give the system any opportunity to infer whether the user intended to operate on a region or on the whole. So there's no way to tell that the user's expectations are going to be violated. The loading of org-mode isn't the right place, either, since the vast majority of org-mode works just fine with t-m-m turned off. I'm inclined to think that the answer is simply that one shouldn't turn transient-mark-mode off, ever. This works for me, but I hate to think of the next person coming along to fall into this same trap, from which the only means of escape is to inspect the source code and use the debugger. I would suggest a modification to the manual and will submit one, but need clarification about one issue: the use of t-m-m seems to be a fallback for older emacsen that don't have region-active-p. I have such an emacs, so I don't know --- does this mean that on newer emacsen org-region-active-p will work even without transient-mark-mode? Best, Robert ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: question about org-region-active-p
Ah, so maybe Robert did not turn it off Anyway, in Emacs 23 the default will be ON. It was always my understanding that in order to use regions efficiently, you needed to turn on that mode. Anyway, Robert, could you please try to identify a location in the docs where I should put this information? Ask yourself: Where would I have seen this, had i been there. - Carsten On Dec 17, 2008, at 5:44 PM, Bernt Hansen wrote: Hi Carsten, Just to add to the discussion, transient-mark-mode is off for me in GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-11-09 on raven, modified by Debian. If I start with emacs -q transient-mark-mode is nil. I've explicitly set it on in my .emacs (as of the beginning of this discussion) and that makes things work better for me. ,[ end of my .emacs ] | (transient-mark-mode 1) ` Regards, Bernt Carsten Dominik domi...@science.uva.nl writes: Dear Robert, also region-active-p requires transient-mark-mode to be active, if you look at the definition of the region-active-p function, you will see that. transient-mark-mode is on by default in Emacs. Why did you turn it *off* in the first place? - Carsten On Dec 17, 2008, at 3:12 PM, Robert Goldman wrote: Carsten Dominik wrote: Hi Robert, no, I do not think this would make sense, to step out with an error, because all the commands that need a region will also work without one. This is how regions work in Emacs. If you find places in the documentation where this could be made clearer, let me know. Thank you Carsten for the response. I am still inclined to think that this case is one where the user should get some warning because it's in that bad class of bug-like situations where code quietly does something that the user does not expect and that contradicts the documentation. On the other hand, I can't see where one would raise an error. It's not an error to call org-region-active-p without transient-mark-mode; indeed some libraries turn this on and off, and the user is entitled not to use it. The call to export isn't right, because the export command does not give the system any opportunity to infer whether the user intended to operate on a region or on the whole. So there's no way to tell that the user's expectations are going to be violated. The loading of org-mode isn't the right place, either, since the vast majority of org-mode works just fine with t-m-m turned off. I'm inclined to think that the answer is simply that one shouldn't turn transient-mark-mode off, ever. This works for me, but I hate to think of the next person coming along to fall into this same trap, from which the only means of escape is to inspect the source code and use the debugger. I would suggest a modification to the manual and will submit one, but need clarification about one issue: the use of t-m-m seems to be a fallback for older emacsen that don't have region-active-p. I have such an emacs, so I don't know --- does this mean that on newer emacsen org-region-active-p will work even without transient-mark-mode? Best, Robert ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Footnotes and org-export, revisited
Paul R paul.r...@gmail.com writes: [...] Can others express their views on pros and cons of the two following usages : * Usage 1, anonymous footnotes Karate or karate-do is a martial art developed in the Ryukyu Islands from indigenous fighting methods and Chinese kenpō[fn:: Kenpo is the name of several martial arts]. [...] And then we will have that one feature request to cross reference a previous footnote! :-) In the above case, how would a person go about asking someone to refer to an earlier footnote? * Usage 2, keyword named footnotes Karate or karate-do is a martial art developed in the Ryukyu Islands from indigenous fighting methods and Chinese kenpō[fn:kenpo]. It is primarily a striking art using punching, kicking, knee and elbow strikes and open-handed techniques such as knife-hands and ridge-hands. [fn:kenpo] Kenpo is the name of several martial arts Unless I've got it wrong, wouldn't it be better to do something like [fn:kenpo { Kenpo is the name of several martial arts}] (keep the keyword and definition in one place?) And all future references go as 'see [fn:kenpo] to understand the meaning'. Presumably when exported, all these keywords stuff disappears and are replaced by standard LaTeX style footnote numbers, right? [...] sivaram -- ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Footnotes and org-export, revisited
Hi, Carsten Hi Paul, thanks for this latest version! No need for you to Carsten change anything right now, let me first play with it and seen Carsten what else I might think off. I really like your idea to use Carsten [fn:label] and [fn::Full footnote text], nice syntactic sugar. Also, I'm afraid definition matching regexp won't play nicely with text indentation, because a definition is matched when [fn: starts the line. Otherwise, when this string follows a letter, it is a reference. This will need a bit of care. -- Paul ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [PATCH] org-mode typos
Carsten Dominik domi...@science.uva.nl writes: wow, what a great job, and how well it reflects my being a terrible typist. Thanks so much. I'll take a look at them and then install. Did you change any code at all, or only docstrings? The only one that changes code is 323c9cd36c1c87fa58c22b156cddc9694fa7b47f so I put that in a separate commit. -Bernt - Carsten On Dec 16, 2008, at 6:41 PM, Bernt Hansen wrote: Hi Carsten, I decided to scour the org-mode code today and fix up all the typos I could find easily. I've pushed the result to my 'fix-typos' branch at git://git.norang.ca/org-mode. I also fixed up some whitespace changes as separate commits (which you can drop if you don't like them). Let me know if you want me to rework any of this. Most of the typos are in comments and docstrings but there are a few that affect logic in org.el and the commit message reflects that. Please review. I'll tweak this series anyway you like so you can include it easily including rebasing it on newer work that you may have in progress. Hope this helps! Bernt Hansen (34): Fix typos in org-agenda.el Fix typos in org-archive.el Fix typo in org-attach.el Fix typo in org-bibtex.el comments Fix typos in org-clock.el comments Fix typos in org-colview.el Fix typos on org-colview-xemacs.el Fix typos in org.el Fix typos in logic for org.el Whitespace Fix typos in org-exp.el Whitespace Fix typos in org-export-latex.el and whitespace Whitespace Fix comment typo in org-faces.el Fix typos in description of org-id.el Fix comment typo in org-irc.el Whitespace Fix typos in org-jsinfo.el Whitespace Fix typos in org-list.el Fix typo in org-macs.el Whitespace Whitespace Fix typos in org-mouse.el Whitespace Fix typo in org-plot.el Whitespace Fix typo in org-publish.el Fix typos in org-remember.el Whitespace Fix typos in org-table.el Fix typos in org-timer.el Fix typos and whitespace in org-w3m.el Diffstat follows: lisp/org-agenda.el | 36 +++--- lisp/org-archive.el|4 +- lisp/org-attach.el |2 +- lisp/org-bibtex.el |2 +- lisp/org-clock.el |4 +- lisp/org-colview-xemacs.el | 12 +- lisp/org-colview.el| 10 +- lisp/org-exp.el| 268 + +-- lisp/org-export-latex.el | 34 +++--- lisp/org-faces.el |2 +- lisp/org-id.el | 16 ++-- lisp/org-irc.el| 180 +++--- lisp/org-jsinfo.el |4 +- lisp/org-list.el | 224 ++-- lisp/org-macs.el |2 +- lisp/org-mhe.el| 62 +- lisp/org-mouse.el | 32 +++--- lisp/org-plot.el | 52 +- lisp/org-publish.el| 66 ++-- lisp/org-remember.el | 12 +- lisp/org-table.el | 116 ++-- lisp/org-timer.el |6 +- lisp/org-w3m.el| 12 +- lisp/org.el| 98 24 files changed, 628 insertions(+), 628 deletions(-) I can post the 34 patches here but decided that's probably not worth flooding the list with this. If you are interested the patches are available for viewing here: http://git.norang.ca/?p=org-mode;a=shortlog;h=refs/heads/fix-typos Cheers! Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Help with org-map-entries and property searches
Hi, I'm trying to code lisp, and it's slow going for me. I was hoping someone with a few spare cycles could explain why this doesn't work the way I expect. I typed the following code into an org file and hit C-x C-e (eval-last-sexp): (length (org-map-entries t +LEDGER=\entry\)) = 1 (length (org-map-entries t +LEDGER=\transaction\)) = 2 This looks good: I do have two headlines with a property called LEDGER where the value is transaction (no quotes) However, all of the following attempts to search for both kinds of (or all) values fail (no error, just the wrong value). What am I doing wrong? (length (org-map-entries t +LEDGER={\transaction\\|\entry\})) = 0 (length (org-map-entries t +LEDGER={transaction\|entry})) = 0 (length (org-map-entries t +LEDGER=entry)) = 0 (length (org-map-entries t +LEDGER)) = 0 I was inspired by this example of a property search from the org info page (section 7.3) +work-boss+PRIORITY=A+Coffee=unlimited+Effort2 \ +With={Sarah\|Denny}+SCHEDULED=2008-10-11 I've tried this in GNU Emacs 22.3.2 (i386-apple-darwin9.5.0, Carbon Version 1.6.0) of 2008-09-21 on plume.sr.unh.edu - Aquamacs Distribution 1.5 and GNU Emacs 22.3.1 (i386-apple-darwin9.5.1, Carbon Version 1.6.0) of 2008-11-07 on Xander.local (compiled via MacPorts) Org-mode version 6.15a in both. I also got the same results when I did it after a 'start-vanilla- aquamacs' (thanks to William Henney for the tip!) Thanks, Ben ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Footnotes and org-export, revisited
Dear all, I'm a new org user who recently ran across the video of Carsten's Google talk. I have been looking for something like org for years, but learning Emacs had always seemed too high a price, so I never really considered Emacs-based options. However time is a teacher, and I see now that there are plenty of other higher prices than learning Emacs, which has anyway proved easier than I thought. Org-mode is really an amazing piece of work, a highly original piece of software, and possibly just what this vim user needs. When I think how much time I spent other solutions, including vim's two (basically unmaintained and functionally feeble) outline modes, I can only resign myself to the mild shame. The following is in response to a brief thread posted to this list in October by Matthew Lundin. He described the limitations of footnotes.el, and suggested two possibilities for extending footnotes support in org-mode. [1]. The problem with Steve L. Baur's (otherwise useful) footnotes mode is that it cannot 'read' the contents of a loaded buffer. So in any given editing session, footnote numbering always starts with 1, even if you already had 1...10 in your file from a previous editing session. This is simply a limitation of the mode in its current state. I expect the package's scope was originally confined to using footnotes in plain text emails, which are generally finished in one shot. There have been some efforts to overcome this limitation by means of a patch to footnote.el [2] and a new function, footnote-init.el [3] which reads the contents of a newly loaded buffer so that the patched footnote.el 'knows' about previously placed footnotes. These particular patches may not have all the kinks worked out, however,[4] and are not part of the current CVS of Emacs 23. But someone working in Muse did write an interesting extension to Muse's footnote support. (The extension is explained here [5], and the revised version of the code is here [6]). It is basically a hook function which converts footnotes with reference names[fn:named_note] to plain, numbered footnotes, like Muse and org-mode support. It operates on a temporary buffer just before export to LaTeX or HTML, so is transparent to the user. I too would like to make use of org-mode to do more extensive footnoting than the current footnote.el easily allows. I'm not sure of the best solution. Here are the alternatives I can think of: 1. Help Baur's footnotes.el get to the point where it has no trouble with multiple editing sessions and managing the numbering of any arbitrary quantity of footnotes. This is possible in theory. But I suspect that footnotes associated with body text by simple Arabic numerals are pretty easy to mangle in a simple text system that lets you do arbitrary things with the text. Comments? 2. Adapt the Muse code mentioned above for use with org-mode. This would keep org-mode's current footnote support unchanged, but allow named footnotes while writing. Carsten suggested something like this in his response to Matthew. 3. Add named footnote support to org-mode according to Matthew's second suggestion (similar to footnote functionality in Pandoc, Multi-Markdown or ReST). This could optionally include a function for the auto-generation of short (?) unique-ish IDs to use instead of names (in a long document, giving named references to dozens of similar footnotes could itself be a source of confusion). 4. Forget org-mode for anything with any quantity of footnotes. This is Carsten's other suggestion in response to Matthew. It's possible that the practicalities of footnote handling would prove too costly to get right. He knows this much better than I. (though I'm not sure that they impair org's plan-text readability as Carsten suggests. 5. A final solution (which might also gain other advantages) could be to begin to facilitate an org-export mode to Pandoc's native plain-text syntax (an extension of Markdown).[7] Pandoc is a robust Haskell engine to convert between plain text formats. This would add a step to org-mode export, but that one step could potentially allow conversion into the wide range of formats that Pandoc supports (markdown, reStructuredText, HTML, LaTeX, ConTeXt, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki markup, groff man pages, and S5 HTML slide shows). Pandoc's syntax model already has a lot in common with org's. (Both allow LaTeX pass-through, for example). I don't know if such an export would meet the effort vs. value trade off, but I suggest it might. Comments? (by anyone who summoned the patience to read all of that... sorry for the length. I couldn't manage less). Scot B. Footnotes: [1] http://thread.gmane.org/gmane.emacs.orgmode/8373 [2] http://groups.google.com/group/gnu.emacs.sources/browse_thread/thread/49c826201105d1e9/7c3ea8323041f91c?lnk=gstq=footnote#7c3ea8323041f91c [3]
Re: [Orgmode] question about org-region-active-p
Dear Robert, also region-active-p requires transient-mark-mode to be active, if you look at the definition of the region-active-p function, you will see that. transient-mark-mode is on by default in Emacs. Why did you turn it *off* in the first place? - Carsten On Dec 17, 2008, at 3:12 PM, Robert Goldman wrote: Carsten Dominik wrote: Hi Robert, no, I do not think this would make sense, to step out with an error, because all the commands that need a region will also work without one. This is how regions work in Emacs. If you find places in the documentation where this could be made clearer, let me know. Thank you Carsten for the response. I am still inclined to think that this case is one where the user should get some warning because it's in that bad class of bug-like situations where code quietly does something that the user does not expect and that contradicts the documentation. On the other hand, I can't see where one would raise an error. It's not an error to call org-region-active-p without transient-mark-mode; indeed some libraries turn this on and off, and the user is entitled not to use it. The call to export isn't right, because the export command does not give the system any opportunity to infer whether the user intended to operate on a region or on the whole. So there's no way to tell that the user's expectations are going to be violated. The loading of org-mode isn't the right place, either, since the vast majority of org-mode works just fine with t-m-m turned off. I'm inclined to think that the answer is simply that one shouldn't turn transient-mark-mode off, ever. This works for me, but I hate to think of the next person coming along to fall into this same trap, from which the only means of escape is to inspect the source code and use the debugger. I would suggest a modification to the manual and will submit one, but need clarification about one issue: the use of t-m-m seems to be a fallback for older emacsen that don't have region-active-p. I have such an emacs, so I don't know --- does this mean that on newer emacsen org-region-active-p will work even without transient-mark-mode? Best, Robert ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug in `org-get-outline-path'
Fixed, thanks. - Carsten On Dec 17, 2008, at 10:33 AM, Ulf Stegemann wrote: Hi, I've encountered a problem with `org-get-outline-path' (as of today) which fails if the (optional) argument `level' is nil. The error occured when calling `org-archive-subtree'. The following fixes it for me. --- org.el.orig 2008-12-17 09:55:44.0 +0100 +++ org.el 2008-12-17 10:23:38.0 +0100 @@ -7542,7 +7542,7 @@ (defun org-get-outline-path (optional fastp level heading) Return the outline path to the current entry, as a list. - (if ( level 19) (error Outline path failure, more than 19 levels.)) + (if (and level ( level 19)) (error Outline path failure, more than 19 levels.)) (if fastp (progn (loop for i from level upto 19 do Ulf ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: unique TODO Number
Gregor Horvath mai...@gmx.at writes: Is there a possibility to get an automatic unique numerical number for each TODO? (like a Ticketnumber) Perhaps by using %(sexp) in a remember template? (I'm not sure this will work, but a possibility to explore.) Good luck, Dan -- -- Dan Griswold Rochester, NY -- ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] .nosearch needed in doc directory
Hi Karel, the problem seem to be that the doc directory is on the Emacs lisp path! It should not be. - Carsten On Dec 17, 2008, at 2:00 PM, Sprenger, Karel wrote: Hello, Currently I run GNU Emacs 22.3.1 under Windows XP and noticed that restoring my desktop fails when I have org-mode files. In the *Messages* buffer I discovered that Emacs tries to load the file org in org-mode's doc directory and stumbles over the word This. By adding an empty file .nosearch in that directory you make Emacs ignore the directory when searching for lisp files, and thus prevent it from loading a text file. Kind regards, Karel Sprenger ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] question about org-region-active-p
Carsten Dominik wrote: Hi Robert, no, I do not think this would make sense, to step out with an error, because all the commands that need a region will also work without one. This is how regions work in Emacs. If you find places in the documentation where this could be made clearer, let me know. Thank you Carsten for the response. I am still inclined to think that this case is one where the user should get some warning because it's in that bad class of bug-like situations where code quietly does something that the user does not expect and that contradicts the documentation. On the other hand, I can't see where one would raise an error. It's not an error to call org-region-active-p without transient-mark-mode; indeed some libraries turn this on and off, and the user is entitled not to use it. The call to export isn't right, because the export command does not give the system any opportunity to infer whether the user intended to operate on a region or on the whole. So there's no way to tell that the user's expectations are going to be violated. The loading of org-mode isn't the right place, either, since the vast majority of org-mode works just fine with t-m-m turned off. I'm inclined to think that the answer is simply that one shouldn't turn transient-mark-mode off, ever. This works for me, but I hate to think of the next person coming along to fall into this same trap, from which the only means of escape is to inspect the source code and use the debugger. I would suggest a modification to the manual and will submit one, but need clarification about one issue: the use of t-m-m seems to be a fallback for older emacsen that don't have region-active-p. I have such an emacs, so I don't know --- does this mean that on newer emacsen org-region-active-p will work even without transient-mark-mode? Best, Robert ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Footnotes and org-export, revisited
Carsten If Paul agrees, and if he has signed the papers with the FSF, Carsten we can integrate his code into Org-mode. I do agree and I do have assigned copyrights to the FSF, but from the technical point of view I would prefer to see plain anonymous footnotes as explained above. I might implement it myself in case everybody agrees on it but nobody has time for it. Can others express their views on pros and cons of the two following usages : * Usage 1, anonymous footnotes Karate or karate-do is a martial art developed in the Ryukyu Islands from indigenous fighting methods and Chinese kenpō[fn:: Kenpo is the name of several martial arts]. It is primarily a striking art using punching, kicking, knee and elbow strikes and open-handed techniques such as knife-hands and ridge-hands. Grappling, locks, restraints, throws, and vital point strikes are taught in some styles. A karate practitioner is called a karateka. * Usage 2, keyword named footnotes Karate or karate-do is a martial art developed in the Ryukyu Islands from indigenous fighting methods and Chinese kenpō[fn:kenpo]. It is primarily a striking art using punching, kicking, knee and elbow strikes and open-handed techniques such as knife-hands and ridge-hands. [fn:kenpo] Kenpo is the name of several martial arts Grappling, locks, restraints, throws, and vital point strikes are taught in some styles. A karate practitioner is called a karateka. -- Paul ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Help with org-map-entries and property searches
Genius! Thanks! On 2008-Dec-17, at 15:46, Bernt Hansen wrote: Ben Alexander b...@alexanderonline.org writes: However, all of the following attempts to search for both kinds of (or all) values fail (no error, just the wrong value). What am I doing wrong? Try this: (add 2 more \ characters before the |) (length (org-map-entries t +LEDGER={transaction\\\|entry})) = 3 HTH, Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [PATCH] org-mode typos
or git show SHA1 Carsten Dominik domi...@science.uva.nl writes: I figured it out: gitk commit Thanks, yes, these are fixes I definitely want in. - Carsten On Dec 17, 2008, at 12:48 PM, Carsten Dominik wrote: On Dec 17, 2008, at 12:37 PM, Bernt Hansen wrote: Bernt Hansen be...@norang.ca writes: Carsten Dominik domi...@science.uva.nl writes: wow, what a great job, and how well it reflects my being a terrible typist. Thanks so much. I'll take a look at them and then install. Did you change any code at all, or only docstrings? The only one that changes code is 323c9cd36c1c87fa58c22b156cddc9694fa7b47f so I put that in a separate commit. and this one: e0403e49eec371bd9817844ca8ece6760632de36 Hmm, how is the easiest way to look at what this particular commit does? Stupid question? - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Footnotes and org-export, revisited
Hi Scot, thanks for your detailed and thoughtful post. On second consideration, I really like the proposal Matt made back then, and I even like more that there is already code to do this conversion. A quick look at Paul's code indicates that (add-hook 'org-export-preprocess-hook 'muse-build-list-of-footnotes) should be enough to get his code and footnote format working in Org-mode. The only inconsistency would currently be caused by trees that are marked archive or comment, because any footnotes defined in such trees would currently still be published as well. But that could be solved by a new hook called after these trees have been removed from the temporary buffer. If Paul agrees, and if he has signed the papers with the FSF, we can integrate his code into Org-mode. - Carsten On Dec 17, 2008, at 1:52 PM, Scot Becker wrote: Dear all, I'm a new org user who recently ran across the video of Carsten's Google talk. I have been looking for something like org for years, but learning Emacs had always seemed too high a price, so I never really considered Emacs-based options. However time is a teacher, and I see now that there are plenty of other higher prices than learning Emacs, which has anyway proved easier than I thought. Org-mode is really an amazing piece of work, a highly original piece of software, and possibly just what this vim user needs. When I think how much time I spent other solutions, including vim's two (basically unmaintained and functionally feeble) outline modes, I can only resign myself to the mild shame. The following is in response to a brief thread posted to this list in October by Matthew Lundin. He described the limitations of footnotes.el, and suggested two possibilities for extending footnotes support in org-mode. [1]. The problem with Steve L. Baur's (otherwise useful) footnotes mode is that it cannot 'read' the contents of a loaded buffer. So in any given editing session, footnote numbering always starts with 1, even if you already had 1...10 in your file from a previous editing session. This is simply a limitation of the mode in its current state. I expect the package's scope was originally confined to using footnotes in plain text emails, which are generally finished in one shot. There have been some efforts to overcome this limitation by means of a patch to footnote.el [2] and a new function, footnote-init.el [3] which reads the contents of a newly loaded buffer so that the patched footnote.el 'knows' about previously placed footnotes. These particular patches may not have all the kinks worked out, however,[4] and are not part of the current CVS of Emacs 23. But someone working in Muse did write an interesting extension to Muse's footnote support. (The extension is explained here [5], and the revised version of the code is here [6]). It is basically a hook function which converts footnotes with reference names[fn:named_note] to plain, numbered footnotes, like Muse and org-mode support. It operates on a temporary buffer just before export to LaTeX or HTML, so is transparent to the user. I too would like to make use of org-mode to do more extensive footnoting than the current footnote.el easily allows. I'm not sure of the best solution. Here are the alternatives I can think of: 1. Help Baur's footnotes.el get to the point where it has no trouble with multiple editing sessions and managing the numbering of any arbitrary quantity of footnotes. This is possible in theory. But I suspect that footnotes associated with body text by simple Arabic numerals are pretty easy to mangle in a simple text system that lets you do arbitrary things with the text. Comments? 2. Adapt the Muse code mentioned above for use with org-mode. This would keep org-mode's current footnote support unchanged, but allow named footnotes while writing. Carsten suggested something like this in his response to Matthew. 3. Add named footnote support to org-mode according to Matthew's second suggestion (similar to footnote functionality in Pandoc, Multi-Markdown or ReST). This could optionally include a function for the auto-generation of short (?) unique-ish IDs to use instead of names (in a long document, giving named references to dozens of similar footnotes could itself be a source of confusion). 4. Forget org-mode for anything with any quantity of footnotes. This is Carsten's other suggestion in response to Matthew. It's possible that the practicalities of footnote handling would prove too costly to get right. He knows this much better than I. (though I'm not sure that they impair org's plan-text readability as Carsten suggests. 5. A final solution (which might also gain other advantages) could be to begin to facilitate an org-export mode to Pandoc's native plain-text syntax (an extension of Markdown).[7] Pandoc is a robust Haskell engine to convert between plain text formats. This would add a step to org-mode export, but that one step could
Re: [Orgmode] Re: Links to Org-mode FAQ
Hi Sivaram, I look forward to working with you on the FAQ. Here's my plan of action. Please let me know if there's anything else we should add to the plan: 1. Review the current FAQ. 2. Ask the mailing list for new FAQs that people would like to see added. (I.e, invite everyone to suggest new FAQs or to email them to me.) 3. Skim through old mailing list posts for potential FAQ entries. 4. Keep an eye on new posts to the mailing list for: a) Questions that are already answered on the FAQ page. b) Questions and answers that should be added to the FAQ page. Thanks! Matt Sivaram Neelakantan nsivaram@gmail.com writes: Matthew Lundin m...@imapmail.org writes: Hi Carsten, I would be happy to take charge of tending the FAQ and to keep an eye on the mailing list for (1) questions that are already answered on the FAQ (2) good answers that should be added to the FAQ. (I would, of course, also gladly defer to someone with a deeper knowledge of org-mode.) Best, Matt And I'd too would like to help in whatever fashion Matt would require help on. :-) Me being an org user and all. [...] sivaram -- ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Is it possible to export html that remains the outline feature?
Hi, list, as title :) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Links to Org-mode FAQ
Hi Carsten, Thanks for the invitation to work on the FAQ. I'm glad to find a way to contribute to the org community. Best, Matt Carsten Dominik carsten.domi...@gmail.com writes: Hi Matt, to be honest, I had hoped you'd step forward, I am sure you will do a great job with this, thanks so much. - Carsten On Dec 16, 2008, at 3:10 PM, Matthew Lundin wrote: Hi Carsten, I would be happy to take charge of tending the FAQ and to keep an eye on the mailing list for (1) questions that are already answered on the FAQ (2) good answers that should be added to the FAQ. (I would, of course, also gladly defer to someone with a deeper knowledge of org-mode.) Best, Matt Carsten Dominik carsten.domi...@gmail.com writes: Dear all, Sebastian has implemented into his org-info.js to use named anchors to link to sections of a document. This is now finally a god way to link to specific FAQ entries, without being afraid that the link may not work after the next FAQ update. So if you com across a question that can be answered with a FAQ, go to the FAQ in your webbrowser. Pressing l or L at the location will display a link to this location that you can copy and paste into the email answer to that question! You can get HTML links, and Org-style links in this way. So since this makes the FAQ more useful, if you know a good answer to a question that is to yet a FAQ, please consider to format the answer nicely and either send it to one of the people with Worg access, or get Worg access yourself and simply add it. Since we are talking about the FAQ: Is there anyone here who would like to volunteer to spear-head the FAQ, by making it his/her mission to identify good answers and making sure they will get up into the FAQ? :-) I think I deserve another volunteer for this after having fixed all those LaTeX issues even though I had hope someone else would get in and run point on this part... :-) Thanks. - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Footnotes and org-export, revisited
5. A final solution (which might also gain other advantages) could be to begin to facilitate an org-export mode to Pandoc's native plain-text syntax (an extension of Markdown).[7] Pandoc is a robust Haskell engine to convert between plain text formats. This would add a step to org-mode export, but that one step could potentially allow conversion into the wide range of formats that Pandoc supports (markdown, reStructuredText, HTML, LaTeX, ConTeXt, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki markup, groff man pages, and S5 HTML slide shows). Pandoc's syntax model already has a lot in common with org's. (Both allow LaTeX pass-through, for example). I don't know if such an export would meet the effort vs. value trade off, but I suggest it might. I would welcome an org-export mode to Pandoc's markdown. I'm currently using markdown -- Pandoc for generating pdfs via ConTeXt and editable documents for people using word processors. An org-export mode to markdown would definitely make org the dominating mode for me. Cheers, Jörg -- Prof. Jörg Hagmann-Zanolari MD University of Basel Department of Biomedicine Institute of Biochemistry and Genetics Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 267 3565 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Links to Org-mode FAQ
Matthew Lundin m...@imapmail.org writes: Hi Sivaram, I look forward to working with you on the FAQ. Here's my plan of action. Please let me know if there's anything else we should add to the plan: 1. Review the current FAQ. 2. Ask the mailing list for new FAQs that people would like to see added. (I.e, invite everyone to suggest new FAQs or to email them to me.) 3. Skim through old mailing list posts for potential FAQ entries. 4. Keep an eye on new posts to the mailing list for: a) Questions that are already answered on the FAQ page. b) Questions and answers that should be added to the FAQ page. [...] Dammit, I should have listened to the inner voice that kept saying no. :-) Looks like I have work to do on this FAQ thingy, then. Will mail privately about how to get me to do some work. sivaram -- ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [PATCH] org-mode typos
I figured it out: gitk commit Thanks, yes, these are fixes I definitely want in. - Carsten On Dec 17, 2008, at 12:48 PM, Carsten Dominik wrote: On Dec 17, 2008, at 12:37 PM, Bernt Hansen wrote: Bernt Hansen be...@norang.ca writes: Carsten Dominik domi...@science.uva.nl writes: wow, what a great job, and how well it reflects my being a terrible typist. Thanks so much. I'll take a look at them and then install. Did you change any code at all, or only docstrings? The only one that changes code is 323c9cd36c1c87fa58c22b156cddc9694fa7b47f so I put that in a separate commit. and this one: e0403e49eec371bd9817844ca8ece6760632de36 Hmm, how is the easiest way to look at what this particular commit does? Stupid question? - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] unique TODO Number
Hi, Is there a possibility to get an automatic unique numerical number for each TODO? (like a Ticketnumber) I need this for unambiguous identification in communicating with others. Thank's -- Greg ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Is it possible to export html that remains the outline feature?
anhnmncb anhnm...@sina.com writes: Bastien (2008-12-17 12:21 +0100) wrote: anhnmncb anhnm...@sina.com writes: Hi, list, as title :) Yes! Check this: http://orgmode.org/worg/code/org-info-js/ Hello Bastien, my org version is Org-mode version 6.15a, do I still need something else? I have tried your example given in the doc: (Where is that doc? I should fix it.) See http://orgmode.org/manual/Javascript-support.html for accurate doc. #+INFOJS_OPT: path:org-info.js If you set `path' to a relative path like the one above, it means you need to have the org-info.js script in the same directory that the one you put your webpages on. I suspect the problem comes from this. Better use the absolute path to http://orgmode.org/org-info.js (which is the default one.) But find that org can only export html via C-c C-e. It's okay to export with C-c C-e. HTH, -- Bastien ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Footnotes and org-export, revisited
Hi Paul, I think we can easily have both, I can do the coding based on your function, this is a small change. - Carsten On Dec 17, 2008, at 4:29 PM, Paul R wrote: Carsten If Paul agrees, and if he has signed the papers with the FSF, Carsten we can integrate his code into Org-mode. I do agree and I do have assigned copyrights to the FSF, but from the technical point of view I would prefer to see plain anonymous footnotes as explained above. I might implement it myself in case everybody agrees on it but nobody has time for it. Can others express their views on pros and cons of the two following usages : * Usage 1, anonymous footnotes Karate or karate-do is a martial art developed in the Ryukyu Islands from indigenous fighting methods and Chinese kenpō[fn:: Kenpo is the name of several martial arts]. It is primarily a striking art using punching, kicking, knee and elbow strikes and open-handed techniques such as knife-hands and ridge-hands. Grappling, locks, restraints, throws, and vital point strikes are taught in some styles. A karate practitioner is called a karateka. * Usage 2, keyword named footnotes Karate or karate-do is a martial art developed in the Ryukyu Islands from indigenous fighting methods and Chinese kenpō[fn:kenpo]. It is primarily a striking art using punching, kicking, knee and elbow strikes and open-handed techniques such as knife-hands and ridge-hands. [fn:kenpo] Kenpo is the name of several martial arts Grappling, locks, restraints, throws, and vital point strikes are taught in some styles. A karate practitioner is called a karateka. -- Paul ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [PATCH] org-mode typos
Bernt Hansen be...@norang.ca writes: Carsten Dominik domi...@science.uva.nl writes: wow, what a great job, and how well it reflects my being a terrible typist. Thanks so much. I'll take a look at them and then install. Did you change any code at all, or only docstrings? The only one that changes code is 323c9cd36c1c87fa58c22b156cddc9694fa7b47f so I put that in a separate commit. and this one: e0403e49eec371bd9817844ca8ece6760632de36 -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Footnotes and org-export, revisited
I was away from my computer for a few hours and was delighted to discover this thread. This truly is an amazing mailing list. Scot Becker scot.bec...@gmail.com writes: I'm torn. Usage 1 is harder to read. My footnotes, for example, are very long compared to your example. Of course, within emacs, this could be made much less severe with a little syntax coloring. It has the advantage that it never gets lost or otherwise mangled without your knowledge, and you don't have to wonder whether you used 'kenpo' as a reference already, and just what might be the consequences if you did. It's only liability is readability. I would agree that anonymous foonotes are more stable and reliable for authors, since they're embedded in the text and are easy to move (consisting as they do of only one part). I really like how elegant footnote markup is in LaTeX. AUCTeX solves readability problems by allowing the user to fold footnote macros and by indenting the text of footnotes when filling paragraphs. I wonder whether something similar could be implemented in in org-mode (perhaps akin to the way org-mode already hides links). Usage 2 is easier to read, which is the trend in plain-text markup these days. Pandoc, Multi-Markdown and ReST all do it this way, which isn't to say that we should. It is a little more fragile, since I might move the paragraph and forget its accompanying footnote, and it leaves the user to come up with an original reference name, which could get to be burdensome in if you try to write in an academic field which averages 3-5 footnotes per page (1 per 75 words or so). It's also more typing work. I once played around with ReST, footnote export was fairly finicky. (I'm more than willing to attribute this to my own lack of understanding). It can be tricky to think of unique labels for each footnote and to keep references in order. As I understand it, the primary rationale for labelled footnotes in simple markup is to create a source text that someone unfamiliar with the markup can read easily. Since org-mode has ASCII export capabilities and can hide markup when displaying text (e.g., hyperlinks, drawers), I wonder whether these legibility issues are quite so crucial. Best, Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [PATCH] org-mode typos
On Dec 17, 2008, at 12:37 PM, Bernt Hansen wrote: Bernt Hansen be...@norang.ca writes: Carsten Dominik domi...@science.uva.nl writes: wow, what a great job, and how well it reflects my being a terrible typist. Thanks so much. I'll take a look at them and then install. Did you change any code at all, or only docstrings? The only one that changes code is 323c9cd36c1c87fa58c22b156cddc9694fa7b47f so I put that in a separate commit. and this one: e0403e49eec371bd9817844ca8ece6760632de36 Hmm, how is the easiest way to look at what this particular commit does? Stupid question? - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
RE: [Orgmode] Org Mdoe Auto Complete Source
Hi Carsten, Just to be clear, you have to use the auto-complete.el package by Matsuyama Tomohiro. (http://www.emacswiki.org/emacs/AutoComplete) I've been able to make auto-complete work by calling the ac-start command directly, but something is happening to the post-command hooks that don't allow it to pop up. I am still trying to discern whether or not it is an issue with auto-complete, something I have done to it, org-mode or even some other emacs configuration issue. -Original Message- From: Carsten Dominik [mailto:carsten.domi...@gmail.com] On Behalf Of Carsten Dominik Sent: Wednesday, December 17, 2008 1:33 AM To: Jonathan Arkell Cc: emacs-orgmode@gnu.org Subject: Re: [Orgmode] Org Mdoe Auto Complete Source Hi Jonathan, I cannot get this to work yet, what do I need to do in make auto- complete use this? - Carsten On Dec 16, 2008, at 8:31 PM, Jonathan Arkell wrote: Hi list! I have just finished a little something to hook org mode into the auto-complete. Right now it does a verbatim copy of most of org- complete (which is bad). Carsten, would it be possible to separate the gathering of completion candidates from the actual UI, that way other completion systems can be hooked in? (Anything, Auto- Complete, etc.) Enjoy! Jonathan Arkell Sr. Web Developer Inspired by Drum + Bass, Scheme, Kawaii 402 – 11 Avenue SE Calgary, AB T2G 0Y4 t: 403.206.4377 www.criticalmass.com The information contained in this message is confidential. It is intended to be read only by the individual or entity named above or their designee. If the reader of this message is not the intended recipient, you are hereby notified that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message. auto-complete-org.el___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode The information contained in this message is confidential. It is intended to be read only by the individual or entity named above or their designee. If the reader of this message is not the intended recipient, you are hereby notified that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Footnotes and org-export, revisited
Hi Paul, thanks for this latest version! No need for you to change anything right now, let me first play with it and seen what else I might think off. I really like your idea to use [fn:label] and [fn::Full footnote text], nice syntactic sugar. - Carsten On Dec 17, 2008, at 5:32 PM, Paul R wrote: Hi Carsten Carsten Hi Paul, I think we can easily have both, I can do the coding Carsten based on your function, this is a small change. Ok so here is the latest version in my .emacs : You'll need (eval-when-compile (require 'cl)) because of rx ... When I wrote this function I wanted to try rx, but if it is annoying I can rewrite back all the regexp as strings. ; (setq muse-footnote-prefix fn:) ;; todo : handle footnotes in comments (defun muse-build-list-of-footnotes () (let ((refkey )(def )(count 0)(deb 0)(def-deb 0)(def-fin 0) (liste nil)(found nil)) (save-excursion (goto-char (point-min)) (while (re-search-forward (rx (minimal-match (seq (one-or-more not-newline) [ (group (and (eval muse-footnote-prefix) (one-or-more wordchar))) ]))) nil t) (setq found t) (incf count) (setq refkey (match-string 1)) (replace-match (number-to-string count) nil nil nil 1) (save-excursion (unless (re-search-forward (dont-compile (rx (seq bol [ (eval refkey) ] (zero-or-more blank nil t) (setq def (list (concat Unable to find footnote definition for refkey))) (signal 'quit def)) (setq deb (match-beginning 0)) (setq def-deb (match-end 0)) (re-search-forward (rx (or \n\n (seq \n[ (eval muse-footnote-prefix)) (seq (zero-or-one \n) buffer-end (setq def-fin (match-beginning 0)) (push (buffer-substring def-deb def-fin) liste) (delete-region deb def-fin) ) ) (goto-char (point-max)) (setq liste (reverse liste)) (setq count 0) (setq def (dolist (elem liste def) (incf count) (setq def (concat def [ (number-to-string count) ] (muse-publish-escape-specials-in- string elem 'document) \n\n (if found (insert (concat \n\nFootnotes:\n def)) nil) ))) ;;; -- Paul ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Footnotes and org-export, revisited
I really like how elegant footnote markup is in LaTeX. AUCTeX solves readability problems by allowing the user to fold footnote macros and by indenting the text of footnotes when filling paragraphs. I wonder whether something similar could be implemented in in org-mode (perhaps akin to the way org-mode already hides links). I do like this idea, if it's practical to implement, since it preserves readability and stability. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Is it possible to export html that remains the outline feature?
On 2008-12-17, Bastien wrote: anhnmncb anhnm...@sina.com writes: Bastien (2008-12-17 12:21 +0100) wrote: anhnmncb anhnm...@sina.com writes: Hi, list, as title :) Yes! Check this: http://orgmode.org/worg/code/org-info-js/ Hello Bastien, my org version is Org-mode version 6.15a, do I still need something else? I have tried your example given in the doc: (Where is that doc? I should fix it.) See http://orgmode.org/manual/Javascript-support.html for accurate doc. #+INFOJS_OPT: path:org-info.js If you set `path' to a relative path like the one above, it means you need to have the org-info.js script in the same directory that the one you put your webpages on. I suspect the problem comes from this. Yes, now it works, looks really great, thank you! Better use the absolute path to http://orgmode.org/org-info.js (which is the default one.) But find that org can only export html via C-c C-e. It's okay to export with C-c C-e. HTH, -- Regards, anhnmncb ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] help with checklist/shopping list
(Sorry for chiming in a week later.) I think the best way to accomplish this, in that it combines the strengths of other suggestions, is to use properties and column view. Building the structure is pretty easy since you only have to manually create the property drawer under the top-most heading. The rest are inserted automatically when the check boxes are changed while in column view mode (using S-left or S-right). Here's an implementation of your example. Switching to column view shows you the summary count (i.e., [n/m]) for to top level (here [2/8]) AND each of the sub-levels (groceries [1/4], household [1/2], office supplies [0/2]). * [2008-12-15 Mon] :PROPERTIES: :COLUMNS: %30ITEM %CHECKED{X/} :CHECKED_ALL: [ ] [X] :END: ** groceries *** bananas :PROPERTIES: :CHECKED: [ ] :END: *** apples :PROPERTIES: :CHECKED: [ ] :END: *** oranges :PROPERTIES: :CHECKED: [X] :END: *** spinach :PROPERTIES: :CHECKED: [ ] :END: ** household :PROPERTIES: :CHECKED: [1/2] :END: *** laundry soap :PROPERTIES: :CHECKED: [X] :END: *** toilet paper :PROPERTIES: :CHECKED: [ ] :END: ** office supplies :PROPERTIES: :CHECKED: [0/2] :END: *** calendar for 2009 :PROPERTIES: :CHECKED: [ ] :END: *** printer paper :PROPERTIES: :CHECKED: [ ] :END: As Carsten Dominik so eloquently wrote on 12/11/2008 2:14 AM: Hi There are technical reasons for why I cannot easily summarize all the lists. How about this trick: * [2008-12-15 Mon] [1/8] - groceries - [ ] bananas - [X] apples - [ ] oranges - [ ] spinach - household - [ ] laundry soap - [ ] toilet paper - office supplies -- - [ ] calendar for 2009 - [ ] printer paper HTH - Carsten On Dec 10, 2008, at 8:42 PM, Dennis Groves wrote: I have 8 things on the list, but only 4 are seen??? *** [2008-12-15 Mon] [0/4] groceries - [ ] bananas - [ ] apples - [ ] oranges - [ ] spinach household - [ ] laundry soap - [ ] toilet paper office supplies - [ ] calendar for 2009 - [ ] printer paper Dennis___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Seeking further clarification of org-refile-targets variable
I am having trouble understanding the help text for org-refile-targets. I don't know what a cons cell is and I would like to see some examples of customising the variable. For example, how can I specify headings of levels 1 and 2? I entered the value of (:level . N). in the customization prompt but now I get a message No refile targets. Perhaps some examples for non-Lisp programmers would be helpful. As org-mode popularity increases, the users are not necessarily Lisp-literate, and I have read messages from users willing to learn Emacs just to use org-mode! Thanks, Charles ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Moving subtrees does not work
Carsten, it seems that the newest version of Orgmode (6.15a) has a bug: When I try to move a tree/subtree to the archive (C-c C-x C-s) I get this message Wrong type argument: number-or-marker-p, nil and the tree/subtree isn't moved. The entry in the menu (Org -- Archive) doesn't work either. Schöne Grüße, Uwe ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode