Re: [O] Upgrade to org 7.9.3.: clock in/out and org-odt export
Thank you, Bastien and Jabunathan, as often I failed to answer to the list and sent instead private messages back. Sorry for that. I will try to pinpoint the org-export-problem and deliver some more detailed information. Best Martin Am 09.01.2013 06:31, schrieb Jambunathan K: Martin Butz writes: (2) I did some tests with the org-odt-exporter, which where successful in case of a small test file but failed with some of my daily used file. In one case the emacs message buffer seemed to contain the whole export output (pasting just a few lines here) org-odt.el - The old exporter - hasn't changed much for most of one full year. I wouldn't be surprised, if the problem is elsewhere. If you can git bisect well and good. Or You can post the BEGINNING of stack trace. (Your stacktrace doesn't seem to be from the beginning). Btw, it is not clear to me whether you are getting a backtrace. Or Try minimal Emacs: emacs -L ~/src/org-mode/lisp -L ~/src/org-mode/contrib/lisp I am willing to address whatever problem that you are seeing. -- | G. Martin Butz, m...@mkblog.org, 0421 98749324, www.mkblog.org |
Re: [O] [BUG] remote execution in heterogeneous environment
Achim Gratz writes: > Works a treat. Please install! I have no write access to the org repo. Maybe somebody else could install? > Regards, > Achim. Best regards, Michael.
Re: [O] org-id garbage collection?
Hi James, James Harkins writes: > Since older entries are removed from Messages, these lines caused the > duplicate ID info to be lost. You can tweak `message-log-max'. -- Bastien
Re: [O] [PATCH] Use geiser for babel scheme evaluation.
Hi Michael, Michael Gauland writes: > I've done the rename, un-dangled the parentheses, and prepared a > changelog: Thanks Michael. I ping'ed the FSF copyright clerk for some news, I hope he's not overwhelmed after Christmas holidays. Best, PS: Next time put the ChangeLog directly in the commit message, that's even quicker for me. -- Bastien
Re: [O] C / C++ standard org file
Noah Eli Abrams writes: > Has anyone made an org-file out of the C / C++ standards? Would make > looking things up much more convenient. The ubiquitous format is HTML and unfortunately it is not /that/ human friendly. I hope some writes a html2org puts that in GNU ELPA. shr.el (part of gnus) can serve as good standing point. I hope - I mean, I hope - that it will be me. Lately, I am finding I am a bit out of juice though. > > --
Re: [O] C / C++ standard org file
Apologies to the mailing list for the dual posting; I signed up with a different e-mail address, then assumed the first one (send from here) had been rejected. Anyway, I manually enter in a lot of org-files. I didn't know there were converters out there. Anyone know of a pdf-to-org? At Wed, 09 Jan 2013 14:31:14 +0530, Jambunathan K wrote: > > Noah Eli Abrams writes: > > > Has anyone made an org-file out of the C / C++ standards? Would make > > looking things up much more convenient. > > The ubiquitous format is HTML and unfortunately it is not /that/ human > friendly. I hope some writes a html2org puts that in GNU ELPA. shr.el > (part of gnus) can serve as good standing point. > > I hope - I mean, I hope - that it will be me. > > Lately, I am finding I am a bit out of juice though. > > > > > > > --
Re: [O] C / C++ standard org file
Pandoc http://johnmacfarlane.net/pandoc/ should be able to handle the conversion of html to org (but unfortunately not the reverse). Chris. On 9 January 2013 10:01, Jambunathan K wrote: > Noah Eli Abrams writes: > > > Has anyone made an org-file out of the C / C++ standards? Would make > > looking things up much more convenient. > > The ubiquitous format is HTML and unfortunately it is not /that/ human > friendly. I hope some writes a html2org puts that in GNU ELPA. shr.el > (part of gnus) can serve as good standing point. > > I hope - I mean, I hope - that it will be me. > > Lately, I am finding I am a bit out of juice though. > > > > > > > -- > >
Re: [O] [PATCH] Update documentation on handling internal links
Le vendredi 8 mars 2013 à 23h35, Bastien a écrit: > Can you update your patch mentioning this and adding a commit message > and adding TINYCHANGE at the end? Here it is. François >From 169d8382f01b8914e002313032c2d123c86b913a Mon Sep 17 00:00:00 2001 From: François Allisson Date: Wed, 9 Jan 2013 12:32:09 +0100 Subject: [PATCH] org.texi: Update documentation on internal link handling * Update the mention to the obsolete variable `org-link-to-org-use-id' with a mention to the newer variable `org-id-link-to-org-use-id'. * Mention the need to load the org-id library. TINYCHANGE --- doc/org.texi |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 8b0a59f..c6e5b70 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -3445,13 +3445,16 @@ be the description@footnote{If the headline contains a timestamp, it will be removed from the link and result in a wrong link---you should avoid putting timestamp in the headline.}. -@vindex org-link-to-org-use-id +@vindex org-id-link-to-org-use-id @cindex property, CUSTOM_ID @cindex property, ID If the headline has a @code{CUSTOM_ID} property, a link to this custom ID will be stored. In addition or alternatively (depending on the value of -@code{org-link-to-org-use-id}), a globally unique @code{ID} property will be -created and/or used to construct a link. So using this command in Org +@code{org-id-link-to-org-use-id}), a globally unique @code{ID} property will +be created and/or used to construct a link@footnote{The library @code{org-id} +must first be loaded, either through @code{org-customize} by enabling +@code{id} in @code{org-modules} , or by adding @code{(require 'org-id)} in +your @file{.emacs}.}. So using this command in Org buffers will potentially create two links: a human-readable from the custom ID, and one that is globally unique and works even if the entry is moved from file to file. Later, when inserting the link, you need to decide which one -- 1.7.10.4
Re: [O] [BUG] remote execution in heterogeneous environment
Hi Michael, Michael Albinus writes: > Achim Gratz writes: > >> Works a treat. Please install! > > I have no write access to the org repo. Maybe somebody else could > install? Please send me your public key so that I can give your write access. Otherwise can you just resent the patch as a git patch with a commit message have an Emacs-ready ChangeLog entry? Thanks! -- Bastien
Re: [O] [PATCH] Update documentation on handling internal links
Hi François, François Allisson writes: > Le vendredi 8 mars 2013 à 23h35, Bastien a écrit: >> Can you update your patch mentioning this and adding a commit message >> and adding TINYCHANGE at the end? > > Here it is. Applied (with a small change in the ChangeLog, please check.) Thanks! -- Bastien
Re: [O] [PATCH] Update documentation on handling internal links
Le mercredi 9 janvier 2013 à 12h53, Bastien a écrit: > Applied (with a small change in the ChangeLog, please check.) Perfect. Thanks!
Re: [O] [BUG] remote execution in heterogeneous environment
Bastien writes: > Hi Michael, Hi Bastien, > Please send me your public key so that I can give your write access. > Otherwise can you just resent the patch as a git patch with a commit > message have an Emacs-ready ChangeLog entry? I don't believe I need permanent write access. Patch appended. > Thanks! Best regards, Michael. >From a39b35c3967ac7c95e3442434a3ca44cba54fca5 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Wed, 9 Jan 2013 13:48:30 +0100 Subject: [PATCH] * ob-eval.el (org-babel-shell-command-on-region): Use `executable-find' for local `shell-file-name' --- lisp/ob-eval.el | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lisp/ob-eval.el b/lisp/ob-eval.el index 8764920..8018111 100644 --- a/lisp/ob-eval.el +++ b/lisp/ob-eval.el @@ -137,11 +137,17 @@ specifies the value of ERROR-BUFFER." t))) (let ((input-file (org-babel-temp-file "input-")) (error-file (if error-buffer (org-babel-temp-file "scor-") nil)) + ;; Unfortunately, `executable-find' does not support file name + ;; handlers. Therefore, we could use it in the local case + ;; only. (shell-file-name - (if (file-executable-p - (concat (file-remote-p default-directory) shell-file-name)) - shell-file-name - "/bin/sh")) + (cond ((and (not (file-remote-p default-directory)) + (executable-find shell-file-name)) + shell-file-name) + ((file-executable-p + (concat (file-remote-p default-directory) shell-file-name)) + shell-file-name) + ("/bin/sh"))) exit-status) ;; There is an error in `process-file' when `error-file' exists. ;; This is fixed in Emacs trunk as of 2012-12-21; let's use this -- 1.7.10.4
Re: [O] [BUG] remote execution in heterogeneous environment
Hi Michael, Michael Albinus writes: > I don't believe I need permanent write access. Patch appended. Applied, thanks! Best, -- Bastien
Re: [O] BBDB(3) or org-contacts
On Tue, 8 Jan 2013 22:14:09 +0100 Michael Strey wrote: > I've more than 1000 contacts and this system works well and with > reasonable speed. For integration with mutt, I use Karl Voit's lbdb > module for org-contact [fn:1]. I'm very glad to hear it... > I use this as Customer Relationship Management (CRM) system. ...and would like to use it as CRM as well. Can you, please, share some more info about your setup (I'll probably use Gnus instead of Mutt)? Sincerely, Gour -- For him who has conquered the mind, the mind is the best of friends; but for one who has failed to do so, his mind will remain the greatest enemy. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
[O] fill-paragraph (M-q) not working as expected
Hi! Having .. - [ ] whatever a long line ... - [ ] whatever .. and point in line "a long line" M-q does not fill the line/paragraph. How can I get a "fill" (which works after changing to text-mode)? Rainer
Re: [O] Emacs hangs in org file
On Tue, Jan 8, 2013 at 8:19 PM, David Engster wrote: > This bug is currently being discussed on emacs-devel: > > http://thread.gmane.org/gmane.emacs.devel/156120 > > Jan has already posted a possible fix; maybe you can help testing it? > > -David > Thanks, I'll have a look. By reading the thread, it seems it's exactly the same problem.
Re: [O] Org-mode release 7.9.3
Bastien writes: > da...@adboyd.com (J. David Boyd) writes: > >> Without knowing any elisp, one symptom I see is that while preparing the >> export, the status line says >> >> org-agenda-finalize: Buffer is read-only: # >> >> then the export stops. > > Can you test latest maint or master branch? I think I've fixed it. > > Thanks... Positively, where do I get that? I normally get my Orgs from git://repo.or.cz/org-mode.git, is that the one you would be speaking of? Thanks, Dave
[O] Inherited tags not visible in agenda (was: Org-mode release 7.9.3)
* Bastien wrote: > Hi Rainer, > > Rainer Stengele writes: > >> What I now get is that the non-inherited tags are shown directly after >> the item text, that is the alignment to a certain column seems to be lost. >> Did you change that behaviour? > > I introduced a bug here, fixed now. I just pulled the latest Org version but inherited tags still aren't visible in my agenda. I also tried to add "(setq org-agenda-use-tag-inheritance (quote (agenda)))" with no effect. If you want to look at all of my current org-mode specific settings, please visit http://paste.grml.org/1182/ What is my problem that prevents inherited tags being visible in my agenda? Thanks! -- Karl Voit
Re: [O] fill-paragraph (M-q) not working as expected
Hello, Rainer Stengele writes: > Having > > .. >- [ ] whatever >a long line ... >- [ ] whatever > .. > > and point in line "a long line" M-q does not fill the line/paragraph. > How can I get a "fill" (which works after changing to text-mode)? I cannot reproduce it. Can you double-check your installation ? Regards, -- Nicolas Goaziou
Re: [O] [PATCH] Add an attribute to the new LaTeX exporter
Hello, t...@tsdye.com (Thomas S. Dye) writes: > A journal is asking for a section of figure legends created like this: > > \section*{Figure Legends} > \begin{figure}[!ht] > \begin{center} > %\includegraphics[width=4in]{figure_name.2.eps} > \end{center} > \caption{ > {\bf Bold the first sentence.} Rest of figure 2 caption. Caption > should be left justified, as specified by the options to the caption > package. > } > \label{Figure_label} > \end{figure} > > The attached patch introduces an attribute to toggle commenting the > \includegraphics call. Applied (with a minor stylistic change). Thank you. Regards, -- Nicolas Goaziou
Re: [O] org-e-latex: ignoreheading is not working any more.
Hello, Sebastian Hofer writes: > Using said code-snippet I get following error: > > funcall: Wrong number of arguments: (lambda (headline contents info) > (if (member "ignoreheading" (org-element-property :tags headline)) > contents (org-e-latex-headline headline contents info))), 2 Would you mind pasting again the code you're using? I have lost the track of the thread. > Does this have to do with this next comment, or is this unrelated? > >> Also, the hook will now be called with an argument: the back-end used as >> a symbol. >> >> Otherwise, the thread is still valid. > > If yes I couldn't figure out which hook you were talking about. Could > you give a few more details please? I was talking about `org-export-before-processing-hook' or `org-export-before-parsing-hook', but it should be unrelated to the problem at hand. Regards, -- Nicolas Goaziou
Re: [O] [new exporter] adhere org-export-date-timestamp-format?
Hello, Bastien writes: >> Though it may be the job of back-ends to provide such a variable >> variable, whenever it makes sense. > > Yes, I think it's the job of backends. For example, in the `e-latex' back-end, there is `org-e-latex-date-format'. Should the value of the variable be used as an argument for `org-export-format-timestamp' if the #+DATE: keyword only contains a timestamp object, and for `format-time-string' otherwise? >> Another option would be to allow to specify an arbitrary timestamp as >> a second, optional, argument to {{{time(...)}}} macro. One could then >> use: >> >> #+DATE: {{{time(%Y-%m-%d,<2013-01-06 Sun>)}}} > > I'm all for allowing macros in "document info" keywords > (i.e. "#+title:" "#+author:" "#+email:" "#+date) though > I'm not sure if it makes sense for other keywords than > for "#+date", and maybe allowing macro here just for > this use-case is to liberal. Note that macros are already supported there (as in anything that will be parsed). Regards, -- Nicolas Goaziou
Re: [O] Org-mode release 7.9.3
da...@adboyd.com (J. David Boyd) writes: > Bastien writes: > >> da...@adboyd.com (J. David Boyd) writes: >> >>> Without knowing any elisp, one symptom I see is that while preparing the >>> export, the status line says >>> >>> org-agenda-finalize: Buffer is read-only: # >>> >>> then the export stops. >> >> Can you test latest maint or master branch? I think I've fixed it. >> >> Thanks... > > > Positively, where do I get that? I normally get my Orgs from > git://repo.or.cz/org-mode.git, is that the one you would be speaking of? > > Thanks, > > Dave Turns out that one worked fine, and Org worked fine. Problem is resolved, thanks very much for all your efforts! Dave
Re: [O] Publishing only sub-hierarchies with a given tag
Hello, Karl Voit writes: > The publishing methods are quite capable. I wonder whether or not it > is possible (or easy to implement) to limit content to > sub-hierarchies that are tagged for publishing. > > So if I have multiple Org-mode files in «base-directory», publish > only the (few) things that are tagged with e.g. «:publish:». I confess that I have not followed the thread closely, so it may be already answered, but have you tried setting :select-tags to '("publish") in your project definition? Regards, -- Nicolas Goaziou
Re: [O] Publishing only sub-hierarchies with a given tag
* Nicolas Goaziou wrote: > Hello, > > Karl Voit writes: > >> The publishing methods are quite capable. I wonder whether or not it >> is possible (or easy to implement) to limit content to >> sub-hierarchies that are tagged for publishing. >> >> So if I have multiple Org-mode files in «base-directory», publish >> only the (few) things that are tagged with e.g. «:publish:». > > I confess that I have not followed the thread closely, so it may be > already answered, but have you tried setting :select-tags to > '("publish") in your project definition? Sorry, I did not invest further research on the publish feature of Org since I realized that it is not suitable for my use-case anyway. -- Karl Voit
[O] colorg: Starting!
Hi, people. A few weeks ago, we had a short discussion on this mailing list about creating a Collaborative Org project. Well, I see that my need just does not fade out. So this morning, for the good or for the bad, without knowing where this will bring me :-), I decided to give in and just created an *empty* repository on GitHub: https://github.com/pinard/ColOrg When I'll find some free time (which I do not much have), I intend to initialize the Wiki with a few saved pointers and email exchanges on that topic. Let's use this mailing list, here, for discussion; yet we might prefix related emails with "colorg:", to ease threading. So, interested people, let's manage to keep in closer contact, and see what we can do! François
Re: [O] Org-mode release 7.9.3
J. David Boyd wrote: > Bastien writes: > > > da...@adboyd.com (J. David Boyd) writes: > > > >> Without knowing any elisp, one symptom I see is that while preparing the > >> export, the status line says > >> > >> org-agenda-finalize: Buffer is read-only: # > >> > >> then the export stops. > > > > Can you test latest maint or master branch? I think I've fixed it. > > > > Thanks... > > > Positively, where do I get that? I normally get my Orgs from > git://repo.or.cz/org-mode.git, is that the one you would be speaking of? > AFAIK, that's a mirror and may be out of date. The canonical place is git://orgmode.org/org-mode.git See http://thread.gmane.org/gmane.emacs.orgmode/35831/focus=35893 and the thread that it's part of. Nick
Re: [O] OBBDB(3) or org-contacts
Gour writes: >> But I certainly like the org-mode format much much much better than >> bbdb(3). Which I'm still using, unfortunately. > > Do you use bbdb3 and what are important things it brings over bbdb2? I do, and "not much". Slightly better highlighting and redefined set of key bindings and thoughts (IE, you need to re-learn stuff too though). > Have you, maybe, tried mu4e or should I simply stick with proven Gnus? I have tried at times to switch away from gnus. Every time I do, I come running back because it's let me customize how I read mail over the years and the features integrated into it are just not found everywhere else. -- Wes Hardaker My Pictures: http://capturedonearth.com/ My Thoughts: http://pontifications.hardakers.net/
[O] [PATCH] Change references to "~/.emacs.d" into `user-emacs-directory' ?
Hi, Not sure if this is of any importance, but since the variable user-emacs-directory (a defconst) exists, maybe org-mode could use it instead of "~/.emacs.d". It seems only relevant for MS-DOS systems, though. Nico. >From 4fb0ecaef07ca9d10e5a57bef19f3201a2c90097 Mon Sep 17 00:00:00 2001 From: Nicolas Richard Date: Wed, 9 Jan 2013 16:41:12 +0100 * lisp/org-id.el (org-id-locations-file): * contrib/lisp/org-track.el (org-track-directory): * lisp/org-clock.el (org-clock-persist-file): Fix hardcoded reference to "~/.emacs.d". --- contrib/lisp/org-track.el | 2 +- lisp/org-clock.el | 2 +- lisp/org-id.el| 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/lisp/org-track.el b/contrib/lisp/org-track.el index d058135..a44472e 100644 --- a/contrib/lisp/org-track.el +++ b/contrib/lisp/org-track.el @@ -72,7 +72,7 @@ time to time." :version "22.1" :group 'org) -(defcustom org-track-directory "~/.emacs.d/org/lisp" +(defcustom org-track-directory (concat user-emacs-directory "org/lisp") "Directory where your org-mode/ directory lives. If that directory does not exist, it will be created." :type 'directory) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 823eac8..92168bc 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -194,7 +194,7 @@ Emacs initialization file." (const :tag "No persistence" nil))) (defcustom org-clock-persist-file (convert-standard-filename - "~/.emacs.d/org-clock-save.el") + (concat user-emacs-directory "org-clock-save.el")) "File to save clock data to." :group 'org-clock :type 'string) diff --git a/lisp/org-id.el b/lisp/org-id.el index 5d8e5b0..b35ea5e 100644 --- a/lisp/org-id.el +++ b/lisp/org-id.el @@ -186,7 +186,7 @@ the link." :type 'boolean) (defcustom org-id-locations-file (convert-standard-filename - "~/.emacs.d/.org-id-locations") + (concat user-emacs-directory ".org-id-locations")) "The file for remembering in which file an ID was defined. This variable is only relevant when `org-id-track-globally' is set." :group 'org-id -- 1.8.1
[O] repeated underscores and subscript woes
Hello, I use org-mode (currently v7.9.3) to build materials for the courses I teach. I tend to use repeated underscores to indicate a blank, e.g.: 1) Fill in the ___. Unfortunately, org-mode treats these as *successive* subscript requests, and the text that follows is severely disrupted when exported via LaTeX. The local or global setting of `org-export-with-sub-superscripts' does not seem to affect this behavior. It seems appropriate that: - no subscripting should occur in the above case when `org-export-with-sub-superscripts' is set to nil or {}; and - repeated underscores without any braces should probably not ever trigger subscripting on export. Thanks for all the continued work on org-mode! --Nathaniel
[O] [PATCH] org-attach: exchange the docstrings of org-attach-reveal and org-attach-reveal-in-emacs
Hi again, This is a small very obvious docstring fix. From: "Nicolas Richard" Date: Wed, 12 Dec 2012 19:09:58 +0100 * lisp/org-attach.el (org-attach-reveal, org-attach-reveal-in-emacs): Fix the docstrings. --- lisp/org-attach.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org-attach.el b/lisp/org-attach.el index 3154e5e..51a8995 100644 --- a/lisp/org-attach.el +++ b/lisp/org-attach.el @@ -425,14 +425,14 @@ This ignores files starting with a \".\", and files ending in \"~\"." (directory-files dir nil "[^~]\\'" (defun org-attach-reveal (&optional if-exists) - "Show the attachment directory of the current task in dired." + "Show the attachment directory of the current task. +This will attempt to use an external program to show the directory." (interactive "P") (let ((attach-dir (org-attach-dir (not if-exists (and attach-dir (org-open-file attach-dir (defun org-attach-reveal-in-emacs () - "Show the attachment directory of the current task. -This will attempt to use an external program to show the directory." + "Show the attachment directory of the current task in dired." (interactive) (let ((attach-dir (org-attach-dir t))) (dired attach-dir))) -- 1.8.1
Re: [O] inactive timestamps: how to unlink?
Hi Nathaniel, Nathaniel Cunningham writes: > Inactive timestamps link to the daily agenda. Is there a way to turn > off this behavior, so these inactive timestamps are not links in any > way? Remove `date' from `org-activate-links'. HTH, -- Bastien
Re: [O] [PATCH] org-attach: exchange the docstrings of org-attach-reveal and org-attach-reveal-in-emacs
"Nicolas Richard" writes: > This is a small very obvious docstring fix. Applied, thanks. -- Bastien
Re: [O] [PATCH] Change references to "~/.emacs.d" into `user-emacs-directory' ?
Hi Nicolas, "Nicolas Richard" writes: > Not sure if this is of any importance, but since the variable > user-emacs-directory (a defconst) exists, maybe org-mode could use it > instead of "~/.emacs.d". It seems only relevant for MS-DOS systems, > though. Applied, thanks. -- Bastien
Re: [O] Inherited tags not visible in agenda
Hi Karl, Karl Voit writes: > I just pulled the latest Org version but inherited tags still aren't > visible in my agenda. This is the current way of Org. Note that this is just about the "visible" tags. If you hit `T' on the agenda line, you should see inherited tags too if you have the default `org-agenda-use-tag-inheritance'. Which lets you have tag filtering okay... etc. > What is my problem that prevents inherited tags being visible in my > agenda? It is not a problem with *your* config... I implemented this because it speeds up agenda generation *a lot* and those visible tags are just information. But I 100% hear you and I understand this can be disruptive. It's a bit chaotic for the user in this area. org-use-tag-inheritance org-agenda-use-tag-inheritance org-agenda-remove-tags org-agenda-show-inherited-tags org-agenda-hide-tags-regexp ... I'll clean up things and restore the previous behavior, but I want the current one to be available anyway. Best, -- Bastien
Re: [O] [new exporter] adhere org-export-date-timestamp-format?
Hi Nicolas, Nicolas Goaziou writes: > For example, in the `e-latex' back-end, there is > `org-e-latex-date-format'. > > Should the value of the variable be used as an argument for > `org-export-format-timestamp' if the #+DATE: keyword only contains > a timestamp object, and for `format-time-string' otherwise? Yes, good idea! -- Bastien
Re: [O] repeated underscores and subscript woes
Hi Nathaniel, Nathaniel Cunningham writes: > Unfortunately, org-mode treats these as successive subscript > requests, and the text that follows is severely disrupted when > exported via LaTeX. The local or global setting of > `org-export-with-sub-superscripts' does not seem to affect this > behavior. Perhaps you can temporarily remove the "_" emphasis from `org-emphasis-alist' ? HTH, -- Bastien
Re: [O] simple script to convert txt tables to Org-mode tables on the command line
Achim Gratz writes: > Eric Schulte writes: >> I added a note to the manual. Thanks for double-checking. > > Thanks. Did I understand correctly that the same also happens for the > :rownames argument I just checked this and yes, elisp ignores :rownames as well. > and should there be some similar wording like there is for :colnames? > Just committed such wording to the manual. Thanks, > > > Achim. -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] OBBDB(3) or org-contacts
On Wed, 09 Jan 2013 08:08:15 -0800 Wes Hardaker wrote: > I do, and "not much". Slightly better highlighting and redefined set > of key bindings and thoughts (IE, you need to re-learn stuff too > though). Thank you. > I have tried at times to switch away from gnus. Every time I do, I > come running back because it's let me customize how I read mail over > the years and the features integrated into it are just not found > everywhere else. This is helpful...I believe I'll do the same. :-) Sincerely, Gour -- Whenever and wherever there is a decline in religious practice, O descendant of Bharata, and a predominant rise of irreligion — at that time I descend Myself. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 signature.asc Description: PGP signature
Re: [O] [new exporter] adhere org-export-date-timestamp-format?
Bastien writes: >> Should the value of the variable be used as an argument for >> `org-export-format-timestamp' if the #+DATE: keyword only contains >> a timestamp object, and for `format-time-string' otherwise? > > Yes, good idea! Ok. Before I start coding it, I wonder if functions related to timestamp objects, that is `org-export-timestamp-has-time-p', `org-export-format-timestamp', `org-export-split-timestamp-range' and `org-export-translate-timestamp' shouldn't be moved from org-export.el to org.el. After all, there are not only useful in an export context. What do you think about it? Regards, -- Nicolas Goaziou
Re: [O] [new exporter] adhere org-export-date-timestamp-format?
Hi Nicolas, Nicolas Goaziou writes: > Before I start coding it, I wonder if functions related to timestamp > objects, that is `org-export-timestamp-has-time-p', > `org-export-format-timestamp', `org-export-split-timestamp-range' and > `org-export-translate-timestamp' shouldn't be moved from org-export.el > to org.el. After all, there are not only useful in an export context. > > What do you think about it? I agree they are general and should be move out of org-export.el. Note that one of my plan for 8.[01] is to put org.el on diet so that it loads more quickly and for more basic stuff. So maybe there will be org-plan.el at some point for org-schedule, org-deadline and anything related to planning. Ideally, Org would *just* be outline reloaded (with orgtble and all editing facilities), while other features would have their own library. So maybe those functions will end up outside of org.el one day... but I'd say it's okay to have them in org.el for now. Thanks, -- Bastien
[O] org-agenda-time-grid with org-agenda-prefix-format
I cannot seem to get a time grid with the 'today' option to work when I set a custom prefix for my agenda items. The agenda loads 2 or 3 lines and then stops where the grid lines are supposed to be. This is my set up: (setq org-agenda-time-grid (quote ((daily today remove-match) ; cannot have 'today' option indicated here #("" 0 16 (org-heading t)) (830 1000 1200 1300 1500 1700 (setq org-agenda-prefix-format '((agenda . " %-12:c%?-12t% s%(concat \"[\"(org-format-outline-path (org-get-outline-path)) \"]\")") (timeline . " % s") (todo . " %i %-12:c") (tags . " %i %-12:c%(concat \"[\"(org-format-outline-path (org-get-outline-path)) \"]\")") (search . " %-12:c"))) I wanted my agenda items to include parent information; I achieved this with org-agenda-prefix-format, but cannot seem to get the time grid to show for the current day at the same time...
Re: [O] Inherited tags not visible in agenda
* Bastien wrote: > Hi Karl, > > Karl Voit writes: > >> I just pulled the latest Org version but inherited tags still aren't >> visible in my agenda. > > This is the current way of Org. I see. > Note that this is just about the "visible" tags. If you hit > `T' on the agenda line, you should see inherited tags too if > you have the default `org-agenda-use-tag-inheritance'. > > Which lets you have tag filtering okay... etc. Indeed. >> What is my problem that prevents inherited tags being visible in my >> agenda? > > It is not a problem with *your* config... I was thinking of a config issue because up to my last git pull, all inherited tags *were* visible in my agenda. Which I do like because I tend to use inheritance for information. For example, I am adding a meeting with one person to the contact heading of that person (which is tagged with JohnSmith) and therefore I see the link to John Smith when I use a simple sub-heading for our meeting like: "*** <2013-01-09 10:00-11:00> Meeting" > I implemented this because it speeds up agenda generation *a > lot* and those visible tags are just information. I do have a very poor performing agenda (approx. 121.000 lines of Org) especially when I am querying my Memacs[1] data (additional 220.000 lines of Org in archive files). However, since I use tag inheritance as a form of de-duplication, I am willing to wait for them to be parsed :-) > I'll clean up things and restore the previous behavior, but > I want the current one to be available anyway. A new standard behavior for speeding up agenda for lots of users is fine to me as long as I am able to modify it to get previous behavior sometime in the future. :-) 1. https://github.com/novoid/Memacs -- Karl Voit
[O] org-mobile-push not generating index.org or checksum
I just setup mobileOrg to use Dropbox. Setting up synchronizer in mobileOrg worked fine, Dropbox login worked fine, and I chose an existing folder named "mobile-org" to sync with. This is in my emacs config: #+begin_src .emacs (custom-set-variables ... '(org-agenda-files (quote ("~/org" "~/org/aux/contacts.org" (setq org-directory "~/org") (setq org-mobile-directory "~/Dropbox/mobile-org") (setq org-mobile-inbox-for-pull "~/org/mobileorg.org") #+end_src I run =org-mobile-push= and get a resultant agenda SUMO buffer, but there's nothing populated in ~/Dropbox/mobile-org (like index.org or the checksum). This is in *Messages* after executing =org-mobile-push= #+begin_src *Messages* Creating agendas... org-agenda-finalize: Buffer is read-only: # #+end_src >From my reading, =org-mobile-files= will be pulled from =org-agenda-files= *or* set via that variable specifically, so I think my agenda list is fine. I originally had encryption turned on via =org-mobile-use-encryption= but commented it out to avoid another complication in trying to get this going. Anything I'm missing? Thanks, John
Re: [O] Upgrade to org 7.9.3.: clock in/out and org-odt export
Hello K. Jambunathan, (I guess Jambunathan is your sirname, but do not want to call you just "K"). one of the problems was my fault, I forgot to insert a "#+end_quote". After completed the missing comment, all went well. I encounter different problems, e.g. like an image link with missing source. The exporter will not accept this. Also I had cases, where the export will work, but LibreOffice will crash trying to load the generated .odt-file. But I guess, this has nothing to do with org. In another case the content.xml of the gererated .odt had some not closed elements (LibreOffice gave an error message), which I could fix and then repack the archive. I now do at least have some means to cope with problems. Thanks for you help. Martin Am 09.01.2013 06:31, schrieb Jambunathan K: Martin Butz writes: (2) I did some tests with the org-odt-exporter, which where successful in case of a small test file but failed with some of my daily used file. In one case the emacs message buffer seemed to contain the whole export output (pasting just a few lines here) org-odt.el - The old exporter - hasn't changed much for most of one full year. I wouldn't be surprised, if the problem is elsewhere. If you can git bisect well and good. Or You can post the BEGINNING of stack trace. (Your stacktrace doesn't seem to be from the beginning). Btw, it is not clear to me whether you are getting a backtrace. Or Try minimal Emacs: emacs -L ~/src/org-mode/lisp -L ~/src/org-mode/contrib/lisp I am willing to address whatever problem that you are seeing. -- | G. Martin Butz, m...@mkblog.org, 0421 98749324, www.mkblog.org |
[O] [PATCH] New LaTeX exporter, switch for hypersetup
Aloha all, The attached patch introduces a new option, texht, that inhibits insertion of \hypersetup when it is set to nil. I don't think I fully understand how :options-alist works. With the attached patch I was expecting to be able to use #+LATEX_HYPER: nil, but this didn't work for me. The motivation for the patch is that I'm attempting to export to a journal specification that stipulates which packages must be used and prohibits any additions---hyperref isn't on the list. All the best, Tom >From 448c9fe103d6b0f9a4ce42cbafc6d67093b7494e Mon Sep 17 00:00:00 2001 From: Thomas Dye Date: Wed, 9 Jan 2013 09:19:14 -1000 Subject: [PATCH] New LaTeX exporter: Add an option to toggle \hypersetup * contrib/lisp/org-e-latex.el: Added an option :texht that toggles insertion of \hypersetup{} in the tex file. It is possible to configure LaTeX export to omit the hyperref package where the \hypersetup command is defined. --- contrib/lisp/org-e-latex.el | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el index 79ae355..c4e7b99 100644 --- a/contrib/lisp/org-e-latex.el +++ b/contrib/lisp/org-e-latex.el @@ -29,8 +29,8 @@ ;; functions are available: `org-e-latex-publish-to-latex' and ;; `org-e-latex-publish-to-pdf'. ;; -;; The library introduces three new buffer keywords: "LATEX_CLASS", -;; "LATEX_CLASS_OPTIONS" and "LATEX_HEADER". Their value can be +;; The library introduces four new buffer keywords: "LATEX_CLASS", +;; "LATEX_CLASS_OPTIONS", "LATEX_HEADER", and "LATEX_HYPER". Their value can be ;; either a string or a symbol. ;; ;; Table export can be controlled with a number of attributes (through @@ -164,7 +164,9 @@ :options-alist ((:date "DATE" nil org-e-latex-date-format t) (:latex-class "LATEX_CLASS" nil org-e-latex-default-class t) (:latex-class-options "LATEX_CLASS_OPTIONS" nil nil t) - (:latex-header-extra "LATEX_HEADER" nil nil newline))) + (:latex-header-extra "LATEX_HEADER" nil nil newline) + (:with-hyper "LATEX_HYPER" "texht" t t) + )) @@ -1117,11 +1119,12 @@ holding export options." ;; Title (format "\\title{%s}\n" title) ;; Hyperref options. - (format "\\hypersetup{\n pdfkeywords={%s},\n pdfsubject={%s},\n pdfcreator={%s}}\n" - (or (plist-get info :keywords) "") - (or (plist-get info :description) "") - (if (not (plist-get info :with-creator)) "" - (plist-get info :creator))) + (when (plist-get info :with-hyper) + (format "\\hypersetup{\n pdfkeywords={%s},\n pdfsubject={%s},\n pdfcreator={%s}}\n" + (or (plist-get info :keywords) "") + (or (plist-get info :description) "") + (if (not (plist-get info :with-creator)) "" + (plist-get info :creator ;; Document start. "\\begin{document}\n\n" ;; Title command. -- 1.8.0.2 -- 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
Re: [O] BBDB(3) or org-contacts
Daniel Clemente wrote: > > Hi, > > El Mon, 7 Jan 2013 21:03:24 +0100 Gour va escriure: > > of bbdb-to-org-contacts converter wrote: "Once I point org-contacts at > > my newly generated file containing 831 records it make org-contacts > > really really slow down. I wouldn't care about the normal record > > searching process for just looking something up, but it makes loading a > > message in gnus unusable (5 second delay per message)." > > > > I use org-contacts with Wanderlust and I see it makes contact completion > very slow (5 seconds for each keypress, and that's with only 200 contacts). > Therefore I use its infrastructre (because I like it) but I don't run its > code. I'll explain myself: > > I keep this structure in an .org file: > > ** John von Neumann > :mathematic: >:PROPERTIES: >:EMAIL:j...@neumann.com >:END: > - some info > > > I use tags, I store e-mails, and I can write any infos, subsections, > appointments, tasks, etc. which I want; even clock in. > If I want to search for a contact, I simply open that buffer and use C-s or > do a tags search. > You can use org-capture to fill that file. > > > I strongly prefer this system over BBDB. > I use bbdb3 for my (admittedly, very simple) needs, but it can be augmented with this kind of information fairly easily: "all problems in computer science can be solved by another level of indirection" (Alan Perlis). Bind some key to org-open-at-point-global. Add another field to the bbdb entry with a link to get you to the org-contacts entry. You can even get a backlink to go from the org-contacts entry to the bbdb entry. For example: I have F7 bound to a sparse keymap for all things org, so I do (define-key f7-keymap "o" 'org-open-at-point-global) to bind org-open-at-point-global to "F7 o". I add a "link" entry to the bbdb record: , | Daniel Clemente |mail: n142...@gmail.com |link: [[file:~/lib/org/crm.org::Daniel Clemente]] ` I can then follow the link with ``F7 o'' - if the headline does not exist, it creates it and then I can modify it to make into a bbdb link: , | * [[bbdb:Daniel Clemente][Daniel Clemente]] ` making it easy to go back and forth. HTH, Nick
Re: [O] Upgrade to org 7.9.3.: clock in/out and org-odt export
Martin Butz writes: > Hello K. Jambunathan, > > (I guess Jambunathan is your sirname, but do not want to call you just > "K"). No, don't do that :-). You will be addressing my father. Confusion is arises because of differences in naming across cultures. I live in India. In the state where I am from (Tamilnadu), we usually have just a single component to the name. i.e., there is no First, Middle or Last names and I really don't know what a "Surname" is. So "Jambunathan" is my given name. "K" is my Father's name that is abbreviated to just the initials. People usually call me "Jambu". > one of the problems was my fault, I forgot to insert a > "#+end_quote". After completed the missing comment, all went well. > > I encounter different problems, e.g. like an image link with missing > source. Try to narrow it down and pass across a simple snippet to me. I will be happy to fix it. You can also look at *Messages* buffer, you may get some clues. > The exporter will not accept this. Also I had cases, where the > export will work, but LibreOffice will crash trying to load the > generated .odt-file. But I guess, this has nothing to do with org. LibreOffice crashes usually when XML files are malformed. If you don't have rnc files, (use M-x rng-what-schema RET while in an XML file) then validation wouldn't catch errors. If you are running from git, rnc files are installed for you and you can do the following right within Emacs. 1. C-x C-f test.odt. Buffer will now be in archive-mode. 2. RET on content.xml and/or any of the other XML files/ 3. C-c C-n. nXML will tell you where validation has failed. This will give you clue on how to proceed further. It is quite possible that ODT exporter creates corrupt files. You can also run the exported file through any of the OpenDOcument validators in the cloud. They seem to come and go. So I will let you google around, instead of providing any pointers. See following node in the manual (info "(org) Validating OpenDocument XML") > In another case the content.xml of the gererated .odt had some not > closed elements (LibreOffice gave an error message), which I could fix > and then repack the archive. You should report this issue. I will be happy to fix. > I now do at least have some means to cope with problems. Thanks for > you help. --
Re: [O] BBDB(3) or org-contacts
Nick Dokos wrote: > I can then follow the link with ``F7 o'' - if the headline does not > exist, it creates it and then I can modify it to make into a bbdb link: > > , > | * [[bbdb:Daniel Clemente][Daniel Clemente]] > ` > > making it easy to go back and forth. > The creation part depends on the value of org-link-search-must-match-exact-headline which is set to query-to-create (which is offered in the customization menu, but is not documented in the doc string of the variable). Unfortunately, that only allows for exact headline matches, so if you modify the headline as I suggested, it won't match and it'll ask you if you want to create it again. It's probably better to add the link in the text of the entry (or perhaps as a property of the entry). Nick
Re: [O] org-e-latex: ignoreheading is not working any more.
At Wed, 09 Jan 2013 16:17:06 +0100, Nicolas Goaziou wrote: > > Hello, > > Sebastian Hofer writes: > > > Using said code-snippet I get following error: > > > > funcall: Wrong number of arguments: (lambda (headline contents info) > > (if (member "ignoreheading" (org-element-property :tags headline)) > > contents (org-e-latex-headline headline contents info))), 2 > > Would you mind pasting again the code you're using? I have lost the > track of the thread. Sorry, it was stupid not to do it in the first place (I posted from gmane.com and it complained about too much quoted text). Anyway, here is the code I was talking about (from http://article.gmane.org/gmane.emacs.orgmode/55972): #+BEGIN_SRC emacs-lisp (defun my-e-latex-headline (headline contents info) (if (member "ignoreheading" (org-element-property :tags headline)) contents (org-e-latex-headline headline contents info))) #+END_SRC #+BEGIN_SRC emacs-lisp (org-export-define-derived-backend dissertation e-latex :translate-alist ((template . my-e-latex-headline))) (defun org-dissertation-export-to-pdf (&optional subtreep visible-only body-only ext-plist pub-dir) (interactive) (org-e-latex-compile (let ((outfile (org-export-output-file-name ".tex" subtreep pub-dir))) (org-export-to-file 'dissertation outfile subtreep visible-only body-only ext-plist #+END_SRC > > > Does this have to do with this next comment, or is this unrelated? > > > >> Also, the hook will now be called with an argument: the back-end used as > >> a symbol. > >> > >> Otherwise, the thread is still valid. > > > > If yes I couldn't figure out which hook you were talking about. Could > > you give a few more details please? > > I was talking about `org-export-before-processing-hook' or > `org-export-before-parsing-hook', but it should be unrelated to the > problem at hand. > Thanks for your help! Sebastian
Re: [O] Org-mode release 7.9.3
Nick Dokos writes: > J. David Boyd wrote: > >> Bastien writes: >> >> > da...@adboyd.com (J. David Boyd) writes: >> > >> >> Without knowing any elisp, one symptom I see is that while preparing the >> >> export, the status line says >> >> >> >> org-agenda-finalize: Buffer is read-only: # >> >> >> >> then the export stops. >> > >> > Can you test latest maint or master branch? I think I've fixed it. >> > >> > Thanks... >> >> >> Positively, where do I get that? I normally get my Orgs from >> git://repo.or.cz/org-mode.git, is that the one you would be speaking of? >> > > AFAIK, that's a mirror and may be out of date. > > The canonical place is > > git://orgmode.org/org-mode.git > > > See > > http://thread.gmane.org/gmane.emacs.orgmode/35831/focus=35893 > > and the thread that it's part of. > > Nick Thanks, that's where I'll go from now on
Re: [O] org-id garbage collection?
On Jan 9, 2013 4:21 PM, "Bastien" wrote: > > Hi James, > > James Harkins writes: > > > Since older entries are removed from Messages, these lines caused the > > duplicate ID info to be lost. > > You can tweak `message-log-max'. Ok... and the behavior of org-id-update-id-locations? Does it remove ids that aren't found in any of the org files? I guess if I have time tonight, I can parse the old and new locations files and compare the keys. I was hoping someone would know and save me the trouble. hjh
[O] [BUG]HTML export convert line-break into a space
Hi all, As the title, HTML export would generate a extra space with the option: #+OPTIONS: \n:nil at the beginning of the org file. A extra space seems not important as in English, but somewhat ugly in Chinese. So, could anyone give me some advices Thanks, Rocky Zhang
[O] How to add content from a file to a table automatically
Is there a way to detect when a file changes and then add the content from it (if any, the file could be empty) to a specified org-mode table? Each line in that file is already constructed in a way that it could be copied and pasted to the table directly (but I can change that if it makes things easier). For instance, suppose I have the table below --8<---cut here---start->8--- #+TBLNAME: FoodJanuary2013 | | *Place* | *Date* | *Debit (R$)* | *Credit (R$)* | |---+---+--+--+---| | | Some name | [2013-01-07 Seg] | 0.00 | 10.00 | |---+---+--+--+---| | # | | *Total* | 0.00 | 10.00 | #+TBLFM: @3$4=vsum(@2..@-1);%.2f::@3$5=vsum(@2..@-1);%.2f --8<---cut here---end--->8--- and a file "food.txt" that was modified externally (Dropbox sync) and now has the content below --8<---cut here---start->8--- | # | place name | [2013-01-08 Ter] | 0.00 | 12.50 | | # | other place | [2013-01-09 Qua] | 9.30 | 0.00 | --8<---cut here---end--->8--- I'd like the table to be automatically updated to include these two new lines so that it should now corresponds to --8<---cut here---start->8--- #+TBLNAME: FoodJanuary2013 | | *Place* | *Date* | *Debit (R$)* | *Credit (R$)* | |---+-+--+--+---| | | Some name | [2013-01-09 Qua] | 0.00 | 10.00 | | # | place name | [2013-01-08 Ter] | 0.00 | 12.50 | | # | other place | [2013-01-09 Qua] | 9.30 | 0.00 | |---+-+--+--+---| | # | | *Total* | 9.30 | 22.50 | #+TBLFM: @5$4=vsum(@2..@-1);%.2f::@5$5=vsum(@2..@-1);%.2f --8<---cut here---end--->8--- Adapting the formula as org-mode would automatically do if I typed enter twice before the last hline is important, but updating the total value is not (although nice), since I can do that with "C-u C-u C-c *" later when I actually see the table. After that the content of the file should be erased to prevent future additions of the same information. Any hints on how to do the different parts for this are welcome. -- Darlan Ps: I use the latest org-mode and Emacs versions (from git and bzr, respectively) in a Linux box. The motivation for all this is that I use org-mode tables to control my expenses, but I want to be able to add new expenses from my android phone. Using the "tasker" app (REALLY good) I could create a simple UI to add the expense to a file that will be synced using Dropbox (one file for each category, which corresponds to a different table). All of this is working and now I the next step is the one described in this e-mail.
Re: [O] changed?
James Harkins wrote: > It seems the behavior of and has changed. > Previously, if I selected multiple subtrees and hit M-S-right, all the > subtrees in the region would be demoted (or promoted, if I hit left > instead). Now, the behavior is identical to : only the > subtree at the point is moved. > I get different behavior from what you describe, with Org-mode version 7.9.2 (release_7.9.2-948-gab17f9 @ /home/nick/elisp/org-mode/lisp/) and also going back to the version you mention below and also 7.9.2 for good measure: M-S-right behaves as you describe (it demotes the current subtree) but M-right demotes all the headings in the region (nb: *not* subtrees necessarily, unless the region encompasses the whole subtree). AFAICT, this has been the case for ever. Cursory examination of the code confirms that this is expected behavior and checking commit logs on org.el back to Dec. 11 did not unearth anything (but I am exhausted, so you should apply appropriate levels of salinity). So maybe I'm doing things wrong, but I cannot duplicate your results and I don't see any change in bahavior since 7.9.2. Perhaps you can try it again, perhaps somebody else can confirm (your story or my story, as the case might be). HTH, Nick > Example: > > * One > * Two > * Three > * Four > > If I position the point at the beginning of the "Two" line, and then > hit C-space down down, the region encompasses both headings. I > expected to change both into second level entries. > Instead, it demotes "Four" (which is not even in the region). > > Intentional decision, or regression? I would argue the latter. The old > behavior was quite useful and I don't know how to get it back. > > My current version is: > > Org-mode version 7.9.2 (release_7.9.2-882-gf47a71.dirty @ > /home/dlm/share/org-mode.git/lisp/) >
Re: [O] org-mobile-push not generating index.org or checksum
John Hendy writes: > I just setup mobileOrg to use Dropbox. Setting up synchronizer in > mobileOrg worked fine, Dropbox login worked fine, and I chose an > existing folder named "mobile-org" to sync with. > > ... > > Thanks, > John Bastien fixed this already.. Just get the latest version, you'll be fine. Dave
[O] Usecase for inotify? Re: How to add content from a file to a table automatically
There is support for inotify in Emacs. Last I heard, people were interested in hearing use-cases. I am not sure it qualifies as a minimal use-case. But it is something that comes out of real life. So here it goes to emacs-devel... Darlan Cavalcante Moreira writes: > Is there a way to detect when a file changes and then add the content from > it (if any, the file could be empty) to a specified org-mode table? Each > line in that file is already constructed in a way that it could be copied > and pasted to the table directly (but I can change that if it makes things > easier). > > For instance, suppose I have the table below > > > #+TBLNAME: FoodJanuary2013 > | | *Place* | *Date* | *Debit (R$)* | *Credit (R$)* | > |---+---+--+--+---| > | | Some name | [2013-01-07 Seg] | 0.00 | 10.00 | > |---+---+--+--+---| > | # | | *Total* | 0.00 | 10.00 | > #+TBLFM: @3$4=vsum(@2..@-1);%.2f::@3$5=vsum(@2..@-1);%.2f > > > and a file "food.txt" that was modified externally (Dropbox sync) and now > has the content below > > > | # | place name | [2013-01-08 Ter] | 0.00 | 12.50 | > | # | other place | [2013-01-09 Qua] | 9.30 | 0.00 | > > > I'd like the table to be automatically updated to include these two new > lines so that it should now corresponds to > > > #+TBLNAME: FoodJanuary2013 > | | *Place* | *Date* | *Debit (R$)* | *Credit (R$)* | > |---+-+--+--+---| > | | Some name | [2013-01-09 Qua] | 0.00 | 10.00 | > | # | place name | [2013-01-08 Ter] | 0.00 | 12.50 | > | # | other place | [2013-01-09 Qua] | 9.30 | 0.00 | > |---+-+--+--+---| > | # | | *Total* | 9.30 | 22.50 | > #+TBLFM: @5$4=vsum(@2..@-1);%.2f::@5$5=vsum(@2..@-1);%.2f > > > Adapting the formula as org-mode would automatically do if I typed enter > twice before the last hline is important, but updating the total value is > not (although nice), since I can do that with "C-u C-u C-c *" later when I > actually see the table. > > After that the content of the file should be erased to prevent future > additions of the same information. > > Any hints on how to do the different parts for this are welcome. > > -- > Darlan > > Ps: I use the latest org-mode and Emacs versions (from git and bzr, > respectively) in a Linux box. > > > The motivation for all this is that I use org-mode tables to control my > expenses, but I want to be able to add new expenses from my android > phone. Using the "tasker" app (REALLY good) I could create a simple UI to > add the expense to a file that will be synced using Dropbox (one file for > each category, which corresponds to a different table). All of this is > working and now I the next step is the one described in this e-mail. > > --
Re: [O] How to add content from a file to a table automatically
Darlan Cavalcante Moreira writes: > Is there a way to detect when a file changes and then add the content from > it (if any, the file could be empty) to a specified org-mode table? Each > line in that file is already constructed in a way that it could be copied > and pasted to the table directly (but I can change that if it makes things > easier). > Interesting question. Here is a partial answer. If you can write a code block which reads the external file, and then outputs the desired table, then the attached Org-mode file should work for you. The following defines a function (`continually-run') which re-runs a named code block every couple of seconds. Code blocks already handle the updating of their results every time they are run. See the file itself for more information. After testing this I will warn that it caused some weirdness with my cursor in the mini-buffer. Hope this helps, #+Title: Periodically Rerun a Code Block Here's the lisp code to define a function to continually re-run a code block. Evaluate the following code block, then =M-x continually-run=, press ENTER and then type in the name of the code block to continually run (in this case "date"). #+begin_src emacs-lisp :results silent (defvar continual-runners nil "Holds running block timers (so they may be canceled).") (defun run-block-in-buffer (name buffer) (save-match-data (with-current-buffer buffer (save-excursion (org-babel-goto-named-src-block name) (with-local-quit (undo-boundary) (with-temp-message (format "re-running %s" name) (org-babel-execute-src-block)) (undo-boundary)) (defun continually-run (name) "Continually run the supplied code block name. The code block is assumed to be in the current buffer." (interactive "scode block to continually run: ") (let ((run-buffer (current-buffer))) (add-to-list 'continual-runners (run-at-time nil 5 'run-block-in-buffer name run-buffer #+end_src Here's the code block to be continually re-run. #+Name: date #+begin_src sh date #+end_src And here are the results which will be continually updated. #+RESULTS: date : Wed Jan 9 22:04:08 MST 2013 Execute the following to stop all continually updating code blocks. #+begin_src emacs-lisp :results silent (mapc #'cancel-timer continual-runners) #+end_src -- Eric Schulte http://cs.unm.edu/~eschulte
[O] Bug: Tag inheritance broken in agenda/timeline buffers [7.9.3a (release_7.9.3a-803-gf8f548 @ /home/horn/Repos/el/org-mode/lisp/)]
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. I have (all default values) org-use-tag-inheritance t org-agenda-use-tag-inheritance '(todo search timeline agenda) org-agenda-show-inherited-tags t but there are no inherited tags shown in the agenda or an org-buffer's timeline. When I press `T' on a agenda entry, the inherited tags are properly messaged in the echo area, though. I'm sure it used to work, but I'm not sure when it stopped working. When I find some time, I can try bisecting. BTW: What's the difference between `org-agenda-use-tag-inheritance' and `org-agenda-show-inherited-tags'? Is there a difference between "using" and "showing" tag inheritance? Emacs : GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.2) of 2013-01-01 on thinkpad Package: Org-mode version 7.9.3a (release_7.9.3a-803-gf8f548 @ /home/horn/Repos/el/org-mode/lisp/) 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) outline-minor-mode-hook '(th-outline-minor-mode-init) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-gnus-prefer-web-links t org-special-ctrl-k t org-occur-hook '(org-first-headline-recenter) org-src-tab-acts-natively t org-metaup-hook '(org-babel-load-in-session-maybe) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-log-done 'time org-confirm-shell-link-function 'yes-or-no-p org-complete-tags-always-offer-all-agenda-tags t org-id-link-to-org-use-id t org-finalize-agenda-hook '(th-org-agenda-to-appt) org-columns-default-format "%50ITEM %TODO %ALLTAGS %SCHEDULED %DEADLINE" 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-agenda-restore-windows-after-quit t org-special-ctrl-a/e 'reversed org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-agenda-custom-commands '(("n" "Next 21 days" agenda "" ((org-agenda-span 21))) ("^" "Calfw Month Calendar" th-calfw-open-calendar)) org-return-follows-link t org-agenda-time-leading-zero t org-capture-templates '(("n" "NORMAL" entry (file "/home/horn/Repos/org/remember.org") "* %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i") ("t" "TODO" entry (file "/home/horn/Repos/org/remember.org") "* TODO %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i") ("i" "IDEA" entry (file "/home/horn/Repos/org/remember.org") "* IDEA %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i") ) 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 '(th-org-mode-init #[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-refile-targets '((org-agenda-files :maxlevel . 5)) org-attach-method 'mv org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-refile-use-outline-path 'file org-directory "/home/horn/Repos/org" org-enforce-todo-dependencies t 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-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-finalize-hook '(th-org-agenda-to-appt) outline-regexp "\\*+ " org-attach-directory "/home/horn/Repos/org/attachments" org-archive-default-command 'org-archive-set-tag org-refile-allow-creating-parent-nodes 'confirm org-todo-keywords '((sequence "TODO(t)" "STARTED(s)" "DELEGATED(g)" "IDEA(i)" "|" "DONE(d)" "CANCELLED(c)") ) org-modules '(org-ica