Re: [O] The org paper manual - tools used
Marcelo de Moraes Serpa writes: > Hey list, Hello. > The paper org manual was an exciting idea. I might buy one soon. > I was wondering how was the editing work involved in turning it > into paper-published book? What tools did you guys use? TeXinfo, I think. -- Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 pgpCDGkNS1JE9.pgp Description: PGP signature
Re: [O] Recursive org-agenda-files
My understanding is that you want a file that gets moved into the active directory to be automatically included in the agenda? >From worg: You can simply include the directory (as one of the items) in the value of the variable org-agenda-files: (setq org-agenda-files '("/my/special/path/org/active/")) There is another way of accomplishing the same end: (setq org-agenda-files (file-expand-wildcards "/my/special/path/org/active/*.org")) The other files/directories could be in the extended text search if needed but not part of the automatic agenda. Just my two cents. Not that playing with agenda hooks might have some advantages. Matt Sauer On Tue, Oct 4, 2011 at 9:12 AM, Nick Dokos wrote: > Neilen Marais wrote: > >> Jambunatha, >> >> >> > > Have you considered adding it to say org-mode-hook? >> > >> > Seems like a Wrong suggestion to me. >> > >> > Try using `C-c [' to add the current org file. I am assuming that org >> > files are created by hand and not by some daemon that spits out agenda >> > files when you are away from emacs. >> >> Not a daemon, no, but I do tend to move files around. I.e. I'll move a >> project >> file/dir from my "someday" folder to my "active" folder. I would like to >> avoid >> any further manual steps to get it integrated in my agenda. >> >> Is there a hook function that gets called every time an agenda view is >> opened or >> refreshed? I could probably use that to update the agenda list. >> > > Seek and ye shall find: > > C-h v org-agenda--hook RET > > will list all the matching hooks. Which one to choose? I'll leave that up > to the interested reader :-) Or try > > C-h v org--hook RET > > to get a list of *all* the org hooks. > > Nick > > > > >
Re: [O] [ANN] Org Mode parser v0.0.1 for NodeJs
This.is.simply.awesome! I was procrastinating on this as well. There's one for ruby as well which I've been playing with, this could give me some inspiration to contribute back. Keep up the great work, - Marcelo. On Tue, Oct 4, 2011 at 4:34 PM, Giovanni Giorgi wrote: > Hi all, > I have just published my org-mode parser for the node-js javascript based > server: > > http://gioorgi.com/org-mode-parser/ > > It is a Javascript parser for the Emacs Org-mode file format. > > I use org-mode as a database for some programs (like games) where I need to > mix meta information to a bunch of long textual data. > > I wrote it because I was unable to find an implementation for my needs. > > I like too much org-mode to let nodejs without a parser, and as expected > the simple org-mode format was easy to parse. > I started from the Charles Cave's OrgNode python parser, but I need to > modify it a lot because of JavaScript different nature. > > Please feel free to give me your feedback > > --- > Gio's Blog http://gioorgi.com > >
[O] Storing log notes at capture (was Re: feature request for org-store-log-note)
John J Foerch writes: > I use org to manage TODO lists in which I want to keep time stamps for > the creation of an item, and for each state change. To be as clear as > possible, I'll just paste the portion of my config that affects how > TODOs work: > > (setq org-treat-insert-todo-heading-as-state-change t > org-log-into-drawer t > org-log-done nil) > ;;; [snip] > > (setcdr (assq 'state org-log-note-headings) > "State -> %s %t") > > This logs each state change (including creation) into the LOGBOOK > drawer. It's great. I thought so too. I'd like to record creation in the logbook drawer when I capture a TODO and have adjusted my templates to do so. They just include the logbook drawer literally, like so "* TODO %? :LOGBOOK: - State \"TODO\" from \"\" %U :END: %a %i" I thought that org-treat-insert-todo-heading-as-state-change would be able to create the drawer for me but no such luck. Duh, capturing is not a state change now is it. Anyway, is there a smarter way to log creation at capture? Thanks in advance, -- Olaf Meeuwissen, LPIC-2 FLOSS Engineer -- AVASYS CORPORATION FSF Associate Member #1962 Help support software freedom http://www.fsf.org/jf?referrer=1962
[O] `org-agenda-date-later' (was: `f') in agenda view
on Tue Oct 04 2011, John Wiegley wrote: >> Dave Abrahams writes: > > >> It always strikes me as odd that `f' in agenda view moves the item forward >> by a day even if that leaves it still in the past. Typically if I have an >> overdue item, I just want to schedule it for today or a certain number of >> days in the future, and as it stands it's even a bit non-obvious when I've >> finally bumped it up to today if it's a few days old. Shouldn't the first >> `f' on an overdue item schedule it for today? > > Just to clarify, by 'f' dave means `org-agenda-date-later'. I believe he's > using my keybinding for this command... Yeah, I am. Sorry for the confusion. -- Dave Abrahams BoostPro Computing http://www.boostpro.com
[O] [ANN] Org Mode parser v0.0.1 for NodeJs
Hi all, I have just published my org-mode parser for the node-js javascript based server: http://gioorgi.com/org-mode-parser/ It is a Javascript parser for the Emacs Org-mode file format. I use org-mode as a database for some programs (like games) where I need to mix meta information to a bunch of long textual data. I wrote it because I was unable to find an implementation for my needs. I like too much org-mode to let nodejs without a parser, and as expected the simple org-mode format was easy to parse. I started from the Charles Cave's OrgNode python parser, but I need to modify it a lot because of JavaScript different nature. Please feel free to give me your feedback --- Gio's Blog http://gioorgi.com
Re: [O] Org-special-blogs does not make well-formed xhtml
Hi Christian, for now I have reverted the patch. WOuld you like to work on a better one? - Carsten On 4.10.2011, at 21:01, Christian Moe wrote: > Hi, > > Carsten, thanks. > > Jambunathan's probably right, though, that this fix (while necessary) is > incomplete. Sorry, I hadn't thought it through. > > Now, when the first paragraph of a special block comes right after the > #+BEGIN_WHATEVER line, it will just come as the first text node of the > block, and will not be wrapped in a element. So among other things, any > special CSS styling for s will not be applied to it. > > It's not a big deal -- if you need a (and often you really don't) the > workaround is as simple as leaving an empty line between #+BEGIN_WHATEVER and > the first paragraph. > > But I guess it would be more consistent/expected/helpful behavior for > special-blocks to start a new paragraph -- this time *after* the opening > tag and not around it! > > Yours, > Christian > > > On 10/4/11 4:36 PM, Jambunathan K wrote: >> >> Carsten Dominik writes: >>> I see no reason to not uncomment this line. Shall we just do this? >> >> Shouldn't a paragraph be opened/closed while entering/leaving the div. >> >> , See org-xhtml-format-environment >> | (center >> | (case beg-end >> |(BEGIN >> |(org-lparse-end-paragraph) >> |(insert "\n") >> |(org-lparse-begin-paragraph)) >> |(END >> |(org-lparse-end-paragraph) >> |(insert "\n") >> |(org-lparse-begin-paragraph >> ` >> >> We can always open a paragraph gratis, because empty paragraphs are >> pruned at the end of export.
Re: [O] Feature request: Include org-tbl in exported latex.
Carsten Dominik writes: >> Hi, it would be cool if the latex exporting of a org-table would >> include the table in orgtbl format in a comment, in the way described >> here: >> http://www.gnu.org/software/emacs/manual/html_node/org/A-LaTeX-example.html > I do like this idea! > Will take a look. I would rather prefer if LaTeX tables could be converted to orgmode just like table.el tables. The regex for the linebreak would need to be customizable, as I for one tend to have some aliases in my style files that would otherwise hide it. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
Re: [O] `f' in agenda view
> Dave Abrahams writes: > It always strikes me as odd that `f' in agenda view moves the item forward > by a day even if that leaves it still in the past. Typically if I have an > overdue item, I just want to schedule it for today or a certain number of > days in the future, and as it stands it's even a bit non-obvious when I've > finally bumped it up to today if it's a few days old. Shouldn't the first > `f' on an overdue item schedule it for today? Just to clarify, by 'f' dave means `org-agenda-date-later'. I believe he's using my keybinding for this command... > I'm happy to hack something locally if the group doesn't agree, but moving > things around in the past seems like such a corner case that I thought maybe > this would be a better default behavior. I agree with Dave here. 'f' on a past-dated item maybe should move it today on the first press, and then into the future on subsequent presses. John
Re: [O] [OT] How to save and restore window and frame layout and position of windows on monitor - session management
> Rainer M Krug writes: > I am already using desktop-save, but I have the feeling that it sometimes > does not work. Just to note (and yes, this is very OT, so I won't say more): WorkgroupsForWindows solves a different problem than desktop-save. In fact, there are three aspects to the problem, best addressed by three different packages: session.el -- Remembers: - the values of global variables (like history rings) - where point and mark were in re-opened files - gives you a C-x C-/ binding: pop to last change workgroups.el -- Remembers: - one or more window configurations per-frame - these can be saved and reloaded - does *not* reload files, or rerun apps, to populate those windows - lets you have a "base" and "active" state for each named configuration, making it easy to revert back to the base state for each desktop.el -- Remembers: - What files were open, and which apps were running, and tries to re-open and re-run them so that Emacs looks just like it did when you exited. I use the first two, and I've used the third, but I find that I prefer beginning with a fresh start each time I run Emacs, rather than seeing again all the hundreds of files I had open yesterday. John
Re: [O] Suppressing DONE notes per-item?
> Dave Abrahams writes: >> From the doc string for org-log-done: You can have local logging settings >> for a subtree by setting the LOGGING property to one or more of these >> keywords. > NICE! Thank you! Just be aware that for Habits, you need to set it to "logdone", because although a note is not needed, the historical log entry is. John
[O] The org paper manual - tools used
Hey list, The paper org manual was an exciting idea. I might buy one soon. I was wondering how was the editing work involved in turning it into paper-published book? What tools did you guys use? Cheers, - Marcelo.
Re: [O] [contacts] No completion in Gnus
Jambunathan K writes: > Thorsten writes: > >> Hello List, I have a org-contacts file with a few contacts with EMAIL >> property, taken from gnus using org-capture as described in the >> org-contacts manual. The contacts are tagged with some tags. But if I >> try to send an email to one of the contacts using completion in >> message-mode, nothing happens. I type + and press in the To: >> header, but to no avail. I even restarted Emacs without loading bbdb, >> since there seemed to be some interference, but that didn't help >> either. I cannot find any more variables to connect org-contacts with >> gnus, so I guess it should work out of the box. > > (caveat: I have never used org-contacts) > > In such cases, typically there is an insinuate function. Yes, there is > one > > (org-contacts-gnus-insinuate) > > Try adding that to .emacs or eval it. > > I also see this snippet of code in org-contacts.el and is done > automatically for you. > > (when (boundp 'completion-at-point-functions) > (add-hook 'message-mode-hook > (lambda () > (add-to-list 'completion-at-point-functions > 'org-contacts-message-complete-function > > > So while composing the mail, check the value of variable > completion-at-point-functions and make sure you see some org-contacts > related entries there. Thats the culprit - I use Emacs 23.1.1, and it seems that variable completion-at-point-functions has been added to Emacs just recently with version 23.2. So I have to update my Emacs - should I go for Emacs 24 right away, or is that to early? > Looks like the guts of completion happen in > org-contacts-complete-name. So you can place your cursor on a message > header and try doing > > M-: (org-contacts-complete-name) > > Hope something interesting will happen. > >> What might be wrong in this case? >> Thanks for any hints. >> >> PS >> One further org-contacts related question: there is a predefined >> property ADDRESS, without any inner structure. Am I supposed to write my own >> org-capture template for that property? How would that look like - just >> one single string? If I want something more structured (street, city, >> zip-code etc), I have to define one property for each info-piece, or is >> there something like a compound property? Thanks for your help -- Thorsten
Re: [O] [contacts] No completion in Gnus
Thorsten writes: > Hello List, > I have a org-contacts file with a few contacts with EMAIL property, > taken from gnus using org-capture as described in the org-contacts > manual. The contacts are tagged with some tags. But if I try to send an > email to one of the contacts using completion in message-mode, nothing > happens. I type + and press in the To: header, but to no avail. I > even restarted Emacs without loading bbdb, since there seemed to be some > interference, but that didn't help either. I cannot find any more variables to > connect org-contacts with gnus, so I guess it should work out of the > box. (caveat: I have never used org-contacts) In such cases, typically there is an insinuate function. Yes, there is one (org-contacts-gnus-insinuate) Try adding that to .emacs or eval it. I also see this snippet of code in org-contacts.el and is done automatically for you. (when (boundp 'completion-at-point-functions) (add-hook 'message-mode-hook (lambda () (add-to-list 'completion-at-point-functions 'org-contacts-message-complete-function So while composing the mail, check the value of variable completion-at-point-functions and make sure you see some org-contacts related entries there. Looks like the guts of completion happen in org-contacts-complete-name. So you can place your cursor on a message header and try doing M-: (org-contacts-complete-name) Hope something interesting will happen. > What might be wrong in this case? > Thanks for any hints. > > PS > One further org-contacts related question: there is a predefined > property ADDRESS, without any inner structure. Am I supposed to write my own > org-capture template for that property? How would that look like - just > one single string? If I want something more structured (street, city, > zip-code etc), I have to define one property for each info-piece, or is > there something like a compound property? --
[O] `f' in agenda view
It always strikes me as odd that `f' in agenda view moves the item forward by a day even if that leaves it still in the past. Typically if I have an overdue item, I just want to schedule it for today or a certain number of days in the future, and as it stands it's even a bit non-obvious when I've finally bumped it up to today if it's a few days old. Shouldn't the first `f' on an overdue item schedule it for today? I'm happy to hack something locally if the group doesn't agree, but moving things around in the past seems like such a corner case that I thought maybe this would be a better default behavior. -- Dave Abrahams BoostPro Computing http://www.boostpro.com
[O] [contacts] No completion in Gnus
Hello List, I have a org-contacts file with a few contacts with EMAIL property, taken from gnus using org-capture as described in the org-contacts manual. The contacts are tagged with some tags. But if I try to send an email to one of the contacts using completion in message-mode, nothing happens. I type + and press in the To: header, but to no avail. I even restarted Emacs without loading bbdb, since there seemed to be some interference, but that didn't help either. I cannot find any more variables to connect org-contacts with gnus, so I guess it should work out of the box. What might be wrong in this case? Thanks for any hints. PS One further org-contacts related question: there is a predefined property ADDRESS, without any inner structure. Am I supposed to write my own org-capture template for that property? How would that look like - just one single string? If I want something more structured (street, city, zip-code etc), I have to define one property for each info-piece, or is there something like a compound property? -- Thorsten
Re: [O] Org-special-blogs does not make well-formed xhtml
Hi, Carsten, thanks. Jambunathan's probably right, though, that this fix (while necessary) is incomplete. Sorry, I hadn't thought it through. Now, when the first paragraph of a special block comes right after the #+BEGIN_WHATEVER line, it will just come as the first text node of the block, and will not be wrapped in a element. So among other things, any special CSS styling for s will not be applied to it. It's not a big deal -- if you need a (and often you really don't) the workaround is as simple as leaving an empty line between #+BEGIN_WHATEVER and the first paragraph. But I guess it would be more consistent/expected/helpful behavior for special-blocks to start a new paragraph -- this time *after* the opening tag and not around it! Yours, Christian On 10/4/11 4:36 PM, Jambunathan K wrote: Carsten Dominik writes: I see no reason to not uncomment this line. Shall we just do this? Shouldn't a paragraph be opened/closed while entering/leaving the div. , See org-xhtml-format-environment | (center | (case beg-end |(BEGIN | (org-lparse-end-paragraph) | (insert "\n") | (org-lparse-begin-paragraph)) |(END | (org-lparse-end-paragraph) | (insert "\n") | (org-lparse-begin-paragraph ` We can always open a paragraph gratis, because empty paragraphs are pruned at the end of export.
Re: [O] [Orgmode] Extending paste to auto-archive a copied image
*bump* I think this would be an awesome feature. Some of us use highly-graphic OSes such as OSX and Windows (or maybe Linux with Gnome), and being able to interact with the desktop is a great feature. Imagine being able to drag and drop a file directly to emacs and delegate the attachment to org, besides, optionally, an icon could be shown (not really needed). Copying and pasting an image would also be nice. Right now, I can't do this. I can drag and drop files but emacs will just insert the contents of the file inline. There must be a way to tell emacs to run a custom piece of elisp code with the basic event information gathered from the paste/drag and drop... or there isn't? Cheers, - Marcelo. On Sat, Feb 12, 2011 at 4:22 PM, Marcelo de Moraes Serpa < celose...@gmail.com> wrote: > It'd be an awesome feature IMO :) > > Thanks! > > Marcelo. > > On Sat, Feb 12, 2011 at 5:25 AM, Bastien > wrote: > > Hi Marcelo, > > > > Marcelo de Moraes Serpa writes: > > > >> What I am suggesting is, somehow hook into the moment the file is > >> pasted/dragged and run some code. > > > > This would require code in Emacs. I'm not familiar at all with Emacs > > ability to recognize drag'n droped files (as I don't use drag'n drop) > > but perhaps other do and might suggest how to set a hook when Emacs > > copies external content/files/whatever from X. > > > > -- > > Bastien > > >
Re: [O] org-odt help
> I would like to submit 2 more patches - one to the manual and other to > org-exp.el. I am attaching the promised patch to org-exp.el. Can someone review and commit this change? Please note that I have withheld the changes to org-odt & co which make use of this change. ps: The patch to org.texi will follow soon - maybe in a day or two. >From 39ab2a263336ba077c7cd6627a3203c55c5bddba Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Tue, 4 Oct 2011 23:32:35 +0530 Subject: [PATCH] org-exp.el: Enhance `org-export-number-lines' to support odt export * lisp/org-exp.el (org-export-number-lines): Modified. Add a new parameter `preprocess' and use this for backend-agnostic handling of literal examples. This parameter is currently exercised only by the odt exporter. Hint: See future commits. --- lisp/org-exp.el | 71 --- 1 files changed, 62 insertions(+), 9 deletions(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 9884a31..c62333e 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -46,7 +46,7 @@ (declare-function org-inlinetask-remove-END-maybe "org-inlinetask" ()) (declare-function org-table-cookie-line-p "org-table" (line)) (declare-function org-table-colgroup-line-p "org-table" (line)) -(declare-function org-pop-to-buffer-same-window "org-compat" +(declare-function org-pop-to-buffer-same-window "org-compat" (&optional buffer-or-name norecord label)) (autoload 'org-export-generic "org-export-generic" "Export using the generic exporter" t) @@ -2729,7 +2729,54 @@ INDENT was the original indentation of the block." (org-add-props rtn nil 'original-indentation indent (defun org-export-number-lines (text &optional skip1 skip2 number cont - replace-labels label-format) + replace-labels label-format preprocess) + "Apply line numbers to literal examples and handle code references. +Handle user-specified options under info node `(org)Literal +examples' and return the modified source block. + +TEXT contains the source or example block. + +SKIP1 and SKIP2 are the number of lines that are to be skipped at +the beginning and end of TEXT. Use these to skip over +backend-specific lines pre-pended or appended to the original +source block. + +NUMBER is non-nil if the literal example specifies \"+n\" or +\"-n\" switch. If NUMBER is non-nil add line numbers. + +CONT is non-nil if the literal example specifies \"+n\" switch. +If CONT is nil, start numbering this block from 1. Otherwise +continue numbering from the last numbered block. + +REPLACE-LABELS is dual-purpose. +1. It controls the retention of labels in the exported block. +2. It specifies in what manner the links (or references) to a + labelled line be formatted. + +REPLACE-LABELS is the symbol `keep' if the literal example +specifies \"-k\" option, is numeric if the literal example +specifies \"-r\" option and is nil otherwise. + +Handle REPLACE-LABELS as below: +- If nil, retain labels in the exported block and use + user-provided labels for referencing the labelled lines. +- If it is a number, remove labels in the exported block and use + one of line numbers or labels for referencing labelled lines based + on NUMBER option. +- If it is a keep, retain labels in the exported block and use + one of line numbers or labels for referencing labelled lines + based on NUMBER option. + +LABEL-FORMAT is the value of \"-l\" switch associated with +literal example. See `org-coderef-label-format'. + +PREPROCESS is intended for backend-agnostic handling of source +block numbering. When non-nil do the following: +- do not number the lines +- always strip the labels from exported block +- do not make the labelled line a target of an incoming link. + Instead mark the labelled line with `org-coderef' property and + store the label in it." (setq skip1 (or skip1 0) skip2 (or skip2 0)) (if (not cont) (setq org-export-last-code-line-counter-value 0)) (with-temp-buffer @@ -2768,9 +2815,10 @@ INDENT was the original indentation of the block." (org-goto-line (1+ skip1)) (while (and (re-search-forward "^" nil t) (not (eobp)) (< n nmax)) - (if number - (insert (format fm (incf n))) - (forward-char 1)) + (when number (incf n)) + (if (or preprocess (not number)) + (forward-char 1) + (insert (format fm n))) (when (looking-at lbl-re) (setq ref (match-string 3)) (cond ((numberp replace-labels) @@ -2783,7 +2831,8 @@ INDENT was the original indentation of the block." ;; lines are numbered, use labels otherwise (goto-char (match-beginning 2)) (delete-region (match-beginning 2) (match-end 2)) - (insert "(" ref ")") + (unless preprocess + (insert "(" ref ")")) (push (cons ref (if (> n 0) n (concat "(" ref ")"))) org-export-code-refs)) (t @@ -2791,15 +2840,19 @@ INDENT was the original indentation of the block." ;; references (goto-char (match-beginning 2)) (delete-region (match-beg
Re: [O] Suppressing DONE notes per-item?
Dave Abrahams writes: > I have a number of repeating items (habits especially) where it's very > very rare that I have anything to say upon completion. I'd like to > suppress Org's prompt for a DONE note on those items. Is that possible > somehow? You are not look at the docstring when it is willing to come to rescue. C-h v org-log-done RET ps: Since you intend to take to Org seriously, take some time to look at the manual, docstring, mailing-list before firing any more questions. > > TIA, --
Re: [O] [BABEL][PATCH] construct a table from the output of maxima code block
> In any case, can you please post a patch against the standard > version? Or, maybe easier, simply post ob-maxima.el as the other > changes are not necessary for me to test your patch. I though my previous patch was applied. It is still under review due to copyright papers. I am attaching a patch against master branch and ob-maxima.el file. The commit message is ob-maxima.el: add input variables, png graphic output, table as an output From d9cfa76e83c10e86ffacca3da7cbc83702268cc2 Mon Sep 17 00:00:00 2001 From: Litvinov Sergey Date: Tue, 4 Oct 2011 19:48:14 +0200 Subject: [PATCH] ob-maxima.el: add input variables, graphic output to png file, table as an output --- lisp/ob-maxima.el | 97 - 1 files changed, 73 insertions(+), 24 deletions(-) diff --git a/lisp/ob-maxima.el b/lisp/ob-maxima.el index 085609c..9c39a5f 100644 --- a/lisp/ob-maxima.el +++ b/lisp/ob-maxima.el @@ -30,47 +30,96 @@ ;; ;; 1) there is no such thing as a "session" in maxima ;; -;; 2) we are generally only going to return output from maxima -;; -;; 3) we are adding the "cmdline" header argument -;; -;; 4) there are no variables +;; 2) we are adding the "cmdline" header argument ;;; Code: (require 'ob) +(defvar org-babel-tangle-lang-exts) +(add-to-list 'org-babel-tangle-lang-exts '("maxima" . "max")) + (defvar org-babel-default-header-args:maxima '()) (defun org-babel-maxima-expand (body params) "Expand a block of Maxima code according to its header arguments." - body) + (let ((vars (mapcar #'cdr (org-babel-get-header params :var + (mapconcat 'identity + (list + ;; graphic output + (let ((graphic-file (org-babel-maxima-graphical-output-file params))) + (if graphic-file + (format + "set_plot_option ([gnuplot_term, png]); set_plot_option ([gnuplot_out_file, %S]);" + graphic-file) + "")) + ;; variables + (mapconcat 'org-babel-maxima-var-to-maxima vars "\n") + ;; body + body + "gnuplot_close ()$") + "\n"))) (defun org-babel-execute:maxima (body params) "Execute a block of Maxima entries with org-babel. This function is called by `org-babel-execute-src-block'." (message "executing Maxima source code block") - (let* ((result-params (split-string (or (cdr (assoc :results params)) ""))) - (cmdline (cdr (assoc :cmdline params))) - (in-file (org-babel-temp-file "maxima-")) - (cmd (format "maxima --very-quiet -r 'batchload(%S)$' %s" - in-file cmdline))) -(with-temp-file in-file (insert body)) -(message cmd) -((lambda (raw) ;; " | grep -v batch | grep -v 'replaced' | sed '/^$/d' " - (mapconcat - #'identity - (delq nil - (mapcar (lambda (line) - (unless (or (string-match "batch" line) -(string-match "^rat: replaced .*$" line) -(= 0 (length line))) - line)) - (split-string raw "[\r\n]"))) "\n")) - (org-babel-eval cmd "" + (let ((result + (let* ((result-params (split-string (or (cdr (assoc :results params)) ""))) + (cmdline (cdr (assoc :cmdline params))) + (in-file (org-babel-temp-file "maxima-" ".max")) + (cmd (format "maxima --very-quiet -r 'batchload(%S)$' %s" + in-file cmdline))) + (with-temp-file in-file (insert (org-babel-maxima-expand body params))) + (message cmd) + ((lambda (raw) ;; " | grep -v batch | grep -v 'replaced' | sed '/^$/d' " + (mapconcat + #'identity + (delq nil + (mapcar (lambda (line) + (unless (or (string-match "batch" line) + (string-match "^rat: replaced .*$" line) + (= 0 (length line))) + line)) + (split-string raw "[\r\n]"))) "\n")) + (org-babel-eval cmd "") +(if (org-babel-maxima-graphical-output-file params) + nil + (if (or (member "scalar" result-params) + (member "verbatim" result-params) + (member "output" result-params)) + result + (let ((tmp-file (org-babel-temp-file "maxima-res-"))) + (with-temp-file tmp-file (insert result)) + (org-babel-import-elisp-from-file tmp-file)) + (defun org-babel-prep-session:maxima (session params) (error "Maxima does not support sessions")) +(defun org-babel-maxima-var-to-maxima (pair) + "Convert an elisp val into a string of maxima code specifying a var +of the same value." + (let ((var (car pair)) +(val (cdr pair))) +(when (symbolp val) + (setq val (symbol-name val)) + (when (= (length val) 1) +(setq val (string-to-char val + (format "%S: %s$" var + (org-babel-maxima-elisp-to-maxima val + +(defun org-babel-maxima-graphical-output-file (params) + "Name of file to which maxima should send graphical output." + (and (member "graphics" (cdr (assq :result-params params))) + (cdr (assq :file params + +(defun org-babel-maxima-elisp-to-maxima (val) + "Return a string of maxima code which evaluates to VAL." + (if (listp val) + (concat "[" (mapconcat #'org-babel-maxima-elisp-to-maxima val ", "
Re: [O] Suppressing DONE notes per-item?
on Tue Oct 04 2011, John Rakestraw wrote: > Hi, Dave -- > > On Tue, 04 Oct 2011, Dave Abrahams wrote: >> I have a number of repeating items (habits especially) where it's very >> very rare that I have anything to say upon completion. I'd like to >> suppress Org's prompt for a DONE note on those items. Is that possible >> somehow? > > From the doc string for org-log-done: > You can have local logging settings for a subtree by setting the LOGGING > property to one or more of these keywords. NICE! Thank you! -- Dave Abrahams BoostPro Computing http://www.boostpro.com
Re: [O] Suppressing DONE notes per-item?
Hi, Dave -- On Tue, 04 Oct 2011, Dave Abrahams wrote: > I have a number of repeating items (habits especially) where it's very > very rare that I have anything to say upon completion. I'd like to > suppress Org's prompt for a DONE note on those items. Is that possible > somehow? >From the doc string for org-log-done: --8<---cut here---start->8--- You can have local logging settings for a subtree by setting the LOGGING property to one or more of these keywords. --8<---cut here---end--->8--- -- John Rakestraw
Re: [O] [BABEL][PATCH] construct a table from the output of maxima code block
Litvinov Sergey writes: > Please consider a patch to construct a table from the output of maxima > code block. I am interested in trying this patch out but it would appear that it has been generated relative to a branch other than the master at origin! I cannot apply the patch as a result. I do seem to recall that you proposed a set of changes a while back but they obviously have not been incorporated into the standard branch of org. Is there any reason for this as I seem to recall that your additions were useful! In any case, can you please post a patch against the standard version? Or, maybe easier, simply post ob-maxima.el as the other changes are not necessary for me to test your patch. thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.346.g4e3cc)
[O] Suppressing DONE notes per-item?
I have a number of repeating items (habits especially) where it's very very rare that I have anything to say upon completion. I'd like to suppress Org's prompt for a DONE note on those items. Is that possible somehow? TIA, -- Dave Abrahams BoostPro Computing http://www.boostpro.com
[O] embed an iframe behind a presentation?
Hi everyone, I don't think this is really an org question, but, well, here I am and I hope someone can help. I use org-html5presentation.el (this one, I'm pretty sure: https://github.com/twada/org-html5presentation.el) to generate html5 presentations from org outlines; I do this for my lecture notes, and the exported files look like this: http://www.mercey.org/03-public-sphere.html I thought it might be fun to embed a twitter feed in the slide background, so students can ask questions or have conversations about what we're doing while I talk. I had thought I'd just insert an iframe containing a twitter widget into the background somewhere. Unfortunately, I actually don't understand how these presentations are really produced, or how I would insert code into the background. Most of the formatting seems to be done in css, and the dynamic movements of the slides is triggered I guess somehow by javascript; but this is all html5 black magic to me. I'm not sure how I would, effectively, change the 'template' for the presentation to one that includes the appropriate iframe. Like I say, I'm not entirely sure this is an org question, but I'd still love some guidance if folks cna provide it. Thanks as always, Matt
Re: [O] Exclude some files from
Thank Nick. I'll test it out. On Tue, Oct 4, 2011 at 10:53 AM, Nick Dokos wrote: > Marcelo de Moraes Serpa wrote: > > > *bump* ... I am being too stupid :) I could not find it in the > documentation. > > > > Thanks, > > > > - M > > > > On Mon, Oct 3, 2011 at 1:48 PM, Marcelo de Moraes Serpa < > celose...@gmail.com> wrote: > > > > Hey guys, > > > > I'm using org-export-icalendar-combine-agenda-files to export the > agenda files into one .ics > > file. However, I'd like to exclude a particular org file from this > export. How could I do it? > > > > Can't do it with org-export-icalendar-combine-agenda-files as it stands, > but > if you look at the code, all it does is: > > , > | (defun org-export-icalendar-combine-agenda-files () > | "Export all files in `org-agenda-files' to a single combined iCalendar > file. > | The file is stored under the name `org-combined-agenda-icalendar-file'." > | (interactive) > | (apply 'org-export-icalendar t (org-agenda-files t))) > ` > > so it just applies org-export-icalendar to the list of file that > org-agenda-files > returns. All you have to do is massage that list a bit: > > (defun mdm/org-export-icalendar-combine-agenda-files-with-exclusions () > (interactive) > (apply 'org-export-icalendar t > (mdm/exclude '("~/org/foo.org" "~/org/bar.org") > (org-agenda-files t > > (defun mdm/exclude (items lst) > (if (null lst) > lst >(if (member (car lst) items) >(mdm/exclude items (cdr lst)) > (cons (car lst) (mdm/exclude items (cdr lst)) > > Mostly untested. > > Nick >
Re: [O] Exclude some files from
Marcelo de Moraes Serpa wrote: > *bump* ... I am being too stupid :) I could not find it in the documentation. > > Thanks, > > - M > > On Mon, Oct 3, 2011 at 1:48 PM, Marcelo de Moraes Serpa > wrote: > > Hey guys, > > I'm using org-export-icalendar-combine-agenda-files to export the agenda > files into one .ics > file. However, I'd like to exclude a particular org file from this > export. How could I do it? > Can't do it with org-export-icalendar-combine-agenda-files as it stands, but if you look at the code, all it does is: , | (defun org-export-icalendar-combine-agenda-files () | "Export all files in `org-agenda-files' to a single combined iCalendar file. | The file is stored under the name `org-combined-agenda-icalendar-file'." | (interactive) | (apply 'org-export-icalendar t (org-agenda-files t))) ` so it just applies org-export-icalendar to the list of file that org-agenda-files returns. All you have to do is massage that list a bit: (defun mdm/org-export-icalendar-combine-agenda-files-with-exclusions () (interactive) (apply 'org-export-icalendar t (mdm/exclude '("~/org/foo.org" "~/org/bar.org") (org-agenda-files t (defun mdm/exclude (items lst) (if (null lst) lst (if (member (car lst) items) (mdm/exclude items (cdr lst)) (cons (car lst) (mdm/exclude items (cdr lst)) Mostly untested. Nick
[O] Bug: org-clone-subtree-with-time-shift shifts CREATED property
Hi! When an entry got processed by org-clone-subtree-with-time-shift, its :CREATED: property gets shifted too: #+begin_example * <2011-10-04 Tue> test SCHEDULED: <2011-10-05 Wed> :PROPERTIES: :CREATED: <2011-10-04 Tue 17:27> :END: * <2011-10-11 Tue> test SCHEDULED: <2011-10-12 Wed> :PROPERTIES: :CREATED: <2011-10-11 Tue 17:27> :END: #+end_example Although this *might* be on purpose, I strongly argue to stop this behaviour because of: * the entry is not really created in the future. It is created either at the original :CREATED: timestamp _or_ it is created at the timestamp when org-clone-subtree-with-time-shift is executed. * the user gets heavily irritated when the generated entries keep popping up on future days. I suggest that at least for :CREATED: properties, the time stamp does not get changed by org-clone-subtree-with-time-shift. -- Karl Voit
Re: [O] Hide drawers in indirect buffers?
on Tue Oct 04 2011, Carsten Dominik wrote: > On Oct 2, 2011, at 9:36 PM, Dave Abrahams wrote: > >> >> on Sat Oct 01 2011, Dave Abrahams wrote: >> >>> When I initially request an indirect buffer for an item (especially from >>> the agenda) it shows up with all its drawers open. I'd prefer it if >>> they were closed by default. Is there a way to do that? >> >> To follow up my own post... >> >> This is actually very surprising, because the entry shows up in a state >> that can't be reached by tabbing on its headline, with all the drawers >> open. If you run (org-show-entry) in the indirect buffer it goes into a >> less-noisy configuration. > > This is indeed a bug, fixed now. Thanks. So, just for my education, can you explain why running `org-cycle-hook 'all' is superior to just `org-show-entry' (which was my workaround)? -- Dave Abrahams BoostPro Computing http://www.boostpro.com
Re: [O] Exclude some files from
*bump* ... I am being too stupid :) I could not find it in the documentation. Thanks, - M On Mon, Oct 3, 2011 at 1:48 PM, Marcelo de Moraes Serpa wrote: > Hey guys, > > I'm using org-export-icalendar-combine-agenda-files to export the agenda > files into one .ics file. However, I'd like to exclude a particular org file > from this export. How could I do it? > > Thanks, > > - Marcelo. >
Re: [O] Org-special-blogs does not make well-formed xhtml
Carsten Dominik writes: > On Oct 3, 2011, at 3:26 PM, Sebastien Vauban wrote: > >> Hi Christian Moe, >> >> Christian Moe wrote: >>> Hi, >>> >>> XHTML produced with Org-special-blocks is not well-formed; tags >>> get wrapped in tags. Example: >>> >>>Some text. >>> >>>#+begin_sidebar >>> Some details left out of the main text. >>> >>> Some more details. >>>#+end_sidebar >>> >>>Some more text. >>> >>> This results in the following html, which causes XML processors to fail. >>> >>> >>> >>> Some details left out of the main text. >>> >>> >>> Some more details. >>> >>> >>> >>>Some more text. >>> >>> >>> The problem seems to be fixed by un-commenting the fifth line in the >>> below function in org-special-blocks.el: >>> >>>(defun org-special-blocks-convert-html-special-cookies () >>> "Converts the special cookies into div blocks." >>> ;; Uses the dynamically-bound variable `line'. >>> (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" line) >>>;(org-close-par-maybe) >>>(message "%s" (match-string 1)) >>>(if (equal (match-string 2 line) "START") >>>(insert "\n") >>> (insert "\n")) >>>(throw 'nextline nil))) >>> >>> Does anyone know if that was commented out for a reason? >> >> git blame suggests it was there since that file org-special-blocks.el has >> been >> added (in contrib/lisp, by Carsten, on 2009-05-07 13:53)... >> >> Best regards, >> Seb >> >> -- >> Sebastien Vauban >> >> > > I see no reason to not uncomment this line. Shall we just do this? Shouldn't a paragraph be opened/closed while entering/leaving the div. , See org-xhtml-format-environment | (center | (case beg-end |(BEGIN | (org-lparse-end-paragraph) | (insert "\n") | (org-lparse-begin-paragraph)) |(END | (org-lparse-end-paragraph) | (insert "\n") | (org-lparse-begin-paragraph ` We can always open a paragraph gratis, because empty paragraphs are pruned at the end of export. ps: I haven't gotten myself to understand when paragraphs are opened and closed in the html exporter. So we can take a leaf out of the centering environment and mimic the same behaviour with the special blocks as well. > - Carsten > > > > > --
Re: [O] Org-special-blogs does not make well-formed xhtml
Done... - Carsten On Oct 4, 2011, at 2:45 PM, Christian Moe wrote: > >>> >> >> I see no reason to not uncomment this line. Shall we just do this? >> >> >> >> - Carsten > > Yes, would you, please? > > Yours, > Christian > - Carsten
Re: [O] Recursive org-agenda-files
Neilen Marais wrote: > Jambunatha, > > > > > Have you considered adding it to say org-mode-hook? > > > > Seems like a Wrong suggestion to me. > > > > Try using `C-c [' to add the current org file. I am assuming that org > > files are created by hand and not by some daemon that spits out agenda > > files when you are away from emacs. > > Not a daemon, no, but I do tend to move files around. I.e. I'll move a project > file/dir from my "someday" folder to my "active" folder. I would like to avoid > any further manual steps to get it integrated in my agenda. > > Is there a hook function that gets called every time an agenda view is opened > or > refreshed? I could probably use that to update the agenda list. > Seek and ye shall find: C-h v org-agenda--hook RET will list all the matching hooks. Which one to choose? I'll leave that up to the interested reader :-) Or try C-h v org--hook RET to get a list of *all* the org hooks. Nick
Re: [O] Feature request: Include org-tbl in exported latex.
On Oct 3, 2011, at 1:27 PM, Erik Parmann wrote: > Hi, it would be cool if the latex exporting of a org-table would > include the table in orgtbl format in a comment, in the way described > here: > http://www.gnu.org/software/emacs/manual/html_node/org/A-LaTeX-example.html > > This fits well with the workflow of first drafting the paper in > org-mode, then exporting it to tex and finnishing it there. If the > exporter kept the table as desribed above, one could still harvest > some orgtbl power in the finnishing stage. > It does not need to be the default action, but an option of it would be nice. I do like this idea! Will take a look. - Carsten
[O] Feature request: Include org-tbl in exported latex.
Hi, it would be cool if the latex exporting of a org-table would include the table in orgtbl format in a comment, in the way described here: http://www.gnu.org/software/emacs/manual/html_node/org/A-LaTeX-example.html This fits well with the workflow of first drafting the paper in org-mode, then exporting it to tex and finnishing it there. If the exporter kept the table as desribed above, one could still harvest some orgtbl power in the finnishing stage. It does not need to be the default action, but an option of it would be nice. -Erik Parmann
Re: [O] would take more than an org-mode strip-down.
"Allen S. Rout" writes: > In My Opinion, the current docs in org-mode are targeted at those who > expect to have their own heads and shoulders inside the 'engine > compartment' of org and emacs. This makes them a poor tool to > communicate with End-Users. But this might be acceptable, because > there's no hood on the engine, and the bloody thing is steered with a > rudder and laterals, instead of the nice sane wheel and pedals > everyone else uses. :) I've always thought that Marus Ranum's comment[1] on X applied equally well to Emacs: "If the designers of [Emacs] built cars, there would be no fewer than five steering wheels hidden about the cockpit, none of which followed the same principles---but you'd be able to shift gears with your car stereo. Useful feature, that." Of course, he was being snarky, but some people (me!) *want* to be able to change gears with the stereo. [1] http://www.art.net/~hopkins/Don/unix-haters/x-windows/disaster.html
Re: [O] Recursive org-agenda-files
Jambunatha, > > Have you considered adding it to say org-mode-hook? > > Seems like a Wrong suggestion to me. > > Try using `C-c [' to add the current org file. I am assuming that org > files are created by hand and not by some daemon that spits out agenda > files when you are away from emacs. Not a daemon, no, but I do tend to move files around. I.e. I'll move a project file/dir from my "someday" folder to my "active" folder. I would like to avoid any further manual steps to get it integrated in my agenda. Is there a hook function that gets called every time an agenda view is opened or refreshed? I could probably use that to update the agenda list. Thanks Neilen
Re: [O] Org-special-blogs does not make well-formed xhtml
I see no reason to not uncomment this line. Shall we just do this? - Carsten Yes, would you, please? Yours, Christian
[O] [Accepted] Check argument is a string before calling string-match
Patch 952 (http://patchwork.newartisans.com/patch/952/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C1316474402-26292-1-git-send-email-bernt%40norang.ca%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [O] Check argument is a string before calling string-match > Date: Tue, 20 Sep 2011 04:20:02 - > From: Bernt Hansen > X-Patchwork-Id: 952 > Message-Id: <1316474402-26292-1-git-send-email-be...@norang.ca> > To: emacs-orgmode@gnu.org > Cc: Bernt Hansen > > * lisp/org-html.el (org-export-as-html): Check string-match argument > (org-html-handle-time-stamps): Check string-match argument > > Avoid wrong-type-argument errors during exporting. > > --- > This may or may not be the same error you are getting - but I ran into > this during exporting back in August and it was sitting in my queue. > > Please report if this fixes your issue or not. > > -Bernt > > lisp/org-html.el | 30 -- > 1 files changed, 16 insertions(+), 14 deletions(-) > > diff --git a/lisp/org-html.el b/lisp/org-html.el > index fde563b..6492c2f 100644 > --- a/lisp/org-html.el > +++ b/lisp/org-html.el > @@ -1598,7 +1598,8 @@ lang=\"%s\" xml:lang=\"%s\"> > (setq line (org-html-handle-links line opt-plist)) > > ;; TODO items > - (if (and (string-match org-todo-line-regexp line) > + (if (and org-todo-line-regexp > +(string-match org-todo-line-regexp line) > (match-beginning 2)) > > (setq line > @@ -2213,19 +2214,20 @@ for further information." >"Format time stamps in string S, or remove them." >(catch 'exit > (let (r b) > - (while (string-match org-maybe-keyword-time-regexp s) > - (or b (setq b (substring s 0 (match-beginning 0 > - (setq r (concat > - r (substring s 0 (match-beginning 0)) > - " @" > - (if (match-end 1) > - (format "@%s @" > - (match-string 1 s))) > - (format " @%s@" > - (substring > - (org-translate-time (match-string 3 s)) 1 -1)) > - "@") > - s (substring s (match-end 0 > + (when org-maybe-keyword-time-regexp > + (while (string-match org-maybe-keyword-time-regexp s) > + (or b (setq b (substring s 0 (match-beginning 0 > + (setq r (concat > +r (substring s 0 (match-beginning 0)) > +" @" > +(if (match-end 1) > +(format "@%s @" > +(match-string 1 s))) > +(format " @%s@" > +(substring > + (org-translate-time (match-string 3 s)) 1 -1)) > +"@") > + s (substring s (match-end 0) >;; Line break if line started and ended with time stamp stuff >(if (not r) > s >
Re: [O] Surprising behaviour with agenda file
This patch has now been accepted - I believe the performance hit will be minor. I would like to know if this is not the case... - Carsten On Sep 29, 2011, at 5:48 PM, Andreas Amann wrote: > On Thu, 29 Sep 2011 15:43:27 +0200, Michael Brand > wrote: >> On Thu, Sep 29, 2011 at 15:25, Daniel Bausch wrote: >>> It's not a bug, it's a feature (although I don't know what it's for -- maybe >>> speed). However, there is a customizable option to switch it off: >>> org-agenda-skip-additional-timestamps-same-entry >> >> Interesting. git blame and a list search leads quickly to this post >> and thread that answers some questions: >> http://thread.gmane.org/gmane.emacs.orgmode/13096/focus=13129 > > Okay, I see. > > In my opinion the current default is unsafe, since people can lose > appointments. > > I propose to change the default of > org-agenda-skip-additional-timestamps-same-entry > as below. > > Andreas > > > > commit 967ee90b3b05bad69b84fa3e5411f2d645121d6a > Author: Andreas Amann > Date: Thu Sep 29 16:14:58 2011 +0100 > >change default of org-agenda-skip-additional-timestamps-same-entry to nil > > diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el > index b1fa5f5..20d55f7 100644 > --- a/lisp/org-agenda.el > +++ b/lisp/org-agenda.el > @@ -787,7 +787,7 @@ because you will take care of it on the day when > scheduled." > (const :tag "Remove prewarning if entry is scheduled" t) > (integer :tag "Restart prewarning N days before deadline"))) > > -(defcustom org-agenda-skip-additional-timestamps-same-entry t > +(defcustom org-agenda-skip-additional-timestamps-same-entry nil > "When nil, multiple same-day timestamps in entry make multiple agenda lines. > When non-nil, after the search for timestamps has matched once in an > entry, the rest of the entry will not be searched." > -- > > > - Carsten
Re: [O] How to debug "Specified time is not representable"
On Oct 4, 2011, at 1:42 PM, Karl Voit wrote: > * Jambunathan K wrote: >> A simple M-x grep-find on .org files for the year should work. >>> >>> I do not know the year. >> >> That is what regexps are for. > [...] >> It is not my intention to provide you with a outright solution but only >> to give sufficient hints so that you make progress. > > :-) > > Thanks. I know RegEx perfectly good. Irritating entries could be > located by... > >find . -name "*\.org*"|xargs egrep '<19[0-6]|<20[3-9]' > > ...since I am using *lots* of Orgmode files. > > My point was more or less usability-related: what use is the message > «Specified time is not representable» when the user (anybody, not > just RegEx experts like us) gets no clue, where the problem is? > > So I was curious, if there *is* some method I do not know (yet). > > If the answer is «no, there is no way of telling you the actual time > stamp that causes the message», my question is answered. Bad for > Emacs/Orgmode usability Fair enough. If you pull, you should now get decent error messages. - Carsten > but fine with me so far. > > So is this really the case? > You may also try M-x debug-on-entry RET ding RET Look at the backtrace and see whether you can get some clues. >>> >>> Sorry, no clue. >>> Works best if your orgmode is not compiled >>> >>> When I have compiled Orgmode, should I delete all *.elc files? >> >> May be the debug-on-entry is the wrong strategy for the problem at >> hand. You may disregard my suggestion. > > -- > Karl Voit > > - Carsten
Re: [O] How to debug "Specified time is not representable"
Hi Carsten! * Carsten Dominik wrote: > > I have no general method. However, you can do this: > > 1. On the "Options" menu, switch "Enter debug on error" on. > 2. Run your agenda to hit the error. A buffer with the backtrace >pops open. > 3. Press > > e (current-buffer) RET > > to learn about the buffer where this happens > > 4. Press > > e pos RET > > to learn about the position of the offending time stamp. > > 5. Press `q' to leave the backtrace buffer, then switch to the buffer >you learned about and find the position you just learned about. >THis should be the bad timestamp. *This* is the method I was searching for. *Thank* you very much. Now I can see the actual time stamp that causes any problem. -- Karl Voit
Re: [O] How to debug "Specified time is not representable"
* Jambunathan K wrote: > >>> A simple M-x grep-find on .org files for the year should work. >> >> I do not know the year. > > That is what regexps are for. [...] > It is not my intention to provide you with a outright solution but only > to give sufficient hints so that you make progress. :-) Thanks. I know RegEx perfectly good. Irritating entries could be located by... find . -name "*\.org*"|xargs egrep '<19[0-6]|<20[3-9]' ...since I am using *lots* of Orgmode files. My point was more or less usability-related: what use is the message «Specified time is not representable» when the user (anybody, not just RegEx experts like us) gets no clue, where the problem is? So I was curious, if there *is* some method I do not know (yet). If the answer is «no, there is no way of telling you the actual time stamp that causes the message», my question is answered. Bad for Emacs/Orgmode usability but fine with me so far. So is this really the case? >>> You may also try >>> M-x debug-on-entry RET ding RET >>> Look at the backtrace and see whether you can get some clues. >> >> Sorry, no clue. >> >>> Works best if your orgmode is not compiled >> >> When I have compiled Orgmode, should I delete all *.elc files? > > May be the debug-on-entry is the wrong strategy for the problem at > hand. You may disregard my suggestion. -- Karl Voit
Re: [O] How to debug "Specified time is not representable"
On Oct 3, 2011, at 1:50 PM, Karl Voit wrote: > Hi! > > * Jambunathan K wrote: >> Karl Voit writes: >> >>> When I get «Specified time is not representable» while creating the >>> Agenda view, I want to get more information *where* the problem is. >>> >>> I found [1] and following and so I got it that there is no way of >>> managing timestamps before 1970 :-( >>> >>> Is there a way to get to the problematic time stamp? >>> 1. http://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00729.html >> >> Hope you have looked at C-h v org-read-date-force-compatible-dates > > Meanwhile: yes. > > I do not want to use timestamps outside of UNIX epoch. I just wanted > to *locate* the culprit. > >> A simple M-x grep-find on .org files for the year should work. > > I do not know the year. > >> You may also try >> M-x debug-on-entry RET ding RET >> Look at the backtrace and see whether you can get some clues. > > Sorry, no clue. I have no general method. However, you can do this: 1. On the "Options" menu, switch "Enter debug on error" on. 2. Run your agenda to hit the error. A buffer with the backtrace pops open. 3. Press e (current-buffer) RET to learn about the buffer where this happens 4. Press e pos RET to learn about the position of the offending time stamp. 5. Press `q' to leave the backtrace buffer, then switch to the buffer you learned about and find the position you just learned about. THis should be the bad timestamp. HTH - Carsten > >> Works best if your orgmode is not compiled > > When I have compiled Orgmode, should I delete all *.elc files? > > -- > Karl Voit > > - Carsten
Re: [O] Org-special-blogs does not make well-formed xhtml
On Oct 3, 2011, at 3:26 PM, Sebastien Vauban wrote: > Hi Christian Moe, > > Christian Moe wrote: >> Hi, >> >> XHTML produced with Org-special-blocks is not well-formed; tags >> get wrapped in tags. Example: >> >>Some text. >> >>#+begin_sidebar >> Some details left out of the main text. >> >> Some more details. >>#+end_sidebar >> >>Some more text. >> >> This results in the following html, which causes XML processors to fail. >> >> >> >> Some details left out of the main text. >> >> >> Some more details. >> >> >> >>Some more text. >> >> >> The problem seems to be fixed by un-commenting the fifth line in the >> below function in org-special-blocks.el: >> >>(defun org-special-blocks-convert-html-special-cookies () >> "Converts the special cookies into div blocks." >> ;; Uses the dynamically-bound variable `line'. >> (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" line) >>;(org-close-par-maybe) >>(message "%s" (match-string 1)) >>(if (equal (match-string 2 line) "START") >> (insert "\n") >> (insert "\n")) >>(throw 'nextline nil))) >> >> Does anyone know if that was commented out for a reason? > > git blame suggests it was there since that file org-special-blocks.el has been > added (in contrib/lisp, by Carsten, on 2009-05-07 13:53)... > > Best regards, > Seb > > -- > Sebastien Vauban > > I see no reason to not uncomment this line. Shall we just do this? - Carsten
Re: [O] [OT] How to save and restore window and frame layout and position of windows on monitor - session management
On Mon, Oct 3, 2011 at 7:43 PM, Dave Abrahams wrote: > > on Mon Oct 03 2011, brian powell wrote: > > > * Discovered this a few days ago: Will it solve your "proble"--which > > seems to be "saving state"; well, maybe, if you play with the code a > > little: > > > > ;;; perspective.el --- switch between named "perspectives" of the editor > > > > ;; Copyright (C) 2008-2010 Nathan Weizenbaum > > ;; > > ;; Licensed under the same terms as Emacs. > > > > ;; Author: Nathan Weizenbaum > > ;; URL: http://github.com/nex3/perspective-el > > ;; Version: 1.6 > > ;; Created: 2008-03-05 > > ;; By: Nathan Weizenbaum > > ;; Keywords: workspace, convenience, frames > > > > ;;; Commentary: > > > > ;; This package provides tagged workspaces in Emacs, similar to > > ;; workspaces in windows managers such as Awesome and XMonad (and > > ;; somewhat similar to multiple desktops in Gnome or Spaces in OS X). > > Aaagh, not another one! Now I have another package to evaluate. Can't > the community settle on one solution to this problem? > > http://www.emacswiki.org/emacs/WorkgroupsForWindows > Thanks for your replies - I'll look into WorkgroupsForWindows as it seems tho offer more options then the other and a better manual. I am already using desktop-save, but I have the feeling that it sometimes does not work. Cheers and thanks, Rainer > -- > Dave Abrahams > BoostPro Computing > http://www.boostpro.com > > > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug
Re: [O] Hide drawers in indirect buffers?
On Oct 2, 2011, at 9:36 PM, Dave Abrahams wrote: > > on Sat Oct 01 2011, Dave Abrahams wrote: > >> When I initially request an indirect buffer for an item (especially from >> the agenda) it shows up with all its drawers open. I'd prefer it if >> they were closed by default. Is there a way to do that? > > To follow up my own post... > > This is actually very surprising, because the entry shows up in a state > that can't be reached by tabbing on its headline, with all the drawers > open. If you run (org-show-entry) in the indirect buffer it goes into a > less-noisy configuration. This is indeed a bug, fixed now. - Carsten
Re: [O] Recursive org-agenda-files
Jambunathan K writes: > Neilen Marais writes: > >> Hi, >> >> netty hacky gmail.com> writes: >> >>> >>> Hi Neilen, >>> >>> I think you want these in your .emacs (from >>> http://orgmode.org/worg/org-faq.html, "Can I add files recursively to >>> my list of agenda files?"): >>> (load-library "find-lisp") >>> (setq org-agenda-files (find-lisp-find-files "~/org" "\.org$")) >> >> Thanks. I tried this, but as far as I can tell it won't automatically see new >> files or directories as they are added, so I have to re-evaluate te setq >> every >> time I add new projects or files. Or am I wrong? > Have you considered adding it to say org-mode-hook? Seems like a Wrong suggestion to me. Try using `C-c [' to add the current org file. I am assuming that org files are created by hand and not by some daemon that spits out agenda files when you are away from emacs. >> Thanks >> Neilen >> >> >> >> >> --
Re: [O] How to debug "Specified time is not representable"
>> A simple M-x grep-find on .org files for the year should work. > > I do not know the year. That is what regexps are for. If you visit the org file and do M-x occur RET [<[]19[0-7][0-9] RET you are likely to find all entries in the 1900 and 1979 range. It is not my intention to provide you with a outright solution but only to give sufficient hints so that you make progress. >> You may also try >> M-x debug-on-entry RET ding RET >> Look at the backtrace and see whether you can get some clues. > > Sorry, no clue. > >> Works best if your orgmode is not compiled > > When I have compiled Orgmode, should I delete all *.elc files? May be the debug-on-entry is the wrong strategy for the problem at hand. You may disregard my suggestion. --
Re: [O] Recursive org-agenda-files
Neilen Marais writes: > Hi, > > netty hacky gmail.com> writes: > >> >> Hi Neilen, >> >> I think you want these in your .emacs (from >> http://orgmode.org/worg/org-faq.html, "Can I add files recursively to >> my list of agenda files?"): >> (load-library "find-lisp") >> (setq org-agenda-files (find-lisp-find-files "~/org" "\.org$")) > > Thanks. I tried this, but as far as I can tell it won't automatically see new > files or directories as they are added, so I have to re-evaluate te setq every > time I add new projects or files. Or am I wrong? Have you considered adding it to say org-mode-hook? > Thanks > Neilen > > > > > --
Re: [O] Recursive org-agenda-files
Hi, netty hacky gmail.com> writes: > > Hi Neilen, > > I think you want these in your .emacs (from > http://orgmode.org/worg/org-faq.html, "Can I add files recursively to > my list of agenda files?"): > (load-library "find-lisp") > (setq org-agenda-files (find-lisp-find-files "~/org" "\.org$")) Thanks. I tried this, but as far as I can tell it won't automatically see new files or directories as they are added, so I have to re-evaluate te setq every time I add new projects or files. Or am I wrong? Thanks Neilen