Re: [O] Org-mode release 7.9
Jambunathan K writes: Package manager will download and upgrade the dependency if needed. Yes. Bundle the exporters in to say org-extras*.tar or org-devel-*.tar and then have that package depend on the right version of org-*.tar. That would work if the package was missing. I've looked and looked, but I can't see how to specify that another package must _not_ be present. It appears that package manager doesn't provide for mutual exclusivity of packages. It is possible to block certain packages from loading via package-load-list, but again I don't see how to do that during package install. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] New LaTeX exporter, link to \ref
Hello, t...@tsdye.com (Thomas S. Dye) writes: This in the org file: (fig. [[fig:old-wood]]) exports to this in the latex file: (fig. \ref{fig-old-wood}) I think the exporter is replacing the colon with a hyphen, which breaks the reference. Correct. It's done by the function `org-export-solidify-link-text'. The problem is that it isn't used consistently across the back-end. It should be fixed now. Also, is there some way to toggle a non-breaking space, e.g., (fig.~\ref{fig:old-wood})? I thought to use \tilde{}, but this wouldn't work with other back ends. You may use \nbsp{} entity. My keyboard layout allows for easy access to non-breaking spaces. So I use the following instead (_ character stands for the non-breaking space): #+begin_src emacs-lisp (defun ngz-latex-filter-nobreaks (text backend info) Ensure \_\ are properly handled in Beamer/LaTeX export. (when (memq backend '(e-beamer e-latex)) (replace-regexp-in-string _ ~ text))) (add-to-list 'org-export-filter-plain-text-functions 'ngz-latex-filter-nobreaks) #+end_src HTH, Regards, -- Nicolas Goaziou
Re: [O] babel for ditaa-eps
Luis Anaya papoan...@hotmail.com writes: Eric Schulte eric.schu...@gmx.com writes: Hi: with the attachment :) I tried your patch and it seems that the defcustom needs to be changed (at least from the way it is written in the patch. Oh yes, I used file-name-nondirectory instead of file-name-directory, and forgot the customization documentation. Here's updated version. From ef4c42ff1fba005077276458d9be70534d48a0fa Mon Sep 17 00:00:00 2001 From: Eric Schulte eric.schu...@gmx.com Date: Thu, 13 Sep 2012 08:58:31 -0600 Subject: [PATCH] adding :eps header argument to ditaa code blocks Use of this header argument will change the back-end engine from ditaa.jar to a combination of DitaaEps.jar and epstopdf. This patch is based off of ob-ditaa-eps.el sent to the mailing list by Arne Babenhauserheide (IMK). --- lisp/ob-ditaa.el | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el index 1c6c712..609bac4 100644 --- a/lisp/ob-ditaa.el +++ b/lisp/ob-ditaa.el @@ -57,6 +57,12 @@ :group 'org-babel :type 'string) +(defcustom org-ditaa-eps-jar-path + (expand-file-name DitaaEps.jar (file-name-directory org-ditaa-jar-path)) + Path to the DitaaEps.jar executable. + :group 'org-babel + :type 'string) + (defcustom org-ditaa-jar-option -jar Option for the ditaa jar file. Do not leave leading or trailing spaces in this string. @@ -76,16 +82,25 @@ This function is called by `org-babel-execute-src-block'. (cmdline (cdr (assoc :cmdline params))) (java (cdr (assoc :java params))) (in-file (org-babel-temp-file ditaa-)) + (eps (cdr (assoc :eps params))) (cmd (concat java java org-ditaa-jar-option (shell-quote-argument - (expand-file-name org-ditaa-jar-path)) + (expand-file-name + (if eps org-ditaa-eps-jar-path org-ditaa-jar-path))) cmdline (org-babel-process-file-name in-file) - (org-babel-process-file-name out-file + (org-babel-process-file-name out-file))) + (pdf-cmd (when (and (or (string= (file-name-extension out-file) pdf) + (cdr (assoc :pdf params + (concat + epstopdf + (org-babel-process-file-name (concat in-file .eps)) + -o= (org-babel-process-file-name out-file) (unless (file-exists-p org-ditaa-jar-path) (error Could not find ditaa.jar at %s org-ditaa-jar-path)) (with-temp-file in-file (insert body)) (message cmd) (shell-command cmd) +(when pdf-cmd (message pdf-cmd) (shell-command pdf-cmd)) nil)) ;; signal that output has already been written to file (defun org-babel-prep-session:ditaa (session params) -- 1.7.12 -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] Org-mode release 7.9
I vote we begin building the orgplus package daily and hosting it on orgmode.org. When the server pulls up to that revision it should automatically start to produce the orgplus archive. It is then a matter of providing the link so that it actually becomes accessible. I'm not sure what providing the link entails. Does this mean coordinating with elpa.gnu.org so that orgplus becomes available through the gnu elpa? That sounds ideal. -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] org-capture target files
I also use refile for this. I have a refile.org file where new stuff goes. If I want to refile the note/task now, instead of later, I use C-u C-u C-c c and Org goes to the last captured note/task from where I can easily refile it. -- Darlan Em 15/09/2012 18:55, Charles Philip Chan cpc...@bell.net escreveu: Kalev Takkis kalev.tak...@gmail.com writes: Hi Kalev: Is it possible to take a note in org-capture and to specify one or several files to put the message into only after the note is written? The workflow I have in mind is first pressing C-c c to take a note; selecting the type of note I'd like to take; typing the message, pasting a link etc., finishing the note, with C-c C-c and then ending up in a list of available *.org files (which could already be on display in a window next to capture window) from which I can select the file(s) where to send the note to. No, however, you can instead of finalizing with C-c C-c, use refile C-c C-w and set org-refile-use-outline-path to file. Cheers, Charles -- Absolutely nothing should be concluded from these figures except that no conclusion can be drawn from them. (By Joseph L. Brothers, Linux/PowerPC Project)
Re: [O] Org-mode release 7.9
Eric Schulte writes: I'm not sure what providing the link entails. Does this mean coordinating with elpa.gnu.org so that orgplus becomes available through the gnu elpa? That sounds ideal. I was actually thinking of using orgmode.org as the package repository for orgplus. I don't think it is a good idea to provide both org and orgplus via ELPA as long as no negative dependencies can be expressed via the package manager. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
[O] Differences between MobileOrg and MobileOrgNG
Hi, I noticed today, that there are two apps for org-mode on android, namely MobileOrg and MobileOrgNG. Is there any significant difference between them in terms of functionality and stability? Is any of them to be recommended over the other one? So far, I've been using MobileOrg and it worked for me. Regards, Laurent
Re: [O] Differences between MobileOrg and MobileOrgNG
Laurent Hoeltgen writes: Hi, I noticed today, that there are two apps for org-mode on android, namely MobileOrg and MobileOrgNG. Is there any significant difference between them in terms of functionality and stability? Is any of them to be recommended over the other one? As far as I know, MobileOrg is the original implementation where NG was forked from. When I started using org-mobile, I used the NG version, but switched to the 'original' version where development is more active. However, I really prefer the NG user interface over normal MobileOrg's. It feels more modern and better integrated to Android 4.0. (Though it's not perfect) I'd really like to improve the look of MobileOrg itself, but I really can't get myself to program in java. So far, I've been using MobileOrg and it worked for me. Regards, Laurent -- Moritz Ulrich pgpS2QBT5TzxP.pgp Description: PGP signature
Re: [O] [PATCH] Fix inconsistency in drawer handling
Nicolas == Nicolas Goaziou n.goaz...@gmail.com writes: This patch is good, but I'd rather hard-code the regexp within org-element: I'm slowly trying to make this library as low-level as possible. Do you mind changing it? Hi, thanks for the quick review. Of course I don't mind, but I'm just curious to understand the purpose, as duplicating constants seems to make room for future mistakes (even though in this case I guess we're stuck with that regexp forever :)). Do you mean you'd like to get rid of (require 'org) in org-element.el at some point ? What about (eval-when-compile '(require 'org)) then ? Or some (require 'org-const) ? Thanks, Yann. -- How often it is that the angry man rages denial of what his inner self is telling him. -- The Collected Sayings of Muad'Dib by the Princess Irulan
Re: [O] Org Camp Paris
Hi Ivan, Ivan Kanis ivan.ka...@googlemail.com writes: The last time we did this was two years ago IIRC. How about we organize it again? Is Frederic Couchet on the org mailing list? I will present some new features tomorrow eve, at the Paris Lifehacker meeting. I will discuss of the possibility of an OrgCamp with Frédéric then, I'll update the list about this. Best, -- Bastien
Re: [O] New LaTeX exporter, link to \ref
Aloha Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Hello, t...@tsdye.com (Thomas S. Dye) writes: This in the org file: (fig. [[fig:old-wood]]) exports to this in the latex file: (fig. \ref{fig-old-wood}) I think the exporter is replacing the colon with a hyphen, which breaks the reference. Correct. It's done by the function `org-export-solidify-link-text'. The problem is that it isn't used consistently across the back-end. It should be fixed now. Yes, link text is consistently changed so cross references work. Thanks. Also, is there some way to toggle a non-breaking space, e.g., (fig.~\ref{fig:old-wood})? I thought to use \tilde{}, but this wouldn't work with other back ends. You may use \nbsp{} entity. My keyboard layout allows for easy access to non-breaking spaces. So I use the following instead (_ character stands for the non-breaking space): #+begin_src emacs-lisp (defun ngz-latex-filter-nobreaks (text backend info) Ensure \_\ are properly handled in Beamer/LaTeX export. (when (memq backend '(e-beamer e-latex)) (replace-regexp-in-string _ ~ text))) (add-to-list 'org-export-filter-plain-text-functions 'ngz-latex-filter-nobreaks) #+end_src Thanks very much for the filter, which makes for an aesthetically pleasing org buffer. I changed the underscore to a non-breaking space character in the call to replace-regexp-in-string and now get tildes in my LaTeX export. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] New LaTeX exporter, link to \ref
Hi Thomas, Thomas S. Dye wrote: I use the following instead (_ character stands for the non-breaking space): #+begin_src emacs-lisp (defun ngz-latex-filter-nobreaks (text backend info) Ensure \_\ are properly handled in Beamer/LaTeX export. (when (memq backend '(e-beamer e-latex)) (replace-regexp-in-string _ ~ text))) (add-to-list 'org-export-filter-plain-text-functions 'ngz-latex-filter-nobreaks) #+end_src Thanks very much for the filter, which makes for an aesthetically pleasing org buffer. I changed the underscore to a non-breaking space character in the call to replace-regexp-in-string and now get tildes in my LaTeX export. I use this: #+begin_src emacs-lisp ;; replace space by nobreak-space where it fits well (defun my/replace-space-before-colon () Replace space by nobreak-space in front of a colon. (interactive) (cond ((eq (char-before) ?\ ) ;; normal space (backward-delete-char 1) (cond ((equal mode-name PDFLaTeX) (insert ~:)) ((equal mode-name Org) (if (and (fboundp 'org-in-src-block-p) (org-in-src-block-p)) (insert :) (insert :))) ;; FIXME Don't put a nobreak space when specifying Org ;; Babel properties (such as :exports both) (t (insert : ;; non-breaking space ;; remove nobreak-space if two colons are put one after the ;; other (for terms and definitions in Org) ((and (eq (char-before) ?\:) (eq (char-before (- (point) 1)) ?\ )) (backward-delete-char 2) (insert ::)) ;; normal space (t (insert :)) )) ;; French typography (defun my/nobreak-keys () If any, replace space in front of colons, question marks, exclamation marks, etc. to avoid line break problems. (interactive) (local-set-key : 'my/replace-space-before-colon)) (add-hook 'text-mode-hook 'my/nobreak-keys) (add-hook 'message-mode-hook 'my/nobreak-keys) #+end_src in order to have real nbsp as well in my Org buffer. They aren't translated neither to HTML nor to LaTeX (they're simply copied across), allowing for consistent view in all the buffers (source + outputs). Best regards, Seb -- Sebastien Vauban
[O] external process modifying buffers
Hi, I'd like to have my Mac iCal events appear in my agenda. I was using org-mac-iCal for this without problem, but it doesn't parse things as well as the external python ical2org program (http://www.doughellmann.com/projects/ical2org/). Right now I'm running ical2org via cron and re-generating iCal.org (redirecting stdout with ). When I try to regenerate the agenda, emacs complains: iCal.org changed on disk; really edit the buffer? (y, n, r or C-h) So... How to I get around this? Is there a flag to tell emacs (org org-mode) to not worry about a buffer changing? I don't think I can kill the buffer from the cron command because I'm not using emacs server so I don't know how to communicate with this specific emacs instance. Or should I drop cron and use emacs (run-at-time) to run this, killing the iCal.org buffer before I do so? I've tried this and have the following setup. It appears to work, but after I get split-screen and the output of the shell command. How to do this method tidier? (defun kdm/kill-iCal-buffer () (setq list (mapcar (function buffer-name) (buffer-list))) (mapc (lambda (x) (if (string-match ^iCal x) (kill-buffer x))) list)) (defun kdm/iCal () (kdm/kill-iCal-buffer) ; remove the buffer (shell-command ical2orgiCal.org) ) (run-at-time 03:30 3600 '(lambda () (kdm/iCal))) (kdm/iCal) ; testing Any other solutions or advice? Thanks, -k.
Re: [O] external process modifying buffers
Ken Mankoff mank...@gmail.com writes: Hi Ken: Right now I'm running ical2org via cron and re-generating iCal.org (redirecting stdout with ). When I try to regenerate the agenda, emacs complains: iCal.org changed on disk; really edit the buffer? (y, n, r or C-h) Set global-auto-revert-mode to t. Cheers, Charles -- linux: the choice of a GNU generation (k...@cis.ufl.edu put this on Tshirts in '93) pgpsd8fnlxaEK.pgp Description: PGP signature
Re: [O] external process modifying buffers
Thanks! That makes it much cleaner. My setup is now reduced to this: (setq global-auto-revert-mode t) (run-at-time 2 minutes 600 '(lambda () (shell-command ical2orgiCal.org))) With full paths to the ical2org binary and the iCal.org file. Thanks, -k. On Sun, Sep 16, 2012 at 2:08 PM, Charles Philip Chan cpc...@bell.net wrote: Ken Mankoff mank...@gmail.com writes: Hi Ken: Right now I'm running ical2org via cron and re-generating iCal.org (redirecting stdout with ). When I try to regenerate the agenda, emacs complains: iCal.org changed on disk; really edit the buffer? (y, n, r or C-h) Set global-auto-revert-mode to t. Cheers, Charles -- linux: the choice of a GNU generation (k...@cis.ufl.edu put this on Tshirts in '93)
[O] Buffer is read-only: #buffer *SUMO*
I get this error when I run `org-mobile-push'. Setting `debug-on-error' to t doesn't bring up an error buffer when I get this error. GNU Emacs 24.2.1 (x86_64-apple-darwin11.4.0, NS apple-appkit-1138.47) Org-mode version 7.9.1 (release_7.9.1-23-gf1f1fc) I used to get this error when I kept my agenda buffer open for a very long time. Killing the buffer fixed this. This doesn't seem to work anymore. Any ideas? Cheers, -- Moritz Ulrich pgpAhfaxduoVS.pgp Description: PGP signature
Re: [O] Buffer is read-only: #buffer *SUMO*
2012ko irailak 16an, Moritz Ulrich-ek idatzi zuen: I get this error when I run `org-mobile-push'. Setting `debug-on-error' to t doesn't bring up an error buffer when I get this error. GNU Emacs 24.2.1 (x86_64-apple-darwin11.4.0, NS apple-appkit-1138.47) Org-mode version 7.9.1 (release_7.9.1-23-gf1f1fc) I used to get this error when I kept my agenda buffer open for a very long time. Killing the buffer fixed this. This doesn't seem to work anymore. Any ideas? I had to check that it wasn’t me who wrote this message; I’ve started having the same problem in the past 24 hours. My org(-mobile) setup is pretty new, but I don’t associate the problem with any particular modification to my init files or org installation. I’ve tentatively traced the error message to the ‘org-batch-store-agenda-views’ macro, which (by virtue of being a macro and not a function) is impervious to any usual debugging techniques. The next thing I can try debugging-wise will be to convert that into a function and try stepping through it. I’ve temporarily hacked around the problem by setting ‘org-mobile-agendas’ to '(); this works for me as a stopgap since I’m not really using the agenda integration in MobileOrg. Aaron PS This is Org-mode version 7.9.1 (release_7.9.1-226-ga99402.dirty) on Emacs bzr r110057
[O] Problem with org-entities-user
Aloha all, I'm probably doing something silly here, but can't figure it out. Using the new LaTeX exporter, and with org-entities-user defined as below, this: \C14 \frac12 \Omacron exports as: \C14 \textonehalf{} \={O} Why isn't my C14 entity being exported correctly? All the best, Tom Value: ((U234 \\textsuperscript{234}U nil sup234/supU 234U 234U 234U) (Th230 \\textsuperscript{230}Th nil sup230/supTh 230Th 230Th 230Th) (C14 \\textsuperscript{14}C nil 14C 14C 14C) (Umacron \\={U} nil #0362 U U Ū) (Omacron \\={O} nil #0332 O O Ō) (Imacron \\={I} nil #0298 I I Ī) (Emacron \\={E} nil #0274 E E Ē) (Amacron \\={A} nil #0256 A A Ā) (umacron \\={u} nil #0363 u u ū) (omacron \\={o} nil #0333 o o ō) (imacron \\={i} nil #0299 i i ī) (emacron \\={e} nil #0275 e e ē) (amacron \\={a} nil #0257 a a ā) (space \\ nil)) -- T.S. Dye Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com
Re: [O] external process modifying buffers
Ken Mankoff mank...@gmail.com wrote: Thanks! That makes it much cleaner. My setup is now reduced to this: (setq global-auto-revert-mode t) (run-at-time 2 minutes 600 '(lambda () (shell-command ical2orgiCal.org))) With full paths to the ical2org binary and the iCal.org file. Thanks, -k. Two points: o the doc says , | Setting this variable directly does not take effect; | either customize it (see the info node `Easy Customization') | or call the function `global-auto-revert-mode'. ` o I've pointed out some possible gotcha's with setting global-auto-revert-mode before - see http://thread.gmane.org/gmane.emacs.orgmode/58053. Nick On Sun, Sep 16, 2012 at 2:08 PM, Charles Philip Chan cpc...@bell.net wrote: Ken Mankoff mank...@gmail.com writes: Hi Ken: Right now I'm running ical2org via cron and re-generating iCal.org (redirecting stdout with ). When I try to regenerate the agenda, emacs complains: iCal.org changed on disk; really edit the buffer? (y, n, r or C-h) Set global-auto-revert-mode to t. Cheers, Charles -- linux: the choice of a GNU generation (k...@cis.ufl.edu put this on Tshirts in '93)
Re: [O] Buffer is read-only: #buffer *SUMO*
OK, I’ve tracked this down. I added a function to ‘org-agenda-finalize-hook’ which makes modifications to the agenda buffer (viz. removing the 'mouse-highlight text properties). At line 3441 of org-agenda.el, in the ‘org-agenda-finalize’ function, this hook is run outside of any (let ((inhibit-read-only t)) ...). This gives the error. Only some types of agenda buffers are set to be read-only – e.g. ‘org-todo-list’ sets read-only at l. 4418 of org-agenda.el. I think ‘org-agenda-finalize-hook’ should be run with inhibit-read-only bound to t, to let the hook modify the agenda buffer in any case. But otherwise, it should be added to the hook’s documentation that any changes to the agenda buffer could be turned into an error by a read-only setting. -- Aaron Ecay