[O] Skeletons Link
People, On the page: http://orgmode.org/worg/org-faq.html#when-to-contact-mailing-list In the question: Are there any shortcuts for entering source blocks and comment lines? Why is the link for 'Skeletons' pointing to: http://www.slashgear.com/nokia-n900-android-dual-boot-hack-video-2371099/ What does this has to do with Skeletons?? Thanks --R
Re: [O] including the result of a block in several places?
t...@tsdye.com (Thomas S. Dye) writes: I've had these in my .emacs for quite a while and they seem to work: ** ON Load Standard Library of Babel #+begin_src emacs-lisp :tangle yes (org-babel-lob-ingest ~/.emacs.d/src/org-mode/contrib/babel/library-of-babel.org) #+end_src Thanks a lot, I'm now able to call the echo function. Unfortunately it does not exactly do what I want (but I was not really clear about what I wanted first). Here is the code I have (don't worry about the code inside the blocks, the idea is that I want a source block and its results on two different slides, without having to duplicate them): #+begin_src org ** Prototype-based objects #+name: object_example #+begin_src js :results code output :exports both var f = function(a) { this.x = a } f.prototype = {y : 1} var o = new f (42) console.log(o.x = + o.x + , o.y = + o.y) #+end_src Results #+results: object_example ** Prototypes resolution #+BEGIN_SRC coq Inductive proto : heap - field - loc - loc - Prop := | proto_null : forall h f, proto h f loc_null loc_null | proto_here : forall h l f, indom h l f - proto h f l l | proto_next : forall h l f l' l'', ~ indom h l f - binds h l field_proto l' - proto h f l' l'' - proto h f l l''. #+END_SRC ** Prototype-based objects #+call: echo(object_example) :results code output :exports both #+end_src My problem is twofold. - The code from object_example is not repeated. I guess that here what I want is to be able to export a source code block in several places. Is it possible? - The highlighting of the results in the #+call: line is not in javascript syntax, and I don't know how to tell the call that the result will be javascript. Thanks again, Alan
Re: [O] including the result of a block in several places?
Alan Schmitt, Alan Schmitt wrote: t...@tsdye.com (Thomas S. Dye) writes: I've had these in my .emacs for quite a while and they seem to work: ** ON Load Standard Library of Babel #+begin_src emacs-lisp :tangle yes (org-babel-lob-ingest ~/.emacs.d/src/org-mode/contrib/babel/library-of-babel.org) #+end_src Thanks a lot, I'm now able to call the echo function. Unfortunately it does not exactly do what I want (but I was not really clear about what I wanted first). Here is the code I have (don't worry about the code inside the blocks, the idea is that I want a source block and its results on two different slides, without having to duplicate them): #+begin_src org ** Prototype-based objects #+name: object_example #+begin_src js :results code output :exports both var f = function(a) { this.x = a } f.prototype = {y : 1} var o = new f (42) console.log(o.x = + o.x + , o.y = + o.y) #+end_src Results #+results: object_example ** Prototypes resolution #+BEGIN_SRC coq Inductive proto : heap - field - loc - loc - Prop := | proto_null : forall h f, proto h f loc_null loc_null | proto_here : forall h l f, indom h l f - proto h f l l | proto_next : forall h l f l' l'', ~ indom h l f - binds h l field_proto l' - proto h f l' l'' - proto h f l l''. #+END_SRC ** Prototype-based objects #+call: echo(object_example) :results code output :exports both #+end_src My problem is twofold. - The code from object_example is not repeated. I guess that here what I want is to be able to export a source code block in several places. Is it possible? - The highlighting of the results in the #+call: line is not in javascript syntax, and I don't know how to tell the call that the result will be javascript. In a hurry, to repeat the code: - use named blocks - use Noweb expansion That is: #+name: mycode #+begin_src coq ... #+end_src Inserted a first time here: #+begin_src coq :noweb yes mycode #+end_src and another one here: #+begin_src coq :noweb yes mycode #+end_src Best regards, Seb -- Sebastien Vauban
Re: [O] including the result of a block in several places?
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: In a hurry, to repeat the code: - use named blocks - use Noweb expansion That is: #+name: mycode #+begin_src coq ... #+end_src Inserted a first time here: #+begin_src coq :noweb yes mycode #+end_src and another one here: #+begin_src coq :noweb yes mycode #+end_src Thanks a lot, that worked perfectly. Alan
Re: [O] babel perl issue
I put (require 'ob-tangle) in my .emacs I am sorry but now Symbol's function definition is void: org-not-nil when I do C-c C-o in a perl block 2012/12/10 flav flav.justf...@gmail.com I put (require 'ob-tangle) in my .emacs I am sorry but now Symbol's function definition is void: org-not-nil 2012/12/9 ASSI strom...@nexgo.de require 'ob-tangle -- flav -- flav
Re: [O] Skeletons Link
+Matt Hi Rodolfo, Matt added this in commit bd88798 (Added instructions on creating skeleton to enter org blocks., 2010-12-20) so we'll have to wait for his input I think. Regards, Bernt Rodolfo Aramayo raram...@gmail.com writes: People, On the page: http://orgmode.org/worg/org-faq.html#when-to-contact-mailing-list In the question: Are there any shortcuts for entering source blocks and comment lines? Why is the link for 'Skeletons' pointing to: http://www.slashgear.com/nokia-n900-android-dual-boot-hack-video-2371099/ What does this has to do with Skeletons?? Thanks --R
[O] Org css
Hello, I can't find out the css of the orgmode web site. Is it possible to get it ? Where ? Thanks -- flav
Re: [O] Org css
Hi, ** flav [2012-12-10 13:03:52 +0100]: Hello, I can't find out the css of the orgmode web site. Is it possible to get it ? Where ? Thanks wget http://orgmode.org/org.css --- WBR, Vladimir Lomov -- Money will say more in one moment than the most eloquent lover can in years.
Re: [O] Bug: hl-line obscures org-habit tracking in agenda [7.8.11]
Hi, Same thing here except with TODO keywords, the font is configured to be black-on-red and hl-line lays on top of that, giving a black-on-darkgrey. Looking at docs about how emacs determines the face at a given location, they speak about a stack of specifications but nothing about the ordering of that stack - certainly org should be above hl-line ? Any way to change that ? (Maybe hl-line uses an overlay, in which case it seems to be hopeless ...) /v -- Vincent Beffara On Thursday, November 29, 2012 at 14:38 , Boyan Penkov wrote: Hello, I'm using org-habit to track habits in the agenda view, displaying the consistency graph. I'm also using hl-line to highlight the line the cursor is on. When the habit line is highlighted, the line highlight obscures the consistency graph. It seems behavior should be opposite -- i.e: the consistency graph should lie atop the highlight bar, such that the graph is visible when the line is highlighted. Thanks! Emacs : GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-08-27 on bob.porkrind.org (http://bob.porkrind.org) Package: Org-mode version 7.8.11 current state: == (setq org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-agenda-start-on-weekday nil org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-confirm-shell-link-function 'yes-or-no-p org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-agenda-skip-scheduled-if-done t org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-tags-column 80 org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-blocks '((src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) org-agenda-tags-column 93 org-export-first-hook '(org-beamer-initialize-open-trackers) org-export-interblocks '((src org-babel-exp-non-block-elements)) org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-habit org-irc org-mew org-mhe org-rmail org-vm org-wl org-w3m) org-agenda-ndays 9 org-deadline-warning-days 0 org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-habit-graph-column 75 org-agenda-files '(~/Vazhno/Logs/ToDo/todo.org (http://todo.org)) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) ) -- Boyan Penkov attachment: Screen Shot 2012-12-10 at 13.40.34.png
Re: [O] babel perl issue
flav flav.justf...@gmail.com writes: I put (require 'ob-tangle) in my .emacs I am sorry but now Symbol's function definition is void: org-not-nil when I do C-c C-o in a perl block put the following in your .emacs, possibly following a (require 'org) (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] including the result of a block in several places?
Alan Schmitt alan.schm...@polytechnique.org writes: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: In a hurry, to repeat the code: - use named blocks - use Noweb expansion Another option would be, 1. use named blocks 2. use call lines -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] babel perl issue
Achim Gratz strom...@nexgo.de writes: Eric Schulte writes: See http://orgmode.org/manual/Languages.html for the documentation on how to activate and disable org-babel languages. That actually produces the error: File mode specification error: (void-variable org-babel-tangle-lang-exts) as the OP has found out (and I can reproduce it). Using this method of requiring languages, ;; emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) Works for me without issue when called from a fresh emacs (-Q). This is the recommended way of adding support for a new language and should work for the OP. The reason is that none of the ob-lang.el files do a (require ob-tangle), but try to change a defcustom in ob.tangle.el that is only declared, but not yet available at the time. The two fixes seem to be either to either (1) add (require 'ob-tangle) to all current and new language specific files, or (2) merge ob-tangle into ob.el, so that they are both loaded by (require 'ob). It is unfortunate that because of the recursive require there is no way to separate a single require'd entity across multiple files. Option (2) seems most clean to me. Unless anyone has a better idea I'll make this change. Best, -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] babel perl issue
still an issue : Debugger entered--Lisp error: (void-function org-babel-do-load-languages) (org-babel-do-load-languages (quote org-babel-load-languages) (quote (...))) eval-buffer(#buffer *load* nil /home/flav/.emacs nil t) ; Reading at bu$ load-with-code-conversion(/home/flav/.emacs /home/flav/.emacs t t) load(~/.emacs t t) #[nil ^H\205\264^@ \306=\203^Q^@\307^H\310Q\2027^@ \311=\2033^@\312\307\31$ command-line() normal-top-level() 2012/12/10 Eric Schulte schulte.e...@gmail.com (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) -- flav
Re: [O] babel perl issue
As I mentioned in my previous message you have to require Org-mode before executing the following snippet. Try (require 'org) (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) flav flav.justf...@gmail.com writes: still an issue : Debugger entered--Lisp error: (void-function org-babel-do-load-languages) (org-babel-do-load-languages (quote org-babel-load-languages) (quote (...))) eval-buffer(#buffer *load* nil /home/flav/.emacs nil t) ; Reading at bu$ load-with-code-conversion(/home/flav/.emacs /home/flav/.emacs t t) load(~/.emacs t t) #[nil ^H\205\264^@ \306=\203^Q^@\307^H\310Q\2027^@ \311=\2033^@\312\307\31$ command-line() normal-top-level() 2012/12/10 Eric Schulte schulte.e...@gmail.com (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] babel perl issue
I am sorry for my misunderstood but I put (require 'org) in my .emacs and there is no change. 2012/12/10 Eric Schulte schulte.e...@gmail.com As I mentioned in my previous message you have to require Org-mode before executing the following snippet. Try (require 'org) (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) flav flav.justf...@gmail.com writes: still an issue : Debugger entered--Lisp error: (void-function org-babel-do-load-languages) (org-babel-do-load-languages (quote org-babel-load-languages) (quote (...))) eval-buffer(#buffer *load* nil /home/flav/.emacs nil t) ; Reading at bu$ load-with-code-conversion(/home/flav/.emacs /home/flav/.emacs t t) load(~/.emacs t t) #[nil ^H\205\264^@ \306=\203^Q^@\307^H\310Q\2027^@ \311=\2033^@\312\307\31$ command-line() normal-top-level() 2012/12/10 Eric Schulte schulte.e...@gmail.com (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) -- Eric Schulte http://cs.unm.edu/~eschulte -- flav
Re: [O] Skeletons Link
Thank You Bernt Regards, --R On Mon, Dec 10, 2012 at 5:46 AM, Bernt Hansen be...@norang.ca wrote: +Matt Hi Rodolfo, Matt added this in commit bd88798 (Added instructions on creating skeleton to enter org blocks., 2010-12-20) so we'll have to wait for his input I think. Regards, Bernt Rodolfo Aramayo raram...@gmail.com writes: People, On the page: http://orgmode.org/worg/org-faq.html#when-to-contact-mailing-list In the question: Are there any shortcuts for entering source blocks and comment lines? Why is the link for 'Skeletons' pointing to: http://www.slashgear.com/nokia-n900-android-dual-boot-hack-video-2371099/ What does this has to do with Skeletons?? Thanks --R
[O] org-sync doesn't work with recent org-element.el
hej list, i've just now been playing around with org-sync [1] and want to start using it for at least a github and eventually a redmine project. the first thing which is making me stumble is that while org-sync works fine with org-element from [2] a current (as in from head of master) one fails to work at all. as far as i could track the problem, i understand that the handling of property drawers changed significantly: while in the former version a property drawer was just represented by a simple plist, the latter now introduced a new org-element-type node-property, so it also provides access to information about f.ex. spacing of individual items in the property drawer. and org-sync hasn't been adapted to this yet. am i correct? did someone start the work on updating org-sync yet? thanks, jonas Footnotes: [1] http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/org-sync/ [2] http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=contrib/lisp/org-element.el;hb=5057ae0fc2c0d551a83d3c3e9bd621b751db9f09
Re: [O] unicode in org-mode
`org-entities' and `org-entities-user' come close. They need a preceding `\', which detracts a little from reading for me. (Or course, I'm hardly using org-mode to its fullest. It really is for notes, just text.) Still, it's a big help for the moment. Thanks, Sebastien. ,Douglas Douglas Lewan Shubert Ticketing (201) 489-8600 ext 224 When I do good, I feel good. When I do bad, I feel bad and that's my religion. - Abraham Lincoln -Original Message- From: emacs-orgmode-bounces+dougl=shubertticketing@gnu.org [mailto:emacs-orgmode-bounces+dougl=shubertticketing@gnu.org] On Behalf Of Sebastien Vauban Sent: Friday, 2012 December 07 13:30 To: emacs-orgmode@gnu.org Subject: Re: [O] unicode in org-mode Hi Doug Lewan, Doug Lewan wrote: For notes (and other things) I tend to use non-ASCII characters fairly freely. (Among them the most common are: ∃ -- there is, ∀ -- every, ∈ -- in, ∴ -- therefore, ≡, arrows, bullets, checks, subscripts, superscripts, etc.) It would be nice to be able to configure org-mode to handle them nicely. (Where nicely means in exactly the vague way that I want.) Are you aware of `org-entities' (and even `org-entities-user')? Don't they allow you to use such symbols for multiple back-ends, in the way you want? If not, please detail what the problem is... Best regards, Seb -- Sebastien Vauban
Re: [O] info for org not found in emacs
Thanks - does anybody else has any ideas on how I can get org into info? Rainer On 9 December 2012 06:07, Jude DaShiell jdash...@shellworld.net wrote: So far as I now know you've run into a situation that's new to me. --- jude jdash...@shellworld.net Adobe fiend for failing to Flash -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com
Re: [O] babel perl issue
1. make sure you're using a recent version of Org-mode, either the latest release or from git, see http://orgmode.org/worg/org-faq.html#Keeping-current 2. start Emacs with the -Q flag (to ensure there is no problem caused by the rest of your config) 3. evaluate the Babel config (require 'org) (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) 4. if you still have problems, then write back with your version of Emacs, and your version of org-mode (reported with M-x org-version) Hope this helps, flav flav.justf...@gmail.com writes: I am sorry for my misunderstood but I put (require 'org) in my .emacs and there is no change. 2012/12/10 Eric Schulte schulte.e...@gmail.com As I mentioned in my previous message you have to require Org-mode before executing the following snippet. Try (require 'org) (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) flav flav.justf...@gmail.com writes: still an issue : Debugger entered--Lisp error: (void-function org-babel-do-load-languages) (org-babel-do-load-languages (quote org-babel-load-languages) (quote (...))) eval-buffer(#buffer *load* nil /home/flav/.emacs nil t) ; Reading at bu$ load-with-code-conversion(/home/flav/.emacs /home/flav/.emacs t t) load(~/.emacs t t) #[nil ^H\205\264^@ \306=\203^Q^@\307^H\310Q\2027^@ \311=\2033^@\312\307\31$ command-line() normal-top-level() 2012/12/10 Eric Schulte schulte.e...@gmail.com (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) -- Eric Schulte http://cs.unm.edu/~eschulte -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] info for org not found in emacs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/12/12 17:50, Jambunathan K wrote: Rainer M Krug rai...@krugs.de writes: Thanks - does anybody else has any ideas on how I can get org into info? M-x info-display-manual RET ~/src/org-mode/doc/org RET This definitely works - thanks. But is there a way of adding this permanentely, so that I can use the menu entry in the org menu to see the info file? Rianer - -- 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 v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlDGHKwACgkQoYgNqgF2egrGfgCfT/Kfok/MJHewAaYKauZvNNel 2GEAn0bCTRjuQgEu+hKsKAzZtio9SjdR =uPej -END PGP SIGNATURE-
Re: [O] info for org not found in emacs
Rainer M Krug r.m.k...@gmail.com writes: On 10/12/12 17:50, Jambunathan K wrote: Rainer M Krug rai...@krugs.de writes: Thanks - does anybody else has any ideas on how I can get org into info? M-x info-display-manual RET ~/src/org-mode/doc/org RET This definitely works - thanks. But is there a way of adding this permanentely, so that I can use the menu entry in the org menu to see the info file? The following works for me (your mileage may vary) ;; info paths (add-to-list 'Info-default-directory-list /home/eschulte/.emacs.d/src/org-mode/doc/) Best, -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] babel perl issue
Eric Schulte writes: Using this method of requiring languages, ;; emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) Works for me without issue when called from a fresh emacs (-Q). This is the recommended way of adding support for a new language and should work for the OP. Why should this be preferred over simple customization of org-babel-load-languages? I see no reason to have users add code to .emacs just for selecting which Babel languages to use. The two fixes seem to be either to either (1) add (require 'ob-tangle) to all current and new language specific files, or (2) merge ob-tangle into ob.el, so that they are both loaded by (require 'ob). It is unfortunate that because of the recursive require there is no way to separate a single require'd entity across multiple files. Option (2) seems most clean to me. Unless anyone has a better idea I'll make this change. Well, option (3) is to implement option (2) first, then put all defcustoms (together with their initializers perhaps) into separate files instead of dispersing them into many smaller ones and require them from the top-level files (ob.el in your case, although I personally think that all defcustoms should be visible from the start) so that any autoloaded function invocation will see them defined with their correct values. The external interface is then taken care of by autoloading and the number of requires is minimal. 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] babel perl issue
flav writes: I am sorry for my misunderstood but I put (require 'org) in my .emacs and there is no change. May I suggest you use the ELPA package? 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] info for org not found in emacs
Rainer M Krug writes: This definitely works - thanks. But is there a way of adding this permanentely, so that I can use the menu entry in the org menu to see the info file? As I said before, check that doc/dir is not missing or modified. 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] babel perl issue
Achim Gratz strom...@nexgo.de writes: Eric Schulte writes: Using this method of requiring languages, ;; emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '((perl . t))) Works for me without issue when called from a fresh emacs (-Q). This is the recommended way of adding support for a new language and should work for the OP. Why should this be preferred over simple customization of org-babel-load-languages? The `org-babel-do-load-languages' function handles the loading of the language-specific files as well as the removal of the evaluation functions defined by those files when languages are deactivated. This removal requires un-binding those functions. I see no reason to have users add code to .emacs just for selecting which Babel languages to use. Note that if `org-babel-load-languages' is set through the customization interface then `org-babel-do-load-languages' will be called as above (see the :set keyword argument to the defcustom of `org-babel-load-languages') so it is not necessary for a user to add anything to their .emacs. The two fixes seem to be either to either (1) add (require 'ob-tangle) to all current and new language specific files, or (2) merge ob-tangle into ob.el, so that they are both loaded by (require 'ob). It is unfortunate that because of the recursive require there is no way to separate a single require'd entity across multiple files. Option (2) seems most clean to me. Unless anyone has a better idea I'll make this change. Well, option (3) is to implement option (2) first, then put all defcustoms (together with their initializers perhaps) into separate files instead of dispersing them into many smaller ones and require them from the top-level files (ob.el in your case, although I personally think that all defcustoms should be visible from the start) so that any autoloaded function invocation will see them defined with their correct values. The external interface is then taken care of by autoloading and the number of requires is minimal. So, you're suggesting moving all ob-* defcustoms into ob.el or possibly into org.el? That seems reasonable to me, although I'm hesitant to add that much code to org.el w/o a go-ahead from Bastien or a more core maintainer than myself. Specifically to the require structure of Babel. Perhaps the best solution would be to replace ob.el with a small file which requires all of the core components of Babel (e.g., ob-exp, ob-ref, ob-tangle, etc...) and move the existing ob.el to something like ob-core.el. That way the entire Babel suite may be loaded by all language specific files using a single require statement. Does that seem reasonable? Thanks, Regards, Achim. -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] info for org not found in emacs
Rainer M Krug rai...@krugs.de writes: Thanks - does anybody else has any ideas on how I can get org into info? M-x info-display-manual RET ~/src/org-mode/doc/org RET --
Re: [O] babel perl issue
Eric Schulte writes: So, you're suggesting moving all ob-* defcustoms into ob.el or possibly into org.el? That seems reasonable to me, although I'm hesitant to add that much code to org.el w/o a go-ahead from Bastien or a more core maintainer than myself. That would be a possibility, but adding them to a new file ob-customs.el and requiring that from ob.el might be less intrusive. Specifically to the require structure of Babel. Perhaps the best solution would be to replace ob.el with a small file which requires all of the core components of Babel (e.g., ob-exp, ob-ref, ob-tangle, etc...) and move the existing ob.el to something like ob-core.el. That way the entire Babel suite may be loaded by all language specific files using a single require statement. Does that seem reasonable? If you can manage to keep the require structure non-circular, that seems like a good idea. You could also turn your suggestion on the head and provide ob-core.el with just the requires (and maybe the defcustoms) you mentioned above and have all other ob-* files require it. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves
Re: [O] Linking to Thunderbird (correction)
On Mon, Dec 10, 2012 at 2:24 AM, Christoph Herzog rho...@gmail.com wrote: (org-add-link-type thunderlink 'org-thunderlink-open) (defun org-thunderlink-open (path) Opens a specified email in Thunderbird with the help of the add-on ThunderLink. (start-process myname nil thunderbird -thunderlink (concat thunderlink: path))) (provide 'org-thunderlink) wow, fantastic! thank you for this -- I just couldn't make myself love wanderlust the way I wanted to, but I desperately missed org integration-- and now I have it back! this is fantastic. (though I've just noticed that if I archive or move an email, the link breaks -- not at al surprising, but it would be fantastic to get around that somehow..)
Re: [O] including the result of a block in several places?
Eric Schulte writes: Alan Schmitt alan.schm...@polytechnique.org writes: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: In a hurry, to repeat the code: - use named blocks - use Noweb expansion Another option would be, 1. use named blocks 2. use call lines Thanks for the suggestion. I tried using a call line, but it does not allow me to include the source code again (it's great to re-run the code once more, though). Alan
Re: [O] including the result of a block in several places?
Eric Schulte writes: Alan Schmitt alan.schm...@polytechnique.org writes: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: In a hurry, to repeat the code: - use named blocks - use Noweb expansion Another option would be, 1. use named blocks 2. use call lines Thanks for the suggestion. I tried using a call line, but it does not allow me to include the source code again (it's great to re-run the code once more, though). Alan
Re: [O] including the result of a block in several places?
Alan Schmitt alan.schm...@polytechnique.org writes: Eric Schulte writes: Alan Schmitt alan.schm...@polytechnique.org writes: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: In a hurry, to repeat the code: - use named blocks - use Noweb expansion Another option would be, 1. use named blocks 2. use call lines Thanks for the suggestion. I tried using a call line, but it does not allow me to include the source code again (it's great to re-run the code once more, though). What call line did you try? All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Babel give Marker does not point anywhere first run of LaTeX export; subsequent are fine
John Hendy jw.hendy at gmail.com writes: When I open an org file the first time and export to PDF via LaTeX, I get the error Marker does not point anywhere and the LaTeX export quits. Running it again without doing anything else succeeds, and all subsequent exports work fine. What version of emacs are you running? I haven't seen it on Windows 7 (NTEmacs 24), but have on Debian stable (emacs 23). In my case, I tracked the problem down to comint.el (in the emacs lisp directory). A function in there creates a temporary buffer ( *temp*), but doesn't check to make sure the name is unique. Newer versions of comint.el don't do this. Let me know if you want further help troubleshooting this. Kind Regards, Mike Gauland
[O] [PATCH] Wrap: override default
* lisp/ob.el (org-babel-insert-result): only wrap if the :wrap value is non-null. It can be convenient to specify the :wrap property at a higher level (e.g., file or tree), rather than for each block. This patch allows you to override the propery by specifying :wrap with no argument. TINYCHANGE --- lisp/ob.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/ob.el b/lisp/ob.el index 0aba523..757bc06 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -1998,7 +1998,8 @@ code the results are extracted in the syntax of the source (setq end (point-marker)) ;; possibly wrap result (cond -((assoc :wrap (nth 2 info)) +((and (assoc :wrap (nth 2 info)) + (cdr (assoc :wrap (nth 2 info (let ((name (or (cdr (assoc :wrap (nth 2 info))) RESULTS))) (funcall wrap (concat #+BEGIN_ name) (concat #+END_ name ((member html result-params) -- 1.7.9
Re: [O] info for org not found in emacs
On 12/10/2012 12:43 PM, Eric Schulte wrote: Rainer M Krug r.m.k...@gmail.com writes: On 10/12/12 17:50, Jambunathan K wrote: Rainer M Krug rai...@krugs.de writes: Thanks - does anybody else has any ideas on how I can get org into info? M-x info-display-manual RET ~/src/org-mode/doc/org RET This definitely works - thanks. But is there a way of adding this permanentely, so that I can use the menu entry in the org menu to see the info file? The following works for me (your mileage may vary) ;; info paths (add-to-list 'Info-default-directory-list /home/eschulte/.emacs.d/src/org-mode/doc/) For my set up (see below) I have tried Eric's suggestion, except /home/Charlie/elisp/org-mode/doc/ I have also tried (expand-file-name ~/elisp/org-mode/doc/) (I found this in the FAQ) C-h v Info-default-directory-list shows that /home/Charlie/elisp/org-mode/doc loads before all other info directories. Info at the command line and C-h i from Emacs still bring up the manual for 7.9.1 even though the 7.9.2 org.doc has been downloaded. . . . . . . . . . . . . After writing the above I went back to the FAQ and added the following to my ~/.bash_profile INFOPATH=/home/Charlie/elisp/org-mode/doc/ It works for info from the command line. As a matter of fact the new org info is at the beginning of the info contents. However emacs C-h i only bring up the Org info, even though C-h v Info-default-directory-list shows that all info directories are loaded. Set up: Windows 7 Home Premium, Service Pack 1, 64 bit Cygwin 1.7.17-1 GNU Emacs 24.2.1(i686-pc-cygwin, GTK+ Version 2.24.11) of 2012-08-27 on fiona Org-mode version 7.9.2 (release_7.9.2-664-gb1f369 @ /home/Charlie/elisp/org-mode/lisp/) Charlie Millar
Re: [O] info for org not found in emacs
Charles mill...@verizon.net wrote: Info at the command line and C-h i from Emacs still bring up the manual for 7.9.1 even though the 7.9.2 org.doc has been downloaded. Have you done ``make doc'' after downloading? Nick
[O] Distinguish between blank and zero in org-mode spreadsheet
Can't find out about this anywhere. My apologies if I missed something simple or something already posted. I want a calculation to appear in column 9 if and only if column 2 is non-blank. If there is an explicit 0 in column 2, I want the calculation to appear in column 9. But if column 2 is blank, I also want column 9 to be blank. I made it work with the following elisp example: $9 = '(if (eq $2 ) (* (string-to-number @2$8) (string-to-number $1)));S But the question is, can it be made to work with a calc formula, which would be possibly a little more straightforward? All of the other columns have the same requirement, and some of the formulas are quite long, so doing many, many string-to-number functions makes things very cluttered. The problem obviously revolves around a blank cell being interpreted as zero. That's all well and good, and quite correct, but makes distinguishing blank and explicit zero more difficult.
Re: [O] Distinguish between blank and zero in org-mode spreadsheet
Bob Newell bobnew...@bobnewell.net writes: The problem obviously revolves around a blank cell being interpreted as zero. That's all well and good, and quite correct, but makes distinguishing blank and explicit zero more difficult. I don't think thats well and good, and quite correct, otherwise all the statistics packages wouldn't have the notion of 'Na' (not available) or 'NaN' (Not a Number). I was bothered by the same problem like you, and its makes life quite complicated when trying to write formulas. AFAIL calc actually has the notion of NaN, but it doesn't work in Org tables, at least when I tried (quite some time ago). This would be a great improvement, if table formulas actually could reference 'empty cells'. -- cheers, Thorsten
Re: [O] info for org not found in emacs
On 12/10/2012 5:26 PM, Nick Dokos wrote: Charles mill...@verizon.net wrote: Info at the command line and C-h i from Emacs still bring up the manual for 7.9.1 even though the 7.9.2 org.doc has been downloaded. Have you done ``make doc'' after downloading? Nick - No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2805 / Virus Database: 2634/5948 - Release Date: 12/09/12 As I recall, I have tried this, but will try again after the next download. Before doing so I'll comment out the changes I mentioned. Charlie
Re: [O] Has anybody noticed ellipses instead of the top line of the window?
On 12/6/12, Brian van den Broek brian.van.den.br...@gmail.com wrote: I have. Haven't noticed a pattern; I always get mildly concerned and often am motivated to reassure myself there's be no data loss. Never has been. In my case, it's a significant part of the total lines in the window. I wonder if anybody has any clues about why that ellipsis gets put there? Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. There is no hope without action.
Re: [O] Distinguish between blank and zero in org-mode spreadsheet
I'm making it work, and using L rather than S turns out to be better, as in this revision of my example above: $9 = '(if (eq $2 ) (* @2$8 $1));L But when I want different actions when there is an explicit number (including 0) vs. a blank cell, and if my action is at all complex, I end up with one monster like this: $3 = '(if (eq $2 ) (if ( $2 @2$8) 0 (calcFunc-max 0 (calcFunc-ilog (/ $2 @2$8) 2;L and it just seems that there oughta be a way to do this with calc and outside of elisp. I've tried all sorts of calc things without success to date. (This gets even worse when you work with ranges and need to do operations on the cells in those ranges.) I guess the upside is that with elisp you can eventually do almost anything that comes to mind, if you have enough patience.
[O] Some Experiences with org-babel-load-file
Hello! As an experiment, I moved my .emacs and all my personal packages into an org-file and now load it with 'org-babel-load-file. This works fine enough: the source code blocks can handle several thousand lines of code (for later splitting) without any quirks, tough editing in the org-file sure gets slow. A couple of observations: 1. `org-babel-load-file' doesn't seem to be in the org docu. The instructions on worg are obsolete (mentions `org-install') and needlessly complicated. Just putting (package-initialize) ;; only if you use the newest org (require 'ob-tangle) (org-babel-load-file /path/to/your/org-init-file.org) into your .emacs (no need for .emacs.d/init.el) seems to suffice. 2. Unless you are only setting variables, you want your functions to be byte-compiled. I modified `org-babel-load-file' to do that. Any reason not to? 3. While it saves some keystrokes not to have to write tangle: yes, it seems to be at odds with `org-tangle-file (though it does respect tangle: no). 4. When I babel-load my-package.org, all emacs sees is the tangled my-package.el, which of course is right. The problem, however, is that I often search for one of my functions, change it … and loose the changes the next time I start emacs (I already got zapped a couple of times). Integrating org-tangle with the emacs documentation would be tough I guess. But how about setting a read-only file locale variable to block the most stupid mistakes? Overall, very nice. Thank you. -- Florian Beck
Re: [O] Distinguish between blank and zero in org-mode spreadsheet
Bob Newell bobnew...@bobnewell.net wrote: I'm making it work, and using L rather than S turns out to be better, as in this revision of my example above: $9 = '(if (eq $2 ) (* @2$8 $1));L But when I want different actions when there is an explicit number (including 0) vs. a blank cell, and if my action is at all complex, I end up with one monster like this: $3 = '(if (eq $2 ) (if ( $2 @2$8) 0 (calcFunc-max 0 (calcFunc-ilog (/ $2 @2$8) 2;L and it just seems that there oughta be a way to do this with calc and outside of elisp. I've tried all sorts of calc things without success to date. I don't know of a calc way to do it, but I'm no calc expert. (This gets even worse when you work with ranges and need to do operations on the cells in those ranges.) I guess the upside is that with elisp you can eventually do almost anything that comes to mind, if you have enough patience. Yes indeed - but using babel, you can also organize your file so all the complexity is encapsulated: --8---cut here---start-8--- * helpers #+BEGIN_SRC elisp (defun some-func-wrapper (x y) (cond ((and (stringp x) (stringp y)) (if (or (string= x ) (string= y )) (some-func (string-to-number x) (string-to-number y)) (defun some-func (x y) (* x y)) (defun sum-of-squares-wrapper (rest x) (sum-of-squares (mapcar 'string-to-number x))) (defun sum-of-squares (l) (apply '+ (mapcar (lambda (x) (* x x)) l))) #+END_SRC #+RESULTS: : sum-of-squares * table with empty cells | a | b | c | d | e | |---+---++---+| | 1 | 1 | 1 | 6 | 14 | | 2 | 3 | 6 | 5 | 13 | | | || 3 | 9 | | 3 | 4 | 12 | 3 | 9 | #+TBLFM: $3 = '(some-func-wrapper $1 $2) :: $4 = vsum(@0$1..@$1) :: $5 = '(sum-of-squares-wrapper @0$1..@$1) --8---cut here---end---8--- C-c C-c on the code block to define the functions and C-c C-c on the table formula to recalculate the table. C-c ' on the code block allows you to edit it conveniently. My examples do not try to duplicate exactly any of your examples, but I hope they can be generalized (and fairly easily too). Nick
Re: [O] including the result of a block in several places?
Thomas S. Dye writes: Alan Schmitt alan.schm...@polytechnique.org writes: Eric Schulte writes: Alan Schmitt alan.schm...@polytechnique.org writes: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: In a hurry, to repeat the code: - use named blocks - use Noweb expansion Another option would be, 1. use named blocks 2. use call lines Thanks for the suggestion. I tried using a call line, but it does not allow me to include the source code again (it's great to re-run the code once more, though). What call line did you try? This is what I tried #+begin_src org ** Prototype-based objects #+name: object_example #+begin_src js :results code output :exports both var f = function(a) { this.x = a } f.prototype = {y : 1} var o = new f (42) console.log(o.x = + o.x + , o.y = + o.y) #+end_src Results #+results: object_example ** Prototypes resolution Some other slide ** Prototype-based objects #+call: echo(object_example) :results code output :exports both #+end_src My problem with this was twofold: the code from object_example is not repeated, and the highlighting of the results in the #+call: line is not in javascript syntax. Using a noweb approach solves both issues. Alan