[Orgmode] Re: Fixing slowness of following Gnus links to IMAP articles
Hi Tassilo and David, Tassilo Horn wrote: I'm trying to add a workaround to org-gnus.el which should save the slowness of querying the IMAP server by looking up the article number in the group's .overview file. But since I don't have nnimap groups, we have to play some question answer game. ;-) Just to give you feedback, here's a cite from the answer of my postmaster about the bad experiences with Courier: Had a search and it appears that courier doesn't support this. The best solution would be to upgrade our mail server to use dovecot. Seems it must be fixed, then, by either of the following approaches: - enhance Gnus's cache (what you tried) - move client from Gnus to Wanderlust (but I'm not yet convinced about such a move) - move server from Courier to Dovecot (depends on my postmaster) Thanks to you... 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] What license for Worg?
what is the most suitable license (or licensing scheme) for Worg? Here is the best solution I can think of: dual-licensing[1] under the GNU Free Documentation License 1.3[2] and the Creative Commons BY-SA 3.0[3] license. This solution would make it possible to take excerpts from Worg and put them into Org manual for later inclusion in Emacs, which uses GFDL 1.3 for the Emacs manual. Would any Worg contributor have objection to this? That's fine with me. However, I think you may have to begin the long and tedious task of identifying all contributors to Worg and asking their permission. If this isn't done we may end up with Free and Non free versions of Worg. 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] Export emails from Lotus Notes to org-mode?
Hi all, I have to use Lotus Notes at work. I often get emails with reference material, other than the text, e.g. attached files or inline pictures. Is it possible to export the entire email, including this reference material, into something that I can link to from within org-mode? Johan ___ 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 recent changes exported page?
Scot Becker scot.becker at gmail.com writes: True. I watch the recent changes to worg in an RSS feed reader, and it would be very nice to get from there to the worg pages itself (rather than just the diffs)Scot http://pipes.yahoo.com/pipes/pipe.info?_id=7874b4183cbacfa142403259494c074e There. Replaces files mentions with correspondent links. You can clone the pipe and edit if you wish. But if it's good enough, when the rss output is subscribed by at least few people in Google Reader, it'll be grabbed by Google once per a hour; once per 4 hours with single subscriber AFAIK On Fri, Jan 9, 2009 at 7:47 PM, Samuel Wales samologist at gmail.com wrote:On Fri, Jan 9, 2009 at 08:04, Bernt Hansen I think the misconception here is that Worg is a wiki and it's not :) Fair enough :). However, if it were possible to look at a recent commit and then click to get to the exported page, that would be a convenient way to keep up with worg. -- For personal gain, myalgic encephalomyelitis denialists are knowingly causing further suffering and death by grossly corrupting science. Do you care about the world? http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list.Emacs-orgmode at gnu.orghttp://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode at 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: worg recent changes exported page?
Thanks. That seems to work. Scot On Tue, Aug 3, 2010 at 10:56 AM, Roman rzon...@gmail.com wrote: Scot Becker scot.becker at gmail.com writes: True. I watch the recent changes to worg in an RSS feed reader, and it would be very nice to get from there to the worg pages itself (rather than just the diffs)Scot http://pipes.yahoo.com/pipes/pipe.info?_id=7874b4183cbacfa142403259494c074e There. Replaces files mentions with correspondent links. You can clone the pipe and edit if you wish. But if it's good enough, when the rss output is subscribed by at least few people in Google Reader, it'll be grabbed by Google once per a hour; once per 4 hours with single subscriber AFAIK On Fri, Jan 9, 2009 at 7:47 PM, Samuel Wales samologist at gmail.com wrote:On Fri, Jan 9, 2009 at 08:04, Bernt Hansen I think the misconception here is that Worg is a wiki and it's not :) Fair enough :). However, if it were possible to look at a recent commit and then click to get to the exported page, that would be a convenient way to keep up with worg. -- For personal gain, myalgic encephalomyelitis denialists are knowingly causing further suffering and death by grossly corrupting science. Do you care about the world? http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list.Emacs-orgmode at gnu.orghttp://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode at 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
[Orgmode] [babel] Error Before first headline.
Hi im trying to figure out how to generate sourcefiles from babel files and i keep getting the same error. I have tried a few different codeblocks from the documentation and the only thing that changes is the position number. I hope i have not missed something in the documentation. Code: #+BEGIN_SRC emacs-lisp (defun org-xor (a b) Exclusive or. (if a (not b) b)) #+END_SRC Debug message: Debugger entered--Lisp error: (error Before first headline at position 1 in buffer test.org) signal(error (Before first headline at position 1 in buffer test.org)) error(Before first headline at position %d in buffer %s 1 #buffer test.org) byte-code(\300\301`p#\207 [error Before first headline at position %d in buffer %s] 4) org-back-to-heading(t) org-heading-components() byte-code(\306\307 !\210peb\210\310 \311\312#\203\370 ___ 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 versionitis?
In Bernt Hansen's Organize your life in plain text he has (require 'org-babel-init) (require 'org-babel-ditaa) (org-babel-load-library-of-babel) But with my 7.01trans org I get Cannot open load file org-babel-init I guess this has to change to (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (ditaa . t))) I am just guessing something about babel initialization has changed recently?? ___ 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] Error Before first headline.
Hi im trying to figure out how to generate sourcefiles from babel files and i keep getting the same error. Tried putting a 'first headline' as it wants? ie * Dummy header #+BEGIN_SRC emacs-lisp (defun org-xor (a b) etc ___ 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-indent-mode (lack of) support for plain list
Artis Rozentāls artis.rozent...@gmail.com writes: I was happy to finally find a way to do soft line wrapping with org-indent-mode and visual-line-mode, unfortunately it seems that it doesn't support plain lists. Are there any plans to expand org-indent-mode to support the full markup of org-mode? I think indentation of plain lists would be a good option for org-indent-mode. ___ 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] babel versionitis?
Correct, about a month ago: http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html On 08/03/2010 05:59 AM, Rustom Mody wrote: In Bernt Hansen's Organize your life in plain text he has (require 'org-babel-init) (require 'org-babel-ditaa) (org-babel-load-library-of-babel) But with my 7.01trans org I get Cannot open load file org-babel-init I guess this has to change to (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (ditaa . t))) I am just guessing something about babel initialization has changed recently?? ___ 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 versionitis?
Rustom Mody rustompm...@gmail.com writes: In Bernt Hansen's Organize your life in plain text he has (require 'org-babel-init) (require 'org-babel-ditaa) (org-babel-load-library-of-babel) But with my 7.01trans org I get Cannot open load file org-babel-init I guess this has to change to (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (ditaa . t))) I am just guessing something about babel initialization has changed recently?? The setup changed in release 7.01. I've updated my document. Thanks for pointing this out. -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
Re: [Orgmode] What license for Worg?
On Mon, Aug 02, 2010 at 02:33:10PM +0200, Bastien wrote: Hi all, what is the most suitable license (or licensing scheme) for Worg? Here is the best solution I can think of: dual-licensing[1] under the GNU Free Documentation License 1.3[2] and the Creative Commons BY-SA 3.0[3] license. This solution would make it possible to take excerpts from Worg and put them into Org manual for later inclusion in Emacs, which uses GFDL 1.3 for the Emacs manual. Would any Worg contributor have objection to this? I'm open to any suggestion, please let ideas flow. This seems fine, the only possible concern that I have with this is that GFDL licensed code snippets aren't compatible with the GPL. I'm not sure how much actual code is in worg, and if this is an issue, but it's worth considering. My impulse for free-software-style writing projects is to use the emacs wiki license statement which says CC-BY-SA/GFDL/GPL 3 or later (with a clarification of what constitutes corresponding source code), but that might be a bit vague in some cases. Cheers! sam -- tycho(ish) @ ga...@tychoish.com http://www.tychoish.com/ http://www.cyborginstitute.com/ don't get it right, get it written -- james thurber ___ 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] Common Lisp / SLIME support for babel
Hi David, I've forked your github repository, and I now have it to the point where basic session and external evaluation are both working on my system using SBCL. It is now also possible to pass variables into lisp blocks. It certainly needs more cleanup and testing, but this initial pass is up at http://github.com/eschulte/org-babel-lisp Cheers -- Eric David O'Toole dto1...@gmail.com writes: Hi, I've updated my proposed ob-lisp module for the new API. I am now using org updated from git head. http://github.com/dto/org-babel-lisp Despite having the ob-template.el and ob-clojure modules, I'm still stuck making sessions work properly. Executing successive statements with an already-open SLIME session works (testing with SBCL and latest SLIME) but it doesn't update the *inferior-lisp* buffer the way I would like, hangs emacs, and also results in weird errors about asynchronous evaluation aborted. The tangling works since it is language-agnostic, and the tangling is 95% of what i need. But I would love to be able to execute blocks dynamically without the glitches I have now. Perhaps someone more familiar with org and slime could help? I feel like I've run out of ideas. Thanks everyone. By the way, I am still working on my DAM (digital asset management) litprog ideas, inspired by org-babel. The current version of my proposal document with some ideas: http://github.com/dto/hypo/raw/master/hypo.org An example, working on a game's code using org-babel literate tools: http://github.com/dto/xe2/raw/master/void/void.org ___ 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: [babel] Error Before first headline.
Hi, Please include the actual error, as well as a minimal Org-mode file sufficient to generate the error. The email below does not contain enough information to diagnose your problem. Thanks -- Eric Rustom Mody rustompm...@gmail.com writes: Hi im trying to figure out how to generate sourcefiles from babel files and i keep getting the same error. Tried putting a 'first headline' as it wants? ie * Dummy header #+BEGIN_SRC emacs-lisp (defun org-xor (a b) etc ___ 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] Common Lisp / SLIME support for babel
Hi Eric, I just tried it out, and it seems to work great! Thanks so much for this. So, I already have FSF papers, consider it yours :) On Tue, Aug 3, 2010 at 10:12 AM, Eric Schulte schulte.e...@gmail.com wrote: Hi David, I've forked your github repository, and I now have it to the point where basic session and external evaluation are both working on my system using SBCL. It is now also possible to pass variables into lisp blocks. It certainly needs more cleanup and testing, but this initial pass is up at http://github.com/eschulte/org-babel-lisp Cheers -- Eric David O'Toole dto1...@gmail.com writes: Hi, I've updated my proposed ob-lisp module for the new API. I am now using org updated from git head. http://github.com/dto/org-babel-lisp Despite having the ob-template.el and ob-clojure modules, I'm still stuck making sessions work properly. Executing successive statements with an already-open SLIME session works (testing with SBCL and latest SLIME) but it doesn't update the *inferior-lisp* buffer the way I would like, hangs emacs, and also results in weird errors about asynchronous evaluation aborted. The tangling works since it is language-agnostic, and the tangling is 95% of what i need. But I would love to be able to execute blocks dynamically without the glitches I have now. Perhaps someone more familiar with org and slime could help? I feel like I've run out of ideas. Thanks everyone. By the way, I am still working on my DAM (digital asset management) litprog ideas, inspired by org-babel. The current version of my proposal document with some ideas: http://github.com/dto/hypo/raw/master/hypo.org An example, working on a game's code using org-babel literate tools: http://github.com/dto/xe2/raw/master/void/void.org ___ 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] Common Lisp / SLIME support for babel
Great! I'll merge this into Org-mode now, and we can continue its development and maintenance from there. Thanks -- Eric David O'Toole dto1...@gmail.com writes: Hi Eric, I just tried it out, and it seems to work great! Thanks so much for this. So, I already have FSF papers, consider it yours :) On Tue, Aug 3, 2010 at 10:12 AM, Eric Schulte schulte.e...@gmail.com wrote: Hi David, I've forked your github repository, and I now have it to the point where basic session and external evaluation are both working on my system using SBCL. It is now also possible to pass variables into lisp blocks. It certainly needs more cleanup and testing, but this initial pass is up at http://github.com/eschulte/org-babel-lisp Cheers -- Eric David O'Toole dto1...@gmail.com writes: Hi, I've updated my proposed ob-lisp module for the new API. I am now using org updated from git head. http://github.com/dto/org-babel-lisp Despite having the ob-template.el and ob-clojure modules, I'm still stuck making sessions work properly. Executing successive statements with an already-open SLIME session works (testing with SBCL and latest SLIME) but it doesn't update the *inferior-lisp* buffer the way I would like, hangs emacs, and also results in weird errors about asynchronous evaluation aborted. The tangling works since it is language-agnostic, and the tangling is 95% of what i need. But I would love to be able to execute blocks dynamically without the glitches I have now. Perhaps someone more familiar with org and slime could help? I feel like I've run out of ideas. Thanks everyone. By the way, I am still working on my DAM (digital asset management) litprog ideas, inspired by org-babel. The current version of my proposal document with some ideas: http://github.com/dto/hypo/raw/master/hypo.org An example, working on a game's code using org-babel literate tools: http://github.com/dto/xe2/raw/master/void/void.org ___ 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
[Orgmode] camel.el, for CamelCase links
http://github.com/dto/folio/blob/master/camel.el Someone asked about this recently, i have some partially working code. Anyone want to try? ___ 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] [mobileorg-android] Files synced, but nothing showing
Fixed the problem! It appears that checksum.dat wasn't being generated. When I upgraded from 6.36c to 7.01g, the file was being generated, and sync worked! Sorry for the list noise! __ Jonathan Arkell Tech Lead Inspired By Drum Bass, Scheme, Kawaii p. 403.206.4377 402 -- 11th Ave SE Calgary, AB, Canada T2G 0Y4 jonath...@criticalmass.com criticalmass.com On Aug 2, 2010, at 8:58 PM, Jonathan Arkell wrote: Hi Orgers. This could easily be a PEBKAC issue, I have pushed the files to my webdav with org-mobile-push, but when I try to sync with my webdav folder using MobileOrg, I get a blank MobileOrg screen. Also, the mobileorg directory on my SD card is empty. This is using version 0.4 alpha. When I try to capture something, it seems to work (mobileorg.org file is created, with my captured entry). During the sync, mobileorg.org is sent to the webdav server. my index.org is just a simple set of links like so: [[View20K.org]] [[View30K.org]] ... [[Game.org]] [[Music.org]] Can anyone help? What Am I doing wrong? __ Jonathan Arkell Tech Lead Inspired By Drum Bass, Scheme, Kawaii p. 403.206.4377 402 -- 11th Ave SE Calgary, AB, Canada T2G 0Y4 jonath...@criticalmass.com criticalmass.com The information contained in this message is confidential. It is intended to be read only by the individual or entity named above or their designee. If the reader of this message is not the intended recipient, you are hereby notified that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message. ___ 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
[Orgmode] column view asterisks
In the Column View, the asterisks are showing even though I've enabled clean view that hides the asterisks normally. Is there a way to hide them? thanks, ilya p.s. since the Column View can take a while to construct, it might be good to display a status message saying creating column view while it's working. ___ 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] hiding PROPERTIES line
Is there a way to hide/show the :PROPERTIES: line representing the properties locker, either globally or for a subtree? I'd like to store some properties for every entry (e.g. its creation time), but then the :PROPERTIES: lines add too much clutter, even in the drawer-collapsed state. Is there a way to hide/show them just like the closed outline subtrees are hidden/shown? thanks, 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
[Orgmode] Babel - display results in an overlay?
Hello I am looking for an org-mode solution to storing a number of variables and referencing them nicely in an org-mode buffer. I would like to write something like this: {foo:1+3} and {bar:foo+3} and have it displayed (with overlays) as: foo:4 and bar:7 Any ideas how to hack org and babel to do this. Simple numeric operations suffice but I have a few dozen variables so an easy an intuitive interface is the most important aspect. - Taru Karttunen ___ 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] Error Before first headline.
Oh, I missed the first message in this thread and didn't realize that the previous message was a response to an existing bug report (one which *did* include an error message and reproduction information). My Apologies for the harsh reply -- Eric also, I think the original message indicates a bug in Babel's tangling which I will take a look at. Eric Schulte schulte.e...@gmail.com writes: Hi, Please include the actual error, as well as a minimal Org-mode file sufficient to generate the error. The email below does not contain enough information to diagnose your problem. Thanks -- Eric Rustom Mody rustompm...@gmail.com writes: Hi im trying to figure out how to generate sourcefiles from babel files and i keep getting the same error. Tried putting a 'first headline' as it wants? ie * Dummy header #+BEGIN_SRC emacs-lisp (defun org-xor (a b) etc ___ 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] Babel - display results in an overlay?
Hi Taru, Babel can be used for storing and manipulating values of variables, and Babel already has a syntax for referencing these things inline in an Org-mode buffer using inline code blocks. The syntax of an inline code block is src_lang[optional header arguments]{code body} The following property can be used to to ensure that all of your inline blocks are evaluated in the same session #+property: session *R* then you can use any programming language which your system supports to handle the variable assignment and manipulation (R is used below). e.g. : foo is src_R{foo - 1+3} and bar is src_R{bar - foo+3} would export to : foo is 4 and bar is 7 There is currently no support for replacing a code block with an overlay of it's results, but such a function may not be too difficult to write. Take a look at the `org-babel-open-src-block-result' function which has related functionality. This would be a generally useful feature -- the ability to replace all code blocks in a buffer with an overlay of their results (possibly with some colored background indicating that the results are actually the product of a code block). I'm interested to see what you come up with -- Eric Taru Karttunen tar...@taruti.net writes: Hello I am looking for an org-mode solution to storing a number of variables and referencing them nicely in an org-mode buffer. I would like to write something like this: {foo:1+3} and {bar:foo+3} and have it displayed (with overlays) as: foo:4 and bar:7 Any ideas how to hack org and babel to do this. Simple numeric operations suffice but I have a few dozen variables so an easy an intuitive interface is the most important aspect. - Taru Karttunen ___ 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
[Orgmode] Problem when exporting to PDF to a different directory
Hi everybody, I am running into the following issue. I would like to export certain subtrees of an org file to a particular directory. I set the export property as follows: * Test 1 :PROPERTIES: :EXPORT_FILE_NAME: some_directory/some_name :END: When I try exporting the above subtree as a pdf (say for example, by running C-c C-e 1 d), the .tex file is created in the appropriate target directory, but the .pdf file is created in the current directory (while emacs mistakenly reports that the pdf was not created). Is there a way to get this to work correctly? Thanks, -- 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] Re: [babel] Error Before first headline.
I've fixed this problem with the attached patch. I'll push this patch up to the repository as soon as repo.or.cz comes back online (looks like it's been down for the last couple of hours) with the patch applied the following will now tangle --8---cut here---start-8--- #+begin_src emacs-lisp :tangle yes (message is a problem?) #+end_src --8---cut here---end---8--- Best -- Eric From a8ff1b0319bb536eca123b77ec1e5b3f702c2ff5 Mon Sep 17 00:00:00 2001 From: Eric Schulte schulte.e...@gmail.com Date: Tue, 3 Aug 2010 11:20:48 -0600 Subject: [PATCH] ob-tangle: don't throw errors when we're not under of a headline * lisp/ob-tangle.el (org-babel-tangle-collect-blocks): don't throw errors when we're not under of a headline --- lisp/ob-tangle.el |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 7464f59..a7ba072 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -234,7 +234,9 @@ code blocks by language. (setq current-heading new-heading)) (setq block-counter (+ 1 block-counter (replace-regexp-in-string [ \t] - - (nth 4 (org-heading-components + (condition-case nil + (nth 4 (org-heading-components)) + (error (buffer-file-name) (let* ((link (progn (call-interactively 'org-store-link) (org-babel-clean-text-properties (car (pop org-stored-links) -- 1.7.0.4 Eric Schulte schulte.e...@gmail.com writes: Oh, I missed the first message in this thread and didn't realize that the previous message was a response to an existing bug report (one which *did* include an error message and reproduction information). My Apologies for the harsh reply -- Eric also, I think the original message indicates a bug in Babel's tangling which I will take a look at. Eric Schulte schulte.e...@gmail.com writes: Hi, Please include the actual error, as well as a minimal Org-mode file sufficient to generate the error. The email below does not contain enough information to diagnose your problem. Thanks -- Eric Rustom Mody rustompm...@gmail.com writes: Hi im trying to figure out how to generate sourcefiles from babel files and i keep getting the same error. Tried putting a 'first headline' as it wants? ie * Dummy header #+BEGIN_SRC emacs-lisp (defun org-xor (a b) etc ___ 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
[Orgmode] [ANN] org-protocol-httpd
Hello all, org-protocol-httpd is an Http-server running in Emacs that responds to requests where the path is: - an org-protocol action. In this case the associated handler from org-protocol is executed. - an org-protocol-httpd action. In this case the associated handler is executed and its return value is passed back to the client. My reason for writing this is that I needed a proper way to retrieve information from Emacs for use in Fireforg, but it might be interesting for those of you having problems configuring protocols in Firefox as well. For details on how to use it from a Firefox bookmark please refer to the in-file documentation. org-protocol-httpd.el is available in the lisp/ directory from the 'org-protocol-httpd' branch on: git://github.com/atheb/org-mode.git (Please note, that the small change to org-protocol.el in that branch is needed.) Although I deem it stable, testing is very appreciated. Andreas ___ 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: [PATCH] Mode-specific fontification of babel source blocks
I've placed a screenshot of the fontification here: http://imagebin.ca/view/iRVK_as7.html On Tue, Aug 3, 2010 at 7:12 PM, David O'Toole dto1...@gmail.com wrote: I've got a preliminary patch that adds optional native fontification for source blocks. It uses the block's declared mode to fontify the block text. So now blocks look the way they should, and this opens the way to further enhancements. Anyone up for an icons theme standard discussion? ___ 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: [PATCH] Mode-specific fontification of babel source blocks
On 08/03/2010 06:14 PM, David O'Toole wrote: I've placed a screenshot of the fontification here: http://imagebin.ca/view/iRVK_as7.html Wow, great job. I once hacked something horrible together that involved several tricks to actually change the mode of the buffer when entering a source block (using indirect buffers) while keeping the indentation and syntax highlighting of the org content the same. Can't wait to try this out. victory.png, indeed! On Tue, Aug 3, 2010 at 7:12 PM, David O'Tooledto1...@gmail.com wrote: I've got a preliminary patch that adds optional native fontification for source blocks. It uses the block's declared mode to fontify the block text. So now blocks look the way they should, and this opens the way to further enhancements. Anyone up for an icons theme standard discussion? ___ 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] How can I add a DONE tag to an org file?
Jan Böcker jan.boec...@jboecker.de writes: On 08/02/2010 11:47 AM, Water Lin wrote: Here is my two questions: 1. I want to mark an org file as DONE, so I will let me know that the file is finished and doesn't need any change. How can I add this similar tag to the file, or something else. You can use file tags: #+FILETAGS: :DONE: Every headline in the file inherits the file tags. Note that this is completely independent of TODO states. 2. If I want to add some notes about the usage of this org file. How can do it? I just want to remind me to limit the content to the topic. Well, Org files are plain text, so just write it anywhere convenient. If you do not want to see it normally, you might want to put it into a drawer somewhere (also, IIRC drawers are not exported by default), e.g. * some node :FILETOPIC: In this file, I want to keep track of sightings of purple elephants. Green elephants should be recorded somewhere else. :END: Maybe a better question to ask would be where people who do something similar write their notes, and if there are any specific reasons to prefer one place to another? HTH, Jan Thanks. It helps a lot. Water Lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: water...@ymail.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: [PATCH] Mode-specific fontification of babel source blocks
David O'Toole dto1...@gmail.com writes: I've got a preliminary patch that adds optional native fontification for source blocks. It uses the block's declared mode to fontify the block text. So now blocks look the way they should, and this opens the way to further enhancements. Hi David, This is great! Here's a patch which allows the src blocks to have switches and header args, and also uses `org-src-lang-modes' to find the major mode. Do you want to host this somewhere while it evolves? I've put my commits in branch src-block-display of git://repo.or.cz/org-mode/babel.git for the moment. --8---cut here---start-8--- diff --git a/lisp/org.el b/lisp/org.el index 843e4fe..ad8b7f9 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5012,14 +5012,13 @@ will be prompted for. Fontify #+ lines and blocks, in the correct ways. (let ((case-fold-search t)) (if (re-search-forward -^\\([ \t]*#\\+\\(\\([a-zA-Z]+:?\\| \\|$\\)\\(_\\([a-zA-Z]+\\)\\)?\\)\\(.*\\)\\) ?\\(\\(\\w\\|-\\)*\\) +;; 12 3 3 4 5 5 4 2 6 677 1 +^\\([ \t]*#\\+\\(\\([a-zA-Z]+:?\\| \\|$\\)\\(_\\([a-zA-Z]+\\)\\)?\\)[ \t]*\\([^ \t\n]*\\)[ \t]*\\(.*\\)\\) limit t) (let* ((beg (match-beginning 0)) (block-start (match-end 0)) (block-end nil) - (language (downcase (if (stringp (match-string 6)) - (match-string 6) - AA))) + (language (match-string 6)) (beg1 (line-beginning-position 2)) (dc1 (downcase (match-string 2))) (dc3 (downcase (match-string 3))) @@ -5053,9 +5052,10 @@ will be prompted for. (add-text-properties beg beg1 '(face org-meta-line)) (add-text-properties end1 end '(face org-meta-line)) (cond - (org-src-fontify-natively -(when (and (stringp language) ( (length language) 1)) - (let* ((mode-command (intern (concat (substring language 1) -mode))) + ((and org-src-fontify-natively language) +(let* ((lang-mode +(or (cdr (assoc language org-src-lang-modes)) (intern language))) + (mode-command (intern (concat (symbol-name lang-mode) -mode))) (string (buffer-substring-no-properties block-start block-end)) (modified (buffer-modified-p)) (fontified-output @@ -5073,7 +5073,7 @@ will be prompted for. (goto-char block-start) (delete-region block-start block-end) (insert fontified-output) - (set-buffer-modified-p modified) + (set-buffer-modified-p modified (quoting (add-text-properties beg1 end1 '(face org-block))) ((not org-fontify-quote-and-verse-blocks)) --8---cut here---end---8--- Anyone up for an icons theme standard discussion? Yes. Dan ___ 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
[Orgmode] How to change plain text face in Org Mode?
I want to change the text color in my Org file. I tried to use M-x customize-group RET org-faces RET to adjust text color settings. By using this way, I can adjust color of headline leve 1 2 3 and something else. But I just don't know how to change plain text in my notes. The plain text means the body of my ordinary text entries. I want to change it into yellow or something else. So I can protect my eyes. Thanks Water Lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: water...@ymail.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: [BABEL] Output with octave
Hi, d.tchin d.tc...@voila.fr writes: Hi, Dan Davison davison at stats.ox.ac.uk writes: Eric S Fraga ucecesf at ucl.ac.uk writes: On Fri, 23 Jul 2010 16:59:43 + (UTC), d.tchin d.tchin at voila.fr wrote: [...] So the current workaround is to say when using octave, you must end your block with a computation, rather than a simple statement of a variable name. Can someone suggest a better solution? Dan p.s. Or you could do this #+begin_src octave :session *out* :var vec=test vecb=vec; ans=vecb #+end_src #+begin_src octave :session *out* :var vec=test vecb=vec; ans=vecb ans #+end_src Thank you for the help. I will use it as it works clearly clearly well. Following exchange you have with Juan Pechiar related to the way the output is displayed, I would like to submit the following examples : First test : #+tblname: test | 1 | 2 | 3 | #+source: outtest #+begin_src octave :session *out* :var vec=test :results value vector vecb=[vec]; ans=vecb; #+end_src The output is the following : #+results: outtest | 1.e+000 2.e+000 3.e+000 | It is considered as one character and each element are not clearly splitted in table. Certainly handled as string as Juan Pechiar. Thanks for that. It should be fixed now. I have changed octave and matlab so that they now write their data to file using dlmwrite rather than save -ascii. Dan Second test : #+tblname: test | 1 | 2 | 3 | #+source: outtestb #+begin_src octave :session *out* :var vec=test :results value vector vecb=[vec;vec]; ans=vecb; #+end_src The output is the following : #+results: outtestb | 1.e+000 | 2.e+000 | 3.e+000 | | 1.e+000 | 2.e+000 | 3.e+000 | This time output is splitted in a table as it should be ? ___ 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
[Orgmode] Re: [BABEL] Output with octave [PATCH]
Hi Juan and d.tchin, One thing I'd like to ask for advice about is the behaviour of tabular data structures containing strings. For example #+begin_src octave ans = [['a','b'];['c','d']] #+end_src #+results: : acbd I don't know if my syntax above is correct, but it seems to me that this is a 2x2 table of some sort and so it would seem natural to me for that to return | a | b | | c | d | however, if you look at the code we are using below, you'll see that ischar() returns 1 for this object and so it gets written as a string. Can you suggest how we should alter the octave/matlab code below? Or perhaps people don't use tabular data structures containing strings in these languages? if ischar(ans), fid = fopen('%s', 'w'); fprintf(fid, '%%s\\n', ans); fclose(fid); else, dlmwrite('%s', ans, '\\t') end Dan Juan Pechiar pech...@computer.org writes: Hi, Below is a single PATCH for the 3 issues: - passing tables with EXP or complex notation to octave - correct formatting of matrixes into octave - interpretation of octave output as table Regards, .j. 8 diff --git a/lisp/ob-octave.el b/lisp/ob-octave.el index 8e99f86..bf7fdd3 100644 --- a/lisp/ob-octave.el +++ b/lisp/ob-octave.el @@ -119,8 +119,9 @@ end) Converts an emacs-lisp variable into a string of octave code specifying a variable of the same value. (if (listp var) - (concat [ (mapconcat #'org-babel-octave-var-to-octave var , ) ]) -(format %S var))) + (concat [ (mapconcat #'org-babel-octave-var-to-octave var +(if (listp (car var)) ; ,)) ]) +(format %s var))) (defun org-babel-prep-session:octave (session params optional matlabp) Prepare SESSION according to the header arguments specified in PARAMS. @@ -181,7 +182,7 @@ value of the last statement in BODY, as elisp. (org-babel-eval cmd (format org-babel-octave-wrapper-method body tmp-file tmp-file)) - (org-babel-eval-read-file tmp-file)) + (org-babel-octave-import-elisp-from-file tmp-file)) (defun org-babel-octave-evaluate-session (session body result-type optional matlabp) 8 On Sun, Aug 01, 2010 at 05:07:27PM -0300, Juan wrote: I'm starting to work with ob-octave and found several problems: The first, for which I have a fix (see patch below) is that octave's output was passed on as a string instead of being interpreted as a table: The second problem is that if I use octave table output as input to another block, it gets interpreted as a string instead of a vector: This has to do with the EXP notation. The 'e+00' suffix makes the whole table into a string. The problem is with %S in the formatting inside org-babel-octave-var-to-octave. A third problem is with org-babel-octave-var-to-octave. For example: : (org-babel-octave-var-to-octave '( ( 1 2 3 ) ( 4 5 6 ) )) : - [[1, 2, 3], [4, 5, 6]] This is not a 2x3 matrix, but a 1x6 vector: : octave-3.2.3:1 [[1,2,3],[4,5,6]] : ans = :1 2 3 4 5 6 a semicolon ';' or '\n' is needed between rows instead of a comma. ___ 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
[Orgmode] Re: MathJax - use Tex/LaTeX/MathML in HTML pages
Hi Dan, Dan Davison davi...@stats.ox.ac.uk writes: It's quite convenient already (see below), so what exactly would the option involve? Can the javascript and fonts be located remotely? From what I understand, no, the javascript and fonts have to be on the server. I just installed an instance on orgmode.org: http://orgmode.org/mathjax/test/ - Darlan Cavalcante has written a Worg article[1] on using jsMath with org - Basically, to use jsMath all you need is #+options: latex:verbatim #+style: script src=/path/to/jsMath/easy/load.js/script Great! So to use mathjax on orgmode.org (Worg etc.) : #+options: latex:verbatim #+style: script type=text/javascript src=/mathjax/MathJax.js/script - Mathjax was considerably slower to render the maths. (I think that under the hood it converts to mathML which jsMath does not do (?)) I'm not sure. Maybe MathJax is faster once reasonably tweaked. As I said the other day[2], one reason I am excited about these technologies is that we can produce a pdf with pretty source code fontification via htmlize (rather than ugly[3] latex listings output) and genuine mathematical fonts rather than ugly dvipng images. I do this via CUPS print to file under linux, which allows the web browser to produce a .ps or .pdf. I'd be interested to know how we can make this a more genuine org export path. You mean org - HTML - ps? Is it not possible to call firefox (or Xulrunner) in batch mode to convert an HTML page into .ps? If so, we can have two ways of producing org-pdf, one through LaTeX, one through HTML... -- Bastien ___ 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] column view asterisks
Hi Ilya, Ilya Shlyakhter ilya_...@alum.mit.edu writes: In the Column View, the asterisks are showing even though I've enabled clean view that hides the asterisks normally. not sure what clean view you are talking about - the hidestar option in the document or some other option, specific to the column view? Thanks, -- Bastien ___ 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] column view asterisks
Ilya Shlyakhter ilya_...@alum.mit.edu writes: p.s. since the Column View can take a while to construct, it might be good to display a status message saying creating column view while it's working. PS: I tested having such a message but I find it a bit obstrusive in most cases. -- Bastien ___ 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] hiding PROPERTIES line
Ilya Shlyakhter ilya_...@alum.mit.edu writes: Is there a way to hide/show the :PROPERTIES: line representing the properties locker, either globally or for a subtree? Nope. Well, every UI element you hide must be partly visible, so that the user knows how to unhide (or unfold) it. I cannot think of a reasonable way to 100% hide the :PROPERTIES: drawer while giving the user a hint that there is one... -- Bastien ___ 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 to change plain text face in Org Mode?
Hi Water, Water Lin water...@ymail.com writes: I want to change the text color in my Org file. M-x customize-face RET default RET HTH, -- Bastien ___ 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 to change plain text face in Org Mode?
Water Lin water...@ymail.com wrote: I want to change the text color in my Org file. I tried to use M-x customize-group RET org-faces RET to adjust text color settings. By using this way, I can adjust color of headline leve 1 2 3 and something else. But I just don't know how to change plain text in my notes. The plain text means the body of my ordinary text entries. I want to change it into yellow or something else. So I can protect my eyes. Put your cursor on the text that you are interested in and say M-x describe-face That's the face that you'll need to customize. AFAIK, ordinary text is in the default face: org does not define a face for it. So if you change it, you'll change the appearance of text all through emacs. HTH, 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] [ANN] org-protocol-httpd
Hi Andreas, this sounds very interesting and I would like to look further inside. The following idea just came to my mind: Might it be possible to use org-protocol-httpd as a server for mobileorg? Because this would allow to have a light-weight client on a smartphone (only to display the requested results) and to do all the magic within org-mode and emacs on the server side. E.g. I could ask the server to generate dynamically a particular html-export of an agenda and display it in a browser like application on my phone. Sure there need to be something like https and some other security measures if it operates as an public accessible server. However, by using the original export functions of org-mode, there would be no need to parse org-files throw other programs to extract the necessary information. Running a emacs session on a server might be strange for some, but the smartphone application might even provide a way to connect over ssh to the emacs session. With this you would have easy viewing and simple editing of org-mode files and if needed a full featured org-mode session on your smartphone (yep I'm aware some here run emacs natively on there phone). Best regards Torsten On 08/04/2010 07:12 AM, Andreas Burtzlaff wrote: Hello all, org-protocol-httpd is an Http-server running in Emacs that responds to requests where the path is: - an org-protocol action. In this case the associated handler from org-protocol is executed. - an org-protocol-httpd action. In this case the associated handler is executed and its return value is passed back to the client. My reason for writing this is that I needed a proper way to retrieve information from Emacs for use in Fireforg, but it might be interesting for those of you having problems configuring protocols in Firefox as well. For details on how to use it from a Firefox bookmark please refer to the in-file documentation. org-protocol-httpd.el is available in the lisp/ directory from the 'org-protocol-httpd' branch on: git://github.com/atheb/org-mode.git (Please note, that the small change to org-protocol.el in that branch is needed.) Although I deem it stable, testing is very appreciated. Andreas ___ 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
[Orgmode] Re: What license for Worg?
Or we might also consider CC0: http://creativecommons.org/publicdomain/zero/1.0/ It looks way more simple to me. It also circumvents the problem of people having to sign the FSF papers if the Org/Emacs manuals include part of the code they contributed to Worg as examples. What people think? -- Bastien ___ 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: [PATCH] Mode-specific fontification of babel source blocks
Hi, I don't have much more to do on the patch. I suspect it could be slow with larger files, perhaps it could be programmed to only refontify changed blocks (i.e. use the caching mechanism for block results to prevent redundant fontifying. Perhaps someone who knows about babel internals can help? On Tue, Aug 3, 2010 at 10:55 PM, Dan Davison davi...@stats.ox.ac.uk wrote: David O'Toole dto1...@gmail.com writes: I've got a preliminary patch that adds optional native fontification for source blocks. It uses the block's declared mode to fontify the block text. So now blocks look the way they should, and this opens the way to further enhancements. Hi David, This is great! Here's a patch which allows the src blocks to have switches and header args, and also uses `org-src-lang-modes' to find the major mode. Do you want to host this somewhere while it evolves? I've put my commits in branch src-block-display of git://repo.or.cz/org-mode/babel.git for the moment. --8---cut here---start-8--- diff --git a/lisp/org.el b/lisp/org.el index 843e4fe..ad8b7f9 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5012,14 +5012,13 @@ will be prompted for. Fontify #+ lines and blocks, in the correct ways. (let ((case-fold-search t)) (if (re-search-forward - ^\\([ \t]*#\\+\\(\\([a-zA-Z]+:?\\| \\|$\\)\\(_\\([a-zA-Z]+\\)\\)?\\)\\(.*\\)\\) ?\\(\\(\\w\\|-\\)*\\) + ;; 1 2 3 3 4 5 5 4 2 6 6 7 7 1 + ^\\([ \t]*#\\+\\(\\([a-zA-Z]+:?\\| \\|$\\)\\(_\\([a-zA-Z]+\\)\\)?\\)[ \t]*\\([^ \t\n]*\\)[ \t]*\\(.*\\)\\) limit t) (let* ((beg (match-beginning 0)) (block-start (match-end 0)) (block-end nil) - (language (downcase (if (stringp (match-string 6)) - (match-string 6) - AA))) + (language (match-string 6)) (beg1 (line-beginning-position 2)) (dc1 (downcase (match-string 2))) (dc3 (downcase (match-string 3))) @@ -5053,9 +5052,10 @@ will be prompted for. (add-text-properties beg beg1 '(face org-meta-line)) (add-text-properties end1 end '(face org-meta-line)) (cond - (org-src-fontify-natively - (when (and (stringp language) ( (length language) 1)) - (let* ((mode-command (intern (concat (substring language 1) -mode))) + ((and org-src-fontify-natively language) + (let* ((lang-mode + (or (cdr (assoc language org-src-lang-modes)) (intern language))) + (mode-command (intern (concat (symbol-name lang-mode) -mode))) (string (buffer-substring-no-properties block-start block-end)) (modified (buffer-modified-p)) (fontified-output @@ -5073,7 +5073,7 @@ will be prompted for. (goto-char block-start) (delete-region block-start block-end) (insert fontified-output) - (set-buffer-modified-p modified) + (set-buffer-modified-p modified (quoting (add-text-properties beg1 end1 '(face org-block))) ((not org-fontify-quote-and-verse-blocks)) --8---cut here---end---8--- Anyone up for an icons theme standard discussion? Yes. Dan ___ 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