[O] Re: [FIXED] Re: :latex-listings publishing option not used; minted + beamer incompatibility?
On Mon, Feb 14, 2011 at 3:15 AM, Dan Davison wrote: > Hsiu-Khuern Tang writes: > >> Hi Dan, >> >> * On Wed 09:09AM, 20 Oct 2010, Dan Davison (davi...@stats.ox.ac.uk) wrote: >>> Hsiu-Khuern Tang writes: >>> > BTW, has anyone used minted with beamer? I get errors like >>> > Runaway argument? >>> > int main(int argc, char **argv) { \ETC. >>> > ! Paragraph ended before \FV@BeginScanning was complete. > > This problem is now fixed in Org. The problem was that frames using > minted needed to be marked as fragile; Org was only doing this for > verbatim and lstlisting. > ... I can confirm this fix. Thanks, Dan! -- Best, Hsiu-Khuern.
Re: [O] Version 7.5: C-c C-t fails with "args out of range"
On Tue, Mar 8, 2011 at 22:55, Carsten Dominik wrote: > > On 9.3.2011, at 06:49, David Maus wrote: > >> At Tue, 8 Mar 2011 15:08:57 -0800, >> Josh Berry wrote: >>> >>> Hi list, >>> >>> I just upgraded from org-mode 7.4 to 7.5, and I can't set or change >>> TODO states at all with C-c C-t now; an args-out-of-range error gets >>> raised. I've tried doing a "make clean" in my org-mode checkout, to >>> no avail. >>> >>> I'm running GNU emacs 23.2.1 on Mac OSX (in Aqua), installed via >>> Homebrew. Debugger backtrace is pasted below. >>> >>> [[BTW, please forgive me if this isn't a well-formed bug report; I'm >>> relatively new to Emacs and don't know Elisp. Just let me know if you >>> need anything else.]] >> >> Just a fast comment: Couldn't this be a problem with the macro >> `org-with-wide-buffer'? >> >> #+begin_src emacs-lisp >> (defmacro org-with-wide-buffer (&rest body) >> "Execute body while temporarily widening the buffer." >> `(let ((beg (point-min)) (end (point-max)) (pos (point))) >> (prog2 >> (widen) >> ,@body >> (narrow-to-region beg end) >> (goto-char pos >> #+end_src > > This macro is indeed not written in a stable way and will > fail of the buffer gets modified with @body. > But Emacs already has save-restriction, so there is no > need to re-invent the wheel: > > (defmacro org-with-wide-buffer (&rest body) > "Execute body while temporarily widening the buffer." > `(save-excursion > (save-restriction > (widen) > ,@body))) I just hacked your version of org-with-wide-buffer into my org-macs.el file, and it appears to fix the problem. Thanks! -- Josh
Re: [O] Version 7.5: C-c C-t fails with "args out of range"
On 9.3.2011, at 06:49, David Maus wrote: > At Tue, 8 Mar 2011 15:08:57 -0800, > Josh Berry wrote: >> >> Hi list, >> >> I just upgraded from org-mode 7.4 to 7.5, and I can't set or change >> TODO states at all with C-c C-t now; an args-out-of-range error gets >> raised. I've tried doing a "make clean" in my org-mode checkout, to >> no avail. >> >> I'm running GNU emacs 23.2.1 on Mac OSX (in Aqua), installed via >> Homebrew. Debugger backtrace is pasted below. >> >> [[BTW, please forgive me if this isn't a well-formed bug report; I'm >> relatively new to Emacs and don't know Elisp. Just let me know if you >> need anything else.]] > > Just a fast comment: Couldn't this be a problem with the macro > `org-with-wide-buffer'? > > #+begin_src emacs-lisp > (defmacro org-with-wide-buffer (&rest body) > "Execute body while temporarily widening the buffer." > `(let ((beg (point-min)) (end (point-max)) (pos (point))) > (prog2 >(widen) >,@body > (narrow-to-region beg end) > (goto-char pos > #+end_src This macro is indeed not written in a stable way and will fail of the buffer gets modified with @body. But Emacs already has save-restriction, so there is no need to re-invent the wheel: (defmacro org-with-wide-buffer (&rest body) "Execute body while temporarily widening the buffer." `(save-excursion (save-restriction (widen) ,@body))) Cheers - Carsten > > What if BODY inserts or deletes characters inside the narrowed region? > In this case the upper boundary of the region is no longer (point-max) > before executing body. Thus the buffer might be narrowed to the wrong > region after executing body. No, wait: If BODY inserts or deletes > something inside OR above the region the boundaries of the originally > narrowed region change, don't they? > > This would explain the error: Buffer is narrowed to a region that > happens to end at eob. BODY deletes something inside the region, eob > is decreased by the number of characters deleted. The call to > `narrow-to-region' tries to narrow to a region with an upper boundary > greater than eob -- and that's not possible. > > Solution? Not sure. The function must take into account that BODY > modifies buffer in a way that changes buffer in a way that requires > adjustment of the region boundaries OR even in a way that removes the > part of buffer that contained the region. > > So something like this would fix it: Store markers of beginning and > end of region. IIRC they will move with inserts and deletes. After > executing body narrow to position of these markers if they exist. If > marker for point-max is gone, use eob. If both are gone... Don't > narrow at all? > > Best, > > -- David > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber dmj...@jabber.org > Email. dm...@ictsoc.de
Re: [O] latex fragments, dvipng and mathjax
On Wed, Mar 9, 2011 at 07:43, Nick Dokos wrote: > Erik Iverson wrote: >> On 03/08/2011 02:16 PM, Nick Dokos wrote: >> > [snip] >> > That forces HTML-CSS output and from what I can see on the mathjax site, >> > that should improve things - but it doesn't for me, so I'm still not out >> > of the woods. Maybe MathJax doesn't know where to get the TeX fonts? >> >> Do the examples on mathjax.org look nice to you? And which browser >> do you happen to be using for viewing? > > Yes - the Cauchy integral formula (as well as the Gauss divergence > theorem further down) on > > http://www.mathjax.org/demos/mathml-samples/ > > looks fine when HTML-CSS rendering is chosen. When MathML > rendering is chosen, the integral sign is too small. That's > what motivated the mathml:nil effort above, but it didn't pan > out. But even in MathML rendering, the integral sign, even though > small, looks better than the one I posted. > > I'm using firefox 3.6.14 on Ubuntu 10.10. FWIW, same here. Firefox 3.6.15 on Windows 7. Given that both pages specify the MathJax_Math font yet only mathjax.org actually looks like it uses it, you’re probably right about MathJax having trouble finding the fonts on yours. I tried a couple other browsers. IE8 aborts the script after an error on “Line 1, char 6” (I think that’s because of the nest of CDATA, HTML comments and JS comments), while Chrome seems to be using the right font. So I guess this is a Firefox thing. The FAQ mentions Firefox’s same-origin policy in the context of image fonts being used instead of web fonts.[1] Seems unlikely to be the culprit in this case though. *shrugs* Hope this helps narrow it down a little. Aankhen [1]: http://www.mathjax.org/resources/faqs/#image-fonts
Re: [O] Version 7.5: C-c C-t fails with "args out of range"
At Tue, 8 Mar 2011 15:08:57 -0800, Josh Berry wrote: > > Hi list, > > I just upgraded from org-mode 7.4 to 7.5, and I can't set or change > TODO states at all with C-c C-t now; an args-out-of-range error gets > raised. I've tried doing a "make clean" in my org-mode checkout, to > no avail. > > I'm running GNU emacs 23.2.1 on Mac OSX (in Aqua), installed via > Homebrew. Debugger backtrace is pasted below. > > [[BTW, please forgive me if this isn't a well-formed bug report; I'm > relatively new to Emacs and don't know Elisp. Just let me know if you > need anything else.]] Just a fast comment: Couldn't this be a problem with the macro `org-with-wide-buffer'? #+begin_src emacs-lisp (defmacro org-with-wide-buffer (&rest body) "Execute body while temporarily widening the buffer." `(let ((beg (point-min)) (end (point-max)) (pos (point))) (prog2 (widen) ,@body (narrow-to-region beg end) (goto-char pos #+end_src What if BODY inserts or deletes characters inside the narrowed region? In this case the upper boundary of the region is no longer (point-max) before executing body. Thus the buffer might be narrowed to the wrong region after executing body. No, wait: If BODY inserts or deletes something inside OR above the region the boundaries of the originally narrowed region change, don't they? This would explain the error: Buffer is narrowed to a region that happens to end at eob. BODY deletes something inside the region, eob is decreased by the number of characters deleted. The call to `narrow-to-region' tries to narrow to a region with an upper boundary greater than eob -- and that's not possible. Solution? Not sure. The function must take into account that BODY modifies buffer in a way that changes buffer in a way that requires adjustment of the region boundaries OR even in a way that removes the part of buffer that contained the region. So something like this would fix it: Store markers of beginning and end of region. IIRC they will move with inserts and deletes. After executing body narrow to position of these markers if they exist. If marker for point-max is gone, use eob. If both are gone... Don't narrow at all? Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp9RBVX42CDK.pgp Description: PGP signature
Re: [O] Version 7.5: org-export-html-preamble no longer supports function
See http://article.gmane.org/gmane.emacs.orgmode/37360/match=preamble On Tue, Mar 8, 2011 at 9:12 PM, Bill Jackson wrote: > In version 7.4, org-export-html-preamble and org-export-html-postamble could > be set to the name of a function that was passed an option plist. This > appears to no longer be supported in 7.5. > > I used this functionality when publishing to generate a preamble and > postamble to integrate the generated pages into my website, which included a > common page layout, header bar, and footer. I was able to define options in > org-export-inbuffer-options-extra, define values for these options in a .org > file, and incorporate them into the preamble via the option plist passed to > the org-export-html-preamble function. > > Is there another way in version 7.5 that I can generate custom preambles and > postambles incorporating variables from each file at the time of publishing? > > > With much thanks, > Bill > > -- Jeffrey Horn http://www.failuretorefrain.com/jeff/
Re: [O] Version 7.5: C-c C-t fails with "args out of range"
On Tue, Mar 8, 2011 at 18:14, Nick Dokos wrote: > Josh Berry wrote: > >> On Tue, Mar 8, 2011 at 15:25, Nick Dokos wrote: >> > Josh Berry wrote: >> > >> >> I just upgraded from org-mode 7.4 to 7.5, and I can't set or change >> >> TODO states at all with C-c C-t now; an args-out-of-range error gets >> >> raised. =C2=A0I've tried doing a "make clean" in my org-mode checkout, t= >> o >> >> no avail. >> ... >> >> Can you please advise me on what (if anything) I should do next? >> >> Thanks in advance for your help! >> > >> > See the thread >> > >> > =C2=A0 =C2=A0http://thread.gmane.org/gmane.emacs.orgmode/38966 >> > >> > It seems all you have to do is "git pull; make clean; make" >> > and restart your emacs. >> >> Unfortunately this doesn't help. I did as you suggested -- switched >> back to master, then did git pull; make clean; make all, and I can >> still reproduce the problem. >> > > ... and did you restart your emacs? Yes. :P :) -- Josh
[O] Version 7.5: org-export-html-preamble no longer supports function
In version 7.4, org-export-html-preamble and org-export-html-postamble could be set to the name of a function that was passed an option plist. This appears to no longer be supported in 7.5. I used this functionality when publishing to generate a preamble and postamble to integrate the generated pages into my website, which included a common page layout, header bar, and footer. I was able to define options in org-export-inbuffer-options-extra, define values for these options in a .org file, and incorporate them into the preamble via the option plist passed to the org-export-html-preamble function. Is there another way in version 7.5 that I can generate custom preambles and postambles incorporating variables from each file at the time of publishing? With much thanks, Bill
Re: [O] latex fragments, dvipng and mathjax
Erik Iverson wrote: > On 03/08/2011 02:16 PM, Nick Dokos wrote: > > [following up on my post...] > > > > One thing that should have helped is to set the mathml option to nil: > > > > --8<---cut here---start->8--- > > #+MATHJAX: align:"left" mathml:nil > > path:"/home/nick/lib/mathjax/mathjax-MathJax-20e0cf6/MathJax.js" > > --8<---cut here---end--->8--- > > > > That forces HTML-CSS output and from what I can see on the mathjax site, > > that should improve things - but it doesn't for me, so I'm still not out > > of the woods. Maybe MathJax doesn't know where to get the TeX fonts? > > Do the examples on mathjax.org look nice to you? And which browser > do you happen to be using for viewing? > > Yes - the Cauchy integral formula (as well as the Gauss divergence theorem further down) on http://www.mathjax.org/demos/mathml-samples/ looks fine when HTML-CSS rendering is chosen. When MathML rendering is chosen, the integral sign is too small. That's what motivated the mathml:nil effort above, but it didn't pan out. But even in MathML rendering, the integral sign, even though small, looks better than the one I posted. I'm using firefox 3.6.14 on Ubuntu 10.10. Thanks, Nick
Re: [O] Version 7.5: C-c C-t fails with "args out of range"
Josh Berry wrote: > On Tue, Mar 8, 2011 at 15:25, Nick Dokos wrote: > > Josh Berry wrote: > > > >> I just upgraded from org-mode 7.4 to 7.5, and I can't set or change > >> TODO states at all with C-c C-t now; an args-out-of-range error gets > >> raised. =C2=A0I've tried doing a "make clean" in my org-mode checkout, t= > o > >> no avail. > ... > >> Can you please advise me on what (if anything) I should do next? > >> Thanks in advance for your help! > > > > See the thread > > > > =C2=A0 =C2=A0http://thread.gmane.org/gmane.emacs.orgmode/38966 > > > > It seems all you have to do is "git pull; make clean; make" > > and restart your emacs. > > Unfortunately this doesn't help. I did as you suggested -- switched > back to master, then did git pull; make clean; make all, and I can > still reproduce the problem. > ... and did you restart your emacs? Nick
Re: [O] Version 7.5: C-c C-t fails with "args out of range"
On Tue, Mar 8, 2011 at 15:25, Nick Dokos wrote: > Josh Berry wrote: > >> I just upgraded from org-mode 7.4 to 7.5, and I can't set or change >> TODO states at all with C-c C-t now; an args-out-of-range error gets >> raised. I've tried doing a "make clean" in my org-mode checkout, to >> no avail. ... >> Can you please advise me on what (if anything) I should do next? >> Thanks in advance for your help! > > See the thread > > http://thread.gmane.org/gmane.emacs.orgmode/38966 > > It seems all you have to do is "git pull; make clean; make" > and restart your emacs. Unfortunately this doesn't help. I did as you suggested -- switched back to master, then did git pull; make clean; make all, and I can still reproduce the problem. I'm on commit 4090006ab124dd10698f21f1ee44c913b5faf990. Thanks, Josh
[O] Re: Strange indentation bevaviour: cannot find out why
Hi Nicolas, I just did a quick test and it looks good! Thanks! Mit freundlichen Grüßen / Best Regards Rainer Stengele __|___ | Dipl. Inf. (Univ.) Rainer Stengele | Technical Control - System Administration | | email: rainer.steng...@diplan.de | voice/fax: ++49-9131-7778-85/88 | WWW : http://www.diplan.de | | diplan GmbH | Wetterkreuz 27 | 91058 Erlangen, Germany Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Am 08.03.2011 23:59, schrieb Nicolas: > Hello, > > Rainer Stengele writes: > >> I tested with a minimal emacs config and the "bug" was gone. >> So I know it is in my settings, >> but I could not find the reason in my configuration. >> The behaviour I see appeared only a few weeks or months ago. >> Has anybody an idea? > This is not the fault of your configuration. This is due to > indent-tabs-mode not being nil. I thought I had fixed this bug some time > ago, but it looks like I was wrong. > > I have pushed a (hopefully) final fix for this. > > > Regards, >
Re: [O] latex fragments, dvipng and mathjax
On 03/08/2011 02:16 PM, Nick Dokos wrote: [following up on my post...] One thing that should have helped is to set the mathml option to nil: --8<---cut here---start->8--- #+MATHJAX: align:"left" mathml:nil path:"/home/nick/lib/mathjax/mathjax-MathJax-20e0cf6/MathJax.js" --8<---cut here---end--->8--- That forces HTML-CSS output and from what I can see on the mathjax site, that should improve things - but it doesn't for me, so I'm still not out of the woods. Maybe MathJax doesn't know where to get the TeX fonts? Do the examples on mathjax.org look nice to you? And which browser do you happen to be using for viewing?
Re: [O] Version 7.5: C-c C-t fails with "args out of range"
Josh Berry wrote: > I just upgraded from org-mode 7.4 to 7.5, and I can't set or change > TODO states at all with C-c C-t now; an args-out-of-range error gets > raised. I've tried doing a "make clean" in my org-mode checkout, to > no avail. > > I'm running GNU emacs 23.2.1 on Mac OSX (in Aqua), installed via > Homebrew. Debugger backtrace is pasted below. > > [[BTW, please forgive me if this isn't a well-formed bug report; I'm > relatively new to Emacs and don't know Elisp. Just let me know if you > need anything else.]] > > -- > Debugger entered--Lisp error: (args-out-of-range 1 4913) > narrow-to-region(1 4913) > (prog2 (widen) (run-hook-with-args-until-failure (quote > org-blocker-hook) change-plist) (narrow-to-region beg end) (goto-char > pos)) > (let ((beg ...) (end ...) (pos ...)) (prog2 (widen) > (run-hook-with-args-until-failure ... change-plist) (narrow-to-region > beg end) (goto-char pos))) > (org-with-wide-buffer (run-hook-with-args-until-failure (quote > org-blocker-hook) change-plist)) > ... > > Can you please advise me on what (if anything) I should do next? > Thanks in advance for your help! See the thread http://thread.gmane.org/gmane.emacs.orgmode/38966 It seems all you have to do is "git pull; make clean; make" and restart your emacs. Nick
[O] Re: Strange indentation bevaviour: cannot find out why
Hello, Rainer Stengele writes: > I tested with a minimal emacs config and the "bug" was gone. > So I know it is in my settings, > but I could not find the reason in my configuration. > The behaviour I see appeared only a few weeks or months ago. > Has anybody an idea? This is not the fault of your configuration. This is due to indent-tabs-mode not being nil. I thought I had fixed this bug some time ago, but it looks like I was wrong. I have pushed a (hopefully) final fix for this. Regards, -- Nicolas
[O] Version 7.5: C-c C-t fails with "args out of range"
Hi list, I just upgraded from org-mode 7.4 to 7.5, and I can't set or change TODO states at all with C-c C-t now; an args-out-of-range error gets raised. I've tried doing a "make clean" in my org-mode checkout, to no avail. I'm running GNU emacs 23.2.1 on Mac OSX (in Aqua), installed via Homebrew. Debugger backtrace is pasted below. [[BTW, please forgive me if this isn't a well-formed bug report; I'm relatively new to Emacs and don't know Elisp. Just let me know if you need anything else.]] -- Debugger entered--Lisp error: (args-out-of-range 1 4913) narrow-to-region(1 4913) (prog2 (widen) (run-hook-with-args-until-failure (quote org-blocker-hook) change-plist) (narrow-to-region beg end) (goto-char pos)) (let ((beg ...) (end ...) (pos ...)) (prog2 (widen) (run-hook-with-args-until-failure ... change-plist) (narrow-to-region beg end) (goto-char pos))) (org-with-wide-buffer (run-hook-with-args-until-failure (quote org-blocker-hook) change-plist)) (progn (org-with-wide-buffer (run-hook-with-args-until-failure ... change-plist))) (unwind-protect (progn (org-with-wide-buffer ...)) (set-match-data save-match-data-internal (quote evaporate))) (let ((save-match-data-internal ...)) (unwind-protect (progn ...) (set-match-data save-match-data-internal ...))) (save-match-data (org-with-wide-buffer (run-hook-with-args-until-failure ... change-plist))) (save-excursion (save-match-data (org-with-wide-buffer ...))) (if (save-excursion (save-match-data ...)) nil (if (interactive-p) (error "TODO state change from %s to %s blocked" this state) (message "TODO state change from %s to %s blocked" this state) (throw ... nil))) (unless (save-excursion (save-match-data ...)) (if (interactive-p) (error "TODO state change from %s to %s blocked" this state) (message "TODO state change from %s to %s blocked" this state) (throw ... nil))) (progn (setq org-last-todo-state-is-todo (not ...)) (unless (save-excursion ...) (if ... ... ... ...))) (if org-blocker-hook (progn (setq org-last-todo-state-is-todo ...) (unless ... ...))) (when org-blocker-hook (setq org-last-todo-state-is-todo (not ...)) (unless (save-excursion ...) (if ... ... ... ...))) (let* ((match-data ...) (startpos ...) (logging ...) (org-log-done org-log-done) (org-log-repeat org-log-repeat) (org-todo-log-states org-todo-log-states) (this ...) (hl-pos ...) (head ...) (ass ...) (interpret ...) (done-word ...) (final-done-word ...) (last-state ...) (completion-ignore-case t) (member ...) (tail ...) (state ...) (state ...) (next ...) (change-plist ...) dolog now-done-p) (when org-blocker-hook (setq org-last-todo-state-is-todo ...) (unless ... ...)) (store-match-data match-data) (replace-match next t t) (unless (pos-visible-in-window-p hl-pos) (message "TODO state changed to %s" ...)) (unless head (setq head ... ass ... interpret ... done-word ... final-done-word ...)) (when (memq arg ...) (message "Keyword-Set %d/%d: %s" ... ... ...)) (setq org-last-todo-state-is-todo (not ...)) (setq now-done-p (and ... ...)) (and logging (org-local-logging logging)) (when (and ... ... ...) (setq dolog ...) (if ... ...) (when ... ...) (when ... ... ...) (when ... ...)) (org-todo-trigger-tag-changes state) (and org-auto-align-tags (not org-setting-tags) (org-set-tags nil t)) (when org-provide-todo-statistics (org-update-parent-todo-statistics)) (run-hooks (quote org-after-todo-state-change-hook)) (if (and arg ...) (setq head ...)) (put-text-property (point-at-bol) (point-at-eol) (quote org-todo-head) head) (when now-done-p (when ... ...) (org-auto-repeat-maybe state)) (if (and ... ... ... ...) (progn ... ...)) (when org-trigger-hook (save-excursion ...))) (catch (quote exit) (org-back-to-heading t) (if (looking-at outline-regexp) (goto-char ...)) (or (looking-at ...) (looking-at " *")) (let* (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... dolog now-done-p) (when org-blocker-hook ... ...) (store-match-data match-data) (replace-match next t t) (unless ... ...) (unless head ...) (when ... ...) (setq org-last-todo-state-is-todo ...) (setq now-done-p ...) (and logging ...) (when ... ... ... ... ... ...) (org-todo-trigger-tag-changes state) (and org-auto-align-tags ... ...) (when org-provide-todo-statistics ...) (run-hooks ...) (if ... ...) (put-text-property ... ... ... head) (when now-done-p ... ...) (if ... ...) (when org-trigger-hook ...))) (save-excursion (catch (quote exit) (org-back-to-heading t) (if ... ...) (or ... ...) (let* ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...))) (let ((org-blocker-hook org-blocker-hook) (case-fold-search nil)) (when (equal arg ...) (setq arg nil org-blocker-hook nil)) (when (and org-blocker-hook ...) (setq org-blocker-hook nil)) (save-excursion (catch ... ... ... ... ...))) org-todo(nil) call-interactively(org-todo nil nil) -- Can you please advise me on what (if anything) I should do next? Thanks in advance for your help! -- Jos
Re: [O] latex fragments, dvipng and mathjax
Another advantage of MathJax: 1) It degrades nicely in browsers without MathML (all webkit browsers) 2) Equations are still copy-and-pasteable into Word, if you're into that sort of thing. > That forces HTML-CSS output and from what I can see on the mathjax site, > that should improve things - but it doesn't for me, so I'm still not out > of the woods. Maybe MathJax doesn't know where to get the TeX fonts? I thought MathJax used custom fonts, which is the bulk of the 100 MB installation, since each glyph is its own image. I could be wrong about this. -- Jeffrey Horn http://www.failuretorefrain.com/jeff/
Re: [O] [Org-contacts] 3 2 1 go?
> Just say out loud what you'd like to do, I'll try to answer or write > code. :) Maybe you shouldn't have offered this. :) I've got one question and two feature requests: Q1) links to contacts Is there a common way to create links to contacts? F1) csv export When writing bulk letters with LaTeX, all I need is a file with the recipients addresses in some predefined order. So it would be nice to have some export option where I can choose the properties and contacts I'd like to export and get a csv file. F2) pgp keys I just started using gnus so I'm not quite familiar with it. According to [1] BBDB can be used to map recipients to pgp keys. So it would be great if org-contacts can support this in any way. I have no plans to use this at the moment, so no need to hurry. [1] http://www.emacswiki.org/emacs/GnusPGG#toc8 -- Michael
Re: [O] [Org-contacts] 3 2 1 go?
> For example, some people might want to cut the address part in > (STREET,ZIPCODE,CITY,COUNTRY) whereas I think it's a burden, I just put > a LOCATION property with all the address in it. In the end, it does not > matter for org-contacts. I use the splitted address version. And therefore I have one problem which is however more general. I would like to group some properties. So that I can have a properties group WORK and another group HOME. * Friends ** Dave Null :PROPERTIES: :MOBILE: +49-1234-456789 :GROUP-WORK: :EMAIL: d...@work.com :LOCATION:… :LANDLINE:+49-1234-567890 :GROUP-END: :GROUP-HOME: :EMAIL: d...@home.com :LOCATION:… :LANDLINE:+49-1234-987650 :GROUP-END: :END: I think this is not possible with the current design of the org properties. Things like adding to persons /Dave Null (work)/ and /Dave Null (home)/ or using WORK-EMAIL, HOME-EMAIL, … are not what I would prefer. My (at the moment best) idea to support grouping is: * Friends ** Dave Null :PROPERTIES: :CONTACT:t :MOBILE: +49-1234-456789 :END: *** work :PROPERTIES: :EMAIL: d...@work.com :LOCATION:… :LANDLINE:+49-1234-567890 :END: *** home :PROPERTIES: :EMAIL: d...@home.com :LOCATION:… :LANDLINE:+49-1234-987650 :END: This would use all properties which are set directly as property of the person as default and all others according to the requested group. The absence of such groups is imho currently the main difference between org-contacts and vcard/… -- Michael
[O] regexp link on windows problem
Hello, While writing custom function to set regexp search string for c/c++ code I stumbled upon a backslash to slash translation problem. The `org-insert-link' function destroys my regexp by changing all backslashes to slashes. (I construct the regexp like this: (concat token1 "[ \\t]*" token2)) It happens only under windows, under linux it is ok. The culprit is the `expand-file-name' function, eg. for a C source line - a_struct.a_field = 1; on linux: (expand-file-name "~/file.h::/a_struct[ \\t]*\\.[ \\t]*a_field[ \\t]*=[ \\t]*1[ \\t]*;/")) becomes: /home/user/file.h::/a_struct[ \t]*\.[ \t]*a_field[ \t]*=[ \t]*1[ \t]*;/ on windows: d:/Profiles/user/Application Data/file.h::/a_struct[ /t]*/.[ /t]*a_field[ /t]*=[ /t]*1[ /t]*;/ Is this an expected behavior or a bug? Can you recommend a solution or a workaround? regards, Rafal
Fwd: [O] Viewing Agenda in MobileOrg
I mistakenly sent this to only Greg. Cheers David Cross d...@davidcross.us www.davidcross.us Begin forwarded message: > From: David Cross > Date: March 8, 2011 7:56:47 AM CST > To: Greg Troxel > Subject: Re: [O] Viewing Agenda in MobileOrg > > I am using "org-mobile-push" but I see that there is no agenda.org file in my > Dropbox folder (on the server). Is there a setting I am missing? > > David Cross > d.cr...@tcu.edu > www.davidcross.us > > > > > On Mar 8, 2011, at 7:34 AM, Greg Troxel wrote: > >> >> I have just set up MobileOrg to work with my new iPhone, and have the >> following problem: I can view the contents of my various .org files, >> but "Agenda Views" appears to be empty. I have the weekly agenda view >> open when I push the .org files to Dropbox. I am afraid I am missing >> something very basic, but can't for the life of me figure out what it >> is! >> >> Are you using "org-mobile-push"? That creates "agendas.org" and puts it >> on the server. You should look in your webdav space and see if it is >> there and sensible. My agendas.org file is 150KB and starts >> >> #+BEGIN_SRC org >> #+READONLY >> * Week-agenda (W10-W11):KEYS=a TITLE: Agenda >> ** Tuesday 8 March 2011 >> *** TODO [#A] a task >> #+END_SRC org >> >> >
[O] org-contacts from bbdb: a starting solution
I finally decided to take a wack at a bbdb to org-contacts converter. I'm attaching the file below. It should prompt for a file and insert all your existing bbdb records into the file using the formats and fields that I decided was appropriate ;-) (require 'bbdb-to-org-contacts) M-x bbdb-to-org-contacts Now... I've been using bbdb for a very very long time. That means that I have a lot of records. That means that this was a good chance to find out how well org-contacts scales. The sad news is that it doesn't. Once I point org-contacts at my newly generated file containing 831 records it make org-contacts really really slow down. I wouldn't care about the normal record searching process for just looking something up, but it makes loading a message in gnus unusable (5 second delay per message). So... I need to filter down to "current ones I need to keep" or we need to optimize the contacts a bit to cache file points where a record for a given email address is stored or something. -- Wes Hardaker My Pictures: http://capturedonearth.com/ My Thoughts: http://pontifications.hardakers.net/ (require 'bbdb) (require 'bbdb-com) (defvar bbdb-to-org-contacts-record-prefix "***") (defvar bbdb-to-org-contacts-record-blanks " ") (defun bbdb-to-org-contacts (to-file) "outputs a org-contacts file" (interactive (list (read-file-name "Save in file: "))) (let* ((filename (expand-file-name to-file)) (records (bbdb-records))) (find-file filename) (while records (bbdb-record-to-org-record (car records)) (setq records (cdr records))) )) (defun bbdb-record-to-org-record (record) "converts a single record" (let* ( (name(bbdb-record-name record)) (company (bbdb-record-company record)) (net (bbdb-record-net record)) (aka (bbdb-record-aka record)) (phone (bbdb-record-phones record)) (address (bbdb-record-addresses record)) (notes (bbdb-record-notes record)) ) (insert (format "%s %s\n" bbdb-to-org-contacts-record-prefix name)) (insert (format "%s :PROPERTIES:\n" bbdb-to-org-contacts-record-blanks)) (when aka (insert (format "%s :AKA:\t%s\n" bbdb-to-org-contacts-record-blanks (mapconcat (function (lambda(str) str)) aka ", " (when net (insert (format "%s :EMAIL:\t%s\n" bbdb-to-org-contacts-record-blanks (mapconcat (function (lambda(str) str)) net " " (when company (insert (format "%s :COMPANY:\t%s\n" bbdb-to-org-contacts-record-blanks company))) (when phone (insert (mapconcat (function (lambda(rec) (if (stringp (elt rec 1)) (format "%s :PHONE_%s:\t%s" bbdb-to-org-contacts-record-blanks (upcase (elt rec 0)) (elt rec 1)) (let ((len (length rec)) (count 2) (output (format "%d" (elt rec 1 (while (< count (1- len)) (setq output (concat output (format "-%d" (elt rec count (setq count (1+ count))) (format "%s :PHONE_%s:\t%s" bbdb-to-org-contacts-record-blanks (upcase (elt rec 0)) output) phone "\n")) (insert "\n")) (when notes (insert (format "%s :NOTES:\t%s\n" bbdb-to-org-contacts-record-blanks notes))) (insert (format "%s :END:\n" bbdb-to-org-contacts-record-blanks)) )) (provide 'bbdb-to-org-contacts)
Re: [O] latex fragments, dvipng and mathjax
[following up on my post...] One thing that should have helped is to set the mathml option to nil: --8<---cut here---start->8--- #+MATHJAX: align:"left" mathml:nil path:"/home/nick/lib/mathjax/mathjax-MathJax-20e0cf6/MathJax.js" --8<---cut here---end--->8--- That forces HTML-CSS output and from what I can see on the mathjax site, that should improve things - but it doesn't for me, so I'm still not out of the woods. Maybe MathJax doesn't know where to get the TeX fonts? Nick
[O] Strange indentation bevaviour: cannot find out why
Hi all, I have a very strange indentation behaviour which bugs me a lot and I cannot find the reason why. Having this text block at the beginning of an org file ** headline - [ ] * [ ] + enter C-S-RETURN with point here: - [ ] and entering C-S-RETURN with point indicated I get: ** headline - [ ] * [ ] + enter C-S-RETURN with point here: + [ ] - [ ] which is perfect! Having (note the heading level is now 3 instead of 2 before, same is true for all higher heading levels) *** headline - [ ] * [ ] + enter C-S-RETURN with point here: - [ ] also entering M-RETURN with point indicated I get: *** headline - [ ] * [ ] + enter C-S-RETURN with point here: + [ ] - [ ] entering C-RETURN with point indicated I get: *** headline - [ ] * [ ] + enter C-S-RETURN with point here: + - [ ] I tested with a minimal emacs config and the "bug" was gone. So I know it is in my settings, but I could not find the reason in my configuration. The behaviour I see appeared only a few weeks or months ago. Has anybody an idea? I run Org-mode version 7.5 (release_7.5.42.g09066e). Same behaviour was in 7.4. -- Rainer
Re: [O] Re: org-table formulas with missing values
suvayu ali writes: > Since recently calc code block support was added to babel, why not use > that to process your table instead of table formulae? Wouldn't you > expect it would be easier to deal with NaN and its likes directly with > calc source compared to formulae? I'm going to try that. I just did my first little trial using org-tables as a spread-sheet and immediatly hit the problem of how to deal with empty cells in column formulars. Therefore I thought that must be a very common issue with some easy well-known solution. Thorsten
Re: [O] [Use ?] Capture and Refile behavior
On 2011-03-08, Samuel Wales wrote: > That is what I do and it works perfectly, with no blank line issues. There might actually be some. Have not narrowed it down, however. -- AIDS 2.0 is here now: http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html I support the Whittemore-Peterson Institute (WPI) === I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.
[O] latex fragments, dvipng and mathjax
I had not played with latex fragments recently (= ever since MathJax became the default back in August 2010 and probably from some time before that), so based on my previous dvipng-based knowledge, I made an ill-informed comment on IRC. Nicolas Goaziou corrected me and pointed out that the default is now MathJax, so I went off and tried things out. I tried with MathJax from the orgmode site, but I also downloaded the stable 1.0.x version (and the new otf fonts) and the beta 1.1 version (which already includes the new otf fonts). I tried it on the following org file (commenting/uncommenting options lines for the various runs: --8<---cut here---start->8--- #+OPTIONS: LaTeX:t ##+OPTIONS: LaTeX:dvipng ##+MATHJAX: align:"left" mathml:t ##+MATHJAX: align:"left" mathml:t path:"/home/nick/lib/mathjax/MathJax/MathJax.js" #+MATHJAX: align:"left" mathml:t path:"/home/nick/lib/mathjax/mathjax-MathJax-20e0cf6/MathJax.js" * Euler \[ \int_0^\infty e^{-x^2} dx = {{\sqrt{\pi}} \over {2}} \] \[ e^{i\pi} = -1 \] --8<---cut here---end--->8--- I've put the results of two runs, one with MathJax and one with dvipng, up at http://free.linux.hp.com/~nick/euler/euler-mj.html http://free.linux.hp.com/~nick/euler/euler-dvipng.html The different versions of MathJax all looked the same. The one I put up is the one that gets MathJax from the publicly available orgmode site, so if you just want to look at it, you don't have to install anything. There are two obvious differences: o the MathJax version has the equations centered, whereas the dvipng version has them flush left. I have not investigated why that is. o the dvipng version looks much better to my eye than the MathJax version. Of course, MathJax has advantages: it's scalable, so when you go to higher magnifications, you don't get the jaggies that the png images suffer. But I was wondering whether there is any way I can get prettier output from MathJax. Thanks, Nick
[O] Re: Problem opening links that span more than one line
Matt Lundin writes: > I find that I cannot open or edit bracket links that span more than one > line. Correction: This should read "more than three lines". - Matt
[O] Problem opening links that span more than one line
I find that I cannot open or edit bracket links that span more than one line. For example, org-capture often generates link with a long description. If the link is part of a filled paragraph, the link will often span 5 to 10 lines. Even though it properly fontifies and exports such links, org-insert-link and org-open-at-point cannot handle them. The problematic lines are in org.el: In org-insert-link: 8808: ((org-in-regexp org-bracket-link-regexp 1) In org-open-at-point: 9215: (when (org-in-regexp org-bracket-link-regexp 1) Would it be possible to set a saner default value than 1 here? As it stands org-mode only looks for the link across a total of 3 lines. A parameter of 5, for instance, would allow links to span 10 lines. Best, Matt
Re: [O] a small contribution
Nice Filippo. I think this kind of integration stuff is really interesting. I was thinking about something similar as well. Thanks for sharing. On Mon, Mar 7, 2011 at 1:17 PM, Filippo A. Salustri wrote: > Hi all, > I use geektool on my Mac to put useful things on my desktop. (Rainmeter is > the equivalent program for windoze.) > Anyways, I would like have some todo items show up in geektool, but emacs > eats cpu, aquamacs doesn't do --batch stuff well, and I hate wasting cycles. > So I wrote a small perl program that digests every file in my org directory > looking for todos. It runs blindingly fast compared to emacs, and it does > what I need it to. > I've included the script at the end of this msg, should anyone else find it > interesting. > One should consider changing the values of $orgdir and $re. > And (maybe) the location of perl. > It parses :CATEGORY: properties and prints that out (or the file name if > there's no category) for each task with a keyword matching one in $re. > It's not perfect, I know. But it does work for me. > Cheers. > Fil > #!/usr/bin/perl > $orgdir = '/Users/fil/Dropbox/org'; > $re = 'ACTIVE|REVIEW'; > @files = (); > $line = ''; > $category = ''; > # get files > opendir D, $orgdir; > @files = grep { /\.org$/ } readdir(D); > closedir D; > for my $file (@files) { > $category = $file; > $category =~ s/\.org$//; > open F, "$orgdir/$file"; > while ($line = ) { > if ( $line =~ m/:CATEGORY: *(.+)$/ ) { $category = $1; } > if ( $line =~ m/^\*+ +($re) +(.+)$/ ) { > printf "%-13s: %s\n", $category, $2; > } > } > close F; > } > > -- > Filippo A. Salustri, Ph.D., P.Eng. > Mechanical and Industrial Engineering > Ryerson University > 350 Victoria St, Toronto, ON > M5B 2K3, Canada > Tel: 416/979-5000 ext 7749 > Fax: 416/979-5265 > Email: salus...@ryerson.ca > http://deseng.ryerson.ca/~fil/ >
Re: [O] [Bug] body-only Export Option Adds Extra html Tags.
On 08/03/11 14:30, Manuel Giraud wrote: Manuel Giraud writes: Ian Barton writes: So it looks like SHA: da8dc7bba72613131f97a28f1c4a912b8d85d7cc Rewrite the handling of HTML preamble/postamble caused the problem. I'll have a look at that. Is the and with no opening a normal behaviour for the :body-only option ? Ok this one was easy. Here's a patch that correct the body-only behaviour. Thanks, I have tested the patch and can confirm it fixes the problem. Ian.
Re: [O] [Use ?] Capture and Refile behavior
Quick answer. I think you can work around this by refiling however you want, perhaps with your own wrapper command or a rebinding, then simply C-c C-c the blank capture buffer. For example, activate the region. (I heard that C-c C-w in capture is a special thing that only works on one thing to be refiled. This is be in the manual either way.) That is what I do and it works perfectly, with no blank line issues. If this is the issue, maybe the special thing in capture is more of a newcomer trap than it's worth for experts? Samuel -- AIDS 2.0 is here now: http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html I support the Whittemore-Peterson Institute (WPI) === I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.
Re: [O] goto does not accept remote references for local targets
Tom gmail.com> writes: > The problem is if I'm in todo.org then goto accepts local targets > only by their name (without the (todo.org) qualifier), so it > accepts the target only as "test", but not as "test (todo.org)". > BTW, in org 7.5 this "test (todo.org)" is offered as the default target location, since it was the last goto target and it's quite convenient. The only problem is that due to the above mentioned problem it throws the error "Invalid target location" if I press Enter on this offered default target and I'm already in todo.org. The correct fix for that is not the removal of the (todo.org) specifier from the target in this case, but to make it accept the "test (todo.org)" format even if I'm already in todo.org
[O] goto does not accept remote references for local targets
I use the goto interface of org-refile a lot to navigate in my org files and I often run into the annoying behavior that goto insists on using local target format when jumping to a header in the current buffer. For example, let's assume I have a todo.org file in which there's a heading called 'test'. If I'm in an other org file then I can jump to this heading easily with completion. Org completes this target as "test (todo.org)". After jumping to this target I move somewhere else in todo.org and then I want to go this "test" target again. I want to do this by invoking goto and simply selecting the previous history element "test (todo.org)" from its history and pressing Enter. I don't want type and complete it again, because the target is already in the history. The problem is if I'm in todo.org then goto accepts local targets only by their name (without the (todo.org) qualifier), so it accepts the target only as "test", but not as "test (todo.org)". The two format should be equivalent in all contexts in my opinion and goto should accept both of them for the convenience of the user, regardless of which file is current at the moment.
[O] [PATCH] Adding known properties
Hello, I found out about (at least) 2 missing "known" properties. This patch adds them to the list. --8<---cut here---start->8--- diff --git a/lisp/org.el b/lisp/org.el index 92f2406..9205719 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13402,7 +13402,8 @@ but in some other way.") '("ARCHIVE" "CATEGORY" "SUMMARY" "DESCRIPTION" "CUSTOM_ID" "LOCATION" "LOGGING" "COLUMNS" "VISIBILITY" "TABLE_EXPORT_FORMAT" "TABLE_EXPORT_FILE" -"EXPORT_FILE_NAME" "EXPORT_TITLE" "EXPORT_AUTHOR" "EXPORT_DATE" +"EXPORT_FILE_NAME" "EXPORT_TITLE" "EXPORT_TEXT" "EXPORT_AUTHOR" +"EXPORT_DATE" "EXPORT_OPTIONS" "ORDERED" "NOBLOCKING" "COOKIE_DATA" "LOG_INTO_DRAWER" "REPEAT_TO_STATE" "CLOCK_MODELINE_TOTAL" "STYLE" "HTML_CONTAINER_CLASS") "Some properties that are used by Org-mode for various purposes. --8<---cut here---end--->8--- Best regards, Seb -- Sébastien Vauban
[O] [Use ?] Capture and Refile behavior
I have a capture template set to file to refile.org (my default container for TODO tasks, notes (private, work, journal, blog) or other things. That way I can file them out to the right spot later . . especially if I don't have the file or location setup or am not sure which location I am going to handle that item under. However, at times I use C-c C-w and refile them directly to the location I want them . . . Capture worked different than I am used to remember working. So, I used C-c c last night to put a TODO in my agenda for my english homework * TODO English Reading Assignments:ENGL101: ** TODO Reading assignment 1 DEADLINE:<2011-03-14 19:05> ** TODO Reading assignment 2 DEADLINE:<2011-03-14 19:05> ** TODO Reding assignment 3 DEADLINE:<2011-03-14 19:05> When I type C-c C-w to refile it into Homework (engl101.org) it files ** TODO Reding assignment 3 DEADLINE:<2011-03-14 19:05> the last assignement, to the right location but the * TODO English Reading Assignments:ENGL101: ** TODO Reading assignment 1 DEADLINE:<2011-03-14 19:05> ** TODO Reading assignment 2 DEADLINE:<2011-03-14 19:05> goes into the refile.org (the default target for the capture template) In other words, it is only sending, like it is reading from the bottom up until it hits a headline and then refiling that part but throwing the rest to the default? Odd behavior as at times I will catch assignments and make multiple TODO's (same headline level or lower) in a remember and now that I am on capture unless I have a TODO for each bucket their isn't a way to pick the destination.. Or at times I use it for class notes and make a hiearchy out of that and have the heiarchy it refiled in a date-tree. Thoughts? or am I just goofing something up? Matt
Re: [O] Abstract
Hi Andrea, I usually use org-special-blocks with the the `#+begin_abstract` block, as follows: #+begin_src org #+begin_abstract This is the abstract. Write a summary here. #+end_abstract #+end_src This has the additional nice side-benefit of wrapping the paragraph in a div with class "abstract" on HTML export. HTH -- Jeffrey Horn http://www.failuretorefrain.com/jeff/
Re: [O] Re: [REGRESSION] org-html.el (targets)
Manuel Giraud writes: > Aankhen writes: > >> On Tue, Mar 8, 2011 at 02:07, Bernt Hansen wrote: >>> Thanks for the patch. I still see validation errors after applying this >>> patch. I've posted the original test file at >>> http://www.norang.ca/tmp/foo.html and you can click on the validation >>> link at the bottom to see the remaining errors. >> >> This one seemed easy to fix, so I thought I’d butt in. :-) Hope the >> format of the patch is right (I’m using hg-git). > > Thanks. Modulo line breakage this patch applies and Jambunathan's test > file now validates XHTML 1.0 > > Here's the 2 patch that solve this: These patches make nxhtml mode report that the result is now valid. Thanks! Regards, -- Bernt
Re: [O] [Bug] body-only Export Option Adds Extra html Tags.
Manuel Giraud writes: > Ian Barton writes: > >> So it looks like SHA: >> >> da8dc7bba72613131f97a28f1c4a912b8d85d7cc Rewrite the handling of HTML >> preamble/postamble caused the problem. > > I'll have a look at that. Is the and with no opening a > normal behaviour for the :body-only option ? No it's not normal. I think :body-only should only include content _between_ the and tags in the HTML output. Everything is else removed. Regards, -- Bernt
Re: [O] [Bug] body-only Export Option Adds Extra html Tags.
Manuel Giraud writes: > Ian Barton writes: > >> So it looks like SHA: >> >> da8dc7bba72613131f97a28f1c4a912b8d85d7cc Rewrite the handling of HTML >> preamble/postamble caused the problem. > > I'll have a look at that. Is the and with no opening a > normal behaviour for the :body-only option ? Ok this one was easy. Here's a patch that correct the body-only behaviour. >From 82f25397a156e34d21339a5499c9a52c1b46f333 Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Tue, 8 Mar 2011 15:22:30 +0100 Subject: [PATCH 3/3] correct tag closing for body-only --- lisp/org-html.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-html.el b/lisp/org-html.el index 54cbf36..c60c90d 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1715,7 +1715,7 @@ lang=\"%s\" xml:lang=\"%s\"> (if org-export-html-with-timestamp (insert org-export-html-html-helper-timestamp)) - (insert "\n\n\n\n") + (unless body-only (insert "\n\n\n\n")) (unless (plist-get opt-plist :buffer-will-be-killed) (normal-mode) -- 1.7.1 -- Manuel Giraud
Re: [O] [Bug] body-only Export Option Adds Extra html Tags.
Ian Barton writes: > So it looks like SHA: > > da8dc7bba72613131f97a28f1c4a912b8d85d7cc Rewrite the handling of HTML > preamble/postamble caused the problem. I'll have a look at that. Is the and with no opening a normal behaviour for the :body-only option ? -- Manuel Giraud
[O] Bug: Tangling indirect buffers [7.5 (release_7.5.6.g11f19)]
I reported this problem earlier against 7.4, it still occurs with the latest GIT version. Maybe (probably) I'm being stupid, if so could someone please tell me. Tangling from an indirect buffer fails with the following stack trace: Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-name-nondirectory(nil) (message "tangled %d code block%s from %s" block-counter (if (= block-counter 1) "" "s") (file-name-nondirectory (buffer-file-name ...))) (let ((block-counter 0) (org-babel-default-header-args ...) path-collector) (mapc (lambda ... ...) (org-babel-tangle-collect-blocks lang)) (message "tangled %d code block%s from %s" block-counter (if ... "" "s") (file-name-nondirectory ...)) (when org-babel-post-tangle-hook (mapc ... path-collector)) path-collector) (save-excursion (let (... ... path-collector) (mapc ... ...) (message "tangled %d code block%s from %s" block-counter ... ...) (when org-babel-post-tangle-hook ...) path-collector)) org-babel-tangle() call-interactively(org-babel-tangle t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) The problem seems to be in this fragment of org-babel-tangle: (message "tangled %d code block%s from %s" block-counter (if (= block-counter 1) "" "s") (file-name-nondirectory (buffer-file-name (current-buffer On an indirect buffer buffer-file-name returns nil, replacing this by: (message "tangled %d code block%s from %s" block-counter (if (= block-counter 1) "" "s") (file-name-nondirectory (buffer-file-name (or (buffer-base-buffer) (current-buffer) seems to do the right thing. Shaun. Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Emacs : GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 Package: Org-mode version 7.5 (release_7.5.6.g11f19) current state: == (setq org-emphasis-alist '(("*" bold "" "") ("/" italic "" "") ("_" underline "" "") ("=" org-code "" "" verbatim) ("~" org-verbatim "" "" verbatim)) org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-agenda-files '("e:/Home/Shaun/Org/personal.org" "~/Play/Alexandria/alexandria.org" "e:/Home/Shaun/Org/Farrers.org" "e:/Home/Shaun/Org/ScottishWater.org" "e:/Home/Shaun/Org/TEV.org" "e:/Home/Shaun/Org/Tesco.org" "e:/Home/Shaun/Org/general.org" "e:/Home/Shaun/Org/hoj.org" "e:/Home/Shaun/Org/thor.org" "e:/Home/Shaun/Org/Sincal.org") org-agenda-include-diary t org-clock-into-drawer "CLOCK" org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-id-method 'org org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-log-note-clock-out t org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-hide-emphasis-markers t org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-directory "~/Org" org-babel-pre-tangle-hook '(save-buffer) 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-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '((lambda nil (org-add-hook (quote change-major-mode-hook) (quote org-show-block-all) (quote append) (quote local)) ) (lambda nil (org-add-hook (quote change-major-mode-hook) (quote org-babel-show-result-all) (quote append) (quote local)) ) 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-emphasis-regexp-components '("('\"" "- .,:?;'\")_" "
Re: [O] [PATCH] Allow using a custom function for Bulk actions
Puneeth Chaganti writes: > On Tue, Mar 8, 2011 at 6:36 PM, Bernt Hansen wrote: >> Puneeth Chaganti writes: >> >>> Here's a patch that allows choosing or specifying any arbitrary >>> function to be used for Bulk actions from agenda view. >>> >>> From d997a0bb5c399d203059fb5e60db630eab95e003 Mon Sep 17 00:00:00 2001 >>> From: Puneeth Chaganti >>> Date: Mon, 7 Mar 2011 15:54:20 +0530 >>> Subject: [PATCH] org-agenda: Allow specifying a function for bulk action >>> >> >> This patch is whitespace damaged by your MUA. Please resend as an >> attachment. > > The previous mail had it as an attachment, also. But, anyway, here it > is, again. So you did. My mistake - It was a problem on my end not yours. I had my Gnus set up to hide to the attachment part when it was displayed inline. Sorry for the noise. Thanks, -- Bernt
Re: [O] Viewing Agenda in MobileOrg
I have just set up MobileOrg to work with my new iPhone, and have the following problem: I can view the contents of my various .org files, but "Agenda Views" appears to be empty. I have the weekly agenda view open when I push the .org files to Dropbox. I am afraid I am missing something very basic, but can't for the life of me figure out what it is! Are you using "org-mobile-push"? That creates "agendas.org" and puts it on the server. You should look in your webdav space and see if it is there and sensible. My agendas.org file is 150KB and starts #+BEGIN_SRC org #+READONLY * Week-agenda (W10-W11):KEYS=a TITLE: Agenda ** Tuesday 8 March 2011 *** TODO [#A] a task #+END_SRC org pgpHY2QB93azy.pgp Description: PGP signature
Re: [O] [PATCH] Allow using a custom function for Bulk actions
On Tue, Mar 8, 2011 at 6:36 PM, Bernt Hansen wrote: > Puneeth Chaganti writes: > >> Hi, >> >> Here's a patch that allows choosing or specifying any arbitrary >> function to be used for Bulk actions from agenda view. >> >> From d997a0bb5c399d203059fb5e60db630eab95e003 Mon Sep 17 00:00:00 2001 >> From: Puneeth Chaganti >> Date: Mon, 7 Mar 2011 15:54:20 +0530 >> Subject: [PATCH] org-agenda: Allow specifying a function for bulk action >> >> * lisp/org-agenda.el: (org-agenda-bulk-action) A function can be >> specified, to be used for bulk action on marked items. >> --- >> lisp/org-agenda.el | 7 ++- >> 1 files changed, 6 insertions(+), 1 deletions(-) > > Hi Puneeth, > > This patch is whitespace damaged by your MUA. Please resend as an > attachment. The previous mail had it as an attachment, also. But, anyway, here it is, again. -- Puneeth From d997a0bb5c399d203059fb5e60db630eab95e003 Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Mon, 7 Mar 2011 15:54:20 +0530 Subject: [PATCH] org-agenda: Allow specifying a function for bulk action * lisp/org-agenda.el: (org-agenda-bulk-action) A function can be specified, to be used for bulk action on marked items. --- lisp/org-agenda.el |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index e6afbb0..0297d36 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -7969,7 +7969,7 @@ The prefix arg is passed through to the command if possible." (interactive "P") (unless org-agenda-bulk-marked-entries (error "No entries are marked")) - (message "Bulk: [r]efile [$]arch [A]rch->sib [t]odo [+/-]tag [s]chd [S]catter [d]eadline") + (message "Bulk: [r]efile [$]arch [A]rch->sib [t]odo [+/-]tag [s]chd [S]catter [d]eadline [f]unction") (let* ((action (read-char-exclusive)) (org-log-refile (if org-log-refile 'time nil)) (entries (reverse org-agenda-bulk-marked-entries)) @@ -8059,6 +8059,11 @@ The prefix arg is passed through to the command if possible." (org-agenda-date-later distance) (error nil))) + ((equal action ?f) + (setq cmd (list (intern + (org-icompleting-read "Function: " +obarray 'fboundp t nil nil) + (t (error "Invalid bulk action"))) ;; Sort the markers, to make sure that parents are handled before children -- 1.7.4.1
[O] Viewing Agenda in MobileOrg
I have just set up MobileOrg to work with my new iPhone, and have the following problem: I can view the contents of my various .org files, but "Agenda Views" appears to be empty. I have the weekly agenda view open when I push the .org files to Dropbox. I am afraid I am missing something very basic, but can't for the life of me figure out what it is! TIA David Cross d.cr...@tcu.edu www.davidcross.us
Re: [O] [PATCH] Allow using a custom function for Bulk actions
Puneeth Chaganti writes: > Hi, > > Here's a patch that allows choosing or specifying any arbitrary > function to be used for Bulk actions from agenda view. > > From d997a0bb5c399d203059fb5e60db630eab95e003 Mon Sep 17 00:00:00 2001 > From: Puneeth Chaganti > Date: Mon, 7 Mar 2011 15:54:20 +0530 > Subject: [PATCH] org-agenda: Allow specifying a function for bulk action > > * lisp/org-agenda.el: (org-agenda-bulk-action) A function can be > specified, to be used for bulk action on marked items. > --- > lisp/org-agenda.el |7 ++- > 1 files changed, 6 insertions(+), 1 deletions(-) Hi Puneeth, This patch is whitespace damaged by your MUA. Please resend as an attachment. Thanks, -- Bernt
Re: [O] Change default size of images?
On Tue, Mar 8, 2011 at 12:59 PM, Juan Pechiar wrote: > Add something like this together with your export headers: > > #+BIND: org-export-latex-image-default-option > "width=0.9\\textwidth,height=0.7\\textheight,keepaspectratio" > > The general rule for +BIND is to provide LISP variables and values > (See 12.2 Export Options in Org manual). > > You may need to customize org-export-allow-BIND so that org-mode does > not require confirmation each time you export. Thanks - that is exactly what I was looking for. Cheers, Rainer > > Regards, > .j. > > On Tue, Mar 08, 2011 at 12:28:31PM +0100, Rainer M Krug wrote: >> I want to change the default size of imanges when exporting to LaTeX - >> how can I do this? >> >> I know about, >> >> #+ATTR_LaTeX: width=5cm >> >> but as I have a lot of images, it would be much easier to change the >> setting for the whole document. >> In addition, my images are in a table and I would have no idea where >> to put the #+ATTR_LaTeX... > -- 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
[O] Abstract
Is the abstract section somehow supported in org-mode? I can easily write * Abstract but for example then it goes into the index and it gets numerated if "num:t" in the #+OPTIONS. thanks, Andrea
Re: [O] Change default size of images?
Add something like this together with your export headers: #+BIND: org-export-latex-image-default-option "width=0.9\\textwidth,height=0.7\\textheight,keepaspectratio" The general rule for +BIND is to provide LISP variables and values (See 12.2 Export Options in Org manual). You may need to customize org-export-allow-BIND so that org-mode does not require confirmation each time you export. Regards, .j. On Tue, Mar 08, 2011 at 12:28:31PM +0100, Rainer M Krug wrote: > I want to change the default size of imanges when exporting to LaTeX - > how can I do this? > > I know about, > > #+ATTR_LaTeX: width=5cm > > but as I have a lot of images, it would be much easier to change the > setting for the whole document. > In addition, my images are in a table and I would have no idea where > to put the #+ATTR_LaTeX...
Re: [O] [Bug] body-only Export Option Adds Extra html Tags.
On 07/03/11 18:10, Ian Barton wrote: If I export body-only in my publishing options and publish a file that looks like: #+TITLE: Index for Cycling Pages. #+STARTUP: showall indent #+STARTUP: hidestars #+BEGIN_HTML --- layout: cycling title: Cycling. excerpt: Page about cycling. --- #+END_HTML Some text The resulting html looks like: Some text Note the extra html tags after my text. Not sure exactly when this started happening, my git bisect skills haven't managed to identify it. Managed to get git bisect to work for me. The last sha where I get git bisect good is: f9c833dad015b7847f659e06bac8690b9d7d3794 deprecating begin_dot and begin_ditaa blocks. So it looks like SHA: da8dc7bba72613131f97a28f1c4a912b8d85d7cc Rewrite the handling of HTML preamble/postamble caused the problem. Ian.
[O] Change default size of images?
Hi I want to change the default size of imanges when exporting to LaTeX - how can I do this? I know about, #+ATTR_LaTeX: width=5cm but as I have a lot of images, it would be much easier to change the setting for the whole document. In addition, my images are in a table and I would have no idea where to put the #+ATTR_LaTeX... Cheers, Rainer -- 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] Defining capture-templates: custom and init file
Alan Davis wrote: > I would like to request advice, on how can I set up so most of my capture > templates are loaded from a file (~/org/capture-templates.el in > my case) and still retain the ability to define new capture templates on the > fly. I want the best of both worlds: > - capture-templates.el is easier for me to tweak by hand, and I can > alphabetize the templates in various ways as needed. > > - the capture custom feature is a fantastic way to deine one off templates > on the fly. It may be worthwhile to ask this on the emacs list. [I have seen somewhere emacs lead-dev Stefan Monnier recommend that customize be used only for faces and ordinary other methods (setq?) for everything else]
Re: [O] Defining capture-templates: custom and init file
Very revealing. However, that post was written in 2005, and the following statement is found at the tail end: The good news The behaviour of custom due to more than one custom-set-... statement will be changed in Emacs 21.xx. I've been told that > Multiple calls to custom-set-variables should work in Emacs 21; > if you customize, all the variables go into the first one, > and the rest are deleted. I can still dream. I have to say, though, thank you very, very much. This certainly clarifies the issue well. Alan On Tue, Mar 8, 2011 at 4:33 PM, Suvayu Ali wrote: > Hi Alan, > > On Tue, 8 Mar 2011 16:13:34 +1000 > "Alan E. Davis" wrote: > > > I have noticed the message from within the customization interface > > that some variable or another was set outside of customization, and > > there may be unpredictable results. Wonder what that really means, > > though. It's still a variable, isn't it? > > > > Say you customise the templates outside your custom-set-variables > block. Now if you use the customise your templates with customize and > save them, it will be saved in the custom-set-variables block. For the > current session of emacs you might not experience any problems, but > when you restart emacs depending on which comes first the setq or the > custom-set-variables your templates will be set accordingly. It is > difficult to predict for me which will be the case. For more on this > you can look here[1]. > > Hope this helps you understand the issue with what you are attempting. > > [1] http://www.dotemacs.de/custbuffer.html > > > Alan > > -- > Suvayu > > Open source is the future. It sets us free. >
Re: [O] Re: [REGRESSION] org-html.el (targets)
Aankhen writes: > On Tue, Mar 8, 2011 at 02:07, Bernt Hansen wrote: >> Thanks for the patch. I still see validation errors after applying this >> patch. I've posted the original test file at >> http://www.norang.ca/tmp/foo.html and you can click on the validation >> link at the bottom to see the remaining errors. > > This one seemed easy to fix, so I thought I’d butt in. :-) Hope the > format of the patch is right (I’m using hg-git). Thanks. Modulo line breakage this patch applies and Jambunathan's test file now validates XHTML 1.0 Here's the 2 patch that solve this: >From cd423f908de55a2379c4476c0da8922968786e64 Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Mon, 7 Mar 2011 17:12:46 +0100 Subject: [PATCH 1/2] org-html.el: bug that prevents some target to be rendered correctly. --- lisp/org-exp.el |2 +- lisp/org-html.el | 10 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index ae7bdcf..f22eeba 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -2062,7 +2062,7 @@ can work correctly." (let* ((rtn (mapconcat 'identity - (org-split-string s "[^a-zA-Z0-9_\\.-]+") "--")) + (org-split-string s "[^a-zA-Z0-9_\\.-]+") "-")) (a (assoc rtn alist))) (or (cdr a) rtn diff --git a/lisp/org-html.el b/lisp/org-html.el index eb4b199..8fe8029 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -2181,12 +2181,12 @@ that uses these same face definitions." (defun org-html-protect (s) "Convert characters to HTML equivalent. Possible conversions are set in `org-export-html-protect-char-alist'." - (let ((start 0) - (cl org-export-html-protect-char-alist) c) + (let ((cl org-export-html-protect-char-alist) c) (while (setq c (pop cl)) - (while (string-match (car c) s start) - (setq s (replace-match (cdr c) t t s) - start (1+ (match-beginning 0) + (let ((start 0)) + (while (string-match (car c) s start) + (setq s (replace-match (cdr c) t t s) + start (match-beginning 0) s)) (defun org-html-expand (string) -- 1.7.1 >From 3842d9aa15271658b06ad818761d530c871492e0 Mon Sep 17 00:00:00 2001 From: Aankhen Date: Tue, 8 Mar 2011 11:06:44 +0100 Subject: [PATCH 2/2] Fix anchors in HTML export. --- lisp/org-html.el |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-html.el b/lisp/org-html.el index 8fe8029..9b44e8a 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1996,8 +1996,8 @@ for formatting. This is required for the DocBook exporter." ;; DocBook document, we want to always include the caption to make ;; DocBook XML file valid. (push (format "%s" (or caption "")) html) - (when label (push (format "" (org-solidify-link-text label) (org-solidify-link-text label)) - html)) + (when label + (setq html-table-tag (org-export-splice-attributes html-table-tag (format "id=\"%s\"" (org-solidify-link-text label) (push html-table-tag html)) (setq html (mapcar (lambda (x) -- 1.7.1 -- Manuel Giraud
Re: [O] org-with-wide-buffer error
On Tue, Mar 8, 2011 at 3:18 PM, Bastien wrote: > Kiwon Um writes: > >> Today, it doesn't reproduce anymore after git pull. Thanks all. > > Thanks for letting us know. > Just now faced this problem. make clean make all does the trick. Thanks and Regards Noorul
Re: [O] [Org-contacts] 3 2 1 go?
Julien Danjou writes: > > Well, do not count on me for that. I use git, it does the job. :) Sure I also do ;) For synchronization I meant between different programs/protocol not different machines... When everything will work it won't be too necessary, but at least to switch to some importers are necessary imho. > > Well, I had some but they are defcustom anyway, so there's no standard. > I do not want to put too much obligation on the format used, because > Org-mode is about organizing stuff the way you want. > > For example, some people might want to cut the address part in > (STREET,ZIPCODE,CITY,COUNTRY) whereas I think it's a burden, I just put > a LOCATION property with all the address in it. In the end, it does not > matter for org-contacts. I agree on that sure, but it would not harm to define some templates of fields to make it immediately usable as a full "normal" address book. > Sure that'd be cool. But I don't have such a phone unfortunately, so > can't help. :) I'll try something out as soon as possible, I'm sick of my actual situation...
Re: [O] org-with-wide-buffer error
Kiwon Um writes: > Today, it doesn't reproduce anymore after git pull. Thanks all. Thanks for letting us know. -- Bastien
Re: [O] [Org-contacts] 3 2 1 go?
On Tue, Mar 08 2011, Andrea Crotti wrote: > That's also very nice thanks. > Well the only thing that I would really love to have is a real working > synchronization mechanism, and a real address book with all the > interesting fields for everyone. Well, do not count on me for that. I use git, it does the job. :) > The fields I can also set them myself but maybe would be nice to define > some standard fields which can be set and are automatically recognized. Well, I had some but they are defcustom anyway, so there's no standard. I do not want to put too much obligation on the format used, because Org-mode is about organizing stuff the way you want. For example, some people might want to cut the address part in (STREET,ZIPCODE,CITY,COUNTRY) whereas I think it's a burden, I just put a LOCATION property with all the address in it. In the end, it does not matter for org-contacts. > The once that is done, it would be easier to write some code to > synchronize org-contacts to AddressBook/gmail contacts/vcf and even more > important my android phone. Sure that'd be cool. But I don't have such a phone unfortunately, so can't help. :) -- Julien Danjou ❱ http://julien.danjou.info pgpNQMJwkIIZ0.pgp Description: PGP signature
Re: [O] [Org-contacts] 3 2 1 go?
Julien Danjou writes: > You can set any properties anyway. Org-contacts just use some of them. > > For example I use LOCATION as a property to store my contacts' home > addresses, which I usually set using C-c M-L provided by > org-google-maps[1]. > > Just say out loud what you'd like to do, I'll try to answer or write > code. :) > > [1] http://julien.danjou.info/google-maps-el.html That's also very nice thanks. Well the only thing that I would really love to have is a real working synchronization mechanism, and a real address book with all the interesting fields for everyone. The fields I can also set them myself but maybe would be nice to define some standard fields which can be set and are automatically recognized. The once that is done, it would be easier to write some code to synchronize org-contacts to AddressBook/gmail contacts/vcf and even more important my android phone. With org-mobile it might even make sense to update the address book every time I push something ;)