[O] [PATCH] Remove org-time-clocksum-use-effort-durations

2013-05-28 Thread Lawrence Mitchell
org-effort-durations in org-minutes-to-clocksum-string as well. --- lisp/org-clock.el | 2 -- lisp/org.el | 32 ++-- 2 files changed, 6 insertions(+), 28 deletions(-) Bastien wrote: Hi Lawrence, Lawrence Mitchell we...@gmx.li writes: I would argue that (org

Re: [O] Effort entry and confusing effort estimates

2013-05-21 Thread Lawrence Mitchell
-duration-string-to-minutes (org-minutes-to-clocksum-string (org-duration-string-to-minutes some-value))) Should be a no-op. But that is only the case if org-time-clocksum-use-effort-durations is t. Lawrence -- Lawrence Mitchell we...@gmx.li

[O] [PATCH] ox-html: Ensure space between tag and attribute when closing tags

2013-05-07 Thread Lawrence Mitchell
* lisp/ox-html.el (org-html-close-tag): Add space before attr. We might get an attribute to a tag with no space at its start. Rather than auditing all callers, unconditionally separate the tag from its attributes with a space when closing the tag. --- lisp/ox-html.el | 2 +- 1 file changed, 1

Re: [O] [PATCH] ox-html: Ensure space between tag and attribute when closing tags

2013-05-07 Thread Lawrence Mitchell
Bastien wrote: Hi Lawrence, Lawrence Mitchell we...@gmx.li writes: * lisp/ox-html.el (org-html-close-tag): Add space before attr. thanks for the patch -- can you make it against the maint branch so that we include this in the next minor release? It does not apply against master

Re: [O] Exporting large documents

2013-05-06 Thread Lawrence Mitchell
[Reintroducing org mailing list CC] On 05/05/2013 20:21, Nicolas Goaziou wrote: Carsten Dominik carsten.domi...@gmail.com writes: I don't think there's much to do about that. Though, some tools could benefit from caching, like Lawrence did for `org-export-resolve-fuzzy-link'. Could you

Re: [O] Exporting large documents

2013-05-06 Thread Lawrence Mitchell
Lawrence Mitchell wrote: [...] And here's the profile for exporting the whole of orgmanual.org to latex. You can see that a lot of the time comes from quite cheap functions that are called lots. org-latex-export-as-latex 1 415.52740777 415.52740777 org-export-to-buffer

Re: [O] Exporting large documents

2013-05-03 Thread Lawrence Mitchell
Carsten Dominik wrote: Hi Lawrence, thanks for doing this. Stuff to think about - but no good ideas for improvements here either - I am just not familiar enough with the export engine. Nicolas, it would be interesting to hear from you if you have comments and ideas about quadratic

[O] [PATCH v2] ox: Cache locations of fuzzy links

2013-05-02 Thread Lawrence Mitchell
Nicolas Goaziou wrote: Hello, Lawrence Mitchell we...@gmx.li writes: * ox.el (org-export-resolve-fuzzy-link): Look for fuzzy link in a cache before trying to resolve it in the parse tree. Thanks for your patch. A few comments follow. [...] Minor nitpick: I'd rather have this included

[O] [PATCH] ox: Cache locations of fuzzy links

2013-05-01 Thread Lawrence Mitchell
independent links, cache the locations and look there first. --- lisp/ox.el | 48 +++- 1 file changed, 35 insertions(+), 13 deletions(-) Achim Gratz wrote: Lawrence Mitchell writes: I did a bit of digging and here are the results. No potential fixes though

Re: [O] Exporting large documents

2013-04-29 Thread Lawrence Mitchell
Carsten Dominik wrote: Hi Achim, this is an interesting experiment, thank you! I think it would also be interesting to use elp to see which function are taking up the non-linear time. I did a bit of digging and here are the results. No potential fixes though. Taking the Introduction

Re: [O] getting a tilde into LaTeX export

2011-11-11 Thread Lawrence Mitchell
\~ or \~{} in LaTeX, where all I want is plain ~. Can someone help me out? hello \nbsp goodbye = hello ~ goodbye Although I can't figure out a way of having no extra whitespace on both sides of the ~. Lawrence -- Lawrence Mitchell we...@gmx.li

Re: [O] Table formula not returning an error

2011-10-07 Thread Lawrence Mitchell
will be taken, | there can be extra stuff in the string. ^^ | If no number is found, the return value is 0. It's arguable that this is the best choice, but it is one. Lawrence -- Lawrence Mitchell we...@gmx.li

[O] bug#9610: 24.0.90; org-mode: sluggish response and high CPU utilization with large .org files

2011-09-27 Thread Lawrence Mitchell
Steve Revilak wrote: I'd like to report an org-mode regression issue. When working with large .org files, Emacs 24.0.90 becomes sluggish, and consumes large amounts of CPU. If you type this: M-x set-variable RET bidi-paragraph-direction RET left-to-right RET does the problem go away?

Re: [O] unexpected failure on all formulas

2011-09-20 Thread Lawrence Mitchell
..@II+2$4=vmax(@I..@II)::@II+3$2..@II+3$4='(mapconcat 'number-to-string (mode @I..@II) , );N Lawrence -- Lawrence Mitchell we...@gmx.li

[O] [PATCH] org-latex: Convert quote marks in section headers

2011-06-21 Thread Lawrence Mitchell
* lisp/org-latex.el (org-export-latex-fontify-headline): Convert quotes to their LaTeX equivalents using org-export-latex-quotation-marks. --- Xin Shi wrote: Hello, I'm using the org-mode 7.5 in Emacs 23.3. I noticed this lines in org: ** ``Internal'' and External Example ``Internal''

Re: [O] [PATCH 2/2] lisp/ob.el: Don't modify babel info when hashing it

2011-06-03 Thread Lawrence Mitchell
, and in this case, that means that the file argument to :result-params in thrown away. Lawrence -- Lawrence Mitchell we...@gmx.li

[O] [PATCH 1/2] lisp/ob.el: Fix org-babel-result-regexp to match users

2011-06-02 Thread Lawrence Mitchell
* lisp/ob.el (org-babel-result-regexp): Use non-shy group around org-babel-data-names. By default regexp-opt returns a shy group around its arguments. But users of org-babel-result-regexp expect the third match-string to contain the hash. With a shy group, the second match-string contains the

[O] [PATCH 2/2] lisp/ob.el: Don't modify babel info when hashing it

2011-06-02 Thread Lawrence Mitchell
* lisp/ob.el (org-babel-sha1-hash): Don't modify info argument by side-effect when sorting result-params list. copy-sequence only does shallow copies, so if we're going to modify a sub-list, we need to make sure we copy it first. --- lisp/ob.el |2 +- 1 files changed, 1 insertions(+), 1

Re: [O] [Orgmode] Re: [Feature Request] Cross headings in tables

2011-05-31 Thread Lawrence Mitchell
On 31/05/2011 08:21, Carsten Dominik wrote: [...] Finally: this patch goes clearly beyond the TINYCHANGE limits. What is yours, and Lawrence's copyright status with the FSF? I have papers with the FSF for past and future changes to Emacs, so I believe my contributions are covered. Lawrence

Re: [O] Export options being ignored

2011-05-05 Thread Lawrence Mitchell
it will not match anything in this case). So Eden diagnosed it correctly: it *is* a parsing problem and it *does* involve the non-word options. This is fixed now, by looking for white space instead of beginning-of-word. Thanks for the analysis. Indeed, thanks. Lawrence -- Lawrence Mitchell

[O] Re: [BUG] Crash with LaTeX exporter

2011-04-06 Thread Lawrence Mitchell
-- Lawrence Mitchell we...@gmx.li

[O] [PATCH] org-latex: Fix export of table.el tables with captions

2011-04-06 Thread Lawrence Mitchell
* lisp/org-latex.el (org-export-latex-convert-table.el-table): Fix format-string for insertion of captions. This fixes a bug introduced in caa5da1 since when the caption itself is not placed inside the caption command. --- lisp/org-latex.el |2 +- 1 files changed, 1 insertions(+), 1

[O] Re: [PATCH] org-latex: Don't append newline to end of footnote

2011-03-30 Thread Lawrence Mitchell
Nicolas wrote: Hello, Lawrence Mitchell we...@gmx.li writes: [...] The analysis is good, but unfortunately the patch has a flaw. In fact, your patch work in that particular situation, but not if a footnote definition ends with a list, nor if it ends with a link. To solve the latter, you

[O] [PATCH] org-html: Fix logic for export of section numbers

2011-03-29 Thread Lawrence Mitchell
* lisp/org-html.el (org-export-as-html) (org-html-level-start): Fix logic for section number printing when NUM is an integer. Fixes a bug introduced in 9f57b8e which considered all non-integer values of the num option to be nil. --- Bernt Hansen wrote: Hi Lawrence, Numbering of the Table of

[O] [PATCH] org: Match case of todo keywords when determining empty headings

2011-03-29 Thread Lawrence Mitchell
* lisp/org.el (org-point-at-end-of-empty-headline): Bind case-fold-search to nil. --- Samuel Wales wrote: I have found another todo keyword bug of the same type as the other 6. A headline with a word that is the same as a todo keyword but not in upper case has different behavior. Example:

[O] [PATCH] org-latex: Don't append newline to end of footnote

2011-03-29 Thread Lawrence Mitchell
* lisp/org-latex.el (org-export-latex-preprocess): Don't add a newline character to a processed footnote. The extra newline before the closing } character in a footnote confuses the list parsing code. The } appears at the beginning of a line, so it looks like the end of the list. LaTeX gobbles

[O] [PATCH] Prefer matching line beginnings in org-export-latex-special-chars

2011-03-28 Thread Lawrence Mitchell
* lisp/org-latex.el (org-export-latex-special-chars): Fix regexp for `single' special characters and ellipsis. Repeated special characters are exported differently depending on their position in the buffer. A string at the start of a line is exported as \ whereas in the middle of a line you get

[O] [PATCH] Ensure org-export-handle-comments protects its insertions

2011-03-28 Thread Lawrence Mitchell
* lisp/org-exp.el (org-export-handle-comments): Add the org-protected property to the replacement string. Although org-export-handle-comments adds the org-protected property to the matched string, the subsequent `replace-match' call to change the comment character does not add this property to

[O] [PATCH] Allow mixed export of numbered and unnumbered sections in HTML

2011-03-23 Thread Lawrence Mitchell
* lisp/org-html.el (org-export-as-html): Get local value of org-export-with-section-numbers from the buffer's plist. Deal specially with the case the resulting value is an integer. (org-html-level-start): New optional argument of the option plist used instead of `org-export-with-section-numbers'.

[O] [PATCH] Protect starred commands in LaTeX export correctly

2011-03-23 Thread Lawrence Mitchell
* lisp/org-latex.el (org-export-latex-preprocess): Correctly match starred command names. Many LaTeX commands exist in both normal and starred forms. Adjust the regexp in `org-export-latex-preprocess' to match the starred form as well. --- lisp/org-latex.el |2 +- 1 files changed, 1

[O] [PATCH] Allow mixed export of numbered and unnumbered sections in LaTeX

2011-03-22 Thread Lawrence Mitchell
* lisp/org-latex.el (org-export-latex-subcontent): Deal specially with the case that NUM is an integer. We would sometimes like to have numbered \sections in LaTeX export but unnumbered \subsections and so forth. That is, use the starred equivalents for all sectioning commands below a certain

Re: [O] Slow movement in large buffers

2011-03-15 Thread Lawrence Mitchell
try and see if overlays in org buffers can be replaced by text properties. Which do not cause the same slowdown. Lawrence -- Lawrence Mitchell we...@gmx.li

Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Lawrence Mitchell
\\ref{%s}) then you can refer to sections by their numbers with as we see in section [[section]] and it works nicely. -- Lawrence Mitchell we...@gmx.li

Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Lawrence Mitchell
does not seem to notice abbrivations—how could it?—and further \ is interpreted literaly. I need to have an escaped space. (setq org-entities-user '((space \\ nil))) then this is some text, e.g.\space foo bar = this is some text, e.g.\ foo bar [...] Lawrence -- Lawrence Mitchell

Re: [O] Title page in latex export

2011-03-04 Thread Lawrence Mitchell
-latex-title-command) -- Lawrence Mitchell we...@gmx.li

[O] [PATCH] Support modifiers in effort durations (was: Re: Does Effort support hours only?)

2011-02-28 Thread Lawrence Mitchell
the docstrings of `org-effort-durations' and `org-duration-string-to-minutes' for more details. From a0e24b14755eb4087d9c47bb4eea11eb9151efcf Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell we...@gmx.li Date: Fri, 18 Feb 2011 11:01:46 + Subject: [PATCH] Allow human-readable effort durations To: emacs

[Orgmode] Re: Does Effort support hours only?

2011-02-18 Thread Lawrence Mitchell
-save-all-org-buffers () -- Lawrence Mitchell we...@gmx.li ___ 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: Using latexmk for LaTeX compilation

2011-02-08 Thread Lawrence Mitchell
flawlessly. This setting works for me to produce pdfs via latexmk. (setq org-latex-to-pdf-process (list latexmk -f -pdf %f)) Lawrence -- Lawrence Mitchell we...@gmx.li ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list

[Orgmode] Re: Export error. Have a look at my backtrace?

2011-02-08 Thread Lawrence Mitchell
-- Lawrence Mitchell we...@gmx.li ___ 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: window rearrangements when exporting to pdf

2011-02-04 Thread Lawrence Mitchell
of the problem. Can you try removing it to see what happens. I presume it is there in case you have an Org buffer and /many/ other small buffers, in that case you don't want to pop up the help message in one of the small buffers, because you might not see it all. Lawrence -- Lawrence Mitchell we

[Orgmode] Re: [Feature Request] Cross headings in tables

2011-02-02 Thread Lawrence Mitchell
fixes table alignment, the second fixes LaTeX export of these tables. From c555b7e15b617538490210a041bd4af45e51d752 Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell we...@gmx.li Date: Wed, 2 Feb 2011 12:20:12 + Subject: [PATCH 1/2] Correctly realign tables with internal headers To: emacs

[Orgmode] Re: [bug] latex export ignores org-export-latex-default-packages-alist?

2011-01-26 Thread Lawrence Mitchell
Eric S Fraga wrote: I need to use the amsmath package for a paper I am writing. This conflicts, unfortunately, with the wasysym package which is loaded by default in the org-latex exporter. Checking the documentation for org-export-latex-classes, I find: , | - Calls to \usepackage

[Orgmode] [BUG/PATCH] Set fill-indent-according-to-mode to nil in Org buffers

2011-01-21 Thread Lawrence Mitchell
* lisp/org.el (org-mode): Locally set `fill-indent-according-to-mode' to nil. `org-adaptive-fill-function' attempts to correctly pick up a fill prefix for hand-indented paragraphs and lists. This is defeated by the indentation code, which does not recognise sublists correctly and gets the

[Orgmode] Re: [BUG/PATCH] Set fill-indent-according-to-mode to nil in Org buffers

2011-01-21 Thread Lawrence Mitchell
, Lawrence -- Lawrence Mitchell we...@gmx.li ___ 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: [BUG/PATCH] Set fill-indent-according-to-mode to nil in Org buffers

2011-01-21 Thread Lawrence Mitchell
Nicolas Goaziou wrote: Lawrence Mitchell writes: Hopefully the example below clears things up a bit. I cannot reproduce it, even when following your steps. This would appear to be due to driver error on my part. My .emacs sets fill-indent-according-to-mode to t, whereas by default it is nil

[Orgmode] [PATCH] Quote \[cmd] in docstring of org-export-with-LaTeX-fragments

2011-01-20 Thread Lawrence Mitchell
* org-exp.el (org-export-with-LaTeX-fragments): Fix docstring so that \\[ a = b \\] is not interpreted as a keybinding by `substitute-command-keys'. In a docstring \\[text] is used to indicate that text should be interpreted by `substitute-command-keys'. To avoid this interpretation, we need to

[Orgmode] [PATCH 1/2] Only match complete words in org-export-add-options-to-plist

2011-01-20 Thread Lawrence Mitchell
* org-exp.el (org-export-add-options-to-plist): Require match to start at a word-boundary. Previously, if an option was the suffix of another option (such as TeX and LaTeX) the setting for the former would propagator to the latter. This seems like an unintended consequence of a lax regexp in

[Orgmode] [PATCH 0/2] References auto-generated labels with \ref in LaTeX export

2011-01-20 Thread Lawrence Mitchell
, Lawrence Lawrence Mitchell (2): Only match complete words in org-export-add-options-to-plist Allow option of using bare \ref links in LaTeX export doc/org.texi | 37 + lisp/org-exp.el |6 -- lisp/org-latex.el | 25

[Orgmode] Re: evaluating all R code blocks (newbie question)

2011-01-20 Thread Lawrence Mitchell
-- Lawrence Mitchell we...@gmx.li ___ 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: evaluating all R code blocks (newbie question)

2011-01-20 Thread Lawrence Mitchell
Julian Burgos wrote: Many thanks Lawrence. Yes, I'm aware of the risks, but for now I am only working with my own files. Do you know if it is possible to evaluation confirmation as a header option, so I can left it on but turn it off in my own files? I don't believe it is. If you think

[Orgmode] [PATCH] Allow inclusion of author's email in LaTeX export

2011-01-13 Thread Lawrence Mitchell
* org-latex.el (org-export-latex-make-header): Export email in author line if `org-export-email-info' is non-nil. Previously exporting to LaTeX would not include the document author's email address when org-export-email-info was set. This patch corrects this oversight using the \thanks command

[Orgmode] Inconsistencies in email and author export

2011-01-13 Thread Lawrence Mitchell
at all (see my recent patch fixing this). org-html.el uses org-export-author-info and org-export-email-info. It seems then that most backends do not pay attention to file-local settings, which does feel like a bug. Any thoughts? Cheers, Lawrence -- Lawrence Mitchell we...@gmx.li

[Orgmode] Re: [PATCH 3/3] org-agenda: allow %() in prefix format

2010-12-17 Thread Lawrence Mitchell
Julien Danjou wrote: + %(expression) Eval expression and replaces the control string +by the result Nitpick, use replace, not replaces. [...] Cheers, Lawrence -- Lawrence Mitchell we...@gmx.li ___ Emacs-orgmode mailing list

[Orgmode] [PATCH] Quote any special characters in org-make-target-link-regexp

2010-12-15 Thread Lawrence Mitchell
* lisp/org.el (org-make-target-link-regexp): regexp-quote target before replacing whitespace. Previously a radio link ... would match all three-letter words in the buffer. The manual indicates the radio links are meant to match literally (modulo whitespace differences), so we should regexp-quote