Re: [O] Customizing "Easy Templates"?
Hey Mike, On Thu, Jul 7, 2011 at 4:28 AM, Michael Hannon wrote: > I can't figure out how to > customize the text of these templates. Can anybody point me in the right > direction? > This should work: (add-to-list 'org-structure-template-alist '("S" "#+BEGIN_SRC ?\n\n#+END_SRC" "\n\n")) -- Suvayu Open source is the future. It sets us free.
Re: [O] Calendar-like view of the org-agenda
At Wed, 6 Jul 2011 11:39:47 +0200, Manuel Hermenegildo wrote: > > First, thanks very much to Sakurai for a wonderful tool and having > integrated it so well with org! Thank you for your comment. I'm very encouraged! > > For me, creating a custom org agenda with the next 21 days takes > > not much less than building an calfw calendar buffer with 42 days. > : > Seems like calfw is ignoring the org priorities and order. In my case > the problem is that calfw is gathering all the tasks ignoring my per > tag filters. I explain: in my case I only want to see in my agenda > entries that have a certain tag (my tag): I share org files with other > people and we assign tasks by marking E.g., I am MH and my tasks are > like: > > * TODO Thank Sakurai for a great tool <2011-07-05 Tue> :MH: > > which should appear in my agenda and there are other tasks like: > > * TODO Write paper <2011-07-05 Tue> :JF: > > which should only appear in JF's agenda. This is done using a custom > agenda command that filters by tag. > > It seems to me too complicated to try to reproduce all the nuances and > capabilities of org agenda generation (priorities, filtering, custom > views, etc.) and do it all again in calfw --it would always be very > hard to keep them in sync. I read the code of org-agenda-list and subsequent callee functions. Indeed it was very hard way and I didn't understand all codes because I was not a orgmode user. Then, I use the function org-agenda-get-day-entries to get schedule items of the org-agenda-files. The function can receive some arguments to limit the tasks, but I didn't understand exactly. Do you use this function? If so, it may be easy to implement a simple filter. > I have not had time to look at the code, but perhaps calfw, instead of > reading directly the org files could instead use the org code that > generates the agenda and then present the agenda in its very nice and > graphical way. I.e., an idea would be to add a back end to the code > that generates the org agenda which, instead of rendering the agenda > creates the calfw objects. > > Or, perhaps even simpler, calfw could simply read the org-agenda > buffer (colors and all) instead of reading the org files. > > This would have the enormous advantage that it would always generate > the tasks with the same order, priorities, filters, customizations, > etc. as the org agenda. The face property and other text properties which are put by org-agenda-get-day-entries, are remained in calfw buffer. Customization of summary texts of org items is the variable cfw:org-schedule-summary-transformer or the function cfw:org-summary-format. Because I have used orgmode not so heavily, the current integration is very simple. I think calfw can display the items in any way how you want. I would implement simple ideas as soon as possible. Thank you. -- SAKURAI, Masashi (family, given) m.saku...@kiwanami.net
Re: [O] Calendar-like view of the org-agenda
At Wed, 06 Jul 2011 09:16:32 +0200, Tassilo Horn wrote: > : > Christopher Allan Webber writes: > > Hi Christopher, > > > Also, cfw:open-org-calendar works, but things seem really slow... it > > looks like you're recalculating the entire orgmode agenda for every > > day. I wonder if things could be sped up if the orgmode agenda was > > calculated for the entire period all at once and then broke that up > > into days? > > For me, creating a custom org agenda with the next 21 days takes not > much less than building an calfw calendar buffer with 42 days. It's > about one second for the former and 2 seconds for the latter, so it > seems calfw does the right thing. Thank you for your confirming. I implemented calfw-org with consultation of the code of org-agenda-list. I think it is difficult to make the speed faster with a simple way, the re-design of the whole org-agenda-list algorithm seems to be needed, because the key function org-agenda-get-day-entries requires only one date and the subsequent dependent functions also are designed by the API. > One thing which I'm currently missing is that the calfw entries gathered > from org are missing the times (if that's specified using the 'time text > property) and are sorted in an order I can't understand. For example, > : Yes. The current implementation, calfw sorts the items by alphabet, i.e. string-less, in one date cell. This is intent to sort the items which has time header like "10:00 meeting" "13:00 go to airport" "16:00 meeting". It is not so difficult to add a customize of the sort criteria. And you can try your custom summary format, modifying cfw:org-summary-format. In the function, you can get the time value from the text property.
[O] org-odt and bibliography
Greetings! I am starting to use org-odt and I find it very useful. I am wondering whether it is possible to export also my bibliography. In the org file I have the following: --- blah blah blah \cite{Apple:1992a,Payne:1999a,Martin:2003a}. blah blah blah --- Then later: \bibliographystyle{apacite} \bibliography{/home/henk/Dropbox/dissertation/bibdata-neuf} The above text from the org file is transferred verbatim to the odt file. The same happens to the footnotes. I understand that the org-odt code is still under development and that the developer is doing this from the goodness of his heart. I am just wondering whether I am missing something, doing something incorrectly, or this is maybe going to be a future feature. Thanks, Henri-Paul -- Henri-Paul Indiogine Email: hindiog...@gmail.com Running: Ubuntu Linux 10.10, Emacs 24.0.50.1, org-mode 7.5
[O] Customizing "Easy Templates"?
Greetings. I just came across the "Easy Templates" feature of Org-mode: http://orgmode.org/manual/Easy-Templates.html In particular, using: to generate: #+begin_src #+end_src is a real time-saver for me. One thing that would improve this feature for me: I like to keep source code in lower case and directives such as BEGIN_SRC in upper case. (This must stem from some ancient convention I used in C at one time.) I can't figure out how to customize the text of these templates. Can anybody point me in the right direction? Thanks, -- Mike
Re: [O] Create a view of just source-code blocks?
Great. Thanks, Eric. I haven't done exhaustive testing of your code, but so far it seems to do exactly what I had in mind. -- Mike - Original Message > From: Eric Schulte > To: Michael Hannon > Cc: Org-Mode List > Sent: Tue, July 5, 2011 4:21:20 PM > Subject: Re: [O] Create a view of just source-code blocks? > > Michael Hannon writes: > > > Greetings. I'd like to be able to view just the source-code blocks in a >Babel > > file. I.e., I'd like to do something logically equivalent to "tangle", but > > without creating a separate file, just a view within the current file. Any > > suggestions? > > > > Thanks, > > > > -- Mike > > > > Hi Mike, > > Something like the attached should work, although I'm not sure if/how > this could be incorporated into Org-mode. > > > -- > Eric Schulte > http://cs.unm.edu/~eschulte/ >
[O] Current version download glitch
Hi Orgers, The main page http://orgmode.org/ says that 7.6 is the latest version, but the zip and gzip links point to 7.5. Cheers, Alan -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: 04 2748 6206
Re: [O] export to ODT
Hi Nick! Nick Dokos writes: > It's been pulled into contrib/ so all you have to do is make sure that > the contrib/lisp directory is in your load-path and then C-c C-e o (or > C-c C-e O) - at least, it did for me on a simple org file. Thanks! That is easier than I thought. I have now the following lines in my .emacs : (add-to-list 'load-path "~/elisp/org-mode/lisp") (add-to-list 'load-path "~/elisp/org-mode/contrib/lisp") (require 'org-install) (require 'org-exp) (require 'org-latex) I got the following line in my *Messages* buffer: Use of MathJax is incompatible with ODT exporter. Using dvipng instead. I do know about this MathJax. When the odt file is loading I get a message window from LibreOffice with a general error. Then it goes away and the file continues loading. There are a few issues with merging lines and no space in between them, but overall it looks great. Thanks to the developer(s) or org-odt!!! Best, Henri-Paul -- Henri-Paul Indiogine Email: hindiog...@gmail.com Running: Ubuntu Linux 10.10, Emacs 24.0.50.1, org-mode 7.5
Re: [O] export to ODT
Henri-Paul Indiogine wrote: > Dear orgmoders, > > I am an intermediate emacs + org-mode user. I would like to ask you for > instructions on how to install the org -> ODT converter. I googled for > instructions but they are above my level of understanding. > > I run the git development versions and update it daily. I run GNU > Emacs 24 on Ubuntu Maverick (10.10). > It's been pulled into contrib/ so all you have to do is make sure that the contrib/lisp directory is in your load-path and then C-c C-e o (or C-c C-e O) - at least, it did for me on a simple org file. Nick
[O] export to ODT
Dear orgmoders, I am an intermediate emacs + org-mode user. I would like to ask you for instructions on how to install the org -> ODT converter. I googled for instructions but they are above my level of understanding. I run the git development versions and update it daily. I run GNU Emacs 24 on Ubuntu Maverick (10.10). Thanks and best regards, Henri-Paul -- Henri-Paul Indiogine Email: hindiog...@gmail.com Running: Ubuntu Linux 10.10, Emacs 24.0.50.1, org-mode 7.5
[O] Maxima session support
I've been poking around in the ob-maxima.el and maxima.el files and I believe that maxima.el provides the commands necessary to simulate session support in org-babel. Unfortunately my elisp skills are rudimentary and I don't know how to write a function that when called by C-c C-c in the source block will pass each line of the source block to the function maxima-send-region and insert the output into the results portion of the org file using maxima-insert-last-output (both of these functions are provided by maxima.el). If anyone can point me in the right direction for a similar function that I can modify, or can provide a commented example of how this would be done, that would be great. Thanks, Derek
Re: [O] Compiler warnings on current HEAD
Achim Gratz writes: > apparently introduced by de0fcdffa48da8baf57a612f2ce032d8737e6525 > (N. Goaziou). Likely just needs a > > (defvar org-bracket-link-regexp) Fixed, thanks! -- Bastien
Re: [O] Compiler warnings on current HEAD
Bastien writes: > Thanks for confirming! Regression on latest HEAD: In org-footnote-at-reference-p: org-footnote.el:191:49:Warning: reference to free variable `org-bracket-link-regexp' apparently introduced by de0fcdffa48da8baf57a612f2ce032d8737e6525 (N. Goaziou). Likely just needs a (defvar org-bracket-link-regexp) to be silenced. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] LaTex export: How to use `csquotes' and `\enquote{}'
Thomas S. Dye wrote: > Frederik writes: > > >> Apparently someone tried a simple hack: > >> http://osdir.com/ml/emacs-orgmode-gnu/2010-01/msg00681.html > >> > >> When I find the time I will try this... > > > > I've tried the hack and for me this works pretty well. It's static but > > this doesn't really matter as I always stick to `csquotes' > > > > I think it shouldn't be too difficult to implement a new > > variable/switch whether the standard behaviour or the one provided by > > the hack is going to be used. One would only have to insert an > > additional if-clause in the defun the hack alters. > > > > Regards > > Yes, please do suggest a patch to support csquotes. I've been using > LaTeX to write the American dialect of English, so haven't had a need > for the package. As it happens, I spent some time yesterday editing by > hand an article that requires quotations in the British dialect of > English. IIUC, csquotes would have done this work for me with the > change of a single option. > > Perhaps others on the list with experience using the LaTeX babel package > can chime in here. > > Thanks for an interesting set of ideas. > The problem is the usual exponential growth of possibilities and how you manage them: if you read the babel manual and the csquotes manual and all the options that you can have, your head starts spinning (well, *my* head starts spinning). I tend to think of all the possibilities and despair over covering them all, whereas org-mode tends to make simplifying assumptions that will cover >90% of the cases (if the simplifying assumptions are good ones). I think we need such an assumption here. Here are some points to keep in mind while working on a patch: o csquotes.sty is part of the texlive-latex-extra package on Ubuntu (and probably something similar on other Linux distros and possibly MacOS X - hunoz about Windoz?) o because of the above, usage of csquotes has to be optional, default to "no". o there is hackish special treatment of french quotes in org-export-latex-quotation-marks: that could be folded into the more general treatment that the patch would provide at the cost of possible backward incompatibility for some org files. o it's currently not possible to specify a language in an +OPTIONS line in an org file: you can only set it through lisp. That should probably be changed. o org-mode specifies languages using the two-letter country abbreviation and does not worry about dialects/sublanguages. o the (LaTeX) babel package and csquotes have their own (different) conventions for specifying languages and dialects. In some cases, a single language can have multiple options for how to quote things. The proposal below explicitly does *not* deal with these complications. My initial reaction to how one would use csquotes was to use the +OPTIONS line, something like this: #+OPTIONS: enquote:t language:fr The language option would trigger the inclusion of the babel package with the (correct) language option (e.g. "en" -> "english", "de" -> "ngerman", "fr" -> "french", etc.) The enquote part would trigger 1) the inclusion of the csquotes package (and since you specify it explicitly, it is your responsibility to make sure that it be installed on your system) and 2) the translation of "foo" to \enquote{foo}. Without it, "foo" goes to ``foo'' no matter what the language is set to. IOW, here is the spec that I'm proposing (using "fr" as a non-"en" language which also uses a different quotation style: guillemets rather than quotes): | OPTIONS | org-export-default-language | \usepackage[options]{package} | "foo" -> | comments | |---+-++---+| | | en | | ``foo'' | ok | | | fr | [french]{babel} | ``foo'' | quotes, not guillemets | | enquote:t | en | [babel]{csquotes} | \enquote{foo} | ok | | enquote:t | fr | [french]{babel}, [babel]{csquotes} | \enquote{foo} | ok | | enquote:t language:fr | ANY | [french]{babel}, [babel]{csquotes} | \enquote{foo} | ok | In the last case, the language specified in the +OPTIONS line is operative, no matter what the default language is. In the second case, we have a backward incompatibility: it does not do the right thing for a default setting of "fr", but french speakers could restore proper behavior by installing the csquotes package and customizing the (proposed) org-export-latex-with-enquote variable, corresponding to the enquote option, to t: that would provide the same output as the hack does today.
Re: [O] How-to evaluate Java-snippets in org-mode/org-babel?
"Jason F. McBrayer" writes: > On Wed, 06 Jul 2011 07:26:45 -0600, Eric Schulte wrote: > >> I think the first place to look for executing Java from Org-mode code >> blocks would be to check if any existing Emacs java modes already >> provide support for interactive code evaluation. > > I believe JDEE does support this: > >> jde-bsh-run is an interactive compiled Lisp function in `jde-bsh.el'. >> >> (jde-bsh-run) >> >> *Starts the JDEE version of the BeanShell. > > But honestly, getting everything set up for your environment for it to > actually work right is a pain and three quarters. How true; the only reason I have emacs 23 still installed on my system is the continuing failure to install jdee, ecb, et al. on Emacs 24. Trying to get something (compatible across emacs versions) running to support Java within org is likely to be a nightmare. However, I hope somebody on this list can prove me wrong! -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.586.g382e6)
[O] Problem with ''Emphasis and monospace`` text
Hi, The orgmode help file states that text can be changed to *bold* by embedding it in a couple of '*' characters. *This works file with text that is not longer than three lines*. However, *as soon as the bold text is spread over more than two lines, such as the paragraph you're reading now, the text does not become bold, not in Emacs, and not in the exported pdf*. In that case, the asterisks are output verbatim. As soon as the text is flowed over two physical lines rather than three, it immediately becomes bold. I can imagine that org (or whatever underlying code handles this kind of markup) deliberately limits the scan for trailing '*' to some arbitrary value to avoid wild goose chases. If I paste this mail in an fresh org buffer, the only bold text will be the word bold in the first sentence, and the last sentence of the first paragraph. The second paragraph has no bold text at all, unless you join the sentence into two or one physical lines. This limitation also bites me for the '/' character, so I assume it's the same for '_', '=' and '~'. I was wondering whether this limitation is configurable? TIA, guivho.
Re: [O] Can't kill in org-mode when in org-indent-mode
Hi Marco, Bastien writes: >> Looks like an interface change to me. Or is it just a problem with my >> setup? > > I confirm it's a bug, I'm on it now. This should be fixed now. Thanks! Best, -- Bastien
Re: [O] Calendar-like view of the org-agenda
SAKURAI Masashi writes: > At Tue, 05 Jul 2011 15:33:53 +0100, > Eric S Fraga wrote: [...] >> so I tried M-x cfw:open-calendar-buffer which proceeded to give me the >> error: >> >> let: Symbol's function definition is void: cfw:create-calendar-buffer > > This is a bug. I fixed and pushed it to master branch. > I'm sorry that many people met this trouble. Thanks! >> One feature request: in the display of individual calendar items, it >> would be nice to have tags and the originating file name highlighted (in >> different ways, of course), but this is a minor request. > > Is this the same issue which is discussed at another thread? Related, I think, in that it's about displaying the same type of information that the agenda view gives, and in the same way. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.586.g382e6)
Re: [O] Can't kill in org-mode when in org-indent-mode
Hi Marco, Marco Wahl writes: > Looks like an interface change to me. Or is it just a problem with my > setup? I confirm it's a bug, I'm on it now. Thanks for reporting it, -- Bastien
Re: [O] Create a view of just source-code blocks?
Rainer M Krug writes: > On Wed, Jul 6, 2011 at 1:21 AM, Eric Schulte wrote: > >> Michael Hannon writes: >> >> > Greetings. I'd like to be able to view just the source-code blocks in a >> Babel >> > file. I.e., I'd like to do something logically equivalent to "tangle", >> but >> > without creating a separate file, just a view within the current file. >> Any >> > suggestions? >> > >> > Thanks, >> > >> > -- Mike >> > >> >> Hi Mike, >> >> Something like the attached should work, although I'm not sure if/how >> this could be incorporated into Org-mode. >> >> >> > I like the idea of only showing the source code blocks, but I would think > that the org way would be to fold everything else and to od=pen the source > code blocks? Would that be possible? (I must say I haven't looked at your > solution, Eric) > folding everything else is basically exactly why my solution does :) Best -- Eric > > Rainer' > > >> >> -- >> Eric Schulte >> http://cs.unm.edu/~eschulte/ >> >> -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] Calendar-like view of the org-agenda
At Tue, 05 Jul 2011 12:13:09 -0500, Christopher Allan Webber wrote: > > Also, cfw:open-org-calendar works, but things seem really slow... it > looks like you're recalculating the entire orgmode agenda for every day. > I wonder if things could be sped up if the orgmode agenda was calculated > for the entire period all at once and then broke that up into days? I read the implementation of `org-agenda-list' to get schedule items. Then, I found it may be slow in this implementation. I want to know better way to get the schedule items. Well, it is midnight in JST, so I will reply to subsequent discussions tomorrow. Sorry that I could not catch up your discussion speed... Thank you, -- SAKURAI, Masashi (family, given) m.saku...@kiwanami.net
Re: [O] How-to evaluate Java-snippets in org-mode/org-babel?
> But honestly, getting everything set up for your environment for it to > actually work right is a pain and three quarters. +1 I tried to use JDEE. It was crazy complex to set-up and at some point I gave up. It seems Java support under emacs got a bit weak. @Eric.. well I never used Java much. Learned a bit about it 10 years ago. Now they asked me to assist teaching a Java class. you never now what's coming next, right ;) Totti
[O] Can't kill in org-mode when in org-indent-mode
Hi, when I try to kill a region in a org-buffer with org-indent-mode set (i.e. not so many stars in the headlines) there is an error. The *Backtrace* shows more or less Debugger entered--Lisp error: (wrong-number-of-arguments (lambda (string) "Remove indentations between BEG and END." (remove-text-properties 0 (length string) (quote (line-prefix nil wrap-prefix nil)) string) string) 4) org-indent-remove-properties-from-string(...) apply(org-indent-remove-properties-from-string (...)) filter-buffer-substring(112 459) copy-region-as-kill(112 459) kill-ring-save(112 459) call-interactively(kill-ring-save nil nil) I use "GNU Emacs 24.0.50.6 (i686-pc-linux-gnu, X toolkit) of 2011-07-05 on senf". Looks like an interface change to me. Or is it just a problem with my setup? Any help appreciated. Ciao, Marco
Re: [O] Calendar-like view of the org-agenda
At Tue, 05 Jul 2011 15:33:53 +0100, Eric S Fraga wrote: > > SAKURAI Masashi writes: > > [...] > > >> > https://github.com/kiwanami/emacs-calfw > > [...] > > > > > Just yesterday in JST, I released calfw v1.0. > > This is brilliant! Many thanks for this. Very useful for quick diary > planning! I particularly like the different views and, for once, the > default colour scheme ;-) Also, as a long time vi user (sorry), I like > the vi movement commands. I'm very encouraged. Thank you. I choose the color scheme of calfw carefully. Some Japanese users create other color scheme. http://sheephead.homelinux.org/2011/01/19/6571/ http://valvallow.blogspot.com/2011/01/emacs-face.html (Note: These settings are written for v0.1, little bit changed.) > so I tried M-x cfw:open-calendar-buffer which proceeded to give me the > error: > > let: Symbol's function definition is void: cfw:create-calendar-buffer This is a bug. I fixed and pushed it to master branch. I'm sorry that many people met this trouble. > One feature request: in the display of individual calendar items, it > would be nice to have tags and the originating file name highlighted (in > different ways, of course), but this is a minor request. Is this the same issue which is discussed at another thread? -- SAKURAI, Masashi (family, given) m.saku...@kiwanami.net
Re: [O] LaTex export: How to use `csquotes' and `\enquote{}'
Frederik writes: >> Apparently someone tried a simple hack: >> http://osdir.com/ml/emacs-orgmode-gnu/2010-01/msg00681.html >> >> When I find the time I will try this... > > I've tried the hack and for me this works pretty well. It's static but > this doesn't really matter as I always stick to `csquotes' > > I think it shouldn't be too difficult to implement a new > variable/switch whether the standard behaviour or the one provided by > the hack is going to be used. One would only have to insert an > additional if-clause in the defun the hack alters. > > Regards Yes, please do suggest a patch to support csquotes. I've been using LaTeX to write the American dialect of English, so haven't had a need for the package. As it happens, I spent some time yesterday editing by hand an article that requires quotations in the British dialect of English. IIUC, csquotes would have done this work for me with the change of a single option. Perhaps others on the list with experience using the LaTeX babel package can chime in here. Thanks for an interesting set of ideas. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Calendar-like view of the org-agenda
At Tue, 05 Jul 2011 13:49:15 +0200, Niels Giesen wrote: > : > > I have not used orgmode so far, so I'm not good at the schedule management > > in > > the orgmode. Comments and patches are welcome. > > Ok. Here you go: > : > 2. For people using org-google-weather and using icons to spicen up > their agenda views for the weather, there is a problem with the grid as > the icons do not fit well inside a grid. > > The simplest way to get around this I guess is advising > `cfw:org-collect-schedules-period' (I use a similar strategy for > `org-mobile-push' where one would otherwise only see the text "icon"). > > #+begin_src emacs-lisp > (defadvice cfw:org-collect-schedules-period (around no-icon activate) > (let (org-google-weather-display-icon-p) > ad-do-it)) > #+end_src I received the similar issue on github, https://github.com/kiwanami/emacs-calfw/issues/1 In the current implementation, invalidating images and deleting the `display' property are simple solution. But I would try to display images in calfw. > 3. I'd like to select items with my keyboard, but the normal emacs > navigation bindings are not available. Maybe tabbing to items in > `cfw:details-mode' (but preferably also in cfw:calendar-mode) would do > it for me, where it would be nice if the mouse echo was also shown when > entering an item by way of keyboard navigation. I also think key binding should be improved. I would try to implement TAB key navigation you mentioned. The problem of navigation is discussed on the github issue too. https://github.com/kiwanami/emacs-calfw/issues/2 > 4. I do not know whether it is possible due to the dynamic construction > of mode maps in calfw.el, but it would be nice if you could take > advantage of the self-documenting nature of Emacs by including a > reference to the keymap in the docstring for the various modes. For > cfw:calendar-mode this would be st. like: > : I will do this. Thank you for your helpful code. > 5. (perhaps slightly OT) From your screenshots I see you have no problem > with putting multibyte (japanese) characters inside a grid, something > with which I always have problems (e.g. in org tables but also in your > calendar). Do you do anything special to make that work? Instead of `length', the function `string-width' of mule.el should be used to calculate display width of the string. This function treats not only East Asian characters but also complex Unicode ones. Some functions, such as `cfw:render-truncate', use it. However, it is not so easy for Japanese users to fit a grid, because of the font and rendering problems of Emacs. One can find many Japanese blog articles about beautiful font setting on Emacs. Thank you for your many comments.
Re: [O] Create a view of just source-code blocks?
On Wed, Jul 6, 2011 at 1:21 AM, Eric Schulte wrote: > Michael Hannon writes: > > > Greetings. I'd like to be able to view just the source-code blocks in a > Babel > > file. I.e., I'd like to do something logically equivalent to "tangle", > but > > without creating a separate file, just a view within the current file. > Any > > suggestions? > > > > Thanks, > > > > -- Mike > > > > Hi Mike, > > Something like the attached should work, although I'm not sure if/how > this could be incorporated into Org-mode. > > > I like the idea of only showing the source code blocks, but I would think that the org way would be to fold everything else and to od=pen the source code blocks? Would that be possible? (I must say I haven't looked at your solution, Eric) Rainer' > > -- > Eric Schulte > http://cs.unm.edu/~eschulte/ > > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug
Re: [O] How-to evaluate Java-snippets in org-mode/org-babel?
On Wed, 06 Jul 2011 07:26:45 -0600, Eric Schulte wrote: I think the first place to look for executing Java from Org-mode code blocks would be to check if any existing Emacs java modes already provide support for interactive code evaluation. I believe JDEE does support this: jde-bsh-run is an interactive compiled Lisp function in `jde-bsh.el'. (jde-bsh-run) *Starts the JDEE version of the BeanShell. But honestly, getting everything set up for your environment for it to actually work right is a pain and three quarters. -- +---+ | Jason F. McBrayer jmcb...@carcosa.net | | If someone conquers a thousand times a thousand others in | | battle, and someone else conquers himself, the latter one | | is the greatest of all conquerors. --- The Dhammapada |
Re: [O] LaTex export: How to use `csquotes' and `\enquote{}'
Apparently someone tried a simple hack: http://osdir.com/ml/emacs-orgmode-gnu/2010-01/msg00681.html When I find the time I will try this... I've tried the hack and for me this works pretty well. It's static but this doesn't really matter as I always stick to `csquotes' I think it shouldn't be too difficult to implement a new variable/switch whether the standard behaviour or the one provided by the hack is going to be used. One would only have to insert an additional if-clause in the defun the hack alters. Regards -- Frederik
Re: [O] [BABEL][PATCH] ob-lilypond basic mode - was ob-lilypond
Hi Martyn, I just applied this patch. If you don't mind packaging future patches using the git format-patch command that would be my preference, as it preserves author information and allows you to write your own commit message. Thanks! -- Eric Martyn Jago writes: >Hi > >I've added functionality to make ob-lilypond act in a consistent >org-babel way by default (think ob-dot). > >The previous modus operandi is now known as arrange-mode and is >selected by setting ly-arrange-mode to t > >More details including examples are at >http://github.com/mjago/ob-lilypond > >Patch: > >Included examples are as follows... > > - Export org file with lilypond fragments to pdf using eps (high >quality vector graphics) > > - org >source: https://github.com/mjago/ob-lilypond/raw/master/examples/basic- >mode/pdf-example/pdf-example.org > > - resultant >pdf: https://github.com/mjago/ob-lilypond/blob/master/examples/basic-mo >de/pdf-example/pdf-example.pdf?raw=true > > - Export org file with lilypond fragments to html using png > > - org >source: https://github.com/mjago/ob-lilypond/raw/master/examples/basic- >mode/html-example/html-example.org > > - resultant >html: https://raw.github.com/mjago/ob-lilypond/master/examples/basic-mo >de/html-example/html-example.html > >Regards > >Martyn > >On 1 Jul 2011, at 13:01, Christian Moe wrote: > >On 6/30/11 8:10 PM, Eric Schulte wrote: > > Martyn Jago writes: > > (...) > > Great, I've just moved this into the Org-mode core and added it to > the > > list of Babel languages. > >Great! > > One distinction that has occurred to me (especially following > comments on > > the mailing list) is that of "babel language" and "babel language > work-flow". > > In other words, I can visualise refactoring ob-lilypond to be no > more than > > a specification of the Lilypond syntax, and working in parallel, on > a > > work-flow implementation for Lilypond that is "opinionated" in terms > of > > adjusting org-babel settings away from their defaults / removing > work-flow > > noise etc. ( org-lilypond.el ) ? Would this make sense, and if so > where would > > it live (aligned to org-babel / a native Emacs mode perhaps)? > > I hope that makes sense. > > That sounds like a good idea. Ideally ob-lilypond should include > just > > those elements expected by the code block interface, namely > functions > > for session/external evaluation, for expanding variables in code > block > > bodies, and for returning results to Org-mode. I think that it > would be > > a good idea to develop an external org-lilypond to support a more > > comprehensive workflow. > >I like this. >I certainly see that the already complex task of making arrangements >like those in Martyn's examples should be made as easy as possible. >As for the comparatively simple use cases I brought up, once they're >supported by ob-lilypond I'd be perfectly happy to throw header >arguments at them. >Yours, >Christian -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] How-to evaluate Java-snippets in org-mode/org-babel?
Torsten Wagner writes: > Hi Eric, > > Somehow I was pretty sure you would answer ;) > > I tried your example and it work great so far. > > I have three points which I would like to discuss > > 1. I thought it might be nice to declare the package and class name > for the java-stuff as variable in a property node then I could do > something like: > > * Coursework 1 > :PROPERTIES: > :var: PKGNAME="cw1" > :var: CLASS="calc" > :END: > > ** Snippet 1 > ** Snippet 2 > > * Coursework 2 > :PROPERTIES: > :var: PKGNAME="cw2" > :var: CLASS="string" > :END: > > ** Snippet 1 > ** Snippet 2 > > Unfortunately, org-mode does not allow multiple definition of the same > property. I know there is a work around with a table. However, I > thought I could use simply a list. > > :var: vars="(cw1 calc)" quotes force string interpretation, try something like the following... #+begin_src emacs-lisp :var lst='(0 1 2) (first lst) #+end_src #+results: : 0 or as a noweb reference #+data: external-list - 0 - 1 - 2 #+begin_src sh :noweb yes echo <> #+end_src #+results: : 0 > > and use this in my shell script. However, this doesn't work. I can't > index them. Any idea? Should it work in principle? Could I e.g., use > :var: vars="{'x': 128, 'y': 210}" and put this in a python block > accessing them by vars['x'] and vars['y']? That would be great! > The only data types which can be passed between Org-mode code blocks currently are lists (of arbitrary dimension), numbers and strings. Hashes (or "dictionaries") are not currently supported. > > > 2. I'm not totally sure but it seems that tangling creates the desired > file if it is not existing so fare but it does not create folders > thus, :tangle path/filename seems not to work. see the :mkdirp header argument http://orgmode.org/manual/mkdirp.html > > Any reason for this or maybe good idea to add it as a feature? For > now, I added a little shell-based block "start" which takes care of > this. > > 3. Tangleing and executing the code via a shell blocks works great. I > saw somewhere that you could even tangle from the command line by > calling emacs in batch mode. That's maybe a bit overcomplex for my > task but some additional style to noweb might be nice. Instead of > placing the code block at the point of call, tangle the code > block. Then I could call > > <> > <> > <> > > If I understood right, noweb for now only place the code of the block > at the particular place. Maybe, I could write a lisp-block "tangle" > which tangles the code and call it via > <> > Just want to know if this might be a good idea in general or if this > works already in some other way. > You probably don't want to pass the body of a code block to a lisp function as quoting will become a nightmare, however passing the name to a lisp block may be reasonable. I would suggest that rather than implementing this behavior in a code block you take a look at starting a ob-java.el file. A partial implementation (e.g., only external evaluation, no session evaluation) would be a useful contribution, and given the many helper functions and examples present in the other ob-* files this would most likely be easier than a custom lisp-block implementation. Best -- Eric > > All the best > > Totti > -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] How-to evaluate Java-snippets in org-mode/org-babel?
"Jason F. McBrayer" writes: > On Tue, 05 Jul 2011 10:07:19 +0100, Eric S Fraga wrote: >> Torsten Wagner writes: >> >>> Hi all, I need to evaluate many small java snippets. I tried to do >>> this >>> in org-mode but so fare it didn't work out. org-babel seems to have >>> no >>> java support ? >> >> Not directly but, given the issues with class paths and naming >> schemes, >> I would suggest that the best route is to use babel to tangle code >> instead of trying to execute it directly within org. > > My guess is that if you want to execute it directly within org, the > thing to do is to run it in beanshell[1], like JDEE does. I'm not > really familiar enough with org-babel to tell you how to go about > doing that, though. > > > [1] http://www.beanshell.org/ I think the first place to look for executing Java from Org-mode code blocks would be to check if any existing Emacs java modes already provide support for interactive code evaluation. When possible piggybacking off of existing support modes is generally the easiest solution. See org/ob-C.el for an example of how to execute a code block which requires compilation before execution. I've (thankfully) managed to avoid using Java throughout my CS career, so I'm not overly familiar with the execution mechanics. There are numerous examples in the ob-* files of languages which write code block bodies to external files and then pass those files to executables. beanshell looks like it may provide the best option for :session evaluation, however if no inferior java mode currently exists I would be hesitant to try to wrap beanshell directly. Cheers -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] Create a view of just source-code blocks?
Michael Hannon writes: > Greetings. I'd like to be able to view just the source-code blocks in a Babel > file. I.e., I'd like to do something logically equivalent to "tangle", but > without creating a separate file, just a view within the current file. Any > suggestions? > > Thanks, > > -- Mike > Hi Mike, Something like the attached should work, although I'm not sure if/how this could be incorporated into Org-mode. hide-non-code.el Description: application/emacs-lisp -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] How-to evaluate Java-snippets in org-mode/org-babel?
Hi Jason, My guess is that if you want to execute it directly within org, the thing to do is to run it in beanshell[1], like JDEE does. I'm not really familiar enough with org-babel to tell you how to go about doing that, though. Maybe this works nice too. However, so fare Erics solution turns out nice. Would need to see which advantages I would have using beanshell. Maybe code debugging might be easier then. Thanks for the tipp Totti
Re: [O] org-mode debian squeeze problem
Jude DaShiell writes: > a git clone of org-mode in /home/jude prouces > /home/jude/org-mode/org-mode/ and puts content in the fourth level > directory which breaks the Makefile's ability to make all. I don't know > how or why this happens. Please provide the command line you are using to clone org-mode.git which produces this behaviour. Regards, -- Bernt
Re: [O] How-to evaluate Java-snippets in org-mode/org-babel?
Hi Eric, Somehow I was pretty sure you would answer ;) I tried your example and it work great so far. I have three points which I would like to discuss 1. I thought it might be nice to declare the package and class name for the java-stuff as variable in a property node then I could do something like: * Coursework 1 :PROPERTIES: :var: PKGNAME="cw1" :var: CLASS="calc" :END: ** Snippet 1 ** Snippet 2 * Coursework 2 :PROPERTIES: :var: PKGNAME="cw2" :var: CLASS="string" :END: ** Snippet 1 ** Snippet 2 Unfortunately, org-mode does not allow multiple definition of the same property. I know there is a work around with a table. However, I thought I could use simply a list. :var: vars="(cw1 calc)" and use this in my shell script. However, this doesn't work. I can't index them. Any idea? Should it work in principle? Could I e.g., use :var: vars="{'x': 128, 'y': 210}" and put this in a python block accessing them by vars['x'] and vars['y']? That would be great! 2. I'm not totally sure but it seems that tangling creates the desired file if it is not existing so fare but it does not create folders thus, :tangle path/filename seems not to work. Any reason for this or maybe good idea to add it as a feature? For now, I added a little shell-based block "start" which takes care of this. 3. Tangleing and executing the code via a shell blocks works great. I saw somewhere that you could even tangle from the command line by calling emacs in batch mode. That's maybe a bit overcomplex for my task but some additional style to noweb might be nice. Instead of placing the code block at the point of call, tangle the code block. Then I could call <> <> <> If I understood right, noweb for now only place the code of the block at the particular place. Maybe, I could write a lisp-block "tangle" which tangles the code and call it via <> Just want to know if this might be a good idea in general or if this works already in some other way. All the best Totti
Re: [O] Calendar-like view of the org-agenda
Bastien writes: > Thanks for this -- I guess you'll find a lot of dedicated testers here. [...] > Also explore the Agenda views (M-x org-agenda -- see the manual), your > package might give us new ideas on how to display agenda information. might? I'm almost certain it will! This is *beautiful*. Just when I thought it couldn't get any better, *pow*, there comes a new project along. , | Date: Mon Jan 3 19:11:07 2011 +0900 | | first commit ` , | Date: Thu Jun 9 14:58:57 2011 +0900 | | added: org-agenda integration. ` Hui, rapid development. And org integration is fairly fresh... Note to self: ** TODO Check backup setup for core orgfiles ,[ calfw-org.el ] | ;; Display org-agenda items in the calfw buffer. | ;; (Because I don't use the org-agenda mainly, | ;; I hope someone continue integration with the org.) ` With so many orgers around, I have no doubt that org integration will improve. Memnon
Re: [O] Calendar-like view of the org-agenda
> what I would like, however, is that the detailed view that is accessible > from hitting the space bar in the cfw view put me into an agenda view > for that day. that would then give me full access to org! this should > be quite simple: replace the detail view with a simple invocation of the > default org-agenda view (what you get from C-c a a, say) for that > particular date? Great idea. This would indeed be a good (and simple) solution. However, unfortunately it does not solve the other problem: > I particularly like having a graphical view of my commitments, > especially for a month, without worrying about detail. Org's > agenda view becomes cumbersome (for me) when going beyond a week's > view (or even a day sometimes...) [1]. Me too, but the problem with the current approach is that, at least for me, this view is full of tasks that are not mine, are in a different order (not by priorities), etc., which then does not help. Manuel --
Re: [O] Calendar-like view of the org-agenda
Tassilo Horn writes: > Manuel Hermenegildo writes: > > Hi! > >> Or, perhaps even simpler, calfw could simply read the org-agenda >> buffer (colors and all) instead of reading the org files. >> >> This would have the enormous advantage that it would always generate >> the tasks with the same order, priorities, filters, customizations, >> etc. as the org agenda. >> >> What do you think? > > I don't think that would be simpler. The way it operates now requires > only picking several text properties (like 'date which it does, and > 'time or 'priority which it currently doesn't). Parsing agenda buffers > would require building 42 org day agenda buffers and heavy > transformation on strings, like cutting the time grid and moving the > times around (you don't want to have a long string 08:00-10:00 in front > of timed entries in calfw, because then you won't see anything from the > headline/description), and other stuff. yes, I agree (on the not wanting time information etc). but it all depends on the design goals for this software. I particularly like having a graphical view of my commitments, especially for a month, without worrying about detail. Org's agenda view becomes cumbersome (for me) when going beyond a week's view (or even a day sometimes...) [1]. what I would like, however, is that the detailed view that is accessible from hitting the space bar in the cfw view put me into an agenda view for that day. that would then give me full access to org! this should be quite simple: replace the detail view with a simple invocation of the default org-agenda view (what you get from C-c a a, say) for that particular date? just some thoughts! thanks, eric Footnotes: [1] I often use Google's calendar for this, having uploaded all my org details but I don't expect to use Google to update my org files. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.580.g301b34)
[O] Bug: OrgMobile errors on push with custom functions in the agenda dispatcher [7.5 (release_7.5.580.g301b34)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Org allows for adding custom functions into the agenda dispatcher. For example, to be able to fire up a calfw calendar from the agenda dispatcher, I use this: --8<---cut here---start->8--- (setq org-agenda-custom-commands '(("n" "Next 21 days" agenda "" ((org-agenda-span 21))) ("^" "Calfw Month Calendar" (lambda (&rest ignore) (cfw:open-org-calendar) --8<---cut here---end--->8--- That works, but when invoking M-x org-mobile-push RET, I get this error: --8<---cut here---start->8--- Debugger entered--Lisp error: (wrong-type-argument listp lambda) org-mobile-sumo-agenda-command() org-mobile-create-sumo-agenda() org-mobile-push() call-interactively(org-mobile-push t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) --8<---cut here---end--->8--- Here's a patch that fixes the issue. --8<---cut here---start->8--- >From 16b1025d13fa490c576ed12a391cfd365af63e8d Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Wed, 6 Jul 2011 12:10:16 +0200 Subject: [PATCH] Fix org-mobile-push with custom functions. --- lisp/org-mobile.el |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el index 7b1bcbe..7654475 100644 --- a/lisp/org-mobile.el +++ b/lisp/org-mobile.el @@ -575,8 +575,9 @@ The table of checksums is written to the file mobile-checksums." " " match "")) settings)) (push (list type match settings) new)) - ((symbolp (nth 2 e)) - ;; A user-defined function, not sure how to handle that yet + ((or (functionp (nth 2 e)) (symbolp (nth 2 e))) + ;; A user-defined function, which can do anything, so simply + ;; ignore it. ) (t ;; a block agenda -- 1.7.6 --8<---cut here---end--->8--- Bye, Tassilo Emacs : GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.5) of 2011-07-05 on thinkpad Package: Org-mode version 7.5 (release_7.5.580.g301b34)
Re: [O] Calendar-like view of the org-agenda
Manuel Hermenegildo writes: Hi! > Or, perhaps even simpler, calfw could simply read the org-agenda > buffer (colors and all) instead of reading the org files. > > This would have the enormous advantage that it would always generate > the tasks with the same order, priorities, filters, customizations, > etc. as the org agenda. > > What do you think? I don't think that would be simpler. The way it operates now requires only picking several text properties (like 'date which it does, and 'time or 'priority which it currently doesn't). Parsing agenda buffers would require building 42 org day agenda buffers and heavy transformation on strings, like cutting the time grid and moving the times around (you don't want to have a long string 08:00-10:00 in front of timed entries in calfw, because then you won't see anything from the headline/description), and other stuff. Bye, Tassilo
Re: [O] Calendar-like view of the org-agenda
First, thanks very much to Sakurai for a wonderful tool and having integrated it so well with org! > For me, creating a custom org agenda with the next 21 days takes > not much less than building an calfw calendar buffer with 42 days. Same here, the times are comparable. For me building the org calendar is a little slower but it makes sense because it is running some filters, while calfw is not. Which brings me to my question, which is related to: > One thing which I'm currently missing is that the calfw entries > gathered from org are missing the times (if that's specified using the > 'time text property) and are sorted in an order I can't understand. Seems like calfw is ignoring the org priorities and order. In my case the problem is that calfw is gathering all the tasks ignoring my per tag filters. I explain: in my case I only want to see in my agenda entries that have a certain tag (my tag): I share org files with other people and we assign tasks by marking E.g., I am MH and my tasks are like: * TODO Thank Sakurai for a great tool <2011-07-05 Tue> :MH: which should appear in my agenda and there are other tasks like: * TODO Write paper <2011-07-05 Tue> :JF: which should only appear in JF's agenda. This is done using a custom agenda command that filters by tag. It seems to me too complicated to try to reproduce all the nuances and capabilities of org agenda generation (priorities, filtering, custom views, etc.) and do it all again in calfw --it would always be very hard to keep them in sync. I have not had time to look at the code, but perhaps calfw, instead of reading directly the org files could instead use the org code that generates the agenda and then present the agenda in its very nice and graphical way. I.e., an idea would be to add a back end to the code that generates the org agenda which, instead of rendering the agenda creates the calfw objects. Or, perhaps even simpler, calfw could simply read the org-agenda buffer (colors and all) instead of reading the org files. This would have the enormous advantage that it would always generate the tasks with the same order, priorities, filters, customizations, etc. as the org agenda. What do you think? Manuel -- --- Manuel Hermenegildo | Prof., C.S.Dept., T.U. Madrid (UPM) Director, IMDEA SW Institute & CLIP Group | +34-91-336-7435 (W) -352-4819 (Fax) ---
Re: [O] Org Mode dedicated app on OS X
Dear Ken, On 05.07.2011, at 16:48, Ken Mankoff wrote: > Thanks for the tips. Most already done. Excellent! > [...] > I also have copied Aquamacs.app, renamed it OrgMode.app, and have the unicorn > as the icon. I'm a bit stuck on the last step you suggest. > >> If you are thinking about a distribution-like approach (so it works >> "out-of-the-box" for others) you would probably need to copy your changes to >> a >> >> /Applications/Aquamacs.app/Contents/Resources/site-lisp >> >> directory. > > I don't need it to distribute it to 3rd parties, but I'm not opposed to > setting it up like that. What files should I put in the directory? And what > contents? And how do I get emacs to auto-load them? I have a half-finished project that uses a slightly different approach: we did a course teaching some principles of computer programming and imaging to children, http://www.nf.mpg.de/kinderuni/kinderuni_en.html, where Aquamacs was customized for easy Python programming and I added some Org-mode specific stuff while I was at it. Here, we used a wrapper-type "application" (a Python script turned into a Mac-type program by Platypus, http://www.sveinbjorn.org/platypus) that starts an unmodified version of Aquamacs with EMACS = "/Applications/Aquamacs.app/Contents/MacOS/aquamacs" os.system("open -a " + EMACS + " --args -l " + el_file + " -eval '(message \"KinderUni - happy coding!\")' &") where el_file sets up some special menus (with nice and large icons) and settings for python and Org-mode. I might have some time over the next six weeks to polish and release this. Warm regards, Stefan > I'm still figuring out a workflow so please let me know if this makes sense, > but I'm picturing something like this: > > * I launch my OrgMode.app > > * It opens and (via its internal site-lisp magic) loads > ~/Dropbox/Org/index.org > > * index.org is a file I'll maintain manually that links to my other org files > so I can access them using the inter-linking ability in org-mode > > * If something like index.org can be automated that would be OK, but I don't > mind maintaning it as my meta-org file. Perhaps based on something like I > have now in my .emacs: > > (setq org-agenda-files (list "~/Dropbox/org/foo.org" > "~/Dropbox/org/bar.org)) > > > -k. -- Dr. Stefan Vollmar, Dipl.-Phys. Head of IT group Max-Planck-Institut für neurologische Forschung Gleuelerstr. 50, 50931 Köln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: voll...@nf.mpg.de http://www.nf.mpg.de smime.p7s Description: S/MIME cryptographic signature
Re: [O] Calendar-like view of the org-agenda
Hi, all Thank you for many comments. I'm so glad to know many people are interesting in calfw. I'm working on my job in daytime, so I will reply later.
[O] [BABEL][PATCH] ob-lilypond basic mode - was ob-lilypond
HiI've added functionality to make ob-lilypond act in a consistent org-babel way by default (think ob-dot).The previous modus operandi is now known as arrange-mode and is selected by setting ly-arrange-mode to tMore details including examples are at http://github.com/mjago/ob-lilypondPatch: basic-mode.patch Description: Binary data Included examples are as follows... - Export org file with lilypond fragments to pdf using eps (high quality vector graphics) - org source: https://github.com/mjago/ob-lilypond/raw/master/examples/basic-mode/pdf-example/pdf-example.org - resultant pdf: https://github.com/mjago/ob-lilypond/blob/master/examples/basic-mode/pdf-example/pdf-example.pdf?raw=true - Export org file with lilypond fragments to html using png - org source: https://github.com/mjago/ob-lilypond/raw/master/examples/basic-mode/html-example/html-example.org - resultant html: https://raw.github.com/mjago/ob-lilypond/master/examples/basic-mode/html-example/html-example.htmlRegardsMartynOn 1 Jul 2011, at 13:01, Christian Moe wrote:On 6/30/11 8:10 PM, Eric Schulte wrote:Martyn Jagowrites:(...)Great, I've just moved this into the Org-mode core and added it to thelist of Babel languages.Great!One distinction that has occurred to me (especially following comments onthe mailing list) is that of "babel language" and "babel language work-flow".In other words, I can visualise refactoring ob-lilypond to be no more thana specification of the Lilypond syntax, and working in parallel, on awork-flow implementation for Lilypond that is "opinionated" in terms ofadjusting org-babel settings away from their defaults / removing work-flownoise etc. ( org-lilypond.el ) ? Would this make sense, and if so where wouldit live (aligned to org-babel / a native Emacs mode perhaps)?I hope that makes sense.That sounds like a good idea. Ideally ob-lilypond should include justthose elements expected by the code block interface, namely functionsfor session/external evaluation, for expanding variables in code blockbodies, and for returning results to Org-mode. I think that it would bea good idea to develop an external org-lilypond to support a morecomprehensive workflow.I like this.I certainly see that the already complex task of making arrangements like those in Martyn's examples should be made as easy as possible.As for the comparatively simple use cases I brought up, once they're supported by ob-lilypond I'd be perfectly happy to throw header arguments at them.Yours,Christian
Re: [O] Calendar-like view of the org-agenda
Christopher Allan Webber writes: Hi Christopher, > Also, cfw:open-org-calendar works, but things seem really slow... it > looks like you're recalculating the entire orgmode agenda for every > day. I wonder if things could be sped up if the orgmode agenda was > calculated for the entire period all at once and then broke that up > into days? For me, creating a custom org agenda with the next 21 days takes not much less than building an calfw calendar buffer with 42 days. It's about one second for the former and 2 seconds for the latter, so it seems calfw does the right thing. One thing which I'm currently missing is that the calfw entries gathered from org are missing the times (if that's specified using the 'time text property) and are sorted in an order I can't understand. For example, my org agenda for yesterday was uni:08:30-10:00 Übung GST SS 2011 (B 013) :agebert:teaching:: uni:14:30-16:30 AG Ebert-Treffen:agebert:: uni:Deadline: DONE CoffeeList-Blatt 25 mal drucken :agebert:teaching:: which is shown as +---+ | 5 (3) | |AG Ebert-Tre...| |DONE CoffeeL...| |Übung GST SS...| | | | | | | | | +---+ I think it would be good if the sorting was by time (items with no time at the bottom) and the time was visible somehow, for example in the tooltips. Another thing: If you have several split windows and calfw selects a window very narrow in height (or there are simply too many items for some day), then not all items are shown. That would be ok if there was some indication that some items are missing. Bye, Tassilo