[O] test failure
``make test'' fails on just-updated org: Org-mode version 7.9.2 (release_7.9.2-725-ge55681 @ /home/nick/elisp/org-mode/lisp/) with the following backtrace: , | Test test-org-src/blank-line-block backtrace: | signal(user-error ("No special environment to edit here")) | user-error("No special environment to edit here") | org-edit-special() | (prog1 (goto-line 3) (org-edit-special) (insert "blah") (org-edit-sr | (progn (org-mode) (progn (insert "\n#+begin_src emacs-lisp\n\n#+end_ | (unwind-protect (progn (org-mode) (progn (insert "\n#+begin_src emac | (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn | (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-b | (lambda nil (let ((temp-buffer (generate-new-buffer " *temp*"))) (sa | byte-code("\306\307!q\210\310\216\311 \312\216\313\314\315\316\3 | ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc | byte-code("\306\307!\211\211r\310\311!q\210\312 d\313\223)L\210)\3 | ert-run-test([cl-struct-ert-test test-org-src/blank-line-block "Edit | ert-run-or-rerun-test([cl-struct-ert--stats "\\(org\\|ob\\)" [[cl-st | ert-run-tests("\\(org\\|ob\\)" #[(event-type &rest event-args) "\306 | ert-run-tests-batch("\\(org\\|ob\\)") | ert-run-tests-batch-and-exit("\\(org\\|ob\\)") | (let ((org-id-track-globally t) (org-id-locations-file (convert-stan | org-test-run-batch-tests() | call-interactively(org-test-run-batch-tests nil nil) | command-execute(org-test-run-batch-tests) | command-line-1(("--eval" "(add-to-list 'load-path \"./lisp\")" "--ev | command-line() | normal-top-level() | Test test-org-src/blank-line-block condition: | (user-error "No special environment to edit here") |FAILED 299/333 test-org-src/blank-line-block ` I thought Michael Brand's problem described in http://thread.gmane.org/gmane.emacs.orgmode/63523 might have something to do with it, but wrapping a progn around the forms of the test did not make any difference. When I simulate the test by hand, I don't get the error, so this seems to be another of those errors that only surface when the test suite is run in batch mode. BTW, why in the above is the following a prog1, rather than a progn? (prog1 (goto-line 3) (org-edit-special) (insert "blah") (org-edit-sr Nick
Re: [O] PDF docs from Org-mode: not valid PDF?
On Sat, Dec 15, 2012 at 12:37 AM, Achim Gratz wrote: > Michael Hannon writes: > > To proceed with this, I need to generate a series of PDF documents and > have > > the boss's admin assistant try to print them. Unfortunately, I've been > > swamped with some other stuff this week and haven't had a chance to work > on > > this. > > Would it be possible that you first check what that error really is? > The one thing that comes to mind is that your PDF maybe references fonts > that are not available and the easiest solution would be to either > change to standard fonts or embed them in the PDF (if the license is > permitting that). > As far as I know, PDF/A-1a is not meant for universal printing, instead it is meant for accessibility. The current stock versions of pdfTeX distributed are not capable of producing accessible PDF as per PDF/A-1a specs. Main problem is that TeX does not use a space character and as such finding word boundary becomes difficult in pdf's created by pdfTeX; read aloud applications will fail to voice render PDF's by pdfTeX. However, if the OP is happy with a PDF as per PDF/A-1b, of course, pdfx.sty distributed with TeXLive (and available at CTAN also) is capable of creating. This is for web reading and archival purposes. If universal printing is what is wanted, then the spec to follow is PDF/X-1a. Again, pdfx.sty does help to generate this too. I think, it is not a big deal to extend pdfx package to generate pdf's compliant to later specs like PDF/X-2, 3, ... (all for printing purpose). Later specs have some advantages too like inclusion of icc color profile is not mandatory, instead url will do. I think, orgmode can even help to create a small XMP meta file (for Dublin Core metadata compliance) needed by pdfx package while creating standards compliant PDF's which at the moment is created by pdfTeX in an unsatisfactory fashion. Best regards -- Radhakrishnan
Re: [O] org-mobile-push error produces wrong-type-argument error
Conor Nash writes: > When I try to run org-mobile-push I get an error in the minibuffer: "Wrong > type argument: listp, todo". I am getting the same error. I'm using the Org mode that comes with Emacs (“GNU Emacs 23.4.1”). The backtrace from the error is: = Debugger entered--Lisp error: (wrong-type-argument listp "TODO") org-mobile-create-index-file() byte-code("\301 \210\302 \210\303\304!\210\305\306!\210\307\310 \210)\305\311!\210\312 \210\305\313!\210\314 \210\305\315!\210\316 \210\305\317!\210\320 \210\303\321!\207" [inhibit-redisplay org-mobile-check-setup org-mobile-prepare-file-lists run-hooks org-mobile-pre-push-hook message "Creating agendas..." t org-mobile-create-sumo-agenda "Creating agendas...done" org-save-all-org-buffers "Copying files..." org-mobile-copy-agenda-files "Writing index file..." org-mobile-create-index-file "Writing checksums..." org-mobile-write-checksums org-mobile-post-push-hook] 2) org-mobile-push() call-interactively(org-mobile-push t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) = What setting can I change to fix this? I would prefer to continue using the same Emacs and Org mode as I'm not the only one using these programs on the machine. -- \ “When we talk to God, we're praying. When God talks to us, | `\ we're schizophrenic.” —Jane Wagner, via Lily Tomlin, 1985 | _o__) | Ben Finney
Re: [O] [ANN] Asynchronous export for new exporter
Nicolas Goaziou writes: > t...@tsdye.com (Thomas S. Dye) writes: > >> Move point to the result and press 'd'. > > Or 'C' to clear them all. > >> I tangle the initialization file from my document. Can you show me how >> to configure asynchronous export to run org-babel-tangle-file before >> export to insure that the initialization file is always up-to-date? > > You could try to add a function to `org-export-before-processing-hook' > which would tangle your file and load it. Thanks, I'll give that hook a try. Asynchronous export is a real help, especially with long documents full of babel source blocks. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] [ANN] Asynchronous export for new exporter
t...@tsdye.com (Thomas S. Dye) writes: > Move point to the result and press 'd'. Or 'C' to clear them all. > I tangle the initialization file from my document. Can you show me how > to configure asynchronous export to run org-babel-tangle-file before > export to insure that the initialization file is always up-to-date? You could try to add a function to `org-export-before-processing-hook' which would tangle your file and load it. Regards, -- Nicolas Goaziou
Re: [O] Include single values from a org-table into a code-block
Florian Adamsky writes: > Hello, > > at the moment I'm drafting a paper and I would like to insert values > from a org-table into a code-block. After searching a bit a found a mail > thread from 2010 [1] which says I have to do the following: > > src_emacs-lisp[:var d=test-table[3,1]]{d} > > This works fine but only in non code-blocks. But I want to insert these > values in a LaTeX block, since I want to generate a pgfplot. Is there > another way to get values from a org-table? Or is it possible to combine > the above code with a Macro? In the following you'll find an example: > > #+Begin_LaTeX > \begin{tikzpicture} > %% pgfplot code > \addplot coordinates {(0, src_emacs-lisp[:var d=test-table[3,1]]{d})}; > \end{tikzpicture} > #+End_LaTeX > > Thanks in advance. > > Best, > Florian > > [1] > http://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01104.html > You can use a latex code block (however you must enable support for evaluating latex code blocks). See the attached example. #+Options: toc:nil * Example Here is a table. #+Caption: I am the table. #+name: a-table | 1 | | 2 | | 3 | | 4 | #+begin_src latex :var foo=a-table[0,0] The first value of this table is foo. #+end_src -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] babel perl issue
Hi Eric, Eric Schulte writes: > Would that feel cleaner to you? I "feel" so. Please let me think more about it, and thanks to be open to this possibility. I'm confident we can keep a good balance between conveniency (when editing various ob* files) and maintainability (which should be judged not only from the current maintainer point of view but also /per se/.) I'm busy all day tomorrow, I'll think about this back on sunday. Thanks! -- Bastien
[O] Include single values from a org-table into a code-block
Hello, at the moment I'm drafting a paper and I would like to insert values from a org-table into a code-block. After searching a bit a found a mail thread from 2010 [1] which says I have to do the following: src_emacs-lisp[:var d=test-table[3,1]]{d} This works fine but only in non code-blocks. But I want to insert these values in a LaTeX block, since I want to generate a pgfplot. Is there another way to get values from a org-table? Or is it possible to combine the above code with a Macro? In the following you'll find an example: #+Begin_LaTeX \begin{tikzpicture} %% pgfplot code \addplot coordinates {(0, src_emacs-lisp[:var d=test-table[3,1]]{d})}; \end{tikzpicture} #+End_LaTeX Thanks in advance. Best, Florian [1] http://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01104.html
Re: [O] PDF docs from Org-mode: not valid PDF?
Michael Hannon writes: > To proceed with this, I need to generate a series of PDF documents and have > the boss's admin assistant try to print them. Unfortunately, I've been > swamped with some other stuff this week and haven't had a chance to work on > this. Would it be possible that you first check what that error really is? The one thing that comes to mind is that your PDF maybe references fonts that are not available and the easiest solution would be to either change to standard fonts or embed them in the PDF (if the license is permitting that). Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra
Re: [O] When facts change
Rasmus writes: When the facts change, I change my mind. What do you do, sir? >>> >>> If the facts have been changing once, I can wait for them to change >>> again. Or they may not even be facts after all. :-) > > Perhaps that opinion is too dear for some practitioner, as Lord Keynes > was when he allegedly spoke those words. What if the 'facts' only > converge back to your preferred state in the long run, when we are all > dead? :) The original quote[1] is really a lot better and I have much more trust in its accuracy than the later quote you gave: "When my information changes, I alter my conclusions. What do you do, sir?" I don't know why it was altered to the second, I'll give that it is punchier at first sight due to that double "change", but it makes a lot less sense. It may have been saved if it started "When I learn of new facts,…", but that loses some punch again. [1] https://en.wikiquote.org/wiki/John_Maynard_Keynes Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] babel perl issue
Bastien writes: > Eric Schulte writes: > >> This patch is still broken > > (I don't know why ~$ git format-patch master did not produce an > applicable patch.) > > These three ones are applicable against master/68d4de2. > > Bare in mind this is just meant as a proof it "works", we can > rework the patches later on. These applied and I now see what they are doing. This is equivalent to moving all of the core Babel libraries into a single massive ob.el. I explicitly like the separation of functional units of Babel into separate files, and this sort of refactoring would make Babel harder to maintain in the future. What do you find so unappealing about the existence of ob-core.el to justify such drastic proposals? Perhaps it would be possible to take all of those functions which are defined in ob-core *and* are required by other components of Babel, and move them to an ob-util.el file. Then we could move the remaining public facing functions of Babel which are not used in any of it's components (e.g., org-babel-execute-src-block) and move them into ob.el. Would that feel cleaner to you? Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte
[O] display outline headings up to certain level in search-view
Hi, Let's say I have an org file structured like this * Project 1 ** Tasks foo ** Ideas * Project 2 ** Tasks bar When I search 'foo' I'd like the agenda search-view to display 'Project 1' instead of the closer, but less informative 'Tasks' The attached patch solves this by adding a configuration parameter that sets the maximum outline level for the headings displayed in the results of a search-view. This way, I can have a custom search on the above org file with org-agenda-search-view-max-outline-level set to 1. Abdó Roig. >From 830acc3fe6e7235618df080f7b6878234cb831c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abd=C3=B3=20Roig-Maranges?= Date: Wed, 12 Dec 2012 20:52:40 +0100 Subject: [PATCH] set max level to display in search-view results * lisp/org-agenda.el (org-search-view) Adds the config setting org-agenda-search-view-max-outline-level that limits the depth of items on an agenda-search-view results. When a match is found, displays the innermost outline heading containing the match such that its level does not exceed org-agenda-search-view-max-outline-level. --- lisp/org-agenda.el | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 5343887..0b85b9c 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -1320,6 +1320,12 @@ When nil, they may also match part of a word." :version "24.1" :type 'boolean) +(defcustom org-agenda-search-view-max-outline-level nil + "Maximum outline level to display in search view." + :group 'org-agenda-search-view + :version "24.3" + :type 'integer) + (defgroup org-agenda-time-grid nil "Options concerning the time grid in the Org-mode Agenda." :tag "Org Agenda Time Grid" @@ -4397,10 +4403,22 @@ in `org-agenda-text-search-extra-files'." (goto-char (max (point-min) (1- (point (while (re-search-forward regexp nil t) (org-back-to-heading t) + (while (and org-agenda-search-view-max-outline-level + (> (org-reduced-level (org-outline-level)) org-agenda-search-view-max-outline-level) + (forward-line -1) + (outline-back-to-heading t))) + (skip-chars-forward "* ") (setq beg (point-at-bol) beg1 (point) - end (progn (outline-next-heading) (point))) + end (progn + (outline-next-heading) + (while (and org-agenda-search-view-max-outline-level + (> (org-reduced-level (org-outline-level)) org-agenda-search-view-max-outline-level) +(forward-line 1) +(outline-next-heading))) + (point))) + (catch :skip (goto-char beg) (org-agenda-skip) -- 1.8.0.2
[O] Builds on OSX fails recently
On OSX 10.8.2 with Emacs 24.2.1 when trying make up2 I get Ran 334 tests, 333 results as expected, 1 unexpected (2012-12-14 18:29:01+0100) 5 expected failures 1 unexpected results: FAILED test-org-src/blank-line-block make[1]: *** [test-dirty] Error 1 make: *** [up2] Error 2 Yestereday, building worked without this problem.
Re: [O] Recent changes to the new exporter?
Hello, Alan Schmitt writes: > I compiled the new exporter recently (to test the asynchronous > export), but since then a file I was working on can no longer be > exported using the koma exporter. I'm getting the following error: > > byte-code: Before first headline at position 4046 in buffer > 2012-12-12-Cwrk-Recommandation-Qualification_Michaël_Lienhardt.org I forgot to add support for asynchronous export in org-koma-letter.el. This should be fixed. Could you pull and try again? Regards, -- Nicolas Goaziou
Re: [O] babel perl issue
Bastien writes: > Eric Schulte writes: > >> This patch doesn't apply for me with "git am" to the HEAD of the repo so >> I can't test it directly > > Please try this new one against current db51b8 commit in master. > This patch is still broken org-mode$ git checkout db51b8 -b crude Switched to a new branch 'crude' org-mode$ git am /tmp/0001-Crude-patch-to-simplify-dependencies.patch Applying: Crude patch to simplify dependencies. error: patch failed: lisp/ob-exp.el:23 error: lisp/ob-exp.el: patch does not apply Patch failed at 0001 Crude patch to simplify dependencies. The copy of the patch that failed is found in: /home/eschulte/.emacs.d/src/org-mode/.git/rebase-apply/patch When you have resolved this problem, run "git am --resolved". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". -- Eric Schulte http://cs.unm.edu/~eschulte
[O] prevent drawer from folding for specific subtree
Hi all! I have subtrees which I do clock regularly, never closing them. I always do have to adjust the clockings manually. When I am bookmark-jumping to one of these subtrees and then clock in the clock drawer is always closed - which normally is fine. But in this case I would like to maybe have a property signaling the drawer to open as soon as I do clock the task in. Any idea? Thanks, Rainer
Re: [O] inline TODO?
That is exactly what I wanted! Thanks. John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Fri, Dec 14, 2012 at 10:27 AM, Rainer M Krug wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 14/12/12 15:53, John Kitchin wrote: >> Is there a way to have a TODO item in an org-file that is not in a headline >> and that shows up >> in the agenda? > Hi > > Look for inline tasks: > http://stackoverflow.com/questions/11718401/how-to-use-todo-tags-in-org-mode-without-defining- > headlines > > Does this help? > > Never used them, but always wanted to... > > Cheers, > > Rainer > >> >> I have been using org-mode to write papers, and often in the middle of a >> section I want to make >> a TODO item, right where something needs to be done, and I do not want to >> make a new heading >> there as it changes the overall organization (even though it is temporary >> and will be removed). >> Something like this would be great: >> >> #+TODO: finish this section DEADLINE: <2012-12-14 Fri> >> >> >> At the moment I can search for these lines, but it would be nice if they >> showed up in the >> agenda. Is there any way to do this that I am overlooking? >> >> Thanks, >> >> j >> >> >> Here is a simple usage for example. >> >> >> * introduction >> >> Lots of text. blah blah #+TODO: finish this section DEADLINE: <2012-12-14 >> Fri> >> >> end of introductory text that is still in the introduction section. >> >> * Methods yadayadaya. >> >> ** TODO I do not like this because subsequent text is in a subsection >> >> we used this method to do that. >> >> * Conclusions The end. >> >> John >> >> --- John Kitchin Associate Professor Doherty >> Hall A207F >> Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA >> 15213 >> 412-268-7803 http://kitchingroup.cheme.cmu.edu >> >> > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ > > iEYEARECAAYFAlDLRW0ACgkQoYgNqgF2egq3zgCfUH2ZKnpcoJ9BQOv4TpzGNMNQ > QhwAn2wALy9ARN7Iwb4Mw1/zcqkEsMLZ > =8JN0 > -END PGP SIGNATURE-
Re: [O] clocking ongoing items
Am 14.12.2012 07:51, schrieb Rainer Stengele: > Hi all! > > I wonder how others are clocking ongoing isues, which are not really todos > but more like "issues" collecting clocked time for work done regularly. > Example: Reading mail and organising daily priorities of tasks. > This "todo" will not finish very soon. > I want this item to be clocked daily but do not want it to look like a > standard todo. > How do others handle this? I remember Bernt once had a tag "ONGOING" which he > dropped again. > > Cheers, > Rainer > > > Ok, I surrender .. I force myself thinking that this is also a todo .. What I did was to prevent changing the TODO status to NEXT when clocking in, as there is no real next action. Thanks, Rainer
Re: [O] inline TODO?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/12/12 15:53, John Kitchin wrote: > Is there a way to have a TODO item in an org-file that is not in a headline > and that shows up > in the agenda? Hi Look for inline tasks: http://stackoverflow.com/questions/11718401/how-to-use-todo-tags-in-org-mode-without-defining- headlines Does this help? Never used them, but always wanted to... Cheers, Rainer > > I have been using org-mode to write papers, and often in the middle of a > section I want to make > a TODO item, right where something needs to be done, and I do not want to > make a new heading > there as it changes the overall organization (even though it is temporary and > will be removed). > Something like this would be great: > > #+TODO: finish this section DEADLINE: <2012-12-14 Fri> > > > At the moment I can search for these lines, but it would be nice if they > showed up in the > agenda. Is there any way to do this that I am overlooking? > > Thanks, > > j > > > Here is a simple usage for example. > > > * introduction > > Lots of text. blah blah #+TODO: finish this section DEADLINE: <2012-12-14 Fri> > > end of introductory text that is still in the introduction section. > > * Methods yadayadaya. > > ** TODO I do not like this because subsequent text is in a subsection > > we used this method to do that. > > * Conclusions The end. > > John > > --- John Kitchin Associate Professor Doherty > Hall A207F > Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA > 15213 > 412-268-7803 http://kitchingroup.cheme.cmu.edu > > -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlDLRW0ACgkQoYgNqgF2egq3zgCfUH2ZKnpcoJ9BQOv4TpzGNMNQ QhwAn2wALy9ARN7Iwb4Mw1/zcqkEsMLZ =8JN0 -END PGP SIGNATURE-
[O] inline TODO?
Is there a way to have a TODO item in an org-file that is not in a headline and that shows up in the agenda? I have been using org-mode to write papers, and often in the middle of a section I want to make a TODO item, right where something needs to be done, and I do not want to make a new heading there as it changes the overall organization (even though it is temporary and will be removed). Something like this would be great: #+TODO: finish this section DEADLINE: <2012-12-14 Fri> At the moment I can search for these lines, but it would be nice if they showed up in the agenda. Is there any way to do this that I am overlooking? Thanks, j Here is a simple usage for example. * introduction Lots of text. blah blah #+TODO: finish this section DEADLINE: <2012-12-14 Fri> end of introductory text that is still in the introduction section. * Methods yadayadaya. ** TODO I do not like this because subsequent text is in a subsection we used this method to do that. * Conclusions The end. John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu
[O] Recent changes to the new exporter?
Hello, I compiled the new exporter recently (to test the asynchronous export), but since then a file I was working on can no longer be exported using the koma exporter. I'm getting the following error: byte-code: Before first headline at position 4046 in buffer 2012-12-12-Cwrk-Recommandation-Qualification_Michaël_Lienhardt.org The file looks something like this #+BEGIN_SRC org #+latex_class: my-letter-fr #+lco: InriaRennesFR #+title: Lettre de Recommandation pour Michaël Lienhardt. #+opening: ~ #+closing: ~ bunch of text (with no headline) #+END_SRC Has something changed that could result in this error? Thanks, Alan
[O] retrieve value of a property from a property-drawer (was: org-sync doesn't work with recent org-element.el)
Hej, org-element-wizards, i found that the following use of org-element-map retrieves reliably the value of a key from a property drawer. is such a use, especially the temporary overriding of the headline's type to org-data, to be considered allowed usage or rather a hack and thus to be avoided? * First headline :PROPERTIES: :url: http://orgmode.org/ :END: #+begin_src emacs-lisp (defun retrieve-property-value (headlineitem key) (org-element-map (cons 'org-data (cdr headlineitem)) 'node-property (lambda (x) (and (string= (org-element-property :key x) key) (org-element-property :value x))) nil t 'headline)) (let* ((doc (org-element-parse-buffer)) (firstheadline (org-element-map doc 'headline 'identity nil t))) (retrieve-property-value firstheadline "url")) #+end_src #+RESULTS: : http://orgmode.org/ thanks for any comments, jonas
Re: [O] PDF docs from Org-mode: not valid PDF?
LibreOffice's export to PDF has this option File->Export as PDF->PDF/A-1a If you change the preferences in the UI, I am not sure whether it will kicked in with command line export. I will be interested in knowing what you find with the above option. ps: You can export to PDF via OpenDocument/ODT export. See or search for `org-odt-preferred-document-format' or `org-e-odt-preferred-document-format' in the manual/mailing list. > Greetings. The woman that runs our research group complains that she is > unable to print PDF documents that a couple of us in the group send her, and > that the two of us are the only source of such troublesome documents. > > It occurred to me that the two of us are the only ones in the group that use > Emacs Org-mode to produce PDF documents. > > I know there are web sites that can validate (i.e., measure conformance to the > standard of) HTML documents. I wondered if there might be something similar > for PDF documents. > > I found the following site: > > http://www.validatepdfa.com/ > > I don't much about the PDF standard, and I don't know anything about the > reliability of this site, but I've found that PDF documents that I generate > using Org-mode and send to that site come back with a boatload of validation > errors. > > I've appended a sample Org-mode file that generates errors when I try to > validate it. I've appended details of my configuration below the sample file. > > I should mention that I have no trouble viewing the PDF file (using "evince" > on my Fedora system) or printing this file (to a Brother b/w printer). Ditto > for > my colleague on a MacOS X system. Hence, I personally have no reason to > complain. But there's that nagging issue with the boss. > > Can anybody comment as to what I should expect in the way of validation? > And/or are there any settings that would affect this behavior? I.e., > something like: > > (setq org-export-pdf-use-strict t) > > Thanks. > > -- Mike > > ## Beginning of sample Org-mode file > > #+PROPERTY: session *R* > #+PROPERTY: cache yes > > #+PROPERTY: results output verbatim > #+PROPERTY: tangle yes > > > > * This is a test > > > #+BEGIN_SRC R :exports both > > x <- 7.2 > y <- 3 > > print(x * y) > > > #+END_SRC > > > #+RESULTS: > : 21.6 > ## End of sample Org-mode file > > Emacs : GNU Emacs 24.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.13) > of 2012-11-17 on buildvm-30.phx2.fedoraproject.org > Package: Org-mode version 7.9.2 (release_7.9.2-656-g2f9dda @ > /usr/local/emacs.d/org-mode/org-devel/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) > org-speed-command-hook '(org-speed-command-default-hook > org-babel-speed-command-hook) > org-export-html-after-blockquotes-hook > '(org-special-blocks-convert-html-special-cookies) > 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-export-latex-after-blockquotes-hook > '(org-special-blocks-convert-latex-special-cookies) > 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-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 '(#[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-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-babel-tangle-lang-exts '(("C++" . "cpp") ("latex" . "tex") > ("python" . "py") ("lisp" . "lisp") >
Re: [O] S-TAB cycling opening archive subtrees
Vincent Beffara writes: > When cycling visibility of a subtree using TAB, subtrees with the > :ARCHIVE: tag are not opened, and that is a very good thing. But when > I cycle a buffer globally using S-TAB, their contents are shown, which > feels like the wrong thing to do ... Interesting enough, the subtree is getting closed by org-cycle-hide-archived-subtrees (in org-cycle-hook) at first, but re-opened by a later function: org-cycle-hide-inline-tasks , which calls (hide-sublevels (1- org-inlinetask-min-level)) . Its docstring says "Re-hide inline task when switching to 'contents visibility state.", so I guess it should only hide things, not the opposite. Memnon
[O] S-TAB cycling opening archive subtrees
Hi, When cycling visibility of a subtree using TAB, subtrees with the :ARCHIVE: tag are not opened, and that is a very good thing. But when I cycle a buffer globally using S-TAB, their contents are shown, which feels like the wrong thing to do ... same if I do "C-u TAB" instead. "C-u S-TAB" does the right thing, which is cycling globally without opening archived subtrees. Is that normal? If so, how do I set things up so that S-TAB does what I expect? Thanks, /vincent PS: Using release_7.9.2-722-g2dbd84 on emacs 24.2.1 -- Vincent Beffara
Re: [O] clocking ongoing items
Rainer Stengele writes: > I wonder how others are clocking ongoing isues, which are not really > todos but more like "issues" collecting clocked time for work done > regularly. Example: Reading mail and organising daily priorities of > tasks. *** STRT [#C] Reading Mail/News <2012-12-14 Fr .+1d> [...] *** STRT [#C] Tagesplanung <2012-12-14 Fr .+1d> At first, I, too, thought these 'issues' are different, but I do not anymore. Memnon
Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss
Le Wang writes: >;; Move marker with inserted text for case when src block is >;; just one empty line, i.e. beg == end. > - (end (copy-marker (make-marker) t)) > + (end (let ((marker (make-marker))) > + (set-marker-insertion-type marker t) > + marker)) There is a (make-marker) in both case, the first one is okay. Best, -- Bastien
Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss
Hi Le, Le Wang writes: > If I press C-' before on a line BEFORE "+begin_src ...", then doing > comparison with ">=" with beg==nil and end==nil causes > "wrong-type-argument" error. I think the check should happen before, see how I did it here: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=81d5eb > "test-org-src/point-outside-block" test case should fail, but because > "wrong-type-argument" is also an error, it is passing. :( > > I've changed "(error ..." to raise an org-src specific error to > facilitate testing. Commits rebased to master are attached. Using signal makes sense if our testing suite uses it, yes. Can you merge your patches and provide a ChangeLog when the change affects org-src.el (and possibly test-org-src.el too)? Thanks a lot! -- Bastien
Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss
On Fri, Dec 14, 2012 at 8:04 AM, Bernt Hansen wrote: > I get the following error when doing C-c ' in a table > > --8<---cut here---start->8--- > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) > org-edit-src-code() > org-edit-special() > call-interactively(org-edit-special nil nil) > --8<---cut here---end--->8--- I have repro of the issue. I didn't take into account the full usage org-edit-special. I'll redo this with new tests within the next few hours. -- Le
Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss
> - (if (>= end beg) temp > - (goto-char beg) > - (insert "\n") > - (org-edit-src-find-region-and-lang > + (if (and beg end) > + (if (>= end beg) > + temp > + (goto-char beg) > + (insert "\n") > + (org-edit-src-find-region-and-lang)) > + (error "Point not in src block." Note: this is (if (and beg end (>= end beg)) ... ...) Let's try to optimize such tiny refactoring :) -- Bastien
Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss
Hi Bernt, Bernt Hansen writes: > I get the following error when doing C-c ' in a table > > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) > org-edit-src-code() > org-edit-special() > call-interactively(org-edit-special nil nil) I fixed this, thanks! -- Bastien
Re: [O] org-export-docbook-xsl-fo-proc-command
Bastien altern.org> writes: > > trammi gmx.de> writes: > > > Bastien altern.org> writes: > > > >> Did you check C-h v org-export-docbook-xslt-proc-command RET ? > >> > > Yes, but I don't have this variable? > > I think it's here since org-docbook.el is in Org. > > Did you (require 'org-docbook) ? > Sorry, now I have org-export-docbook-xslt-proc-command. I want to use Saxon as xslt processor. How to set it at org-docbook.el for Win32? Thanks!
Re: [O] org-sync doesn't work with recent org-element.el
hi all, hi aurélien, then, i suppose the answer to my main question, whether someone has started updating org-sync, is a no and i'll thus try. i'm not too proficient in elisp yet, so any hints of a clean transition are appreciated. i plan to alter any parts, which read/write cons lists (i mean those ( key . value ) pairs which used to go under the :properties key) to node-property elements directly. if you think a bit of that chore could be abstracted away in a function, let me know. cheers, jonas
Re: [O] clocking ongoing items
Hi Rainer, Rainer Stengele writes: > Hi all! > > I wonder how others are clocking ongoing isues, which are not really > todos but more like "issues" collecting clocked time for work done > regularly. Example: Reading mail and organising daily priorities of > tasks. This "todo" will not finish very soon. I want this item to be > clocked daily but do not want it to look like a standard todo. How do > others handle this? I remember Bernt once had a tag "ONGOING" which he > dropped again. > > Cheers, > Rainer > > > Your use case sounds like a good fit for the `org-habit' module. See (info "(org) Tracking your habits"). A habit is like a periodic TODO which you mark DONE each time you complete it for the day, but it resets itself to being "undone" again after an interval of time passes. Habits also come with a nice display in agenda views to show you how often you actually do something. (I use this feature to track my daily meditation habits, for example). This way, together with org's time clock, the task is periodic, but the clock times and relevant notes can still all be kept in one place and the task can be represented as a single headline. Best, -- WGG I use grml (http://grml.org/)