Re: [Orgmode] Re: Need help publishing subdirectories
Jeff Horn jrhorn...@gmail.com wrote: I moved :htmlized-source to the bottom of the project definition and it fixed the problem. In the examples I've seen, :htmlized-source has an empty value. I hypothesize the key was seeing the next key as a value, and so wasn't picking up any subsequent keys. I think you are right: the code uses plist-get to get property values and the doc string for plist-get says: , | plist-get is a built-in function in `C source code'. | | (plist-get PLIST PROP) | | Extract a value from a property list. | PLIST is a property list, which is a list of the form | (PROP1 VALUE1 PROP2 VALUE2...). This function returns the value | corresponding to the given PROP, or nil if PROP is not one of the | properties on the list. This function never signals an error. ` apparently with no provision for a missing value. Which means that org needs some additional error checking to catch situations like this. Maybe we need a wrapper around plist-get to check things. I wonder: is it OK to use the fact that in org, all property names start with a colon, to detect missing values? Probably not, since a value can also start with a colon. I just loaded my publishing setup from a few days ago and edited every line that had :htmlized-source to :htmlized-source t and my problem is solved. Thanks so much for the help! Even if it didn't help discover the problem, I learned a good bit about debugging, and I edited my first source file, so that's something to be proud of! :-) ... and it wasn't too bad, right? But inspired guessing will beat debugging drudgery any day. Congrats, Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-mobile-use-encryption
Hi Greg, thank you very much vor putting in the time to test the encryption for MobileOrg. On Oct 13, 2010, at 2:48 PM, Greg Troxel wrote: Carsten Dominik carsten.domi...@gmail.com writes: On Oct 13, 2010, at 2:23 AM, Greg Troxel wrote: I am trying to test encryption for MobileOrg via a beta from Richard. (We're still playing the 'convince itunes to let you run code on your own phone game', so this report is preliminary about what Org itself is doing.) I have successfully viewed my org files and retrieved a captured note From the phone into emacs. This note is about release_7.01h-672-g7e29685, so I have your commit 9755e09bbcd630b6d0e20dbf6342bf1c1e66c819. I have in .emacs-local.el: (setq org-mobile-use-encryption t) (setq org-mobile-encryption-password mypasswd) and I did org-mobile-push. I found that there was an old agendas.org that was not encrypted, and it seems that org-mobile-push omits agendas.org if org-mobile-use-encryption is t, but still creates it when nil. I have not been able to reproduce this. Apparently when in encryption mode the copy of the encrypted version agendas.org fails because it's trying to go to a file named by the tramp syntax instead of interpreting it as remote: Agenda written to Org file /home/gdt/orgtmpcrypt /ssh:foo.example.com:/usr/home/gdt/ORG/agendas.org: No such file or directory 3148034372:error:02001002:system library:fopen:No such file or directory:/n0/gdt/NetBSD-5/src/crypto/dist/openssl/crypto/bio/ bss_file.c:355:fopen('/ssh:foo.example.com:/usr/home/gdt/ORG/agendas.org','w') Ah, you are using a tramp path? OK, I see from your other message that you have actually solved this issue. Thanks! I read the code and I don't follow how the invocation of copy-file is different in the encrypted case. checksums.dat is in cleartext. This seems ok, but could be a missed opportunity for some integrity protection. I have a technical reason to not encrypt it - so unless there is someone who really needs it encrypted, I want to keep it like this. That seems fine - the filenames are staying cleartext. OK. My point, not well made, was that encryption does not give you integrity protection. It seems the concern motivating this work is confidentiality, but in cryptography it's considered good practice to also provide integrity, via HMAC-SHA1 or a combined confidentiality/integrity mode. Ah, I see what you mean now. But for org files on servers we believe are not messing with them, this is probably in the 'best is the enemy of the good' category. And if we want integrity (I know, ENOPATCH), then it's probably best to do it outright, so I withdraw my complaint about checksums.dat being in cleartext. Is is also so that the file transfer is happening in two one-way street. agendas.org and the agenda files and index.org are uploaded, mobileorg.org is downloaded, and its contents are then applied locally. Seems to be little room for problems here. I'm not sure this level of paranoia is warranted, but typical encrypting filesystems also encrypt the filenames. It probably suffices to just warn the user that the filenames of org files will still be exposed in the DAV area. I have just put this information into the manual. Thanks. minor issues: ~/orgtmpcrypt seems to not always get cleaned up when I push/pull. After a push, I found it to contain my index.org, unencrypted and 644 in my homedir. Probably this should go in org-directory instead which presumably would be protected as the user wants. I did not put it into org-directory because I don't know if users have this set to an accessible place, and I don't want the push to fail because of that. I have modified the code and hope that it does now in all cases clean up the temporary file. Please let me know if you still find a case where this is not so. During a pull that got a note, emacs asked me about visiting a buffer whose file (orgcrypttmp) had changed contents. I'll see if I can reproduce that. This should hopefully go away with the changes I have now made. Thanks again. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-mobile-use-encryption
On Oct 13, 2010, at 4:02 PM, Andreas Röhler wrote: Hi, suggest to encrypt these kind of files by default. I.e. when org- mode starts action, user should be prompted for a password, be warned and informed about encryption, get a choice though. Maybe a non-encrypted test-mode may be added, so user may try it, but be warned not to store real data that way. No, we are not going to do this. We use openssl to do the encryption, which may not be available on a system. And the Android Version of MobileOrg doe not yet support encryption. I will be more verbal about security issues in the manual. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] Don't use possibly-tramp paths with openssl.
Applied, thanks. - Carsten On Oct 14, 2010, at 1:56 AM, Greg Troxel wrote: In creating agendas, follow the way all other org files are handled by encrypting locally and then using copy-file, so that remote agenda.org paths with tramp will work. --- lisp/org-mobile.el |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el index 9208d30..26e990d 100644 --- a/lisp/org-mobile.el +++ b/lisp/org-mobile.el @@ -677,8 +677,7 @@ The table of checksums is written to the file mobile-checksums. (when sumo (org-store-agenda-views)) (when org-mobile-use-encryption - (org-mobile-encrypt-file file1 file) - (delete-file file1 + (org-mobile-encrypt-and-move file1 file (defun org-mobile-encrypt-and-move (infile outfile) Encrypt INFILE locally to INFILE_enc, then move it to OUTFILE. -- 1.7.0.5 ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Need help publishing subdirectories
On Oct 13, 2010, at 8:02 PM, Jeff Horn wrote: I moved :htmlized-source to the bottom of the project definition and it fixed the problem. In the examples I've seen, :htmlized-source has an empty value. I hypothesize the key was seeing the next key as a value, and so wasn't picking up any subsequent keys. I just loaded my publishing setup from a few days ago and edited every line that had :htmlized-source to :htmlized-source t and my problem is solved. Indeed. Looking back on your example, your property list was indeed ill-formed. It must have an even number of elements, so every key needs a value. It is hard to protect against this problem. Maybe I could build a better customize interface to this variable, so that its value could be safely built in this way. Thanks to both you and Nick for the persistence to resolve this. - Carsten Thanks so much for the help! Even if it didn't help discover the problem, I learned a good bit about debugging, and I edited my first source file, so that's something to be proud of! :-) Jeff On Wed, Oct 13, 2010 at 11:23 AM, Jeff Horn jrhorn...@gmail.com wrote: (We had a bit of discussion off list. I had a fresh crack at the problem this morning, so I'm copying the list on this message.) (setq tmp-pub-dir (file-name-directory (concat pub-dir (and (string-match (regexp-quote base-dir) ftname) (substring ftname (match-end 0)) ;;; ;;; add a debug call, reeavaluate the function, do the publish and when ;;; you are dumped into the debugger, say e project-plist RET and see ;;; what :table-of-contents is set to. If it's what it's supposed to be, ;;; continue execution with c and look at the html file, both contents ;;; and modification time. If it's still wrong in terms of contents but ;;; right in terms of modification time, there is something wrong with ;;; the publishing function: you might want to step through it with ;;; edebug, checking things along the way. (debug) ;;;^ I was stopping the debug process after pressing R project-plist RET. I've finished stepping through the project with c and the project-plist contains the right project at every step, with the right settings, :table-of-contents nil and :section-numbers nil. The file modification times are correct, but the content is wrong. There are section numbers, a table of contents, and the file lacks my defined linked style sheet. Could you walk me through edebug? Simply replace (debug) above with (edebug) didn't do the trick. Thanks! Jeff -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [Babel] Small problem with tangling
Hi Eric, Eric Schulte wrote: [...] empty first line that's always inserted at the beginning of the file. What should I do to get rid of that first *empty* line? The following inhibits the insertion of blank lines on tangling. (setq org-babel-tangle-pad-newline nil) Of course, that does work as expected. Thanks for the tip. Another side-question about a little annoyance: when having just one src block to tangle in a big file, and when tangling it, Org(-Babel?) does first add IDs everywhere in my file, one for every section. Could we get rid of that? I don't even understand why one would be needed, though I could easily accept (;-)) to see an ID created in the sections containing elements to tangle. Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Worg needs some reorganizing
Hi John, John Hendy wrote: That's a great idea as well. We should definitely find something that is self-updating. I would think that really thinking through the structure of Worg and integrating that into the directory structure of the git repo would help with that? Or something like an org-generate-index function, called in the preamble of each page? Except that it should work even if we only publish one new page... Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Elementary: How to return to the main view
On 10/14/2010 03:11 AM, Umesh P N wrote: Hi, From the main view, if I click on a tag, org-mode will show only items with that tag. How to go back to the main view? I just tried it. For me, clicking on the tags of an entry will open an agenda view showing all items from my agenda files which have a superset of the tags of this entry. Org will re-use an existing agenda buffer for this if possible, otherwise it will open a new agenda buffer. You can get back to your Org file by switching buffers (C-x b RET) or killing the agenda buffer (C-x k RET). I am running Org-mode version 7.01trans (release_7.01h.226.ge238a). HTH, Jan ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [WIP] OpenOffice Exporter
On Thu, Oct 14 2010, Jambunathan K wrote: Hi Karl Karl Maihofer ignora...@gmx.de writes: For me it would be very helpful to be able to export footnotes to OpenOffice format. This is something that doesn't work via HTML-export. Do you plan to add support for footnotes? Yes, I will add support for footnotes. In the first release, I hope to support the most common (if not all of) Orgmode features *natively* in OpenOffice. *Really* looking forward to all this… Jambunathan K. ___ Emacs-orgmode mailing list Please 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 Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Elementary: How to return to the main view
On Oct 14, 2010, at 10:02 AM, Jan Böcker wrote: On 10/14/2010 03:11 AM, Umesh P N wrote: Hi, From the main view, if I click on a tag, org-mode will show only items with that tag. How to go back to the main view? I just tried it. For me, clicking on the tags of an entry will open an agenda view showing all items from my agenda files which have a superset of the tags of this entry. Org will re-use an existing agenda buffer for this if possible, otherwise it will open a new agenda buffer. You can get back to your Org file by switching buffers (C-x b RET) or killing the agenda buffer (C-x k RET). And if you do not like this way to display an agenda view, i.e. if you mostly click tags by accident, you can turn off the activation of tags as links by customizing the variable org-activate-links - Carsten I am running Org-mode version 7.01trans (release_7.01h.226.ge238a). HTH, Jan ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] full production use of org-mode: time to say thanks again!
I have now applied the first of the two patches, but not the second. Thanks Nicolas! - Carsten On Oct 11, 2010, at 8:34 AM, Nicolas Goaziou wrote: Hello, Could you try the following patch and tell me if it fixes your issue? As a side note (to maintainers), the second patch isn't really needed, but I thought, while I was at it, that it would make sense (`org-inlinetask-min-level' doesn't need to be a boolean). Regards, -- Nicolas 0001-Fix-indentation-of-text-after-an-inline-task.patch0002- inlinetask-Make-org-inlinetask-min-level-an-integer-.patch ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] full production use of org-mode: time to say thanks again!
On Oct 11, 2010, at 10:04 AM, Carsten Dominik wrote: Hi, On Oct 11, 2010, at 8:34 AM, Nicolas Goaziou wrote: Hello, Could you try the following patch and tell me if it fixes your issue? A quick test shows that things seem to work well in inlinetasks which are properly ended with an END line. There is also a dirty form of inline tasks which allows only a planning line (SCHEDULED etc) and one or several drawers directly after the task line, and then no END line is necessary. But I guess it is fair to force the END line if you do want to have proper indentation. Eric Fraga, have you tested the patch yet? Please do so when you wake up from your two-week sleep, so that we can check this in. Thanks Nicolas! I am seeing now two things that should be added: - M-RET after inline tasks should ignore the inline task and make a new entry with normal indentation This I have now implemented - Maybe I should treat inline tasks with proper END statement as a drawer and fold it? Comments? This not yet - is more complicated - Carsten As a side note (to maintainers), the second patch isn't really needed, but I thought, while I was at it, that it would make sense (`org-inlinetask-min-level' doesn't need to be a boolean). Hmmm, what happens is a user has customized this variable and it has a value nil. I guess then your patch will break things? So I think we need to keep testing the value in the code, but it is OK to change the customize type. Regards, -- Nicolas 0001-Fix-indentation-of-text-after-an-inline-task.patch0002- inlinetask-Make-org-inlinetask-min-level-an-integer-.patch - Carsten - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Auto clock-out? [7.01trans]
David Abrahams d...@boostpro.com writes: When I mark an item DONE, Org clocks me out, fantastic! When I switch an item from TODO to WAITING, it doesn't. Is there a way to get it to clock me out of an item when is switched to WAITING? Did you get a chance to read this http://doc.norang.ca/org-mode.html#Clocking Thanks and Regards Noorul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Themes Compatible with color-theme.el
Hi Carsten and Eric, Yes, I'll fix it. Best wishes, Ian. On 13/10/10 13:40, Carsten Dominik wrote: On Oct 13, 2010, at 12:08 PM, Ian Barton wrote: Hi Eric, There is a file in worg called org-color-themes.org, which contains your colour theme (railscast). However, it's not referenced by any of the other worg pages, so you couldn't find it if you didn't know it existed! Hi Ian, I take it that this is something you will fix? Thanks. - Carsten There is a short bit on org-appearance.pgp about colour themes. I am adding the notes for all the colour themes to this page and am creating a new page to host the screen shots. I want to put the screenshots on another page, so they don't slow down loading the org-appearance page. Also I want to display 200 pixel wide screen thumbnails and use the Lightbox javascript library to allow the user to see a full size popup. This involves quite a bit of fiddling about to get the page to look right and I don't want to mess up the appreance of org-appearance! -- Best wishes, Ian. Eric Schulte schulte.e...@gmail.com writes: Ian Barton i...@manor-farm.org writes: Scott Jaderholm jaderh...@gmail.com writes: http://jaderholm.com/color-themes/color-theme-colorful-obsolescence.el http://jaderholm.com/color-themes/color-theme-active.el http://jaderholm.com/color-themes/color-theme-wombat.el Please link to don't copy so that as I make changes they'll get updated. Scott Scott, Thanks for the references to your other themes. I'll make sure that I link to them instead of copying them. Hi Ian, I've previously posted my color theme to the following. http://orgmode.org/worg/org-color-themes.php Is there another worg page with a collection of color themes? Best -- Eric ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Themes Compatible with color-theme.el
Eric, Yes that's a good idea, I'll use your page and add it as a link to the org-appearance page. Ian. On 13/10/10 16:30, Eric Schulte wrote: Ian Bartoni...@manor-farm.org writes: Hi Eric, There is a file in worg called org-color-themes.org, which contains your colour theme (railscast). However, it's not referenced by any of the other worg pages, so you couldn't find it if you didn't know it existed! There is a short bit on org-appearance.pgp about colour themes. I am adding the notes for all the colour themes to this page and am creating a new page to host the screen shots. I want to put the screenshots on another page, so they don't slow down loading the org-appearance page. Also I want to display 200 pixel wide screen thumbnails and use the Lightbox javascript library to allow the user to see a full size popup. This involves quite a bit of fiddling about to get the page to look right and I don't want to mess up the appreance of org-appearance! Hi Ian, Why not use my existing org-color-themes.org as the base for your expanded color themes preview page? It currently consists of a single macro which can be used to easily add new color themes. Perhaps that macro could be the base for your usage of the Lightbox javascript library... Best -- Eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] how difficultwould it be to support zotero in org?
Jean, Even though I knew about this development at Zotero, It didn't occur to me that it might help org-Zotero integration. This is (or will be) pretty cool, when it happens. And I see that they already have the beginnings of an alpha release: http://www.zotero.org/blog/zotero-everywhere-first-look/ Scot On Wed, Oct 13, 2010 at 10:18 AM, Jean-Marie Gaillourdet j...@gaillourdet.net wrote: Hi, sorry to bring up this old thread, but there rather are rather new developments at Zotero which might interesting to people here. See below. On 03.09.2010, at 22:12, Scot Becker wrote: Another Zotero + org user here. Right now I do what Christian does: export Zotero to slightly tweaked BibTeX, and insert with RefTeX's amazingly cool reference-insertion interface (another genius piece of work by Carsten). I can think of two profitable ways to make inserting references from one's Zotero database into org-mode notes better, and one further way that org-mode could be more tightly linked with Zotero. 1) A utility (presumably part firefox plugin) which keeps a BibTeX file in sync with one of Zotero's collections. That way you don't have to do a full manual export of your Zotero collection every time you add or change something. RefTeX provides the citation insertion interface. Something similar this to exists for LyX. It doesn't sync a whole Z. collection, but creates a .bib file with the items you actually cite in your document. The author (an Emacs user) even considered generalizing it for use without LyX runing, i.e. for Emacs, but didn't find enough steam (after all, he uses LyX). (I also know that Mendeley can be made to auto-import from Zotero and to auto-export to BibTeX, but Mendeley's BibTeX export is not flexible.) Zotero.org announced a new desktop application which will use a public available read/write api to the Zotero service: With full read/write access to bibliographic data, attached files like PDFs, and the citation formatting engine, developers will be able to integrate a full range of Zotero features into their own web, mobile, and desktop applications, and users will be able to take advantage of this functionality at zotero.org. See http://www.zotero.org/blog/zoteros-next-big-step/ for more details. This should make it possible to use an official api to implement the use case described above. 2) a org-mode-specific plain-text citation mechanism, analogous to BibTeX, but useful for both LaTeX and non-LaTeX exports. It would presumably have a CSL backend, and work the way that citeproc-hs works for pandoc. Presumably it could also use a RefTeX-like interface for citation insertion. 3) Easier ways to take reading notes (in org) on items in the Zotero database, with two way linking. (Thanks already for the tips in this thread.) Regards, Jean ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Worg needs some reorganizing
On 13/10/10 16:41, Eric Schulte wrote: Dan Davisondavi...@stats.ox.ac.uk writes: Worg could do with some reorganization. It is not at all easy to find stuff in there (at least, using a web browser). I agree there is certainly room for improvement here. Maybe this sort of re-organization should be considered along with the new CSS changes. [...] This suggests to me firstly that we should do away with some of the hard directory structure and place most/all of the config/tutorial type files in a single directory. The other option I'd see to eliminating directory structures would be using something to reflect the directory structure in the title bar of the page [1]. Just a thought. Another option may be a navigation side bar reflecting the contents of the current directory bringing the web experience closer to the local git experience. Best -- Eric Footnotes: [1] I'm thinking tabs, e.g. tutorials, contributed packages, etc... See the following for an example of such a layout made using Jekyll http://epr.adaptive.cs.unm.edu/ I think that part of the problem is that worg has now grown so big (a good thing), it's quite hard to find things just by browsing. The front page is basically just a big list. Once you have browsed around for a while, it's very easy to get lost. Eric's idea of a sidebar showing where you are and making it easier to get somewhere else is a good idea. Maybe we are reaching the limits of what can be achieved using org-publish alone and should consider some other tool as well, such as jekyll? This would need to be done in a way that still allowed easy user contributions and an automated build process. Ian. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Xemacs installation, some clarification (21.4 and 21.5)
Hello It seems that even the most recent org version can be compiled either under Xemacs 21.5.X or under Xemacs 21.4.X[1], provided the following two criteria are met: - The Makefile is modified like this: , | BATCH=$(EMACS) -batch -q -no-site-file -eval \ | (setq load-path (cons (expand-file-name \./lisp/\) (cons(expand-file-name \./xemacs\) (cons \$(lispdir)\ load-path ` - org-freemind is modified by commenting out the (require 'rx)! It is important to note, that rx cannot be used. I loaded rx and tried to compile org-freemind (with require 'rx) or I included rx in the xemacs directory and run the Make file in all cases I obtained. , | While compiling org-freemind-convert-links-from-org: | !! Wrong type argument ((listp ?\[)) ` Which looks serious. In any case with this workaround some functionality is missed but you obtain a working org installation. I suggest to add this to the documentation in http://orgmode.org/Changes.html#sec-1_1_2 regards Uwe Brauer Footnotes: [1] I only tried it with mule support I am not sure about No Mule. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Xemacs installation, some clarification (21.4 and 21.5)
On Oct 14, 2010, at 12:19 PM, Uwe Brauer wrote: Hello It seems that even the most recent org version can be compiled either under Xemacs 21.5.X or under Xemacs 21.4.X[1], provided the following two criteria are met: - The Makefile is modified like this: , | BATCH=$(EMACS) -batch -q -no-site-file - eval \ | (setq load-path (cons (expand-file-name \./lisp/\) (cons(expand-file-name \./xemacs\) (cons \$(lispdir)\ load- path ` Hi Uwe, what does the (expand-file-name \./xemacs\) do? The Org distribution no longer contains an xemacs directory. - org-freemind is modified by commenting out the (require 'rx)! This is annoying. It is possible to expand the rx calls and inline the resulting regular expressions, but I guess Lennart would not want me to do this. For me, rx regexps are more difficult to read than string ones because I have been working with the string represenations for such a long time. You know what, I am going to ask Lennart if he would object I'll get back to you - Carsten It is important to note, that rx cannot be used. I loaded rx and tried to compile org-freemind (with require 'rx) or I included rx in the xemacs directory and run the Make file in all cases I obtained. , | While compiling org-freemind-convert-links-from-org: | !! Wrong type argument ((listp ?\[)) ` Which looks serious. In any case with this workaround some functionality is missed but you obtain a working org installation. I suggest to add this to the documentation in http://orgmode.org/Changes.html#sec-1_1_2 regards Uwe Brauer Footnotes: [1] I only tried it with mule support I am not sure about No Mule. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-freemind.el and rx
Hi Lennart, I am trying to keep org-mode also workable with XEmacs. One problem here is that XEmacs does not have rx. Would you object if I replace the rx macro calls with the string representations of the regular expressions in org-freemind.el? Michael, an alternative would be to get rx ported to and included into XEmacs. Is anything like this in the works, or would you like to look into this? Cheers - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Xemacs installation, some clarification (21.4 and 21.5)
On Thu, 14 Oct 2010 12:52:55 +0200, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Carsten, Hi Uwe, what does the (expand-file-name \./xemacs\) do? The Org distribution no longer contains an xemacs directory. Oops, I just downloades 7.01h and it does, here is the structure: -rw-r--r-- 1 oub oub 69590 Aug 7 09:00 Changes.org drwxr-xr-x 5 oub oub56 Aug 7 09:00 contrib drwxr-xr-x 2 oub oub 4096 Aug 7 09:00 doc drwxr-xr-x 2 oub oub 4096 Oct 14 12:00 lisp -rw-r--r-- 1 oub oub 12413 Oct 14 13:09 Makefile -rw-r--r-- 1 oub oub 1308 Aug 7 09:00 README -rw-r--r-- 1 oub oub 1007 Aug 7 09:00 request-assign-future.txt drwxr-xr-x 2 oub oub48 Aug 7 09:00 xemacs So I don't understand You know what, I am going to ask Lennart if he would object I'll get back to you Good Uwe ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Xemacs installation, some clarification (21.4 and 21.5)
On Oct 14, 2010, at 1:12 PM, Uwe Brauer wrote: On Thu, 14 Oct 2010 12:52:55 +0200, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Carsten, Hi Uwe, what does the (expand-file-name \./xemacs\) do? The Org distribution no longer contains an xemacs directory. Oops, I just downloades 7.01h and it does, here is the structure: -rw-r--r-- 1 oub oub 69590 Aug 7 09:00 Changes.org drwxr-xr-x 5 oub oub56 Aug 7 09:00 contrib drwxr-xr-x 2 oub oub 4096 Aug 7 09:00 doc drwxr-xr-x 2 oub oub 4096 Oct 14 12:00 lisp -rw-r--r-- 1 oub oub 12413 Oct 14 13:09 Makefile -rw-r--r-- 1 oub oub 1308 Aug 7 09:00 README -rw-r--r-- 1 oub oub 1007 Aug 7 09:00 request-assign-future.txt drwxr-xr-x 2 oub oub48 Aug 7 09:00 xemacs So I don't understand I did remove this directory after th 7.01 release, so it will no longer be in 7.02. It is no longer needed, our noutline.el is now in XEmacs. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Recurring scheduled items appearing in schedule
Hi Matt, Matt Lundin wrote: Yes (as you have noted). Anything with an active timestamp (SCHEDULED, DEADLINE, and appointments) will show up in the agenda. Each type, however, has a different behavior. There is an FAQ on this: http://orgmode.org/worg/org-faq.php#scheduled-vs-deadline-vs-timestamp I don't who's the author of it, but -- maybe since the new lists --, the structure is wrong in that section: all 3 items are numbered 1, instead of the sequence 1 2 3. Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Insert link to recently captured Note?
Nathan Neff nathan.n...@gmail.com writes: On Wed, Oct 13, 2010 at 1:29 AM, Nathan Neff nathan.n...@gmail.com wrote: I'd like to ask the mailing list how they handle the following situation: I'm clocked into FOO below, then spend about 20 minutes on something that's somewhat related to FOO, but is not really a direct sub-task of FOO, so I probably want to refile it later. So, I open org-capture and create some notes about * BAR, and file it away. Now, I'm back in * FOO and want to quickly put a note about * BAR in my FOO task. So, ideally my structure would look like this: -- some file * FOO Got caught up with [[link to * BAR]] -- notes.org * BAR blew 30 minutes on this problem. I might file this headline somewhere, but I want to be able to link from * FOO to this new note I've found variables like org-capture-bookmark-last-stored-position, but I think that it contains just the filename (like notes.org). What I probably need is a way to create an ID for the newly captured heading, and then store a link to it on the clipboard or something. Okay, I found out how to do create a unique ID, by defining a template like this: org-capture-templates '((t Task entry (file ~/todo.txt) * foo\n :PROPERTIES:\n ID: %(shell-command-to-string \uuidgen\) :END:) ) Now, I just need a way to quickly insert a link to this newly created ID. Hi Nathan, If you just visit BAR, do C-c l to copy a link this creates an unique ID in BAR which the link uses (assuming you have org-id enabled in your org-modules) Then visit FOO and insert the link with C-c C-l and you're done. HTH, Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-freemind.el and rx
Carsten Dominik carsten.domi...@gmail.com writes: Hi Lennart, I am trying to keep org-mode also workable with XEmacs. One problem here is that XEmacs does not have rx. Would you object if I replace the rx macro calls with the string representations of the regular expressions in org-freemind.el? Michael, an alternative would be to get rx ported to and included into XEmacs. Is anything like this in the works, or would you like to look into this? I think the solution is to do rx (I sure hate textual regexps) - which is on my list, but will likely be a while. -- Cheers =8-} Mike Friede, Völkerverständigung und überhaupt blabla ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Recurring scheduled items appearing in schedule
On Oct 14, 2010, at 1:27 PM, Sébastien Vauban wrote: Hi Matt, Matt Lundin wrote: Yes (as you have noted). Anything with an active timestamp (SCHEDULED, DEADLINE, and appointments) will show up in the agenda. Each type, however, has a different behavior. There is an FAQ on this: http://orgmode.org/worg/org-faq.php#scheduled-vs-deadline-vs- timestamp I don't who's the author of it, but -- maybe since the new lists --, the structure is wrong in that section: all 3 items are numbered 1, instead of the sequence 1 2 3. Fixed, thanks. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Wanted: org-publish-org-to-ascii
Am 13.10.2010 21:12, schrieb Juan Pechiar: On Wed, Oct 13, 2010 at 07:59:23PM +0200, Manuel Danzl wrote: I'm a happy org-mode user since a few month's and I'm using org-publish to write on some work related documentation. Now my collegues asked me to export the docs not only to html but also to plain text! Unfortunately, org-mode currently lacks a publishing function exporting to ascii, so I kindly ask you to implement it. Copying from the definition for org-publish-org-to-html: #+BEGIN_SRC: emacs-lisp (defun org-publish-org-to-ascii (plist filename pub-dir) Publish an org file to ASCII. See `org-publish-org-to' to the list of arguments. (org-publish-with-aux-preprocess-maybe (org-publish-org-to ascii plist filename pub-dir))) #+END_SRC you can even use utf8 instead of ascii. Then use the newly defined org-publish-org-to-ascii as the :publishing-function in your publish project. Not tested, you try it :-) Regards, .j. That did the job! Thanks Juan. I can now publish to html and txt. Very nice. Sorry I've created a lot of confusion, cause some people thought, I was talking about the =export= function, not the =publish= function. Thanks for all the replies though. I even Manuel ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Wanted: org-publish-org-to-ascii
On Oct 14, 2010, at 1:40 PM, Matthias Danzl wrote: Am 13.10.2010 21:12, schrieb Juan Pechiar: On Wed, Oct 13, 2010 at 07:59:23PM +0200, Manuel Danzl wrote: I'm a happy org-mode user since a few month's and I'm using org- publish to write on some work related documentation. Now my collegues asked me to export the docs not only to html but also to plain text! Unfortunately, org-mode currently lacks a publishing function exporting to ascii, so I kindly ask you to implement it. Copying from the definition for org-publish-org-to-html: #+BEGIN_SRC: emacs-lisp (defun org-publish-org-to-ascii (plist filename pub-dir) Publish an org file to ASCII. See `org-publish-org-to' to the list of arguments. (org-publish-with-aux-preprocess-maybe (org-publish-org-to ascii plist filename pub-dir))) #+END_SRC Good idea, I have added these functions to org-publish.el Thanks. - Carsten you can even use utf8 instead of ascii. Then use the newly defined org-publish-org-to-ascii as the :publishing-function in your publish project. Not tested, you try it :-) Regards, .j. That did the job! Thanks Juan. I can now publish to html and txt. Very nice. Sorry I've created a lot of confusion, cause some people thought, I was talking about the =export= function, not the =publish= function. Thanks for all the replies though. I even Manuel ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Need help publishing subdirectories
Thanks so much for the help! Even if it didn't help discover the problem, I learned a good bit about debugging, and I edited my first source file, so that's something to be proud of! :-) ... and it wasn't too bad, right? But inspired guessing will beat debugging drudgery any day. It wasn't too bad. You've been great, and I learned something, so my headaches weren't in vain! -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Auto clock-out? [7.01trans]
Hi David, You can use org-after-todo-state-change-hook to implement this. - Carsten On Oct 13, 2010, at 8:05 PM, David Abrahams wrote: When I mark an item DONE, Org clocks me out, fantastic! When I switch an item from TODO to WAITING, it doesn't. Is there a way to get it to clock me out of an item when is switched to WAITING? Thanks, -- Dave Abrahams BoostPro Computing http://www.boostpro.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Update for habit documentation
Applied, thanks! - Carsten On Oct 13, 2010, at 9:51 PM, Robert Horn wrote: On 09/29/2010 12:07 PM, Carsten Dominik wrote: Hi Robert, would you like to formulate a patch to org.texi? This is my proposed patch. I hope I've done this right. *** org.texi2010-10-06 09:06:20.0 -0400 --- org.texi-original 2010-07-21 12:42:48.0 -0400 *** *** 3809,3818 @item The property @code{STYLE} is set to the value @code{habit}. @item ! The TODO has a scheduled date, usually with a @code{.+} style repeat interval. ! A @code{++} style may be appropriate for habits with time constraints, e.g., ! must be done on weekends, or a @code{+} style for an unusual habit that can ! have a backlog, e.g., weekly reports. @item The TODO may also have minimum and maximum ranges specified by using the syntax @samp{.+2d/3d}, which says that you want to do the task at least every --- 3809,3815 @item The property @code{STYLE} is set to the value @code{habit}. @item ! The TODO has a scheduled date, with a @code{.+} style repeat interval. @item The TODO may also have minimum and maximum ranges specified by using the syntax @samp{.+2d/3d}, which says that you want to do the task at least every - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: with-parsed-tramp-file-name
Hi Austin, Austin F. Frank austin.fr...@gmail.com writes: On Thu, Sep 30 2010, Dan Davison wrote: Just btw, I use Org every day at the moment (with emacs24) to execute code (mostly R) on remote machines. The method I use is to store all Org files locally, and use the :dir header argument to specify the machine on which to run R, e.g. At some point I was (naively?) worried about the portability of this kind of path. What portability concerns did/do you have? Additionally, I do sometimes want to run things locally, like if I'm offline. With :dir that is easy: either alter the :dir header arg so that it explicitly points to a local path, or remove it entirely and allow it to default to default-directory. Like other babel parameters, :dir can be set at various levels: as a header arg, in an Org property, in a #+babel: line, in org-babel-default-header-args:LANG, or in org-babel-default-header-args. In fact, since babel header args can be lisp forms which are eval'd, then a good solution may be to use an elisp variable as a flag with which we can switch between local and remote execution (please pull, as there was a bug preventing lisp forms being used like this in properties): --8---cut here---start-8--- * local/remote switching :PROPERTIES: :dir: (if dan/local-p . /davi...@oak:) :results: output :END: src_emacs-lisp{(setq dan/local-p t)} #+begin_src sh hostname pwd #+end_src #+results: : Luscinia : /home/dan src_emacs-lisp{(setq dan/local-p nil)} #+begin_src sh hostname pwd #+end_src #+results: : oak : /home/davison --8---cut here---end---8--- Otoh aIui your workflow involves maintaining Org source files on a remote machine, therefore it is only possible to work offline if you have a local copy. I find it works well to keep the Org source files locally, and only use the remote machine when necessary for execution and access to remote data files. Because a file that is opened over TRAMP usually transparently starts processes over TRAMP, and because it's less typing, and because of my untested portability concern, I have stuck to using the edit-and-execute over TRAMP method, with all paths defined relative to the edited file. The two methods are very closely related however, and I certainly want Babel to work correctly using both methods. The :dir method basically does (let ((default-directory dir-header-arg-value)) ... evaluate org babel code as normal ...) which is very similar to the effect of working with an Org file opened via tramp on a remote machine. #+babel: :dir /davi...@oak.well.ox.ac.uk:~/bench [...] #+begin_src R system(hostname, intern=TRUE) #+end_src #+results: : oak Do you get the same error evaluating R remotely using this method? I do, when using the previously-reported config file. Have you made any progress understanding what was going on with the error below? I just found myself suffering from a similar error (invalid function `with-parsed-tramp-file-name') and it turned out to be because I had compiled the Org files yesterday. After running `make clean' it went away. Not that that is a satisfactory solution of course. Question: we have (declare-function with-parsed-tramp-file-name tramp (filename var rest body)) but is it correct to use declare-function on a macro? That might be the problem? What's your emacs version? GNU Emacs 24.0.50.7 (powerpc-apple-darwin8.11.0, NS apple-appkit-824.48) of 2010-09-30 I'm also using emacs24 but my git HEAD is at 55590b86 (May 18 2010) because I find the X clipboard interaction to be broken under ubuntu/gnome in recent emacs24 (haven't tested for a few weeks though). Dan I don't see tramp-sh in emacs23; I do see it in emacs24. Yup, I use emacs24 built from a checkout from the git mirror of the bzr sources. How about we test this simple source block: #+begin_src R system(hostname, intern=TRUE) #+end_src in a file on the remote machine opened using C-x C-f with the /u...@machine:path/to/file syntax, with this minimal config: (add-to-list 'load-path /PATH/TO/ess/lisp) (require 'ess-site) (add-to-list 'load-path /PATH/TO/org-mode/lisp) (require 'org-install) (setq debug-on-error t) (org-babel-do-load-languages 'org-babel-load-languages '((R . t))) I suspect part of the problem is to do with those (require tramp...) lines in your config. Could you try without those lines, and without (add-to-list 'tramp-remote-path 'tramp-own-remote-path) I can try this for debugging, but I do need that configuration option eventually. I build R and install R packages within my home directory on the server in question. Without 'tramp-own-remote-path my R packages aren't found by the R process. Also, this Instead, could you try (setq org-babel-R-command /PATH/TO/R/EXECUTABLE --slave --no-save) is not a portable solution, as on my local machine I use /usr/local/bin/R and on the remote
[Orgmode] Re: [Babel] Small problem with... previewing
Hi Eric, Eric Schulte wrote: The following inhibits the insertion of blank lines on tangling. (setq org-babel-tangle-pad-newline nil) That works for the tangled file, but not for the preview buffer (run with =C-c C-v C-v=). Test it on the following: #+begin_src sh :results output :exports results grep indAllocType ../../champs.csv |\ iconv -f LATIN1 -t UTF8 |\ tr [] | | cut -d | -f 2 | cut -d -f 2- |\ sed 's%, %\n%g' #+end_src Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Lisp error: (wrong-type-argument stringp nil)
Hi Sebastian, do you have agenda-follow-mode on? Also, can you please hit the bug again in the debugger and then press e m RET and let me know what the debuffer reports? This should retrieve the value of m. One possible reason to get this bug is to kill the buffer one of one of the agenda files and then to revisit it. The marker will then not be nil, but it will point nowhere Thanks. - Carsten On Oct 13, 2010, at 4:57 PM, Sébastien Vauban wrote: Hello, For some reasons, sometimes the agenda view works normally, sometimes not. When not, I have the following error when moving (with arrow down) from line to line: #+begin_src emacs-lisp Debugger entered--Lisp error: (wrong-type-argument stringp nil) set-buffer(nil) (if (markerp m) (set-buffer (marker-buffer m))) (save-excursion (if (markerp m) (set-buffer ...)) (save-excursion (goto-char ...) (org-display-outline-path t))) (org-with-point-at m (org-display-outline-path t)) (if (and m org-agenda-show-outline-path) (org-with-point-at m (org- display-outline-path t))) (let ((m ...)) (if (and org-agenda-follow-mode m) (org-agenda- show)) (if (and m org-agenda-show-outline-path) (org-with-point-at m ...))) org-agenda-do-context-action() org-agenda-next-line() call-interactively(org-agenda-next-line nil nil) #+end_src I don't understand the cause of this, moreover as I have the linked file open in my Emacs. Of course, since I've just reinstalled my Emacs, Org, and so on, on a new Windows setup, I have many small differences with before. Someone would have an idea for this? Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [Babel] Debugging shell code that misbehaves
#+TITLE: Debugging shell code that misbehaves #+DATE: 2010-10-14 #+LANGUAGE: en_US * Use case Let's say that: - This file is in =~/Client/Spec= - I'm working on such a chunk of code: #+begin_src sh :results output :exports results grep indAllocType ../Ontology/champs.csv |\ iconv -f LATIN1 -t UTF8 |\ tr [] | | cut -d | -f 2 | cut -d -f 2- |\ sed 's%, %\n%g' #+end_src and that, when executing it, I've got an error with not enough context for me to understand what's the problem is. Sneak preview: under Cygwin, the =to= language (of the =iconv= command) must be =UTF-8= in the above case (with a dash). * Debug it So, in order to debug, I decide to add a =session= argument: #+begin_src sh :results output :exports results :session sva grep indAllocType ../Ontology/champs.csv |\ iconv -f LATIN1 -t UTF8 |\ tr [] | | cut -d | -f 2 | cut -d -f 2- |\ sed 's%, %\n%g' #+end_src and, there, something totally different is occurring: =grep= is not finding the file anymore. Why? Because adding the session argument makes the code executed from my *home directory*, while it was executed from the *document's directory* in the first place. So, this is not the right way to debug... as *conditions do change*. * Solution? What's the right solution for such a case? - Putting a full path to the file =champs.csv= (instead of the relative one) is not OK for me, as all of this is under SVN, and I want this to be executable on someone's else PC (even if placed somewhere else). - Add an explicit =cd= to the right place, before the commands execute. Not possible, for the same reason as above. Is there some natural way to work around this? Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-freemind.el and rx
I think the solution is to do rx (I sure hate textual regexps) - which is on my list, but will likely be a while. Here is an initial attempt at porting rx to xemacs: http://www.broadinstitute.org/~ilya/rx.el Not fully tested so please test it. ilya ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] paralyzing bug: orgmode typeface gibberish
On Oct 13,2010, at 7:51 PM, Jeff Horn wrote: I surmise it's a font-lock or faces issue. But I don't know enough about that sort of thing to help much... Maybe examine the faces? Customize group org-faces. See if the font is set to webdings, dingbats, or something similar. I had already looked at my faces customizations and couldn't see anything usual about them. Then I went ahead and reset all faces customization to defaults. No change in this odd behavior. But Thank you, Jeff. Your note prompted me to return to this line of investigation. I decided to just trash my customization file altogether as a test. Lo and behold, that fixed the problem. I have to rebuild my customizations, but that is a solvable problem. I still have no idea how this came about, why there was nothing visible wrong with the settings, and why resetting them from within Aquamacs didn't fix it. But, good enough! Thank you, again. — Michael On Wed, Oct 13, 2010 at 7:59 PM, Michael Gilbert m...@gilbert.org wrote: My setup: Aquamacs 2.1 (Emacs 23), Orgmode 7.01h. This came about a few minutes ago, after a routine reboot. When set to org-mode, my buffers now display some gibberish typeface that I don't recognize (forgive the attachment): Same buffer, when flipped to text-mode: I am totally lost as to how to approach this. And, after a year of entwining myself deeper and deeper into org-mode, I am dead in the water. Maybe I will go take a walk. I understand there is an Outside World to visit. Anyway, any thoughts? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Wanted: org-publish-org-to-ascii
Copying from the definition for org-publish-org-to-html: #+BEGIN_SRC: emacs-lisp (defun org-publish-org-to-ascii (plist filename pub-dir) Publish an org file to ASCII. See `org-publish-org-to' to the list of arguments. (org-publish-with-aux-preprocess-maybe (org-publish-org-to ascii plist filename pub-dir))) #+END_SRC Good idea, I have added these functions to org-publish.el Thanks. - Carsten Recent pull (about 15 minutes ago) doesn't have the function defined. What's the name? -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Lisp error: (wrong-type-argument stringp nil)
Carsten Dominik, Carsten Dominik wrote: I don't understand the cause of this, moreover as I have the linked file open in my Emacs. Of course, since I've just reinstalled my Emacs, Org, and so on, on a new Windows setup, I have many small differences with before. Someone would have an idea for this? do you have agenda-follow-mode on? Nope. I only use that once in a month, when checking clock times and description of tasks. Not enabled in yesterday's session. Also, can you please hit the bug again in the debugger and then press e m RET and let me know what the debuffer reports? This should retrieve the value of m. One possible reason to get this bug is to kill the buffer one of one of the agenda files and then to revisit it. The marker will then not be nil, but it will point nowhere I killed one of the org-agenda-files, and moved the cursor on it. I could reproduce the same problem as yesterday. Entering debugger... --8---cut here---start-8--- Debugger entered--Lisp error: (wrong-type-argument stringp nil) set-buffer(nil) (if (markerp m) (set-buffer (marker-buffer m))) (save-excursion (if (markerp m) (set-buffer ...)) (save-excursion (goto-char ...) (org-display-outline-path t))) (org-with-point-at m (org-display-outline-path t)) (if (and m org-agenda-show-outline-path) (org-with-point-at m (org-display-outline-path t))) (let ((m ...)) (if (and org-agenda-follow-mode m) (org-agenda-show)) (if (and m org-agenda-show-outline-path) (org-with-point-at m ...))) org-agenda-do-context-action() org-agenda-next-line() call-interactively(org-agenda-next-line nil nil) --8---cut here---end---8--- =e m RET= displays: #marker in no buffer Though, here and now, pressing =g= resolves the problem. Agenda is refreshed, with the missing file being reloaded, and I can once again move and click on any line of the agenda. Yesterday, there were 2 differences: - =g= did not solve anything - all the agenda lines were bugging... Unluckily, I don't enough context now to be able to reproduce that exact same problem as of yesterday. I said it only occurred a couple of times, over a couple of days. Thanks! Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-freemind.el and rx
On Thu, 14 Oct 2010 , Ilya Shlyakhter ilya_...@alum.mit.edu wrote: I think the solution is to do rx (I sure hate textual regexps) - which is on my list, but will likely be a while. Here is an initial attempt at porting rx to xemacs: http://www.broadinstitute.org/~ilya/rx.el Thanks for the port!!! Not fully tested so please test it. I tested it under Xemacs 21.4, - good news it compiles fine, since delete-dups is now defined. - bad news org-freemind does not compile when (require 'rx) is used, error message is attached. Looks serious maybe Mike can say something. Uwe free-bug Description: Binary data ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] 7.01h problems under Xemacs 21.4.X: submit bug report does not work
Hello Unfortunately I found 2 bugs already - report does not work Error message is attached Uwe Brauer org-submit Description: Binary data ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] 7.01 Xemacs 21.4.22: decompose-region is not known
Hello Since I can't submit a bug report I attach the error trace when I try to open a file in org mode: Uwe Brauer org-decompose-region Description: Binary data ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-freemind.el and rx
Michael Sperber sper...@deinprogramm.de writes: Carsten Dominik carsten.domi...@gmail.com writes: Hi Lennart, I am trying to keep org-mode also workable with XEmacs. One problem here is that XEmacs does not have rx. Would you object if I replace the rx macro calls with the string representations of the regular expressions in org-freemind.el? Michael, an alternative would be to get rx ported to and included into XEmacs. Is anything like this in the works, or would you like to look into this? I think the solution is to do rx (I sure hate textual regexps) - which is on my list, but will likely be a while. I took a quick look, and it's failing byte-compilation because in rx-any-condense-range: (defun rx-any-condense-range (args) Condense by side effect ARGS as range for Rx `any'. (let (str l) ;; set STR list of all strings ;; set L list of all ranges (mapc (lambda (e) (cond ((stringp e) (push e str)) ((numberp e) (push (cons e e) l)) (t (push e l args) ;; condense overlapped ranges in L (let ((tail (setq l (sort l #'car-less-than-car))) d) 'car-less-than-car is signalling apply(debug error (wrong-type-argument listp ?\[)) l is (?\ ?\[) at this point, and I don't think you can call #'car on either of those 2 elements. Either this code meant to use #', or the (t (push e l)) is wrong, or we've discovered another difference between GNU Emacs and XEmacs :) Regards Robert ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Worg needs some reorganizing
John Hendy jw.he...@gmail.com writes: Great topic. I agree. This will be quite the overhaul! Perhaps we should propose some type of organizing scheme? By level of usage (beg, intermediate, adv?), by functional use (notes, todos, exporting, math, babel?), etc.? Just some ideas. If one's going to reorganize, might as well do it to the max! Maybe if these different organizational schema (usage level, function, etc...) were captured as tags in the Org-mode files, then the respective indices could be generated as part of the automated publishing. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [Babel] Small problem with tangling
Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Eric, Eric Schulte wrote: [...] empty first line that's always inserted at the beginning of the file. What should I do to get rid of that first *empty* line? The following inhibits the insertion of blank lines on tangling. (setq org-babel-tangle-pad-newline nil) Of course, that does work as expected. Thanks for the tip. Another side-question about a little annoyance: when having just one src block to tangle in a big file, and when tangling it, Org(-Babel?) does first add IDs everywhere in my file, one for every section. Could we get rid of that? I don't even understand why one would be needed, though I could easily accept (;-)) to see an ID created in the sections containing elements to tangle. Hi Seb, This is caused by the tangling code calling `org-store-link' on every code block, which is useful because we sometimes want to store links in the tangled code for jumping back from the code to the relevant place in the original org-mode file. `org-store-link' is called interactively, and it will insert ID values according to the value of `org-link-to-org-use-id', which defaults to `create-if-interactive-and-no-custom-id'. I suppose you could change the value of this variable which should avoid the insertion of custom IDs. Best -- Eric Best regards, Seb ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [Babel] Debugging shell code that misbehaves
Sébastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: #+TITLE: Debugging shell code that misbehaves #+DATE: 2010-10-14 #+LANGUAGE: en_US * Use case Let's say that: - This file is in =~/Client/Spec= - I'm working on such a chunk of code: #+begin_src sh :results output :exports results grep indAllocType ../Ontology/champs.csv |\ iconv -f LATIN1 -t UTF8 |\ tr [] | | cut -d | -f 2 | cut -d -f 2- |\ sed 's%, %\n%g' #+end_src and that, when executing it, I've got an error with not enough context for me to understand what's the problem is. Sneak preview: under Cygwin, the =to= language (of the =iconv= command) must be =UTF-8= in the above case (with a dash). * Debug it So, in order to debug, I decide to add a =session= argument: #+begin_src sh :results output :exports results :session sva grep indAllocType ../Ontology/champs.csv |\ iconv -f LATIN1 -t UTF8 |\ tr [] | | cut -d | -f 2 | cut -d -f 2- |\ sed 's%, %\n%g' #+end_src and, there, something totally different is occurring: =grep= is not finding the file anymore. Why? Because adding the session argument makes the code executed from my *home directory*, while it was executed from the *document's directory* in the first place. Hi Seb, This would be a bug. For me (ubuntu), the session does start up in the document's directory. Perhaps the emacs shell session behaves differently on your operating system (cygwin?)? So, this is not the right way to debug... as *conditions do change*. but should not * Solution? What's the right solution for such a case? Fix the bug. But failing that, - Putting a full path to the file =champs.csv= (instead of the relative one) is not OK for me, as all of this is under SVN, and I want this to be executable on someone's else PC (even if placed somewhere else). - Add an explicit =cd= to the right place, before the commands execute. Not possible, for the same reason as above. does it help to use a :dir header argument to specify default-directory for the session? Dan Is there some natural way to work around this? Best regards, Seb ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Update for habit documentation
On 09/29/2010 12:07 PM, Carsten Dominik wrote: Hi Robert, would you like to formulate a patch to org.texi? This is my proposed patch. I hope I've done this right. *** org.texi2010-10-06 09:06:20.0 -0400 --- org.texi-original 2010-07-21 12:42:48.0 -0400 *** *** 3809,3818 @item The property @code{STYLE} is set to the value @code{habit}. @item ! The TODO has a scheduled date, usually with a @code{.+} style repeat interval. ! A @code{++} style may be appropriate for habits with time constraints, e.g., ! must be done on weekends, or a @code{+} style for an unusual habit that can ! have a backlog, e.g., weekly reports. @item The TODO may also have minimum and maximum ranges specified by using the syntax @samp{.+2d/3d}, which says that you want to do the task at least every --- 3809,3815 @item The property @code{STYLE} is set to the value @code{habit}. @item ! The TODO has a scheduled date, with a @code{.+} style repeat interval. @item The TODO may also have minimum and maximum ranges specified by using the syntax @samp{.+2d/3d}, which says that you want to do the task at least every ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [Babel] Small problem with... previewing
Sébastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: Hi Eric, Eric Schulte wrote: The following inhibits the insertion of blank lines on tangling. (setq org-babel-tangle-pad-newline nil) That works for the tangled file, but not for the preview buffer (run with =C-c C-v C-v=). Test it on the following: #+begin_src sh :results output :exports results grep indAllocType ../../champs.csv |\ iconv -f LATIN1 -t UTF8 |\ tr [] | | cut -d | -f 2 | cut -d -f 2- |\ sed 's%, %\n%g' #+end_src Hi Seb, That should be fixed now. Dan Best regards, Seb ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [Babel] Small problem with... previewing
Ah, Thanks for pointing this out, this was actually a small issue in the shell specific body expansion (it looks like Dan and I have both fixed this in the last 5 minutes), it should now be fixed and strapped down with a unit test. Best -- Eric Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Eric, Eric Schulte wrote: The following inhibits the insertion of blank lines on tangling. (setq org-babel-tangle-pad-newline nil) That works for the tangled file, but not for the preview buffer (run with =C-c C-v C-v=). Test it on the following: #+begin_src sh :results output :exports results grep indAllocType ../../champs.csv |\ iconv -f LATIN1 -t UTF8 |\ tr [] | | cut -d | -f 2 | cut -d -f 2- |\ sed 's%, %\n%g' #+end_src Best regards, Seb ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Worg needs some reorganizing
On Thu, Oct 14, 2010 at 8:09 AM, Eric Schulte schulte.e...@gmail.comwrote: John Hendy jw.he...@gmail.com writes: Great topic. I agree. This will be quite the overhaul! Perhaps we should propose some type of organizing scheme? By level of usage (beg, intermediate, adv?), by functional use (notes, todos, exporting, math, babel?), etc.? Just some ideas. If one's going to reorganize, might as well do it to the max! Maybe if these different organizational schema (usage level, function, etc...) were captured as tags in the Org-mode files, then the respective indices could be generated as part of the automated publishing. Ohhh -- that's fantastic. Categorize so that each entry can be found in multiple ways. I really like that. Somewhat of a blend between wiki intra-linking and bloggish tag cloud browsability? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] blorgit build
I cloned from the repo and after 'rake new' rake aborted! undefined method `tableize' for Blog:String ./backend/active_file/lib/active_file/base.rb:17:in `inherited' ./backend/blog.rb:1 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' ./backend/init.rb:3 ./backend/init.rb:3:in `each' ./backend/init.rb:3 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' ./blorgit.rb:9 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' /home/stormwatch/src/blorgit/Rakefile:1 /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in `load' /usr/bin/rake:19 and line no. 17 of base.rb reads: base.location = [base.name.tableize.to_s, *] Could anyone with Ruby skills help me please? Is blorgit still developed? -- Ezequiel Birman ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Wanted: org-publish-org-to-ascii
Matthias Danzl mdanzl1 at aol.com writes: That did the job! Thanks Juan. I can now publish to html and txt. Very nice. How are you calling the function? I'm not familiar with what the plist parameter must be set to, at a minimum, for the call to work: (require 'org-publish) ;; (defun org-publish-org-to-utf8 (plist filename pub-dir) (org-publish-org-to-utf8 nil /home/myuser/org/myfile.org /tmp) Thanks, Jeff ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-freemind.el and rx
On Thu, Oct 14, 2010 at 12:57 PM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Lennart, I am trying to keep org-mode also workable with XEmacs. One problem here is that XEmacs does not have rx. Would you object if I replace the rx macro calls with the string representations of the regular expressions in org-freemind.el? If you do, please keep the rx code as comments so we can get back to it later. Michael, an alternative would be to get rx ported to and included into XEmacs. Is anything like this in the works, or would you like to look into this? Cheers - Carsten ___ Emacs-orgmode mailing list Please 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-capture
I was trying to experiment for the first time using org-capture together with w3m today, and I get an error. I invoke org-capture, and was pleased to find that it built me a buffer just fine, and made an org link for the URL of the w3m buffer. So far, so good. Unfortunately, when I try to save the buffer, either with C-c C-c or C-c C-w, I get an error. The error is in org-capture-bookmark-last-stored-position. Here: (defun org-capture-bookmark-last-stored-position () Bookmark the last-captured position. (let* ((where (org-capture-get :position-for-last-stored 'local)) ) WHERE gets bound to NIL, the return of ORG-CAPTURE-GET, causing an error. I'm quite prepared to believe that I have this horribly misconfigured, since I really didn't configure it at all, but it's disappointing that the buffer creation works so well without configuration, but leaves me in this pickle. It's also disappointing that the refile command doesn't work --- any chance of hacking it so that it does something sensible (I was thinking involving interactive selection) when org-capture is not yet configured? AFAICT the direct cause of the error is that org-capture-current-plist is NIL, and the 'local spec in this call means that we consult that instead of org-capture-plist. At this point my ability to understand the code peters out, and I'm afraid I don't have anything useful to say. best, r ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [Babel] Small problem with... previewing
Hi Eric, Eric Schulte wrote: (setq org-babel-tangle-pad-newline nil) That works for the tangled file, but not for the preview buffer (run with =C-c C-v C-v=). Thanks for pointing this out, You're welcome. This is the least I can do... this was actually a small issue in the shell specific body expansion (it looks like Dan and I have both fixed this in the last 5 minutes), it should now be fixed Indeed, it is. and strapped down with a unit test. Would you have a bit of time (I don't know exactly what's required), could you give information about how you'll write this unit test (using this case as an example), where you put it and so on. I'de be happy contributing with unit tests as well, later. Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Bug (?) in org-capture
On 10/14/10 Oct 14 -9:40 AM, Robert Goldman wrote: I was trying to experiment for the first time using org-capture together with w3m today, and I get an error. I invoke org-capture, and was pleased to find that it built me a buffer just fine, and made an org link for the URL of the w3m buffer. So far, so good. Unfortunately, when I try to save the buffer, either with C-c C-c or C-c C-w, I get an error. The error is in org-capture-bookmark-last-stored-position. Here: (defun org-capture-bookmark-last-stored-position () Bookmark the last-captured position. (let* ((where (org-capture-get :position-for-last-stored 'local)) ) WHERE gets bound to NIL, the return of ORG-CAPTURE-GET, causing an error. I'm quite prepared to believe that I have this horribly misconfigured, since I really didn't configure it at all, but it's disappointing that the buffer creation works so well without configuration, but leaves me in this pickle. It's also disappointing that the refile command doesn't work --- any chance of hacking it so that it does something sensible (I was thinking involving interactive selection) when org-capture is not yet configured? AFAICT the direct cause of the error is that org-capture-current-plist is NIL, and the 'local spec in this call means that we consult that instead of org-capture-plist. At this point my ability to understand the code peters out, and I'm afraid I don't have anything useful to say. Sorta never mind --- I figured out what the problem was. Somehow the default file for org-capture was ~/org//notes.org not ~/org/notes.org, so there was really a file not found error here. So this is, in a sense, user error. That said, if it's not too much trouble, maybe reporting a file not found error for this would be more helpful than crashing in this way. On the other hand, this might be tricky to find and handle, so maybe it's not worth the trouble. best, r ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Worg needs some reorganizing
Yeah, this sounds neat. I'd like something for my own web. I use wiki-style linking for site navigation so far (like worg), but if we could use tags to organize posts and then have a sidebar or top tab-style navigation auto-inserted into the body element, that would be ueber-cool. Jeff On Thu, Oct 14, 2010 at 10:07 AM, John Hendy jw.he...@gmail.com wrote: On Thu, Oct 14, 2010 at 8:09 AM, Eric Schulte schulte.e...@gmail.com wrote: John Hendy jw.he...@gmail.com writes: Great topic. I agree. This will be quite the overhaul! Perhaps we should propose some type of organizing scheme? By level of usage (beg, intermediate, adv?), by functional use (notes, todos, exporting, math, babel?), etc.? Just some ideas. If one's going to reorganize, might as well do it to the max! Maybe if these different organizational schema (usage level, function, etc...) were captured as tags in the Org-mode files, then the respective indices could be generated as part of the automated publishing. Ohhh -- that's fantastic. Categorize so that each entry can be found in multiple ways. I really like that. Somewhat of a blend between wiki intra-linking and bloggish tag cloud browsability? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Wanted: org-publish-org-to-ascii
On Oct 14, 2010, at 3:00 PM, Jeff Horn wrote: Copying from the definition for org-publish-org-to-html: #+BEGIN_SRC: emacs-lisp (defun org-publish-org-to-ascii (plist filename pub-dir) Publish an org file to ASCII. See `org-publish-org-to' to the list of arguments. (org-publish-with-aux-preprocess-maybe (org-publish-org-to ascii plist filename pub-dir))) #+END_SRC Good idea, I have added these functions to org-publish.el Thanks. - Carsten Recent pull (about 15 minutes ago) doesn't have the function defined. What's the name? org-publish-org-to-ascii org-publish-org-to-latin1 org-publish-org-to-utf8 - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-insert-heading and inline tasks
Hi Carsten, The following commit changes the behavior of org-insert-heading within the context of inline tasks: 19d695ef8fd27ac1b1ef1b675c3960b9b7d6abdc I find that new headlines are no longer inserted at the same depth as inline tasks. A quick skim of the diff suggests that this is the intended behavior. While I understand that one would not normally want a new headline to derive its depth from an inline task further up in the subtree, I often enter a few inline tasks at the same depth in quick succession, e.g., when creating a mini project-hierarchy from a single inline task. Take the following example: --8---cut here---start-8--- * My big writing project Blah blah blah blah blah blah. *** PROJECT Add some variety to the above TODO Look up synonyms for blah Blah blah blah blah blah blah blah. --8---cut here---end---8--- If I hit M-RET at the beginning of the second TODO headline, I get the following: --8---cut here---start-8--- * My big writing project Blah blah blah blah blah blah. *** PROJECT Add some variety to the above * TODO Look up synonyms for blah Blah blah blah blah blah blah blah. --8---cut here---end---8--- Would it be possible to respect the depth of an inline task if one calls org-insert-headline directly on the headline? Normally, if I call M-RET from an inline-task headline, I intend to insert another task at the same depth. This is especially true if I'd like to add an END headline to an inline task. Thanks! Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Adding tags, grouping tags
I'd like to define many many tags and use numerics (1-0) as selection keys. I want to define tags for different clients, people, gtd-contexts, and other contexts. So I had the idea to group the tags (less than ten tags per group) to be able to define selection keys for every tag. I already use groups for my custom agenda views (see example below). So when I hit C-c a, Org only shows the agenda groups (besides the default agenda commands) and I do not get to the actual agenda commands until I hit Q. This enables me to use the keys 1, 2, 3, 4 several times for different agenda commands (in different groups). Example: (setq org-agenda-custom-commands '((Q . Custom queries) ;; gives label to Q (Q1 Archive search search ((org-agenda-files (file-expand-wildcards ~/archive/*.org (Q2 Website search search ((org-agenda-files (file-expand-wildcards ~/website/*.org (Q3 Projects and Archive search ((org-agenda-text-search-extra-files (file-expand-wildcards ~/archive/*.org ;; searches both projects and archive directories (Q4 Archive tags search org-tags-view ((org-agenda-files (file-expand-wildcards ~/archive/*.org ;; ...other commands here )) Is something similar possible for adding tags? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [Babel] Small problem with... previewing
[...] and strapped down with a unit test. Would you have a bit of time (I don't know exactly what's required), could you give information about how you'll write this unit test (using this case as an example), where you put it and so on. Hi Seb, I also need to learn about these tests. Eric's test is included in his commit regarding this bug (b04265eab). I imagine we could make some progress by studying the new file he introduced (testing/lisp/test-ob-sh.el). Dan I'de be happy contributing with unit tests as well, later. Best regards, Seb ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bug: Export header-level list inconsistency
The following text in org-mode: #+OPTIONS: H:1 num:nil * Section 1 ** Test question *** Sub question produces an unordered (bulleted) list in LaTeX, but an ordered list (numbered) in HTML. This seems inconsistent. I would personally prefer for my use case and ordered list to be default for both exporters, but obviously another export option might better serve diverse use cases. Speaking of which, have I missed an export option to take care of this? Best, Jeff -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-hide-entry
Hi. as org-mode knows a command `org-show-entry' looked for `org-hide-entry', but couldn't get it. So here it is. Andreas -- https://code.launchpad.net/~a-roehler/python-mode/python-mode-components https://code.launchpad.net/s-x-emacs-werkstatt/ diff --git a/lisp/org.el b/lisp/org.el index a80286f..df9ae99 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -19391,6 +19391,24 @@ Stop at the first and last subheadings of a superior heading. (org-end-of-subtree t t)) nil)) +(defun org-hide-entry () + Hide the body directly following this heading. + (interactive) + (save-excursion +(condition-case nil + (progn + (org-back-to-heading t) + (outline-flag-region + (max (point-min) (1- (point))) + (save-excursion + (if (re-search-forward + (concat [\r\n]\\( outline-regexp \\)) nil t) + (1- (match-beginning 1)) + (point-max))) + t) + (org-cycle-hide-drawers 'children)) + (error nil + (defun org-show-entry () Show the body directly following this heading. Show the heading too, if it is currently invisible. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Documentation typo
Changes from table-export to master Modified doc/org.texi diff --git a/doc/org.texi b/doc/org.texi index 801bf12..03bb4fd 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -11281,7 +11281,7 @@ for information on the syntax of remote code block evaluation). @kindex C-c C-v l Code blocks located in any Org-mode file can be loaded into the ``Library of Babel'' with the @code{org-babel-lob-ingest} function, bound to @kbd{C-c C-v -l}. +i}. @node Languages, Header arguments, Library of Babel, Working With Source Code @section Languages ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] blorgit build
Hi Ezequiel, I haven't touched the blorgit code for probably over a year. That said I have been using blorgit locally without problem. Although the error you pasted doesn't raise any immediate flags for me I can give my boilerplate question of did you install the git submodules? If not, then run git submodule init git submodule update in the base of the blorgit repo, and give it another try. This could also be caused by changes to ruby since blorgit was last updated, in which case I may be able to take a look and see if I can fix it, but it's been almost a year since I've done any ruby programming, so this make not happen quickly... Best -- Eric Ezequiel Birman stormwa...@espiga4.com.ar writes: I cloned from the repo and after 'rake new' rake aborted! undefined method `tableize' for Blog:String ./backend/active_file/lib/active_file/base.rb:17:in `inherited' ./backend/blog.rb:1 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' ./backend/init.rb:3 ./backend/init.rb:3:in `each' ./backend/init.rb:3 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' ./blorgit.rb:9 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' /home/stormwatch/src/blorgit/Rakefile:1 /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in `load' /usr/bin/rake:19 and line no. 17 of base.rb reads: base.location = [base.name.tableize.to_s, *] Could anyone with Ruby skills help me please? Is blorgit still developed? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [Babel] Small problem with... previewing
Hi Seb, Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Eric, Eric Schulte wrote: [...] and strapped down with a unit test. Would you have a bit of time (I don't know exactly what's required), could you give information about how you'll write this unit test (using this case as an example), where you put it and so on. Certainly, 1) First I setup the testing resources as described in testing/README.org in the org-mode repo. 2) I opened lisp/ob-sh.el and then pressed C-u C-M-j which calls org-test-jump (to jump to the related test file) with a prefix argument (to create the file if it doesn't already exist) this created the file testing/lisp/test-ob-sh.el and filled it with all of the required lisp boilerplate 3) I wrote the following small test in test-ob-sh.el which tests the desired behavior. --8---cut here---start-8--- (ert-deftest test-ob-sh/dont-insert-spaces-on-expanded-bodies () Expanded shell bodies should not start with a blank line unless the body of the tangled block does. (should-not (string-match ^[\n\r][\t ]*[\n\r] (org-babel-expand-body:sh echo 2 '( (should (string-match ^[\n\r][\t ]*[\n\r] (org-babel-expand-body:sh \n\necho 2 '() --8---cut here---end---8--- I'de be happy contributing with unit tests as well, later. That would be most welcome, and the ideal form of bug report! Best -- Eric Best regards, Seb ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [Babel] Small problem with tangling
Hi Seb, I fully agree with your point, I believe I've just pushed up a fix for this issue. This commit includes a short function with a long name `ob-tangle/no-excessive-id-insertion-on-tangle' in test-ob-tangle.el. Best -- Eric Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Eric, Eric Schulte wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Eric Schulte wrote: [...] empty first line that's always inserted at the beginning of the file. What should I do to get rid of that first *empty* line? The following inhibits the insertion of blank lines on tangling. (setq org-babel-tangle-pad-newline nil) Of course, that does work as expected. Thanks for the tip. Another side-question about a little annoyance: when having just one src block to tangle in a big file, and when tangling it, Org(-Babel?) does first add IDs everywhere in my file, one for every section. Could we get rid of that? I don't even understand why one would be needed, though I could easily accept (;-)) to see an ID created in the sections containing elements to tangle. This is caused by the tangling code calling `org-store-link' on every code block, which is useful because we sometimes want to store links in the tangled code for jumping back from the code to the relevant place in the original org-mode file. I understand the need for creating links automatically to sections which host code blocks. However, I don't understand that tangling the *only* code block I have in an entire Org file does add ID in *every* section. Shouldn't it be limited to sections hosting code blocks in general (in particular, IMHO, it should even be limited to the only sections that contain blocks to *tangle*)? `org-store-link' is called interactively, and it will insert ID values according to the value of `org-link-to-org-use-id', which defaults to `create-if-interactive-and-no-custom-id'. I suppose you could change the value of this variable which should avoid the insertion of custom IDs. I have the same value as you. I could try every of them, but -- from the doc -- I don't see any better option for this. I want IDs to be created! It's only I'd like them to be created for sections that need it... Best regards, Seb ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-mobile-use-encryption
Carsten Dominik carsten.domi...@gmail.com writes: thank you very much vor putting in the time to test the encryption for MobileOrg. No problem - thank you for writing and sheparding Org. But for org files on servers we believe are not messing with them, this is probably in the 'best is the enemy of the good' category. And if we want integrity (I know, ENOPATCH), then it's probably best to do it outright, so I withdraw my complaint about checksums.dat being in cleartext. Is is also so that the file transfer is happening in two one-way street. agendas.org and the agenda files and index.org are uploaded, mobileorg.org is downloaded, and its contents are then applied locally. Seems to be little room for problems here. The issue is that the whole point of encryption is to use a webdav server not under one's control, such as dropbox, or perhaps one accessed not over SSL. Encryption prevents the server admin from reading the bits, and that's the most important thing. But if the server admin changes the ciphertext, they can cause the wrong plaintext to appear. This is generally tricky, but it's a principle of cryptographic protocol design that one can't assume that encryption provides integrity (meaning, that just because the bits are encrypted doesn't mean it prevents an adversary from manipulating the plaintext). That said, the above is probably overly paranoid for most people. ~/orgtmpcrypt seems to not always get cleaned up when I push/pull. After a push, I found it to contain my index.org, unencrypted and 644 in my homedir. Probably this should go in org-directory instead which presumably would be protected as the user wants. I did not put it into org-directory because I don't know if users have this set to an accessible place, and I don't want the push to fail because of that. I think this is the classic security/convenience tradeoff. On a multiuser system, I think Org now puts the orgtmpcrypt file with normal umask, and that can be read by other users (albeit briefly). I suggested org-directory because someone who wants to keep other users From seeing his org bits will protect that approriately - mine is 0700. I suppose there could be someone who turns on encryption and has org files in random places but no directory matching org-directory. Getting an error seems fair enough and better than risking exposing private bits. (Again, I realize I'm on the paranoid side, but I do security professionally so it comes naturally.) I have modified the code and hope that it does now in all cases clean up the temporary file. Please let me know if you still find a case where this is not so. Thanks - will do. Right now all is working well. pgpvIlHfh9T6l.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-insert-heading and inline tasks
Matt Lundin m...@imapmail.org writes: Hi Carsten, The following commit changes the behavior of org-insert-heading within the context of inline tasks: 19d695ef8fd27ac1b1ef1b675c3960b9b7d6abdc I find that new headlines are no longer inserted at the same depth as inline tasks. A quick skim of the diff suggests that this is the intended behavior. While I understand that one would not normally want a new headline to derive its depth from an inline task further up in the subtree, I often enter a few inline tasks at the same depth in quick succession, e.g., when creating a mini project-hierarchy from a single inline task. Take the following example: * My big writing project Blah blah blah blah blah blah. *** PROJECT Add some variety to the above TODO Look up synonyms for blah Blah blah blah blah blah blah blah. If I hit M-RET at the beginning of the second TODO headline, I get the following: * My big writing project Blah blah blah blah blah blah. *** PROJECT Add some variety to the above * TODO Look up synonyms for blah Blah blah blah blah blah blah blah. But this is what I get * My big writing project Blah blah blah blah blah blah. *** PROJECT Add some variety to the above I go this one when I hit M-RET at the beginning of line TODO Look up synonyms for blah I go this one when I hit M-RET at the end of line I have Org-mode version 7.01trans (release_7.01h.661.g6803) GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of 2010-01-30 on noorul Thanks and Regards Noorul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Adding tags, grouping tags
Karl Maihofer ignora...@gmx.de writes: I'd like to define many many tags and use numerics (1-0) as selection keys. I want to define tags for different clients, people, gtd-contexts, and other contexts. So I had the idea to group the tags (less than ten tags per group) to be able to define selection keys for every tag. I already use groups for my custom agenda views (see example below). So when I hit C-c a, Org only shows the agenda groups (besides the default agenda commands) and I do not get to the actual agenda commands until I hit Q. This enables me to use the keys 1, 2, 3, 4 several times for different agenda commands (in different groups). Example: (setq org-agenda-custom-commands '((Q . Custom queries) ;; gives label to Q (Q1 Archive search search ((org-agenda-files (file-expand-wildcards ~/archive/*.org (Q2 Website search search ((org-agenda-files (file-expand-wildcards ~/website/*.org (Q3 Projects and Archive search ((org-agenda-text-search-extra-files (file-expand-wildcards ~/archive/*.org ;; searches both projects and archive directories (Q4 Archive tags search org-tags-view ((org-agenda-files (file-expand-wildcards ~/archive/*.org ;; ...other commands here )) Is something similar possible for adding tags? I have something like this shamelessly copied from Bernt's doc. (setq org-tag-alist (quote ((:startgroup) (@errand . ?e) (@office . ?o) (@home . ?h) (:endgroup) (PHONE . ?p) (NEXT . ?n) (WAITING . ?w) (HOME . ?H) (ORG . ?O Thanks and Regards Noorul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode