Re: [O] [BUG?] Strange message in minibuffer while exporting into HTML
Hi, ** Vladimir Lomov [2013-10-11 13:11:11 +0900]: > Hello, > please consider this sample Org document (ex-call.org): [...] > I have typed above document in Emacs run as > emacs -Q -l min-org.el --eval "(require 'ox-html)" ex-call.org I forgot to include minimal configuration 'min-org.el': --- 8< --- (add-to-list 'load-path "/usr/share/emacs/site-lisp/org") --- 8< --- --- WBR, Vladimir Lomov -- Cat, n.: Lapwarmer with built-in buzzer.
[O] [BUG?] Strange message in minibuffer while exporting into HTML
Hello, please consider this sample Org document (ex-call.org): 8< #+TITLE: Example with CALL directive #+AUTHOR: Vladimir Lomov #+OPTIONS: num:nil * This is first section Recently I faced with a strange message in minibuffer: #+BEGIN_EXAMPLE Marker points into wrong buffer: # #+END_EXAMPLE when exporting the Org document into HTML. At first I was puzzled what causes this message in that particular Org document, while rest my Org documents are exported to HTML just fine. After a while I tried to strip down that document to figure out what may cause that message. And seems that problem is in CALL strings. In that particural document I have several CALL directive, commenting out them (just added a ~#~ at beginning of a line with a space after it) allows me to export that document into HTML. The purpose of this example document to ensure that even simple CALL line could cause such behaviour. This is CALL directive, it calls function defined below #+CALL: simple-func() Even without evaluation of this directive exporting into HTML fails with above message. Commenting that directive make it possible to export into HTML. Another attempt: #+CALL: simple-func(name="Vladimir Lomov") * The simple Emacs Lisp function This simple Emacs Lisp function has to be called by CALL directive: #+NAME: simple-func #+BEGIN_SRC emacs-lisp :var name="My name" (format "[You told me:] %S" name) #+END_SRC 8< My system: - Archlinux x86_64, gcc 4.8.1, make 4.0 - emacs: GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.0) of 2013-10-10 on smoon4 (compile from bzr trunk, revno 114606) - org-mode: Org-mode version 8.2.1 (release_8.2.1-77-g8aaf3c @ /usr/share/emacs/site-lisp/org/) I have typed above document in Emacs run as emacs -Q -l min-org.el --eval "(require 'ox-html)" ex-call.org Is this really a bug or my misunderstanding of 'CALL' directive usage? --- WBR, Vladimir Lomov -- Being overloaded is the sign of a true Debian maintainer. -- JHM on #Debian
[O] using %(sexp) in capture templates
i am trying to use %(org-mac-outlook-message-insert-selected) in a capture template to create a todo entry from an email selected in outlook on mac os x. i was expecting that the function will get executed when the template is called and enter a link to the email but seems to return nothing. the function works when used outside of template. any ideas how i can begin to debug this or if i should be doing anything differently? cheers! --manish
Re: [O] org-grep, and problems
Suvayu Ali writes: > No matter what I search for, I get 0 results! My org-directory points > to the correct location: ~/org. Not sure what is wrong. Annoying! I just tried resetting org-grep-directories to nil here, as a way to force the default of org-directory, and it works well for me. Would you happen to be using Windows? I only tried it on Linux. It surely depend on "find" and "grep" being system commands. (And I should document that.) François
Re: [O] Needing help on org-gnus + LaTeX export -
Joseph Vidal-Rosset writes: > 2013/10/1 Nick Dokos > > This all seems screwed-up in various mysterious and tangled ways. > Is > there somebody with emacs experience nearby who could help you? If > not, > I would go back to the beginning: start with a default emacs > installation with *no* customizations at all, then add latest > org-mode > and the bare minimum of customizations so that it is chosen in > preference to the org-mode that comes with emacs. Then test it > carefully > and thoroughly before you try adding other customizations and > org-mime. > Add things one at a time and keep testing. > > Thanks a lot Nick, it is a good advice. > > I succeeded to get an html file ! It still does not work for LateX but > I need more time. > > Unfortunately org-mime-htmlize makes still problems: > > org-mime-htmlize: Symbol's function definition is void: > org-region-active-p > > I do not understand what it means. I think it really means "Did you take Nick's advice?" :) The main part of Nick's advice was maybe not perfectly clear for a beginner; when he says "with no customizations", he means "rename your .emacs file to some other name so you don't lose it, and then re-start from a new, blank .emacs file - and don't put in your new .emacs file anything that you don't fully understand." I've caused problems for myself before, by finding something interesting that sounds like a good idea, adding it into my .emacs without fully understanding what it does, and later running into mysterious problems. -- David R
Re: [O] org-grep, and problems
On Thu, Oct 10, 2013 at 06:54:06PM +0200, Suvayu Ali wrote: > On Thu, Oct 10, 2013 at 11:50:47AM -0400, François Pinard wrote: > > > > I recently rewrote my Emacs "org-grep" function, which surely nobody > > remember, as when we discussed it here, it was years ago! :-) > > Looks interesting. I'll check it out. No matter what I search for, I get 0 results! My org-directory points to the correct location: ~/org. Not sure what is wrong. -- Suvayu Open source is the future. It sets us free.
[O] freemind export
I'm just getting started with org-mode, and I seem to be having an issue with freemind export. None of the structural elements ( http://orgmode.org/manual/Easy-Templates.html) seem to be recognized when exported to freemind (except html). I'm interested in example mode so my pasted text files show up as plain text. Am I doing something wrong, or is this a limitation? P.S., I'm working in windows. Thanks Brian
Re: [O] Full org-mode on unrooted Android
Scot, I haven't notice much impact on the battery life but, given all the services/demons typical ubuntu system launches, there must be some consequences for the battery for sure. I do leave it running in background (by not exiting terminal). I also noticed some keybindings that don't work (M- and M-RET in particular) but their ESC- counterparts work fine. It looks like that might be a problem of the Android Terminal. Regards, Alex On Thu, Oct 10, 2013 at 11:13 AM, Scot Becker wrote: > Alex, > > That also sounds like a good way to carry Emacs/org with your, if the > battery life hit isn't too big, (is it?) and if it's possible to keep the > system running in the background (do you do ths?) > > Emacs for Android didn't work for me at all, and seems not to be currently > maintained. > > After some more experiments I see that although Zhaolin works pretty well > with an external keyboard, the terminal emulator seems to have more trouble > with the soft keyboard popping up and down. I do have press ESC then Enter > to get a new org heading. ALT+Enter doesn't seem to work. > > Scot > > > > > > On Wed, Oct 9, 2013 at 6:57 PM, Alexander Vorobiev > wrote: >> >> There is also emacs for Android >> https://play.google.com/store/apps/details?id=com.zielm.emacs but >> after trying it and playing with some other ports of unix >> applications, I decided to bit the bullet and install full Ubuntu on >> my Galaxy Note 8 using >> >> https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid. >> The tablet/phone needs to be rooted though (the installer needs to be >> able to create and mount loopback device for the Linux disk image) but >> for the popular devices it is not difficult at all (but You will >> probably lose your warranty though). >> >> Now I have my regular emacs setup with org-mode, ess, AucTeX, tramp, >> etc, and all the tools I am used to - ssh, R, gcc, etc. I use it in >> console mode using Android terminal, regular Ubuntu GUI is also >> available through VNC client. There is no dual-boot or virtualization >> involved, all it does is chroot in the terminal session, Android's >> Linux kernel is standard enough to make Ubuntu happy. >> >> Regards, >> Alex >> >> >> >> On Wed, Oct 9, 2013 at 3:07 AM, Ian Barton wrote: >> > On 08/10/13 11:36, Scot Becker wrote: >> >> >> >> Just a quick note to say that it's possible to get a full >> >> Emacs+org-mode >> >> on (unrooted) Android using an app called 'zshaolin'. You can either >> >> download the app from the Google Play store for approx $3 or download >> >> the toolchain and source from their website and compile it yourself >> >> (which I haven't tried). >> >> >> >> https://play.google.com/store/apps/details?id=org.dyne.zshaolin&hl=en >> >> >> >> http://www.dyne.org/software/zshaolin/ >> >> (for source, follow links to their FTP site, about 2/3 down the page) >> >> >> >> Emacs is version 24.1.50. >> >> >> >> The following needs to be added to the .zshrc for org-mode to work: >> >> >> >> export TMPDIR=${HOME}/tmp >> >> >> > Thanks for sharing. I have been using emacs via ssh on my Nexus 7. >> > However, >> > obviously this only works if I can get an Internet connection. So far >> > this >> > setup looks as though it will meet all my simple mobile needs, which are >> > just to edit my org files in native Emacs. >> > >> > I see that git is also built in. I haven't tested it yet, but if it >> > works I >> > can just pull and push my org files from my repos, rather than copying >> > them >> > to the Nexus manually. >> > >> > Ian. >> > >> > >> > >> >
Re: [O] How to collect status of all checkboxes in lower subtrees
Rainer Stengele writes: > Hi! > > I have a headline with several sub headlines and sub items in lists. > Scattered all over I have checkboxes. > I would very much like to collect and see the overall status of unchecked > checkboxes. Not sure you can do what you want. However, if you change the checkbox lists to headlines with TODOs, what you want is possible: #+begin_src org ,* project [2/6] ,** [1/3] subproject 1 ,*** TODO todo 1 ,*** DONE todo 2 ,*** TODO todo 3 ,** [1/3] sub subproject 1 ,*** TODO todo 1 ,*** TODO todo 2 ,*** DONE todo 3 #+end_src -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.1-76-g5afd5d
Re: [O] org-grep, and problems
On Thu, Oct 10, 2013 at 11:50:47AM -0400, François Pinard wrote: > > I recently rewrote my Emacs "org-grep" function, which surely nobody > remember, as when we discussed it here, it was years ago! :-) Looks interesting. I'll check it out. > P.S. What is proper English: "nobody remember" or "nobody remembers"? > "no one remembers" maybe? -- Suvayu Open source is the future. It sets us free.
[O] Random underscores in html-export
Hi List, I see (somehow random) underscores in html-exports, but no hint whatsoever in the original Org file where they might come from. e.g. this ,-- | ... and they offer an ... `-- might be exported to ,-- | ... and_they offer an ... `-- and there seems to be nothing special between 'and' and 'they' in the original text. Any ideas? PS I only noticed this when calling the exporter via emacsclient, not via standalone emacs, but I possibly overlooked it before. -- cheers, Thorsten
Re: [O] Full org-mode on unrooted Android
Alex, That also sounds like a good way to carry Emacs/org with your, if the battery life hit isn't too big, (is it?) and if it's possible to keep the system running in the background (do you do ths?) Emacs for Android didn't work for me at all, and seems not to be currently maintained. After some more experiments I see that although Zhaolin works pretty well with an external keyboard, the terminal emulator seems to have more trouble with the soft keyboard popping up and down. I do have press ESC then Enter to get a new org heading. ALT+Enter doesn't seem to work. Scot On Wed, Oct 9, 2013 at 6:57 PM, Alexander Vorobiev < alexander.vorob...@gmail.com> wrote: > There is also emacs for Android > https://play.google.com/store/apps/details?id=com.zielm.emacs but > after trying it and playing with some other ports of unix > applications, I decided to bit the bullet and install full Ubuntu on > my Galaxy Note 8 using > https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid > . > The tablet/phone needs to be rooted though (the installer needs to be > able to create and mount loopback device for the Linux disk image) but > for the popular devices it is not difficult at all (but You will > probably lose your warranty though). > > Now I have my regular emacs setup with org-mode, ess, AucTeX, tramp, > etc, and all the tools I am used to - ssh, R, gcc, etc. I use it in > console mode using Android terminal, regular Ubuntu GUI is also > available through VNC client. There is no dual-boot or virtualization > involved, all it does is chroot in the terminal session, Android's > Linux kernel is standard enough to make Ubuntu happy. > > Regards, > Alex > > > > On Wed, Oct 9, 2013 at 3:07 AM, Ian Barton wrote: > > On 08/10/13 11:36, Scot Becker wrote: > >> > >> Just a quick note to say that it's possible to get a full Emacs+org-mode > >> on (unrooted) Android using an app called 'zshaolin'. You can either > >> download the app from the Google Play store for approx $3 or download > >> the toolchain and source from their website and compile it yourself > >> (which I haven't tried). > >> > >> https://play.google.com/store/apps/details?id=org.dyne.zshaolin&hl=en > >> > >> http://www.dyne.org/software/zshaolin/ > >> (for source, follow links to their FTP site, about 2/3 down the page) > >> > >> Emacs is version 24.1.50. > >> > >> The following needs to be added to the .zshrc for org-mode to work: > >> > >> export TMPDIR=${HOME}/tmp > >> > > Thanks for sharing. I have been using emacs via ssh on my Nexus 7. > However, > > obviously this only works if I can get an Internet connection. So far > this > > setup looks as though it will meet all my simple mobile needs, which are > > just to edit my org files in native Emacs. > > > > I see that git is also built in. I haven't tested it yet, but if it > works I > > can just pull and push my org files from my repos, rather than copying > them > > to the Nexus manually. > > > > Ian. > > > > > > > >
[O] org-grep, and problems
Hi, Org people. I recently rewrote my Emacs "org-grep" function, which surely nobody remember, as when we discussed it here, it was years ago! :-) The new writing gives nicer results, so I made it available as: https://github.com/pinard/org-grep However, I'm not satisfied. Maybe someone would be kind enough to explore and understand some of the problems I see, at least before I succeed in doing it myself. The two main problems are: - (save-current-buffer ...) or (save-excursion ...) fail to bring the cursor back into the current window, seemingly whenever an Org link gets followed within the Lisp form. - org-reveal leaves the cursor line collapsed. I can live with these two problems unsolved, as it only requires a few more manipulations as a user. They would be nicer solved, of course. Keep happy, all! François P.S. What is proper English: "nobody remember" or "nobody remembers"?
[O] How to collect status of all checkboxes in lower subtrees
Hi! I have a headline with several sub headlines and sub items in lists. Scattered all over I have checkboxes. I would very much like to collect and see the overall status of unchecked checkboxes. Example: * project ** subproject 1 - [ ] todo 1 - [X] todo 2 - [ ] todo 3 *** sub subproject 1 - [ ] todo 1 - [ ] todo 2 - [X] todo 3 ... I would like to see * project [2/6] ... Is there a way to achieve this? I already know about org-hierarchical-todo-statistics and org-hierarchical-checkbox-statistics. Thanks, Rainer
Re: [O] Computations on properties
Hi Thierry On Thu, Oct 10, 2013 at 8:39 AM, Thierry Pellé wrote: > After some tests : > ==> the idea of Michael >> >> * Mean Calculation >> :PROPERTIES: >> :VAL1: 5 >> :VAL2: 10 >> :COEF: 10 >> :END: >> >> Mean Calculation = call_mean() =5.454545454545454= >> >> * code :noexport: >> #+NAME: mean >> #+HEADER: :var val1='nil >> #+HEADER: :var val2='nil >> #+HEADER: :var coef='nil >> #+BEGIN_SRC emacs-lisp :exports none >> (setq >> val1 (string-to-number (org-entry-get >> org-babel-current-src-block-location "VAL1" t)) >> val2 (string-to-number (org-entry-get >> org-babel-current-src-block-location "VAL2" t)) >> coef (string-to-number (org-entry-get >> org-babel-current-src-block-location "COEF" t))) >> (/ (+ (* val1 coef) val2) (+ coef 1.0)) >> #+END_SRC >> > > give an error ( "Symbol's value as variable is void: > org-babel-current-src-block-location") This I would expect from an org-version older than 8.1. Check C-h v org-babel-current-src-block-location M-x org-version But if you did not change the version there might be some problem before the first loading of ob-core.el. If you can reproduce it, maybe with a fresh started Emacs, I hope that someone more familiar with autoload etc. than me can help. > ==> After some tests, it works in changing the "setq" part as > val1 (or val1 (string-to-number > (org-entry-get org-babel-current-src-block-location "VAL1" t) > )) This does still not deal with all cases. As you seem to dive deeper please forget my simplified version posted earlier and see testing/examples/babel.org. > I can't figure out why... See the attached patch that adds comments to testing/examples/babel.org for the two "or" and more. CCed Eric Schulte who I would like to ask to review and apply the patch. > ==> I will try with python... Start from the shell example in testing/examples/babel.org Did you check if you need the t or nil for org-entry-get? Michael From 0b7caf6adfcab1a6ad2b1aa330e7bd15c3be33d3 Mon Sep 17 00:00:00 2001 From: Michael Brand Date: Thu, 10 Oct 2013 11:02:19 +0200 Subject: [PATCH] Babel: add comments to ERT for reading properties * testing/examples/babel.org (use case of reading entry properties): Add comments to function definitions. --- testing/examples/babel.org | 8 1 file changed, 8 insertions(+) diff --git a/testing/examples/babel.org b/testing/examples/babel.org index b1f1702..5c71834 100644 --- a/testing/examples/babel.org +++ b/testing/examples/babel.org @@ -413,6 +413,9 @@ Note: Just export of a property can be done with a macro: {{{property(a)}}}. function definition +comments for ":var": +- The "or" is to deal with a property not present. +- The t is to get property inheritance. #+NAME: src_block_location_shell #+HEADER: :var a=(or (org-entry-get org-babel-current-src-block-location "a" t) "0") #+HEADER: :var b=(or (org-entry-get org-babel-current-src-block-location "b" t) "0") @@ -433,6 +436,11 @@ Note: Just export of a property can be done with a macro: {{{property(a)}}}. #+HEADER: :var e='nil #+BEGIN_SRC emacs-lisp :exports results (setq + ;; - The first `or' together with ":var ='nil' is to check for + ;; a value bound from an optional call argument, in the examples + ;; here: c=5, e=6 + ;; - The second `or' is to deal with a property not present + ;; - The t is to get property inheritance a (or a (string-to-number (or (org-entry-get org-babel-current-src-block-location "a" t) "0"))) -- 1.7.12.4 (Apple Git-37)
[O] [BUG?] Compilation failure with Emacs 24.3.50.1 (trunk) on 'ox-publish' (Multiple args to , are not supported)
Hello, topic title states my problem completely, some details: - I use emacs compiled from bzr trunk (revno 114606) on my system: Archlinux x86_64 with gcc 4.8.1 and make 4.0; - org-mode: 8.2.1-86-gbe3dad. This is excert from make log: #+BEGIN_EXAMPLE ... Compiling /home/vladimir/buildpkg/emacs-org-mode/src/org-mode/lisp/ox-publish.el... In toplevel form: ox-publish.el:887:1:Error: Multiple args to , are not supported: (\, (\` (when (quote (\, force)) (org-publish-remove-all-timestamps))) (\` (let ((org-publish-use-timestamps-flag (if (quote (\, force)) nil (\, org-publish-use-timestamps-flag (org-publish-projects (quote (\, org-publish-project-alist)) ... #+END_EXAMPLE Full log of make work is attached. I don't know the reason of this problem because the last change to 'ox-publish.el' file was at Sep. 27 but I could swear I was able to compile it on Oct. 6. Nevertheless, if I comment line 896: #+BEGIN_EXAMPLE `(when ',force (org-publish-remove-all-timestamps)) #+END_EXAMPLE then I'm able to compile org-mode successfully. --- WBR, Vladimir Lomov -- To get something done, a committee should consist of no more than three persons, two of them absent. == = Invoke "make help" for a synopsis of make targets. = = Created a default local.mk template. = = Setting "oldorg" as the default target.= = Please adapt local.mk to your local setup! = == Loading /home/vladimir/buildpkg/emacs-org-mode/src/org-mode/lisp/org-compat.el (source)... Loading /home/vladimir/buildpkg/emacs-org-mode/src/org-mode/mk/org-fixup.el (source)... Saving file /home/vladimir/buildpkg/emacs-org-mode/src/org-mode/local.mk... Wrote /home/vladimir/buildpkg/emacs-org-mode/src/org-mode/local.mk make -C doc clean; make -C lisp clean; make[1]: Entering directory '/home/vladimir/buildpkg/emacs-org-mode/src/org-mode/doc' rm -f org *.pdf *.html *_letter.tex org-version.inc \ *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs \ *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps make[1]: Leaving directory '/home/vladimir/buildpkg/emacs-org-mode/src/org-mode/doc' make[1]: Entering directory '/home/vladimir/buildpkg/emacs-org-mode/src/org-mode/lisp' rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc org-install.elc rm -f *.elc make[1]: Leaving directory '/home/vladimir/buildpkg/emacs-org-mode/src/org-mode/lisp' make -C lisp compile make[1]: Entering directory '/home/vladimir/buildpkg/emacs-org-mode/src/org-mode/lisp' rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc org-install.elc org-version: 8.2.1 (release_8.2.1-86-gbe3dad) Loading /home/vladimir/buildpkg/emacs-org-mode/src/org-mode/lisp/org-compat.el (source)... Loading /home/vladimir/buildpkg/emacs-org-mode/src/org-mode/mk/org-fixup.el (source)... Saving file /home/vladimir/buildpkg/emacs-org-mode/src/org-mode/lisp/org-version.el... Wrote /home/vladimir/buildpkg/emacs-org-mode/src/org-mode/lisp/org-version.el org-loaddefs: 8.2.1 (release_8.2.1-86-gbe3dad) Loading /home/vladimir/buildpkg/emacs-org-mode/src/org-mode/lisp/org-compat.el (source)... Loading /home/vladimir/buildpkg/emacs-org-mode/src/org-mode/mk/org-fixup.el (source)... Generating autoloads for ob-C.el... Generating autoloads for ob-C.el...done Generating autoloads for ob-R.el... Generating autoloads for ob-R.el...done Generating autoloads for ob-abc.el... Generating autoloads for ob-abc.el...done Generating autoloads for ob-asymptote.el... Generating autoloads for ob-asymptote.el...done Generating autoloads for ob-awk.el... Generating autoloads for ob-awk.el...done Generating autoloads for ob-calc.el... Generating autoloads for ob-calc.el...done Generating autoloads for ob-clojure.el... Generating autoloads for ob-clojure.el...done Generating autoloads for ob-comint.el... Generating autoloads for ob-comint.el...done Making generated-autoload-file local to *autoload-file* while let-bound! Generating autoloads for ob-core.el... Generating autoloads for ob-core.el...done Generating autoloads for ob-css.el... Generating autoloads for ob-css.el...done Generating autoloads for ob-ditaa.el... Generating autoloads for ob-ditaa.el...done Generating autoloads for ob-dot.el... Generating autoloads for ob-dot.el...done Generating autoloads for ob-emacs-lisp.el... Generating autoloads for ob-emacs-lisp.el...done Generating autoloads for ob-eval.el... Generating autoloads for ob-eval.el...done Generating autoloads for ob-exp.el... Generating autoloads for ob-exp.el...done Generating autoloads for ob-fortran.el... Generating autoloads for ob-fortran.el...done Generating autoloads for ob-gnuplot.el... Generating autoloads for ob-gnuplot.el...done Generating autoloads for ob-haskell.el... Generating autoloads for ob-haskell.el...done Generating autoloads for ob-io.el... Generating autoloads for ob-io.el...done Generating autoloads