Re: [O] repeater not working?
Memnon Anon writes: > http://doc.norang.ca/org-mode.html#ChecklistHandling describes a similar > case. Ah, interesting. I'll give it a try. > For minor (less than 5 minutes) subtasks like "Create folder, move mail > there", I would not want that to show up in my agenda, but only the > "real" task at hand: Archive Mail. > > #+BEGIN_SRC org > > * TODO Archive Mail [0/2] >SCHEDULED: <2012-09-01 Sat +1m> >:PROPERTIES: >RESET_CHECK_BOXES: t >:END: > >- [ ] Read and archive all mail (orgmode, Sent) >- [ ] Create monthly folder and move mail there > > #+END_SRC I tried it and it works great (small typo: there should be a colon at the beginning of "RESET_CHECK_BOXES"; I see that some colons are missing also on the above site). By the way, what is the canonical way to install contribs? The doc.norang.ca site says to simply add a "load_path" to the source directory of org-mode, but maybe there is another way. >>As you can see, subtasks are done, and I have set a repeater for the >>scheduling for one month. If I go on the first line and close the entry, >>I get the following: >> >>*** DONE Archive Mail [2/2] >>CLOSED: [2012-09-01 Sat 15:13] SCHEDULED: <2012-09-01 Sat +1m> > > The entry should go back to TODO and SCHEDULED: <2012-10-01 Mon +1m> > ... This is also what I was expecting. > What is your org-todo-keywords sequence? Stolen from Bastien ;-) #+BEGIN_SRC elisp (setq org-todo-keywords '((sequence "NEXT(/)" "TODO(t)" "STRT(s)" "WAIT(w@)") (sequence "|" "DONE(d)" "DELEGATED(D@)" "CANCELED(c@)"))) #+END_SRC > Did you set org-todo-repeat-to-state? (Should not be necessary...) No, it's nil. Thanks, Alan
Re: [O] Any way to change the *
Oh, indeed -- the face is simply the font settings, the overlay has more display flexibility (i.e images), right? > > > It's a not-so-rare request. Thus, if Someone implements a minor mode > adding overlays on these stars (or even a more general "beautify" > minor-mode adding overlays on list items, todo keywords...), it could > make a nice addition to contrib/. Definitely. I thought it was already possible somehow. Anyway, it's only aesthetics, so not high priority, but would still be nice to have. On Sat, Sep 1, 2012 at 4:36 AM, Nicolas Goaziou wrote: > Hello, > > Marcelo de Moraes Serpa writes: > > > I was wondering if it's possible to change the face of the asterisk used > > for the bullet points. Using a smoother UTF-8 character or even an image > > would be neat. Is that possible? > > You can change the face of the asterisk, but it will still be an > asterisk. So, that's not what you're looking after. You need overlays to > visually change the symbol. > > It's a not-so-rare request. Thus, if Someone implements a minor mode > adding overlays on these stars (or even a more general "beautify" > minor-mode adding overlays on list items, todo keywords...), it could > make a nice addition to contrib/. > > > Regards, > > -- > Nicolas Goaziou >
[O] Tags macro?
Hi list, I find myself tagging items that often go with multiple tags at the same time. I'm wondering if a tags "macro" would make sense, where a key shortcut would apply multiple tags at once. What do you guys think? - Marcelo.
Re: [O] org for blogger
On 9/1/12, Rustom Mody wrote: > You keep all your blog-posts in one file with one top-level heading per > post? Not top level, but my blog entries are in one file. However, they don't have to be. You can export anything from anywhere with alpha-org-blog-subtree. (It accepts an active region also, as mentioned.) Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com
Re: [O] org for blogger
On Sat, Sep 1, 2012 at 10:32 PM, Samuel Wales wrote: > On 9/1/12, Rustom Mody wrote: > > Seems to be working now. > > Not sure what was wrong but it appears that I needed to do a make (have > not > > done it for org for some years) after that the error disappeared. > > Great. > > > It seems I can only export one subtree on which point is. > > How to export the whole file? > > Create a top level headline, or activate the region on the whole buffer. > > I never do things at the file level in Org, because to me Org is > fundamentally an outline. > Not sure how to interpret that operationally... You keep all your blog-posts in one file with one top-level heading per post?
Re: [O] ODT preferred format option per-file?
Jambunathan K writes: > James Harkins writes: > >> Hi, >> >> I have one particular org file that I would like to export to PDF by >> way of ODT. (I already set up outline styling in LibreOffice and I >> would like to use that, instead of trying to reconfigure a similar >> look in LaTeX. For fun, I did try the LaTeX pdf export and the output >> format is not what I need for this case.) >> >> But I may want to export other org files to ODT *without* converting them to >> PDF. >> >> http://orgmode.org/manual/Extending-ODT-export.html >> >> This says I can customize the org-export-odt-preferred-output-format >> variable. This works beautifully, but it's a global setting that will >> apply to every ODT export. >> >> So my question is -- is there any export option for the preferred >> format, per file? Something like: >> >> #+ODT_PREFERRED_FORMAT: pdf >> >> I couldn't find any documentation in the ODT export section of the >> manual for an option like this. >> >> Alternately, I suppose I could write a lisp function that would set >> the variable and call the export, but that would definitely be a hack. > > Old exporter > > > If you are using org-odt.el, then you can use file local variables. I > have pushed a fix which makes string values of this variable safe. > > M-x add-file-local-variable RET org-export-odt-preferred-output-format > RET "pdf" RET > > Or > > Add the following to your Org file. Remember to re-visit the file to > activate the newly installed value. > > # Local Variables: > # org-export-odt-preferred-output-format: "pdf" > # End: > > > New exporter > > > The above local variable trick will fail in case of org-e-odt.el. When > I get some time I will introduce a per-buffer keyword for this > variable. I was wrong about the new exporter - org-e-odt.el. I didn't realize I need to change variable name. One should use the new `org-e-odt-preferred-output-format' instead. --
Re: [O] auto-fill bug
Hello, Samuel Wales writes: > I expect "I can't reproduce this" but wanted to document it. #+BEGIN_SRC emacs-lisp (defun ngz-handle-bug-reports () (when (save-excursion (message-goto-to) (beginning-of-line) (looking-at ".*Samuel Wales")) (insert "I can't reproduce this\n") (message-send-and-exit))) #+END_SRC > Often when I press SPC beyond fill-column, the new Org filling mechanism > inserts " " at bol. fill-paragraph works fine. > > A buggy fill-prefix is returned by org-adaptive-fill-function on this line: > > ((looking-at "[ \t]*") (match-string 0)) > > That's all I know. Indeed. This regexp is obviously wrong. I've pushed a fix. Hopefully, it should solve the problem at hand. Pleas tell me if it doesn't. Thank you for the report. Regards, -- Nicolas Goaziou
Re: [O] repeater not working?
Alan Schmitt writes: > I'm starting to play with repeaters, and I cannot make them work. Here > is a sample of a small file I have: > > *** Archive Mail [2/2] > SCHEDULED: <2012-09-01 Sat +1m> > DONE Read and archive all mail (orgmode, Sent) > CLOSED: [2012-09-01 Sat 15:03] > DONE Create monthly folder and move mail there > CLOSED: [2012-09-01 Sat 15:06] http://doc.norang.ca/org-mode.html#ChecklistHandling describes a similar case. For minor (less than 5 minutes) subtasks like "Create folder, move mail there", I would not want that to show up in my agenda, but only the "real" task at hand: Archive Mail. #+BEGIN_SRC org * TODO Archive Mail [0/2] SCHEDULED: <2012-09-01 Sat +1m> :PROPERTIES: RESET_CHECK_BOXES: t :END: - [ ] Read and archive all mail (orgmode, Sent) - [ ] Create monthly folder and move mail there #+END_SRC >As you can see, subtasks are done, and I have set a repeater for the >scheduling for one month. If I go on the first line and close the entry, >I get the following: > >*** DONE Archive Mail [2/2] >CLOSED: [2012-09-01 Sat 15:13] SCHEDULED: <2012-09-01 Sat +1m> The entry should go back to TODO and SCHEDULED: <2012-10-01 Mon +1m> ... What is your org-todo-keywords sequence? Did you set org-todo-repeat-to-state? (Should not be necessary...)
Re: [O] ODT preferred format option per-file?
James Harkins writes: > Hi, > > I have one particular org file that I would like to export to PDF by > way of ODT. (I already set up outline styling in LibreOffice and I > would like to use that, instead of trying to reconfigure a similar > look in LaTeX. For fun, I did try the LaTeX pdf export and the output > format is not what I need for this case.) > > But I may want to export other org files to ODT *without* converting them to > PDF. > > http://orgmode.org/manual/Extending-ODT-export.html > > This says I can customize the org-export-odt-preferred-output-format > variable. This works beautifully, but it's a global setting that will > apply to every ODT export. > > So my question is -- is there any export option for the preferred > format, per file? Something like: > > #+ODT_PREFERRED_FORMAT: pdf > > I couldn't find any documentation in the ODT export section of the > manual for an option like this. > > Alternately, I suppose I could write a lisp function that would set > the variable and call the export, but that would definitely be a hack. Old exporter If you are using org-odt.el, then you can use file local variables. I have pushed a fix which makes string values of this variable safe. M-x add-file-local-variable RET org-export-odt-preferred-output-format RET "pdf" RET Or Add the following to your Org file. Remember to re-visit the file to activate the newly installed value. # Local Variables: # org-export-odt-preferred-output-format: "pdf" # End: New exporter The above local variable trick will fail in case of org-e-odt.el. When I get some time I will introduce a per-buffer keyword for this variable. --
[O] auto-fill bug
I expect "I can't reproduce this" but wanted to document it. Often when I press SPC beyond fill-column, the new Org filling mechanism inserts " " at bol. fill-paragraph works fine. A buggy fill-prefix is returned by org-adaptive-fill-function on this line: ((looking-at "[ \t]*") (match-string 0)) That's all I know. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com
Re: [O] [OT] Encoding error when calling a ruby script from Emacs using shell-command
> > This is nonsense, may I suggest you read locale (1p)? If you set > LC_ALL, this overrides the other two settings no matter what they are > set to (and you may prevent some scripts trying to set LC_COLLATE or > something like that from functioning correctly). Unless you really need > such a big hammer, set LANG (this provides the default) and leave it at > that. I had no idea it worked like that. Thanks for the heads up. I don't understand why such a hammer is needed at all It was a simple labor of trial and error. I didn't want to spend more time on it, and since it worked, I left it as is, for now. And in that case, how/why does it work from a terminal? It works fine from the terminal (iTerm/zshell), and after I used setenv before the (shell-command), it worked just like it does from when ran from the terminal. I might get into it and try to figure out why emacs is not inheriting the setting from the shell (I'm using zshell on Mac OSX Lion, and emacs is "(GNU Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-01-29 on bob.porkrind.org)". But for now, I'll leave it as is, since it's working as expected. Thanks! - Marcelo. On Sat, Sep 1, 2012 at 8:53 AM, Nick Dokos wrote: > Achim Gratz wrote: > > > Marcelo de Moraes Serpa writes: > > > So, I did this: > > > > > > (defun test () > > > (setenv "LANG" "en_US.UTF-8") > > > (setenv "LC_ALL" "en_US.UTF-8") > > > (setenv "LC_CTYPE" "en_US.UTF-8") > > > (shell-command "/Users/myself/.rvm/bin/rvm ruby-1.9.3-p194 do > > > /usr/bin/rubyscript")) > > > > This is nonsense, may I suggest you read locale (1p)? If you set > > LC_ALL, this overrides the other two settings no matter what they are > > set to (and you may prevent some scripts trying to set LC_COLLATE or > > something like that from functioning correctly). Unless you really need > > such a big hammer, set LANG (this provides the default) and leave it at > > that. > > > > I don't understand why such a hammer is needed at all: if LANG (or > LC_ALL) is set in a login shell[fn:1] and exported, then all child > processes (including emacs and including any shells that emacs spawns) > will inherit the setting. So if setting it as above with setenv > (i.e. modifying the emacs environment and therefore the processes that > emacs spawns) makes a difference, that suggests that it is not set > globally. I doubt that that is a good idea in general. Even if you want > it just in the case of emacs, it's probably better to do the setenv > first thing in .emacs. > > And in that case, how/why does it work from a terminal? > > Nick > > Footnotes: > > [fn:1] Or some equivalent way for a graphical login. > >
Re: [O] org for blogger
On 9/1/12, Rustom Mody wrote: > Seems to be working now. > Not sure what was wrong but it appears that I needed to do a make (have not > done it for org for some years) after that the error disappeared. Great. > It seems I can only export one subtree on which point is. > How to export the whole file? Create a top level headline, or activate the region on the whole buffer. I never do things at the file level in Org, because to me Org is fundamentally an outline. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com
Re: [O] org for blogger
On Sat, Sep 1, 2012 at 9:46 PM, Samuel Wales wrote: > On 9/1/12, Samuel Wales wrote: > >> byte-code: Invalid function: (interblock (start end) (mapcar (lambda > >> (pair) > >> (funcall (second pair) start end)) org-export-interblocks)) > > Did you try in a minimal installation? > > Samuel > > -- > The Kafka Pandemic: http://thekafkapandemic.blogspot.com > Seems to be working now. Not sure what was wrong but it appears that I needed to do a make (have not done it for org for some years) after that the error disappeared. It seems I can only export one subtree on which point is. How to export the whole file?
Re: [O] org for blogger
On 9/1/12, Samuel Wales wrote: >> byte-code: Invalid function: (interblock (start end) (mapcar (lambda >> (pair) >> (funcall (second pair) start end)) org-export-interblocks)) Did you try in a minimal installation? Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com
Re: [O] org for blogger
On 9/1/12, Rustom Mody wrote: > I needed to put a (require 'cl) [for the defun*] and then evaling the file > went through. Fixed, thanks. > byte-code: Invalid function: (interblock (start end) (mapcar (lambda (pair) > (funcall (second pair) start end)) org-export-interblocks)) Is that in Org *.el? > when trying to call alpha-org-blog-subtree. > Is that what I should call? Yes. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com
Re: [O] org for blogger
On Sat, Sep 1, 2012 at 8:54 PM, Samuel Wales wrote: > On 8/31/12, Rustom Mody wrote: > > Great Samuel! > > Anything I can do to help? > > Dunno. :) > > Here is the new code (with dependencies not included as > mentioned). Most of it, including the command you asked for, > might work without them. No guarantees. > > An old version is in the thread "[O] exporting HTML > - content only", with Tamas Papp and others. > > Alexandre, a few small things are needed to produce a blog > to my standards: H level fix, diff with live, footnote CSS > fix, exact and fast word count, emdash, section > separator, jump page marker, colored boxes with padding and > margin, Blogger editor settings, org-export-with-*, etc. > > If the defaults work for you, there is no need to use > anything like this. > > It was written over years a few minutes > at a time. Again, it was written for me. > > FWIW, HTH. > > Samuel > Looks neat Samuel Thanks! I needed to put a (require 'cl) [for the defun*] and then evaling the file went through. After that I get (from *messages* buffer) byte-code: Invalid function: (interblock (start end) (mapcar (lambda (pair) (funcall (second pair) start end)) org-export-interblocks)) when trying to call alpha-org-blog-subtree. Is that what I should call?
Re: [O] org for blogger
On 8/31/12, Rustom Mody wrote: > Great Samuel! > Anything I can do to help? Dunno. :) Here is the new code (with dependencies not included as mentioned). Most of it, including the command you asked for, might work without them. No guarantees. An old version is in the thread "[O] exporting HTML - content only", with Tamas Papp and others. Alexandre, a few small things are needed to produce a blog to my standards: H level fix, diff with live, footnote CSS fix, exact and fast word count, emdash, section separator, jump page marker, colored boxes with padding and margin, Blogger editor settings, org-export-with-*, etc. If the defaults work for you, there is no need to use anything like this. It was written over years a few minutes at a time. Again, it was written for me. FWIW, HTH. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com alpha-org-export.el Description: Binary data
Re: [O] [OT] Encoding error when calling a ruby script from Emacs using shell-command
Achim Gratz wrote: > Marcelo de Moraes Serpa writes: > > So, I did this: > > > > (defun test () > > (setenv "LANG" "en_US.UTF-8") > > (setenv "LC_ALL" "en_US.UTF-8") > > (setenv "LC_CTYPE" "en_US.UTF-8") > > (shell-command "/Users/myself/.rvm/bin/rvm ruby-1.9.3-p194 do > > /usr/bin/rubyscript")) > > This is nonsense, may I suggest you read locale (1p)? If you set > LC_ALL, this overrides the other two settings no matter what they are > set to (and you may prevent some scripts trying to set LC_COLLATE or > something like that from functioning correctly). Unless you really need > such a big hammer, set LANG (this provides the default) and leave it at > that. > I don't understand why such a hammer is needed at all: if LANG (or LC_ALL) is set in a login shell[fn:1] and exported, then all child processes (including emacs and including any shells that emacs spawns) will inherit the setting. So if setting it as above with setenv (i.e. modifying the emacs environment and therefore the processes that emacs spawns) makes a difference, that suggests that it is not set globally. I doubt that that is a good idea in general. Even if you want it just in the case of emacs, it's probably better to do the setenv first thing in .emacs. And in that case, how/why does it work from a terminal? Nick Footnotes: [fn:1] Or some equivalent way for a graphical login.
Re: [O] [bug] org-babel-load-file
Hi all This patch superseeds the last that introduced a new bug. Michael From 9c489e5f73d7208c43ad099c4f376acd1f3350f9 Mon Sep 17 00:00:00 2001 From: Michael Brand Date: Sat, 1 Sep 2012 15:38:09 +0200 Subject: [PATCH] ob-tangle: Fix bug when heading has no text * lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Use dummy string when heading has no text. --- lisp/ob-tangle.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 5bf70fe..7077a15 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -360,7 +360,8 @@ code blocks by language." (setq block-counter (+ 1 block-counter (replace-regexp-in-string "[ \t]" "-" (condition-case nil -(nth 4 (org-heading-components)) +(or (nth 4 (org-heading-components)) +"(dummy for heading without text)") (error (buffer-file-name) (let* ((start-line (save-restriction (widen) (+ 1 (line-number-at-pos (point) -- 1.7.4.2
[O] repeater not working?
Hello, I'm starting to play with repeaters, and I cannot make them work. Here is a sample of a small file I have: *** Archive Mail [2/2] SCHEDULED: <2012-09-01 Sat +1m> DONE Read and archive all mail (orgmode, Sent) CLOSED: [2012-09-01 Sat 15:03] DONE Create monthly folder and move mail there CLOSED: [2012-09-01 Sat 15:06] As you can see, subtasks are done, and I have set a repeater for the scheduling for one month. If I go on the first line and close the entry, I get the following: *** DONE Archive Mail [2/2] CLOSED: [2012-09-01 Sat 15:13] SCHEDULED: <2012-09-01 Sat +1m> DONE Read and archive all mail (orgmode, Sent) CLOSED: [2012-09-01 Sat 15:03] DONE Create monthly folder and move mail there CLOSED: [2012-09-01 Sat 15:06] However no new entry appears scheduled for one month in the future. Am I doing something wrong or is this a bug? Thanks, Alan
Re: [O] [bug] org-babel-load-file
Hi all On Fri, Aug 31, 2012 at 11:31 AM, Michael Brand wrote: > With emacs -q and today’s release_7.9-176-g2939333 I get “Wrong type > argument: arrayp, nil” after org-babel-load-file with this file: > > #+BEGIN_SRC org > ,* TODO > , #+BEGIN_SRC emacs-lisp > ,(message "any") > , #+END_SRC > #+END_SRC This issue with tangling a source block when heading has no text is solved with the attached patch. Michael From 3e6720982352e1cf6aaa640e1dedc37ac937f9d0 Mon Sep 17 00:00:00 2001 From: Michael Brand Date: Sat, 1 Sep 2012 14:51:42 +0200 Subject: [PATCH] ob-tangle: Fix bug when heading has no text * lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Use dummy string when heading has no text. --- lisp/ob-tangle.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 5bf70fe..eb47e02 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -360,7 +360,8 @@ code blocks by language." (setq block-counter (+ 1 block-counter (replace-regexp-in-string "[ \t]" "-" (condition-case nil -(nth 4 (org-heading-components)) +(unless (nth 4 (org-heading-components)) + "(dummy for heading without text)") (error (buffer-file-name) (let* ((start-line (save-restriction (widen) (+ 1 (line-number-at-pos (point) -- 1.7.4.2
[O] Test problems again
I need help to locate a configuration problem. As I alreay wrote I am building org-mode on 2 Macs. On the desktop, I do not have any problems, and all the test pass (except the ones where the testing routines tells they are expecting to fail). But on the MacBook (which essentially has the same configuration) testing fails: Code block evaluation complete. htmlize.el 1.34 or later is needed for source code formatting Exporting... HTML export done, pushed to kill ring and clipboard passed 33/137 test-ob-lob/export-lob-lines 13 src blocks added to Library of Babel passed 34/137 test-ob-lob/ingest Babel evaluation exited with code 1 passed 35/137 test-ob-sh/dont-error-on-empty-results passed 36/137 test-ob-sh/dont-insert-spaces-on-expanded-bodies Here the process hand and I need to kill it with C-C ^Cmake[1]: *** [test-dirty] Error 2 make: *** [up1] Interrupt: 2 Meanwhile I am also able to use testing/README to start interactive testing. If I am not asking too much, it would help if somebody briefly explains to me how I could dig into more details at the place where things go wrong. I do not understand why I get passed ... with consecutive numbering, but between these messages I get the exited with code 1 message. Can anybody enlighten me?
Re: [O] org for blogger
I wrote an exporter for Jekyll(based on o-blog), i use it for my blog , to export post from a orgmode file based on the DONE state and CLOSED timestamp https://github.com/eggcaker/jo-exporter On Sat, Sep 1, 2012 at 7:04 PM, Alexandre Russel wrote: > I've seen some code that would help but never found the use. I have my > blog in one org file with one entry per level. To create the blog, I: > 1. C-C C-e (for export) > 2. 1 (to switch from export buffer to export subtree) > 3. H (export as html to temp buffer) > 4. copy/paste the ... into blogger > > What else do you need ? > > Alex > > On Sat, Sep 1, 2012 at 7:37 AM, Puneeth Chaganti > wrote: > > On Sat, Sep 1, 2012 at 8:09 AM, Rustom Mody > wrote: > >> What is the best way to use orgmode to prepare posts for blogger? > >> > >> Sorry if this is a FAQ; I did google around and best I get is > >> http://orgmode.org/worg/org-blog-wiki.html which does not seem to have > >> something specifically for blogger. > > > > I haven't used it, but there's org2blog/atom by tehom -- > > http://repo.or.cz/r/org2blog.git/ > > > >
Re: [O] org for blogger
I've seen some code that would help but never found the use. I have my blog in one org file with one entry per level. To create the blog, I: 1. C-C C-e (for export) 2. 1 (to switch from export buffer to export subtree) 3. H (export as html to temp buffer) 4. copy/paste the ... into blogger What else do you need ? Alex On Sat, Sep 1, 2012 at 7:37 AM, Puneeth Chaganti wrote: > On Sat, Sep 1, 2012 at 8:09 AM, Rustom Mody wrote: >> What is the best way to use orgmode to prepare posts for blogger? >> >> Sorry if this is a FAQ; I did google around and best I get is >> http://orgmode.org/worg/org-blog-wiki.html which does not seem to have >> something specifically for blogger. > > I haven't used it, but there's org2blog/atom by tehom -- > http://repo.or.cz/r/org2blog.git/ >
[O] [PATCH] Works around bug in exporting subtree with HTML_CONTAINER_CLASS
Hello all, When exporting a subtree with an HTML_CONTAINER_CLASS property set, exporting fails with this error: (error "Before first headline at position 455 in buffer *temp*") This happens because the system is trying to apply the class to the parent level, but the exporting of a subtree doesn't bring the parent level into the temp buffer. The attached patch modifies org-export-remember-html-container-classes to ignore the HTML_CONTAINER_CLASS property altogether in these cases. It would probably be better to apply the designated class to the container div or perhaps the body, but this change works for me, and I may be the only one bothered by this. If it is determined that another fix is more in the spirit of these files, I will not be offended. ChangeLog entry: Fix export of subtree with HTML_CONTAINER_CLASS Modify org-export-remember-html-container-classes to work around problem when exporting subtree with HTML_CONTAINER_CLASS property. TINYCHANGE All the best, Terry -- T.F. Torrey diff --git a/lisp/org-exp.el b/lisp/org-exp.el index c901a88..875bdf8 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -1476,8 +1476,11 @@ the current file." "^[ \t]*:HTML_CONTAINER_CLASS:[ \t]+\\(.+\\)$" nil t) (setq class (match-string 1)) (save-excursion + (if (re-search-backward "^\\*" (point-min) t) + (progn (org-back-to-heading t) (put-text-property (point-at-bol) (point-at-eol) 'html-container-class class) +)) (defvar org-export-format-drawer-function nil "Function to be called to format the contents of a drawer.
Re: [O] No inline property value after subtree export
Hello, Giovanni Ridolfi writes: > Da: Miguel Ruiz > Inviato: Martedì 17 Luglio 2012 15:20 > > --org-mode file start > #+OPTIONS: toc:nil > #+AUTHOR: > #+DATE: > * Level 1 > :PROPERTIES: > :ID: 527b694d-8288-4d37-a06a-a288bd9592b5 > :END: > This is level 1 with ID {{{property(ID)}}} > ** Level 2 > :PROPERTIES: > :ID: 1cf7847a-0977-4f18-8dc1-c3058a89a596 > :END: > This is level 2 with ID {{{property(ID)}}} > *** Level 3 > :PROPERTIES: > :ID: 2b9390ca-17ea-452f-be68-28c134dd376e > :END: > This is level 3 with ID{{{property(ID)}}} > --org-mode file end --- > >>if I do org-export then "1"(subtree) then "d"(LaTeX) with the cursor in the >>"Level 2" >> heading, >> I get "Level 2" as document title, but the ID value is not evaluated so I >> get {{{property(ID)}}} instead. The level 3 ID value is correctly exported. > > > I can confirm this bug Org-mode version 7.8.11 (69af0913b28d ) > > Also if I select C-c @ the first subtree (level 1) the ID value is not > evaluated for > > Level 1 but it is evaluated for level 2 and 3. > The ID values are evaluated when exporting the entire document. > > > unfortunately I have not been able to export this file with the new > exporter. This should now be fixed in the new exporter. Thanks. Regards, -- Nicolas Goaziou
Re: [O] Any way to change the *
Hello, Marcelo de Moraes Serpa writes: > I was wondering if it's possible to change the face of the asterisk used > for the bullet points. Using a smoother UTF-8 character or even an image > would be neat. Is that possible? You can change the face of the asterisk, but it will still be an asterisk. So, that's not what you're looking after. You need overlays to visually change the symbol. It's a not-so-rare request. Thus, if Someone implements a minor mode adding overlays on these stars (or even a more general "beautify" minor-mode adding overlays on list items, todo keywords...), it could make a nice addition to contrib/. Regards, -- Nicolas Goaziou
Re: [O] XEmacs and ert
Achim Gratz writes: > Michael Sperber writes: >> I've attached a patch (1 out of 3) that's minimally needed to make >> the current org-mode work on XEmacs. > > While we have you here… Do you know of a version of ert that is > compatible with XEmacs? The roadblock I've run into is that ert uses > "button" and XEmacs doesn't seem to have it. It wouldn't really be > needed for batch mode testing I think, but I haven't found out how to > work around it. I don't. But that question is better asked on xemacs-beta. If there's interest, maybe someone will pick it up. -- Cheers =8-} Mike Friede, Völkerverständigung und überhaupt blabla
Re: [O] test fails
Bastien writes: > Hi Erich, > > Erich Neuwirth writes: > >> I am building org mode on 2 Macs with OSX 10.8.1 and Emacs 24.2.1 >> >> One one machine, this works. >> On the other machine, the build fails. > > Maybe you can run `make config-test' to see if the testing si > configured the same way on both machines: I'm having the same issue. Here is my config-test = Test configuration BTEST_PRE = BTEST_POST = BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave python sh BTEST_EXTRA = (Interestingly enough, the tests get stuck at the exact same point.) Alan
Re: [O] [OT] Encoding error when calling a ruby script from Emacs using shell-command
Marcelo de Moraes Serpa writes: > So, I did this: > > (defun test () > (setenv "LANG" "en_US.UTF-8") > (setenv "LC_ALL" "en_US.UTF-8") > (setenv "LC_CTYPE" "en_US.UTF-8") > (shell-command "/Users/myself/.rvm/bin/rvm ruby-1.9.3-p194 do > /usr/bin/rubyscript") > ) This is nonsense, may I suggest you read locale (1p)? If you set LC_ALL, this overrides the other two settings no matter what they are set to (and you may prevent some scripts trying to set LC_COLLATE or something like that from functioning correctly). Unless you really need such a big hammer, set LANG (this provides the default) and leave it at that. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds