[O] Bug? Problem compiling git - Cannot open file: avl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I just wanted to update to the newest git and I get repeatedly the error Cannot open load file: avl-tree Finally it says: Done (Total of 90 files compiled, 16 failed, 3 skipped) This did not occur the last time I updated (I think the day before yesterday). Emacs version: GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00) of 2013-12-13 on Rainers-MacBook-Pro-2.local Installed via homebrew. Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSynB8AAoJENvXNx4PUvmCy6EIAMKisrRfxP9ZwwCEap5zdmcI vHyJQZRF7oaQE2JFK2K1f2am79EAaUlCGFzhAJM6CPmXyvSL5uybDyRvfHLAQ1B/ /8uIsInBeiX8fD7NONR4Cmtf5LiZLoPRk1O1NMRT7hEE2FDEqahNbb0yo8M8o+rV xAYXpGFeTMsY0sjbeVts490DzbRwtc4G2BRe3QSsTMYL0QQIfY0UTMfe+T9TvGgl uctQXVzNYlditOhhdgOSrYZiCgzy9yOJfEBv40OH4iPKnMHYLzqX84Jz+Byd4p3F tqQxHyq9VmUGYTnMTi9j+MSKWzWASvYigkgvdWrtJuCvIhDnO7ZGKp3INAQbjBs= =1IeV -END PGP SIGNATURE-
Re: [O] Bug? Problem compiling git - Cannot open file: avl
Rainer M Krug rai...@krugs.de writes: I just wanted to update to the newest git and I get repeatedly the error Cannot open load file: avl-tree This is weird. avl-tree is in Emacs since 2007. What (require 'avl-tree) returns? Maybe ask the maintainers of the darwin port. -- Bastien
Re: [O] [PATCH] Re: \newpage in HTML export
Hi Suvayu, Suvayu Ali fatkasuvayu+li...@gmail.com writes: It already exists: http://orgmode.org/worg/exporters/filter-markup.html Maybe this can be improved? This is the documentation for export filters, with some example. But it is not clear that this page welcome new contributed filters, and I think it does not. I think having another page would help. -- Bastien
Re: [O] help with porting babel example on worg to latest version
Hi Christian, Christian Wittern cwitt...@gmail.com writes: #+name: fibonacci-inputs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | #+name: fibonacci-seq(fib-inputs=fibonacci-inputs) #+begin_src emacs-lisp (defun fibonacci (n) (if (or (= n 0) (= n 1)) n (+ (fibonacci (- n 1)) (fibonacci (- n 2) (mapcar (lambda (row) (mapcar #'fibonacci row)) fib-inputs) #+end_src I think you need #+headers: fibonacci-seq(fib-inputs=fibonacci-inputs) instead of #+name above. -- Bastien
Re: [O] Bug? Problem compiling git - Cannot open file: avl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/06/14, 10:40 , Bastien wrote: avl-tree even when starting with -Q My guess is that not the homebrew version of emacs is called for compiling, but the in OS X buildin one, which does not have avl-tree (to old). So I now renamed the build-in emacs and tried to update again - now it works. The problem seems to been that a) in my PATH, the /usr/bin (where the build in is located) comes before /usr/local/bin (where the homebrew is installed). b) I have set an alias in bash, so that emacs calls the homebrew version c) the make script somehow does use the PATH but not the alias. Is this normal, or something unusual in the org make process? Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSyn9UAAoJENvXNx4PUvmCMzIH/1V1Yg3IC7eZeRJ6xdEEXBuQ nnEN9+22hJ4msqOWzwxRoAH3J17PP76x4b+SLz6/kpQEMkHTIjaNnXOOdCYEmjYF fvXxQvYFztEitshsbqXjpcxIAX85sffte63jwdpgeyhpWyl3Qtmw2lraelRMYnsv mzekAYnqiomtP1bif4zW+0I2yMqOPc8bzn1ugZ6f5xFf+e4tL5+Q8xKAex03OY5R SqOc1ZcrVcyABG8L20rdMNk2phqqoL1B2uhD3EKASSwUicSr+iQFuQiwfX+cYYZZ FcRFqSoEQHGc4GO2odEviDQSC0tFvrejyNVIIB1fyzpxwKkYnBwHn0iYXpaSuRo= =vb/f -END PGP SIGNATURE-
Re: [O] Bug? Problem compiling git - Cannot open file: avl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/06/14, 10:40 , Bastien wrote: Rainer M Krug rai...@krugs.de writes: I just wanted to update to the newest git and I get repeatedly the error Cannot open load file: avl-tree This is weird. avl-tree is in Emacs since 2007. What (require 'avl-tree) returns? avl-tree even when starting with -Q My guess is that not the homebrew version of emacs is called for compiling, but the in OS X buildin one, which does not have avl-tree (to old). So I now renamed the build-in emacs and tried to update again - now it works. The problem seems to been that a) in my PATH, the /usr/bin (where the build in is located) comes before /usr/local/bin (where the homebrew is installed). b) I have set an alias in bash, so that emacs calls the homebrew version c) the make script somehow does use the PATH but not the alias. Is this normal, or something unusual in the org make process? Thanks, Rainer Maybe ask the maintainers of the darwin port. - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSyn9cAAoJENvXNx4PUvmCsAkIAOo2X9hjM23m0YyCIGKg3avr kfdGdEJnvmwMEStyGkVAh6FS7IQkhS+gNs5CUGD2aAo2iCM/ioS/YM8Fn6BWrvFk Hw55M2ofcr1xm0zL0yWmHz+zcU9jFhHc9NaKTb5R9dIY0fBLoWCWDdJXgidGt8Bs 9kBuRsxsDrwwFW7s3SQaESrVw5DqZzgKfy495Rl+kk/bZSKMpIJTPuwAtVXh85+5 CksVnjn8qKKD0KLQsd2FKkeS6xdcHPxbVLKQ1we7nTBH1nG3L4xiB+I3JYx7xoNA hUFjNjFTStdB4rBzEbunexAS6Vk0e9mBvFF1cSPFZHAqw6TaIbP+hpUNEuwPnEg= =Gwnr -END PGP SIGNATURE-
Re: [O] problem of path in using ox-bibtex
2014/1/5 Julian Gehring julian.gehr...@gmail.com Have you tried to specify the full path without the expansion of '~' (i.e. replacing the ~ with /home/USER/ or equivalent)? At least, this seems to eliminate the error message of bibtex2html failing. Sorry Julian, I reply too lately, but I have had some problems with my O.S. No, I confirm that I need #+BIBLIOGRAPHY: references plain option:-a limit:t i.e. the references.bib file in the same folder of the paper.org file and that #+BIBLIOGRAPHY: /home/joseph/Dropbox/Bibliographies/references plain option:-a limit:t makes bibtex2html fails. That'not a real problem. I am going to learn how organize my folders for publishing with org. Best wishes Jo.
Re: [O] help with porting babel example on worg to latest version
What's the problem with: #+name: fibonacci-inputs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | #+name: fibonacci-seq #+begin_src emacs-lisp :var fib-inputs=fibonacci-inputs (defun fibonacci (n) (if (or (= n 0) (= n 1)) n (+ (fibonacci (- n 1)) (fibonacci (- n 2) (mapcar (lambda (row) (mapcar #'fibonacci row)) fib-inputs) #+end_src #+RESULTS: fibonacci-seq | 1 | 1 | 2 | 3 | 5 | 8 | 13 | 21 | 34 | 55 | | 1 | 3 | 8 | 21 | 55 | 144 | 377 | 987 | 2584 | 6765 | ? El Lunes 6 de enero de 2014 8:03, Christian Wittern cwitt...@gmail.com escribió: Hi there, I am trying to understand how to use information from an org table as input for a babel function. For this purpose, I looked at the example at http://orgmode.org/worg/org-contrib/babel/intro.html#arguments-to-source-code-blocks It seems that this is using the old syntax, eg. #+tblname, which seems to be just #+name now. But even with this change I can not reproduce the result. With the following code, I get the message Symbol's value as variable is void: fib-inputs when doing C-c on the src. I am sure there are more changes I need to make, but I can't figure it out. Any help appreciated. Here is the code so far: #+name: fibonacci-inputs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | #+name: fibonacci-seq(fib-inputs=fibonacci-inputs) #+begin_src emacs-lisp (defun fibonacci (n) (if (or (= n 0) (= n 1)) n (+ (fibonacci (- n 1)) (fibonacci (- n 2) (mapcar (lambda (row) (mapcar #'fibonacci row)) fib-inputs) #+end_src All the best, Christian -- Christian Wittern, Kyoto
Re: [O] problem of path in using ox-bibtex
Does this : http://blog.jansoehlke.com/?Recipesnr=62 help to run bibtex2html in different directories ? basically: either export TMPDIR=. or change open_any in texmf.cnf. Fabrice 2014/1/6 Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com 2014/1/5 Julian Gehring julian.gehr...@gmail.com Have you tried to specify the full path without the expansion of '~' (i.e. replacing the ~ with /home/USER/ or equivalent)? At least, this seems to eliminate the error message of bibtex2html failing. Sorry Julian, I reply too lately, but I have had some problems with my O.S. No, I confirm that I need #+BIBLIOGRAPHY: references plain option:-a limit:t i.e. the references.bib file in the same folder of the paper.org file and that #+BIBLIOGRAPHY: /home/joseph/Dropbox/Bibliographies/references plain option:-a limit:t makes bibtex2html fails. That'not a real problem. I am going to learn how organize my folders for publishing with org. Best wishes Jo. -- Fabrice Popineau - SUPELEC Département Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 --
[O] Parsing Org-mode in Python (was: Implementing Org-mode tools in languages other than ELISP)
Hi! * Daniel Clemente n142...@gmail.com wrote: I dream of having a general Python parser for Org mode files, knowing every bit about the current syntax for Org files, surrounded by enough Python machinery to make it useful. Oh, this would be great since there are way more Python-coders out there as ELISP coders. Try PyOrgMode (https://github.com/bjonnh/PyOrgMode), it works for some files (but still needs corrections: it crashes with date formats, with bold markers, etc.). For my blogging system I am implementing [4] I was doing some research on current Org-parsers in Python. My notes about PyOrgMode (2013-05) were that there is not much of a documentation to use it properly and that the list of open todos contains rather basic things to consider it elaborated enough. So far, I consider my own Python parser[1] as the most advanced Python parser so far (unfortunately). However, I am completely aware of its downsides: - it's a very primitive line-by-line parser and not using any classical parsing tool at all (works for me so far!) - it's currently limited to a few Org-mode elements so that I can continue to develop my blogging system - more Org-mode elements (not all!) will be added when my blogging system gets stable enough to add Org-mode syntax features such as tables. - it's not written with the premise to be a stand-alone Org-mode parser since I only need it for my blogging system - feel free to use it and modify it to be a stand-alone parser I do think that for a more general approach, somebody should develop an Org-mode Python parser with classical parsing engines. I do have some experience with ply[2]. Unfortunately, I have to say that using ply feels a bit awkward in Python. I did not get the impression that this is a parsing engine that is done the Python way. A lot of things are done by convention (naming stuff, and so on) which has certain limitations in details. And AFAIR there were more things that puzzled me. However, it got my (simple) job [3] done back then. You don't need a Lisp interpreter written in Python, only Python code that understands org syntax without getting confused. I am no expert in this. I do feel that if you are going to use a ELISP interpreter to parse Org-mode syntax for Python, this should completely re-use the original Org-parser and nothing else. I have no idea if this is possible or not. If you have to implement a parser on your own, you probably should stick to Python-only. In order to avoid confusion, your own Python parser implements only a very well defined and documented sub-set of Org-mode syntax and should accept/parse everything else als ordinary text (content). IMHO. HTH. 1. https://github.com/novoid/lazyblorg/blob/master/lib/orgparser.py 2. http://www.dabeaz.com/ply/ 3. https://github.com/novoid/2011-04-tagstore-formal-experiment/tree/master/analysis_and_derived_data/scripts 4. https://github.com/novoid/lazyblorg -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs from https://github.com/novoid/Memacs https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] email - TODO items?
* Peter Davis p...@pfdstudio.com wrote: Sometimes it's much quicker and easier to email myself notes on things to do. Using email for a todo management system has many disadvantages. I read a *lot* about those attempts. For the purpose you were mentioning, I am using MobileOrg (Android) to quickly capture notes about todos. This way, I get those todos in my inbox.org and refile them every other day. -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs from https://github.com/novoid/Memacs https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] problem of path in using ox-bibtex
Hello Fabrice, 2014/1/6 Fabrice Popineau fabrice.popin...@supelec.fr http://blog.jansoehlke.com/?Recipesnr=62 help to run bibtex2html in different directories ? No, I got always the same message but I have not changed all texmf.cnf files, but only the file of the path indicated in this blog. Thanks for your help. I have decided to find the solution with org-publish, in orgazing my folders as it is suggested here : http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html it is maybe a good solution... Meilleurs voeux pour cette année 2014, et encore merci ! Joseph
Re: [O] html checkbox output
Hello, Bastien b...@gnu.org writes: Hi Nicolas and Rick, Nicolas Goaziou n.goaz...@gmail.com writes: A new buffer keyword (which needs to be documented in org.texi), a defcustom with a completely free sexp... Isn't it a bit too much for mere checkboxes? Personally I think the defcustom is enough, as this choice is likely to be made for all Org documents. Filters provide almost the same functionality: (defun my-checkbox-filter (item backend info) (when (org-export-derived-backend-p backend 'html) (replace-regexp-in-string \\`.*\\(code\\[\\(X\\|#xa0;\\|-\\)\\]/code\\).*$ (lambda (rep) (let ((check (match-string 2 rep))) (cond ((equal check X) #x2611;) ((equal check -) #x2610;) (t #x2610; item nil nil 1))) (add-to-list 'org-export-filter-item-functions 'my-checkbox-filter) Yes, but a defcustom would be easier. As long as it doesn't let you write completely free sexps. Otherwise, a function is equally complex. Regards, -- Nicolas Goaziou
Re: [O] Exporting markdown specific string
Hello, Bastien b...@gnu.org writes: Nicolas Goaziou n.goaz...@gmail.com writes: #+HTML and the likes are special shortcuts for historical export backends, we don't plan to add more. What? Every back-end introduces its own specific keyword (#+beamer: #+ascii ...). I just added them (#+md: and #+markdown:) for md back-end. Ah, my mistake. (I had a memory of a conversation about #+HTML looked too ad hoc, and in my memories you convinced me that we should not add more of these keywords. But maybe you didn't convince me then!) I don't like them much (as they are redundant) so it's well possible we had this conversation. For some reason they now exist, for the worse or the better, in every core back-end. Though, they are not mandatory for new back-ends. Only documentation can tell if such a keyword exists for a given back-end (which reminds me that the recently introduced keywords are not documented yet). Regards, -- Nicolas Goaziou
[O] patch for worg (was:Re: help with porting babel example on worg to latest version)
Thanks Miguel, On 2014-01-06, 19:27, Miguel Ruiz wrote: #+begin_src emacs-lisp :var fib-inputs=fibonacci-inputs This magic line does the trick. I created a patch for this, attached. I tried to follow the instructions, but since this is the first time, please be patient if something went wrong. Cheers, Christian -- Christian Wittern, Kyoto From 08b07bbdd88bd78dd880a726f875ac167d4e2597 Mon Sep 17 00:00:00 2001 From: Chris Wittern chris@mbp3 Date: Mon, 6 Jan 2014 20:57:48 +0900 Subject: [PATCH] Adopted the fibonacci example to Org 8.x syntax --- org-contrib/babel/intro.org | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/org-contrib/babel/intro.org b/org-contrib/babel/intro.org index 88eefc9..99a25a2 100644 --- a/org-contrib/babel/intro.org +++ b/org-contrib/babel/intro.org @@ -498,7 +498,7 @@ Now we use the source block: Here is the Org-mode table that is passed to =fibonacci-seq=: -#+tblname: fibonacci-inputs +#+name: fibonacci-inputs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | @@ -508,8 +508,8 @@ The table looks like this in the Org-mode buffer: : | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | The [[http://www.gnu.org/software/emacs/manual/elisp.html][Emacs Lisp]] source code: -#+name: fibonacci-seq(fib-inputs=fibonacci-inputs) -#+begin_src emacs-lisp +#+name: fibonacci-seq +#+begin_src emacs-lisp :var fib-inputs=fibonacci-inputs (defun fibonacci (n) (if (or (= n 0) (= n 1)) n @@ -520,8 +520,8 @@ The [[http://www.gnu.org/software/emacs/manual/elisp.html][Emacs Lisp]] source c #+end_src In the Org-mode buffer the function looks like this: -: #+name: fibonacci-seq(fib-inputs=fibonacci-inputs) -: #+begin_src emacs-lisp +: #+name: fibonacci-seq +: #+begin_src emacs-lisp :var fib-inputs=fibonacci-inputs : (defun fibonacci (n) : (if (or (= n 0) (= n 1)) : n -- 1.8.3.4 (Apple Git-47)
Re: [O] bulk org-agenda-do-date-later problem OMG BACKTRACE ATTACHED
Douglas zaphod4...@aol.com writes: I followed the directions in Feedback, so I believe the backtrace was from uncompiled code. Trust me, it wasn't. The Feedback section does not explain all of the details, primarily because the details depend on how exactly you have installed org-mode: there are many possibilities here, so the explanation would get complicated fast. The idea however is that you have to delete all the .elc files from wherever you are loading your org-mode and reload org-mode. -- Nick
Re: [O] email - TODO items?
On Mon, Jan 6, 2014, at 05:51 AM, Karl Voit wrote: * Peter Davis p...@pfdstudio.com wrote: Sometimes it's much quicker and easier to email myself notes on things to do. Using email for a todo management system has many disadvantages. I read a *lot* about those attempts. For the purpose you were mentioning, I am using MobileOrg (Android) to quickly capture notes about todos. This way, I get those todos in my inbox.org and refile them every other day. Thanks for the suggestions. I'll look into them. Strictly speaking, these are not TODO items, but ideas and notes for blog posts I may want to write. The email approach has been ok, but since I typically expand on these short notes in org-mode, it would be useful to be able to import them directly. But I'll certainly look at these alternatives. Thanks! -pd -- Peter Davis www.techcurmudgeon.com
Re: [O] Bug: HTML Export doesn't handle internal link with spaces [8.0.7 (8.0.7-6-g13cb28-elpa @ /home/jbalint/.emacs.d/elpa/org-20130812/)]
Bastien b...@gnu.org writes: Another idea would be to get rid of automatic hexification in all cases, and have more tolerant regexps for links. This seems incertain. How so? Accepting balanced pairs of square brackets is better than no closing square bracket at all. Or maybe we can just live with the current problem. Probably, yes. But I have the feeling we encounter the problem again. Regards, -- Nicolas Goaziou
Re: [O] html checkbox output
Nicolas Goaziou n.goaz...@gmail.com writes: As long as it doesn't let you write completely free sexps. I agree. But this is a very minor issue with Rick's patch, the bulk of the work is done and I'd be glad to see it applied, with the limitations we've been discussing. If Rick is on it, let's wait for this. -- Bastien
Re: [O] patch for worg
Hi Christian, Christian Wittern cwitt...@gmail.com writes: This magic line does the trick. Applied, thanks! I created a patch for this, attached. I tried to follow the instructions, but since this is the first time, please be patient if something went wrong. Things went fine. Please send me your public key if you want to get direct push access to Worg. Best, -- Bastien
[O] gnus: link annoyance
Hi, Org people. Still playing with one of my little tools (called org-grep), I added the capability of searching Unix mailbox (producing rmail: links) and Gnus mailgroups (producing gnus: links). This resurrected an old gnus: annoyance I once reported on this mailing list, yet without being able to convince anybody there was a problem. I dare trying again! :-) Whenever I visit a gnus: type link from Org, it has the side effect of reading the article in Gnus parlance, forcing me to unread it each time afterwards. If I forget to unread it, which is a likely error, the article will not be shown if I later visit its mailgroup using Gnus in a regular way. So in practice, it is kind of forever lost. This is a sad side-effect of gnus: links. In this area, Org should immediately unread any gnus: link it follows, or else and maybe even better, leave the reached article with the flags it already has. If the user explicitly saved the article in an Org file using org-store-link, (s)he surely though of it as kind of permanent, and Org should then not read it, even the user did not bang it. If the link is dynamically created like with org-grep, and the user happens to follow one of these links among many others, the user should not be punished by loosing the article because (s)he forgot to explicitly unread it :-). François P.S. Who also has a question about rmail: and gnus: links. Is there a way in the link syntax allowing a precise line positioning within the article? It would be wonderful for org-grep, that would then make great use of such a possibility.
[O] Bug: property drawer created within other drawers
Dear developers Property drawers for certain items end up getting created within an already existing LOGBOOK drawer. The problem is that the first while loop in org-insert-property-drawer is also matching CLOCK lines within the drawer, so it reads into the drawer instead of stopping before it. I discovered a matching report that was already submitted by Sebastien Vauban (http://article.gmane.org/gmane.emacs.orgmode/78881). Problematic code in org.el: (defun org-insert-property-drawer () ;... (let ((indent (if org-adapt-indentation (- (match-end 0) (match-beginning 0)) 0)) (beg (point)) (re (concat ^[ \t]* org-keyword-time-regexp)) end hiddenp) (outline-next-heading) (setq end (point)) (goto-char beg) (while (re-search-forward re end t)) ; === problem I did a quick fix using the following construct: (let ((indent (if org-adapt-indentation (- (match-end 0) (match-beginning 0)) 0)) (beg (point)) (re (concat ^[ \t]* org-keyword-time-regexp)) end hiddenp) (outline-next-heading) (setq end (point)) (goto-char beg) (next-line) (while (looking-at re) (next-line)) (setq hiddenp (outline-invisible-p)) ; comment-out: (end-of-line 1) ; comment-out: (and (equal (char-after) ?\n) (forward-char 1)) Here's a typical task, where the original code will fail and place the property drawer just before the end of the LOGBOOK drawer. *** DONE some task CLOSED: [2013-07-10 Wed 14:11] DEADLINE: 2013-06-03 Mon SCHEDULED: 2013-07-08 Mon :LOGBOOK: - State DONE from WAIT [2013-07-10 Wed 14:11] CLOCK: [2013-05-17 Fri 17:07]--[2013-05-17 Fri 17:16] = 0:09 CLOCK: [2013-05-08 Wed 14:30]--[2013-05-08 Wed 15:30] = 1:00 CLOCK: [2013-05-06 Mon 14:55]--[2013-05-06 Mon 15:30] = 0:35 - State WAIT from TODO [2013-04-03 Wed 14:31] \\ sent mail - State TODO from DONE [2013-03-20 Wed 11:25] - State DONE from TODO [2012-11-22 Thu 15:05] CLOCK: [2012-11-22 Thu 14:40]--[2012-11-22 Thu 15:04] = 0:24 - State TODO from[2012-11-20 Tue 16:14] :END: - bla - some more bla Emacs : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2) of 2014-01-03 on akhlut, modified by Debian Package: Org-mode version 8.2.4 (8.2.4-18-g4ee7e6-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131230/) Best regards, Derek
[O] org-cycle-hook from org-mode hook
Hi again, Org people. I noticed a recent change in Org mode behaviour, which I guess is related to a git pull of the org-mode project. This is so minor that it is hardly a problem for me, I only report it in case it would hint at some unwanted change that would have more consequences for others. Opening an Org file in Emacs executes the hooks on org-mode-hooks. Previously, it also executed the hooks on org-cycle-hook, while now, I have the impression it does not anymore. The solution is easy for me, I merely run my own Org cycle hook function from my main Org mode hook. François
Re: [O] Missing patch from Eric Schulte from 2013-10-09
Hi Bastien, I noticed that I miss the following patch from Eric Schulte (from 2 months ago): http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=15847336c39e7219e1c51c55d487f99956a06e34 I have Org-mode version 8.2.4 (8.2.4-8-gf1b933-elpaplus @ c:/Users/fpz/Documents/home/.emacs.d/elpa/org-plus-contrib-20131216/) taken from elpa. When I download the current stable release of Org-mode (version 8.2.4 from http://orgmode.org/) I see that this patch is missing too (the org-babel-tangle-use-relative-file-links variable is missing). Any chance to get this patch in elpa (without having to clone the git master branch)? The patch is in the master branch only, your best move is to clone org-mode and follow that branch -- or wait until we make another major release. Thanks for your answer. I understand, but I find it weird that a same version number (like 8.2.4) gives different functionalities/fixes/patches according to the git branch you take the sources from. If I clone the master branch, I'll have version 8.2.4 with every patch. While if I download a version (or take it from elpa), I will also have version 8.2.4 --- but coming from the maint branch and thus with certain patches (not all). Shouldn't the maintenance branch keep the same version number until a new release is made (i.e. until the master branch is fully merged into the maint branch)? Maybe I'm wrong on certain points... any help on this is welcome. Best regards, Francesco
[O] org-element, spurious command??
Hi, I've been reading lisp/org-element.el, when I found a command lounging around in the middle of the file outside of any defun: (put 'org-element-map 'lisp-indent-function 2) on line 4275 (maint tree this morning). Is this intended to be there? PS: it is also in the master tree, line 4276. Thanks and best regards Robert
Re: [O] Local key binding gone wrong!
Sharon Kimble boudic...@talktalk.net writes: Nick Dokos ndo...@gmail.com wrote: Sharon Kimble boudic...@talktalk.net writes: Whilst trying to set a key binding to archive 'DONE' todo items, by trying to bind F13 [aka CapsLock] to '2', so the finished intended result would have been - F13 + 2 = DONE ARCHIVED. This is a global key binding, although I was trying for a local one. How do I know its 'global'? Because CapsLock now does not work for me to use in this email! So, how do I revert CapsLock to being its intended F13 please? If you have not added anything to .emacs (or whatever init file(s) you use), just restart emacs. If you have, delete it and rest art emacs. Thanks for this, I'll try it tomorrow when I'm back on the computer. However, I noticed that you called xmodmap from emacs to modify the X keymap - restarting emacs will not undo that side effect, but restarting X as well should undo it. Nick
Re: [O] org-element, spurious command??
Hello, Robert Klein rokl...@roklein.de writes: I've been reading lisp/org-element.el, when I found a command lounging around in the middle of the file outside of any defun: (put 'org-element-map 'lisp-indent-function 2) on line 4275 (maint tree this morning). Is this intended to be there? Yes, it is. `org-element-map' is defined just above. This sexp sets indentations rules for it. Regards, -- Nicolas Goaziou
Re: [O] Bug: HTML Export doesn't handle internal link with spaces [8.0.7 (8.0.7-6-g13cb28-elpa @ /home/jbalint/.emacs.d/elpa/org-20130812/)]
Nicolas Goaziou n.goaz...@gmail.com writes: Bastien b...@gnu.org writes: Another idea would be to get rid of automatic hexification in all cases, and have more tolerant regexps for links. This seems incertain. How so? Accepting balanced pairs of square brackets is better than no closing square bracket at all. Well, I let you try this, but my guess it that the cost in terms of regexp complexity (especially for the balanced aspects) will be a bit too high. -- Bastien
Re: [O] gnus: link annoyance
François Pinard pin...@iro.umontreal.ca writes: Whenever I visit a gnus: type link from Org, it has the side effect of reading the article in Gnus parlance, forcing me to unread it each time afterwards. If I forget to unread it, which is a likely error, the article will not be shown if I later visit its mailgroup using Gnus in a regular way. So in practice, it is kind of forever lost. Maybe I'm misunderstanding (not deliberately, I assure you) what you mean but it's certainly not lost: the link continues to work, even if it points to a read article; and visiting the group with C-u SPACE in gnus also allows you to see previously read articles. It's only expired articles that can never be gotten back after their expiration period runs out. But maybe that's what you are alluding to when you say visiting the group in a regular way? Nick
Re: [O] Bug: property drawer created within other drawers
Hello, Derek Feichtinger dfe...@gmail.com writes: Dear developers Property drawers for certain items end up getting created within an already existing LOGBOOK drawer. The problem is that the first while loop in org-insert-property-drawer is also matching CLOCK lines within the drawer, so it reads into the drawer instead of stopping before it. I discovered a matching report that was already submitted by Sebastien Vauban (http://article.gmane.org/gmane.emacs.orgmode/78881). Problematic code in org.el: (defun org-insert-property-drawer () ;... (let ((indent (if org-adapt-indentation (- (match-end 0) (match-beginning 0)) 0)) (beg (point)) (re (concat ^[ \t]* org-keyword-time-regexp)) end hiddenp) (outline-next-heading) (setq end (point)) (goto-char beg) (while (re-search-forward re end t)) ; === problem I did a quick fix using the following construct: (let ((indent (if org-adapt-indentation (- (match-end 0) (match-beginning 0)) 0)) (beg (point)) (re (concat ^[ \t]* org-keyword-time-regexp)) end hiddenp) (outline-next-heading) (setq end (point)) (goto-char beg) (next-line) (while (looking-at re) (next-line)) (setq hiddenp (outline-invisible-p)) ; comment-out: (end-of-line 1) ; comment-out: (and (equal (char-after) ?\n) (forward-char 1)) Here's a typical task, where the original code will fail and place the property drawer just before the end of the LOGBOOK drawer. *** DONE some task CLOSED: [2013-07-10 Wed 14:11] DEADLINE: 2013-06-03 Mon SCHEDULED: 2013-07-08 Mon :LOGBOOK: - State DONE from WAIT [2013-07-10 Wed 14:11] CLOCK: [2013-05-17 Fri 17:07]--[2013-05-17 Fri 17:16] = 0:09 CLOCK: [2013-05-08 Wed 14:30]--[2013-05-08 Wed 15:30] = 1:00 CLOCK: [2013-05-06 Mon 14:55]--[2013-05-06 Mon 15:30] = 0:35 - State WAIT from TODO [2013-04-03 Wed 14:31] \\ sent mail - State TODO from DONE [2013-03-20 Wed 11:25] - State DONE from TODO [2012-11-22 Thu 15:05] CLOCK: [2012-11-22 Thu 14:40]--[2012-11-22 Thu 15:04] = 0:24 - State TODO from[2012-11-20 Tue 16:14] :END: - bla - some more bla Thanks for the report. It seems odd to skip so many lines in order to insert a property drawer. Couldn't we insert it right after the planning information (i.e. before LOGBOOK in the example)? Regards, -- Nicolas Goaziou
Re: [O] org-cycle-hook from org-mode hook
Hi François, François Pinard pin...@iro.umontreal.ca writes: I noticed a recent change in Org mode behaviour, which I guess is related to a git pull of the org-mode project. This is so minor that it is hardly a problem for me, I only report it in case it would hint at some unwanted change that would have more consequences for others. Thanks for reporting this. The commit introducing the change must be this one: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=44acd000 Opening an Org file in Emacs executes the hooks on org-mode-hooks. Previously, it also executed the hooks on org-cycle-hook, while now, I have the impression it does not anymore. The solution is easy for me, I merely run my own Org cycle hook function from my main Org mode hook. The function `org-set-startup-visibility' is always called when you find an Org file interactively. Previously, it used `org-cycle' internally to set the visibility state. Now it uses `org-content` and `org-overview' instead, so that C-u C-u TAB always work. I think it makes sense to call org-cycle-hooks *only* when cycling manually, so the current behavior makes sense IMO. Let me know if you (or others) think otherwise. -- Bastien
[O] Performance issues after upgrading from Emacs 23.3 to 24.3+prelude
Hi! I have got very severe performance issues after I upgraded my Emacs. Before upgrading: - Debian stable x64 - Emacs 23.3 (Debian stable deb-package) - Org-mode from git: version 8.2.3c (release_8.2.3c-225-g668ba5) - no prelude Now: - Debian stable x64 - no change but I replaced Debian Emacs packages with Emacs-snapshot and MELPA/Marmelade - Emacs-snapshot 24.3.50.1 from [1] - Org-mode from git: version 8.2.3c (release_8.2.3c-225-g668ba5) - no change - Emacs prelude from [2] I mainly use Emacs for Org-mode and therefore I got issues only in Org-mode. Some tasks are very slow and take 100% of a CPU core. This is the rare occasion where I am happy that Emacs is single-threaded :-) Further down, there are three examples with their profiling results. I don't know how to interpret the profiling results properly. Most annoying: sometimes, Emacs starts using up its CPU core at 100% without any particular reason or event I am aware of. Probably it is while auto-saving (not every time!) but I am not sure. I have no idea on how to debug this behavior because when Emacs is blocking completely, it is not even updating its buffer display nor reacting on C-g or similar. However, I am able to kill (with default kill signal) the Emacs process without leaving unsaved buffers. I guess that with Emacs prelude, I got some functionality which is causing these issues. So this might be of interest of other Emacs/prelude users as well. * Example 1: moving an item in a list up/down I just switch two lines of a simple list by invoking M-up: - foo - bar - baz (is moved one line up) This took only a fraction of a second before. Now I ave to wait approx. 2-3 seconds. I learned how to use the Emacs profiler and generated a CPU-report when invoking the command: [3] Interestingly, when I am using M-x org-move-item-up, it does not show the slow-down effect. * Example 2: M-up on a heading containing 2 lines of appointments and notes This task took almost two minutes. Before the update, this was probably done in a couple of seconds. Here is the CPU-report of the profiler: [4] * Example 3: Re-calculating and formatting of a 10x10 table The table has 10x10 cells and four very simple formulas. The operation took approx. 1-3s before the update. Now, it takes over four minutes. The command invoked was: C-u C-u C-c C-c CPU-profiling report: [5] 1. http://emacs.naquadah.org/ 2. git://github.com/bbatsov/prelude.git 3. http://pastebin.com/mQRDYbq7 - M-up on a list item 4. http://pastebin.com/P2sJPsHy - moving large heading 5. http://pastebin.com/3Kw6knYU - re-calculating table -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs from https://github.com/novoid/Memacs https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] gnus: link annoyance
Hi François, Thanks for working on org-grep. It looks interesting. Excuse me if I misunderstood something below. François Pinard pin...@iro.umontreal.ca writes: Whenever I visit a gnus: type link from Org, it has the side effect of reading the article in Gnus parlance, forcing me to unread it each time afterwards. If I forget to unread it, which is a likely error, the article will not be shown if I later visit its mailgroup using Gnus in a regular way. So in practice, it is kind of forever lost. [...] This is a sad side-effect of gnus: links. In this area, Org should immediately unread any gnus: link it follows, or else and maybe even better, leave the reached article with the flags it already has. You read it, no? How can it not be marked read when you read it? Perhaps you would like to the following on mailgroups you care about (from the *Groups* buffer): G c C-s Display S-TAB RET TAB RET 1 TAB 100 M- TAB TAB RET Also, you can search with nnir using GG or C-u GG (but links probably won't work from a nnir buffer). If the user explicitly saved the article in an Org file using org-store-link, (s)he surely though of it as kind of permanent, and Org should then not read it, even the user did not bang it. I cannot reproduce using the following receipt: 1. Mark an article as important with '!', (gnus-summary-tick-article-forward N) 1. (org-store-link) 2. org-insert-link with the above link in org-buffer 3. Open link. My tick is preserved. I can also change the mark to gnus-summary-mark-as-expirable and preserve the link. I cannot preserve an unread mark when I read it, but it shouldn't 'cause I read the article. . . Cheers, Rasmus -- When the facts change, I change my mind. What do you do, sir?
[O] A few configuration questions plus mode line not appearing in graphical frame
Hi, I'm trying to tighten up my org setup for the new year. I currently use a single file Work-log.org with headlines and subtrees for tracking work time: IE: (unfolded sub tree) * JWRK PPTDEV-455 Add 'hve' to all Appropriate Library calls in web_src/hve/scripts :455: ** WORK 2013-12-04 Wed code review, developer testing, prepare for install CLOCK: [2013-12-04 Wed 14:00]--[2013-12-04 Wed 15:00] = 1:00 ** DONE 2013-12-02 Mon search archive for appropriate lib calls add have CLOCK: [2013-12-04 Wed 13:10]--[2013-12-04 Wed 14:00] = 0:50 CLOCK: [2013-12-03 Tue 09:15]--[2013-12-03 Tue 09:25] = 0:10 CLOCK: [2013-12-02 Mon 15:29]--[2013-12-02 Mon 16:05] = 0:36 :PROPERTIES: -- Subhan Michael Tindall | Software Developer | s...@rentrakmail.com RENTRAK | www.rentrak.com | NASDAQ: RENT
Re: [O] A few configuration questions plus mode line not appearing in graphical frame
I think you forgot to tell us what the problem is :) -- Bastien
[O] a few configuration questions plus an Effort question
I'm trying to tighten up my org configuration for the new year. I currently use a single file Work.org for tracking work, notes, and time an a per-ticket basis EG * PPTDEV-511 Documentation :511: ** WORK investigate document plog problem 1/3/14 CLOCK: [2014-01-06 Mon 09:11]--[2014-01-06 Mon 09:12] = 0:01 CLOCK: [2014-01-03 Fri 13:59]--[2014-01-03 Fri 14:35] = 0:36 :PROPERTIES: :Effort: 1 :END: * JWRK PPTDEV-455 Add 'hve' to all Appropriate Library calls in web_src/hve/scripts :455: ** WORK 2013-12-04 Wed code review, developer testing, prepare for install CLOCK: [2013-12-04 Wed 14:00]--[2013-12-04 Wed 15:00] = 1:00 ** DONE 2013-12-02 Mon search archive for appropriate lib calls add have CLOCK: [2013-12-04 Wed 13:10]--[2013-12-04 Wed 14:00] = 0:50 CLOCK: [2013-12-03 Tue 09:15]--[2013-12-03 Tue 09:25] = 0:10 CLOCK: [2013-12-02 Mon 15:29]--[2013-12-02 Mon 16:05] = 0:36 I have columns set up #+COLUMNS: %58ITEM(Details) %TAGS(Context) %5TODO(ToDo) %6CLOCKSUM(Tot) %6CLOCKSUM_T(Today) %10Effort(Est){:} for the file. When I run my daily agenda, I can get to column mode and see my various effort times. However, I lose all my structure that tells me what headlines belong in which subtrees. My column %TAGS shows empty for all but top-level tasks as the tags are inherited, not explicitly set. Is there a setting I should be using to make inherited tags appear here? I haven't been able to find one. Or, even better, a way to make the effort estimates show up in the agenda clock table just like the time summaries? Or even just a way to add an overlay either to the main file or the agenda to show them? Second, my currently clocking task info appears in the window titles with I am in terminal mode, but not when I have a graphic window - using gnome terminal and Ubuntu emacs 23 Org 8 Thanks! -- Subhan Michael Tindall | Software Developer | s...@rentrakmail.com RENTRAK | www.rentrak.com | NASDAQ: RENT
Re: [O] A few configuration questions plus mode line not appearing in graphical frame
Fat fingers and/or lack of coffee was the problem, sent it out to early! Sorry. On Mon, Jan 6, 2014 at 9:24 AM, Bastien b...@gnu.org wrote: I think you forgot to tell us what the problem is :) -- Bastien -- Subhan Michael Tindall | Software Developer | s...@rentrakmail.com RENTRAK | www.rentrak.com | NASDAQ: RENT
Re: [O] bulk org-agenda-do-date-later problem OMG BACKTRACE ATTACHED
Nick Dokos writes: The idea however is that you have to delete all the .elc files from wherever you are loading your org-mode and reload org-mode. The easier way is to simply do either of: C-u M-x org-reload C-u C-c C-x ! The latter only works from an org-mode buffer. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables
Re: [O] Bug? Problem compiling git - Cannot open file: avl
Rainer M Krug writes: The problem seems to been that a) in my PATH, the /usr/bin (where the build in is located) comes before /usr/local/bin (where the homebrew is installed). Except when root, it is almost always wrong to have /usr/local/bin after any system paths. b) I have set an alias in bash, so that emacs calls the homebrew version Depending on where and how you define that alias, sub-shells may or may not see it. It is generally a bad idea to rely on aliases for anything but interactive work. c) the make script somehow does use the PATH but not the alias. Not if EMACS is defined with an absolute path in local.mk. Also, emacs should actually be a link to emacs-maj.min (where maj.min denotes Emacs' version), so if you want to use a specific Emacs rather than the default, you should again define this in local.mk. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada
Re: [O] Missing patch from Eric Schulte from 2013-10-09
Francesco Pizzolante writes: I understand, but I find it weird that a same version number (like 8.2.4) gives different functionalities/fixes/patches according to the git branch you take the sources from. You don't understand what the version numbers mean. Shouldn't the maintenance branch keep the same version number until a new release is made (i.e. until the master branch is fully merged into the maint branch)? The maint branch contains the release (8.2.4 for your example) plus those patches that are purely bugfixes (i.e. do not alter, remove or introduce features). In your example, eight such patches had accumulated, placing you at commit f1b933: release_8.2.4-8-gf1b9339. The master branch includes everything on maint plus any patches that alter, remove or introduce features. That amounted to 350 commits past the 8.2.4 release at the merge into master (d55f06), including those eight from maint: release_8.2.4-350-gd55f063. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] email - TODO items?
Peter Davis p...@pfdstudio.com writes: I use half a dozen email clients, including mutt, which lets me easily pipe a message to a script. The need to support multiple clients may rule out my suggestion but capturing a TODO or a note while visiting a GNUS message and thus preserving the link back to the article that spawned my task/idea is fantastically useful. In your pipe scheme maybe there is some way you can preserve this link back. -Brett. pgpeqX1xVTzBZ.pgp Description: PGP signature
Re: [O] Local key binding gone wrong!
Hi Sharon ! Setting CapsLock to f13 is a neat trick ! Maybe this could help with the rest of your question: (global-set-key (kbd f13) (lambda (ARG) (interactive c) (org-todo (string-to-number (char-to-string ARG))) (org-archive-subtree))) at least it does this for me: - Set the current node to the TODO state given through the second key after f13 - Archive the node afterwards. regards Marc Am 05.01.2014 21:43, schrieb Sharon Kimble: Sharon Kimble boudic...@talktalk.net wrote: Thanks Marc. Here it is - (if (eq window-system 'x) (shell-command xmodmap -e 'clear Lock' -e 'keycode 66 = F13')) (global-set-key [f13] 'execute-extended-command) ;;sets caps-lock as meta-key Sharon. On Sun, 05 Jan 2014 20:36:20 +0100 Marc-Oliver Ihm m...@ihm.name wrote: Hi Sharon, not sure, what happened in your setup. Maybe things can get clearer, if you would supply the line of lisp that you employed to bind F13. Was it something like (global-set-key [(f13)] 'org-archive-subtree) ? regards Marc Am 05.01.201 4 04:35, schrieb Sharon Kimble: Whilst trying to set a key binding to archive 'DONE' todo items, by trying to bind F13 [aka CapsLock] to '2', so the finished intended result would have been - F13 + 2 = DONE ARCHIVED. This is a global key binding, although I was trying for a local one. How do I know its 'global'? Because CapsLock now does not work for me to use in this email! So, how do I revert CapsLock to being its intended F13 please? And how do I set up a local key binding to avoid this situation in the future please? Thanks Sharon. -- A taste of linux =http://www.sharons.org.uk efever =http://www.efever.blogspot.com/ efever =http://sharon04.livejournal.com/ my git repo =https://bitbucket.org/boudiccas/dots Debian testing, Fluxbox 1.3.5, LibreOffice4.1.4.2 http://4.1.4.2 Registered Linux user 561944 Thinking about it, that is the original code in my .emacs which set it up correctly. The code that I typed in, in the mini-buffer was a local key-binding from the wikemacs site. Sorry I can't be more precise as I'm no longer at my computer. Sharon. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
[O] Using org-diary
Greetings org-mode, I am trying to use org-class to put in my regularly scheduled events. The following snippet is my attempt to put in a regularly scheduled Monday-evening event. This is in a file that is included in my org-agenda-files, yet when I look at my agenda, this does not show up! *** Teaching %%(org-class 2014 1 6 2014 3 10 1 1) 7:00pm-8:30pm I would appreciate any advice on this. Thanks, Stephen -- Sent with my mu4e
Re: [O] Local key binding gone wrong!
Marc Ihm m...@ihm.name wrote: Hi Sharon ! Setting CapsLock to f13 is a neat trick ! Maybe this could help with the rest of your question: (global-set-key (kbd f13) (lambda (ARG) (interactive c) (org-todo (string-to-number (char-to-string ARG))) (org-archive-subtree))) at least it does this for me: - Set the current node to the TODO state given through the second key after f13 - Archive the node afterwards. regards Marc Am 05.01.2014 21:43, schrieb Sharon Kimble: Sharon Kimble boudic...@talktalk.net wrote: Thanks Marc. Here it is - (if (eq window-system 'x) (shell-command xmodmap -e 'clear Lock' -e 'keycode 66 = F13')) (global-set-key [f13] 'execute-extended-command) ;;sets caps-lock as meta-key Sharon. On Sun, 05 Jan 2014 20:36:20 +0100 Marc-Oliver Ihm m...@ihm.name wrote: Hi Sharon, not sure, what happened in your setup. Maybe things can get clearer, if you would supply the line of lisp that you employed to bind F13. Was it something like (global-set-key [(f13)] 'org-archive-subtree) ? regards Marc Am 05.01.201 4 04:35, schrieb Sharon Kimble: Whilst trying to set a key binding to archive 'DONE' todo items, by trying to bind F13 [aka CapsLock] to '2', so the finished intended result would have been - F13 + 2 = DONE ARCHIVED. This is a global key binding, although I was trying for a local one. How do I know its 'global'? Because CapsLock now does not work for me to use in this email! So, how do I revert CapsLock to being its intended F13 please? And how do I set up a local key binding to avoid this situation in the future please? Thanks Sharon. -- A taste of linux =http://www.sharons.org.uk efever =http://www.efever.blogspot.com/ efever =http://sharon04.livejournal.com/ my git repo =https://bitbucket.org/boudiccas/dots Debian testing, Fluxbox 1.3.5, LibreOffice4.1.4.2 http://4.1.4.2 Registered Linux user 561944 Thinking about it, that is the original code in my .emacs which set it up correctly. The code that I typed in, in the mini-buffer was a local key-binding from the wikemacs site. Sorry I can't be more precise as I'm no longer at my computer. Sharon. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. Sounds interesting, I'll have a play with it tomorrow when I'm back on the computer. And today when I went on it, caps lock had reset itself back to 'M-x' I'm glad to say. :-) Thanks Sharon. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [O] Using org-diary
Stephen J. Barr stev...@uw.edu writes: Greetings org-mode, I am trying to use org-class to put in my regularly scheduled events. The following snippet is my attempt to put in a regularly scheduled Monday-evening event. This is in a file that is included in my org-agenda-files, yet when I look at my agenda, this does not show up! *** Teaching %%(org-class 2014 1 6 2014 3 10 1 1) 7:00pm-8:30pm I would appreciate any advice on this. Tested it with a minimal .enacs and it works fine for me: Org-mode version 8.2.4 (release_8.2.4-410-ge23bbd) Nick
Re: [O] Using org-diary
What I am now seeing is that the particular date gets picked up, but not the time. Am I doing something incorrect with the syntax? Best, Stephen On Mon, Jan 6, 2014 at 1:50 PM, Nick Dokos ndo...@gmail.com wrote: Stephen J. Barr stev...@uw.edu writes: Greetings org-mode, I am trying to use org-class to put in my regularly scheduled events. The following snippet is my attempt to put in a regularly scheduled Monday-evening event. This is in a file that is included in my org-agenda-files, yet when I look at my agenda, this does not show up! *** Teaching %%(org-class 2014 1 6 2014 3 10 1 1) 7:00pm-8:30pm I would appreciate any advice on this. Tested it with a minimal .enacs and it works fine for me: Org-mode version 8.2.4 (release_8.2.4-410-ge23bbd) Nick
Re: [O] Using org-diary
Stephen J. Barr stev...@uw.edu writes: What I am now seeing is that the particular date gets picked up, but not the time. Am I doing something incorrect with the syntax? No, I believe that's a limitation of what you can do with these diary-sexps. You can always add the time to the headline: that way it'll appear in the agenda (but not in the grid, if you use that, and not sorted correctly - the time is just a label): *** Teaching 7:00pm-8:30pm %%(org-class 2014 1 6 2014 3 10 1 1) Nick
Re: [O] Using org-diary
So, from a broader perspective, perhaps this org-class stuff is not the right way to go. I am also noticing that the icalendar-export does not seem to be exporting these diary-sexps anyway. Perhaps I can use org-clone-subtree-with-time-shift to do most of what I want. Best, Stephen On Mon, Jan 6, 2014 at 3:35 PM, Nick Dokos ndo...@gmail.com wrote: Stephen J. Barr stev...@uw.edu writes: What I am now seeing is that the particular date gets picked up, but not the time. Am I doing something incorrect with the syntax? No, I believe that's a limitation of what you can do with these diary-sexps. You can always add the time to the headline: that way it'll appear in the agenda (but not in the grid, if you use that, and not sorted correctly - the time is just a label): *** Teaching 7:00pm-8:30pm %%(org-class 2014 1 6 2014 3 10 1 1) Nick
[O] does org-mode modify input events?
Hi all, In this post, I was looking at some ways to get right clicks to do something on org-links: http://kitchingroup.cheme.cmu.edu/blog/2013/10/21/Enabling-right-clicks-in-org-mode-links/ I noticed some odd behavior in that the last-input-event is mouse-2 whether I press mouse-1 or mouse-2 when clicking on a link. It is also interesting the event is of type mouse-2, and not down-mouse-2. Does anyone know if org-mode makes a mouse-1 click into a mouse-2 event somehow? Is that happening from this line (org-defkey org-mouse-map [mouse-2] 'org-open-at-mouse) in org.el? Does anyone know to get something like this from the click event that occurred on the link? (princ (read-event)) (S-down-mouse-1 (#window 34 on blog.org 56725 (1 . 299) -322897656 nil 56725 (0 . 18) nil (1 . 11) (8 . 16))) that is shift-mouse-1 event. 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
Re: [O] org-cycle-hook from org-mode hook
Bastien b...@gnu.org writes: Now it uses `org-content` and `org-overview' instead, so that C-u C-u TAB always work. I did not immediately find the documentation about C-u C-u TAB, which is in the node Initial visibility. The node Global and local cycling documents TAB, C-u TAB and C-u C-u C-u TAB, but surprisingly, not C-u C-u TAB. Maybe some linking between those two manual nodes would be useful to other users, when they happen to be as anal as I am? :-) François P.S. anal in the Piagetian meaning of the word, of course! People suffering from anal disorder are either ultra-meticulous, or completely disorganized. Most of the time, I see myself as being from the former species, yet some days, I confess, I feel like I am from the later.
Re: [O] Org-drill installation
Bastien bzg at gnu.org writes: I suggest you try using a more recent version [And adjust your load-path accordingly...] Bastien, I downloaded a more recent version from Git. It took me some time to set up the load-path correctly... But I got it eventually and Org-drill now works for me. Thanks very much ! todd
Re: [O] Implementing Org-mode tools in languages other than ELISP
Daniel Clemente n142...@gmail.com writes: I dream of having a general Python parser for Org mode files, knowing every bit about the current syntax for Org files, surrounded by enough Python machinery to make it useful. Try PyOrgMode (https://github.com/bjonnh/PyOrgMode), it works for some files (but still needs corrections: it crashes with date formats, with bold markers, etc.). Hi, Daniel. As Karl points out (in a kind way), PyOrgMode is rather far from knowing every bit about the current syntax for Org files. My feeling is that this effort should be restarted afresh. You don't need a Lisp interpreter written in Python, only Python code that understands org syntax without getting confused. Well, I would prefer a Python-only solution, rather than requiring Emacs and using it under the scene. François
Re: [O] Parsing Org-mode in Python
Karl Voit devn...@karl-voit.at writes: I did not get the impression that [ply] is a parsing engine that is done the Python way. PLY has pros and cons. SPARK[1] always attracted me as being more elegant. While it accepts a wider set of grammars than PLY, SPARK can become quite slow on grammars which are less natural (admittedly a very fuzzy, subjective term). For simpler grammars, recursive descent does the job at good enough speed, and often, grammars can be rearranged a bit so the lexer could cleverly help the parser. Of course, it looks like more work writing a recursive descent parser, yet many times in my experience, the programmer is amply repaid with simplicity and clarity. You don't need a Lisp interpreter written in Python, only Python code that understands org syntax without getting confused. if you are going to use a ELISP interpreter to parse Org-mode syntax for Python, this should completely re-use the original Org-parser and nothing else. I have no idea if this is possible or not. If you have to implement a parser on your own, you probably should stick to Python-only. Hey hey, it's fun! :-) You misunderstood me, but this is constructive actually, as you raise good points. In my dreams, a pure Python parser parses Org mode files. However, here and there in the parsed files, as data, we can see bits of Emacs Lisp code, or even Calc syntax at some places. That Emacs Lisp code could be mere constants or identifiers, but sometimes more complex, evalable S-expressions. A parser is probably of limited use if it does not come with some extra-tools covering most frequent use cases around the syntax, and I guess that pressure will develop to have some kind of Emacs Lisp interpreter, hardly complete, probably only mild or even ridiculous. The interesting idea in your comments is that, *if* we had an Emacs Lisp interpreter of serious quality, that interpreter could use the original Org-parser and nothing else. That would solve maintenance, as the parser would be wholly external, to be found in Org mode distribution, all standard. But this avenue is quite unlikely: it looks like a major undertaking to me, and while such a parser would be useful on small data excerpts within an Org file, it might be inordinately slow if it had to interpret a lot of Lisp code while deciphering big Org files. Worse, keeping a Python parser in sync with the true Emacs Lisp parser would require much energy, maybe only once in a while, but extended over a long period of time. Unless a great enthusiasm exists, distributed on many people, such projects are always doomed to fail. Not many people are ready to commit themselves for life in the required maintenance. François --- [1] http://pages.cpsc.ucalgary.ca/~aycock/spark/
Re: [O] email - TODO items?
Brett Viren b...@bnl.gov writes: Peter Davis p...@pfdstudio.com writes: I use half a dozen email clients, including mutt, which lets me easily pipe a message to a script. The need to support multiple clients may rule out my suggestion but capturing a TODO or a note while visiting a GNUS message and thus preserving the link back to the article that spawned my task/idea is fantastically useful. In your pipe scheme maybe there is some way you can preserve this link back. There were a few discussions about mutt integration with org some years back. In particular http://thread.gmane.org/gmane.emacs.orgmode/18950 describes an implementation (or maybe two) of a mutt link type. Searching the ML with mutt links will uncover a few more such discussions. -- Nick
Re: [O] gnus: link annoyance
Nick Dokos ndo...@gmail.com writes: François Pinard pin...@iro.umontreal.ca writes: Whenever I visit a gnus: type link from Org, it has the side effect of reading the article in Gnus parlance, forcing me to unread it each time afterwards. it's certainly not lost: the link continues to work, even if it points to a read article; and visiting the group with C-u SPACE in gnus also allows you to see previously read articles. Hi, Nick. Of course, you are fully right in that the article is still there, and likely unexpired. But in practice, from my viewpoint, it is not there anymore: I do not usually enter groups by C-u SPC. While possible, it is unusual that I want to find and read again an article which I once decided has been read for good. If I search all mailgroups for a certain string, and randomly check hits, I do not want these articles I check to later have disappeared from sight in practice. I was not really in the process of reading articles, but merely checking on them. It would not make sense that Org removes lines that I visit after a grep, and when grepping through many files, would they be Org, non-Org, mailboxes or articles in mailgroups, I am in a mode where I do not expect any kind of altering behaviour. François
Re: [O] does org-mode modify input events?
John Kitchin jkitc...@andrew.cmu.edu writes: Hi all, In this post, I was looking at some ways to get right clicks to do something on org-links: http://kitchingroup.cheme.cmu.edu/blog/2013/10/21/Enabling-right-clicks-in-org-mode-links/ I noticed some odd behavior in that the last-input-event is mouse-2 whether I press mouse-1 or mouse-2 when clicking on a link. It is also interesting the event is of type mouse-2, and not down-mouse-2. Does anyone know if org-mode makes a mouse-1 click into a mouse-2 event somehow? Is that happening from this line (org-defkey org-mouse-map [mouse-2] 'org-open-at-mouse) in org.el? Check the doc strings of org-mouse-1-follows-link and mouse-1-click-follows-link. -- Nick
Re: [O] gnus: link annoyance
Rasmus ras...@gmx.us writes: Thanks for working on org-grep. It looks interesting. Thanks for thanking! :-) But deep down, I'm really doing this tool for myself, and only then share it with others. Given the amount of notes I handle, such a tool is inescapable, it is a question of survival :-). Whenever I visit a gnus: type link from Org, it has the side effect of reading the article in Gnus parlance, forcing me to unread it each time afterwards. Excuse me if I misunderstood something below. You read it, no? How can it not be marked read when you read it? The list gnus-mark-article-hook, which is there for customization, has the function gnus-summary-mark-read-and-unread-as-read by default. I guess that if the hook list was empty, articles would be displayed and not automatically marked as read. Perhaps you would like to the following on mailgroups you care about (from the *Groups* buffer): G c C-s Display S-TAB RET TAB RET 1 TAB 100 M- TAB TAB RET Also, you can search with nnir using GG or C-u GG (but links probably won't work from a nnir buffer). I would not think one should modify his Gnus habits or methods merely because Org has a tool to search in Gnus. Org uses Gnus, but Gnus should not be disturbed because of that. 1. Mark an article as important with '!', (gnus-summary-tick-article-forward N) But I do not want to tick (or bang) articles because I do Org searches. When really in Gnus, if I want to keep an article, I unread it. But that does not mean I consider this article especially important. If I want to mark an article as important, I bang it, and as a consequence, Gnus unread it. Banging all articles I want to keep unread is not only overkill, but it spoils the bang mark, which I find very useful for other purposes than Org. I can also change the mark to gnus-summary-mark-as-expirable and preserve the link. One possibility (untested, so I'm not sure) is that when following a gnus: link, Org could use something like: (let ((gnus-mark-article-hook nil)) (ACCESS-THE-gnus:-LINK)) François
Re: [O] email - TODO items?
... I use half a dozen email clients, including mutt, which lets me easily pipe a message to a script. If you are using mutt, check out this link: http://upsilon.cc/~zack/blog/posts/2010/02/integrating_Mutt_with_Org-mode/ best, aitor