Re: [Orgmode] Writing a dissertation using org-mode
Dear Henri, On 03/04/2010 01:45 PM, Henri-Paul Indiogine wrote: I started writing my doctoral dissertation in history using org-mode. I am also using git.el for my version control and gnus for my email. Of course I export my org file to LaTeX which I compile to pdf. My bibliography is managed using BibTeX. please consider that you might have to follow a very stricy layout style depening on your university, department, lab or supervisor. If your are lucky there will be a LaTeX template somewhere at your university. If you are unlucky there is nothing like that or even worse only a MS-word template. I'm not sure how good org-mode might be usable in that case. org-mode is really great and I try to use it for many purposes. However, for a thesis I would use directly LaTeX which gives me a bit more control of what is going on. Furthermore, try biber [1] and biblatex [2]... the somehow next generation of bibtex and bib-file compatible. For me they work very well already despite of the fact that they are still beta-versions. biblatex gives you much more freedom of formatting your citations and bibliography... I guess both highly needed in your scientific field. Good luck Torsten [1] http://biblatex-biber.sourceforge.net/ [2] http://www.ctan.org/tex-archive/help/Catalogue/entries/biblatex.html ___ 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] Writing a dissertation using org-mode
I started writing my doctoral dissertation in history using org-mode. I am also using git.el for my version control and gnus for my email. Of course I export my org file to LaTeX which I compile to pdf. My bibliography is managed using BibTeX. This all on a Ubuntu Karmic laptop with Emacs 23.1.1. I may do some text mining using R-project + the tm package. Any suggestion is welcome. Thanks, -- Henri-Paul Indiogine Email: hindiog...@gmail.com Skype: hindiogine Website: http://www.coe.tamu.edu/~enrico ___ 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] Clocktable: Include non-clock items
On Thu, Mar 4, 2010 at 1:51 AM, Nathan Neff wrote: > Is there a way to get a clock table to show items > that do not have a clock entry? i don't think so. > > > Here's the use-case: > > I'm working on Task 1, and encounter an unusual problem. > I want my clock report to show some detail about why Task 1 > took more time than usual. > > I don't want to create a sub-heading and clock into it, and > adjust the clock, etc. I just want to store a note about this, and > have the note appear in the clock report. i understand that creating a new task and adjusting clocks could be more context switches than you'd like but once you have setup and executed a few times following may not really a big diversion although it does require one to be conscious of the change in the nature of task as it happens (e.g. unusual problem delaying the task.) 1. call remember to create a child task (so the child's clock time contributes towards the parent task) 2. remember clocks in to the task automatically and can record a link to the task was interrupted by creation of this one (%K in a remember template) 3. once this task is over you clock back into the interrupted task #3 probably sounds like something you don't want to do. Bernt Hanson has documented his setup in abundant detail and that has helped me a lot. i'd specifically point you to his " SPC" setup. references: 1. http://doc.norang.ca/org-mode.html#Remember 2. http://doc.norang.ca/org-mode.html#Clocking hth, -- manish ___ 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] Propose: add developer infos to the manual
Dear All, I'm really an org-mode beginner and even more I'm a bloody emacs-lisp beginner. Nevertheless, I try to understand here and there who things work out and tweak some things here and there. Nothing which might be worse to share yet but I'm on my way to learn about the internals of org-mode. Normally I start to consult the manual and see if I could achive what I am looking for by the given function set of org-mode. If I concern a lot I try to dig down threw the source-code for different functions to see how they work. I wonder whether it might be possible to add a footnote to every explained function with a link to the source-file. By this way it would be much easier to find the desired code-lines. Maybe bug-fixing will be easier as well. I assume there are many org-mode users with solid lisp knowledge who might be able to help bug-fixing but who have no idea where to find the necessary code. I know I can use C-h a in emacs to search for the desired function and jump to the lisp code. Just thought some redundancy in the manual might help to attract more people to contribute. Since the manual and the lisp files are plain text, it might be easy to write a function which does this automatically?! Furthermore, after I thought about this I started to wonder whether org-mode + babel could be used to literally program org-mode itself. This would result in a very nice developer manual and is a very nice example to literate programming. Just some thoughts Bye Torsten ___ 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 export as twiki - Failure to export with error: (wrong-type-argument stringp nil)
"Mario E. Munich" writes: > *What steps will reproduce the problem?* > 1. orgmode 0.34c, emacs 23 on Ubuntu 9.10 (this function used to work > in previous > versions of orgmode) > 2. Write an org file > 3. Use the provided function to export as twiki to find the error message > > *What is the expected output? What do you see instead?* > Here is the backtrace: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > string-match("\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]\\|[ > ]+\\(:[[:alnum:]_@:]+:\\)[]*$" nil) > org-docbook-expand(nil) > byte-code(" > org-export-as-docbook() > (let* ((wconfig ...) (docbook-buf ...) (filename ...) (base ...) > (twiki-file ...)) (and (file-exists-p twiki-file) (delete-file twiki-file)) > (message "Processing DocBook XML file...") (shell-command (format "xsltproc > --output %s /home/mariomu/synchronize/site-lisp/docbook2twiki.xsl %s" > twiki-file ...)) (message "Processing DocBook file...done") (if (not ...) > (error "TWiki file was not produced") (set-window-configuration wconfig) > (message "Exporting to TWiki...done") twiki-file)) > org-export-as-twiki() > call-interactively(org-export-as-twiki nil nil) Hi Mario, I was not able to recreate this problem using my testing Org file. Could you please send us your Org file? It would be great if you can keep the file small. Thanks, -- Baoqiu ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 2/2] Fix adaptive filling.
How will the new value of a non-org variable affect filladapt.el? On 2010-03-01, Dan Hackney wrote: > For paragraph text, `org-adaptive-fill-function' did not handle the base > case of > regular text which needed to be filled. This commit saves a buffer-local > value > of `adaptive-fill-regexp' and uses it if none of the org-specific regexps > match. > This allows email-style ">" comments to be filled correctly. > > Signed-off-by: Dan Hackney > --- > lisp/org.el | 25 - > 1 files changed, 20 insertions(+), 5 deletions(-) > > diff --git a/lisp/org.el b/lisp/org.el > index 8ba782a..073061e 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -17289,6 +17289,12 @@ which make use of the date at the cursor." > t t)) > (org-move-to-column column))) > > +(defvar org-adaptive-fill-regexp-backup adaptive-fill-regexp > + "Variable to store copy of `adaptive-fill-regexp'. > +Since `adaptive-fill-regexp' is set to never match, we need to > +store a backup of its value before entering `org-mode' so that > +the functionality can be provided as a fall-back.") > + > (defun org-set-autofill-regexps () >(interactive) >;; In the paragraph separator we include headlines, because filling > @@ -17324,8 +17330,11 @@ which make use of the date at the cursor." >;; and fixed-width regions are not wrapped. That function will pass >;; through to `fill-paragraph' when appropriate. >(org-set-local 'fill-paragraph-function 'org-fill-paragraph) > - ; Adaptive filling: To get full control, first make sure that > + ;; Adaptive filling: To get full control, first make sure that >;; `adaptive-fill-regexp' never matches. Then install our own matcher. > + (unless (local-variable-p 'adaptive-fill-regexp) > +(org-set-local 'org-adaptive-fill-regexp-backup > + adaptive-fill-regexp)) >(org-set-local 'adaptive-fill-regexp "\000") >(org-set-local 'adaptive-fill-function >'org-adaptive-fill-function) > @@ -17354,8 +17363,11 @@ which make use of the date at the cursor." >"Return a fill prefix for org-mode files. > In particular, this makes sure hanging paragraphs for hand-formatted lists > work correctly." > - (cond ((looking-at "#[ \t]+") > - (match-string 0)) > + (cond > + ;; Comment line > + ((looking-at "#[ \t]+") > +(match-string-no-properties 0)) > + ;; Description list > ((looking-at "[ \t]*\\([-*+] .*? :: \\)") >(save-excursion > (if (> (match-end 1) (+ (match-beginning 1) > @@ -17363,11 +17375,14 @@ work correctly." > (goto-char (+ (match-beginning 1) 5)) >(goto-char (match-end 0))) > (make-string (current-column) ?\ ))) > - ((looking-at "[ \t]*\\([-*+] \\|[0-9]+[.)] ?\\)?") > +;; Ordered or unordered list > + ((looking-at "[ \t]*\\([-*+] \\|[0-9]+[.)] ?\\)") >(save-excursion > (goto-char (match-end 0)) > (make-string (current-column) ?\ ))) > - (t nil))) > +;; Other text > +((looking-at org-adaptive-fill-regexp-backup) > + (match-string-no-properties 0 > > ;;; Other stuff. > > -- > 1.6.3.3 > > > > ___ > 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 > -- Q: How many CDC "scientists" does it take to change a lightbulb? A: "You only think it's dark." [CDC has denied a deadly disease for 25 years] == Retrovirus: http://www.wpinstitute.org/xmrv/index.html ___ 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] current directory and remote execution
A quick note about a new org-babel feature: You can now use header argument :dir to alter the directory that is current when code is executed. The directory may be a location on a remote machine, specified using tramp syntax[1]. In this case the code will be executed on the remote machine. If a relative path for file output is supplied using :file, then it will be interpreted relative to the altered current directory. But while file output may be created on a remote machine, numeric/text results are returned to the local buffer as normal. The :dir header arg will affect most languages; retrieval of remote results is currently available for shell, R, ruby, python, perl and clojure. New sessions can use :dir (and can be remote), but pre-existing sessions are currently unaffected by :dir. Here's an example of running code remotely: #+begin_src sh :dir /davi...@oak.somewhere.uk:/tmp :results output echo "Executed by `whoami` on `hostname` in `pwd`" #+end_src #+results: : Executed by davison on oak in /tmp And here's an example of mixing a relative :file path with :dir #+begin_src R :file images/1.png :dir ~/project plot(1:10) #+end_src #+results: [[file:/home/dan/project/images/1.png]] Further documentation at [2]. Dan Footnotes: [1] http://www.gnu.org/software/tramp/#Filename-Syntax [2] http://orgmode.org/worg/org-contrib/babel/reference.php#header-argument-dir ___ 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] Clocktable: Include non-clock items
Is there a way to get a clock table to show items that do not have a clock entry? Here's the use-case: I'm working on Task 1, and encounter an unusual problem. I want my clock report to show some detail about why Task 1 took more time than usual. I don't want to create a sub-heading and clock into it, and adjust the clock, etc. I just want to store a note about this, and have the note appear in the clock report. Example: -- * Task 1 :LOGBOOK: CLOCK: [2010-03-01 Mon 10:35]--[2010-03-01 Mon 11:40] => 1:05 :END: ** Encountered unusual problem [2010-03-01 Mon 10:45] - I'd like the clock report to look like this: Clock summary at [2010-03-03 Wed 14:15] | L | Headline | Time | |---+--+| | | *Total time* | *1:05* | |---+--+| | 1 | Task 1 | 1:05 | || Encountered unusual problem | | Is this possible by using the clocktable function, or should I try writing a dynamic block myself? Thanks, --Nate ___ 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 2/2] Fix adaptive filling.
On Wed, Mar 03 2010, Carsten Dominik wrote: > Hi, > > can I ask a few volunteers to try out this patch? I am not sure if I > can completely oversee if this will not have adverse effects. > > Thanks Dan! I've applied this patch and will report back. I've noticed that with orgstruct++-mode enabled for message composition, I lose wrapping of paragraphs with multiple prefixed quote indicators (e.g., "> >"). I'm eager to see if this addresses that. For anyone wondering how to apply a patch from an email in gnus, here's what I just figured out: 1. Save the entire message using `gnus-uu-decode-save' (bound to `X o' on my system). I saved it to ~/repos/org-mode.remote/adaptive.patch 2. cd to the org-mode repository 3. apply the patch using git am: git am < adaptive.patch I was pleased that this was so was so easy to do once I figured it out. I honestly didn't expect 'git am' to work with a message saved from gnus, since the man page talks about mbox files and so on. But it did work, and I figured I'd pass it on. Have a good one, /au -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc pgpNKqAF7j8R1.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: patch from master branch attached (was: C-RET errs)
Hi Leo, feel free to fix this in Emacs - I will update Emacs only after the next Emacs release - it is too much work for me to make partial fixes. - Carsten On Mar 3, 2010, at 5:41 PM, Leo wrote: Only if debian fixed this bug. I can reproduce this bug on Gnu/Linux with these steps. 1. git clone --depth 1 git://repo.or.cz/org-mode.git 2. go into the lisp dir and start emacs like this: emacs -q -L . 3. goto the scratch buffer and 'M-x org-mode' and then 'C-RET' The following patch from the master branch should fix this bug. Carsten, would you be able to fix it in Emacs upstream? Many thanks. Leo. --- a/org.el2010-03-03 16:36:22.0 + +++ b/org.el2010-03-03 16:37:09.0 + @@ -5965,21 +5965,26 @@ (save-match-data (looking-at "[ \t]*$") -(defun org-insert-heading (&optional force-heading) +(defun org-insert-heading (&optional force-heading invisible-ok) "Insert a new heading or item with same depth at point. If point is in a plain list and FORCE-HEADING is nil, create a new list item. If point is at the beginning of a headline, insert a sibling before the current headline. If point is not at the beginning, do not split the line, -but create the new headline after the current line." - (interactive "P") - (if (= (buffer-size) 0) +but create the new headline after the current line. +When INVISIBLE-OK is set, stop at invisible headlines when going back. +This is important for non-interactive uses of the command." + (interactive "P") + (if (or (= (buffer-size) 0) + (and (not (save-excursion (and (ignore-errors (org-back-to- heading invisible-ok)) +(org-on-heading-p + (not (org-in-item-p (insert "\n* ") (when (or force-heading (not (org-insert-item))) (let* ((empty-line-p nil) (head (save-excursion (condition-case nil (progn - (org-back-to-heading) + (org-back-to-heading invisible-ok) (setq empty-line-p (org-previous-line-empty-p)) (match-string 0)) (error "*" Diff finished. Wed Mar 3 16:37:49 2010 -- H A P P Y H O L I D A Y S! - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] How to align table in org-mode with Unicode characters, like Chinese
Thanks, Giovanni. You're right, I have just asked a duplicate question. I am very sorry about that. And I will pay attention to this next time. Regards, Denny On Thu, Mar 4, 2010 at 12:04 AM, Giovanni Ridolfi wrote: > filebat Mark writes: > > please, search the list before posting. > > > Hi AllI fail to align table which has Chinese, while English > > characters work very well.Below is the sample. Is there any setting > > can save me out of this annoying problems?| 编号 | 姓名 | 分数 || > > 1 | 张三 | 80 | > > > |2 | 欧阳友人 | 90 ||3 | 李四 | 75 |Thanks very much > > for your attentions.-- Thanks & RegardsDenny Zhang > FAQ: > > the table editor works fine if each Chinese character is an integer > number of ASCII characters wide [1]. So you need to find a Chinese font > that > does have this property. No chance that will ever make this work for > fonts that do not have this property. > > - Carsten > http://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00323.html > > [1] > Org is smart enough to deal with integer width characters (quite a feat > already, I assure you), but it cannot and likely never will handle > variable width fonts. > http://lists.gnu.org/archive/html/emacs-orgmode/2008-10/msg00326.html > > cheers, > > Giovanni > > > > > -- Thanks & Regards Denny Zhang ___ 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: C-RET errs
On 2010-03-03 16:24 +, Leo wrote: > I can reproduce this bug on Gnu/Linux with these steps. > > 1. git clone --depth 1 git://repo.or.cz/org-mode.git BTW, I wrote too hastily. you should also switch to tag release_6.33f in order to actually see the bug. Master branch fixed this bug. > 2. go into the lisp dir and start emacs like this: emacs -q -L . > 3. goto the scratch buffer and 'M-x org-mode' and then 'C-RET' ___ 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] patch from master branch attached (was: C-RET errs)
> Only if debian fixed this bug. > > I can reproduce this bug on Gnu/Linux with these steps. > > 1. git clone --depth 1 git://repo.or.cz/org-mode.git > 2. go into the lisp dir and start emacs like this: emacs -q -L . > 3. goto the scratch buffer and 'M-x org-mode' and then 'C-RET' The following patch from the master branch should fix this bug. Carsten, would you be able to fix it in Emacs upstream? Many thanks. Leo. --- a/org.el2010-03-03 16:36:22.0 + +++ b/org.el2010-03-03 16:37:09.0 + @@ -5965,21 +5965,26 @@ (save-match-data (looking-at "[ \t]*$") -(defun org-insert-heading (&optional force-heading) +(defun org-insert-heading (&optional force-heading invisible-ok) "Insert a new heading or item with same depth at point. If point is in a plain list and FORCE-HEADING is nil, create a new list item. If point is at the beginning of a headline, insert a sibling before the current headline. If point is not at the beginning, do not split the line, -but create the new headline after the current line." - (interactive "P") - (if (= (buffer-size) 0) +but create the new headline after the current line. +When INVISIBLE-OK is set, stop at invisible headlines when going back. +This is important for non-interactive uses of the command." + (interactive "P") + (if (or (= (buffer-size) 0) + (and (not (save-excursion (and (ignore-errors (org-back-to-heading invisible-ok)) +(org-on-heading-p + (not (org-in-item-p (insert "\n* ") (when (or force-heading (not (org-insert-item))) (let* ((empty-line-p nil) (head (save-excursion (condition-case nil (progn - (org-back-to-heading) + (org-back-to-heading invisible-ok) (setq empty-line-p (org-previous-line-empty-p)) (match-string 0)) (error "*" Diff finished. Wed Mar 3 16:37:49 2010 -- H A P P Y H O L I D A Y S! ___ 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: C-RET errs
On 2010-03-01 21:10 +, David Maus wrote: > Worked fine with > > Org-mode version 6.33x > > shipped with > > GNU Emacs 23.1.92.1 (i486-pc-linux-gnu, GTK+ Version 2.18.7) of > 2010-02-24 on elegiac, modified by Debian Only if debian fixed this bug. I can reproduce this bug on Gnu/Linux with these steps. 1. git clone --depth 1 git://repo.or.cz/org-mode.git 2. go into the lisp dir and start emacs like this: emacs -q -L . 3. goto the scratch buffer and 'M-x org-mode' and then 'C-RET' > and can't be reproduced on my side with > > Org-mode version 6.34trans (release_6.34c.160.gf000) That's indeed fixed with the master branch. > on > > GNU Emacs 23.1.92.1 (i486-pc-linux-gnu, GTK+ Version 2.18.7) of > 2010-02-24 on elegiac, modified by Debian -- H A P P Y H O L I D A Y S! ___ 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 align table in org-mode with Unicode characters, like Chinese
filebat Mark writes: please, search the list before posting. > Hi AllI fail to align table which has Chinese, while English > characters work very well.Below is the sample. Is there any setting > can save me out of this annoying problems?| 编号 | 姓名 | 分数 || > 1 | 张三 | 80 | > |2 | 欧阳友人 | 90 ||3 | 李四 | 75 |Thanks very much > for your attentions.-- Thanks & RegardsDenny Zhang FAQ: the table editor works fine if each Chinese character is an integer number of ASCII characters wide [1]. So you need to find a Chinese font that does have this property. No chance that will ever make this work for fonts that do not have this property. - Carsten http://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00323.html [1] Org is smart enough to deal with integer width characters (quite a feat already, I assure you), but it cannot and likely never will handle variable width fonts. http://lists.gnu.org/archive/html/emacs-orgmode/2008-10/msg00326.html cheers, Giovanni ___ 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 align table in org-mode with Unicode characters, like Chinese
On Wed, 3 Mar 2010 23:29:23 +0800, filebat Mark wrote: > Hi All > I fail to align table which has Chinese, while English characters work very > well. > Below is the sample. Is there any setting can save me out of this annoying > problems? >> 编号 | 姓名 | 分数 | >> 1 | 张三 | 80 | >> 2 | 欧阳友人 | 90 | >> 3 | 李四 | 75 | It looks fine to me in my Emacs. You have to make sure that your Chinese font is setup exactly twice as wide as English letters. See attached screen-shot. <> -- Jc/*__o/* X<\ * (__ Y*/\ < ___ 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 align table in org-mode with Unicode characters, like Chinese
Hi All I fail to align table which has Chinese, while English characters work very well. Below is the sample. Is there any setting can save me out of this annoying problems? | 编号 | 姓名 | 分数 | |1 | 张三 | 80 | |2 | 欧阳友人 | 90 | |3 | 李四 | 75 | Thanks very much for your attentions. -- Thanks & Regards Denny Zhang ___ 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: Org-Mode for Nexus One?
On that page, I assume it's the "check it" phase of the cycle. It's a little confusing since the article has similar concepts to your signature, "think it, ink it... "but it's not exactly the same loop. You review last. He checks third. But anyway, wouldn't checking/reviewing be quite different depending on what sort of work you're doing? And org does have certain visibility and export features which could help--not to mention checkboxes with dynamically updated cumulative 'done' percentages---but as you said, a short description like you gave would need to be filled out with a little more detail. What do you mean by 'review it' and what aspect of the review stage do want to facilitate? Scot On Wed, Mar 3, 2010 at 12:55 PM, Carsten Dominik wrote: > Hi Dennis, > > I did read the PDCA page you mentioned - but the word "review" does > not even appear in it. So I guess I do not understand yet what you > might mean with a "review-it" mode. > > Either I am too stupid, or you have enemies that edit Wikipedia > as soon as you have referenced an article, or you linked to the wrong page, > or ...? > > :-) > > Anyway, please enlighten me. > > - Carsten > > > On Feb 28, 2010, at 4:36 PM, Dennis Groves wrote: > > Hello fellow org-mode users and Carsten, >> >> Since 2008 I have used org-mode to manage my work and life, and likely >> in the most rudimentary ways compared to many of you, especially >> considering the features of org-mode... >> >> Recently, I have recently procured a google android nexus-one phone >> and would love to see something like the mobileorg for nexus; does >> anybody else have a similar interest? >> >> Carsten: org mode allows us to think it, ink it, and do it: any chance >> of getting a review it mode into org-mode? if you have no idea what I >> am talking about (http://en.wikipedia.org/wiki/PDCA) and this is a >> fairly vague requirement I will be happy to discuss it further... >> >> -- >> Dennis Groves >> co-founder of OWASP.org >> >> E: dennis dot groves at gmail dot com >> >> "Think it, Ink it, Do it, Review it" >> >> >> ___ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> > > - Carsten > > > > > > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ___ 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] BUG: refreshing org buffer discards setting of local file variables
Sure... applied. I'll report back soon. Thx, Stephan Also sprach Carsten Dominik: > Hi Stefan, > > On Mar 1, 2010, at 5:06 PM, Stephan Schmitt wrote: > >> Hi, >> >> in this little example file: >> >> --8<---cut here---start->8--- >> # -*- org-tags-column: -40; -*- >> >> #+TAGS: foo(f) bar(b) >> >> * testing indentation of tag :foo: >> --8<---cut here---end--->8--- >> >> the value of org-tags-column is set to -40 after loading as intended. >> However, after refreshing the buffer setup with C-c C-c on the #+TAGS >> line, the local value of org-tags-column is discarded and reset to the >> global setting. >> >> I would expect that local file variables are not touched be the >> refreshing of the buffer setup. > > > Hmm, you are right, this is strange. I am calling (org-mode) to refresh > the setup, but hat does not seem to do the local variables. > > Can I ask you to try the following patch, and to run with it for a week > or two and then report back if that causes any problems at all? > > Thanks. > > - Carsten > > diff --git a/lisp/org.el b/lisp/org.el > index fd906f0..d715c56 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -16028,6 +16028,7 @@ This command does many different things, > depending on co > Also updates the keyword regular expressions." >(interactive) >(org-mode) > + (hack-local-variables) >(message "Org-mode restarted")) > > (defun org-kill-note-or-show-branches () > > >> >> Thanks, >> Stephan >> >> GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.3), modified >> by Debian >> Org-mode version 6.34trans (release_6.34c.102.ga2d94) >> >> >> ___ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > - Carsten > > > -- Stephan Schmitt Neural Information Processing Group Fac. IV - Electrical Engineering & Computer Science Berlin University of Technology Office: +49 30 - 314 24 158 Mobile: +49 179 - 593 84 48 Email: echo 'drmabuse at cs x tu-berlin x de' \ | sed -e 's/ x /\./g' -e 's/ at /@/' ___ 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] Bug with section numbers due to EXAMPLE block
Thanks Daniel, I have fixed this bug. - Carsten On Mar 1, 2010, at 2:29 AM, Daniel Clemente wrote: Hi, I found an HTML export bug with org-mode 6.34c-140-g44c8 and older. I used: * only one section #+BEGIN_EXAMPLE: We need: ,* pears ,* lettuce ,* watermelons Very important! #+END_EXAMPLE: And the outputed table of contents had this code: 1 only one section 2 pears 3 lettuce 4 watermelons This is wrong because the asterisks inside the example don't represent headers. There should be only one header. It does not happen with QUOTE or VERSE or SRC or CENTER! Only with EXAMPLE! I found this related code in org-export-replace-src-segments-and- examples: #+BEGIN_SRC lisp ;; Free up the protected lines (goto-char (point-min)) (while (re-search-forward "^," nil t) (if (or (equal lang "org") (save-match-data (looking-at "\\([*#]\\|[ \t]*#\\+\\)"))) (replace-match "")) (end-of-line 1)) #+END_SRC (looking-at "\\([*#]\\|[ \t]*#\\+\\)") is true and therefore the , is removed and the asterisks are free. Maybe that block should be marked as „this is not org syntax“, or the section numbers should be computed before evaluating example blocks. Greetings Daniel ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] Fix spelling on org-log-states-order-reversed
Applied, thanks. - Carsten On Mar 3, 2010, at 1:59 PM, Bernt Hansen wrote: --- This patch is available at git://git.norang.ca/org-mode for-carsten lisp/org.el |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index fd906f0..f957361 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -2145,8 +2145,8 @@ set." :type 'boolean) (defcustom org-log-states-order-reversed t - "Non-nil means the latest state change note will be directly after heading. -When nil, the notes will be orderer according to time." + "Non-nil means the latest state change note will be directly after the heading. +When nil, the notes will be ordered according to time." :group 'org-todo :group 'org-progress :type 'boolean) -- 1.7.0.90.g251a4 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] Fix spelling on org-log-states-order-reversed
--- This patch is available at git://git.norang.ca/org-mode for-carsten lisp/org.el |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index fd906f0..f957361 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -2145,8 +2145,8 @@ set." :type 'boolean) (defcustom org-log-states-order-reversed t - "Non-nil means the latest state change note will be directly after heading. -When nil, the notes will be orderer according to time." + "Non-nil means the latest state change note will be directly after the heading. +When nil, the notes will be ordered according to time." :group 'org-todo :group 'org-progress :type 'boolean) -- 1.7.0.90.g251a4 ___ 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: Org-Mode for Nexus One?
Hi Dennis, I did read the PDCA page you mentioned - but the word "review" does not even appear in it. So I guess I do not understand yet what you might mean with a "review-it" mode. Either I am too stupid, or you have enemies that edit Wikipedia as soon as you have referenced an article, or you linked to the wrong page, or ...? :-) Anyway, please enlighten me. - Carsten On Feb 28, 2010, at 4:36 PM, Dennis Groves wrote: Hello fellow org-mode users and Carsten, Since 2008 I have used org-mode to manage my work and life, and likely in the most rudimentary ways compared to many of you, especially considering the features of org-mode... Recently, I have recently procured a google android nexus-one phone and would love to see something like the mobileorg for nexus; does anybody else have a similar interest? Carsten: org mode allows us to think it, ink it, and do it: any chance of getting a review it mode into org-mode? if you have no idea what I am talking about (http://en.wikipedia.org/wiki/PDCA) and this is a fairly vague requirement I will be happy to discuss it further... -- Dennis Groves co-founder of OWASP.org E: dennis dot groves at gmail dot com "Think it, Ink it, Do it, Review it" ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 2/2] Fix adaptive filling.
Hi, can I ask a few volunteers to try out this patch? I am not sure if I can completely oversee if this will not have adverse effects. Thanks Dan! - Carsten On Mar 1, 2010, at 2:49 PM, Dan Hackney wrote: For paragraph text, `org-adaptive-fill-function' did not handle the base case of regular text which needed to be filled. This commit saves a buffer- local value of `adaptive-fill-regexp' and uses it if none of the org-specific regexps match. This allows email-style ">" comments to be filled correctly. Signed-off-by: Dan Hackney --- lisp/org.el | 25 - 1 files changed, 20 insertions(+), 5 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 8ba782a..073061e 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -17289,6 +17289,12 @@ which make use of the date at the cursor." t t)) (org-move-to-column column))) +(defvar org-adaptive-fill-regexp-backup adaptive-fill-regexp + "Variable to store copy of `adaptive-fill-regexp'. +Since `adaptive-fill-regexp' is set to never match, we need to +store a backup of its value before entering `org-mode' so that +the functionality can be provided as a fall-back.") + (defun org-set-autofill-regexps () (interactive) ;; In the paragraph separator we include headlines, because filling @@ -17324,8 +17330,11 @@ which make use of the date at the cursor." ;; and fixed-width regions are not wrapped. That function will pass ;; through to `fill-paragraph' when appropriate. (org-set-local 'fill-paragraph-function 'org-fill-paragraph) - ; Adaptive filling: To get full control, first make sure that + ;; Adaptive filling: To get full control, first make sure that ;; `adaptive-fill-regexp' never matches. Then install our own matcher. + (unless (local-variable-p 'adaptive-fill-regexp) +(org-set-local 'org-adaptive-fill-regexp-backup + adaptive-fill-regexp)) (org-set-local 'adaptive-fill-regexp "\000") (org-set-local 'adaptive-fill-function 'org-adaptive-fill-function) @@ -17354,8 +17363,11 @@ which make use of the date at the cursor." "Return a fill prefix for org-mode files. In particular, this makes sure hanging paragraphs for hand-formatted lists work correctly." - (cond ((looking-at "#[ \t]+") -(match-string 0)) + (cond + ;; Comment line + ((looking-at "#[ \t]+") +(match-string-no-properties 0)) + ;; Description list ((looking-at "[ \t]*\\([-*+] .*? :: \\)") (save-excursion (if (> (match-end 1) (+ (match-beginning 1) @@ -17363,11 +17375,14 @@ work correctly." (goto-char (+ (match-beginning 1) 5)) (goto-char (match-end 0))) (make-string (current-column) ?\ ))) - ((looking-at "[ \t]*\\([-*+] \\|[0-9]+[.)] ?\\)?") +;; Ordered or unordered list + ((looking-at "[ \t]*\\([-*+] \\|[0-9]+[.)] ?\\)") (save-excursion (goto-char (match-end 0)) (make-string (current-column) ?\ ))) - (t nil))) +;; Other text +((looking-at org-adaptive-fill-regexp-backup) + (match-string-no-properties 0 ;;; Other stuff. -- 1.6.3.3 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] BUG: refreshing org buffer discards setting of local file variables
Hi Stefan, On Mar 1, 2010, at 5:06 PM, Stephan Schmitt wrote: Hi, in this little example file: --8<---cut here---start->8--- # -*- org-tags-column: -40; -*- #+TAGS: foo(f) bar(b) * testing indentation of tag :foo: --8<---cut here---end--->8--- the value of org-tags-column is set to -40 after loading as intended. However, after refreshing the buffer setup with C-c C-c on the #+TAGS line, the local value of org-tags-column is discarded and reset to the global setting. I would expect that local file variables are not touched be the refreshing of the buffer setup. Hmm, you are right, this is strange. I am calling (org-mode) to refresh the setup, but hat does not seem to do the local variables. Can I ask you to try the following patch, and to run with it for a week or two and then report back if that causes any problems at all? Thanks. - Carsten diff --git a/lisp/org.el b/lisp/org.el index fd906f0..d715c56 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16028,6 +16028,7 @@ This command does many different things, depending on co Also updates the keyword regular expressions." (interactive) (org-mode) + (hack-local-variables) (message "Org-mode restarted")) (defun org-kill-note-or-show-branches () Thanks, Stephan GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.3), modified by Debian Org-mode version 6.34trans (release_6.34c.102.ga2d94) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Pure CSS in HTML export?
Hi Uriel, Much of the hard-coded formatting can be changed or removed by changing the corresponding variables. In your case, for example `org- export-html-table-tag'. HTH - Carsten On Mar 1, 2010, at 7:01 PM, Uriel Avalos wrote: Hi. I just noticed that when I export a file to HTML, certain things are hardcoded into the HTML (like table borders and cellpadding). Is there a way to disable that feature globally? I would rather use CSS to style my tables... -- --Thanks! Uriel ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Exporting of ascii diagrams in pdf broken
Hi Gerald, this should now work, thank you for the report. - Carsten On Mar 2, 2010, at 12:42 PM, Geralt wrote: Hi, in the org version shipped with Emacs 23.1 everything that looked like a table in #+BEGIN_EXAMPLE blocks is broken, although it was supposedly fixed, the following example still fails with the latest version from the git repo (commit f0f5119): #+BEGIN_EXAMPLE V +-+ | | | Some text | | | +-+ #+END_EXAMPLE The generated LaTeX code is: % Created 2010-03-02 Tue 12:39 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{longtable} \usepackage{hyperref} \providecommand{\alert}[1]{\textbf{#1}} \title{V} \author{} \date{02 March 2010} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \begin{verbatim} \begin{center} \begin{tabular}{|l|} \hline Some text \\ \hline \end{tabular} \end{center}\end{verbatim} \end{document} HTH, Geralt. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Precision setting for spreadsheet calculation
Hi Michael, very nice, thanks, I have applied the patch. - Carsten On Mar 2, 2010, at 9:15 PM, Michael Brand wrote: Hi Carsten Michael Brand wrote: Yes, within a few days I will come back with this and/or a texinfo patch for the Org info manual, at least chapter "3.5.2 Formula syntax for Calc". The patch below is my proposal for the manual. Please feel free to improve it. I also played around quite a bit with the precision settings and will put the resulting examples into the Worg FAQ. But I would like to postpone my Worg FAQ update because its link to the manual would be confusing before the manual update itself will have been made. Is there a small issue with the behavior of the section link http://orgmode.org/manual/index.html#Top ? With Firefox 3.0.5 it sometimes jumps to where the html source fragment lies like expected but sometimes it jumps to where the html source fragment lies which could be annoying. Michael patch for org.texi, `---' file was taken from org-version 6.34c: = = = = = = = == --- a/doc/org.texi 2010-01-18 00:10:46.0 +0100 +++ b/doc/org.texi 2010-03-02 20:00:00.0 +0100 @@ -2128,8 +2128,11 @@ @code{org-calc-default-modes}. @example -p20 @r{switch the internal precision to 20 digits} -n3 s3 e2 f4 @r{normal, scientific, engineering, or fixed display format} +p20 @r{set the internal Calc calculation precision to 20 digits} +n3 s3 e2 f4 @r{Normal, scientific, engineering, or fixed} + @r{format of the result of Calc passed back to Org.} + @r{Calc formatting is unlimited in precision as} + @r{long as the Calc calculation precision is greater.} D R @r{angle modes: degrees, radians} F S @r{fraction and symbolic modes} N @r{interpret all fields as numbers, use 0 for non- numbers} @@ -2139,8 +2142,16 @@ @end example @noindent -In addition, you may provide a @code{printf} format specifier to -reformat the final result. A few examples: +Unless you use large integer numbers or high-precision-calculation +and -display for floating point numbers you may alternatively provide a +...@code{printf} format specifier to reformat the Calc result after it has been +passed back to Org instead of letting Calc already do the +formatt...@footnote{the @code{printf} reformatting is limited in precision +because the value passed to it is converted into an @code{integer} or +...@code{double}. The @code{integer} is limited in size by truncating the +signed value to 32 bits. The @code{double} is limited in precision to 64 +bits overall which leaves approximately 16 significant decimal digits.}. +A few examples: @example $1+$2@r{Sum of first and second field} = = = = = = = == - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] mac/iCal issue subscribing to org.ics file via localhost
Can anyone help with a iCal problem on the mac (10.6)? I've got an org.ics file generated by org mode, which looks fine, and can be imported in iCal manually. However, I am trying to follow the hint in the faq (export section) for subscribing to the calendar. I've copied the org.ics into /Library/WebServer/Documents and in iCal, I do Calendar -> subscribe and then type http://localhost/org.ics but then get the error message: The request to the server http://localhost/org.ics failed (error 30). If I go to the Systems preferences, and turn on 'Web sharing' under the Sharing tab, and retry, then success. Is that the right thing to do, and does that mean that anyone else can see my org.ics file when I'm connected? I'd rather not have this exposed. (& if enabling 'web sharing' is required, can that be added to the faq?) Thanks, Stephen ___ 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] Programmers, use org to write your doc strings...
Hi Paul, this looks useful - maybe you want to add this code to org-hacks.php on Worg? Best wishes - Carsten On Mar 3, 2010, at 1:03 AM, Paul Sexton wrote: Hi I think org is a good platform for writing documentation for source code. The "babel" module is one approach, but it presumes that org is the dominant major mode, and the actual source code is divided into snippets here and there. I wanted to look into another way of doing it: the source code's mode is dominant, with snippets of org mode here and there. Babel in reverse if you will. I have used mmm-mode, which is part of nXhtml mode, which you can download at: http://ourcomments.org/cgi-bin/emacsw32-dl-latest.pl I have managed to get it working for common lisp. Users of other programming languages should easily be able to achieve the same effect by modifying the elisp code below. In a lisp buffer, documentation strings use org mode as their major mode, while the rest of the file uses lisp-mode. All the fontification works, as does formatting of bulleted lists etc. Hyperlink overlays don't work (you see [[the whole][link]] rather than the short form), but the links themselves work. We define a docstring as: 1. A string which emacs has fontified using the font lock docstring face 2. A string that comes after '(:documentation ' 3. A string whose first three characters are ### MMM-mode sometimes seems to need a bit of a poke to recognise new docstrings. If it's not recognising things that it should, press ctrl-` to refresh it. My motivation is that I have written a "doxygen"-like program for common lisp, called CLOD, whose output is an org mode file. You can use org mode markup in common lisp docstrings, and the markup will be understood when the docstrings are read by CLOD. Now, I can edit those docstrings within the lisp source file and get all org's fontification, at formatting of bulleted lists, hyperlinks, etc. All without leaving emacs. Paul -contents of .emacs follows--- (add-to-list 'load-path "/path/to/mmm-mode")) (require 'mmm-auto) (setq mmm-global-mode 'maybe) (mmm-add-mode-ext-class 'lisp-mode nil 'org-submode) (mmm-add-mode-ext-class 'slime-mode nil 'org-submode) ;; The above, using major mode symbols, didn't seem to work for ;; me so I also added these line (regexp uses same format as ;; major-mode-alist): (mmm-add-mode-ext-class nil "\\.lisp$" 'org-submode) (mmm-add-mode-ext-class nil "\\.asd$" 'org-submode) (setq mmm-submode-decoration-level 2) ;; This prevents transient loss of fontification on first ;; calling `mmm-ify-by-class' (defadvice mmm-ify-by-class (after refontify-after-mmm activate compile) (font-lock-fontify-buffer)) ;; bind control-backquote to "refresh" MMM-mode in current buffer. (global-set-key [?\C-`] (lambda () (interactive) (mmm-ify-by-class 'org-submode))) ;; And the definition of 'org-submode (mmm-add-group 'org-submode '((org-submode1 :submode org-mode ;; This face supplies a background colour for org ;; parts of the buffer. Customizable. :face mmm-declaration-submode-face :front "\"" :back "[^\\]\"" :back-offset 1 :front-verify check-docstring-match :end-not-begin t) (org-submode-2 :submode org-mode :face mmm-declaration-submode-face ;; Match '(:documentation "...")' docstrings :front "(:documentation[\t\n ]+\"" :back "[^\\]\"" :back-offset 1 :end-not-begin t))) (defun face-at (pos) (save-excursion (goto-char pos) (face-at-point))) (defun check-docstring-match () (interactive) (let ((beg (match-beginning 0)) (end (match-end 0))) (cond ;; Docstring if emacs has fontified it in 'docstring' face ((eql (face-at end) 'font-lock-doc-face) t) ;; Docstring if the first three characters after the opening ;; quote are "###" ((string= (buffer-substring end (+ 3 end)) "###") t) (t nil ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [BUG] unescaped second & in latex
Hi Lukasz, I have tried to fix this. A single ^ must be escaped with \^, because ^ is used for superscripts. Also, if you are writing about programmin, you should always write code examples in an example or src block, or in =...=, like The =&&= operator ... - Carsten On Mar 3, 2010, at 11:13 AM, Łukasz Stelmach wrote: Hello. I've create some presentation on programming (some more to do) and to my surprise I've discovered that if org-mode escapes one "&" properly it doesn't do its job in case of "&&" (and a single "^" too). I get "\&&" in latex file which of course is wrong. -- Miłego dnia, Łukasz Stelmach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [BUG] unescaped second & in latex
Hello. I've create some presentation on programming (some more to do) and to my surprise I've discovered that if org-mode escapes one "&" properly it doesn't do its job in case of "&&" (and a single "^" too). I get "\&&" in latex file which of course is wrong. -- Miłego dnia, Łukasz Stelmach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org export as twiki - Failure to export with error: (wrong-type-argument stringp nil)
*What steps will reproduce the problem?* 1. orgmode 0.34c, emacs 23 on Ubuntu 9.10 (this function used to work in previous versions of orgmode) 2. Write an org file 3. Use the provided function to export as twiki to find the error message *What is the expected output? What do you see instead?* Here is the backtrace: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]\\|[ ]+\\(:[[:alnum:]_@:]+:\\)[ ]*$" nil) org-docbook-expand(nil) byte-code(" org-export-as-docbook() (let* ((wconfig ...) (docbook-buf ...) (filename ...) (base ...) (twiki-file ...)) (and (file-exists-p twiki-file) (delete-file twiki-file)) (message "Processing DocBook XML file...") (shell-command (format "xsltproc --output %s /home/mariomu/synchronize/site-lisp/docbook2twiki.xsl %s" twiki-file ...)) (message "Processing DocBook file...done") (if (not ...) (error "TWiki file was not produced") (set-window-configuration wconfig) (message "Exporting to TWiki...done") twiki-file)) org-export-as-twiki() call-interactively(org-export-as-twiki nil nil) backtrace-for-org-export-as-twiki Description: Binary data ;; ;; File : org-twiki.el ;; Author : Baoqiu Cui ;; ;; This is a sample Emacs Lisp function that converts an Org file to ;; TWiki format. It first converts the Org file into DocBook format, ;; and then use ``xsltproc'' and docbook2twiki.xsl to convert the ;; DocBook XML file into TWiki format. ;; ;; $Id$ ;; (defun org-export-as-twiki () "Export Org file to TWiki." (interactive) (message "Exporting to TWiki...") (let* ((wconfig (current-window-configuration)) (docbook-buf (org-export-as-docbook)) (filename (buffer-file-name docbook-buf)) (base (file-name-sans-extension filename)) (twiki-file (concat base ".twiki"))) (and (file-exists-p twiki-file) (delete-file twiki-file)) (message "Processing DocBook XML file...") (shell-command (format "xsltproc --output %s /home/mariomu/synchronize/site-lisp/docbook2twiki.xsl %s" twiki-file (shell-quote-argument filename))) (message "Processing DocBook file...done") (if (not (file-exists-p twiki-file)) (error "TWiki file was not produced") (set-window-configuration wconfig) (message "Exporting to TWiki...done") twiki-file))) http://www.w3.org/1999/XSL/Transform"; xmlns:d = "http://docbook.org/ns/docbook"; xmlns:xlink="http://www.w3.org/1999/xlink"; version="1.0"> ---+!! %TOC% 1.0 --- * *[[ ][ ]] * 1. : %X% *Warning*: %T% *Tip*: %X% *Caution*: *Note*: $ * * _ _ {{ }} = = = = | * * | || * * | | %BR%%BR% ___ 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