Re: [O] org-preview-latex-fragment on Retina display?
On Friday, 29 May 2015 at 21:45, Adam Sneller wrote: > Recently, I upgraded to a macbook pro with retina display, and now all > my latex previews in org-mode are... fuzzy. These are generated with > org-preview-latex-fragment command, using dvipng. > > Is there a setting I can change to up-res these? Maybe something in org.el? Maybe have a look at ,[ C-h v org-format-latex-options RET ] | org-format-latex-options is a variable defined in `org.el'. | Its value is (:foreground default :background default :scale 1.0 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers | ("begin" "$1" "$" "$$" "\\(" "\\[")) | | | Documentation: | Options for creating images from LaTeX fragments. | This is a property list with the following properties: | :foreground the foreground color for images embedded in Emacs, e.g. "Black". | `default' means use the foreground of the default face. | `auto' means use the foreground from the text face. | :background the background color, or "Transparent". | `default' means use the background of the default face. | `auto' means use the background from the text face. | :scale a scaling factor for the size of the images, to get more pixels | :html-foreground, :html-background, :html-scale | the same numbers for HTML export. | :matchersa list indicating which matchers should be used to | find LaTeX fragments. Valid members of this list are: | "begin" find environments | "$1"find single characters surrounded by $.$ | "$" find math expressions surrounded by $...$ | "$$"find math expressions surrounded by $$$$ | "\("find math expressions surrounded by \(...\) | "\["find math expressions surrounded by \[...\] | | You can customize this variable. | | [back] ` The :scale option may be what you want. I have used this in the past with a value of 3 for creating org based slides for presentations with LaTeX fragments. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-1195-g1a7364
Re: [O] Testers / Feedback wanted: Gantt charts via org-gantt.el
Hi, > Von: Karl Voit [mailto:devn...@karl-voit.at] > > And accomplishing this, I personally would like to see that your > method takes org-depend into consideration. Namely the properties > BLOCKER and TRIGGER:(NEXT|TODO|STARTED). I plan my projects using > mostly BLOCKER and TRIGGER:NEXT to express dependencies. This should be possible (might take a while, and no promises), at least for those simple dependencies. More complicated things expressed via org-depend would require some serious effort. I don't understand the TRIGGER:(NEXT) syntax, though. According to the org-depend documentation TRIGGER: requires an id or a chain-siblings string. So if you can describe a consistent way that org-gantt should handle org-depend, then I might implement it (again, no promises), but as I have never used org-depend I don't know if whatever I could come up with would make sense. Regards, Bernhard
Re: [O] Testers / Feedback wanted: Gantt charts via org-gantt.el
> > > I have added an option :lowlevel-scale (e.g. 0.5 or 0.75) that will scale > > the > complete resulting chart. > > You can of course also use the pgfgantt options (:options) x unit chart and > > y unit > chart for more specific scaling. > > Lowlevel-scale doesn’t seem to have an effect, adjusting y units may prove > more > useful. Hmm, this seemed to work fine, but I now notice it does not really do what I intended. I'll have to look at it again. > > Unfortunately, if you have sub-day effort estimates, this will currently > > not be > displayed correctly, as the start and end shift is computed based on days. I > should > probably look into that. > > Supporting weeks is difficult, as pgf-gantt does not natively support them > > for > compression, only for title calendar. > > This is probably something that should be addressed in pgfgantt. > A flight to Alpha Centauri takes about 1600 days.[1] > If you assume 5 mm per day that would still need 8 m of wallpaper (and a > larger > office). > I probably wouldn’t care about sub-day efforts in this case. > Emptying the litter box will be a checkpoint item, not a scheduled task. This was just a warning about the current state. Correctly computing the offset for compressed calendars (so that the offset displays the day) should not be difficult. > > >> I'm not sure about inheritance: > >> If I have a deadline for a task, should the subtasks inherit that deadline > >> unless > an > >> explicit deadline is given? > >> If I have a deadline for a task and efforts for all subtasks, should the > >> task > inherit > >> that effort? > >> > >> That way I can give a deadline to the task and estimate efforts to get an > >> initial > >> chart. > >> Using this chart I can divide the subtasks between workers, rearrange the > >> deadlines for the subtasks and finally define a scheduled date for the main > task. > > > > This works for ordered subheadlines. Deadlines are propagated downwards, if > the subheadlines are ordered. > > If the subheadlines are not ordered, deadlines are only propagated upwards, > > as > it is not clear which task(s) should inherit the deadline. > > So you can set a deadline to the (last) subtask, and it will be propagated > > to its > super task. > > The last (as in time, not position in file) deadline will be promoted to the > super > task, right? > That way I can keep an „Integration of Submodules“ task and deadline that. Yes, the last deadline (and the first schedule) of any task is promoted to the super task, if the supertask does not have a deadline/schedule itself. But I don't understand why you would need an Integration task with a deadline, you can just deadline the supertask itself. > >> This gives me another idea: > >> Filter / color by tag. > >> Print only tasks tagged :Axel: to show my workload, and print tasks tagged > >> :Sam_One: to show tasks I have delegated. > > Isn't this already doable by using sparse trees? > > Can I build a gantt chart from a sparse tree? > The sparse tree shows me what is assigned to whom. > What I want to see is the effort and the time the effort is scheduled. > > This is probably too much to ask since org is more personal manager and not a > project planer. The comment about sparse trees was not quite well thought out from my side. I will have to look at it again. There are now some options for tags (:use-tags :ignore-tags :tags-bar-style and :tags-group-style) that does all of this, but tags are not yet correctly promoted to subheadlines, so it does not really work correctly, atm. You can use :tags-bar-style and :tags-group-style, which is an alist of ("tagname" . "style") conses, that styles headlines with tags for groups and bars. The current ganttexperiment.org has an example. I will probably not be able to work on this any further until the end of the week. Regards, Bernhard
Re: [O] resize table in latex
Thanks very much for your reply. The proposed method in this reply won’t work. It needs to be in the following structure where this line “\scriptsize{\resizebox{\textwidth}{!}{“ is after “\begin{table}[htb]” and immediately before “\begin{tabular}{rr}”. I don’t know how to achieve that in the org syntax. \begin{table}[htb] \caption[caption]{\label{tablelabel} caption} \centering \scriptsize{\resizebox{\textwidth}{!}{ \begin{tabular}{rr} 1 & 4 \\ \end{tabular} }} \end{table} Thanks, Zhihao > On 1 Jun 2015, at 17:35, Suvayu Ali wrote: > > On Mon, Jun 01, 2015 at 10:51:24AM +, Zhihao Ding wrote: >> Hi there, >> >> I am trying to find a way to automatically resize tables >> in the latex output. >> >> When doing slides in beamer, I use this to resize tables >> to fit in a frame >> >> #+LaTeX: \scriptsize{\resizebox{\textwidth}{!}{ >> | . | . | >> #+LaTeX: }} >> >> While when writing reports, I use the following instead >> as I need to cross reference it by the name >> >> #+CAPTION: table caption >> #+NAME: table:label >> | . | . | >> >> then I loose the resize facility. How could I combine >> the two? I tried to fiddle with >> #+ATTR_LATEX but didn’t mange to make it work. > > I don't follow. Why do you say you lose the facility? The following: > > #+LaTeX: \scriptsize{\resizebox{\textwidth}{!}{ > #+CAPTION: table caption > #+NAME: table:label > | . | . | > | . | . | > #+LaTeX: }} > > exports as: > > \scriptsize{\resizebox{\textwidth}{!}{ > \begin{table}[htb] > \caption{\label{tab:orgtable1} > table caption} > \centering > \begin{tabular}{ll} > . & .\\ > . & .\\ > \end{tabular} > \end{table} > }} > > Isn't that exactly what you want? > > -- > Suvayu > > Open source is the future. It sets us free.
Re: [O] resize table in latex
On Tue, Jun 02, 2015 at 08:43:07AM +, Zhihao Ding wrote: > Thanks very much for your reply. The proposed method > in this reply won’t work. It needs to be in the following > structure where this line > > “\scriptsize{\resizebox{\textwidth}{!}{“ > > is after “\begin{table}[htb]” and immediately before > “\begin{tabular}{rr}”. Why is that? Is it because table is a float? You could try repurposing the :caption attribute. See: (info "(org) LaTeX specific attributes") Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] Testers / Feedback wanted: Gantt charts via org-gantt.el
On Saturday, 30 May 2015 at 11:33, Bernhard Schmitz wrote: > Hi, > > my org-gantt.el is now in a usable state. Thanks for this. I've had a play with it. I like it and it's quite likely I'll be using it in anger soon so you'll probably hear from me again! The only comments I have at the moment is that it is missing support for milestones and all of my GANTT charts have such and that I would like to be able to link tasks across headlines (i.e. groups). Can I suggest a :milestone: tag or MILESTONE property for the former and a LINKED-TO or similar for the latter? Thanks again, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-1195-g1a7364
[O] No ODT Export
I'm using Org 8.2.4. "C-c C-e" does not offer any ODT export. Where should I start looking to solve this?
Re: [O] Link-checker for Org-mode
Nicolas Goaziou nicolasgoaziou.fr> writes: > Org Lint does that already. Please provide a link. Searching was not helpful.
Re: [O] orgmode to markdown
Hello Nicolas El lun, 01-06-2015 a las 00:12 +0200, Nicolas Goaziou escribió: > Hello, > > flow writes: > > > I would like to ask you about how org-mode exports title and headlines > > to markdow > > > > org-mode to markdown doesn't export title as md heading one # and > > org-mode heading one as heading one but heading two > > > > I think it should work as org-mode to html: > > > > org-mode title to md heading one # > > org-mode heading one * to md heading two (##) > > > > What do you think about it? > > "ox-md" supports Setext-type headlines, which are limited to 2 levels. > Using a title as the first level leaves only one level for regular > headlines. I guessed setext support 6 levels so I don't know why ox-md supprot just 2 levels although my exporter seems to support 3 levels. Why? That's a good question but not what I wanted to know. What I want -and I would like to know whay ox-md doesn't- is to export org as org-mode to html does: - The title becomes h1, so the org title becomes # or ===, I don't mind - The * becomes h2, so the org * becomes ## or - The ** becomes h3, so the org ** becomes ### (in case it supports 3 leveles) - etc. What do you think about it? > Also, it doesn't solve the problem of author, date and email, which do > not appear either in the output. I think they are part of the same > problem: (vanilla) markdown has no real support for meta-data. I wasn't considering that it is very interesting though. However in the scenarios I would like to use widely orgmode to markdown it is not necessary metadata. > > Regards, Best -- "La tradición de los oprimidos nos enseña que la regla es el «estado de excepción» en el que vivimos." Walter Benjamin, Tesis de Filosofía de la historia signature.asc Description: This is a digitally signed message part
Re: [O] No ODT Export
SabreWolfy writes: > I'm using Org 8.2.4. "C-c C-e" does not offer any ODT export. Where should I > start looking to solve this? It's not included among export backends by default. Adding (add-to-list 'org-export-backends 'odt) should do the trick. Yours, Christian
Re: [O] Problems Setting Properties
It's at the beginning of my ~/.emacs init file. I've tried starting with --no-site-lisp and inhibit-default-init set to non-nil -- I get more org less the same backtrace (http://pastebin.com/HEgwdPPT). If it's any use to know, I'm getting these messages http://pastebin.com/xshMe0xz So I'm a bit stuck on how to make sure the other version of org isn't loaded on init. It came installed with Emacs if that's any use to know. Thanks, Ed On 01/06/15 16:30, Nicolas Goaziou wrote: Edward Guyatt writes: I've now got 8.3-BETA, as org-version confirms. I uninstalled the org-mode debian package and the ELPA package I tried, but org-mode was still installed from the Emacs debian package by the time I used git to get the 8.3-BETA. Hoping this won't cause any chaos? Anyway, I found my planner.org file and got an enormous backtrace on startup. Might be a bit big for a mailing list so here's a paste: http://pastebin.com/BwMk5epP It looks like a mixed install. You need to make sure that path to Org 8.3 is added at the very beginning of the init process. Regards,
Re: [O] resize table in latex
Thanks. This idea works, based on which I used the following in the end. #+NAME: tbl:lab #+ATTR_LATEX: :caption \caption[short]{\label{tbl:lab} long.} \scriptsize{\resizebox{\textwidth}{!} \centering It does’t look very org like but is good that it works. Thanks, Zhihao > On 2 Jun 2015, at 10:06, Suvayu Ali wrote: > > > > On Tue, Jun 02, 2015 at 08:43:07AM +, Zhihao Ding wrote: >> Thanks very much for your reply. The proposed method >> in this reply won’t work. It needs to be in the following >> structure where this line >> >> “\scriptsize{\resizebox{\textwidth}{!}{“ >> >> is after “\begin{table}[htb]” and immediately before >> “\begin{tabular}{rr}”. > > Why is that? Is it because table is a float? > > You could try repurposing the :caption attribute. See: > > (info "(org) LaTeX specific attributes") > > Hope this helps, > > -- > Suvayu > > Open source is the future. It sets us free.
Re: [O] No ODT Export
Christian Moe christianmoe.com> writes: > Adding > > (add-to-list 'org-export-backends 'odt) > > should do the trick. Something else must be wrong, as this gives me: "Symbol's value as variable is void: org-export-backends"
Re: [O] No ODT Export
SabreWolfy gmail.com> writes: > Something else must be wrong, as this gives me: > > "Symbol's value as variable is void: org-export-backends" This worked: http://lists.gnu.org/archive/html/emacs-orgmode/2013-05/msg00313.html
[O] Specifying ATTR_LATEX document wide?
Hi In one document, I would like to make two changes how images are inserted in LaTeX / pdf documents, namely: 1) have no re-sizing, i.e. , | \includegraphics[]{./output/fig_crossValidationDefaultByUA.pdf} ` instead of , | \includegraphics[width=.9\linewidth]{./output/fig_crossValidationDefaultByUA.pdf} ` and 2) have no floats, even if a caption is given or use the :placement [H] with the float package. According to [[info:org#LaTeX%20specific%20attributes][info:org#LaTeX specific attributes]] I can use #+ATTR_LATEX: :float nil or #+ATTR_LATEX: :placement [H] for (2), but I have no idea how I can do (1). Additionally: Is there a way of setting this globally fir the actual document (document header?), so that I don't have to add this line to all my hundred images (OK - only about 70 - but still to many)? Thanks, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug PGP: 0x0F52F982 signature.asc Description: PGP signature
[O] Bug: Property inheritance not working in columns [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]
Property inheritance does not seem to work when running C-c C-x C-c (org-columns). Reproduction recipe (I can also reproduce this on org-mode from the Git repository (reproduced with 1a7364177046... and it's also noted on http://emacs.stackexchange.com/questions/7335). 1. Start emacs with "emacs -Q" 2. Evaluate the following to enable property inheritance, and to define custom columns that include the value of the "PROJECT" property. (setq org-columns-default-format "%CATEGORY %15PROJECT(Project) %55ITEM(Task)") (setq org-use-property-inheritance t) 3. Load the following in to an org-mode buffer. * TODO Test :PROPERTIES: :CATEGORY: Cat. Name :PROJECT: Proj. Name :END: ** TODO A subtask This is a subtask ** TODO Another subtask This is another subtask 4. Run C-c C-x C-c in the buffer to enable org-columns. Expected result: A buffer that looks something like: CATEGORY | Project | Task Cat. Name | Proj. Name | * TODO Test Cat. Name | Proj. Name | ** TODO A subtask Cat. Name | Proj. Name | ** TODO Another subtask Actual result: A buffer where the "PROJECT" property has not been inherited, and looks like this: CATEGORY | Project | Task Cat. Name | Proj. Name | * TODO Test Cat. Name | | ** TODO A subtask Cat. Name | | ** TODO Another subtask Inspecting the value of the variable org-columns-default-format with M-x show-variable tells me: org-columns-default-format's value is "%CATEGORY %15PROJECT(Project) %55ITEM(Task)" Original value was "%25ITEM %TODO %3PRIORITY %TAGS" Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on lamiak, modified by Debian Package: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/) current state: == (setq org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-confirm-shell-link-function 'yes-or-no-p org-columns-default-format "%CATEGORY %15Project(Project) %55ITEM(Task)" org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-blocks '((src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) org-export-first-hook '(org-beamer-initialize-open-trackers) org-export-interblocks '((src org-babel-exp-non-block-elements)) org-use-property-inheritance t org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) )
Re: [O] Specifying ATTR_LATEX document wide?
On Tue, Jun 02, 2015 at 12:17:04PM +0200, Rainer M Krug wrote: > > Hi > > In one document, I would like to make two changes how images are > inserted in LaTeX / pdf documents, namely: > > 1) have no re-sizing, i.e. > > , > | \includegraphics[]{./output/fig_crossValidationDefaultByUA.pdf} > ` Does the following work equivalently for you? #+attr_LaTeX: :width \linewidth > Is there a way of setting this globally fir the actual document > (document header?), so that I don't have to add this line to all my > hundred images (OK - only about 70 - but still to many)? Maybe use babel blocks for this? Input files from a list or table, echo them back with a common #+attr_latex line? Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] searching for csv utilities
| Date | Sys | Dia | Pul | Sugar | |--+---+-+-+---| | [2014-04-27 Sun] | 125 | 88 | 78 |92 | | [2014-04-28 Mon] | 102 | 88 | 86 |92 | | Averages:| =$2=vmean(@<..@>) | | | | #+TBLFM: $2=$2=vmean(@<..@>) This is a cut down version of my full record set. Sometimes when I key formulas in I get ?ERROR back for a result after keying in c-c+c-c once I've completed the formula and hit tab. If I do c-u+c-c+c-c that sometimes generated ?ERROR. Other times I key in a formula and the cursor gets locked and I have to hit c-g to exit #+TBLFM: mode; I don't know what's actually happening when that situation arises since other than suddenly finding the cursor locked I can neither tell what state I'm in or if a few more keystrokes are needed or if I've generated an error situation. --
[O] Bug: sparse tree with date query fails [8.3beta (release_8.3beta-1275-gb94ef2 @ /usr/share/emacs/site-lisp/org/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. In an org file containing timestamps I tried to create a sparse tree with C-c / D and get an error message regarding eq having only one argument. C-c / b and C-c / a show the same behaviour. The culprit seems to be this line: + '(eq (org-element-type (org-element-context) 'timestamp)) from http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=c6d9a4ec22ff59928e05debeb27139270f293526 Emacs : GNU Emacs 24.5.1 (i686-pc-linux-gnu, GTK+ Version 3.16.2) of 2015-04-20 on sammy Package: Org-mode version 8.3beta (release_8.3beta-1275-gb94ef2 @ /usr/share/emacs/site-lisp/org/) -- Michael Strey http://www.strey.biz * https://twitter.com/michaelstrey
Re: [O] searching for csv utilities
Hello, On 2 June 2015 at 07:44, Jude DaShiell wrote: > | Date | Sys | Dia | Pul | Sugar | > |--+---+-+-+---| > | [2014-04-27 Sun] | 125 | 88 | 78 |92 | > | [2014-04-28 Mon] | 102 | 88 | 86 |92 | > | Averages:| =$2=vmean(@<..@>) | | | | > #+TBLFM: $2=$2=vmean(@<..@>) > The formula in question is the culprit in this case (at least as stated there). : $2=$2=vmean(@<..@>) Second column is equal to the second column which is equal to the mean of all the values in the second column (including the header "Sys"). If you change the table as follows: | Date | Sys | Dia | Pul | Sugar | |--+---+-+-+---| | [2014-04-27 Sun] | 125 | 88 | 78 |92 | | [2014-04-28 Mon] | 102 | 88 | 86 |92 | |--+---+-+-+---| | Averages:| 113.5 | 88 | 82 |92 | #+TBLFM: @>$2..@>$>=vmean(@I..@II) All the values will properly compute. If you want to avoid the second HLINE above Averages: then change =@II= to =@>>= (penultimate row) Regards, Jon > This is a cut down version of my full record set. Sometimes when I key > formulas in I get ?ERROR back for a result after keying in c-c+c-c once > I've completed the formula and hit tab. If I do c-u+c-c+c-c that sometimes > generated ?ERROR. Other times I key in a formula and the cursor gets > locked and I have to hit c-g to exit #+TBLFM: mode; I don't know what's > actually happening when that situation arises since other than suddenly > finding the cursor locked I can neither tell what state I'm in or if a few > more keystrokes are needed or if I've generated an error situation. > > -- > > >
Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib
Switch to an emacs that doesn't have this bug on your system. Try Homebrew-installed versions (although I know you aren't supposed to mix brew and macports, and I think you use macports). -k. On 2015-06-02 at 01:49, Dror Atariah wrote: > No ideas? Please, I really don't know how to tackle this. Thanks.
Re: [O] Bug: sparse tree with date query fails [8.3beta (release_8.3beta-1275-gb94ef2 @ /usr/share/emacs/site-lisp/org/)]
Hello, Michael Strey writes: > In an org file containing timestamps I tried to create a sparse tree > with C-c / D and get an error message regarding eq having only one > argument. C-c / b and C-c / a show the same behaviour. > > The culprit seems to be this line: > > + '(eq (org-element-type (org-element-context) 'timestamp)) > > from > > http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=c6d9a4ec22ff59928e05debeb27139270f293526 Fixed in 7b333c72493a66eac35d9246fb689b6f18cbd2e7. Thank you. Regards, -- Nicolas Goaziou
Re: [O] Specifying ATTR_LATEX document wide?
Hello, Rainer M Krug writes: > In one document, I would like to make two changes how images are > inserted in LaTeX / pdf documents, namely: > > 1) have no re-sizing, i.e. > > , > | \includegraphics[]{./output/fig_crossValidationDefaultByUA.pdf} > ` > > instead of > > , > | > \includegraphics[width=.9\linewidth]{./output/fig_crossValidationDefaultByUA.pdf} > ` #+BIND: org-latex-image-default-width "" > and > > 2) have no floats, even if a caption is given or use the :placement [H] > with the float package. > > According to > [[info:org#LaTeX%20specific%20attributes][info:org#LaTeX specific attributes]] > I can use > > #+ATTR_LATEX: :float nil > > or > > #+ATTR_LATEX: :placement [H] #+BIND: org-latex-default-figure-position "H" Of course, this assumes, `org-export-allow-bind-keywords' is non-nil. Regards, -- Nicolas Goaziou
[O] [BUG] Bad escape with Babel + org-mode
Hi, I've encountered a bug when using org-mode in source blocks. I'm using the latest version of org-mode from git: Org-mode version 8.3beta (release_8.3beta-1195-g1a7364 [...]) I have no problem with the following snippet: #+BEGIN_SRC org ,* test 1 ,* test 2 ,* test 3 ,* test 4 ,* test 5 ,* test 6 ,* test 7 ,* test 8 ,* test 9 ,* test 10 #+END_SRC But I have an error with this one when I hit C-' to go back to my org file: error in `org-escape-code-in-region'> while: Invalid search bound (wrong side of point) #+BEGIN_SRC org ,* test 1 ,* test 2 ,* test 3 ,* test 4 ,* test 5 ,* test 6 ,* test 7 ,* test 8 ,* test 9 ,* test 10 ,* test 11 #+END_SRC And with the following snippet: #+BEGIN_SRC org ,* test 1 ,* test 2 ,* test 3 ,* test 4 ,* test 5 ,* test 6 ,* test 7 ,* test 8 ,* test 9 ,* test 10 ,* test 11 ,* test 12 #+END_SRC When I hit C-' to go back to the org file the block isn't properly escaped, it becomes: #+BEGIN_SRC org ,* test 1 ,* test 2 ,* test 3 ,* test 4 ,* test 5 ,* test 6 ,* test 7 ,* test 8 ,* test 9 ,* test 10 ,* test 11 * test 12 #+END_SRC I've tried to understand what's the problem and it looks like the position returned by `re-search-forward' in `org-escape-code-in-region' is wrong, but I don't know why. By wrong, I mean that the position returned isn't immediately after the expression found but slightly after, and the error increases which is why it doesn't fail with 10 items or less. e.g. * test 1 ^ point * test 2 ^ point * test 3 ^ point ... Best, -- Daimrod/Greg signature.asc Description: PGP signature
Re: [O] Bug: Property inheritance not working in columns [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]
Hello, Nik Clayton writes: > Property inheritance does not seem to work when running C-c C-x C-c > (org-columns). > > Reproduction recipe (I can also reproduce this on org-mode from the Git > repository > (reproduced with 1a7364177046... and it's also noted on > http://emacs.stackexchange.com/questions/7335). > > > 1. Start emacs with "emacs -Q" > > 2. Evaluate the following to enable property inheritance, and to define > custom columns that include the value of the "PROJECT" property. > > (setq org-columns-default-format > "%CATEGORY %15PROJECT(Project) %55ITEM(Task)") > > (setq org-use-property-inheritance t) > > 3. Load the following in to an org-mode buffer. > > * TODO Test > :PROPERTIES: > :CATEGORY: Cat. Name > :PROJECT: Proj. Name > :END: > > ** TODO A subtask >This is a subtask > > ** TODO Another subtask >This is another subtask > > > 4. Run C-c C-x C-c in the buffer to enable org-columns. > > > Expected result: > > A buffer that looks something like: > > CATEGORY | Project | Task > Cat. Name | Proj. Name | * TODO Test > Cat. Name | Proj. Name | ** TODO A subtask > Cat. Name | Proj. Name | ** TODO Another subtask > > > Actual result: > > A buffer where the "PROJECT" property has not been inherited, and looks > like this: > > CATEGORY | Project | Task > Cat. Name | Proj. Name | * TODO Test > Cat. Name | | ** TODO A subtask > Cat. Name | | ** TODO Another subtask > > > Inspecting the value of the variable org-columns-default-format with > M-x show-variable tells me: > > org-columns-default-format's value is > "%CATEGORY %15PROJECT(Project) %55ITEM(Task)" > Original value was > "%25ITEM %TODO %3PRIORITY %TAGS" Fixed in 0f93638ce1b29792033231426a4555e538f5c959. Thank you. Regards, -- Nicolas Goaziou
Re: [O] Link-checker for Org-mode
Hi SabreWolfy, * SabreWolfy [02. Jun. 2015]: > Nicolas Goaziou nicolasgoaziou.fr> writes: > >> Org Lint does that already. > > Please provide a link. Searching was not helpful. http://orgmode.org/cgit.cgi/org-mode.git/log/?h=wip-lint this is to the git repository Ciao, Gregor -- -... --- .-. . -.. ..--.. ...-.-
Re: [O] [BUG] Bad escape with Babel + org-mode
Hello, Daimrod writes: > I've encountered a bug when using org-mode in source blocks. I'm using > the latest version of org-mode from git: > Org-mode version 8.3beta (release_8.3beta-1195-g1a7364 [...]) > > I have no problem with the following snippet: > #+BEGIN_SRC org > ,* test 1 > ,* test 2 > ,* test 3 > ,* test 4 > ,* test 5 > ,* test 6 > ,* test 7 > ,* test 8 > ,* test 9 > ,* test 10 > > #+END_SRC > > But I have an error with this one when I hit C-' to go back to my org > file: > > error in `org-escape-code-in-region'> while: Invalid search bound (wrong side > of point) > #+BEGIN_SRC org > ,* test 1 > ,* test 2 > ,* test 3 > ,* test 4 > ,* test 5 > ,* test 6 > ,* test 7 > ,* test 8 > ,* test 9 > ,* test 10 > ,* test 11 > > #+END_SRC > > And with the following snippet: > #+BEGIN_SRC org > ,* test 1 > ,* test 2 > ,* test 3 > ,* test 4 > ,* test 5 > ,* test 6 > ,* test 7 > ,* test 8 > ,* test 9 > ,* test 10 > ,* test 11 > ,* test 12 > #+END_SRC > > When I hit C-' to go back to the org file the block isn't properly > escaped, it becomes: > > #+BEGIN_SRC org > ,* test 1 > ,* test 2 > ,* test 3 > ,* test 4 > ,* test 5 > ,* test 6 > ,* test 7 > ,* test 8 > ,* test 9 > ,* test 10 > ,* test 11 > * test 12 > #+END_SRC Fixed in f91d194d4fe4644de9cac94a807a08c220ab521d. Thank you. Regards, -- Nicolas Goaziou
Re: [O] Bug: Property inheritance not working in columns [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]
Hi Nicolas, On 2 June 2015 at 16:06, Nicolas Goaziou wrote: > Fixed in 0f93638ce1b29792033231426a4555e538f5c959. Thank you. > That was quick, thanks. I also see the same problem in agenda view (org-agenda-columns) N -- http://try-dot-ch.blogspot.com/
Re: [O] [BUG] Bad escape with Babel + org-mode
Nicolas Goaziou writes: > Hello, > > Daimrod writes: > >> I've encountered a bug when using org-mode in source blocks. I'm using >> the latest version of org-mode from git: >> Org-mode version 8.3beta (release_8.3beta-1195-g1a7364 [...]) >> >> I have no problem with the following snippet: >> #+BEGIN_SRC org >> ,* test 1 >> ,* test 2 >> ,* test 3 >> ,* test 4 >> ,* test 5 >> ,* test 6 >> ,* test 7 >> ,* test 8 >> ,* test 9 >> ,* test 10 >> >> #+END_SRC >> >> But I have an error with this one when I hit C-' to go back to my org >> file: >> >> error in `org-escape-code-in-region'> while: Invalid search bound (wrong >> side of point) >> #+BEGIN_SRC org >> ,* test 1 >> ,* test 2 >> ,* test 3 >> ,* test 4 >> ,* test 5 >> ,* test 6 >> ,* test 7 >> ,* test 8 >> ,* test 9 >> ,* test 10 >> ,* test 11 >> >> #+END_SRC >> >> And with the following snippet: >> #+BEGIN_SRC org >> ,* test 1 >> ,* test 2 >> ,* test 3 >> ,* test 4 >> ,* test 5 >> ,* test 6 >> ,* test 7 >> ,* test 8 >> ,* test 9 >> ,* test 10 >> ,* test 11 >> ,* test 12 >> #+END_SRC >> >> When I hit C-' to go back to the org file the block isn't properly >> escaped, it becomes: >> >> #+BEGIN_SRC org >> ,* test 1 >> ,* test 2 >> ,* test 3 >> ,* test 4 >> ,* test 5 >> ,* test 6 >> ,* test 7 >> ,* test 8 >> ,* test 9 >> ,* test 10 >> ,* test 11 >> * test 12 >> #+END_SRC > > Fixed in f91d194d4fe4644de9cac94a807a08c220ab521d. Thank you. Confirmed. Thanks ! > Regards, -- Daimrod/Greg signature.asc Description: PGP signature
[O] Possible cache problems
Hi, I have been noticing a strange heisenbug. From time to time, Org starts eating CPU for certain specific tasks: org-end-of-line, fill-paragraph, folding or unfolding trees, or adding/changing properties with org-set-property. However these happen only after I have been using Org for a while. I think I also see similar CPU eating symptoms when I have buffers editing version controlled files. I have auto-revert-mode enabled for files under version control, I think that is related. I'm not entirely sure though, I don't know how to narrow it down either. I say it is cache related since all this magically goes away, once I go to the top of my current tree, and call org-element-cache-reset. However, once the symptoms start showing, it happens more frequently despite my cache resets. It's very hard to reproduce this though. I see it when I have been using the same Emacs session over several days. I always run emacs as a daemon, so sessions lasting a week or more is quite common. To see the symptoms I have to wait about half a week to a whole week, hence the hard to reproduce comment. However, once the symptoms show, it gets bad rather fast. I end up restarting when the need to reset the cache gets too frequent. Any thoughts? Thanks, -- Suvayu Open source is the future. It sets us free.
Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib
I already tried three version: macports, build from sources and the bundled version. All have this problem. So, I guess it has to do with the way emacs interacts with my Python, but I don't know how to debug it. Is there no one here that is a python/orgmode ninja that can give me a hand here? Thanks. Dror On Tue, Jun 2, 2015 at 2:21 PM, Ken Mankoff wrote: > > Switch to an emacs that doesn't have this bug on your system. Try > Homebrew-installed versions (although I know you aren't supposed to mix > brew and macports, and I think you use macports). > > -k. > > On 2015-06-02 at 01:49, Dror Atariah wrote: > > No ideas? Please, I really don't know how to tackle this. Thanks. > > -- Dror Atariah, Ph.D. de.linkedin.com/in/atariah
[O] Bug: Export fails [8.2.10 (8.2.10-41-g42228a-elpa @ /home/USERNAME/.emacs.d/elpa/org-20150601/)]
Steps to reproduce: - Create a file "file.org" with the content "* a" - In that file buffer, type C-x C-e h h Expected: - File "file.html" is created by the html exporter. Actual: - A message is shown: "Invalid function: org-with-wide-buffer" Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on lamiak, modified by Debian Package: Org-mode version 8.2.10 (8.2.10-41-g42228a-elpa @ /home/USERNAME/.emacs.d/elpa/org-20150601/) current state: == (setq org-hide-leading-stars t org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-support-shift-select t org-latex-format-headline-function 'org-latex-format-headline-default-function org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-from-is-user-regexp "\\" org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(er/add-org-mode-expansions #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] (lambda nil (org-add-hook (quote change-major-mode-hook) (quote org-babel-show-result-all) (quote append) (quote local))) org-babel-result-hide-spec org-babel-hide-all-hashes turn-on-font-lock) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-agenda-use-time-grid nil org-cycle-open-archived-trees t org-todo-keywords '((sequence "✧" "✦" "|" "✓" "➔" "✗")) org-agenda-skip-archived-trees nil org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-html-format-headline-function 'ignore org-html-format-inlinetask-function 'ignore org-agenda-files '("~/AGENDAFOLDER/") org-clock-out-hook '(org-clock-remove-empty-clock-drawer) )
[O] Bug: Property inheritance not working in columns [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]
Property inheritance does not seem to work when running C-c C-x C-c (org-columns). Reproduction recipe: 1. Start emacs with "emacs -Q" 2. Evaluate the following to enable property inheritance, and to define custom columns that include the value of the "PROJECT" property. (setq org-columns-default-format "%CATEGORY %15PROJECT(Project) %55ITEM(Task)") (setq org-use-property-inheritance t) 3. Load the following in to an org-mode buffer. * TODO Test :PROPERTIES: :CATEGORY: Cat. Name :PROJECT: Proj. Name :END: ** TODO A subtask This is a subtask ** TODO Another subtask This is another subtask 4. Run C-c C-x C-c in the buffer to enable org-columns. Expected result: A buffer that looks something like: CATEGORY | Project | Task Cat. Name | Proj. Name | * TODO Test Cat. Name | Proj. Name | ** TODO A subtask Cat. Name | Proj. Name | ** TODO Another subtask Actual result: A buffer where the "PROJECT" property has not been inherited, and looks like this: CATEGORY | Project | Task Cat. Name | Proj. Name | * TODO Test Cat. Name | | ** TODO A subtask Cat. Name | | ** TODO Another subtask Inspecting the value of the variable org-columns-default-format with M-x show-variable tells me: org-columns-default-format's value is "%CATEGORY %15PROJECT(Project) %55ITEM(Task)" Original value was "%25ITEM %TODO %3PRIORITY %TAGS" I can also reproduce this on org-mode from the Git repository (reproduced with 1a7364177046...) and it's also noted on http://emacs.stackexchange.com/questions/7335. Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on lamiak, modified by Debian Package: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/) current state: == (setq org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-confirm-shell-link-function 'yes-or-no-p org-columns-default-format "%CATEGORY %15Project(Project) %55ITEM(Task)" org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-blocks '((src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) org-export-first-hook '(org-beamer-initialize-open-trackers) org-export-interblocks '((src org-babel-exp-non-block-elements)) org-use-property-inheritance t org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) ) -- http://try-dot-ch.blogspot.com/
Re: [O] Bug: Property inheritance not working in columns [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]
Nik Clayton writes: > I also see the same problem in agenda view (org-agenda-columns) Fixed in 03936a50f4fe9a261577d467098ed1080c61cb6e. Thank you. Regards,
Re: [O] Bug: Export fails [8.2.10 (8.2.10-41-g42228a-elpa @ /home/USERNAME/.emacs.d/elpa/org-20150601/)]
Hello, meingbg writes: > Steps to reproduce: > - Create a file "file.org" with the content "* a" > - In that file buffer, type C-x C-e h h > > Expected: > - File "file.html" is created by the html exporter. > > Actual: > - A message is shown: "Invalid function: org-with-wide-buffer" It looks suspicious. Could you verify your Org installation? Also, could you show a full backtrace? Regards, -- Nicolas Goaziou
Re: [O] Possible cache problems
Hello, Suvayu Ali writes: > I have been noticing a strange heisenbug. From time to time, Org starts > eating CPU for certain specific tasks: org-end-of-line, fill-paragraph, > folding or unfolding trees, or adding/changing properties with > org-set-property. However these happen only after I have been using Org > for a while. This is typical for cache breakage. > I think I also see similar CPU eating symptoms when I have buffers > editing version controlled files. I have auto-revert-mode enabled for > files under version control, I think that is related. I'm not entirely > sure though, I don't know how to narrow it down either. > > I say it is cache related since all this magically goes away, once I go > to the top of my current tree, and call org-element-cache-reset. > However, once the symptoms start showing, it happens more frequently > despite my cache resets. Usually, a cache breakage is a specific action applied to some specific document structure that induces an incorrect computation of the parts of the cache to clear and to update. If you encountered the problem, it means the problematic document structure is already in the current buffer. So, the chances are high that you will repeat the problematic editing action on it again, even after resetting the cache. IOW, all the ingredients are there for the problem to repeat again and again. Finding the problematic action is not easy. I wrote a basic minor mode (element-debug-mode) for that: after each change to the buffer, it checks if the cache and pending updates match the parse tree. It sends a message anytime they differ, which happens as soon as a problematic action was triggered. Obviously, it is unusable if the buffer is not small. You may want to try it on small parts of your document, repeating your usual editing actions. --8<---cut here---start->8--- (defun element-check-cache (&rest ignore) (when (org-element--cache-active-p) (save-match-data (let ((cache (copy-tree org-element--cache t)) (requests (copy-tree org-element--cache-sync-requests t)) (buffer-contents (org-with-wide-buffer (buffer-string))) (translations (make-hash-table :test #'eq)) (structures (make-hash-table :test #'eq)) (keys (make-hash-table :test #'eq))) ;; Fix parents. (loop for key in (avl-tree-flatten org-element--cache) for value in (avl-tree-flatten cache) do (let ((struct (and (memq (org-element-type key) '(plain-list item)) (gethash (org-element-property :structure key) structures 'missing (progn (puthash key value translations) (let ((k (gethash key org-element--cache-sync-keys))) (when k (puthash value k keys))) (puthash key (org-element-put-property value :parent (gethash (org-element-property :parent key) translations)) translations) (when (eq struct 'missing) (setq struct (puthash (org-element-property :structure key) (org-element-property :structure value) structures))) (when struct (puthash key (org-element-put-property value :structure struct) translations) ;; Fix requests. (loop for original in org-element--cache-sync-requests for copy in requests do (progn (aset copy 4 (gethash (aref original 4) translations)) (aset copy 5 (gethash (aref original 5) translations (with-temp-buffer (let ((org-element-use-cache nil)) (insert buffer-contents)) (let ((org-inhibit-startup t)) (org-mode)) (setq org-element--cache cache org-element--cache-sync-requests requests org-element--cache-sync-keys keys) (org-element--cache-sync (current-buffer) (point-max)) (let ((seen '())) (avl-tree-mapc (lambda (element) (let ((beg (org-element-property :begin element)) (type (org-element-type element))) (let ((real (let (org-element-use-cache) (goto-char (if (memq type '(item table-row)) (1+ beg) beg)) (org-element-at-point (cond ((member real seen) (message
Re: [O] [PATCH] org-timer.el: Use hh:mm:ss format instead of minutes
Sorry for the long delayed response. Here is that version of this patch, at least I hope it is. Yes I signed the papers, my number is #1011602. 2015-05-07 22:09 GMT+02:00 Nicolas Goaziou : > Brice Waegenire writes: > >> Thanks for help on this! >> Here is the last version of the patch taking into account all of your >> comments. > > Thank you. > >>(read-from-minibuffer >> - "How many minutes left? " >> - (if (not (eq org-timer-default-timer 0)) >> - (number-to-string org-timer-default-timer)) >> + "How much time left? (minutes or h:mm:ss) " >> + (when (not (string-equal org-timer-default-timer "0")) > > Nitpick: `unless' > >> + (eval org-timer-default-timer)) > > Since `org-timer-default-timer' is a string, there's no need to eval it. > > BTW, did you sign FSF papers already? If not, you need to add TINYCHANGE > to the end of the commit message. > > > Regards, From b4b22ce174dd8e1aca7de8a9c7029a6ce3f6dbd1 Mon Sep 17 00:00:00 2001 From: Brice Waegeneire Date: Tue, 2 Jun 2015 22:49:38 +0200 Subject: [PATCH] org-timer.el: hh:mm:ss format for setting a timer * lisp/org-timer.el (org-timer-set-timer): Add support for hh:mm:ss format. (org-timer-default-timer): Type changed from number to string. * testing/lisp/test-org-timer.el (test-org-timer/set-timer): Add hh:mm:ss format in the test. --- lisp/org-timer.el | 28 +++- testing/lisp/test-org-timer.el | 8 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/lisp/org-timer.el b/lisp/org-timer.el index 0593573..d20812f 100644 --- a/lisp/org-timer.el +++ b/lisp/org-timer.el @@ -65,12 +65,13 @@ the value of the timer." :group 'org-time :type 'string) -(defcustom org-timer-default-timer 0 - "The default timer when a timer is set. +(defcustom org-timer-default-timer "0" + "The default timer when a timer is set, in minutes or hh:mm:ss format. When 0, the user is prompted for a value." :group 'org-time - :version "24.1" - :type 'number) + :version "25.1" + :package-version '(Org . "8.3") + :type 'string) (defcustom org-timer-display 'mode-line "When a timer is running, org-mode can display it in the mode @@ -402,14 +403,14 @@ VALUE can be `on', `off', or `pause'." ;;;###autoload (defun org-timer-set-timer (&optional opt) - "Prompt for a duration and set a timer. + "Prompt for a duration in minutes or hh:mm:ss and set a timer. If `org-timer-default-timer' is not zero, suggest this value as the default duration for the timer. If a timer is already set, prompt the user if she wants to replace it. Called with a numeric prefix argument, use this numeric value as -the duration of the timer. +the duration of the timer in minutes. Called with a `C-u' prefix arguments, use `org-timer-default-timer' without prompting the user for a duration. @@ -430,16 +431,17 @@ using three `C-u' prefix arguments." effort-minutes (number-to-string effort-minutes)) (and (numberp opt) (number-to-string opt)) - (and (listp opt) (not (null opt)) - (number-to-string org-timer-default-timer)) + (and (consp opt) org-timer-default-timer) + (and (stringp opt) opt) (read-from-minibuffer - "How many minutes left? " - (if (not (eq org-timer-default-timer 0)) - (number-to-string org-timer-default-timer)) + "How much time left? (minutes or h:mm:ss) " + (unless (not (string-equal org-timer-default-timer "0")) + (org-timer-default-timer)) +(when (string-match "\\`[0-9]+\\'" minutes) + (setq minutes (concat minutes ":00"))) (if (not (string-match "[0-9]+" minutes)) (org-timer-show-remaining-time) - (let* ((mins (string-to-number (match-string 0 minutes))) - (secs (* mins 60)) + (let ((secs (org-timer-hms-to-secs (org-timer-fix-incomplete minutes))) (hl (org-timer--get-timer-title))) (if (or (not org-timer-countdown-timer) (equal opt '(16)) diff --git a/testing/lisp/test-org-timer.el b/testing/lisp/test-org-timer.el index 7164a5d..8abbb85 100644 --- a/testing/lisp/test-org-timer.el +++ b/testing/lisp/test-org-timer.el @@ -178,6 +178,14 @@ Also, mute output from `message'." (org-timer-set-timer 10)) (test-org-timer/with-current-time test-org-timer/time1 (org-timer)) + (org-trim (buffer-string) + (should + (equal "0:00:04" + (test-org-timer/with-temp-text "" + (test-org-timer/with-current-time test-org-timer/time0 + (org-timer-set-timer "3:30")) + (test-org-timer/with-current-time test-org-timer/time1 + (org-timer)) (org-trim (buffer-string)) (ert-deftest test-org-timer/pause-timer () -- 2.4.2
Re: [O] Possible cache problems
Hi Nicolas, On Tue, Jun 02, 2015 at 10:26:54PM +0200, Nicolas Goaziou wrote: > Hello, > > Suvayu Ali writes: > > > I have been noticing a strange heisenbug. From time to time, Org starts > > eating CPU for certain specific tasks: org-end-of-line, fill-paragraph, > > folding or unfolding trees, or adding/changing properties with > > org-set-property. However these happen only after I have been using Org > > for a while. > > This is typical for cache breakage. Okay, good that it is not as mysterious as I was thinking :). > > I think I also see similar CPU eating symptoms when I have buffers > > editing version controlled files. I have auto-revert-mode enabled for > > files under version control, I think that is related. I'm not entirely > > sure though, I don't know how to narrow it down either. > > > > I say it is cache related since all this magically goes away, once I go > > to the top of my current tree, and call org-element-cache-reset. > > However, once the symptoms start showing, it happens more frequently > > despite my cache resets. > > Usually, a cache breakage is a specific action applied to some specific > document structure that induces an incorrect computation of the parts of > the cache to clear and to update. > > If you encountered the problem, it means the problematic document > structure is already in the current buffer. So, the chances are high > that you will repeat the problematic editing action on it again, even > after resetting the cache. IOW, all the ingredients are there for the > problem to repeat again and again. > > Finding the problematic action is not easy. I wrote a basic minor mode > (element-debug-mode) for that: after each change to the buffer, it > checks if the cache and pending updates match the parse tree. It sends > a message anytime they differ, which happens as soon as a problematic > action was triggered. I have enabled the mode on my document. Let's see how this goes. Btw, since you warn against large documents, would it help if I narrowed a large document before enabling the mode? Thanks a lot :). -- Suvayu Open source is the future. It sets us free.
Re: [O] [PATCH] org-timer.el: Use hh:mm:ss format instead of minutes
Brice Waegenire writes: > Here is that version of this patch, at least I hope it is. Applied, Thank you. Would you mind preparing an entry in ORG-NEWS? Regards,
Re: [O] Possible cache problems
Suvayu Ali writes: > I have enabled the mode on my document. Let's see how this goes. OK. You have to keep an eye on the *Messages* buffer so that warning don't go unnoticed. > Btw, since you warn against large documents, would it help if > I narrowed a large document before enabling the mode? It wouldn't: cache ignores narrowing anyway. Regards,
Re: [O] Possible cache problems
On Tue, Jun 02, 2015 at 11:27:55PM +0200, Nicolas Goaziou wrote: > Suvayu Ali writes: > > > Btw, since you warn against large documents, would it help if > > I narrowed a large document before enabling the mode? > > It wouldn't: cache ignores narrowing anyway. Okay thanks :) -- Suvayu Open source is the future. It sets us free.
Re: [O] Bug: Export fails [8.2.10 (8.2.10-41-g42228a-elpa @ /home/USERNAME/.emacs.d/elpa/org-20150601/)]
On Tue, Jun 2, 2015 at 10:05 PM, Nicolas Goaziou wrote: > Hello, > > meingbg writes: > > > Steps to reproduce: > > - Create a file "file.org" with the content "* a" > > - In that file buffer, type C-x C-e h h > > > > Expected: > > - File "file.html" is created by the html exporter. > > > > Actual: > > - A message is shown: "Invalid function: org-with-wide-buffer" > > It looks suspicious. Could you verify your Org installation? Also, could > you show a full backtrace? > > > Regards, > > -- > Nicolas Goaziou > "Bug" died after restarting emacs, which I hadn't done after org-mode installation. Sorry.
[O] Links in #+caption: lines
Aloha all, Links in #+caption: lines are shown as literal links. IIRC, they used to show as descriptive links. Has this changed, or is my memory faulty? In any case, I'd like them to be descriptive links to keep the #+caption: lines as short as possible. All the best, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com