Re: [O] Using KOMA and Memoir?
On 8 May 2014 00:29, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Wed, May 07, 2014 at 11:19:07PM +0200, Martin Schöön wrote: Quick up-date before bed-time: I commented out the (add-to-list 'org-latex-classes stuff and restarted emacs: No rerror message and still no org-latex-classes variable found when trying out C-h v org-latex-classes. I have a feeling you are a victim of the infamous mixed install issue. http://orgmode.org/worg/org-faq.html#mixed-install -- Suvayu The output of M-x org-version looks good and going back to the emacs-supplied version does not help. Further investigations tonight. -- Martin Schöön http://hem.bredband.net/b262106/index.html
Re: [O] Org + Elpy Python + IPython
On Thu, May 8, 2014 at 8:22 AM, Ken Mankoff mank...@gmail.com wrote: I now have Org, Python, IPython, and Elpy (including (elpy-use-ipython)) all running together in session and non-session mode. Awesome. Thanks for sharing!
[O] bug#17416: bug#17416: insecure temp files in ob-screen.el
Eric Schulte wrote: org-babel-screen-session-write-temp-file and org-babel-screen-test seem to use predictable temp-file names, which is a security issue. Using `make-temp-file', or if the file names really need to be predictable, something equivalent to `doc-view-make-safe-dir' (there should really be a general utility function for this IMO) to first create a /tmp subdirectory would avoid this. I just pushed up a fix for this issue. Thanks, If you mean http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=fea672d30ef4701721c0d4aa70462760a6b21be7 then's there still org-babel-screen-test. (These are definitely fixes that need merging into the emacs-24 branch. IIUC this means they need to be in your maint branch?)
[O] org-export-babel-evaluate
Could somebody tell me how to define org-export-babel-evaluate for a file? I want the default to be t, but want to set it to nil in some of my files. Vikas
Re: [O] Exporting org-mode source
Vikas Rawal wrote: On 04-May-2014, at 11:46 am, Han Fan visaya...@gmail.com wrote: Fletcher Charest fletcher.char...@gmail.com writes: Sorry if I misunderstood... If you create an Org source block like this with nothing inside: #+begin_src org #+end_src ...then, with your cursor inside, enter it with C-c ', write your org tree, and validate with C-c ' again, then export... Does it do what you want? This is what works for me #+begin_src org :exports code #+end_src It does not work without :exports code” I don't understand that, as :exports code is the default for Org code blocks, as shown by: ╭ │ org-babel-default-header-args:org is a variable defined in `ob-org.el'. │ Its value is ((:results . raw silent) (:exports . code)) │ │ Documentation: │ Default arguments for evaluating a org source block. ╰ Best regards, Seb -- Sebastien Vauban
Re: [O] Using KOMA and Memoir?
On Wednesday, 7 May 2014 at 23:03, Martin Schöön wrote: [...] The LaTeX call sits just before the KOMA stuff. No ox-latex to be found, I haven't needed it so far. Is that maybe... Could you post the initialisation you do have? It's difficult to debug your case with partial information. My gut feeling is that you are not loading org properly and are indeed falling victim to a mixed installation scenario, as mentioned by Suvayu. In m experience, you need to load org, then ox-latex and finally customise org-latex-classes. If you are not doing this, things won't work. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.6-937-g60502a
Re: [O] org-ref code
All the talk about citations in org-mode inspired me to finish and polish some code I have been working on for my group for a while on bibtex/reftex/org-mode integration. I packaged it up in a literate programming org-file here: https://github.com/jkitchin/jmax/blob/master/org-ref.org. Thanks John. This looks very useful. Do you plan to add this to org-mode/contrib? I was wondering if it would be useful to change the default keybinding C-c ] to C-c ) instead, since C-c ] is by default bound to org-remove-file. Vikas
Re: [O] problem with org-caldav and ox-icalendar: UID property wrapping
On Wednesday, 7 May 2014 at 22:45, David Engster wrote: [...] I've already rewritten that part in org-caldav, but it needs more testing. I'll push a fix in the coming days. Excellent! I look forward to the fix. Thanks. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-937-g60502a
Re: [O] Exporting org-mode source
Vikas Rawal wrote: It does not work without :exports code” I don't understand that, as :exports code is the default for Org code blocks, as shown by: ╭ │ org-babel-default-header-args:org is a variable defined in `ob-org.el'. │ Its value is ((:results . raw silent) (:exports . code)) │ │ Documentation: │ Default arguments for evaluating a org source block. ╰ Indeed, my bad. I had #+property: exports results” in the file header, something that I have been routinely copying from one file to another, since usually do not want to export code. Sorry. Indeed, that explains a lot of the misunderstandings! Best regards, Seb -- Sebastien Vauban
Re: [O] [babel][PATCHES] ob-R patches for review
Le 7 mai 2014 à 12:27, Eric Schulte schulte.e...@gmail.com a écrit : Rainer M Krug rai...@krugs.de writes: Hi Attached please find seven patches for review to implement the storing of org variables in their own environment and to make the org-issued R code look nicer in the R session. Thanks, Rainer Hi Rainer, Thanks for these patches. I don't have the R experience to review or maintain them, but I'm happy to apply them. I missed some previous discussion in this thread. Are these patches ready to be applied as is? I'll look at it again tomorrow and let you know as I made some changes since then. Do you prefer one patch to several? Cheers, Rainer Thanks, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
[O] strange behaviour in org-agenda-diary-entry
Dear all, Just a quick heads up to say that I have some strange behaviour that appeared within the past week or so: I manage my diary by viewing it in org-agenda and adding entries from that view with i d (org-agenda-diary-entry). I have org-agenda-diary-file defined and my diary entries are in a date-tree format. Therefore, new entries should be inserted as fourth level headings (year - month - day - entry) and this is how things have been until recently. Something has changed so that my entries are now inserted at the second level. There have been no obvious changes in org-agenda that would lead to this, at least nothing in the past month. This happens with up to date org, with emacs -Q and only org-agenda-files and org-agenda-diary-file set. I don't have time right now to investigate this further but I thought I would post this in case anybody has any insight. I'll come back to this later as I rely on this functionality a lot! Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-949-g751506
Re: [O] [babel][PATCHES] ob-R patches for review
Envoyé de mon iPhone Le 8 mai 2014 à 04:26, Charles Berry ccbe...@ucsd.edu a écrit : Eric Schulte schulte.eric at gmail.com writes: Rainer M Krug Rainer at krugs.de writes: Hi Attached please find seven patches for review to implement the storing of org variables in their own environment and to make the org-issued R code look nicer in the R session. Thanks, Rainer Hi Rainer, Thanks for these patches. I don't have the R experience to review or maintain them, but I'm happy to apply them. I missed some previous discussion in this thread. Are these patches ready to be applied as is? IMO, the patches hard coded behaviors that would better be customizable and optional. I'll give feedback tomorrow and let you know about customization of the name of the environment. The general behavior of storing the variables in an environment should not be customizable as it is 1) safer then the behavior of storing each variable separately 2) no changes for the user are introduced Cheers Rainer Rainer and I had some back and forth about this -- see the thread. Best, Chuck
[O] crossing out tasks
This is so simple but I can't find a solution. If I have a list of tasks with + in front, when done I can put a + at the end which crosses them out, making it very easy to see what I have left to do. Except, sometimes the preceding task inherits the crossing out too, even though it does not have a + at the end, so how can I stop the inheritance please? Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.4.50.20 signature.asc Description: PGP signature
Re: [O] Managing bibtex database using org-mode?
Hi Vikas, Vikas Rawal wrote: This is exactly what I have in mind. Would you mind sharing an example file, and may be an outline of your work flow? I only switched over to using org-bibtex about 4 weeks ago, so I have not yet perfected my workflow. However, I will try to give you some idea of what has worked best for me thus far. I am rather busy for the next couple of days, so I do not have the time to put together an example file etc. right now, but hopefully I will have a bit of time this weekend. All best, Leonard
[O] org-mode variables
Searching http://orgmode.org/org.html I failed to find how to modify org-mode variables, where they are stored, etc. They are listed, but no mention of setting them? Are they standard emacs vars, if so , perhaps this could be made clear in the manual please? regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk
Re: [O] org-mode variables
Dave Pawson dave.paw...@gmail.com writes: Searching http://orgmode.org/org.html I failed to find how to modify org-mode variables, where they are stored, etc. They are listed, but no mention of setting them? Are they standard emacs vars, if so , perhaps this could be made clear in the manual please? yes, they are standard emacs variables, you can normally set with (setq variable value)
[O] [BUG] superscripts exported as subscripts by ox-ascii
Hi, When exporting the following snippets, superscripts are exported as subscripts by the ascii exporter. Org src: - B⁺ → D(K_{s}ππ)K⁺, B → D(K_{s}KK)K⁺, - CPV in B^{±} → D(K_{s}K^{±}π^{∓})K^{±}, and B^{±} → D(K_{s}K^{∓}π^{±})K^{±}, Exported text: • B⁺ → D(K_{s}ππ)K⁺, B → D(K_{s}KK)K⁺, • CPV in B_{±} → D(K_{s}K_{±}π_{∓})K_{±}, and B_{±} → D(K_{s}K_{∓}π_{±})K_{±}, Unfortunately I noticed this after I sent the exported text to a bunch of my collaborators! Thankfully we work for the same institute :). Cheers, -- Suvayu Open source is the future. It sets us free.
Re: [O] org-export-babel-evaluate
Vikas Rawal vikasli...@agrarianresearch.org writes: Could somebody tell me how to define org-export-babel-evaluate for a file? I want the default to be t, but want to set it to nil in some of my files. (info (emacs) Specifying File Variables) -- Nick
[O] html5?
org.html says Fancy HTML5 export HTML5 introduces several new element types. By default, Org will not make use of these element types, but you can set org-html-html5-fancy to t (or set html5-fancy item in an OPTIONS line), to enable a few new block-level elements. These are created using arbitrary #+BEGIN and #+END blocks. For instance: C-h v org-html-html5 has no auto-complete, hence guessing this variable does not exist? emacs vsn is : GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.8) regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk
Re: [O] html5?
Dave Pawson dave.paw...@gmail.com writes: org.html says Fancy HTML5 export HTML5 introduces several new element types. By default, Org will not make use of these element types, but you can set org-html-html5-fancy to t (or set html5-fancy item in an OPTIONS line), to enable a few new block-level elements. These are created using arbitrary #+BEGIN and #+END blocks. For instance: C-h v org-html-html5 has no auto-complete, hence guessing this variable does not exist? Not in orgmode 7.x, but it does exist in 8.x. Check with M-x org-version -- Nick
Re: [O] org-export-babel-evaluate
Could somebody tell me how to define org-export-babel-evaluate for a file? I want the default to be t, but want to set it to nil in some of my files. (info (emacs) Specifying File Variables”) Perfect. Thank you. Vikas
Re: [O] Using KOMA and Memoir?
On Thu, May 08, 2014 at 08:08:36AM +0200, Martin Schöön wrote: On 8 May 2014 00:29, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Wed, May 07, 2014 at 11:19:07PM +0200, Martin Schöön wrote: Quick up-date before bed-time: I commented out the (add-to-list 'org-latex-classes stuff and restarted emacs: No rerror message and still no org-latex-classes variable found when trying out C-h v org-latex-classes. I have a feeling you are a victim of the infamous mixed install issue. http://orgmode.org/worg/org-faq.html#mixed-install The output of M-x org-version looks good Unfortunately that is not a complete test. You should compare the load-path shadows and match them library for library (excluding libraries that exist in only one of the distributions). Hope this helps, -- Suvayu Open source is the future. It sets us free.
[O] Questions about mail, MIME, etc.
I'd love to get mail working so I could send MIME messages right from org mode. However, I have a couple of issues/questions: 1) I tried using org-mime http://orgmode.org/worg/org-contrib/org-mime.html, but when I try the command org-mime-org-buffer-htmlize, I get the error: Symbol's function definition is void: org-export-grab-title-from-buffer I think I followed the setup described on that page. Is this meant for an older version of orgmode? (I'm running 8.2.5g) 2) I actually use a number of email programs (MH, mutt, etc.), but not gnus or VM. Is there a way to get org to export the mime to a message file that I can send (as a message, not as an attachment) from some other program? 3) What I'd really like is a multipart/alternative message where one part is text/plain, and looks exactly like the emacs buffer display, and the other part is text/html, and looks like what org would export to html, complete with tables, images, etc. Thanks! -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] crossing out tasks
On 08/05/14 11:12, Sharon Kimble wrote: This is so simple but I can't find a solution. If I have a list of tasks with + in front, when done I can put a + at the end which crosses them out, making it very easy to see what I have left to do. Except, sometimes the preceding task inherits the crossing out too, even though it does not have a + at the end, so how can I stop the inheritance please? Sharon. I seem to remember that Carsten doesn't like strike through faces. Maybe it's his secret plot to stop people using them:) On a more constructive note. Why don't you just make them TODO's and then mark them DONE in the usual way. You should be able to customize the DONE face to a strike through one. Ian.
Re: [O] Insert #+BEAMER_HEADER_EXTRA before \begin{document}?
Suvayu Ali wrote: On Wed, May 07, 2014 at 07:26:26PM -0400, Nick Dokos wrote: Suvayu Ali fatkasuvayu+li...@gmail.com writes: On Wed, May 07, 2014 at 09:01:39PM +0200, Sebastien Vauban wrote: To insert a short title for a Beamer presentation, you can glean the following answers on the Web: - Using `#+BEAMER_HEADER_EXTRA' which -is- +was+ exported /after/ the `\title' command. I use this: #+LATEX_HEADER: \subtitle{Some subtitle} Are you sure it worked with beamer? AFAICT, it just adds a subtitle to the title slide, nothing more. In particular, beamer does not seem to use it for the purpose that Seb wants it: a (limited-length) marker on each slide. You are right. I misunderstood Seb's question. :-p Yes. I think I looked into this sometime back and I don't think there was a nice resolution (as evidenced by Seb's links). That said, I vaguely recall a discussion on this 1 and half to 2 years back (that would be the old exporter of course). I think supporting this as a feature was bypassed since this is very much LaTeX specific. While I think that LaTeX should be treated as a first-class backend (and not just 1 out of 10 or so), I'm not asking for something new to be added: just that #+BEAMER_HEADER is inserted before the \begin{document} -- hence *after* things like \title, \author, \date, and \usetheme. Right now, in an Org Beamer document, we can add specific code via 3 different types of call (with example data): - #+LaTeX_HEADER: \institute[short name]{Full name} - #+LaTeX_HEADER_EXTRA: \usepackage{lxfonts} - #+BEAMER_HEADER: \setbeamercolor{structure}{fg=craneblue} If we simply allow the placeholder for #+BEAMER_HEADER to be somewhere else (right before \begin{document}) than where it currently is, it will allow one to: - add a short title of the document for the footer - add a short author name for the footer (see AnnArbor) - add a short date version (for example, May 2014 instead of the full 8 May 2014) - customize some colors of the Beamer themes - and many other things... The above things are currently (almost, for some) impossible. Changing where the #+BEAMER_HEADER placeholder gets inserted makes them possible and easy. Best regards, Seb -- Sebastien Vauban
Re: [O] crossing out tasks
Ian Barton li...@wilkesley.net writes: On 08/05/14 11:12, Sharon Kimble wrote: This is so simple but I can't find a solution. If I have a list of tasks with + in front, when done I can put a + at the end which crosses them out, making it very easy to see what I have left to do. Except, sometimes the preceding task inherits the crossing out too, even though it does not have a + at the end, so how can I stop the inheritance please? Sharon. I seem to remember that Carsten doesn't like strike through faces. Maybe it's his secret plot to stop people using them:) On a more constructive note. Why don't you just make them TODO's and then mark them DONE in the usual way. You should be able to customize the DONE face to a strike through one. ... or use checkboxes. Nick
[O] current task being worked in agenda time grid
Is there any way to do that? It would be beneficial if, when I did C-a a, the time grid could show, at the current time, what I am currently clocking time against. I know that it shows up in the mode line, but my emacs window is seldom wide enough for me to read that, actually. Thanks for any pointer to the way to do this. Dave in New Port Richey, FL
Re: [O] org-ref code
I added a user variable for that key-binding. I like C-c ] because there is no shift to get ). You can set org-ref-insert-cite-key to what ever shortcut you prefer now. I would prefer to keep org-ref where it is until it stabilizes. This summer my group will be using it pretty extensively for writing papers, so I anticipate by this fall it will be pretty stable. John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Thu, May 8, 2014 at 4:31 AM, Vikas Rawal vikasra...@gmail.com wrote: All the talk about citations in org-mode inspired me to finish and polish some code I have been working on for my group for a while on bibtex/reftex/org-mode integration. I packaged it up in a literate programming org-file here: https://github.com/jkitchin/jmax/blob/master/org-ref.org. Thanks John. This looks very useful. Do you plan to add this to org-mode/contrib? I was wondering if it would be useful to change the default keybinding C-c ] to C-c ) instead, since C-c ] is by default bound to org-remove-file. Vikas
Re: [O] Questions about mail, MIME, etc.
Peter Davis p...@pfdstudio.com writes: I'd love to get mail working so I could send MIME messages right from org mode. However, I have a couple of issues/questions: 1) I tried using org-mime http://orgmode.org/worg/org-contrib/org-mime.html, but when I try the command org-mime-org-buffer-htmlize, I get the error: Symbol's function definition is void: org-export-grab-title-from-buffer I think I followed the setup described on that page. Is this meant for an older version of orgmode? (I'm running 8.2.5g) Yeah I got that error too, a while ago, and your message prompted me to look at it. It seems like org-mime is just a bit behind the state of org-export, and fixing that one dead function link is enough to make it work again. I've attached a patch. 2) I actually use a number of email programs (MH, mutt, etc.), but not gnus or VM. Is there a way to get org to export the mime to a message file that I can send (as a message, not as an attachment) from some other program? Generating a message buffer is pretty much hard-coded into org-mime. Once you're in that buffer, though, the (non-interactive) function mml-generate-mime will return the fully encoded mime message as a string -- you could save that to a file and do something else with it. I'm not 100% confident that's the simplest way to do that. 3) What I'd really like is a multipart/alternative message where one part is text/plain, and looks exactly like the emacs buffer display, and the other part is text/html, and looks like what org would export to html, complete with tables, images, etc. As far as I know, that's exactly what org-mime does! HTH, Eric From c967afb70bd7c9039c09d7c7f22388e1eced30fa Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen e...@ericabrahamsen.net Date: Thu, 8 May 2014 22:32:01 +0800 Subject: [PATCH] Update org-mime to current export functions * /contrib/lisp/org-mime.el (org-mime-send-buffer): This function was using `org-export-grab-title-from-buffer', which no longer exists. --- contrib/lisp/org-mime.el | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el index b0007ac..5f874d9 100644 --- a/contrib/lisp/org-mime.el +++ b/contrib/lisp/org-mime.el @@ -269,8 +269,10 @@ export that region, otherwise export the entire body. (defun org-mime-send-buffer (optional fmt) (run-hooks 'org-mime-send-buffer-hook) (let* ((region-p (org-region-active-p)) - (subject (org-export-grab-title-from-buffer)) - (file (buffer-file-name (current-buffer))) + (file (buffer-file-name (current-buffer))) + (subject (if (not file) (buffer-name (buffer-base-buffer)) + (file-name-sans-extension + (file-name-nondirectory file (body-start (or (and region-p (region-beginning)) (save-excursion (goto-char (point-min) (body-end (or (and region-p (region-end)) (point-max))) -- 1.9.2
Re: [O] Insert #+BEAMER_HEADER_EXTRA before \begin{document}?
On Thu, May 08, 2014 at 03:38:21PM +0200, Sebastien Vauban wrote: Suvayu Ali wrote: On Wed, May 07, 2014 at 07:26:26PM -0400, Nick Dokos wrote: I think I looked into this sometime back and I don't think there was a nice resolution (as evidenced by Seb's links). That said, I vaguely recall a discussion on this 1 and half to 2 years back (that would be the old exporter of course). I think supporting this as a feature was bypassed since this is very much LaTeX specific. While I think that LaTeX should be treated as a first-class backend (and not just 1 out of 10 or so), I'm not asking for something new to be added: just that #+BEAMER_HEADER is inserted before the \begin{document} -- hence *after* things like \title, \author, \date, and \usetheme. Right now, in an Org Beamer document, we can add specific code via 3 different types of call (with example data): - #+LaTeX_HEADER: \institute[short name]{Full name} - #+LaTeX_HEADER_EXTRA: \usepackage{lxfonts} - #+BEAMER_HEADER: \setbeamercolor{structure}{fg=craneblue} If we simply allow the placeholder for #+BEAMER_HEADER to be somewhere else (right before \begin{document}) than where it currently is, it will allow one to: - add a short title of the document for the footer - add a short author name for the footer (see AnnArbor) - add a short date version (for example, May 2014 instead of the full 8 May 2014) - customize some colors of the Beamer themes - and many other things... The above things are currently (almost, for some) impossible. Changing where the #+BEAMER_HEADER placeholder gets inserted makes them possible and easy. You have good arguments. Maybe it should be reconsidered. -- Suvayu Open source is the future. It sets us free.
[O] How to tangle?
Hi, I was trying to tangle John's org-ref.org[1]; when I visit the file and do `M-x org-babel-tangle RET', all I get is: Tangled 0 code blocks from org-ref.org Any ideas what is wrong? Footnotes: [1] https://github.com/jkitchin/jmax/blob/master/org-ref.org -- Suvayu Open source is the future. It sets us free.
Re: [O] Questions about mail, MIME, etc.
On Thu, May 08, 2014 at 10:34:26PM +0800, Eric Abrahamsen wrote: Peter Davis p...@pfdstudio.com writes: I'd love to get mail working so I could send MIME messages right from org mode. However, I have a couple of issues/questions: 1) I tried using org-mime http://orgmode.org/worg/org-contrib/org-mime.html, but when I try the command org-mime-org-buffer-htmlize, I get the error: Symbol's function definition is void: org-export-grab-title-from-buffer I think I followed the setup described on that page. Is this meant for an older version of orgmode? (I'm running 8.2.5g) Yeah I got that error too, a while ago, and your message prompted me to look at it. It seems like org-mime is just a bit behind the state of org-export, and fixing that one dead function link is enough to make it work again. I've attached a patch. Thanks, Eric! I'll give it a try. 2) I actually use a number of email programs (MH, mutt, etc.), but not gnus or VM. Is there a way to get org to export the mime to a message file that I can send (as a message, not as an attachment) from some other program? Generating a message buffer is pretty much hard-coded into org-mime. Once you're in that buffer, though, the (non-interactive) function mml-generate-mime will return the fully encoded mime message as a string -- you could save that to a file and do something else with it. I'm not 100% confident that's the simplest way to do that. Thanks. I suppose I can use gnus to send a message, even if I'm not using it to read mail. 3) What I'd really like is a multipart/alternative message where one part is text/plain, and looks exactly like the emacs buffer display, and the other part is text/html, and looks like what org would export to html, complete with tables, images, etc. As far as I know, that's exactly what org-mime does! Great! Thank you. -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] How to tangle?
that is pretty strange. I just tried it and got Tangled 51 code blocks from org-ref.org You can run the command `org-babel-tangle' with C-c C-v t You could also try: [[elisp:(org-babel-load-file org-ref.org)]] John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Thu, May 8, 2014 at 11:27 AM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote: Hi, I was trying to tangle John's org-ref.org[1]; when I visit the file and do `M-x org-babel-tangle RET', all I get is: Tangled 0 code blocks from org-ref.org Any ideas what is wrong? Footnotes: [1] https://github.com/jkitchin/jmax/blob/master/org-ref.org -- Suvayu Open source is the future. It sets us free.
Re: [O] How to tangle?
Hi John, On Thu, May 08, 2014 at 11:36:25AM -0400, John Kitchin wrote: that is pretty strange. I just tried it and got Tangled 51 code blocks from org-ref.org You can run the command `org-babel-tangle' with C-c C-v t You could also try: [[elisp:(org-babel-load-file org-ref.org)]] I tried `M-: (org-babel-load-file org-ref.org) RET'. That gave me the following backtrace: Debugger entered--Lisp error: (wrong-type-argument stringp nil) expand-file-name(nil) load-file(nil) org-babel-load-file(org-ref.org) eval((org-babel-load-file org-ref.org) nil) eval-expression((org-babel-load-file org-ref.org) nil) call-interactively(eval-expression nil nil) command-execute(eval-expression) Something is definitely wrong with my setup. Although I can't think where or how. Cheers, -- Suvayu Open source is the future. It sets us free.
Re: [O] Adding export option for babel language
Ken Mankoff mankoff at gmail.com writes: I'd like to add support for PythonTeX to Org Babel https://github.com/gpoore/pythontex The motivation is that PythonTeX is a better literate environment than just Org + Babel, because it can print results inline just like an interactive Python session, instead of all the code followed by all the results. This is just a modification to the existing LaTeX export for python, it is not support for a new language. I'm new to Org development and seek advice how to begin approaching the solution. I'd like the python code blocks to behave just as they do now, but if I have set (setq org-latex-listings 'pythontex) instead of (setq org-latex-listings 'minted), then instead of wrapping python code blocks with: \begin{minted}[]{python} x+2 print x \end{minted} It should wrap them with \begin{pyconsole} x+2 print x \end{pyconsole} A quick-and-dirty approach to do just that much would be to write an export filter for `src-block' and maybe `inline-src-block', see (info (org) Advanced configuration) http://orgmode.org/worg/dev/org-export-reference.html#filter-system and http://orgmode.org/worg/exporters/filter-markup.html Also, `C-h f org--filter TAB' should give you a buffer of such filter functions (and a couple of false positives) that you might browse. HTH, Chuck
Re: [O] Managing bibtex database using org-mode?
Hi Vikas and all, Vikas Rawal vikasli...@agrarianresearch.org writes: I manage my whole bibtex database on org. It makes my workflow more integrated. It allows me to keep bib info, todo states and notes all in the same place, and it allows me to access it all through the agenda. I just periodically run org-bibtex to make sure that I have a updated bib file. This is exactly what I have in mind. Would you mind sharing an example file, and may be an outline of your work flow? I also manage my whole bibtex database in Org. Here is my setup: 1) I store new readings as I come across them using a capture template. (See the attached reading.txt.) This template is pretty basic, but I think it could easily be adapted to store more data, such as links to PDFs, or automatically import Bibtex entries (over org-protocol?) using a function from org-bibtex. The relevant stanza from my org-capture-templates is: #+BEGIN_SRC elisp (dr Reading entry (file+olp ,dissertation-agenda-file Reading list) (file ,(concat org-template-directory /reading.txt)) :prepend t) #+END_SRC 2) I use a post-capture hook to detect whether a captured entry is a reading (it looks for the AUTHOR property) and optionally add bibliographic data using org-bibtex-create-in-current-entry: #+BEGIN_SRC elisp (defun add-bibliographic-data () ; this is a bit hacky: we detect the AUTHOR property, and create bibtex entries if ; it is present (message optionally adding bibliographic data) (if (and (org-entry-get (point) AUTHOR) (y-or-n-p Add bibliographic data? )) ; with prefix arg to get all fields: (org-bibtex-create-in-current-entry 1) nil)) (add-hook 'org-capture-before-finalize-hook (lambda () (add-bibliographic-data))) #+END_SRC This completes the `front-end' portion of my setup, which gets data on new readings into Org. The `back-end' setup, which exports the captured entries to a .bib file, involves a Makefile that calls wrappers around org-bibtex functions. 3) All the wrapper functions do is walk over the Org tree containing my reading list, using org-map-entries, and export each entry with a defined CUSTOM_ID value using org-bibtex-headline to a new buffer. (It skips those with no CUSTOM_ID, since these won't produce valid bibtex entries.) This buffer then gets saved as the new .bib file. The code is in bib-export.el, attached. Note that this code makes some assumptions about my setup (mostly that all reading entries are stored under a top-level Reading list heading in a certain Org file); it is not suitable for general use without some adaptation. You can call the wrapper functions from within Emacs using M-x reading-list-to-bibtex. 4) I also call the wrapper functions from a Makefile. This allows me to get a fresh copy of my .bib file whenever it's needed, just by typing `make bib'. Here's the relevant stanza from the Makefile, which lives in the same directory as the file containing my reading list (tasks.org): #+BEGIN_SRC make EMACS=emacs BATCH_EMACS=$(EMACS) --batch -Q --load lib/el/org-dissertation.el build/dissertation.bib: tasks.org lib/el/bib-export.el $(BATCH_EMACS) --load lib/el/bib-export.el --file tasks.org \ --funcall reading-list-to-bibtex bib: build/dissertation.bib #+END_SRC That's it! Hope you find that useful. Best, Richard ** %^{Todo state|FIND|PRINT|READ|NOTES} [#%^{Priority|A|B|C}] %^{Description|Reading} %^g %^{TITLE}p %^{AUTHOR}p %^{AREA}p %? :PROPERTIES: :Entered: %U :END: bib-export.el Description: application/emacs-lisp
[O] Confused about list indentation
Hi, I am using Org version 8.2.6 (release_8.2.6-949-g751506). I am a bit confused about indentation in the example at node '2.7 Plain Lists' in the Org info file: [quote] ** Lord of the Rings My favorite scenes are (in this order) 1. The attack of the Rohirrim 2. Eowyn's fight with the witch king + this was already my favorite scene in the book + I really like Miranda Otto. 3. Peter Jackson being shot by Legolas - on DVD only He makes a really funny face when it happens. But in the end, no individual scenes matter but the film as a whole. Important actors in this film are: - Elijah Wood :: He plays Frodo - Sean Austin :: He plays Sam, Frodo's friend. I still remember him very well from his role as Mikey Walsh in The Goonies. [unquote] The last line aligns the word 'him' directly under 'Sean', which is what I expect. The 'He makes a really...' sentence is aligned under the list hyphen, rather than under 'on DVD...' Is this not inconsistent? I'd expect it to be indented two extra positions to the right, similar to the last sentence. Please advise, Guido -- I came to MIT to get an education for myself and a diploma for my mother.
Re: [O] Questions about mail, MIME, etc.
On Thu, May 08, 2014 at 10:34:26PM +0800, Eric Abrahamsen wrote: Peter Davis p...@pfdstudio.com writes: Yeah I got that error too, a while ago, and your message prompted me to look at it. It seems like org-mime is just a bit behind the state of org-export, and fixing that one dead function link is enough to make it work again. I've attached a patch. Excellent! That worked. Thank you! Generating a message buffer is pretty much hard-coded into org-mime. Once you're in that buffer, though, the (non-interactive) function mml-generate-mime will return the fully encoded mime message as a string -- you could save that to a file and do something else with it. I'm not 100% confident that's the simplest way to do that. Ok, I was able to send the message through gnus, even though I don't (normally) use it as a mail reader. 3) What I'd really like is a multipart/alternative message where one part is text/plain, and looks exactly like the emacs buffer display, and the other part is text/html, and looks like what org would export to html, complete with tables, images, etc. As far as I know, that's exactly what org-mime does! Almost. It looks like org-mime puts the actual contents of the buffer into the text/plain part, including links, etc. that would normally be hidden on display. I think it would be more useful to make the text/plain part contain what would be output from exporting to text. But maybe that's just my preference. Thank you! -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
[O] bug#17416: bug#17416: insecure temp files in ob-screen.el
Glenn Morris r...@gnu.org writes: Eric Schulte wrote: org-babel-screen-session-write-temp-file and org-babel-screen-test seem to use predictable temp-file names, which is a security issue. Using `make-temp-file', or if the file names really need to be predictable, something equivalent to `doc-view-make-safe-dir' (there should really be a general utility function for this IMO) to first create a /tmp subdirectory would avoid this. I just pushed up a fix for this issue. Thanks, If you mean http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=fea672d30ef4701721c0d4aa70462760a6b21be7 then's there still org-babel-screen-test. Fixed. (These are definitely fixes that need merging into the emacs-24 branch. IIUC this means they need to be in your maint branch?) Cherrypicked into maint. Thanks, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
[O] words pre-lexed for use as keywords in an agenda view
hello, is there alredy a word lexer connected somehow to org-mode, that uses the most frequent words in the org-agenda-files , and offers them to you to look for the lines in which they occur in an agenda view ? best haroldo
Re: [O] Insert #+BEAMER_HEADER_EXTRA before \begin{document}?
On Thursday, 8 May 2014 at 15:38, Sebastien Vauban wrote: [...] The above things are currently (almost, for some) impossible. Changing where the #+BEAMER_HEADER placeholder gets inserted makes them possible and easy. but unfortunately would make other things more difficult. For instance, I often redefine the date command (and sometimes title and author) to do something different. If the header entries were placed after the use of theses, things would break for me. I think the creation of an ...EXTRA directive would be better but I've argued for this before and have lost that argument. You can achieve what you want by redefining \title, I would suggest. Not pretty but it works. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.6-937-g60502a
Re: [O] Confused about list indentation
Guido Van Hoecke wrote: I am a bit confused about indentation in the example at node '2.7 Plain Lists' in the Org info file: The last line aligns the word 'him' directly under 'Sean', which is what I expect. The 'He makes a really...' sentence is aligned under the list hyphen, rather than under 'on DVD...' Is this not inconsistent? I'd expect it to be indented two extra positions to the right, similar to the last sentence. I believe the reason for the disparity is that 'He makes a really funny face', is supposed to be associated with 'Peter Jackson being shot by legolas' rather than 'on DVD only'. I believe the example is supposed to show that list items can contain both subsidiary lists and whole paragraphs. If the paragraph were supposed to be associated with the lower level list item it would be indented as you expected. All the best, Leonard
Re: [O] Adding export option for babel language
Hi Chuck, On 2014-05-08 at 12:17, Charles Berry ccbe...@ucsd.edu wrote: I'd like the python code blocks to behave just as they do now, but if I have set (setq org-latex-listings 'pythontex) instead of (setq org-latex-listings 'minted), then instead of wrapping python code blocks with: \begin{minted}[]{python} x+2 print x \end{minted} It should wrap them with \begin{pyconsole} x+2 print x \end{pyconsole} A quick-and-dirty approach to do just that much would be to write an export filter for `src-block' and maybe `inline-src-block', see (info (org) Advanced configuration) http://orgmode.org/worg/dev/org-export-reference.html#filter-system and http://orgmode.org/worg/exporters/filter-markup.html Also, `C-h f org--filter TAB' should give you a buffer of such filter functions (and a couple of false positives) that you might browse. I've briefly looked at the filters. Yes, it seems like that might be one way to do this. But I have a hunch it is already implemented, and that I just don't know how to access it or what variable to set. See: http://orgmode.org/cgit.cgi/org-mode.git/tree/lisp/ox-latex.el#n2280 Where Case 1 is no fontification, Case 3 is minted, and Case 2 is custom. I can see that if `custom-env` is set correctly, it wraps the code exactly as I want above: (custom-env (format \\begin{%s}\n%s\\end{%s}\n custom-env (org-export-format-code-default src-block info) custom-env)) But I'm not sure where to set custom-env, although I know I want to set it to `pyconsole`. -k.
Re: [O] Insert #+BEAMER_HEADER_EXTRA before \begin{document}?
Eric S Fraga e.fr...@ucl.ac.uk writes: On Thursday, 8 May 2014 at 15:38, Sebastien Vauban wrote: [...] The above things are currently (almost, for some) impossible. Changing where the #+BEAMER_HEADER placeholder gets inserted makes them possible and easy. but unfortunately would make other things more difficult. For instance, I often redefine the date command (and sometimes title and author) to do something different. If the header entries were placed after the use of theses, things would break for me. Couldn't you use #+LATEX_HEADER for that sort of thing, then? I think the creation of an ...EXTRA directive would be better but I've argued for this before and have lost that argument. I agree here. Why not make that more transparent and have #+LATEX_HEADER and #+LATEX_HEADER_END as well as #+BEAMER_HEADER and #+BEAMER_HEADER_END ? You can achieve what you want by redefining \title, I would suggest. Not pretty but it works. (Isn't that true for your use case of redefining date, too?) And last but not least: I think the particular use case of adding a short title to a beamer presentation is common enough to deserve proper org mode support. Regards, Andreas
Re: [O] Adding export option for babel language
I figured it out: (setq org-latex-custom-lang-environments '((python pyconsole))) And of course \usepackage{pythontex} somewhere. This is really nice. Now the Org buffer behaves as before, but the exported LaTeX has the python code appear as if it were run right there in an interactive session. I set :export code so the Org results are not shown in the PDF, and PythonTeX re-generates the results and puts them inline! -k. On 2014-05-08 at 15:53, Ken Mankoff mank...@gmail.com wrote: Hi Chuck, On 2014-05-08 at 12:17, Charles Berry ccbe...@ucsd.edu wrote: I'd like the python code blocks to behave just as they do now, but if I have set (setq org-latex-listings 'pythontex) instead of (setq org-latex-listings 'minted), then instead of wrapping python code blocks with: \begin{minted}[]{python} x+2 print x \end{minted} It should wrap them with \begin{pyconsole} x+2 print x \end{pyconsole} A quick-and-dirty approach to do just that much would be to write an export filter for `src-block' and maybe `inline-src-block', see (info (org) Advanced configuration) http://orgmode.org/worg/dev/org-export-reference.html#filter-system and http://orgmode.org/worg/exporters/filter-markup.html Also, `C-h f org--filter TAB' should give you a buffer of such filter functions (and a couple of false positives) that you might browse. I've briefly looked at the filters. Yes, it seems like that might be one way to do this. But I have a hunch it is already implemented, and that I just don't know how to access it or what variable to set. See: http://orgmode.org/cgit.cgi/org-mode.git/tree/lisp/ox-latex.el#n2280 Where Case 1 is no fontification, Case 3 is minted, and Case 2 is custom. I can see that if `custom-env` is set correctly, it wraps the code exactly as I want above: (custom-env (format \\begin{%s}\n%s\\end{%s}\n custom-env (org-export-format-code-default src-block info) custom-env)) But I'm not sure where to set custom-env, although I know I want to set it to `pyconsole`. -k.
Re: [O] Using KOMA and Memoir?
Tonight I have been a bit adventurous and I have seen some success. But before that I tried to understand what lading ox-latex meant and how to do it. I found something here: http://orgmode.org/worg/exporters/koma -letter-export.html and tried it with no luck. Then I thought, org + LaTeX and exporting to PDFworks just fine as long as I stay away from trying KOMA so ox-latex must work... Next I looked up org-latex.el in the directory org-mode version 8.2.5h lives in my computer and started to study the code. I soon found were org-latex-classes are defined and decided to add the code Eric has supplied. Now komaarticle works! This indicates to me that ox-latex has loaded just fine all the time and it is indeed the one from version 8.2.5h that loads. So why didn't it work the way I was told to do it? How much of my .emacs is needed to figure it out, all? Here are the parts I think are relevant. First the very beginning of my .emacs (comments are mixed Swedish and English): ;;; Martins nya .emacs ;;; ;;; (Re)creation started 130819 ;;; Most material comes from .emacs.statler ;;; ;; Colours and fonts and what not ;;; ;; Added 2011-11-04 ;; path till 'egna' lisp-filer (add-to-list 'load-path ~/.emacs.d/my_lisp/) ;; (require 'color-theme-solarized) ;; Added 2011-11-18 ;; Egenvald defaultfont ;;(set-default-font -gohu-gohufont-medium-*-*-*-11-*-*-*-*-*-*-*) ;;(modify-frame-parameters nil '((wait-for-wm . nil))) ;; british spelling (setq ispell-dictionary british) ; To shift focus between frames ;; ;; Added 2013-08-19 ;; from http://www.emacswiki.org/emacs/FrameMove ;; framemove.el is placed in my_lisp ;; ;;(require 'framemove) ;;(windmove-default-keybindings) ;; default prefix is Meta ;;(setq framemove-hook-into-windmove t) ;; Org-mode stuff ;; Added 2014-03-02 ;; to make emacs find org-mode other than default: (add-to-list 'load-path /home/martin/Program/Org-mode/org-8.2.5h/lisp) (add-to-list 'load-path /home/martin/Program/Org-mode/org-8.2.5h/contrib /lisp) (require 'org) ;; ;; Added 2014-04-08 ;; Trying to force ox-latex as per http://orgmode.org/worg/exporters/koma -letter-export.html ;; ;(eval-after-load 'ox-latex ; '(add-to-list 'org-latex-packages-alist '(AUTO babel t) t)) ;; After this follows many lines of tweaks most of which is copied from BerntHansen and none of it related to bable or exporting. This is the stuff I have been using for a while and use every day at work. Then near the end LaTeX and Eric's code (commented out): ;;; ;;; ;;; LaTeX ;;; (org-babel-do-load-languages 'org-babel-load-languages '((latex . t))) ;;; ;;; KOMA ;;; ;(add-to-list 'org-latex-classes ; '(komaarticle \\documentclass{scrartcl} ; (\\section{%s} . \\section*{%s}) ; (\\subsection{%s} . \\subsection*{%s}) ; (\\subsubsection{%s} . \\subsubsection*{%s}) ; (\\paragraph{%s} . \\paragraph*{%s}) ; (\\subparagraph{%s} . \\subparagraph*{%s}))) ;;; So much for Thursday evening. -- Martin Schöön http://hem.bredband.net/b262106/index.html
Re: [O] crossing out tasks
Ian Barton li...@wilkesley.net writes: On 08/05/14 11:12, Sharon Kimble wrote: This is so simple but I can't find a solution. If I have a list of tasks with + in front, when done I can put a + at the end which crosses them out, making it very easy to see what I have left to do. Except, sometimes the preceding task inherits the crossing out too, even though it does not have a + at the end, so how can I stop the inheritance please? Sharon. I seem to remember that Carsten doesn't like strike through faces. Maybe it's his secret plot to stop people using them:) On a more constructive note. Why don't you just make them TODO's and then mark them DONE in the usual way. You should be able to customize the DONE face to a strike through one. I've just converted them from TODOS, and this task-list seemed a simpler and easier idea, but I'll try check-boxes like Nick suggested. Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.4.50.21 signature.asc Description: PGP signature
Re: [O] Questions about mail, MIME, etc.
Peter Davis p...@pfdstudio.com writes: On Thu, May 08, 2014 at 10:34:26PM +0800, Eric Abrahamsen wrote: Peter Davis p...@pfdstudio.com writes: Yeah I got that error too, a while ago, and your message prompted me to look at it. It seems like org-mime is just a bit behind the state of org-export, and fixing that one dead function link is enough to make it work again. I've attached a patch. Excellent! That worked. Thank you! Okay, I'll start a new thread and see if we can get the patch accepted. Generating a message buffer is pretty much hard-coded into org-mime. Once you're in that buffer, though, the (non-interactive) function mml-generate-mime will return the fully encoded mime message as a string -- you could save that to a file and do something else with it. I'm not 100% confident that's the simplest way to do that. Ok, I was able to send the message through gnus, even though I don't (normally) use it as a mail reader. 3) What I'd really like is a multipart/alternative message where one part is text/plain, and looks exactly like the emacs buffer display, and the other part is text/html, and looks like what org would export to html, complete with tables, images, etc. As far as I know, that's exactly what org-mime does! Almost. It looks like org-mime puts the actual contents of the buffer into the text/plain part, including links, etc. that would normally be hidden on display. I think it would be more useful to make the text/plain part contain what would be output from exporting to text. But maybe that's just my preference. org-mime assumes a native 'org export format for the plain text part of the email. That looks like it's hard-coded in `org-mime-compose', unfortunately. Eric
[O] [PATCH] org-mime slightly out of date
Hi, org-mime still includes a call to `org-export-grab-title-from-buffer', which doesn't exist any more. The attached patch does the same the way org-export currently does it (I think). Eric From c967afb70bd7c9039c09d7c7f22388e1eced30fa Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen e...@ericabrahamsen.net Date: Thu, 8 May 2014 22:32:01 +0800 Subject: [PATCH] Update org-mime to current export functions * /contrib/lisp/org-mime.el (org-mime-send-buffer): This function was using `org-export-grab-title-from-buffer', which no longer exists. --- contrib/lisp/org-mime.el | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el index b0007ac..5f874d9 100644 --- a/contrib/lisp/org-mime.el +++ b/contrib/lisp/org-mime.el @@ -269,8 +269,10 @@ export that region, otherwise export the entire body. (defun org-mime-send-buffer (optional fmt) (run-hooks 'org-mime-send-buffer-hook) (let* ((region-p (org-region-active-p)) - (subject (org-export-grab-title-from-buffer)) - (file (buffer-file-name (current-buffer))) + (file (buffer-file-name (current-buffer))) + (subject (if (not file) (buffer-name (buffer-base-buffer)) + (file-name-sans-extension + (file-name-nondirectory file (body-start (or (and region-p (region-beginning)) (save-excursion (goto-char (point-min) (body-end (or (and region-p (region-end)) (point-max))) -- 1.9.2
Re: [O] [BUG] superscripts exported as subscripts by ox-ascii
Suvayu Ali fatkasuvayu+li...@gmail.com writes: Hi, When exporting the following snippets, superscripts are exported as subscripts by the ascii exporter. Org src: - B⁺ → D(K_{s}ππ)K⁺, B → D(K_{s}KK)K⁺, - CPV in B^{±} → D(K_{s}K^{±}π^{∓})K^{±}, and B^{±} → D(K_{s}K^{∓}π^{±})K^{±}, Exported text: • B⁺ → D(K_{s}ππ)K⁺, B → D(K_{s}KK)K⁺, • CPV in B_{±} → D(K_{s}K_{±}π_{∓})K_{±}, and B_{±} → D(K_{s}K_{∓}π_{±})K_{±}, Unfortunately I noticed this after I sent the exported text to a bunch of my collaborators! Thankfully we work for the same institute :). I pushed the obvious fix for this to master. -- Nick
Re: [O] [PATCH] Fix: Capture abort: (error: The mark is not set now, so there is no region)
After I replaced my patch and merged Bastien's fix, I started seeing the error though less frequently than before. It didn't occur in the template I posted, but I started seeing it again in another template. (w org-protocol tag entry (file ~/org/bookmarks.org) * %:description %(org-set-tags)\n %i\n\n %:link\n%? :prepend t :empty-lines-after 1 :clock-in t :clock-resume t) I switched back to my initial patch that was checking if the mark was set before trying to access the region. This worked: the errors disappeared. However, I couldn't understand why mark would be unset in the first place. It turns out that this is a result of the function org-capture-steal-local-variables that is copying mark-active variable from another buffer. This results in an inconsistent state where mark is not set and yet the variable mark-active is set. Emacs functions region-active-p and use-region-p expect the state to be consistent and fail with this error that they won't produce under normal circumstances. Here is the minimal patch that fixes the root cause of this problem: From 3d84403964dec1ac55810883e4e8a812c3ff94fc Mon Sep 17 00:00:00 2001 From: Alex Kosorukoff a...@3form.com Date: Thu, 8 May 2014 20:27:59 -0700 Subject: [PATCH] org-capture: better fix for error The mark is not set now, ... --- lisp/org-capture.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index d57b9e0..3c62b1d 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1590,6 +1590,7 @@ The template may still contain \%?\ for cursor positioning. (goto-char (point-min)) (org-capture-steal-local-variables buffer) (setq buffer-file-name nil) + (setq mark-active nil) ;; %[] Insert contents of a file. (goto-char (point-min)) -- 1.7.0.4 On Tue, Apr 29, 2014 at 4:05 AM, Bastien b...@gnu.org wrote: Hi Alex, Alex Kosorukoff a...@3form.com writes: I noticed a regression in the capture functionality after upgrading org. Capture fails with error in subj fixed, thanks, -- Bastien
[O] (Bug)Open the attachment in the subheading in agenda view
I am wondering if I can open the attachment which is attached to the father heading in agenda view. I think it will be very convenient to open as the way above, and I really do not want to attach the same file to all of the subheadings. I have turned on the inheritance of the properties, but it seems like that the subheadings does not inherit the attachment properties. Is there anyway to solve this problems? Is it a bug?
Re: [O] [PATCH] Fix error prone babel table output format detection
Eric Schulte schulte.e...@gmail.com writes: This looks good to me. Could you reformat the patch with git format-patch and attach the results (this will be easier to apply). Done. I was actually following the instructions in man git-format-patch by not attaching it before, but I will avoid that in future. Also, this patch is small enough to apply without any sort of copyright attribution, but if you think you might make larger contributions in the future, please look over the org contribution instructions [1]. I've completed emacs fsf copyright assignment. I also have another patch that has been on the mailing list for about 2 weeks or so waiting for a reply. From 4122d20f1253c2cbf5e73070ea00665bbc802275 Mon Sep 17 00:00:00 2001 From: Ian Kelling i...@iankelling.org Date: Wed, 30 Apr 2014 21:56:52 -0700 Subject: [PATCH] Fix error prone babel table output format detection * lisp/ob-core.el: Test that all elements are in a list are lists or 'hline instead of just the first. org-babel table output uses different formatting for a list of lists, but detects it incorrectly causing an error. An example of a block causing an error is an emacs lisp source block containing just 1 line: '((1) 2) --- lisp/ob-core.el |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 1348f04..4ddafaf 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -2184,9 +2184,9 @@ code the results are extracted in the syntax of the source ((funcall proper-list-p result) (goto-char beg) (insert (concat (orgtbl-to-orgtbl - (if (or (eq 'hline (car result)) - (and (listp (car result)) - (listp (cdr (car result) + (if (org-every + (lambda (el) (or (listp el) (eq el 'hline))) + result) result (list result)) '(:fmt (lambda (cell) (format %s cell \n)) (goto-char beg) (when (org-at-table-p) (org-table-align))) -- 1.7.10.4
[O] [BUG] Symbol's function definition is void: function-put
I've just tried to start emacs 24.3.90.1 without success, and it showed --8---cut here---start-8--- Warning (initialization): An error occurred while loading `/home/boudiccas/.emacs': Symbol's function definition is void: function-put --8---cut here---end---8--- I eventually tracked it down to lines 2248 and 2284 of org-loaddefs.el this is line 2248 ╭ │(function-put 'org-export-to-buffer 'lisp-indent-function '2) ╰ and this is line 2284 ╭ │(function-put 'org-export-to-file 'lisp-indent-function '2) ╰ It always shows up in 24.3.90.1 and stops it from fully loading, whereas in 24.4.50.x there is no problem. This is the backtrace/debugger for it --8---cut here---start-8--- Debugger entered--Lisp error: (void-function function-put) (function-put (quote org-export-to-buffer) (quote lisp-indent-function) (quote 2)) eval-buffer(#buffer *load* nil /home/boudiccas/.emacs.d/elpa/org-20140505/org-loaddefs.el nil t) ; Reading at buffer position 84568 load-with-code-conversion(/home/boudiccas/.emacs.d/elpa/org-20140505/org-loaddefs.el /home/boudiccas/.emacs.d/elpa/org-20140505/org-loaddefs.el t t) load(org-loaddefs.el t t t) byte-code(\300\301!\210\302\303!\210\302\304!\210\302\305!\210\306\307\310\211\211$\210\302\311!\210\302\312!\207 [make-variable-buffer-local org-table-formula-constants-local require calendar find-func format-spec load org-loaddefs.el t org-macs org-compat] 5) autoload-do-load((autoload org Show the org-mode version in the echo area.\nWith prefix argument HERE, insert it at point.\nWhen FULL is non-nil, use a verbose version string.\nWhen MESSAGE is non-nil, display a message with the version.\n\n(fn optional HERE FULL MESSAGE) t nil) org-version) command-execute(org-version record) execute-extended-command(nil org-version) call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) --8---cut here---end---8--- This is with Org-mode version 8.2.6 (8.2.6-14-g063c8b-elpa @ /home/boudiccas/.emacs.d/elpa/org-20140505/) Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.4.50.21 signature.asc Description: PGP signature
[O] Bug: Literal Example does not work [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]
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. Hi, A very simple literal example below seems not work with M-x org-export-as-html. #+BEGIN_SRC emacs-lisp (save-excursion (goto-char (point-min))) #+END_SRC The HTML output is class=example not emacs-lisp as follows. pre class=example(save-excursion (goto-char (point-min))) /pre It also reproducible on 8.2.6. But it works on org-7.8.11 as follows. pre class=src src-emacs-lisp(span style=color: #a020f0;save-excursion/span (goto-char (point-min))) /pre Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-08 on lamiak, modified by Debian Package: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/) current state: == (setq org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-confirm-shell-link-function 'yes-or-no-p org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-export-latex-default-packages-alist '((AUTO inputenc t) ( fixltx2e nil) ( graphicx t) ( longtable nil) ( float nil) ( wrapfig nil) ( soul t) ( textcomp t) ( marvosym t) ( wasysym t) ( latexsym t) ( amssymb t) \\tolerance=1000) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-blocks '((src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) org-export-first-hook '(org-beamer-initialize-open-trackers) org-export-interblocks '((src org-babel-exp-non-block-elements)) org-export-latex-hyperref-options-format org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-export-latex-classes '((jarticle \\documentclass[a4j]{jarticle} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s})) (article \\documentclass[11pt]{article} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})