[Orgmode] Re: epresent and Org-mode: using Emacs to run presentations of Org-mode docs
Eric Schulte schulte.e...@gmail.com writes: Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes: Richard Riley rile...@googlemail.com writes: Eric Schulte schulte.e...@gmail.com writes: Phil Hagelberg recently introduced me to epresent.el by Tom Tromey. It's a very nice little utility for giving presentations using Emacs as the display engine. [...] http://github.com/eschulte/epresent (instructions in the README) If anyone missed it, there is also emacs-muse-slidy. http://www.flickr.com/photos/arciniegas/5108022392/ That is very impressive. Not bad. But there is org-s5 too. http://github.com/sigma/org-s5 Oh cool, this is the first I've seen of S5 or org-S5. If you check the latest beta of S5 (not org-s5) there is even cooler feature. You can open a separete window with notes (div class=notes/ how to export a :NOTES: drwer into a div?) and *timers*, so it is quite comfortable for a real dual head set up. I think I'll probably stick with Beamer export for my serious presentations, but I like the idea and simplicity of being to run simple presentations directly from within Emacs. S5 and other HTML slide show frameworks have (at least) one great advantage over Beamer, one can embed (there are at least two ways) SVG image, which is quite hard with LaTeX/Beamer duo (is there any command-line tool to convert SVG to EPS/PDF?) -- 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
Re: [Orgmode] Re: Internal links in LaTeX export
Many thanks to all of you for figuring this out and fixing it. I can confirm that internal and external links both work in the pdf file compiled from the Org-mode LaTeX export, which is way cool and seems miraculous to a dirt archaeologist. All the best, Tom On Oct 28, 2010, at 7:01 PM, Noorul Islam K M wrote: Carsten Dominik carsten.domi...@gmail.com writes: On Oct 29, 2010, at 5:22 AM, Jambunathan K wrote: Thomas S. Dye t...@tsdye.com writes: Aloha Jambunathan K., Yes, thanks for that suggestion. It should work on your example, but it breaks external links, like this: \hyperref[http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/ ]{KOMA-script} External links require the \href{}{} command. It appears the LaTeX export process no longer distinguishes internal and external links, as I believe it used to do. This is the problematic commit: commit f5918bdcc05d7924dc204b57307023eb1ef011f0 parent df5894cdcb10819560f003c5b94b8f5f2b7d33cf Date: Sun Oct 17 08:29:51 2010 + LaTeX export: use org-export-latex-hyperref-format I have just reverted this commit. - Carsten Looks like time to change the variable name which is actually confusing. Since href and hyperref are two different things, I renamed the existing `org-export-latex-hyperref-format' variable as `org-export-latex-href-format' and introduced a new one `org-export-latex-hyperref-format'. * org-latex.el (org-export-latex-hyperref-format): New option. (org-export-latex-href-format): Renamed the existing variable `org-export-latex-hyperref-format' as `org-export-latex-href-format' (org-export-latex-links): Use `org-export-latex-hyperref-format' and `org-export-latex-href-format' Thanks and Regards Noorul diff --git a/lisp/org-latex.el b/lisp/org-latex.el index cdc240c..8f0e0ea 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -295,7 +295,14 @@ markup defined, the first one in the association list will be used. :group 'org-export-latex :type 'string) -(defcustom org-export-latex-hyperref-format \\href{%s}{%s} +(defcustom org-export-latex-href-format \\href{%s}{%s} + A printf format string to be applied to href links. +The format must contain two %s instances. The first will be filled with +the link, the second with the link description. + :group 'org-export-latex + :type 'string) + +(defcustom org-export-latex-hyperref-format \\hyperref[%s]{%s} A printf format string to be applied to hyperref links. The format must contain two %s instances. The first will be filled with the link, the second with the link description. @@ -2016,10 +2023,10 @@ The conversion is made depending of STRING- BEFORE and STRING-AFTER. (insert (format (org-export-get-coderef-format path desc) (cdr (assoc path org-export-code-refs) -(radiop (insert (format \\hyperref[%s]{%s} +(radiop (insert (format org-export-latex-hyperref-format (org-solidify-link-text raw-path) desc))) ((not type) - (insert (format \\hyperref[%s]{%s} + (insert (format org-export-latex-hyperref-format (org-remove-initial-hash (org-solidify-link-text raw-path)) desc))) @@ -2030,7 +2037,7 @@ The conversion is made depending of STRING- BEFORE and STRING-AFTER. ;; a LaTeX issue, but we here implement a work-around anyway. (setq path (org-export-latex-protect-amp path) desc (org-export-latex-protect-amp desc))) - (insert (format org-export-latex-hyperref-format path desc))) + (insert (format org-export-latex-href-format path desc))) ((functionp (setq fnc (nth 2 (assoc type org-link-protocols ;; The link protocol has a function for formatting the link * lisp/org-latex.el (org-export-latex-links) : Replaced hard coded hyperref format with custom variable `org-export-latex-hyperref-format' Note that href is not same as hyperref. Jambunthan K. All the best, Tom On Oct 28, 2010, at 3:30 PM, Jambunathan K wrote: Thomas There was a hint at possible solution (or atleast a partial solution) in my original post. Did you try it before jumping in to rough waters or digging deeper? Do , | M-x customize-variable RET org-export-latex-hyperref-format' ` so that your .emacs has an entry like this , [.emacs] | | (custom-set-variables | '(org-export-latex-hyperref-format \\hyperref[%s]{%s})) | ` The above setting solves the problem for me with the following simple Org file. * Heading1 Make this section as large as possible so that it fills atleast a page. * Heading2 Links to [[Heading1]] Jambunathan K. Thomas S. Dye t...@tsdye.com writes: On Oct 28, 2010, at 12:35 PM, Nick Dokos wrote: Thomas S. Dye t...@tsdye.com wrote: On Oct 28, 2010, at 11:01 AM,
Re: [Orgmode] Possible Calc support for Org-Babel?
Eric Schulte schulte.e...@gmail.com writes: Although I'm not familiar with using Calc as anything more than a 1-off calculator in the bottom of the frame (i.e. M-x calc) this sounds like a good approach to using calc to execute code blocks. Did I mention I'm not familiar with Calc. I've thrown together a very naive first pass at a function for evaluating calc code blocks. This inverts the normal calc (as I understand it) use of ' prefixes and assumes that every line is an algebraic expression unless that line is prefixed with a ' in which case it is taken as a stack operation. This *does* change the value of the stack, allowing multiple code blocks to collaborate, in effect treating the stack as a session. I'd be interested to hear what real calc users think of this approach. Best -- Eric to use this evaluate the following function, and then try the subsequent code blocks evaluate this code block to add support for calc code blocks #+begin_src emacs-lisp (defun org-babel-execute:calc (body params) Execute a block of calc code with Babel. (mapcar (lambda (line) (when ( (length line) 0) (if (string= ' (substring line 0 1)) (funcall (lookup-key calc-mode-map (substring line 1)) nil) (calc-push-list (list (math-read-number (calc-eval line))) (split-string body [\n\r])) (calc-eval (calc-top 1))) #+end_src This block pushes 1 and 2 on the stack, then adds them #+begin_src calc 1 2 '+ #+end_src This block evaluates 3^3 with calc pushing the result on the stack and returning it into the Org-mode buffer #+begin_src calc 3^3 #+end_src This block evaluates (2+2)*4 pushing the result on the stack, it then calls calc-plus adding the top two elements on the stack (one of which is left over from the previous code block). #+begin_src calc (2+2)*4 '+ #+end_src ___ 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] Release 7.02
Dear all, I have release version 7.02 or Org-mode. Thanks to all who have contributed! Enjoy - Carsten Changes in version 7.02 Incompatible Changes ~ Code block hashes == Due to changes in the code resolving code block header arguments hashing of code block results should now re-run a code block when an argument to the code block has changed. As a result of this change *all* code blocks with cached results will be re-run after upgrading to the latest version. Testing update === Anyone using the org-mode test suite will need to update the jump repository for test navigation by executing the following from the root of the org-mode repository. git submodule update Failure to update this repository will cause loading of org-test.el to throw errors. Lists handling === Due to changes made to lists, it is no longer possible to have a sublist, some text and then another sublist while still in the same top-level list item, like in the following situation: - Some list + A first sublist + of two elements A text belonging to the top-level list + Then another sublist + and a second element in it - End of main list Moreover, two variables are now obsolete, namely =org-provide-checkbox-statistics= and =org-auto-renumber-ordered-lists=. If you have changed default value of the former, you should have a look at the new variable =org-list-automatic-rules=, specifically at the checkbox rule. The latter has no equivalent, but a new way is provided to enforce some special numbering in a list. See [announcement] below. [announcement]: sec-2_1 Details Plain lists changes There is now two possibilities to end a plain list: either by indenting some text less than the last bullet of the list — like before, but now it now closes /all/ sublists in the process — or by specifying some regex — two blank lines, by default. All of this can be configured through =org-list-ending-method=, =org-list-end-regexp= and =org-empty-line-terminates-plain-lists=. This allows such constructs: 1. an ordered list 2. with two items - another independent list - of two items Note that anyting inside a block (like example or src) isn't taken into consideration with regards to list ending. You can now enforce a special numbering in an ordered list with =...@num]= syntax, which generalizes the =...@start:num]= concept. It can be inserted in any item of the list, and exporters recognize it. Here is an example of what you can obtain: 2. [...@2] I like 3. prime-numbered 5. [...@5] lists Cycling an item – using TAB — more than once just after its creation no longer moves it until it reaches the left margin. Now, all positions offered are meaningful in list's structure. Furthermore, indenting and outdenting items or subtrees within the list cannot break its integrity either. =org-insert-item=, when plain-list-item is set to auto in =org-blank-before-new-entry=, will apply some heuristics to insert the right number of blank lines, if any, after, or before, the newly created item. When no information is avalaible to take a guess, it will default to no blank line. =org-sort-list= sorts timer lists with t and T commands. Automatic actions are now taken by Org when some commands are issued. You can have a look at them and disable them individually with the help of the new variable =org-list-automatic-rules=. It is possible to change indentation of the whole list — it's, by the way, the only way to acheive this: indenting a region won't move lists — by using M-S-right and M-S-left when on its very first item. This global indentation has no influence on the text after the list: You can have some text before a list. - then a - small list And a text following the list, indented like if there was no list at all. Many bugfixes are included. For example, =org-cycle= on a list no longer swallows text after it and indenting a region containing a list shouldn't be problematic anymore. Some inconsistencies are also corrected. Thus, =org-cycle-list-bullet= will not offer 1. if you have disabled this kind of bullet by configuring =org-plain-list-ordered-item-terminator=. Implement MathJax support == Org-mode now uses MathJax to display math on web pages. We serve MathJax from the orgmode.org server, at least for the time being (thanks Bastien!). If you are going to use this for pages which are viewd often, please install MathJax on your own webserver. To return to the old way of creating images and inserting them into web pages, you would have to set (setq org-export-with-LaTeX-fragments 'dvipng) or on a per-file basis #+OPTIONS: LaTeX:dvipng Add org-wikinodes.el as a contributed package == One frequent request has been to be able to use CamelCase words for automatic cross links in a Wiki created by Org. THis
Re: [Orgmode] Possible Calc support for Org-Babel?
Cool! - Carsten On Oct 29, 2010, at 8:42 AM, Eric Schulte wrote: Eric Schulte schulte.e...@gmail.com writes: Although I'm not familiar with using Calc as anything more than a 1- off calculator in the bottom of the frame (i.e. M-x calc) this sounds like a good approach to using calc to execute code blocks. Did I mention I'm not familiar with Calc. I've thrown together a very naive first pass at a function for evaluating calc code blocks. This inverts the normal calc (as I understand it) use of ' prefixes and assumes that every line is an algebraic expression unless that line is prefixed with a ' in which case it is taken as a stack operation. This *does* change the value of the stack, allowing multiple code blocks to collaborate, in effect treating the stack as a session. I'd be interested to hear what real calc users think of this approach. Best -- Eric to use this evaluate the following function, and then try the subsequent code blocks evaluate this code block to add support for calc code blocks #+begin_src emacs-lisp (defun org-babel-execute:calc (body params) Execute a block of calc code with Babel. (mapcar (lambda (line) (when ( (length line) 0) (if (string= ' (substring line 0 1)) (funcall (lookup-key calc-mode-map (substring line 1)) nil) (calc-push-list (list (math-read-number (calc-eval line))) (split-string body [\n\r])) (calc-eval (calc-top 1))) #+end_src This block pushes 1 and 2 on the stack, then adds them #+begin_src calc 1 2 '+ #+end_src This block evaluates 3^3 with calc pushing the result on the stack and returning it into the Org-mode buffer #+begin_src calc 3^3 #+end_src This block evaluates (2+2)*4 pushing the result on the stack, it then calls calc-plus adding the top two elements on the stack (one of which is left over from the previous code block). #+begin_src calc (2+2)*4 '+ #+end_src ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Internal links in LaTeX export
Noorul Islam K M noo...@noorul.com wrote: Carsten Dominik carsten.domi...@gmail.com writes: On Oct 29, 2010, at 5:22 AM, Jambunathan K wrote: Thomas S. Dye t...@tsdye.com writes: Aloha Jambunathan K., Yes, thanks for that suggestion. It should work on your example, but it breaks external links, like this: \hyperref[http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/ ]{KOMA-script} External links require the \href{}{} command. It appears the LaTeX export process no longer distinguishes internal and external links, as I believe it used to do. This is the problematic commit: commit f5918bdcc05d7924dc204b57307023eb1ef011f0 parent df5894cdcb10819560f003c5b94b8f5f2b7d33cf Date: Sun Oct 17 08:29:51 2010 + LaTeX export: use org-export-latex-hyperref-format I have just reverted this commit. - Carsten Looks like time to change the variable name which is actually confusing. Since href and hyperref are two different things, I renamed the existing `org-export-latex-hyperref-format' variable as `org-export-latex-href-format' and introduced a new one `org-export-latex-hyperref-format'. * org-latex.el (org-export-latex-hyperref-format): New option. (org-export-latex-href-format): Renamed the existing variable `org-export-latex-hyperref-format' as `org-export-latex-href-format' (org-export-latex-links): Use `org-export-latex-hyperref-format' and `org-export-latex-href-format' Thanks and Regards Noorul diff --git a/lisp/org-latex.el b/lisp/org-latex.el index cdc240c..8f0e0ea 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -295,7 +295,14 @@ markup defined, the first one in the association list will be used. :group 'org-export-latex :type 'string) -(defcustom org-export-latex-hyperref-format \\href{%s}{%s} +(defcustom org-export-latex-href-format \\href{%s}{%s} + A printf format string to be applied to href links. +The format must contain two %s instances. The first will be filled with +the link, the second with the link description. + :group 'org-export-latex + :type 'string) + +(defcustom org-export-latex-hyperref-format \\hyperref[%s]{%s} A printf format string to be applied to hyperref links. The format must contain two %s instances. The first will be filled with the link, the second with the link description. @@ -2016,10 +2023,10 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER. (insert (format (org-export-get-coderef-format path desc) (cdr (assoc path org-export-code-refs) - (radiop (insert (format \\hyperref[%s]{%s} + (radiop (insert (format org-export-latex-hyperref-format (org-solidify-link-text raw-path) desc))) ((not type) - (insert (format \\hyperref[%s]{%s} + (insert (format org-export-latex-hyperref-format (org-remove-initial-hash (org-solidify-link-text raw-path)) desc))) @@ -2030,7 +2037,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER. ;; a LaTeX issue, but we here implement a work-around anyway. (setq path (org-export-latex-protect-amp path) desc (org-export-latex-protect-amp desc))) - (insert (format org-export-latex-hyperref-format path desc))) + (insert (format org-export-latex-href-format path desc))) ((functionp (setq fnc (nth 2 (assoc type org-link-protocols ;; The link protocol has a function for formatting the link I don't think this patch is correct. I just pulled Org-mode version 7.01trans (release_7.01h.882.g750f.dirty) to get Carsten's revert of the previous patch and tested against the following org file: --8---cut here---start-8--- * Foo Here is a link to section Bar: [[Bar]] * Bar And here is an external link: [[http://www.google.com][google]] --8---cut here---end---8--- When I export to LaTeX, I get this: --8---cut here---start-8--- ... \section{Foo} \label{sec-1} Here is a link to section Bar: \hyperref[sec-2]{Bar} \section{Bar} \label{sec-2} And here is an external link: \href{http://www.google.com}{google} ... --8---cut here---end---8--- which I believe is correct - Tom? After I apply the patch, I get this LaTeX output: --8---cut here---start-8--- ... \section{Foo} \label{sec-1} Here is a link to section Bar: \href{sec-2}{Bar} \section{Bar} \label{sec-2} And here is an external link: \href{http://www.google.com}{google} ... --8---cut here---end---8--- which is wrong. Did you test the patch and if so, how? Nick
[Orgmode] parsing formatted text
Hello, I have written an elisp program to generate an ATOM feed from an org-mode file. I want to generate appropiate HTML from fromatted text (such as *bold* and /italic/). Since it does not use org's export module (for which this isn't really appropriate anyway), I have no idea if there is any way I can use existing org functions to parse a paragraph to recognise formatted text so I can process it appropriately, or if I must write my own parsing code. Can any of the more experienced org-mode hackers offer any advice? Thanks, Aidan Gauland ___ 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: Internal links in LaTeX export
On Fri, Oct 29, 2010 at 12:50 PM, Nick Dokos nicholas.do...@hp.com wrote: Noorul Islam K M noo...@noorul.com wrote: Carsten Dominik carsten.domi...@gmail.com writes: On Oct 29, 2010, at 5:22 AM, Jambunathan K wrote: Thomas S. Dye t...@tsdye.com writes: Aloha Jambunathan K., Yes, thanks for that suggestion. It should work on your example, but it breaks external links, like this: \hyperref[http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/ ]{KOMA-script} External links require the \href{}{} command. It appears the LaTeX export process no longer distinguishes internal and external links, as I believe it used to do. This is the problematic commit: commit f5918bdcc05d7924dc204b57307023eb1ef011f0 parent df5894cdcb10819560f003c5b94b8f5f2b7d33cf Date: Sun Oct 17 08:29:51 2010 + LaTeX export: use org-export-latex-hyperref-format I have just reverted this commit. - Carsten Looks like time to change the variable name which is actually confusing. Since href and hyperref are two different things, I renamed the existing `org-export-latex-hyperref-format' variable as `org-export-latex-href-format' and introduced a new one `org-export-latex-hyperref-format'. * org-latex.el (org-export-latex-hyperref-format): New option. (org-export-latex-href-format): Renamed the existing variable `org-export-latex-hyperref-format' as `org-export-latex-href-format' (org-export-latex-links): Use `org-export-latex-hyperref-format' and `org-export-latex-href-format' Thanks and Regards Noorul diff --git a/lisp/org-latex.el b/lisp/org-latex.el index cdc240c..8f0e0ea 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -295,7 +295,14 @@ markup defined, the first one in the association list will be used. :group 'org-export-latex :type 'string) -(defcustom org-export-latex-hyperref-format \\href{%s}{%s} +(defcustom org-export-latex-href-format \\href{%s}{%s} + A printf format string to be applied to href links. +The format must contain two %s instances. The first will be filled with +the link, the second with the link description. + :group 'org-export-latex + :type 'string) + +(defcustom org-export-latex-hyperref-format \\hyperref[%s]{%s} A printf format string to be applied to hyperref links. The format must contain two %s instances. The first will be filled with the link, the second with the link description. @@ -2016,10 +2023,10 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER. (insert (format (org-export-get-coderef-format path desc) (cdr (assoc path org-export-code-refs) - (radiop (insert (format \\hyperref[%s]{%s} + (radiop (insert (format org-export-latex-hyperref-format (org-solidify-link-text raw-path) desc))) ((not type) - (insert (format \\hyperref[%s]{%s} + (insert (format org-export-latex-hyperref-format (org-remove-initial-hash (org-solidify-link-text raw-path)) desc))) @@ -2030,7 +2037,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER. ;; a LaTeX issue, but we here implement a work-around anyway. (setq path (org-export-latex-protect-amp path) desc (org-export-latex-protect-amp desc))) - (insert (format org-export-latex-hyperref-format path desc))) + (insert (format org-export-latex-href-format path desc))) ((functionp (setq fnc (nth 2 (assoc type org-link-protocols ;; The link protocol has a function for formatting the link I don't think this patch is correct. I just pulled Org-mode version 7.01trans (release_7.01h.882.g750f.dirty) to get Carsten's revert of the previous patch and tested against the following org file: --8---cut here---start-8--- * Foo Here is a link to section Bar: [[Bar]] * Bar And here is an external link: [[http://www.google.com][google]] --8---cut here---end---8--- When I export to LaTeX, I get this: --8---cut here---start-8--- ... \section{Foo} \label{sec-1} Here is a link to section Bar: \hyperref[sec-2]{Bar} \section{Bar} \label{sec-2} And here is an external link: \href{http://www.google.com}{google} ... --8---cut here---end---8--- which I believe is correct - Tom? After I apply the patch, I get this LaTeX output: --8---cut here---start-8--- ... \section{Foo} \label{sec-1} Here is a link to section Bar: \href{sec-2}{Bar} \section{Bar} \label{sec-2} And here is an external link: \href{http://www.google.com}{google} ... --8---cut
Re: [Orgmode] [Babel] Prefix for tangled files
Hi Seb, You could use the `org-babel-post-tangle-hook' to rename all tangled files behind some common prefix. Any function on this hook will be called once per tangled file from within the tangled file, so it could use the `buffer-file-name' to rename the file. Best -- Eric Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hello, Wanting to use Babel as much as possible, writing a lot of scripts that I tangle (and eventually share with others), I find that prefixing all tangled files shoud be a good habit in order to directly see which files (in dired) are the results of a tangling process. Of course, I can have this habit, but others (and colleagues) may not have it. Would it make sense to have an Org-Babel variable for such a prefix (defaulting to the empty string, and overridable per block, subtree, file, language, as for the rest)? Best regards, Seb ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [Babel] detangle
Hi, I've just added functions for detangling code from pure source code files back into code blocks in the org-mode files from whence they were tangled. This is done by the new `org-babel-detangle' function. Additionally the new `org-babel-tangle-jump-to-org' function can be used to navigate from a pure source code file back to the related code block in the original Org-mode file. Both of these new functions require that the code block was tangled with comments which can be accomplished by setting the :comments header to yes. This should be useful for collaborating with anyone who would rather edit source-code files directly rather than keeping the canonical versions of all source-code in Org-mode files. You'll just have to convince your collaborators to leave the link comments in the source code file. Best -- Eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] parsing formatted text
Hi Aidan, You could pass the text through the `org-export-string' function to generate a string of HTML from a string of Org markup. e.g. (org-export-string plain plain *bold* plain html) returns the following string pplain plain bbold/b plain/p -- Eric Aidan Gauland aidal...@no8wireless.co.nz writes: Hello, I have written an elisp program to generate an ATOM feed from an org-mode file. I want to generate appropiate HTML from fromatted text (such as *bold* and /italic/). Since it does not use org's export module (for which this isn't really appropriate anyway), I have no idea if there is any way I can use existing org functions to parse a paragraph to recognise formatted text so I can process it appropriately, or if I must write my own parsing code. Can any of the more experienced org-mode hackers offer any advice? Thanks, Aidan Gauland ___ 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] [PATCH] org-compat: defalias string-match-p rather than defun
Signed-off-by: Julien Danjou jul...@danjou.info --- lisp/org-compat.el |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index d55a83e..47a6599 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -372,11 +372,11 @@ TIME defaults to the current time. (time-to-seconds (or time (current-time))) (float-time time))) -(defun org-string-match-p (rest args) - (if (fboundp 'string-match-p) - (apply 'string-match-p args) +(if (fboundp 'string-match-p) +(defalias 'org-string-match-p 'string-match-p) + (defun org-string-match-p (regexp string optional start) (save-match-data - (apply 'string-match args + (funcall 'string-match regexp string start (defun org-looking-at-p (rest args) (if (fboundp 'looking-at-p) -- 1.7.2.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
[Orgmode] Re: Release 7.02
Hi Carsten, Thanks a lot to you (and all others who made this happen) for this beautiful new version!! Carsten Dominik wrote: Lists handling === Due to changes made to lists, it is no longer possible to have a sublist, some text and then another sublist while still in the same top-level list item, like in the following situation: - Some list + A first sublist + of two elements A text belonging to the top-level list + Then another sublist + and a second element in it - End of main list Basically, it means that this entry for this entry (about Org Babel) from an old file of mine (update this morning) does not publish anymore the same way: --8---cut here---start-8--- * How to view the results - =C-c C-v C-v= (or =C-c C-v v=) -- View the expanded body of a code block. - =C-c C-v C-z= -- Switch to the *session* of the current code block (first, you need to add =:session= to it). Use =C-u C-c C-v C-z= to bring up the session with the input variable pre-loaded. =C-c C-v z= (=org-babel-switch-to-session-with-code=) is a variant of =C-c C-v C-z= (=org-babel-switch-to-session=): instead of switching to the session buffer, it splits the window between: + the session buffer, and + a language major-mode edit buffer for the code block in question. This can be convenient for using language major mode for interacting with the session buffer. --8---cut here---end---8--- The last sentence is *not* considered part of the second element of the first list. Although I've seen similar constructs in many, many documents, does anyone know enough rules of style to tell me if this is a wrong way to write things down? Or, does some possibility still exist to support this seamlessly? Make footnotes work correctly in message-mode == The footnotes code now searches for the message delimiter -- in order to place footnotes before the signature. Thanks to Tassilo Horn for this patch. Just a detail: the delimiter is -- (space after the dashes). 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] Re: Internal links in LaTeX export
Noorul Islam noo...@noorul.com wrote: For the same thing I get this \section{Foo} \label{sec-1} Here is a link to section Bar: \hyperref[sec-2]{Bar} \section{Bar} \label{sec-2} And here is an external link: \href{http://www.google.com}{google} You are right and I'm wrong: M-x org-reload just won't cut it in this case: changed defvars/defcustoms do not change values. And BTW, that's also a flaw in my earlier description of git bisect: org-reload is not enough in general - a new emacs needs to be started to pick up these changes. Time to get some sleep. Sorry for the noise, 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
[Orgmode] [PATCH] org-agenda: add support for category icons
Signed-off-by: Julien Danjou jul...@danjou.info --- doc/org.texi |4 +++ lisp/org-agenda.el | 65 +++ 2 files changed, 63 insertions(+), 6 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index aa4f30b..41121d3 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -7337,6 +7337,10 @@ special category you want to apply as the value. The display in the agenda buffer looks best if the category is not longer than 10 characters. +...@noindent +You can set up icons for category by customizing the +...@code{org-agenda-category-icon-alist} variable. + @node Time-of-day specifications, Sorting of agenda items, Categories, Presentation and sorting @subsection Time-of-day specifications @cindex time-of-day specification diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 70c698d..da96318 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -1211,11 +1211,11 @@ When nil, such items are sorted as 0 minutes effort. :group 'org-agenda) (defcustom org-agenda-prefix-format - '((agenda . %-12:c%?-12t% s) + '((agenda . %i %-12:c%?-12t% s) (timeline . % s) -(todo . %-12:c) -(tags . %-12:c) -(search . %-12:c)) +(todo . %i %-12:c) +(tags . %i %-12:c) +(search . %i %-12:c)) Format specifications for the prefix of items in the agenda views. An alist with four entries, for the different agenda types. The keys to the sublists are `agenda', `timeline', `todo', and `tags'. The values @@ -1224,6 +1224,8 @@ This format works similar to a printf format, with the following meaning: %c the category of the item, \Diary\ for entries from the diary, or as given by the CATEGORY keyword or derived from the file name. + %i the icon category of the item, as give in + `org-agenda-category-icon-alist'. %T the *last* tag of the item. Last because inherited tags come first in the list. %t the time-of-day specification if one applies to the entry, in the @@ -1431,6 +1433,45 @@ determines if it is a foreground or a background color. (string :tag Color) (sexp :tag Face)) +(defcustom org-agenda-category-icon-alist nil + Alist of category icon to be displayed in agenda views. + +Each entry should have the following format: + + (CATEGORY-REGEXP FILE-OR-DATA TYPE DATA-P PROPS) + +Where CATEGORY-REGEXP is a regexp matching the categories where +the icon should be displayed. +FILE-OR-DATA either a file path or a string containing image data. + +The other fields can be ommited safely if not needed: +TYPE indicates the image type. +DATA-P is a boolean indicating whether the FILE-OR-DATA string is +image data. +PROPS are additional image attributes to assign to the image, +like, e.g. `:ascent center'. + + (\Org\ \/path/to/icon.png\ nil nil :ascent center) + +If you want to set the display properties yourself, just put a +list as second element: + + (CATEGORY-REGEXP (MY PROPERTY LIST)) + +For example, to display a 16px horizontal space for Emacs +category, you can use: + + (\Emacs\ '(space . (:width (16 + :group 'org-agenda-line-format + :type '(list :tag Category icons + (repeat + (list +(string :tag Category regexp) +(string :tag File or data) +(string :tag Type) +(boolean :tag Data?) +(list :tag Properties) + (defgroup org-agenda-column-view nil Options concerning column view in the agenda. :tag Org Agenda Column View @@ -4924,6 +4965,14 @@ The flag is set if the currently compiled format contains a `%e'.) (defvar org-prefix-category-max-length nil Used by `org-compile-prefix-format' to remember the category field width.) +(defun org-agenda-get-category-icon (category) + Return an image for CATEGORY according to `org-agenda-category-icon-alist'. + (dolist (entry org-agenda-category-icon-alist) +(when (org-string-match-p (car entry) category) + (if (listp (cadr entry)) + (return (cadr entry)) + (return (apply 'create-image (cdr entry))) + (defun org-format-agenda-item (extra txt optional category tags dotime noprefix remove-re habitp) Format TXT to be inserted into the agenda buffer. @@ -4953,6 +5002,10 @@ Any match of REMOVE-RE will be removed from TXT. (file-name-sans-extension (file-name-nondirectory buffer-file-name)) ))) + (category-icon (org-agenda-get-category-icon category)) + (category-icon (if category-icon + (propertize 'display category-icon) + )) ;; time, tag, effort are needed for the eval of the prefix format (tag (if tags (nth (1- (length tags)) tags) )) time effort neffort @@ -5163,11
[Orgmode] Re: parsing formatted text
Eric Schulte schulte.eric at gmail.com writes: You could pass the text through the `org-export-string' function to generate a string of HTML from a string of Org markup. e.g. (org-export-string plain plain *bold* plain html) returns the following string pplain plain bbold/b plain/p Thanks! That's just what I was looking for! --Aidan ___ 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: Release 7.02
Make footnotes work correctly in message-mode == The footnotes code now searches for the message delimiter -- in order to place footnotes before the signature. Thanks to Tassilo Horn for this patch. Just a detail: the delimiter is -- (space after the dashes). Really? Is that the official delimiter? I never knew. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Release 7.02
Hi Sebastian, On Oct 29, 2010, at 10:30 AM, Sébastien Vauban wrote: Hi Carsten, Thanks a lot to you (and all others who made this happen) for this beautiful new version!! Carsten Dominik wrote: Lists handling === Due to changes made to lists, it is no longer possible to have a sublist, some text and then another sublist while still in the same top- level list item, like in the following situation: - Some list + A first sublist + of two elements A text belonging to the top-level list + Then another sublist + and a second element in it - End of main list Basically, it means that this entry for this entry (about Org Babel) from an old file of mine (update this morning) does not publish anymore the same way: --8---cut here---start-8--- * How to view the results - =C-c C-v C-v= (or =C-c C-v v=) -- View the expanded body of a code block. - =C-c C-v C-z= -- Switch to the *session* of the current code block (first, you need to add =:session= to it). Use =C-u C-c C-v C-z= to bring up the session with the input variable pre-loaded. =C-c C-v z= (=org-babel-switch-to-session-with-code=) is a variant of =C-c C-v C-z= (=org-babel-switch-to-session=): instead of switching to the session buffer, it splits the window between: + the session buffer, and + a language major-mode edit buffer for the code block in question. This can be convenient for using language major mode for interacting with the session buffer. --8---cut here---end---8--- The last sentence is *not* considered part of the second element of the first list. Although I've seen similar constructs in many, many documents, does anyone know enough rules of style to tell me if this is a wrong way to write things down? Or, does some possibility still exist to support this seamlessly? It is not that this would be bad style. In fact I do miss this kind of structure as well, and accepting loosing it was the biggest argument against Nicolas' change. However, the trade was for much greater stability and consistency of plain lists, Nicolas has done some great work here. Another issue was that the LaTeX exporter never had any support for these structures, so that was inconsistent for a long time. - Carsten Make footnotes work correctly in message-mode == The footnotes code now searches for the message delimiter -- in order to place footnotes before the signature. Thanks to Tassilo Horn for this patch. Just a detail: the delimiter is -- (space after the dashes). Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Worg: link broken
2010/10/28 Sébastien Vauban wxhgmqzgw...@spammotel.com: Hello, In page http://orgmode.org/guide/Working-With-Source-Code.html, see further reading: link chapter 14 broken (recursive, BTW?). Fix recursive link * doc/orgguide.texi: Remove broken recursive link Thanks and Regards Noorul diff --git a/doc/orgguide.texi b/doc/orgguide.texi index c6d5c51..e5d0da6 100644 --- a/doc/orgguide.texi +++ b/doc/orgguide.texi @@ -2603,7 +2603,6 @@ Org-mode buffer. @end table @seealso{ -...@uref{http://orgmode.org/manual/Working-with-source-code.html#Working-with-source-code,Chapter 14 of the manu...@* @uref{http://orgmode.org/manual/Literal-examples.html#Literal-examples, Chapter 11.3 of the manu...@* @uref{http://orgmode.org/worg/org-contrib/babel/index.php, ___ 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 typo
Applied, thanks. PS: merging using pw didn't work so I did the change manually, meaning it will appear as *mine* - hope you don't mind! Julien Danjou jul...@danjou.info writes: Signed-off-by: Julien Danjou jul...@danjou.info --- ORGWEBPAGE/Changes.org |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ORGWEBPAGE/Changes.org b/ORGWEBPAGE/Changes.org index 549aed4..9a6b934 100644 --- a/ORGWEBPAGE/Changes.org +++ b/ORGWEBPAGE/Changes.org @@ -374,7 +374,7 @@ on Worg. *** Timer/clock enhancements -=org-timer-set-timer= displays a countdow timer in the modeline. +=org-timer-set-timer= displays a countdown timer in the modeline. From the agenda, `J' invokes =org-agenda-clock-goto=. * Version 7.01 -- 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] Re: Internal links in LaTeX export
Nick I hunted down the bug with heuristics. Speaking of bisections, In this instance, I actually bisected it down to the bad commit that Jambunathan K. identified (and Carsten reverted). I guess I was lucky in the sense that I pulled a couple of days ago, so HEAD was 851 commits ahead of 7.01h and the bisection proceeded as follows: release_7.01h-851-gfd9e933 - bad release_7.01h - good release_7.01h-425-gfea9072 - good release_7.01h-638-gd9e4469 - good release_7.01h-744-g3d2aec3 - bad release_7.01h-691-g6b9782d - good release_7.01h-717-gc9bb51e - bad release_7.01h-704-g935c310 - good release_7.01h-710-gc9b0176 - good release_7.01h-713-g8820a25 - good release_7.01h-715-gf5918bd - bad release_7.01h-714-gdf5894c - good and it identified release_7.01h-715-gf5918bd as the first bad commit. From the previous investigation, I know that the result-type error that you ran into, was introduced after commit 750 and resolved before commit 800 (using release_7.01h as the origin), so once I got to the point above, I was safe: I couldn't possibly end up in the problematic range. OTOH, if you start from say 810, the sequence would be 405, 608, 709, 759 (or so) and you end up in the problematic range, which is probably what happened to you. BTW, I got the bisection sequence (after the fact) with git bisect log and then translated the (40-hex digit SHA1 form) commits to the more readable form above using git describe commit Git bisection is wonderful. It is a bit of drag nevertheless - Tag, Test, Tag, Test Tag, Test Ah, finally done (or undecided) In the case at hand, it is clear that the issue is with either org-latex.el (or org-exp.el). It is most likely the former because the bug description is backend-specific. I wish there was a way to say this: - do bisection on the revisions where org-latex.el changed (as opposed to revisions where HEAD moved) The candidate commits then would have reduced to 30 odd commits rather than 851 that one had to contend with. Hypothetically speaking, even this improved bisection would have left me confused at somepoint because of the churn 'pdflatex texi2dvi' churn that pdf export process went through in recent times. Jambunathan K. This is all 20/20 hindsight of course, but I hope interesting enough as a curiosity. 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
[Orgmode] Re: [WISH] Org Importers
Matt Lundin m...@imapmail.org writes: FWIW, I have a home-brewed perl script that converts latex documents to org-mode files. Loosely based on latex2doc[1], it uses a latex style file (generated by the perl script) to markup the pdf output (e.g. asterisks for section headings, etc.). The org-formatted pdf is then converted to plain text with pdftotext. It's a crude and by no means comprehensive hack designed to meet my own peculiar needs. But I'd be happy to share it on Worg (with ample disclaimers) if anyone is interested. Best, Matt Footnotes: [1] http://www.dur.ac.uk/p.j.heslin/Software/Latex/latex2doc.php Matt, I do have a need to convert latex to org every now and again (luckily not too often) so it would definitely be nice to have this on Worg. My own approach is to manually apply a number of regexp substitutions that don't catch everything. Your approach sounds quite appealing! -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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 typo
On Fri, Oct 29 2010, Bastien wrote: PS: merging using pw didn't work so I did the change manually, meaning it will appear as *mine* - hope you don't mind! You're forgiven. :) -- Julien Danjou // ᐰ jul...@danjou.info http://julien.danjou.info ___ 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: epresent and Org-mode: using Emacs to run presentations of Org-mode docs
Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes: [...] S5 and other HTML slide show frameworks have (at least) one great advantage over Beamer, one can embed (there are at least two ways) SVG image, which is quite hard with LaTeX/Beamer duo (is there any command-line tool to convert SVG to EPS/PDF?) -- Miłego dnia, Łukasz Stelmach ImageMagick [1] will convert from/to SVG to/from many formats including EPS. I've not tried any conversions with SVG, mind you, so this is based on the documentation. Specifically, : identify -list format on my system says: : SVG SVG rw+ Scalable Vector Graphics (RSVG 2.26.0) which means it can read and write SVG format images. eric Footnotes: [1] http://www.imagemagick.org/script/index.php -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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] Possible Calc support for Org-Babel?
Eric, This is really nice! I had a problem initially in that calc-push-list was undefined. I had to initiate calc first so maybe a : (require 'calc) is required to ensure the functions you use are available? Then, out of the three examples you give, only one (3^3) worked. The others give me: --8---cut here---start-8--- Debugger entered--Lisp error: (wrong-type-argument stringp (2 Expected a number)) string-match(\\` *\\([0-9]+\\) *\\' (2 Expected a number)) math-read-number((2 Expected a number)) (list (math-read-number (calc-eval line))) (calc-push-list (list (math-read-number ...))) (if (string= ' (substring line 0 1)) (funcall (lookup-key calc-mode-map ...) nil) (calc-push-list (list ...))) (progn (if (string= ' ...) (funcall ... nil) (calc-push-list ...))) (if ( (length line) 0) (progn (if ... ... ...))) (when ( (length line) 0) (if (string= ' ...) (funcall ... nil) (calc-push-list ...))) (lambda (line) (when ( ... 0) (if ... ... ...)))( '+) mapcar((lambda (line) (when ( ... 0) (if ... ... ...))) ( 1 2 '+ )) org-babel-execute:calc( 1\n 2\n '+\n ((:colname-names) (:rowname-names) (:result-params replace) (:result-type . value) (:comments . ) (:shebang . ) (:cache . no) (:noweb . no) (:tangle . no) (:exports . code) (:results . replace) (:hlines . no) (:session . none))) org-babel-execute-src-block(nil (calc 1\n 2\n '+\n ((:colname-names) (:rowname-names) (:result-params replace) (:result-type . value) (:comments . ) (:shebang . ) (:cache . no) (:noweb . no) (:tangle . no) (:exports . code) (:results . replace) (:hlines . no) (:session . none)) nil 0)) org-babel-execute-src-block-maybe() org-babel-execute-maybe() org-babel-execute-safely-maybe() run-hook-with-args-until-success(org-babel-execute-safely-maybe) org-ctrl-c-ctrl-c(nil) call-interactively(org-ctrl-c-ctrl-c nil nil) --8---cut here---end---8--- Have I done something wrong? I am particularly excited, once it works for me, to use this for /inline/ babel executions! Thanks, eric -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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: Possible Calc support for Org-Babel?
Hi Eric, Eric Schulte wrote: I've thrown together a very naive first pass at a function for evaluating calc code blocks. This inverts the normal calc (as I understand it) use of ' prefixes and assumes that every line is an algebraic expression unless that line is prefixed with a ' in which case it is taken as a stack operation. This *does* change the value of the stack, allowing multiple code blocks to collaborate, in effect treating the stack as a session. I'd be interested to hear what real calc users think of this approach. Best -- Eric to use this evaluate the following function, and then try the subsequent code blocks evaluate this code block to add support for calc code blocks #+begin_src emacs-lisp (defun org-babel-execute:calc (body params) Execute a block of calc code with Babel. (mapcar (lambda (line) (when ( (length line) 0) (if (string= ' (substring line 0 1)) (funcall (lookup-key calc-mode-map (substring line 1)) nil) (calc-push-list (list (math-read-number (calc-eval line))) (split-string body [\n\r])) (calc-eval (calc-top 1))) #+end_src Tried to run the following: This block pushes 1 and 2 on the stack, then adds them #+begin_src calc 1 2 '+ #+end_src --8---cut here---start-8--- executing Calc code block... if: Symbol's function definition is void: calc-push-list --8---cut here---end---8--- Required =calc= by calling =C-x * *=: --8---cut here---start-8--- +- Requiring `calc-macs' +- Requiring `calc-macs'...done Loading c:/Program Files/Emacs-23/emacs/lisp/calc/calc-loaddefs.el... C-x * (Type ? for a list of Calc options) +- Requiring `calc-ext' +- Requiring `calc' (already loaded) +- Requiring `calc-macs' (already loaded) +- Requiring `calc-ext'...done +- Requiring `calc-ext' (already loaded) +- Requiring `calc-macs' (already loaded) Loading nil... +- Requiring `calc-menu' +- Requiring `calc-menu'...done +- Requiring `calc' (already loaded) +- Requiring `calc-macs' (already loaded) --8---cut here---end---8--- Tried again: --8---cut here---start-8--- calc-do-embedded: Syntax error --8---cut here---end---8--- This block evaluates 3^3 with calc pushing the result on the stack and returning it into the Org-mode buffer #+begin_src calc 3^3 #+end_src This block evaluates (2+2)*4 pushing the result on the stack, it then calls calc-plus adding the top two elements on the stack (one of which is left over from the previous code block). #+begin_src calc (2+2)*4 '+ #+end_src On the 2 lasts, I had another error: --8---cut here---start-8--- executing Calc code block... +- Requiring `calc' (already loaded) +- Requiring `calc-macs' (already loaded) calc-push-list: Symbol's value as variable is void: calc-command-flags --8---cut here---end---8--- Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Release 7.02
Hi Carsten, Carsten Dominik wrote: On Oct 29, 2010, at 10:30 AM, Sébastien Vauban wrote: Carsten Dominik wrote: Due to changes made to lists, it is no longer possible to have a sublist, some text and then another sublist while still in the same top- level list item, like in the following situation: - Some list + A first sublist + of two elements A text belonging to the top-level list + Then another sublist + and a second element in it - End of main list Basically, it means that this entry for this entry (about Org Babel) from an old file of mine (update this morning) does not publish anymore the same way: --8---cut here---start-8--- * How to view the results - =C-c C-v C-v= (or =C-c C-v v=) -- View the expanded body of a code block. - =C-c C-v C-z= -- Switch to the *session* of the current code block (first, you need to add =:session= to it). Use =C-u C-c C-v C-z= to bring up the session with the input variable pre-loaded. =C-c C-v z= (=org-babel-switch-to-session-with-code=) is a variant of =C-c C-v C-z= (=org-babel-switch-to-session=): instead of switching to the session buffer, it splits the window between: + the session buffer, and + a language major-mode edit buffer for the code block in question. This can be convenient for using language major mode for interacting with the session buffer. --8---cut here---end---8--- The last sentence is *not* considered part of the second element of the first list. Although I've seen similar constructs in many, many documents, does anyone know enough rules of style to tell me if this is a wrong way to write things down? Or, does some possibility still exist to support this seamlessly? It is not that this would be bad style. In fact I do miss this kind of structure as well, and accepting loosing it was the biggest argument against Nicolas' change. Does that mean that we must admit this will stay like that forever, or will one try to look and see if it's possible to make that extension? However, the trade was for much greater stability and consistency of plain lists, Nicolas has done some great work here. Another issue was that the LaTeX exporter never had any support for these structures, so that was inconsistent for a long time. I know that Bastien told he would fix it when he would have time. So, that did not seem to be an impossible wish. 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] proposal for enhanced org-get-priority function
Sorry, I realized the previous patch did not contain updates to the org-priority-regexp. An updated patch is attached. Sorry, -I.S. On 10/27/2010 8:01 AM, I.S. wrote: On 10/24/2010 3:18 PM, David Maus wrote: At Wed, 20 Oct 2010 13:14:39 -0400, I.S. wrote: Dear Experts, I'd like to propose a replacement for the org-get-priority function which is backward compatible with the current version but allows the user to add a sub-priority such as [#A]-5 or [#B]+3: Could you provide a patch against current master and send it to the list as a text/plain attachment? This way the proposed modification will end up in Org's patchtracker[1]. Best, -- David [1] http://patchwork.newartisans.com/project/org-mode/ -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de I tried looing at patchwork but couldn't figure out what I was supposed to do. Please advise on usage instructions. Instead, I attached a manually generated patch against org.el in the development version from git. I created this patch via $ git clone git://repo.or.cz/org-mode.git $ emacs org-mode/lisp/org.el # to modify the file and write it to org.mine.el $ diff -rup org.el org.mine.el org-get-priority.patch Please advise on proper procedure as I love org and would enjoy the chance to contribute in the future. Thanks, -I.S. -- Thanks, -I.S. e...@martinian.com's password: --- org.el 2010-10-29 07:41:17.254401572 -0400 +++ org.mine.el 2010-10-29 07:41:49.162423931 -0400 @@ -6,7 +6,7 @@ ;; Author: Carsten Dominik carsten at orgmode dot org ;; Keywords: outlines, hypermedia, calendar, wp ;; Homepage: http://orgmode.org -;; Version: 7.02trans +;; Version: 7.01trans ;; ;; This file is part of GNU Emacs. ;; @@ -185,7 +185,7 @@ identifier. ;;; Version -(defconst org-version 7.02trans +(defconst org-version 7.01trans The version number of the file org.el.) (defun org-version (optional here) @@ -12129,7 +12129,7 @@ from the `before-change-functions' in th Priorities -(defvar org-priority-regexp .*?\\(\\[#\\([A-Z0-9]\\)\\] ?\\) +(defvar org-priority-regexp .*?\\(\\[#\\([A-Z0-9]\\)\\]\\(-[0-9]+\\)? ?\\) Regular expression matching the priority indicator.) (defvar org-remove-priority-next-time nil) @@ -12211,13 +12211,27 @@ ACTION can be `set', `up', `down', or a (message Priority of current item set to %s news (defun org-get-priority (s) - Find priority cookie and return priority. - (save-match-data -(if (not (string-match org-priority-regexp s)) - (* 1000 (- org-lowest-priority org-default-priority)) - (* 1000 (- org-lowest-priority -(string-to-char (match-string 2 s))) + Find priority cookie and return priority. +Priorities of the form [#letter]-number or +[#letter]+number are supported with +/-number being +optional and modifying the letter priority. The letter priority +is multiplied by 10 and then the number priority is added +on. Thus a priority string of [#B]+5 is higher than [#B] which is +higher than [#B]-2 and all are lower than [#A]. + + (save-match-data +(let* ((priority-match (string-match org-priority-regexp s)) + (priority-value (if priority-match + (* 10 (- org-lowest-priority + (string-to-char (match-string 2 s + (* 10 (- org-lowest-priority +org-default-priority + (sub-priority-match (match-string 3 s)) + (sub-priority-value (if sub-priority-match + (string-to-number sub-priority-match) 0))) + (+ priority-value sub-priority-value + Tags (defvar org-agenda-archives-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] Re: Release 7.02
On Oct 29, 2010, at 1:36 PM, Sébastien Vauban wrote: Hi Carsten, Carsten Dominik wrote: On Oct 29, 2010, at 10:30 AM, Sébastien Vauban wrote: Carsten Dominik wrote: Due to changes made to lists, it is no longer possible to have a sublist, some text and then another sublist while still in the same top- level list item, like in the following situation: - Some list + A first sublist + of two elements A text belonging to the top-level list + Then another sublist + and a second element in it - End of main list Basically, it means that this entry for this entry (about Org Babel) from an old file of mine (update this morning) does not publish anymore the same way: --8---cut here---start-8--- * How to view the results - =C-c C-v C-v= (or =C-c C-v v=) -- View the expanded body of a code block. - =C-c C-v C-z= -- Switch to the *session* of the current code block (first, you need to add =:session= to it). Use =C-u C-c C-v C-z= to bring up the session with the input variable pre-loaded. =C-c C-v z= (=org-babel-switch-to-session-with-code=) is a variant of =C-c C-v C-z= (=org-babel-switch-to-session=): instead of switching to the session buffer, it splits the window between: + the session buffer, and + a language major-mode edit buffer for the code block in question. This can be convenient for using language major mode for interacting with the session buffer. --8---cut here---end---8--- The last sentence is *not* considered part of the second element of the first list. Although I've seen similar constructs in many, many documents, does anyone know enough rules of style to tell me if this is a wrong way to write things down? Or, does some possibility still exist to support this seamlessly? It is not that this would be bad style. In fact I do miss this kind of structure as well, and accepting loosing it was the biggest argument against Nicolas' change. Does that mean that we must admit this will stay like that forever, or will one try to look and see if it's possible to make that extension? I am not against it if it can be done in a clean way that is in keeping with the structure and philosophy Nicolas has implemented. I think this will mean that we would not use just indentation to define this, but some explicit piece of syntax. Patches and discussions about this will always be welcome, no need to close any door for good. However, the trade was for much greater stability and consistency of plain lists, Nicolas has done some great work here. Another issue was that the LaTeX exporter never had any support for these structures, so that was inconsistent for a long time. I know that Bastien told he would fix it when he would have time. So, that did not seem to be an impossible wish. Trust me, it is not something I can do in a day or two, or I would have done it a long time ago. I don't know why Bastien has never done it. bastien, did you ever try? - 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] proposal for enhanced org-get-priority function
Sorry, previous patch had some junk in it. Attached is the final version (really). Sorry again for the confusion, -I.S. On 10/29/2010 7:45 AM, I.S. wrote: Sorry, I realized the previous patch did not contain updates to the org-priority-regexp. An updated patch is attached. Sorry, -I.S. On 10/27/2010 8:01 AM, I.S. wrote: On 10/24/2010 3:18 PM, David Maus wrote: At Wed, 20 Oct 2010 13:14:39 -0400, I.S. wrote: Dear Experts, I'd like to propose a replacement for the org-get-priority function which is backward compatible with the current version but allows the user to add a sub-priority such as [#A]-5 or [#B]+3: Could you provide a patch against current master and send it to the list as a text/plain attachment? This way the proposed modification will end up in Org's patchtracker[1]. Best, -- David [1] http://patchwork.newartisans.com/project/org-mode/ -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de I tried looing at patchwork but couldn't figure out what I was supposed to do. Please advise on usage instructions. Instead, I attached a manually generated patch against org.el in the development version from git. I created this patch via $ git clone git://repo.or.cz/org-mode.git $ emacs org-mode/lisp/org.el # to modify the file and write it to org.mine.el $ diff -rup org.el org.mine.el org-get-priority.patch Please advise on proper procedure as I love org and would enjoy the chance to contribute in the future. Thanks, -I.S. --- org.el 2010-10-29 07:41:17.254401572 -0400 +++ org.mine.el 2010-10-29 07:49:11.814892725 -0400 @@ -12129,7 +12129,7 @@ from the `before-change-functions' in th Priorities -(defvar org-priority-regexp .*?\\(\\[#\\([A-Z0-9]\\)\\] ?\\) +(defvar org-priority-regexp .*?\\(\\[#\\([A-Z0-9]\\)\\]\\(-[0-9]+\\)? ?\\) Regular expression matching the priority indicator.) (defvar org-remove-priority-next-time nil) @@ -12211,13 +12211,27 @@ ACTION can be `set', `up', `down', or a (message Priority of current item set to %s news (defun org-get-priority (s) - Find priority cookie and return priority. - (save-match-data -(if (not (string-match org-priority-regexp s)) - (* 1000 (- org-lowest-priority org-default-priority)) - (* 1000 (- org-lowest-priority -(string-to-char (match-string 2 s))) + Find priority cookie and return priority. +Priorities of the form [#letter]-number or +[#letter]+number are supported with +/-number being +optional and modifying the letter priority. The letter priority +is multiplied by 10 and then the number priority is added +on. Thus a priority string of [#B]+5 is higher than [#B] which is +higher than [#B]-2 and all are lower than [#A]. + + (save-match-data +(let* ((priority-match (string-match org-priority-regexp s)) + (priority-value (if priority-match + (* 10 (- org-lowest-priority + (string-to-char (match-string 2 s + (* 10 (- org-lowest-priority +org-default-priority + (sub-priority-match (match-string 3 s)) + (sub-priority-value (if sub-priority-match + (string-to-number sub-priority-match) 0))) + (+ priority-value sub-priority-value + Tags (defvar org-agenda-archives-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
[Orgmode] 20101029_orgtexi_names.patch
org-return diff --git a/doc/org.texi b/doc/org.texi index aa4f30b..9293804 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -1732,8 +1732,7 @@ necessary. @orgcmd...@key{tab},org-shifttab} Re-align, move to previous field. @c -...@kindex @key{RET} -...@item @key{RET} +...@orgcmd{@key{RET},org-return} Re-align the table and move down to next row. Creates a new row if necessary. At the beginning or end of a line, @key{RET} still does NEWLINE, so it can be used to split a table. ___ 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: epresent and Org-mode: using Emacs to run presentations of Org-mode docs
Eric S Fraga ucec...@ucl.ac.uk writes: Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes: [...] S5 and other HTML slide show frameworks have (at least) one great advantage over Beamer, one can embed (there are at least two ways) SVG image, which is quite hard with LaTeX/Beamer duo (is there any command-line tool to convert SVG to EPS/PDF?) ImageMagick [1] will convert from/to SVG to/from many formats including EPS. I've not tried any conversions with SVG, mind you, so this is based on the documentation. I'll check it, but I'm afraid it does render SVG as bitmap first, and then converts, or rather encapsulates, it to EPS/PDF. ImageMagick is a bitmap manipulation tool after all. -- 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
Re: [Orgmode] [CONCERN] Orgmode version string
Carsten Hi Jambunathan, On Oct 28, 2010, at 2:40 PM, Jambunathan K wrote: I have every reason to believe that upcoming version of Org would be tagged as 7.02. Earlier I had argued that version strings be version-to-list compatible. I would like to reiterate it. My real concern is that 7.02 would be deemed as equivalent to 7.2 internally by the versioning subsystem and this is likely to clash with user's point of view. A user would *definitely* assume 7.02 as different from 7.2 and in all probability swear that former is inferior to the later. (version-to-list 7.02) - (7 2) (version-to-list 7.20) - (7 20) so it seems to me that if we keep two-digit numbers, there will be no problem at all. #+begin_src emacs-lisp (version-list-= (version-to-list 7.02) (version-to-list 7.20)) #+end_src - Carsten Now that release-7.02 is out, I am a bit disappointed that a ELPA-tar named org-7.02.tar would be unusable. The reason is 7.02 doesn't round-trip well and package manager is allergic to such a choice. Verify this for yourself. #+begin_src emacs-lisp (package-version-join (version-to-list 7.02)) #+end_src If you don't mind sharing, I am curious what made you still go with 7.02 scheme. Jambunathan K. Please confirm what I am saying by evalling this: #+begin_src emacs-lisp (version-list-= (version-to-list 7.02) (version-to-list 7.2)) #+end_src Ignore this mail if it is already taken care of. Needless to say, I have ELPA-tarballs in mind when I say this. Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Release 7.02
Carsten Dominik carsten.domi...@gmail.com writes: Make footnotes work correctly in message-mode == The footnotes code now searches for the message delimiter -- in order to place footnotes before the signature. Thanks to Tassilo Horn for this patch. Just a detail: the delimiter is -- (space after the dashes). Really? Is that the official delimiter? I never knew. I suppose so, it's mentioned in the RFC[1] [1] http://tools.ietf.org/html/rfc3676#section-4.3 -- 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
Re: [Orgmode] Re: Release 7.02
Carsten Dominik carsten.domi...@gmail.com writes: Make footnotes work correctly in message-mode == The footnotes code now searches for the message delimiter -- in order to place footnotes before the signature. Thanks to Tassilo Horn for this patch. Just a detail: the delimiter is -- (space after the dashes). Really? Is that the official delimiter? I never knew. - Carsten More precisely: ^-- $ in a regex form. That is, a single line consisting of exactly two dashes and one space indicates the start of the signature. Nothing else does. -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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: epresent and Org-mode: using Emacs to run presentations of Org-mode docs
Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes: Eric S Fraga ucec...@ucl.ac.uk writes: ImageMagick [1] will convert from/to SVG to/from many formats including EPS. I've not tried any conversions with SVG, mind you, so this is based on the documentation. I'll check it, but I'm afraid it does render SVG as bitmap first, and then converts, or rather encapsulates, it to EPS/PDF. ImageMagick is a bitmap manipulation tool after all. Very true. For presentations, this may not be that much of an issue (given the resolution of many data projectors)... but it's a very valid point. Do let us know if you find a vector based converter. Thanks, eric -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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: Release 7.02
Carsten Dominik carsten.domi...@gmail.com writes: Dear all, I have release version 7.02 or Org-mode. Thanks to all who have contributed! Enjoy - Carsten Changes in version 7.02 1. Would be nice if Babel specific changes are in a separate headline. 2. Please mention support for Speed Keys on Babel header lines. The entry titled 'Support for user-extensible speed commands' could either be subsumed in to (2) or kept separately. I would personally prefer the later option. Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [Babel] detangle
Eric Schulte schulte.e...@gmail.com writes: Hi, I've just added functions for detangling code from pure source code files back into code blocks in the org-mode files from whence they were tangled. Wow. It just gets better all the time!! :-) This is done by the new `org-babel-detangle' function. Additionally the new `org-babel-tangle-jump-to-org' function can be used to navigate from a pure source code file back to the related code block in the original Org-mode file. Both of these new functions require that the code block was tangled with comments which can be accomplished by setting the :comments header to yes. I've tried the first couple of steps: added the comments header and tangled my code, ledger in this case. I've had a looked at the tangled code and I get lines such as this one inserted: : ; [[id:8fe917c4-257f-45f7-839b-68b5772e5443][%sourcename]] Obviously, =%sourcename= should have been replaced by something in the tangling operation as, subsequently, the jump command doesn't work. I assume that the detangling won't work either. Is there something I (or you?) should add to =ob-ledger.el= perhaps? I've not tried any other codes as I don't /tangle/ often. Thanks, eric -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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: Release 7.02
Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes: Thanks to Lukasz Setmann for a patch to this effect. ^^ Who's that guy? ;-) Fixed :) You even obtained a proper Ł in your first name. -- 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
[Accepted] [Orgmode] 20101029_orgtexi_names.patch
Patch 355 (http://patchwork.newartisans.com/patch/355/) is now Accepted. Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C4CCABB44.1030703%40easy-emacs.de%3E Here is the original message containing the patch: Content-Type: text/plain; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Orgmode] 20101029_orgtexi_names.patch Date: Fri, 29 Oct 2010 17:17:08 - From: =?utf-8?q?Andreas_R=C3=B6hler_=3Candreas=2Eroehler=40easy-emacs=2Ede?= =?utf-8?q?=3E?= X-Patchwork-Id: 355 Message-Id: 4ccabb44.1030...@easy-emacs.de To: emacs-orgmode emacs-orgmode@gnu.org org-return diff --git a/doc/org.texi b/doc/org.texi index aa4f30b..9293804 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -1732,8 +1732,7 @@ necessary. @orgcmd...@key{tab},org-shifttab} Re-align, move to previous field. @c -...@kindex @key{RET} -...@item @key{RET} +...@orgcmd{@key{RET},org-return} Re-align the table and move down to next row. Creates a new row if necessary. At the beginning or end of a line, @key{RET} still does NEWLINE, so it can be used to split a table. ___ 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: Possible Calc support for Org-Babel?
Sébastien Vauban wxhgmqzgw...@spammotel.com writes: [...] executing Calc code block... if: Symbol's function definition is void: calc-push-list Required =calc= by calling =C-x * *=: hmm, I just pushed the actual ob-calc.el file up to the repository. Do you still get these errors if you loaf up calc support through calling (require 'ob-calc)? ___ 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] Possible Calc support for Org-Babel?
Eric S Fraga ucec...@ucl.ac.uk writes: Eric, This is really nice! I had a problem initially in that calc-push-list was undefined. I had to initiate calc first so maybe a : (require 'calc) Ah yes, that is in the ob-calc.el file, but not in the code snippet I shared. I'll commit this entire file to the repository. is required to ensure the functions you use are available? Then, out of the three examples you give, only one (3^3) worked. The others give me: I just made a change which should fix this issue. Debugger entered--Lisp error: (wrong-type-argument stringp (2 Expected a number)) [...] Have I done something wrong? I am particularly excited, once it works for me, to use this for /inline/ babel executions! Great. I'd be particularly interested if there are more natural or idiomatic calc ways to interact with Calc through a code block than the one implemented here. Cheers -- Eric Thanks, eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [CONCERN] Orgmode version string
Hi Jambunathan, Jambunathan K kjambunat...@gmail.com writes: Now that release-7.02 is out, I am a bit disappointed that a ELPA-tar named org-7.02.tar would be unusable. Let's fix this by having a conversation with the ELPA maintainers. Can you start a discussion off-list with me, Carsten, ELPA maintainers and Chong? I'm willing to better understand what we have to do and why. 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
[Orgmode] Re: TaskJuggler 3, revisited
John Hendy jw.he...@gmail.com writes: - is there any progress on an exporter for tj3? Yes there is. See http://github.com/egli/org-mode/blob/master/lisp/org-taskjuggler.el - does anyone have a vague sketch of what needs to happen? The export to tj3 should basically work now. Just customize `org-export-taskjuggler-target-version' to 3.0 and you should be set. You still need to adapt the default reports[1], as they no longer work with tj3. `org-export-as-taskjuggler-and-open' needs to be adapted and also there are some other incoming patches from Anthony Lander that I need to integrate. - can I do grunt work for someone to make this happen? Testing would help. Thanks. Footnotes: [1] `org-export-taskjuggler-default-reports' -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland ___ 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] detangle
Hi Eric, The bug you mentioned should have been fixed by yesterday's commit ,[c6565eaa43d398f6771edd59c2bfe7ca54e4a93e] | commit c6565eaa43d398f6771edd59c2bfe7ca54e4a93e | Author: Eric Schulte schulte.e...@gmail.com | Date: Fri Oct 29 01:37:28 2010 -0600 | | fixed typos in tangle comment link format strings | | * lisp/ob-tangle.el (org-babel-tangle-comment-format-beg): fix typo | (org-babel-tangle-comment-format-end): fix typo ` is it possible you haven't make clean make'd your repo since the last push? Best -- Eric Eric S Fraga ucec...@ucl.ac.uk writes: Eric Schulte schulte.e...@gmail.com writes: Hi, I've just added functions for detangling code from pure source code files back into code blocks in the org-mode files from whence they were tangled. Wow. It just gets better all the time!! :-) This is done by the new `org-babel-detangle' function. Additionally the new `org-babel-tangle-jump-to-org' function can be used to navigate from a pure source code file back to the related code block in the original Org-mode file. Both of these new functions require that the code block was tangled with comments which can be accomplished by setting the :comments header to yes. I've tried the first couple of steps: added the comments header and tangled my code, ledger in this case. I've had a looked at the tangled code and I get lines such as this one inserted: : ; [[id:8fe917c4-257f-45f7-839b-68b5772e5443][%sourcename]] Obviously, =%sourcename= should have been replaced by something in the tangling operation as, subsequently, the jump command doesn't work. I assume that the detangling won't work either. Is there something I (or you?) should add to =ob-ledger.el= perhaps? I've not tried any other codes as I don't /tangle/ often. Thanks, eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Release 7.02
Hi, Sorry about this oversight, I must have missed it when trolling through the git logs. I've now added an entry on the Babel speed commands. Thanks -- Eric Jambunathan K kjambunat...@gmail.com writes: Carsten Dominik carsten.domi...@gmail.com writes: Dear all, I have release version 7.02 or Org-mode. Thanks to all who have contributed! Enjoy - Carsten Changes in version 7.02 1. Would be nice if Babel specific changes are in a separate headline. 2. Please mention support for Speed Keys on Babel header lines. The entry titled 'Support for user-extensible speed commands' could either be subsumed in to (2) or kept separately. I would personally prefer the later option. Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [Babel] detangle
Eric Schulte schulte.e...@gmail.com writes: Hi Eric, The bug you mentioned should have been fixed by yesterday's commit ,[c6565eaa43d398f6771edd59c2bfe7ca54e4a93e] | commit c6565eaa43d398f6771edd59c2bfe7ca54e4a93e | Author: Eric Schulte schulte.e...@gmail.com | Date: Fri Oct 29 01:37:28 2010 -0600 | | fixed typos in tangle comment link format strings | | * lisp/ob-tangle.el (org-babel-tangle-comment-format-beg): fix typo | (org-babel-tangle-comment-format-end): fix typo ` is it possible you haven't make clean make'd your repo since the last push? done all that and org-reload several times today but I had not re-started emacs; oops! I just did so and everything seems to be working much better. The jump to org doesn't actually make the buffer appear but it does move me to the right place in the org buffer. I haven't tried de-tangling yet. -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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: Release 7.02
On Oct 29, 2010, at 4:02 PM, Jambunathan K wrote: Carsten Dominik carsten.domi...@gmail.com writes: Dear all, I have release version 7.02 or Org-mode. Thanks to all who have contributed! Enjoy - Carsten Changes in version 7.02 1. Would be nice if Babel specific changes are in a separate headline. 2. Please mention support for Speed Keys on Babel header lines. The entry titled 'Support for user-extensible speed commands' could either be subsumed in to (2) or kept separately. I would personally prefer the later option. Please send me a patch! - 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] [CONCERN] Orgmode version string
On Oct 29, 2010, at 3:06 PM, Jambunathan K wrote: Carsten Hi Jambunathan, On Oct 28, 2010, at 2:40 PM, Jambunathan K wrote: I have every reason to believe that upcoming version of Org would be tagged as 7.02. Earlier I had argued that version strings be version-to-list compatible. I would like to reiterate it. My real concern is that 7.02 would be deemed as equivalent to 7.2 internally by the versioning subsystem and this is likely to clash with user's point of view. A user would *definitely* assume 7.02 as different from 7.2 and in all probability swear that former is inferior to the later. (version-to-list 7.02) - (7 2) (version-to-list 7.20) - (7 20) so it seems to me that if we keep two-digit numbers, there will be no problem at all. #+begin_src emacs-lisp (version-list-= (version-to-list 7.02) (version-to-list 7.20)) #+end_src - Carsten Now that release-7.02 is out, I am a bit disappointed that a ELPA-tar named org-7.02.tar would be unusable. The reason is 7.02 doesn't round-trip well and package manager is allergic to such a choice. Verify this for yourself. #+begin_src emacs-lisp (package-version-join (version-to-list 7.02)) #+end_src If you don't mind sharing, I am curious what made you still go with 7.02 scheme. Well, most certainly not because I wanted to disappoint you. On the contrary, I am really greateful for the ground work you have laid to make us go with the packaging system. So the reason must be that I have not read/digested the numbering thread carefully enough. What I remember from it is: - do not use something like 7.02a, because the letter will defeat version number testing - from our most recent exchange I felt that you agree that 7.02 will behave correctly when compared with the version- functions. So I actually understood that you agreed with me. The reason why I use 7.02 at all is just because I think it is pretty when one is expecting 2-digit release numbers. The release file numbers line up nicely in a directory listing. Things like this. Do you have the patience to summarize the arguments for me? I will go with 7.3 for the next release if this is what is really needed. Greetings - Carsten Jambunathan K. Please confirm what I am saying by evalling this: #+begin_src emacs-lisp (version-list-= (version-to-list 7.02) (version-to-list 7.2)) #+end_src Ignore this mail if it is already taken care of. Needless to say, I have ELPA-tarballs in mind when I say this. Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Possible Calc support for Org-Babel?
Just FYI, I've just pushed up another fix for ob-calc.el which I found was required to avoid errors on evaluation of calc code blocks. Best -- Eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Release 7.02
Hello, Sébastien Vauban writes: Does that mean that we must admit this will stay like that forever, or will one try to look and see if it's possible to make that extension? Nobody said it was impossible. For now, it is unavailable because not satisfying enough. The main difficulty isn't coming from exporters or even to make Org recognize such constructs. It is, as I already said, about user interface. How do you create such lists? How does Org is supposed to react when you ask to indent such lists? I asked others practical questions about it in a previous thread. Did you read them? Do you have some answers? What do you think about Carsten's idea to use - @? Regards, -- Nicolas ___ 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: [WISH] Org Importers
Jeff Horn jrhorn...@gmail.com writes: FWIW, I have a home-brewed perl script that converts latex documents to org-mode files. Loosely based on latex2doc[1], it uses a latex style file (generated by the perl script) to markup the pdf output (e.g. asterisks for section headings, etc.). The org-formatted pdf is then converted to plain text with pdftotext. It's a crude and by no means comprehensive hack designed to meet my own peculiar needs. But I'd be happy to share it on Worg (with ample disclaimers) if anyone is interested. I for one, would be interested in this, though it is likely to be a few months before I can get around to using it for an actual project. Great! I'll clean it up as best I can and put it up on Worg. Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Release 7.02
On Fri, Oct 29, 2010 at 2:49 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Implement MathJax support == Org-mode now uses MathJax to display math on web pages. We serve MathJax from the orgmode.org server, at least for the time being (thanks Bastien!). If you are going to use this for pages which are viewd often, please install MathJax on your own webserver. I use this, and forty page views a week may be too much (I don't know). I didn't know how MathJax worked, and I thought it was always served from MathJax servers (I didn't give it much thought, obviously). What do I need to customize to get MathJax to load from my own server instead of orgmode.org? -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Release 7.02
Jeff Horn wrote: On Fri, Oct 29, 2010 at 2:49 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Implement MathJax support == Org-mode now uses MathJax to display math on web pages. We serve MathJax from the orgmode.org server, at least for the time being (thanks Bastien!). If you are going to use this for pages which are viewd often, please install MathJax on your own webserver. I use this, and forty page views a week may be too much (I don't know). I didn't know how MathJax worked, and I thought it was always served from MathJax servers (I didn't give it much thought, obviously). What do I need to customize to get MathJax to load from my own server instead of orgmode.org? See the org-export-html-mathjax-options variable. ___ 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] Release 7.02
Thanks. That did the trick. I think it may be a bit faster too, running on my server... but that could be my imagination. On Fri, Oct 29, 2010 at 2:03 PM, Erik Iverson er...@ccbr.umn.edu wrote: Jeff Horn wrote: On Fri, Oct 29, 2010 at 2:49 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Implement MathJax support == Org-mode now uses MathJax to display math on web pages. We serve MathJax from the orgmode.org server, at least for the time being (thanks Bastien!). If you are going to use this for pages which are viewd often, please install MathJax on your own webserver. I use this, and forty page views a week may be too much (I don't know). I didn't know how MathJax worked, and I thought it was always served from MathJax servers (I didn't give it much thought, obviously). What do I need to customize to get MathJax to load from my own server instead of orgmode.org? See the org-export-html-mathjax-options variable. -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Release 7.02
Jeff Horn wrote: Thanks. That did the trick. I think it may be a bit faster too, running on my server... but that could be my imagination. It is very likely faster. Also, note the following about using Firefox: http://www.mathjax.org/resources/faqs/#image-fonts On Fri, Oct 29, 2010 at 2:03 PM, Erik Iverson er...@ccbr.umn.edu wrote: Jeff Horn wrote: On Fri, Oct 29, 2010 at 2:49 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Implement MathJax support == Org-mode now uses MathJax to display math on web pages. We serve MathJax from the orgmode.org server, at least for the time being (thanks Bastien!). If you are going to use this for pages which are viewd often, please install MathJax on your own webserver. I use this, and forty page views a week may be too much (I don't know). I didn't know how MathJax worked, and I thought it was always served from MathJax servers (I didn't give it much thought, obviously). What do I need to customize to get MathJax to load from my own server instead of orgmode.org? See the org-export-html-mathjax-options variable. ___ 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 exporting
I updated to 7.02 today and now am unable to publish a project to html. This is the error reported in *Messages* Publishing file /home/mark/teach/10fall/metaphysics/notes/index.org using `org-publish-org-to-html' Exporting... tramp-convert-file-attributes: Wrong type argument: numberp, 1288383678\.599600284\.0 Here's my setting of org-publish-project-alist: (setq org-publish-project-alist '((metaphysics :base-directory ~/teach/10fall/metaphysics/notes/ :publishing-directory /ssh:metaphys...@192.168.2.100:~/metaphysics :recursive t :section-numbers nil :table-of-contents nil :base-extension org :publishing-function org-publish-org-to-html :author-info nil :creator-info nil))) Thanks, Mark ___ 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] Possible Calc support for Org-Babel?
Eric S Fraga ucec...@ucl.ac.uk writes: Eric Schulte schulte.e...@gmail.com writes: Eric S Fraga ucec...@ucl.ac.uk writes: Eric, This is really nice! I had a problem initially in that calc-push-list was undefined. I had to initiate calc first so maybe a : (require 'calc) Ah yes, that is in the ob-calc.el file, but not in the code snippet I shared. I'll commit this entire file to the repository. Ah, so should I use the code snippet you sent or should I be requiring 'ob-calc? In either case, I still have problems (see below). Require ob-calc, please don't use the snippet below. is required to ensure the functions you use are available? Then, out of the three examples you give, only one (3^3) worked. The others give me: I just made a change which should fix this issue. Very strange. I'm still seeing the same problems, both with calc-push-list not known (having to manually require 'calc) and then errors evaluating the 1+2 block: judging from the error below, it looks as though you are still using the old code (or the snippet below). Please ensure you're on the latest and give it another go. Debugger entered--Lisp error: (wrong-type-argument stringp (2 Expected a number)) string-match(\\` *\\([0-9]+\\) *\\' (2 Expected a number)) math-read-number((2 Expected a number)) (list (math-read-number (calc-eval line))) in the latest code the line (list (math-read-number (calc-eval line))) has been replaced by (list ((lambda (res) (if (numberp res) res (math-read-number res))) (calc-eval line))) Best -- Eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [BUG] org-exp.el: Broken Internal Links
See Heading2 for description of the bug. This bug has been there since time immemorial. # Input Org file * Heading1 * Heading2 Link to [[Heading1]] is OK. Link to [[Heading3]] is broken. To fix this, org-link-search in org-export-target-internal-links should avoid matching on the self somehow. * Heading3 # Buggy HTML Output #+begin_src html p Link to a href=#sec-1Heading1/a is OK. Link to a href=#sec-2Heading3/a is broken. To fix this, org-link-search in org-export-target-internal-links should avoid matching on the self somehow. /p #+end_src Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] MobileOrg 1.5 for iPhone released with encryption support
On Oct 29, 2010, at 9:00 PM, Richard Moreland wrote: Hi, I'd like to announce that MobileOrg 1.5 for iPhone was just approved and should be available in the AppStore (it may take a few hours to show up everywhere). Great. Thanks a lot, Richard!!! - Carsten This version supports encryption of files stored on a remote server. It requires Org-mode 7.02+. Please see http://mobileorg.ncogni.to/doc/getting-started/ encryption/ or the Org-mode manual for more information. Thanks, Richard ___ 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 with publishing to html
I updated to 7.02 today and now am unable to publish a project to html. This is the error reported in *Messages* Publishing file /home/mark/teach/10fall/metaphysics/notes/index.org using `org-publish-org-to-html' Exporting... tramp-convert-file-attributes: Wrong type argument: numberp, 1288383678\.599600284\.0 Here's my setting of org-publish-project-alist: (setq org-publish-project-alist '((metaphysics :base-directory ~/teach/10fall/metaphysics/notes/ :publishing-directory /ssh:metaphys...@192.168.2.100:~/metaphysics :recursive t :section-numbers nil :table-of-contents nil :base-extension org :publishing-function org-publish-org-to-html :author-info nil :creator-info nil))) Thanks, Mark ___ 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] requested feature
Does anybody have a function that turns a org header into file with a link to the file where it originated from ? For example, lets say I have the following heading * Apples * Cherry * Tomatoes Lets say I have a mini project on Apples, it would be nice to issue a single command that turns Applies into Apples.org with a link Best, M ___ 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: Unbillable clock time
Ross Patterson me at rpatterson.net writes: I would like to be able to designate some of my clock time as unbillable such that when using a clockreport the unbillable time is not included. I would also like to compare billable and unbillable time if possible. Back in March I submitted a patch to satisfy my own need for just such a feature, as described here: http://news.gmane.org/find-root.php?message_id=%3c4B838024.806%40hgn.ca%3e You can tag your unbillable items and exclude them from your clock report, on a headline by headline basis. You could also generate a separate report containing just the unbillable headlines for comparison. Adam ___ 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] Problem with publishing to html
On Sat, Oct 30, 2010 at 4:23 AM, marksc...@gmail.com wrote: I updated to 7.02 today and now am unable to publish a project to html. This is the error reported in *Messages* Publishing file /home/mark/teach/10fall/metaphysics/notes/index.org using `org-publish-org-to-html' Exporting... tramp-convert-file-attributes: Wrong type argument: numberp, 1288383678\.599600284\.0 Here's my setting of org-publish-project-alist: (setq org-publish-project-alist '((metaphysics :base-directory ~/teach/10fall/metaphysics/notes/ :publishing-directory /ssh:metaphys...@192.168.2.100:~/metaphysics :recursive t :section-numbers nil :table-of-contents nil :base-extension org :publishing-function org-publish-org-to-html :author-info nil :creator-info nil))) I tried to re-create this on my machine using (setq org-publish-project-alist '((metaphysics :base-directory /tmp/notes/ :publishing-directory /ssh:noo...@127.0.0.1:/tmp/publish :recursive t :section-numbers nil :table-of-contents nil :base-extension org :publishing-function org-publish-org-to-html :author-info nil :creator-info nil))) I got the project published without any issues. I have Org-mode version 7.01trans (release_7.01h.880.gba6b6) GNU Emacs 23.2.2 (i686-pc-linux-gnu) of 2010-06-08 on sajida Thanks and Regards Noorul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [BUG] org-exp.el: Broken Internal Links
On Sat, Oct 30, 2010 at 2:56 AM, Jambunathan K kjambunat...@gmail.com wrote: See Heading2 for description of the bug. This bug has been there since time immemorial. # Input Org file * Heading1 * Heading2 Link to [[Heading1]] is OK. Link to [[Heading3]] is broken. To fix this, org-link-search in org-export-target-internal-links should avoid matching on the self somehow. * Heading3 # Buggy HTML Output #+begin_src html p Link to a href=#sec-1Heading1/a is OK. Link to a href=#sec-2Heading3/a is broken. To fix this, org-link-search in org-export-target-internal-links should avoid matching on the self somehow. /p #+end_src But this is what I get p Link to a href=#sec-1Heading1/a is OK. Link to a href=#sec-3Heading3/a is broken. To fix this, org-link-search in org-export-target-internal-links should avoid matching on the self somehow. /p Thanks and Regards Noorul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Git pull has merge conflict
I am not sure why this conflict is arising even after resetting to head and then doing a pull $ noo...@sajida:~/emacs/org-mode$ git reset --hard HEAD is now at ba6b6f3 Merge branch 'master' of git://repo.or.cz/org-mode $ noo...@sajida:~/emacs/org-mode$ git pull Auto-merging ORGWEBPAGE/index.org CONFLICT (content): Merge conflict in ORGWEBPAGE/index.org Automatic merge failed; fix conflicts and then commit the result. Thanks and Regards Noorul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [BUG] org-exp.el: Broken Internal Links on Fuzzy Match
(Refiling with added info, Thanks Noorul) See Heading2 for description of the bug. This bug has been there since time immemorial. (setq org-link-search-must-match-exact-headline nil) # Input Org file * Heading1 * Heading2 Link to [[Heading1]] is OK. Link to [[Heading3]] is broken. To fix this, org-link-search in org-export-target-internal-links should avoid matching on the self somehow. * Heading3 # Buggy HTML Output #+begin_src html p Link to a href=#sec-1Heading1/a is OK. Link to a href=#sec-2Heading3/a is broken. To fix this, org-link-search in org-export-target-internal-links should avoid matching on the self somehow. /p #+end_src Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode