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

2013-05-28 Thread Lawrence Mitchell
omisation option and use 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 writes: >

Re: [O] Effort entry and confusing effort estimates

2013-05-21 Thread Lawrence Mitchell
ing-to-minutes ;; what gets inserted (org-minutes-to-clocksum-string (org-duration-string-to-minutes "3d 2h") => t I would argue that (org-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

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 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 agai

[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 in

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-e

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 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 point out specific ones where

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 > be

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

2013-05-02 Thread Lawrence Mitchell
27;s now common Nicolas Goaziou wrote: > Hello, > Lawrence Mitchell 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 nitpic

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

2013-05-01 Thread Lawrence Mitchell
r position 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

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
ed in org exports as either "\~" 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

Re: [O] Table formula not returning an error

2011-10-07 Thread Lawrence Mitchell
e string 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

[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 prob

Re: [O] unexpected failure on all formulas

2011-09-20 Thread Lawrence Mitchell
74 | #+TBLFM: @II+1$2..@II+1$4=vmin(@I..@II)::@II+2$2..@II+2$4=vmax(@I..@II)::@II+3$2..@II+3$4='(mapconcat 'number-to-string (mode @I..@II) ", ");N Lawrence -- Lawrence Mitchell

[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 >``Inter

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

2011-06-03 Thread Lawrence Mitchell
m is that (sort v 'string<) destructively modifies v, and in this case, that means that the "file" argument to :result-params in thrown away. Lawrence -- Lawrence Mitchell

[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 delet

[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 ha

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. Lawrenc

Re: [O] Export options being ignored

2011-05-05 Thread Lawrence Mitchell
. > Thanks for the analysis. Indeed, thanks. Lawrence -- Lawrence Mitchell

[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 deletions

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

2011-04-06 Thread Lawrence Mitchell
; "caption") (setq tbl (with-current-buffer "*org-export-table*" (buffer-string))) Patchwork maintainers, please don't pick this up, it's a horrible fix :P. Lawrence -- Lawrence Mitchell

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

2011-03-30 Thread Lawrence Mitchell
Nicolas wrote: > Hello, > Lawrence Mitchell 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 th

[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 t

[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-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] 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 the

[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

[O] Re: unnumbered subsections in latex export

2011-03-23 Thread Lawrence Mitchell
sometimes (plist-get opt-plist :option) is used, sometimes the default variable org-export-with-option is, sometimes neither are consulted. I'm not sufficiently excited by the grunt work to do anything about it, but maybe I should! Lawrence -- Lawrence Mitchell

[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 insertio

[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] 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 lev

Re: [O] Slow movement in large buffers

2011-03-15 Thread Lawrence Mitchell
g time. remove all the overlays M-: (remove-overlays) RET collapse the buffer again M-x org-shifttab RET Now vertical motion is rapid. This suggests that one should try and see if overlays in org buffers can be replaced by text properties. Which do not cause the same slowdown. Lawrence -- Lawrence Mitchell

Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Lawrence Mitchell
)) then this is some text, e.g.\space foo bar => this is some text, e.g.\ foo bar [...] Lawrence -- Lawrence Mitchell

Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Lawrence Mitchell
do: (setq org-export-latex-hyperref-format "\\ref{%s}") then you can refer to sections by their numbers with "as we see in section [[section]]" and it works nicely. -- Lawrence Mitchell

Re: [O] Title page in latex export

2011-03-04 Thread Lawrence Mitchell
(when (string-match "\\S-" title) (if (string-match "%s" org-export-latex-title-command) -- Lawrence Mitchell

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

2011-02-28 Thread Lawrence Mitchell
nge this. Old effort strings (HH:MM) are still interpreted correctly. See 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 Date: Fri, 18 Feb 20

[Orgmode] Re: Does Effort support hours only?

2011-02-21 Thread Lawrence Mitchell
Herbert Sitz wrote: > Lawrence Mitchell gmx.li> writes: >>>>> Is it possible to specify estimated effort in something other than hours >>>>> (0.5, or 0:30)? >>> Being able to specify suffixes like `d' for days or `w' for weeks would be &

[Orgmode] Re: Does Effort support hours only?

2011-02-18 Thread Lawrence Mitchell
0-9]+\\)\\([hdwmy]\\)" s) + (incf result (* (cdr (assoc (match-string 2 s) conversion)) + (string-to-number (match-string 1 s + (setq s (replace-match "" nil t s))) +(incf result (org-hh:mm-string-to-minutes s)) +result)) + Files (defun org-save-all-org-buffers () -- Lawrence Mitchell ___ 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: Export error. Have a look at my backtrace?

2011-02-08 Thread Lawrence Mitchell
So you should probably shout at the Aquamacs developers :P. Lawrence -- Lawrence Mitchell ___ 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
ning > latexmk -pdf works 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 ___ Emacs-orgmode mailing list Please use `Reply A

[Orgmode] Re: window rearrangements when exporting to pdf

2011-02-04 Thread Lawrence Mitchell
export is the cause 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. Law

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

2011-02-02 Thread Lawrence Mitchell
erimental patch is attached, comments are > welcome. How about the following two patches on top. The first fixes table alignment, the second fixes LaTeX export of these tables. >From c555b7e15b617538490210a041bd4af45e51d752 Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell Date: Wed, 2 Feb 201

[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 \usepacka

[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-mo

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

2011-01-21 Thread Lawrence Mitchell
ges line 4 from being part of the sublist entry to being part of the list entry from line 2. Hope this clarifies things. Cheers, Lawrence -- Lawrence Mitchell ___ 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/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 indenta

[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 a

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

2011-01-20 Thread Lawrence Mitchell
de blocks from people you don't trust. Cheers, Lawrence -- Lawrence Mitchell ___ 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 0/2] References auto-generated labels with \ref in LaTeX export

2011-01-20 Thread Lawrence Mitchell
obvious place I could find in the manual. Cheers, 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

[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 org-e

[Orgmode] [PATCH 2/2] Allow option of using bare \ref links in LaTeX export

2011-01-20 Thread Lawrence Mitchell
* lisp/org-latex.el (org-export-latex-unprettify-internal-links): New variable. (org-export-latex-links): Use it. * org-mode/lisp/org-exp.el (org-export-plist-vars): Add :LaTeX-bare-refs settable through the bare-ref option with default given by `org-export-latex-unprettify-internal-links'. (org-ge

[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 p

[Orgmode] Inconsistencies in email and author export

2011-01-13 Thread Lawrence Mitchell
email info 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 -- Lawrenc

[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 to

[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 ___ Emacs-orgmo

[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-