Re: [O] lisp/org-clock.el: Add param :properties to list properties in clocktable
Hi Carsten, thanks for merging, but today, pulling origin master (from git://orgmode.org/org-mode.git) to start work on such a tutorial checkout the new documentation, I did not see the patch applied. Should be somewhere near 5 days ago on http://orgmode.org/w/org-mode.git. Am I missing something here? Regards, Niels. On Fri, May 13, 2011 at 2:20 PM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Niels, I have merged your patch thanks. A tutorial on Worg for your use case would be really helpful. - Carsten On May 13, 2011, at 10:00 AM, Niels Giesen wrote: Carsten Dominik carsten.domi...@gmail.com writes: Dear Niels, I am confused by the three patch pieces applied to the same file. Hi Carsten. Sorry for the confusion; I thought atomic commits were the proper thing to do, but apparently they are not. Can you please resubmit, with a single patch, and a proper changelog-like entry? I hope my current attachment is in the appropriate form. 0001-org-clock-Implement-columns-of-arbitrary-properties.patch Thanks. - Carsten On Mar 26, 2011, at 9:29 PM, Niels Giesen wrote: Here are a few patches to add property columns in clocktables. These allow me e.g. to freely set different cost centers which is wanted @ my work, and also possibly small descriptions. It is generically set up so I reckon other people may find use in this too. The patches together add two parameters to the dynamic block line: : :properties (prop-this prop-other) :inherit-props t The property columns will be added at the left side of the existing columns; I did experiment with adding them to the right, but because of the variable number of levels (being defined both by :maxlevel and the actual number of found levels), that did not work out well. I used the parameter =:inherit-props= to set inheritance for properties, as I have learned in the past that =org-use-property-inheritance= should be used very sparingly. #+begin_src diff From 20346cf661e2b9ba0b4a66b705809e6100d9e8e0 Mon Sep 17 00:00:00 2001 From: Niels Giesen niels.gie...@gmail.com Date: Sat, 26 Mar 2011 10:19:08 +0100 Subject: [PATCH 1/3] org-clock: Add properties param handling to `org-clock-get-table-data' This param should be a list of strings referring to properties. Those properties will be returned in an alist when found in an entry. --- lisp/org-clock.el | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index c567a26..df096d1 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1,6 +1,6 @@ ;;; org-clock.el --- The time clocking code for Org-mode -;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 +;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 ;; Free Software Foundation, Inc. ;; Author: Carsten Dominik carsten at orgmode dot org @@ -2335,6 +2335,7 @@ TIME: The sum of all time spend in this tree, in minutes. This time (block (plist-get params :block)) (link (plist-get params :link)) (tags (plist-get params :tags)) + (properties (plist-get params :properties)) (matcher (if tags (cdr (org-make-tags-matcher tags cc range-text st p time level hdl props tsp tbl) @@ -2388,8 +2389,15 @@ TIME: The sum of all time spend in this tree, in minutes. This time (or (cdr (assoc SCHEDULED props)) (cdr (assoc DEADLINE props)) (cdr (assoc TIMESTAMP props)) - (cdr (assoc TIMESTAMP_IA props) - (when ( time 0) (push (list level hdl tsp time) tbl)) + (cdr (assoc TIMESTAMP_IA props + props (when properties + (remove nil + (mapcar + (lambda (p) + (when (org-entry-get (point) p) + (cons p (org-entry-get (point) p + properties + (when ( time 0) (push (list level hdl tsp time props) tbl)) (setq tbl (nreverse tbl)) (list file org-clock-file-total-minutes tbl -- 1.7.1 #+end_src #+begin_src diff From a5da80e0b42256e1a1ea07e213bcae3685786589 Mon Sep 17 00:00:00 2001 From: Niels Giesen niels.gie...@gmail.com Date: Sat, 26 Mar 2011 11:05:33 +0100 Subject: [PATCH 2/3] org-clock: Add properties param handling to `org-clocktable-write-default' Each property specified in properties will get a column in the clocktable. --- lisp/org-clock.el | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index df096d1..a330db0 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -2052,6 +2052,7 @@ from the dynamic block defintion. (emph (plist-get params :emphasize)) (level-p (plist-get params :level)) (timestamp (plist-get params :timestamp)) +
Re: [O] LaTeX export: underscores and the syntax package
Good morning Nicholas, Your suggested change in org-exp.el did the trick, thanks! I have not observed any side-effects, but then again, my files aren’t that complicated either, only using rather simple markup and a few floating images, no complex math or so… I wouldn’t mind having it changed as a fix, if only to avoid clashes with the syntax package, which I use a lot. Furthermore, I personally dislike underscores: they’re ugly and harder to type than a hyphen, but since they’re generated automatically those arguments don’t stand a chance :-) Anyway, now I know where to look I can always change it after installing a new release of org :-) Cheers, Peter. On 14 May 2011, at 05:50, Nick Dokos wrote: On May 12, 2011, at 9:00 AM, peter.fri...@agfa.com wrote: Good afternoon all, I spent the best part of the afternoon trying to figure out why an org-generated .tex file wouldn’t compile with my set-up. It turns out that the `syntax’ package messes a bit with the definition of an underscore, making it impossible to use the underscore in a \label. Unfortunately, the LaTeX exporter uses underscores in its section labels. I'm really replying to Peter here, not to Robert, but I cannot find Peter's original mail. You can change the underscore to e.g. a hyphen and get , | \subsubsection{Experiment 1} | \label{sec-1-1-1} ` in the LaTeX output, by changing it in org-exp.el around line 1300 (I don't want this to end up on patchwork, so I am trying to camouflage it by boxquoting it - I hope that works for hiding the patch from patchwork and also gives you enough context to make the change if you so desire): , | diff --git a/lisp/org-exp.el b/lisp/org-exp.el | index cda1f98..ac07c68 100644 | --- a/lisp/org-exp.el | +++ b/lisp/org-exp.el | @@ -1298,7 +1298,7 @@ Also find all ID and CUSTOM_ID properties and store them. |(org-outline-level | (setq target (org-solidify-link-text | (format sec-%s (replace-regexp-in-string | - \\. _ | + \\. - | (org-section-number level) | (setq last-section-target target) | (push (cons target target) target-alist) ` What I don't know is if this change will break something, either in the LaTeX exporter or in the other exporters. So you might test it and report any problems and if there are no problems, maybe you can suggest it as a permanent fix. In my limited experimentation, exporting a simple org file to latex/pdf, text and html, I did not observe any problems, but that does not mean that they don't exist. Nick
Re: [O] lisp/org-clock.el: Add param :properties to list properties in clocktable
Niels Giesen niels.gie...@gmail.com writes: Hi, Niels, I did not see the patch applied. Should be somewhere near 5 days ago on http://orgmode.org/w/org-mode.git. Am I missing something here? No. You're right. I checked two times the log in the git public hosting and your patch is not there. I suspect Carsten applied it in his repo, but forgot to commit to the central repo. Let's wait :-) Giovanni, eager to try the new feature :-)
Re: [O] Ctl-E doesn't go to end of line?
Thanks Nick Bernt, Setting 'line-move-visual' to nil does seem to fix things. But org-special-ctl-a/e was good to know about too, since I don't mind if org doesn't go all the way to the end on a line that is a header with tags. Thanks again! Mark --- On Tue, 5/17/11, Nick Dokos nicholas.do...@hp.com wrote: From: Nick Dokos nicholas.do...@hp.com Subject: Re: [O] Ctl-E doesn't go to end of line? To: Bernt Hansen be...@norang.ca Cc: emacs-orgmode@gnu.org, Mark S. throa...@yahoo.com, nicholas.do...@hp.com Date: Tuesday, May 17, 2011, 9:58 PM Bernt Hansen be...@norang.ca wrote: Isn't this the same as setting line-move-visual to nil? Just pretend it's an org-mode option. Could be :) I didn't find any details about that var when I looked at the docstrings for the functions involved. There's some documentation about it in the Emacs manual, section 7.2, Changing the location of point. It seems harmless to set it to nil (restores emacs 23 default behavior wrt long lines) and it's probably going to solve Mark's problem. Nick
[O] Repeating Task Exception
Hi, I was wondering if there was a way to add an exception to a repeating entry such as Weekly Meeting 2011-05-04 Wed 13:30-14:00 +1w i..e I'd like to be able to insert a line that indicates when this event will *not* occur. Many thanks! Cheers. David
Re: [O] Repeating Task Exception
David Neu da...@davidneu.com writes: Hi, I was wondering if there was a way to add an exception to a repeating entry such as Weekly Meeting 2011-05-04 Wed 13:30-14:00 +1w i..e I'd like to be able to insert a line that indicates when this event will *not* occur. Many thanks! Cheers. David That's not currently supported. To handle this I clone the subtree with time shift and remove the meetings that are cancelled. -Bernt
Re: [O] Query for tags, and bring results into headline?
Thanks Matt! If it's not too much trouble for you, may I ask how I would filter out DONE, etc questions? On Mon, May 16, 2011 at 12:08 PM, Matt Lundin m...@imapmail.org wrote: Matt Lundin m...@imapmail.org writes: You could then create a dblock by typing C-c C-c on the following #+begin: insert-links :match questions #+end: Correction: this should be: --8---cut here---start-8--- #+begin: insert-links :match questions #+end: --8---cut here---end---8--- Best, Matt
Re: [O] LaTeX export: underscores and the syntax package
Peter Frings peter.fri...@agfa.com wrote: Your suggested change in org-exp.el did the trick, thanks! I have not observed any side-effects, but then again, my files aren’t that complicated either, only using rather simple markup and a few floating images, no complex math or so… OK, I'll submit it as a patch and we'll see if there any objections. Thanks for checking. Anyway, now I know where to look I can always change it after installing a new release of org :-) If you use git to keep up with org, then there is a fairly painless way to maintain local changes like this. See the Org FAQ: http://orgmode.org/worg/org-faq.html#keeping-local-changes-current-with-Org-mode-development Nick Cheers, Peter. On 14 May 2011, at 05:50, Nick Dokos wrote: On May 12, 2011, at 9:00 AM, peter.fri...@agfa.com wrote: Good afternoon all, I spent the best part of the afternoon trying to figure out why an org-generated .tex file wouldn’t compile with my set-up. It turns out that the `syntax’ package messes a bit with the definition of an underscore, making it impossible to use the underscore in a \label. Unfortunately, the LaTeX exporter uses underscores in its section labels. I'm really replying to Peter here, not to Robert, but I cannot find Peter's original mail. You can change the underscore to e.g. a hyphen and get , | \subsubsection{Experiment 1} | \label{sec-1-1-1} ` in the LaTeX output, by changing it in org-exp.el around line 1300 (I don't want this to end up on patchwork, so I am trying to camouflage it by boxquoting it - I hope that works for hiding the patch from patchwork and also gives you enough context to make the change if you so desire): , | diff --git a/lisp/org-exp.el b/lisp/org-exp.el | index cda1f98..ac07c68 100644 | --- a/lisp/org-exp.el | +++ b/lisp/org-exp.el | @@ -1298,7 +1298,7 @@ Also find all ID and CUSTOM_ID properties and store them. | (org-outline-level | (setq target (org-solidify-link-text | (format sec-%s (replace-regexp-in-string | - \\. _ | + \\. - | (org-section-number level) | (setq last-section-target target) | (push (cons target target) target-alist) ` What I don't know is if this change will break something, either in the LaTeX exporter or in the other exporters. So you might test it and report any problems and if there are no problems, maybe you can suggest it as a permanent fix. In my limited experimentation, exporting a simple org file to latex/pdf, text and html, I did not observe any problems, but that does not mean that they don't exist. Nick
Re: [O] Query for tags, and bring results into headline?
Nathan Neff nathan.n...@gmail.com writes: Thanks Matt! If it's not too much trouble for you, may I ask how I would filter out DONE, etc questions? Sure, no problem at all! #+begin: insert-links :match questions/-DONE Or, if you want to filter out all inactive todos: #+begin: insert-links :match questions/! Best, Matt On Mon, May 16, 2011 at 12:08 PM, Matt Lundin m...@imapmail.org wrote: Matt Lundin m...@imapmail.org writes: You could then create a dblock by typing C-c C-c on the following #+begin: insert-links :match questions #+end: Correction: this should be: --8---cut here---start-8--- #+begin: insert-links :match questions #+end: --8---cut here---end---8--- Best, Matt
[O] Screencast of Search Features in org-mode?
I seem to recall seeing an excellent screencast of using the built-in search features of org-mode. Can anyone point me to it? I've looked on Work, under screencasts and am missing it. I found the advanced search tutorial on Worg, but I thought there was a screencast that went along with it, or had similar content. Thanks, --Nate
[O] [PATCH] Change underscores to hyphens in section labels
commit 5b6ac88c0c021f77d214d4fea37b305ab4928ebd Author: Nick Dokos n...@dokosmarshall.org Date: Sun May 15 16:49:55 2011 -0400 Change underscores to hyphens for labels * lisp/org-exp.el (org-export-define-heading-targets): Currently, the section number (a string of the form X.Y.Z) is used to manufacture a section label of the form sec-X_Y_Z. Underscores are overloaded however, both in org and in LaTeX, and cause conflicts with some packages. This patch changes underscores to hyphens in section labels. TINYCHANGE --- Peter Frings reported a conflict with the ``syntax'' LaTeX package. Light testing (exporting simple files to LaTeX, by both Peter and myself, as well as exporting to ascii and HTML) has not uncovered any problems. I have not tested docbook, or Jambunathan K's odt exporter. diff --git a/lisp/org-exp.el b/lisp/org-exp.el index cda1f98..ac07c68 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -1298,7 +1298,7 @@ Also find all ID and CUSTOM_ID properties and store them. (org-outline-level (setq target (org-solidify-link-text (format sec-%s (replace-regexp-in-string - \\. _ + \\. - (org-section-number level) (setq last-section-target target) (push (cons target target) target-alist)
Re: [O] Huge performance problems to open some Org files
Hi Eric, Carsten and al., Carsten Dominik wrote: On May 13, 2011, at 12:27 AM, Sebastien Vauban wrote: Vladimir Alexiev wrote: This has gotten worse. But, now, I have some proofs about what I experience: opening the attached Org file (2 KB) consumes me 191 seconds, yes 191 seconds, even when done after the agenda view has been launched -- I mean, all agenda files and all Org files have been read.. I would think the only way to sort this out is the following: 1. Try loading the file with emacs -Q 2. Try loading it with emacs -Q -l minimal.emacs where the minimal.emacs d does nothing but make sure that the latest Org is being loaded. I expect that loading your file under these test will be very fast. Then bisect your entire Emacs setup to find which part of your setup is causing this issue. I know you have *a lot* of setup, but I don't see any other route. Found it! Dunno understand the root cause yet, though. After suspecting non-Org related stuff in my -- yes, Carsten -- huge .emacs file, I found the problem to be here: #+begin_src emacs-lisp (add-hook 'org-mode-hook (lambda () ;; ;; display images in your Org files ;; (turn-on-iimage-mode) ;; PERFORMANCE PROBLEM with some Org files!!! (local-set-key \M-n 'outline-next-visible-heading) (local-set-key \M-p 'outline-previous-visible-heading) ;; table (local-set-key \M-\C-w 'org-table-copy-region) (local-set-key \M-\C-y 'org-table-paste-rectangle) (local-set-key \M-\C-l 'org-table-sort-lines) ;; file modification date (set (make-local-variable 'time-stamp-format) %:y-%02m-%02d) (set (make-local-variable 'time-stamp-start) ^#\\+DATE: +) (set (make-local-variable 'time-stamp-end) $) ;; flyspell mode to spell check everywhere (when (executable-find ispell-program-name) ;; check if `ispell-program-name' seems correct (flyspell-mode 1)) )) #+end_src Turning on the line iimage-mode makes opening of *some* Org files go from 0.2 seconds to 193 seconds! The times are very stable on both sides. Dunno yet why this happen (I have the impression only on _my_ Windows, not when I was on Ubuntu), but this will be for some later day... Best regards, Seb -- Sébastien Vauban
[O] Options for HTML PDF export
Hi, I use the Babel features of org-mode to do a sort of literate-programming thing. I have lots of R code that generates graphics which get included into an exported HTML or PDF (via LaTeX) document. I'm wondering about best practices (though I hate that term) for managing the export to both HTML PDF. For the HTML I generate the graphics files as PNG, but for PDF the PNG format doesn't embed very well, so I need to generate PDF or EPS or somesuch. But then I have to change the :file filename.png to :file filename.pdf, which is quite cumbersome to do every time I want to export. Is there some way people have for dealing with this situation? Some options setting maybe? Thanks. -- Ken Williams Senior Research Scientist Thomson Reuters http://labs.thomsonreuters.com
Re: [O] Options for HTML PDF export
ken.willi...@thomsonreuters.com wrote: I'm wondering about best practices (though I hate that term) for managing the export to both HTML PDF. For the HTML I generate the graphics files as PNG, but for PDF the PNG format doesn't embed very well, What is the problem with PNG exactly? I've never had any problems incorporating them into a PDF. It is a bitmap format, so it will not suffer extreme changes in magnification without some ugliness of course, but other than that I don't know of any problems. Nick so I need to generate PDF or EPS or somesuch. But then I have to change the :file filename.png to :file filename.pdf, which is quite cumbersome to do every time I want to export. Is there some way people have for dealing with this situation? Some options setting maybe? Thanks. -- Ken Williams Senior Research Scientist Thomson Reuters http://labs.thomsonreuters.com
Re: [O] Options for HTML PDF export
On 5/18/11 4:19 PM, Nick Dokos nicholas.do...@hp.com wrote: ken.willi...@thomsonreuters.com wrote: I'm wondering about best practices (though I hate that term) for managing the export to both HTML PDF. For the HTML I generate the graphics files as PNG, but for PDF the PNG format doesn't embed very well, What is the problem with PNG exactly? I've never had any problems incorporating them into a PDF. It is a bitmap format, so it will not suffer extreme changes in magnification without some ugliness of course, but other than that I don't know of any problems. That is exactly the problem =). It does include itself into the document, it just doesn't look very nice. Since these are data-based graphics coming from R, their lines should be nice crisp, but they end up looking pretty fuzzy. -- Ken Williams Senior Research Scientist Thomson Reuters http://labs.thomsonreuters.com
[O] [ANN] ELPA Repo for org-html/org-odt
I have added an ELPA package for the OpenOfficeExporter here. The archive URL for consumption by the package manager is this: http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/. Also take a look at the README file http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/README.html ,[ C-h v package-archives RET ] | package-archives is a variable defined in `package.el'. | Its value is | ((gnu . http://elpa.gnu.org/packages/;) | (tromey . http://tromey.com/elpa/;) | (jambu . http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/;)) | | Original value was | ((gnu . http://elpa.gnu.org/packages/;)) | | | This variable is potentially risky when used as a file local variable. | | Documentation: | An alist of archives from which to fetch. | The default value points to the GNU Emacs package repository. ` I hope it is OK. Jambunathan K.
Re: [O] [ANN] ELPA Repo for org-html/org-odt
Additional note: The archive URL for consumption by the package manager is this: http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/. You cannot browse to this URL. However you will be able to point the package manager to it and have it work just fine. Jambunathan K.
[O] No Expansion of noweb references when exporting
Hi, Is it possible for the output of the expansion of a code block to appear in the exported document? Consider the example: #+TITLE: No expansion of noweb references when exporting * Example :PROPERTIES: :tangle: illustration.hpp :END: #+srcname: boiler-plate-code-generator() #+begin_src emacs-lisp :results output :exports none :tangle no (dolist (type '(int8_t uint8_t float double)) (princ (format template %s boiler_plate_code%s();\n type type))) #+end_src #+begin_src c++ :noweb yes boiler-plate-code-generator() #+end_src When I export this to HTML using C-c C-e b, the text boiler-plate-code-generator() is present. What I would like to see is the output that is generated when tangling. Thanks Mark
Re: [O] [ANN] ELPA Repo for org-html/org-odt
Hi Jambunathan, On Wed, May 18, 2011 at 4:21 PM, Jambunathan K kjambunat...@gmail.com wrote: Additional note: The archive URL for consumption by the package manager is this: http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/. You cannot browse to this URL. However you will be able to point the package manager to it and have it work just fine. Its not working for me. I get this error. Debugger entered--Lisp error: (error Error during download request: Not Found) signal(error (Error during download request: Not Found)) error(Error during download request:%s Not Found) package-handle-response() package--download-one-archive((jambu . http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/;) archive-contents) #[nil \301 \302\\207 [archive package--download-one-archive archive-contents] 3]() package-refresh-contents() list-packages(nil) call-interactively(list-packages t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) Jambunathan K. -- Suvayu Open source is the future. It sets us free.
Re: [O] [ANN] ELPA Repo for org-html/org-odt
suvayu ali fatkasuvayu+li...@gmail.com writes: Hi Jambunathan, On Wed, May 18, 2011 at 4:21 PM, Jambunathan K kjambunat...@gmail.com wrote: Additional note: The archive URL for consumption by the package manager is this: http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/. You cannot browse to this URL. However you will be able to point the package manager to it and have it work just fine. Its not working for me. I get this error. Debugger entered--Lisp error: (error Error during download request: Not Found) signal(error (Error during download request: Not Found)) error(Error during download request:%s Not Found) package-handle-response() package--download-one-archive((jambu . http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/;) archive-contents) Thanks for reporting this. I had forgotten to push the 'archive-contents' file. This is fixed now. Btw, if you Test Drive the exporter, with `C-u M-x org-odt-unit-test' you are likely to see that embedded images (Unicorn Logo) in the exported html/odt file being corrupt. This is *NOT* an issue with the org-odt-* package or a bug in org-odt.el but in a bug Emacs-24 package manager. I will file a bug report with Emacs after some investigation. Thanks, Jambunathan K.
Re: [O] org-contacts and birthdays without year
On Wed, May 18, 2011 at 12:00 AM, Julien Danjou jul...@danjou.info wrote: You change that rule. It's a defcustom, simply set it to be there's an EMAIL or a BIRTHDAY. You mean `org-contacts-matcher'? How does org-make-tags-matcher work? After googling and looking during some cursory investigation, it's still not clear to me how to match EMAIL or BIRTHDAY. Is it possible to specify birthdays without year? I often want to jot down someone's birthday so I'm not surprised next year, but don't want to ask them how old they are. :) Not really :( Fair enough. I'll use 1900 as a place holder for now. On a separate note, the capture example on the org-contacts website (http://julien.danjou.info/org-contacts.html) breaks without gnus, Others were bitten by this http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00079.html. Maybe this can be fixed? -- Le