[O] [PATH] Customize org-annotate-file
Hi, Here is a small patch for contrib/lisp/org-annotate-file.el. This patch creates a customization group for org-annotate-file (child of the org group) and convert defvars to defcustoms. Okay to push? From ea5be445776f7d139f52b38306552e0012b47d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= gregoire.j...@gmail.com Date: Fri, 9 May 2014 14:58:59 +0900 Subject: [PATCH] contrib/lisp/org-annotate-file.el: Create a customization group and convert `defvar' customization variables to `defcustom' * contrib/lisp/org-annotate-file.el (org-annotate-file): New customization group. (org-annotate-file-storage-file org-annotate-file-add-search org-annotate-file-always-open): Convert `defvar' symbols to `defcustom' using the new group. --- contrib/lisp/org-annotate-file.el | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/contrib/lisp/org-annotate-file.el b/contrib/lisp/org-annotate-file.el index 8fbb590..b8e8bd9 100644 --- a/contrib/lisp/org-annotate-file.el +++ b/contrib/lisp/org-annotate-file.el @@ -59,14 +59,24 @@ (require 'org) -(defvar org-annotate-file-storage-file ~/.org-annotate-file.org - File in which to keep annotations.) - -(defvar org-annotate-file-add-search nil - If non-nil, add a link as a second level to the actual file location.) - -(defvar org-annotate-file-always-open t - If non-nil, always expand the full tree when visiting the annotation file.) +(defgroup org-annotate-file nil + Org Annotate + :group 'org) + +(defcustom org-annotate-file-storage-file ~/.org-annotate-file.org + File in which to keep annotations. + :group 'org-annotate-file + :type 'file) + +(defcustom org-annotate-file-add-search nil + If non-nil, add a link as a second level to the actual file location. + :group 'org-annotate-file + :type 'boolean) + +(defcustom org-annotate-file-always-open t + If non-nil, always expand the full tree when visiting the annotation file. + :group 'org-annotate-file + :type 'boolean) (defun org-annotate-file-ellipsify-desc (string optional after) Return shortened STRING with appended ellipsis. -- 1.8.0.2722.gc0242e5 -- Daimrod/Greg
Re: [O] [BUG] Symbol's function definition is void: function-put
Sharon Kimble boudiccas at skimble.plus.com writes: I've just tried to start emacs 24.3.90.1 without success, and it showed --8---cut here---start-8--- Warning (initialization): An error occurred while loading `/home/boudiccas/.emacs': If you're in a pinch, just replace all occurences of function-put with put. .emacs.d/elpa/org-20140505/ Well, those two lines are not in the Org ELPA package that you supposedly have installed and there's no trace of any function-put anywhere I can find in the source. I suspect that you installed the ELPA package either with a much older Emacs version (certainly not any 24.x one) or that you had something in your init scripts that defines function-put at the time of installation. You need to remove the ELPA package, then install it anew from an Emacs instance that doesn't have these initializations (i.e. start from emacs -Q). Regards, Achim.
Re: [O] Confused about list indentation
Hi, Leonard Avery Randall leonard.a.rand...@gmail.com writes: Guido Van Hoecke wrote: I am a bit confused about indentation in the example at node '2.7 Plain Lists' in the Org info file: [quote] ** Lord of the Rings My favorite scenes are (in this order) 1. The attack of the Rohirrim 2. Eowyn's fight with the witch king + this was already my favorite scene in the book + I really like Miranda Otto. 3. Peter Jackson being shot by Legolas - on DVD only He makes a really funny face when it happens. But in the end, no individual scenes matter but the film as a whole. Important actors in this film are: - Elijah Wood :: He plays Frodo - Sean Austin :: He plays Sam, Frodo's friend. I still remember him very well from his role as Mikey Walsh in The Goonies. [unquote] The last line aligns the word 'him' directly under 'Sean', which is what I expect. The 'He makes a really...' sentence is aligned under the list hyphen, rather than under 'on DVD...' Is this not inconsistent? I'd expect it to be indented two extra positions to the right, similar to the last sentence. I believe the reason for the disparity is that 'He makes a really funny face', is supposed to be associated with 'Peter Jackson being shot by legolas' rather than 'on DVD only'. I believe the example is supposed to show that list items can contain both subsidiary lists and whole paragraphs. If the paragraph were supposed to be associated with the lower level list item it would be indented as you expected. How does org decide that 'He makes a really...' is not associated with the current list item? What keystrokes are required to produce this alignment or the one with the extra indentation? Guido -- In these matters the only certainty is that there is nothing certain. -- Pliny the Elder
Re: [O] [BUG] superscripts exported as subscripts by ox-ascii
Nick Dokos ndokos at gmail.com writes: I pushed the obvious fix for this to master. As a bugfix, this should have gone to maint and then merged into master. Now you'll need to cherry-pick it onto maint and get a duplicate commit. Regards, Achim.
Re: [O] Problems with org-capture
On Di, Mai 06, 2014 at 11:57:34 +0200, Josef Wolf wrote: I am new to org-mode, and am currently working through http://members.optusnet.com.au/~charles57/GTD/gtd_workflow.html and am stuck a little bit the the caprure mode. My first question is: org-capture seems to come with a pre-confuigured template for a Todo stanza. I thought, I'd take a closer look at this example to learn from it and as a starting point for my own customizations. But DESCRIBE-VARIABLE shows that ORG-CAPTURE-TEMPLATES is set to NIL. So, where does this pre-configured Todo entry come from? The I created my own template like this: (setq org-capture-templates '((t Todo entry (file+headline /m/s/rep/git/todo/newgtd.org Tasks) * TODO %^{Brief Description} %^g%?\n Created: %U\n %i\n %A\n\n :kill-buffer :empty-lines 3))) With this template, I have two problems: - The most annoying problem is that it eats up the newlines behind the newly created entry. I always keep multiple empty lines between top-level headings. But even then, a newly created entry eats up all the newlines and even melts the succeeding heading onto the end of the newly created entry. I guess, this is not how it is meant to work. How would I define - The second problem is that when invoked with content fron an active region (the %i flag), then the %A flag won't ask me for a link description and the %i contents are used as description. Any ideas on that problem? -- Josef Wolf j...@raven.inka.de
Re: [O] Confused about list indentation
Guido Van Hoecke wrote: How does org decide that 'He makes a really...' is not associated with the current list item? What keystrokes are required to produce this alignment or the one with the extra indentation? Org determines what headline the text is associated with based upon indentation (see example below). If you simply press enter after a list item, the text is not indented, and thus it is not associated with any list item. If you press tab before entering any text, it will indent to the level of the most recent list item. In order to have text associated with a higher level list item, you have to manually delete spaces after pressing tab or just manually insert the appropriate number of spaces. Example: 1. List item - Lower level list item This text is not associated with any list. Any list items after this will form a new list. 1. New list item 1 - Lower level list item This text is associated with lower level list item 2. New list item 2 - Lower level list item 2 This text is associated with 'New list item 2' Hope this helps, All best, Leonard
Re: [O] [BUG] [babel] in :eval never with :session
Charles Berry ccbe...@ucsd.edu writes: Eric Schulte schulte.eric at gmail.com writes: Rainer M Krug Rainer at krugs.de writes: The error is back: You say back, was this error not present recently? If so could you isolate the commit at which this error appeared? The bug seems to be in the use of (org-link-search heading) in org-babel-exp-in-export-file which is called in org-babel-exp-process-buffer. That search will find the first heading that is a match after (point-min). So it will mess up other header args, too. It was there back in 8.0.7 and recent commits did not touch it AFAICS. Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/local/Cellar/emacs-mac/emacs-24.3-mac-4.6/share/emacs/24.3/lisp/org/) as well. I don't think it makes sense to go further back. So no regression, but bug. Cheers, Rainer HTH, Chuck Thanks, Eric When one header in a subtree which has the header argument :eval never has the same name as in a following subtree which should be evaluated on export, the second subtree is not exported. When the name of the header is changed, the subtree is exported as expected. --8---cut here---start-8--- #+PROPERTY: exports both #+PROPERTY: session *tmp_R* * Some non-evaluated code :PROPERTIES: :eval: never :END: ** This is the same header #+BEGIN_SRC R cat(\ntwo\n) #+END_SRC * Data Assessment Results ** This is the same header If the name of the header is changed, the subtree is evaluated on export. #+begin_src R cat(\nhere it is at at at at at at at at at at at at at at at at at at at at at at at at at at at at at at at at at at at at at at at at \n) #+end_src --8---cut here---end---8--- Org-mode version 8.2.6 (release_8.2.6-920-gc6d698 at /Users/rainerkrug/.emacs.d/org-mode/lisp/) GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0, Carbon Version 1.6.0 AppKit 1265) of 2014-02-13 on Rainers-MacBook-Pro-2.local Cheers, 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 PGP: 0x0F52F982 pgp6W4cP9K998.pgp Description: PGP signature
Re: [O] Using KOMA and Memoir?
On Thursday, 8 May 2014 at 22:17, Martin Schöön wrote: [...] So why didn't it work the way I was told to do it? How much of my .emacs is needed to figure it out, all? Here are the parts I think are relevant. First the very beginning of my .emacs (comments are mixed Swedish and English): [...] ;; Org-mode stuff ;; Added 2014-03-02 ;; to make emacs find org-mode other than default: (add-to-list 'load-path /home/martin/Program/Org-mode/org-8.2.5h/lisp) (add-to-list 'load-path /home/martin/Program/Org-mode/org-8.2.5h/contrib/lisp) (require 'org) Fine up to here. Now what you need to do is (require 'ox-latex) *before* you try to: ;(add-to-list 'org-latex-classes ; '(komaarticle \\documentclass{scrartcl} ; (\\section{%s} . \\section*{%s}) ; (\\subsection{%s} . \\subsection*{%s}) ; (\\subsubsection{%s} . \\subsubsection*{%s}) ; (\\paragraph{%s} . \\paragraph*{%s}) ; (\\subparagraph{%s} . \\subparagraph*{%s}))) which is what several of us have been trying to get across! At the very least, you need: , | (add-to-list 'load-path ...org lisp directory...) | (require 'org) | (require 'ox-latex) | (add-to-list 'org-latex-classes ...) ` to do what you want! You are missing the third line. A minimal initialisation with just those four lines should be enough to see if org with KOMA works. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] [babel][PATCHES] ob-R patches for review
Rainer M Krug r.m.k...@gmail.com writes: Envoyé de mon iPhone Le 8 mai 2014 à 04:26, Charles Berry ccbe...@ucsd.edu a écrit : Eric Schulte schulte.eric at gmail.com writes: Rainer M Krug Rainer at krugs.de writes: Hi Attached please find seven patches for review to implement the storing of org variables in their own environment and to make the org-issued R code look nicer in the R session. Thanks, Rainer Hi Rainer, Thanks for these patches. I don't have the R experience to review or maintain them, but I'm happy to apply them. I missed some previous discussion in this thread. Are these patches ready to be applied as is? IMO, the patches hard coded behaviors that would better be customizable and optional. I'll give feedback tomorrow and let you know about customization of the name of the environment. The general behavior of storing the variables in an environment should not be customizable as it is 1) safer then the behavior of storing each variable separately 2) no changes for the user are introduced OK. Concerning customization options: There are a few points where customizations could be introduced: 1) transfer of variables from org to R, i.e. old behavior (variables in .GlobalEnv) or new behavior (in own environment (.org_variables_)) or own defined function 2) name of new environment 3) name of file into which to save the variables (org_variables.RData) Some comments to each: 1) As outlined above, I see neither changes in behavior for the user nor disadvantages of the new behavior. As only one object is created in R (.org_variables_) instead of one for each variable, the chances of name clashes are much smaller. As the name of the variable starts with a dot (.), ends with an underscore (_), it is very unlikely that there is a nameclash in existing scripts (but you are right, one does not know). So I don't think, that it is necessary to include an option for disabling the old behavior. Concerning defining an own function for data transfer, I am thinking of putting the variable transfer into an R function which can then be customized from R. My reasoning is that users using this feature are more likely to be fluent in R then in lisp, so more able to change these functions in R. In org, the whole R code would then simply replaced with one function call. These functions would reside in a new environment (or in the ESSR environment as offered by Vitalie). In addition, as it was not asked before to have this function customizable, I don't think there would be a large need for it. 2) I don't think name clashes are likely, so I don't see a real need to have the name of the org environment in R configurable. Especially when using these variables in R, one can always use .org_variables_::VARIABLENAME to access the original value. If the environment name is customizable, this will be different between customizations and not that easily reproducible between org-installations. It would be easy to configure it, but I think it is rather a disadvantage and would make the code (slightly) more complex. 3) The name into which the variables are saved could be configurable, but again, I do not think this is such an issue. The saved environment is anyway only of limited usage when the variables in org are not defined file wide but per source block / tree. I am actually thinking of removing this saving, although it is quite useful to make tangled code usable on a non-org system when org variables are used - comments? So please let me know if you see the need of customization and for which aspect. Cheers Rainer Rainer and I had some back and forth about this -- see the thread. Best, Chuck -- 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 PGP: 0x0F52F982 pgpi95tCFYnTH.pgp Description: PGP signature
Re: [O] [BUG] Symbol's function definition is void: function-put
Sharon Kimble boudic...@skimble.plus.com writes: I eventually tracked it down to lines 2248 and 2284 of org-loaddefs.el this is line 2248 ╭ │(function-put 'org-export-to-buffer 'lisp-indent-function '2) ╰ It apparently comes from making Org with trunk and then using it with non-trunk. See Glenn Morris' explanation here: http://permalink.gmane.org/gmane.emacs.devel/171782 -- Nico.
Re: [O] current task being worked in agenda time grid
On Thursday, 8 May 2014 at 09:45, J. David Boyd wrote: Is there any way to do that? It would be beneficial if, when I did C-a a, the time grid could show, at the current time, what I am currently clocking time against. Not quite what you want but v c in agenda view will display all clocked tasks, including current one. It may be possible to define a custom view that includes both appointments and clocking info. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] Using KOMA and Memoir?
On Fri, May 09, 2014 at 09:46:15AM +0100, Eric S Fraga wrote: On Thursday, 8 May 2014 at 22:17, Martin Schöön wrote: which is what several of us have been trying to get across! At the very least, you need: , | (add-to-list 'load-path ...org lisp directory...) | (require 'org) | (require 'ox-latex) | (add-to-list 'org-latex-classes ...) ` to do what you want! You are missing the third line. A minimal initialisation with just those four lines should be enough to see if org with KOMA works. For your understanding, you can do a simple test. Start emacs without the add-to-list line. Then evaluate these: (featurep 'org) (featurep 'ox-latex) You will get t for the first, nil for the second. Now try to find the variable org-latex-classes with C-h v. You will not be able to find it. Now load ox-latex with either load-library or by evaluating (require 'ox-latex). Try the above evaluations again, you will see t for both, and when you try to find the variable with C-h v, you will succeed. AFAIU, the exporter loads enabled backends when you do the first export. So when you modify a variable that is defined in an unloaded module, of course this does not work! Hope this makes the problem and the resolution clearer. To get some hints about doing things right, I would point you to my setup: https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] [BUG] superscripts exported as subscripts by ox-ascii
On Fri, May 09, 2014 at 06:43:31AM +, Achim Gratz wrote: Nick Dokos ndokos at gmail.com writes: I pushed the obvious fix for this to master. As a bugfix, this should have gone to maint and then merged into master. Now you'll need to cherry-pick it onto maint and get a duplicate commit. I can confirm the problem is fixed. Yesterday was a busy day, otherwise I could have tried it myself. Next time ;). Thanks, -- Suvayu Open source is the future. It sets us free.
Re: [O] [ANN] Gnorb: Glue code between Gnus, Org, and BBDB
Hello Eric, On 2014-05-07 03:23, Eric Abrahamsen e...@ericabrahamsen.net writes: I've spent the past couple weeks organizing various bits of code into a proper package, called Gnorb, which I'm billing as Glue code between Gnus, Org, and BBDB. The main point is to reduce friction between these three packages, making it easier to sling around emails, TODOs, attachments, and the like, and providing multiple views on information. https://github.com/girzel/gnorb I've read through the README and it looks very nice. I've installed a few functions in my init file to learn to work with them, but in the meantime I have a few questions. - Treat headings as email-related TODOs, and handle them DWIM-style I usually avoid putting links in my tasks. For instance, the task I generated from your email to the list looks like this: TODO Reply to this when I will have tried gnorb :@fun: [2014-05-07 Wed 11:25] [[gnus:lists.orgmode#87r446bcut@ericabrahamsen.net][Email from Eric Abrahamsen: {O} {ANN} Gnorb: Glue code bet (Wed, 07 May 2014 09:23:54 +0800)]] Would it be difficult to handle such emails when the link is inside the TODO, instead of in the heading? I can of course change my capture format. I'm just wondering why you prefer to have the link in the mail. Regarding your daily flow, it seems that bbdb is very central to how you work. Do you simply use it as a backend linked to the agenda view, or do you often navigate your bbdb records? If you ever have the time to write or do a screencast of your work flow, I would be most interested in learning more about it. Thanks again, Alan
Re: [O] [BUG] superscripts exported as subscripts by ox-ascii
Achim Gratz strom...@nexgo.de writes: Nick Dokos ndokos at gmail.com writes: I pushed the obvious fix for this to master. As a bugfix, this should have gone to maint and then merged into master. Now you'll need to cherry-pick it onto maint and get a duplicate commit. Done. Thanks! -- Nick
Re: [O] [babel][PATCHES] ob-R patches for review
Rainer M Krug rai...@krugs.de writes: Rainer M Krug r.m.k...@gmail.com writes: Envoyé de mon iPhone Le 8 mai 2014 à 04:26, Charles Berry ccbe...@ucsd.edu a écrit : Eric Schulte schulte.eric at gmail.com writes: Rainer M Krug Rainer at krugs.de writes: Hi Attached please find seven patches for review to implement the storing of org variables in their own environment and to make the org-issued R code look nicer in the R session. Thanks, Rainer Hi Rainer, Thanks for these patches. I don't have the R experience to review or maintain them, but I'm happy to apply them. I missed some previous discussion in this thread. Are these patches ready to be applied as is? IMO, the patches hard coded behaviors that would better be customizable and optional. I'll give feedback tomorrow and let you know about customization of the name of the environment. The general behavior of storing the variables in an environment should not be customizable as it is 1) safer then the behavior of storing each variable separately 2) no changes for the user are introduced OK. Concerning customization options: There are a few points where customizations could be introduced: 1) transfer of variables from org to R, i.e. old behavior (variables in .GlobalEnv) or new behavior (in own environment (.org_variables_)) or own defined function 2) name of new environment 3) name of file into which to save the variables (org_variables.RData) Some comments to each: 1) As outlined above, I see neither changes in behavior for the user nor disadvantages of the new behavior. As only one object is created in R (.org_variables_) instead of one for each variable, the chances of name clashes are much smaller. As the name of the variable starts with a dot (.), ends with an underscore (_), it is very unlikely that there is a nameclash in existing scripts (but you are right, one does not know). So I don't think, that it is necessary to include an option for disabling the old behavior. Concerning defining an own function for data transfer, I am thinking of putting the variable transfer into an R function which can then be customized from R. My reasoning is that users using this feature are more likely to be fluent in R then in lisp, so more able to change these functions in R. In org, the whole R code would then simply replaced with one function call. These functions would reside in a new environment (or in the ESSR environment as offered by Vitalie). In addition, as it was not asked before to have this function customizable, I don't think there would be a large need for it. 2) I don't think name clashes are likely, so I don't see a real need to have the name of the org environment in R configurable. Especially when using these variables in R, one can always use .org_variables_::VARIABLENAME to access the original value. If the environment name is customizable, this will be different between customizations and not that easily reproducible between org-installations. It would be easy to configure it, but I think it is rather a disadvantage and would make the code (slightly) more complex. 3) The name into which the variables are saved could be configurable, but again, I do not think this is such an issue. The saved environment is anyway only of limited usage when the variables in org are not defined file wide but per source block / tree. I am actually thinking of removing this saving, although it is quite useful to make tangled code usable on a non-org system when org variables are used - comments? So please let me know if you see the need of customization and for which aspect. I started looking into ESS in more detail and I got some useful ideas. I am including them at the moment in org, so please do not yet apply the patches. Cheers, Rainer Cheers Rainer Rainer and I had some back and forth about this -- see the thread. Best, Chuck -- 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 PGP: 0x0F52F982 pgpS04koC4nEL.pgp Description: PGP signature
Re: [O] [PATH] Customize org-annotate-file
Daimrod daim...@gmail.com writes: Okay to push? Please go ahead, thanks, -- Bastien
Re: [O] [PATCH] org-mime slightly out of date
Eric Abrahamsen e...@ericabrahamsen.net writes: org-mime still includes a call to `org-export-grab-title-from-buffer', which doesn't exist any more. The attached patch does the same the way org-export currently does it (I think). Applied, thanks! -- Bastien
Re: [O] words pre-lexed for use as keywords in an agenda view
Hi Haroldo, Haroldo Stenger haroldo.sten...@gmail.com writes: is there alredy a word lexer connected somehow to org-mode, that uses the most frequent words in the org-agenda-files , and offers them to you to look for the lines in which they occur in an agenda view ? I'm not aware of anything like that, but this would be cool indeed. -- Bastien
Re: [O] current task being worked in agenda time grid
Hi Dave, jdavidb...@adboyd.com (J. David Boyd) writes: It would be beneficial if, when I did C-a a, the time grid could show, at the current time, what I am currently clocking time against. This would be confusing, as the timegrid is here for stuff that have been planned with a hh:mm timestamp. Adding stuff just because they are being done right now does really fit this picture IMO. Note that you can configure the `org-agenda-clocking' face to make it more obvious what task you're working on, and use `J' in the agenda to jump to the clocking task. HTH, -- Bastien
Re: [O] [BUG] superscripts exported as subscripts by ox-ascii
Nick Dokos ndo...@gmail.com writes: Done. Thanks! Thanks for fixing this, -- Bastien
Re: [O] current task being worked in agenda time grid
Eric S Fraga e.fr...@ucl.ac.uk writes: On Thursday, 8 May 2014 at 09:45, J. David Boyd wrote: Is there any way to do that? It would be beneficial if, when I did C-a a, the time grid could show, at the current time, what I am currently clocking time against. Not quite what you want but v c in agenda view will display all clocked tasks, including current one. It may be possible to define a custom view that includes both appointments and clocking info. That's an idea. In the meantime, I guess I'll just widen my emacs window out wider. Thanks!
Re: [O] crossing out tasks
Hi Sharon, Sharon Kimble boudic...@skimble.plus.com writes: I've just converted them from TODOS, and this task-list seemed a simpler and easier idea, but I'll try check-boxes like Nick suggested. I'd suggest this too: also try C-u C-c C-c on top of a list with no checkbox to add checkboxes to all items in this list. -- Bastien
Re: [O] epstopdf dependency for ob-lilypond
Hi Thomas, Thomas Morgan t...@ziiuu.com writes: I'd like to suggest that epstopdf (or the containing package, which is texlive-font-utils on Debian) be listed as a dependency for Org-Babel LilyPond. Done in master, thanks, -- Bastien
Re: [O] Bug with subscripts and superscripts
Hi Hugo, Hugo M ham1...@gmail.com writes: I'm using 24.3.50.1 with Xubuntu. What version of Org are you using? M-x org-version RET Chances are that you use Org 8.0, in which case we can only recommend to upgarde: http://orgmode.org/manual/Installation.html HTH, -- Bastien
Re: [O] [babel][PATCHES] ob-R patches for review
Hi Rainer, Rainer M Krug r.m.k...@gmail.com writes: I'll look at it again tomorrow and let you know as I made some changes since then. Do you prefer one patch to several? Up to Eric's taste -- but in general I think a series of patches is better, it allows you to isolate and fix conflicts more easily. -- Bastien
[O] Can org-mode 8 be used together with ergoemacs?
I recently stumbled upon ergoemacs (http://ergoemacs.org/ ) and as Im quite new to emacss, it would not be too late (I suppose) to re-learn the keystrokes. As I am typing a lot, Im concerned about RSI and I wonder: does it make sense to use ergoemacs? Are there any problems when using ergoemacs and org-mode together? I think I read somewhere, that ergoemacs does not work nicely with org-mode, as it remaps important keys. Kind regards Martin
Re: [O] [PATH] Customize org-annotate-file
Bastien b...@gnu.org writes: Daimrod daim...@gmail.com writes: Okay to push? Please go ahead, thanks, done. -- Daimrod/Greg
Re: [O] [babel][PATCHES] ob-R patches for review
Bastien b...@gnu.org writes: Hi Rainer, Rainer M Krug r.m.k...@gmail.com writes: I'll look at it again tomorrow and let you know as I made some changes since then. Do you prefer one patch to several? Up to Eric's taste -- but in general I think a series of patches is better, it allows you to isolate and fix conflicts more easily. 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 PGP: 0x0F52F982 pgphJ8uM1ZJXU.pgp Description: PGP signature
Re: [O] current task being worked in agenda time grid
On Friday, 9 May 2014 at 08:46, J. David Boyd wrote: Eric S Fraga e.fr...@ucl.ac.uk writes: On Thursday, 8 May 2014 at 09:45, J. David Boyd wrote: Is there any way to do that? It would be beneficial if, when I did C-a a, the time grid could show, at the current time, what I am currently clocking time against. [...] That's an idea. In the meantime, I guess I'll just widen my emacs window out wider. Of course, you *could* change the mode line so that clocking information comes earlier in the line... but playing with the mode line can be a real time sink, and I speak from experience! My mode line bears little resemblance to the default and the changes were motivated by my using Emacs on very small systems such as the OpenPandora. but definitely getting off-topic here :-) -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] Can org-mode 8 be used together with ergoemacs?
On 2014-05-09 15:14, Martin Beck elwood...@web.de writes: I recently stumbled upon ergoemacs (http://ergoemacs.org/ ) and as I'm quite new to emacss, it would not be too late (I suppose) to re-learn the keystrokes. As I am typing a lot, I'm concerned about RSI and I wonder: does it make sense to use ergoemacs? Are there any problems when using ergoemacs and org-mode together? I think I read somewhere, that ergoemacs does not work nicely with org-mode, as it remaps important keys. I've been trying ergoemacs for about a week now, after watching Sacha's latest emacs interview (productivity hint: don't watch them, they show too many cool things to try ☺). I find it works quite well. I've printed the layout while I'm learning the key bindings, but the most common ones (such as cursor movements) are really easily remembered. I've adapted the default setup to better work with OS X (i.e, use cmd instead of ctrl for CUA-like cut/copy/paste bindings), but that's about the only customization I've done for the moment. Regarding org-mode, I have not found anything problematic, as the code seems to make sure it stays out of the way. The current maintainer of ergoemacs-mode is very active on github, so I would not hesitate to try it and report issues if need be. Best, Alan
[O] re - Symbol's function definition is void: function-put
I'm back on claws-mail as i can't access gnus because of this gotcha, which is a major one. I've removed org, org+contribs, yassnippets, but still can't access gnus because of it. I've restarted, and reloaded emacs several times, but looking at my elpa package list i'm left feeling that i ought just to rename the elpa directory and start with a fresh install of all my packages. that would probably be the quickest solution but its very drastic, has anyone got any other ideas/solutions please? Sharon.
Re: [O] [babel][PATCHES] ob-R patches for review
Rainer M Krug rai...@krugs.de writes: Bastien b...@gnu.org writes: Hi Rainer, Rainer M Krug r.m.k...@gmail.com writes: I'll look at it again tomorrow and let you know as I made some changes since then. Do you prefer one patch to several? Up to Eric's taste -- but in general I think a series of patches is better, it allows you to isolate and fix conflicts more easily. I agree, multiple patches make future maintenance easier. I missed some previous discussion in this thread. Are these patches ready to be applied as is? IMO, the patches hard coded behaviors that would better be customizable and optional. Rainer and I had some back and forth about this -- see the thread. With respect to these points, I'm inclined to agree with Charles in the following. All you have to do is add this: (defvar org-babel-R-assign-elisp-function 'org-babel-R-assign-elisp Name or definition of function to handle `:var name=value' header args. ) and change one line in org-babel-variable-assignments:R from (org-babel-R-assign-elisp to (funcall org-babel-R-assign-elisp-function and the user can provide her own elisp assignment function. This gives users who want special behavior like creating something other than a data.frame the option of providing their own function. Would such a customization variable be difficult to add to your patches? If not would you mind submitting a version of the patches split into multiple commits with as much of the hard-coded R code as feasible placed into customizable variables along the lines of the `org-babel-R-assign-elisp-function' variable suggested by Charles. One lesson I've certainly learned from the Org-mode mailing list is that you can't anticipate all of the ways that your code will be used, so up-front customizability generally pays off. Thanks, Eric Thanks Rainer -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] re - Symbol's function definition is void: function-put
Sharon, Nicolas Richard has pointed you to the reason for this problem. Re-installing all your packages will not help if the loaddefs in org has been generated using Emacs =24.5. Your best bet is to 1. remove the ELPA version of org, 2. download org directly from orgmode.org, 3. unzip it wherever you want and 4. add (add-to-list 'load-path wherever you put org/lisp) to your .emacs or whatever initialisation file before you customise org's behaviour. By the way, you shouldn't break threads. It would make things easier if you followed up on previous emails that belong to the thread... -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] re - Symbol's function definition is void: function-put
On Fri, 9 May 2014 15:34:51 +0100 Eric S Fraga e.fr...@ucl.ac.uk wrote: Sharon, Nicolas Richard has pointed you to the reason for this problem. Re-installing all your packages will not help if the loaddefs in org has been generated using Emacs =24.5. Your best bet is to 1. remove the ELPA version of org, 2. download org directly from orgmode.org, 3. unzip it wherever you want and 4. add (add-to-list 'load-path wherever you put org/lisp) to your .emacs or whatever initialisation file before you customise org's behaviour. By the way, you shouldn't break threads. It would make things easier if you followed up on previous emails that belong to the thread... Eric. The first email about this came from gnus with no problem, but now I'm unable to load gnus, so am forced to send from claws-mail. I am totally unable to follow up on the original thread for the reason that I've just explained. I'm now back on 24.3.90.1 and just reinstalling all the major packages I need, and finding out exactly what I do use and what can be left out. And that some of my favourite packages - org2blog, and tabbar - are no longer in the ELPA repos, which is a shame. Luckily I've still got them so they can be added back in quite easily to the elpa directory. Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.3.90.1
Re: [O] words pre-lexed for use as keywords in an agenda view
Hello Bastien Thanks for your kind answer, I'd like to hack something along those lines as a hackish practise. I'd better ask before. best Haroldo 2014-05-09 9:41 GMT-03:00 Bastien b...@gnu.org: Hi Haroldo, Haroldo Stenger haroldo.sten...@gmail.com writes: is there alredy a word lexer connected somehow to org-mode, that uses the most frequent words in the org-agenda-files , and offers them to you to look for the lines in which they occur in an agenda view ? I'm not aware of anything like that, but this would be cool indeed. -- Bastien
Re: [O] [BUG] Symbol's function definition is void: function-put
Nicolas Richard writes: It apparently comes from making Org with trunk and then using it with non-trunk. See Glenn Morris' explanation here: http://permalink.gmane.org/gmane.emacs.devel/171782 Ah, yes. Sharon, when installing packages from ELPA, you must use the lowest version of Emacs that you intend to use. Bytecode and generated files are generally not guaranteed to be downward compatible. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] crossing out tasks
Bastien b...@gnu.org writes: Hi Sharon, Sharon Kimble boudic...@skimble.plus.com writes: I've just converted them from TODOS, and this task-list seemed a simpler and easier idea, but I'll try check-boxes like Nick suggested. I'd suggest this too: also try C-u C-c C-c on top of a list with no checkbox to add checkboxes to all items in this list. Yes, that worked, once I'd deleted all the +'s and replaced with -'s. Thanks. Sharon. [back on gnus, with a much slimmed down system] -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.3.90.1 signature.asc Description: PGP signature
Re: [O] [BUG] Symbol's function definition is void: function-put
On 2014-05-09 07:10 Sharon Kimble wrote: I've just tried to start emacs 24.3.90.1 without success, and it showed Warning (initialization): An error occurred while loading `/home/boudiccas/.emacs': Symbol's function definition is void: function-put I eventually tracked it down to lines 2248 and 2284 of org-loaddefs.el this is line 2248 ╭ │(function-put 'org-export-to-buffer 'lisp-indent-function '2) ╰ and this is line 2284 ╭ │(function-put 'org-export-to-file 'lisp-indent-function '2) ╰ It always shows up in 24.3.90.1 and stops it from fully loading, whereas in 24.4.50.x there is no problem. I am not sure about this, but I recently saw a post on the emacs devel mailing list mentioning that function-put was newly introduced, if I am not mistaken. Take a look at this: http://permalink.gmane.org/gmane.emacs.devel/171782 HTH, -- Alexander Baier
Re: [O] org-mode variables
On 2014-05-08 13:07 Igor Sosa Mayor wrote: Dave Pawson dave.paw...@gmail.com writes: Searching http://orgmode.org/org.html I failed to find how to modify org-mode variables, where they are stored, etc. They are listed, but no mention of setting them? Are they standard emacs vars, if so , perhaps this could be made clear in the manual please? yes, they are standard emacs variables, you can normally set with (setq variable value) Or, if you want to use the customize interface: M-x customize-group org RET HTH, -- Alexander Baier
Re: [O] words pre-lexed for use as keywords in an agenda view
Hello Haroldo, On 2014-05-08 20:31 Haroldo Stenger wrote: is there alredy a word lexer connected somehow to org-mode, that uses the most frequent words in the org-agenda-files , and offers them to you to look for the lines in which they occur in an agenda view ? I am not really sure I know what you are asking. What do you mean by keywords? I think a little example or a more elaborate explanation might help me and others understand what it is you are asking for. Regards, -- Alexander Baier
Re: [O] Color entries according to assigned priority
On 2014-05-08 06:36 Uwe Ziegenhagen wrote: ;; Do not show welcome screen at startup (setq inhibit-startup-message t) ;; just answer Emacs' question with 'y' or 'n' instead of 'yes'or 'no' (defalias 'yes-or-no-p 'y-or-n-p) ;; Load org mode (add-to-list 'load-path G:/Programme/emacs-24.3/myLisp/org-8.2.4/lisp) (font-lock-add-keywords 'org-mode '((^.*:write:.*$ . font-lock-keyword-face))) (setq org-agenda-face-for-tagged-lines '((write . bold))) None of the tags in the screenshots is :write:. I do not understand, what you expect to happen here. (defun org-agenda-fontify-tagged-line () Use `org-agenda-face-for-tagged-lines' to fontify lines with certain tags. (goto-char (point-min)) (let (tags) (while (progn (forward-line 1) (not (eobp))) (if (setq tags (get-text-property (point) 'tags)) (mapcar (lambda (pair) (if (member (car pair) tags) (add-text-properties (point-at-bol) (point-at-eol) `(face,(cdr pair) org-agenda-face-for-tagged-lines) (add-hook 'org-agenda-finalize-hook 'org-agenda-fontify-tagged-line) To me this looks like something that applies to the agenda only. Tagging a headline with the :write: tag and generating an agenda view (e.g. C-c a t) should make those headlines bold. HTH, -- Alexander Baier
Re: [O] current task being worked in agenda time grid
Eric S Fraga e.fr...@ucl.ac.uk writes: On Friday, 9 May 2014 at 08:46, J. David Boyd wrote: Eric S Fraga e.fr...@ucl.ac.uk writes: On Thursday, 8 May 2014 at 09:45, J. David Boyd wrote: Is there any way to do that? It would be beneficial if, when I did C-a a, the time grid could show, at the current time, what I am currently clocking time against. [...] That's an idea. In the meantime, I guess I'll just widen my emacs window out wider. Of course, you *could* change the mode line so that clocking information comes earlier in the line... but playing with the mode line can be a real time sink, and I speak from experience! My mode line bears little resemblance to the default and the changes were motivated by my using Emacs on very small systems such as the OpenPandora. but definitely getting off-topic here :-) I could also make my TODO topics a little shorter, so they aren't so long they wrap around the other side of the room! Dave
Re: [O] [BUG] Symbol's function definition is void: function-put
Alexander Baier lexi.ba...@gmail.com writes: On 2014-05-09 07:10 Sharon Kimble wrote: I've just tried to start emacs 24.3.90.1 without success, and it showed Warning (initialization): An error occurred while loading `/home/boudiccas/.emacs': Symbol's function definition is void: function-put I eventually tracked it down to lines 2248 and 2284 of org-loaddefs.el this is line 2248 ╭ │(function-put 'org-export-to-buffer 'lisp-indent-function '2) ╰ and this is line 2284 ╭ │(function-put 'org-export-to-file 'lisp-indent-function '2) ╰ It always shows up in 24.3.90.1 and stops it from fully loading, whereas in 24.4.50.x there is no problem. I am not sure about this, but I recently saw a post on the emacs devel mailing list mentioning that function-put was newly introduced, if I am not mistaken. Take a look at this: http://permalink.gmane.org/gmane.emacs.devel/171782 HTH, Thanks for this, it was exactly what the problem was. I've resolved it by renaming my ELPA directory, starting emacs afresh, and then downloading and installing the packages that I want to use. I've got a much slimmed down set-up now, and it feels 'lighter' too. Only one theme is installed that I use all the time, so I'm not hopping in-between themes, and I'm steering clear of trunk builds for a while, but we'll see how long that lasts! :) Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.3.90.1 signature.asc Description: PGP signature
Re: [O] Confused about list indentation
Leonard Avery Randall leonard.a.rand...@gmail.com writes: Guido Van Hoecke wrote: How does org decide that 'He makes a really...' is not associated with the current list item? What keystrokes are required to produce this alignment or the one with the extra indentation? Org determines what headline the text is associated with based upon indentation (see example below). If you simply press enter after a list item, the text is not indented, and thus it is not associated with any list item. If you press tab before entering any text, it will indent to the level of the most recent list item. In order to have text associated with a higher level list item, you have to manually delete spaces after pressing tab or just manually insert the appropriate number of spaces. Example: 1. List item - Lower level list item This text is not associated with any list. Any list items after this will form a new list. 1. New list item 1 - Lower level list item This text is associated with lower level list item 2. New list item 2 - Lower level list item 2 This text is associated with 'New list item 2' Hope this helps, It does, thanks! Kind regards, Guido -- I'll turn over a new leaf. -- Miguel de Cervantes
Re: [O] words pre-lexed for use as keywords in an agenda view
Hello Alexander I'd like a sort of pareto (the top fifth of the whole set of words sorted by usage/frequency) index of words which are in the .org documents . Then, in some of the agenda views that look for the string that you type, you'd be offered word expansion on those frequent word set, just like you're offered word expansion on TODO/DONE and the like. Let's say that somehow it's a starting point for a self learning helper. Possibly not big deal if well thought of. Possibly of great coolness as Bastien told. :-) best Haroldo 2014-05-09 8:13 GMT-03:00 Alexander Baier lexi.ba...@gmail.com: Hello Haroldo, On 2014-05-08 20:31 Haroldo Stenger wrote: is there alredy a word lexer connected somehow to org-mode, that uses the most frequent words in the org-agenda-files , and offers them to you to look for the lines in which they occur in an agenda view ? I am not really sure I know what you are asking. What do you mean by keywords? I think a little example or a more elaborate explanation might help me and others understand what it is you are asking for. Regards, -- Alexander Baier
Re: [O] words pre-lexed for use as keywords in an agenda view
On 2014-05-09 20:00 Haroldo Stenger wrote: Hello Alexander I'd like a sort of pareto (the top fifth of the whole set of words sorted by usage/frequency) index of words which are in the .org documents . Then, in some of the agenda views that look for the string that you type, Do you mean agenda views like the one generated by pressing `C-c a /' ? you'd be offered word expansion on those frequent word set, just like you're offered word expansion on TODO/DONE and the like. Let's say that somehow it's a starting point for a self learning helper. Regards, -- Alexander Baier
Re: [O] Using KOMA and Memoir?
On 9 May 2014 12:58, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Fri, May 09, 2014 at 09:46:15AM +0100, Eric S Fraga wrote: On Thursday, 8 May 2014 at 22:17, Martin Schöön wrote: which is what several of us have been trying to get across! At the very least, you need: , | (add-to-list 'load-path ...org lisp directory...) | (require 'org) | (require 'ox-latex) | (add-to-list 'org-latex-classes ...) ` to do what you want! You are missing the third line. A minimal initialisation with just those four lines should be enough to see if org with KOMA works. For your understanding, you can do a simple test. Start emacs without the add-to-list line. Then evaluate these: (featurep 'org) (featurep 'ox-latex) You will get t for the first, nil for the second. Now try to find the variable org-latex-classes with C-h v. You will not be able to find it. Now load ox-latex with either load-library or by evaluating (require 'ox-latex). Try the above evaluations again, you will see t for both, and when you try to find the variable with C-h v, you will succeed. AFAIU, the exporter loads enabled backends when you do the first export. So when you modify a variable that is defined in an unloaded module, of course this does not work! Hope this makes the problem and the resolution clearer. To get some hints about doing things right, I would point you to my setup: https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el Hope this helps, -- Suvayu Open source is the future. It sets us free. -- Martin Schöön http://hem.bredband.net/b262106/index.html
Re: [O] words pre-lexed for use as keywords in an agenda view
Yes, especially the search prompt in the minibuffer. Indeed I was thinking more of C-c a T 'ish view, but not restricted to the list of TODO tags, instead focused in the top used words. 2014-05-09 15:29 GMT-03:00 Alexander Baier lexi.ba...@gmail.com: On 2014-05-09 20:00 Haroldo Stenger wrote: Hello Alexander I'd like a sort of pareto (the top fifth of the whole set of words sorted by usage/frequency) index of words which are in the .org documents . Then, in some of the agenda views that look for the string that you type, Do you mean agenda views like the one generated by pressing `C-c a /' ? you'd be offered word expansion on those frequent word set, just like you're offered word expansion on TODO/DONE and the like. Let's say that somehow it's a starting point for a self learning helper. Regards, -- Alexander Baier
Re: [O] Using KOMA and Memoir?
First of all: sorry for the previous, empty post. I misclicked. Further comments below. On 9 May 2014 12:58, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Fri, May 09, 2014 at 09:46:15AM +0100, Eric S Fraga wrote: On Thursday, 8 May 2014 at 22:17, Martin Schöön wrote: which is what several of us have been trying to get across! At the very least, you need: , | (add-to-list 'load-path ...org lisp directory...) | (require 'org) | (require 'ox-latex) | (add-to-list 'org-latex-classes ...) ` to do what you want! You are missing the third line. A minimal initialisation with just those four lines should be enough to see if org with KOMA works. For your understanding, you can do a simple test. Start emacs without the add-to-list line. Then evaluate these: (featurep 'org) (featurep 'ox-latex) You will get t for the first, nil for the second. Now try to find the variable org-latex-classes with C-h v. You will not be able to find it. Now load ox-latex with either load-library or by evaluating (require 'ox-latex). Try the above evaluations again, you will see t for both, and when you try to find the variable with C-h v, you will succeed. AFAIU, the exporter loads enabled backends when you do the first export. So when you modify a variable that is defined in an unloaded module, of course this does not work! Hope this makes the problem and the resolution clearer. To get some hints about doing things right, I would point you to my setup: https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el Thanks for your patience guys. You have overestimated my elisp-knowledge. Telling me I need to call in ox-latex without telling me how was asking too much of me. I tried to look it up myself and failed. Now, finally, this works as adverticed and Suvayu's explanation of how the exporter loads backends clears some fog. I have even got Memoir to work. -- Martin Schöön http://hem.bredband.net/b262106/index.html
Re: [O] Using KOMA and Memoir?
On Friday, 9 May 2014 at 21:33, Martin Schöön wrote: [...] Thanks for your patience guys. You have overestimated my elisp-knowledge. Telling me I need to call in ox-latex without telling me how was asking too much of me. I tried to look it up myself and failed. Yes, it is easy to assume that people know what we mean. The trick is to ask for clarification! Now, finally, this works as adverticed and Suvayu's explanation of how the exporter loads backends clears some fog. Excellent. Glad we got there in the end. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] ob-lua.el
At Wed, 07 May 2014 00:46:03 +0200, Bastien wrote: Hi Dieter, die...@schoen.or.at writes: for a project I need to tangle lua files (including parameters and tables), and there seems to be no ob-lua.el (yet). so I shamelessly copied ob-python.el and adapted it to my needs. right now it can tangle lua, also with simple or table parameters. if anybody is interested, I can upload it. Yes, please do! before that, it should maybe be completed, and also pass some generic tangle test, I think. I have shortly looked at testing/examples/ob-shell-test.org. Is a test like this suitable? I suggest to look at testing/lisp/test-ob-shell.el. sorry for the delay, I had to fix some quoting.. here is what i have already. it is not yet ERT tested, only manually. ob-lua.el is capable to tangle code which uses tables with one, two or many columns. i have not yet done any code executing tests. first, here is my test harness: #+NAME: simple-table | simple one | | two| | three | is converted into sim={{simple one}, {two}, {three}} #+NAME: assoc-table | name| value | |-+---| | colour | blue | | weather | fine | this is converted into mapv={{colour, blue}, {weather, fine}} i copied this behaviour (an associative map) from ob-shell.el #+NAME: big-table | name| value | remark | |-++| | tool| emacs | cool | | environment | debian | fair | and finally, big={{tool, emacs, cool}, {environment, debian, fair}} #part type=text/x-org filename=/home/dieter/git/org/code-exporter.org disposition=attachment #/part and ob-lua.el #part type=application/emacs-lisp filename=/home/dieter/.emacs.d/elpa/org-20140505/ob-lua.el disposition=attachment #/part as i am quite new to emacs/org, i will be thankful for any feedback. kind regards, dieter
Re: [O] ob-lua.el
now with attachments, i hope Original Message From: Dieter Schoen die...@schoen.or.at To: emacs-orgmode@gnu.org Sent: Fri, May 9, 2014, 10:23 PM Subject: Re: [O] ob-lua.el At Wed, 07 May 2014 00:46:03 +0200, Bastien wrote: Hi Dieter, die...@schoen.or.at writes: for a project I need to tangle lua files (including parameters and tables), and there seems to be no ob-lua.el (yet). so I shamelessly copied ob-python.el and adapted it to my needs. right now it can tangle lua, also with simple or table parameters. if anybody is interested, I can upload it. Yes, please do! before that, it should maybe be completed, and also pass some generic tangle test, I think. I have shortly looked at testing/examples/ob-shell-test.org. Is a test like this suitable? I suggest to look at testing/lisp/test-ob-shell.el. sorry for the delay, I had to fix some quoting.. here is what i have already. it is not yet ERT tested, only manually. ob-lua.el is capable to tangle code which uses tables with one, two or many columns. i have not yet done any code executing tests. first, here is my test harness: #+NAME: simple-table | simple one | | two| | three | is converted into sim={{simple one}, {two}, {three}} #+NAME: assoc-table | name| value | |-+---| | colour | blue | | weather | fine | this is converted into mapv={{colour, blue}, {weather, fine}} i copied this behaviour (an associative map) from ob-shell.el #+NAME: big-table | name| value | remark | |-++| | tool| emacs | cool | | environment | debian | fair | and finally, big={{tool, emacs, cool}, {environment, debian, fair}} #part type=text/x-org filename=/home/dieter/git/org/code-exporter.org disposition=attachment #/part and ob-lua.el #part type=application/emacs-lisp filename=/home/dieter/.emacs.d/elpa/org-20140505/ob-lua.el disposition=attachment #/part as i am quite new to emacs/org, i will be thankful for any feedback. kind regards, dieter code-exporter.org Description: Binary data ob-lua.el Description: Binary data
[O] ?dynamic-line-length?
How can I have dynamic-line-lengths, or in other words, the line in an org-mode document is 78, but when two frames are opened side-by-side, one on the left and one on the right, our original documents line length now adapts itself to fit the decreased window size, and yet all of the line and document can very easily be read and written without having to move the buffer left or right. Can it be done please? If so, how? Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.3.90.1 signature.asc Description: PGP signature
Re: [O] ?dynamic-line-length?
Sharon Kimble boudic...@skimble.plus.com writes: How can I have dynamic-line-lengths, or in other words, the line in an org-mode document is 78, but when two frames are opened side-by-side, one on the left and one on the right, our original documents line length now adapts itself to fit the decreased window size, and yet all of the line and document can very easily be read and written without having to move the buffer left or right. Can it be done please? If so, how? Try the options in the Options-Line wrapping in this buffer menu. Nick
Re: [O] Bug with subscripts and superscripts
I'm using org-mode 8.2.3a. Hugo Massaroli 2014-05-09 9:56 GMT-03:00 Bastien b...@gnu.org: Hi Hugo, Hugo M ham1...@gmail.com writes: I'm using 24.3.50.1 with Xubuntu. What version of Org are you using? M-x org-version RET Chances are that you use Org 8.0, in which case we can only recommend to upgarde: http://orgmode.org/manual/Installation.html HTH, -- Bastien
[O] Set tags in region
Hello, Just curious of there's a way to set the tags in a region all at once? I see there's a way to do it via agenda, but I was curious if there was also a way to do it on a group of headlines from the buffer itself. In various google strategies, it looked like the answer was no. This is just a random file (making a camping packing/shopping list), so to do it via the way that seemed apparent was: C-c a to restrict to the file s to conduct a fake search that would just give all the headlines in the buffer highlight region : to set tags It would have just been easier to C-space on a region and set them in groups right from the buffer. I sort of expected something like C-u C-c C-c to set region tags? Thinking about it, I suppose since these happened to be tagged with :export:, I could have done an M-x replace-string and appended my additional tag. Thanks! John
[O] New worg page: Publishing beamer slideshows and articles from one source
Hi all, Some weeks ago, I wrote here about a large project (training materials for the SuperCollider audio/music programming language), written entirely in org using the Beamer exporter to produce both slideshows and an article-format book for the students to use as a reference. I just put a page up on worg describing the implementation details: http://orgmode.org/worg/exporters/beamer/beamer-dual-format.html The project lives at https://github.com/jamshark70/scweek2014 -- note that the material itself is under a Creative Commons license, CC-BY-SA. As far as I'm concerned, if you want to use any of the Emacs or LaTeX code, knock yourself out, but please don't republish the written material in any way that's contrary to CC-BY-SA. Hope this is of use, hjh
[O] Export all headlines when some are set with :export:
Hello, In creating a packing/buy list for an upcoming camping trip, I wanted two exports: - one for things to buy - one for everything on the list for packing My strategy was to tag things to buy with :export: (perhaps foolish, but it was the obvious choice to selectively export them) to create my shopping list. I'd also like an alternate export with all headlines in the subtree exported. Now the list is done like that, but I'm not sure how to export everything without undoing all the tags on the buy list items. I'm thinking I should have done something like a :buy: tag, then set SELECT_TAGS to target those items, followed by removing that export option and exporting as normal to get them all. Just thought I'd see if there was a way to override the function of :export: as it typically behaves. Thanks, John
Re: [O] Set tags in region
John Hendy jw.he...@gmail.com writes: Hello, Just curious of there's a way to set the tags in a region all at once? (org-map-entries (function org-set-tags) nil 'region) or (org-map-entries (lambda () (org-set-tags-to '(foo))) nil 'region) or some variation thereof. I see there's a way to do it via agenda, but I was curious if there was also a way to do it on a group of headlines from the buffer itself. In various google strategies, it looked like the answer was no. This is just a random file (making a camping packing/shopping list), so to do it via the way that seemed apparent was: C-c a to restrict to the file s to conduct a fake search that would just give all the headlines in the buffer highlight region : to set tags It would have just been easier to C-space on a region and set them in groups right from the buffer. I sort of expected something like C-u C-c C-c to set region tags? Thinking about it, I suppose since these happened to be tagged with :export:, I could have done an M-x replace-string and appended my additional tag. Thanks! John -- Nick
Re: [O] Export all headlines when some are set with :export:
John Hendy jw.he...@gmail.com writes: In creating a packing/buy list for an upcoming camping trip, I wanted two exports: - one for things to buy - one for everything on the list for packing My strategy was to tag things to buy with :export: (perhaps foolish, but it was the obvious choice to selectively export them) to create my shopping list. I'd also like an alternate export with all headlines in the subtree exported. Now the list is done like that, but I'm not sure how to export everything without undoing all the tags on the buy list items. I'm thinking I should have done something like a :buy: tag, then set SELECT_TAGS to target those items, followed by removing that export option and exporting as normal to get them all. Just thought I'd see if there was a way to override the function of :export: as it typically behaves. An empty SELECT_TAGS selects everything I believe: --8---cut here---start-8--- #+SELECT_TAGS: * a :export: * b * c * d :export: --8---cut here---end---8--- Then you can comment it out to get just the :export:ed headlines. But a semantically meaningful tag seems better to me. -- Nick