Re: [O] Exporting inline code sections
> -Original Message- > From: nicholas.do...@hp.com [mailto:nicholas.do...@hp.com] > Sent: Tuesday, August 14, 2012 10:20 AM > > You might want to try edebug instead of the standard debugger, MUCH better, thanks! -Ken CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.
Re: [O] Exporting inline code sections
Ken Williams wrote: > > C-h v org-src-preserve-indentation RET > > Okay, I was stepping through org-edit-src-exit with the emacs debugger, get= > ting my bearings - but now for the life of me I can't get the debugger to t= > rigger when entering that function anymore. I do `M-x debug-on-entry org-e= > dit-src-exit`, then put my point in a table.el table and hit `C-c '`, then = > hit `C-c '` again to exit the editing buffer, and no debugging happens. Ca= > n someone think of why that might be? > You might want to try edebug instead of the standard debugger, but the following steps might help in any case (with appropriate translations). I have had such problems and I try the following steps (in increasing order of desperation): o quitting out of any existing debug sessions and/or error backtraces and try again. o M-x top-level and try again. o reload the file (uncompiled) and redo the M-x edebug-defun - btw, there are convenient shorthands: C-M-x to reevaluate the defun and turn off edebug and C-u C-M-x to enable edebug on the defun. Then try again. o restart emacs and try again. o reboot the machine and try again :-) Nick
Re: [O] Exporting inline code sections
> -Original Message- > From: nicholas.do...@hp.com [mailto:nicholas.do...@hp.com] > Sent: Monday, August 13, 2012 6:34 PM > > Ken Williams wrote: > > > The other thing I just noticed was that every time I edit a table.el > > table with C-c ', two more spaces get inserted to the left of the > > table when it's reinserted into the org buffer. I tried to find where > > in the code that's happening (probably in org-edit-src-exit?) but I > > Yes. > > > couldn't quite see it. > > C-h v org-src-preserve-indentation RET Okay, I was stepping through org-edit-src-exit with the emacs debugger, getting my bearings - but now for the life of me I can't get the debugger to trigger when entering that function anymore. I do `M-x debug-on-entry org-edit-src-exit`, then put my point in a table.el table and hit `C-c '`, then hit `C-c '` again to exit the editing buffer, and no debugging happens. Can someone think of why that might be? Otherwise I have to try to simulate emacs in my head to see what this code is doing, and that's not going to be pretty. =) -Ken CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.
Re: [O] Exporting inline code sections
> -Original Message- > From: Bastien Guerry [mailto:bastiengue...@googlemail.com] > Sent: Monday, August 13, 2012 4:56 PM > Ken Williams writes: > > > FWIW, I just downloaded 7.8.11 and confirmed that the problem still > > exists there. > > Now fixed in git, thanks. > Just tested it, works great, thanks. -Ken CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.
Re: [O] Exporting inline code sections
Ken Williams wrote: > The other thing I just noticed was that every time I edit a table.el > table with C-c ', two more spaces get inserted to the left of the > table when it's reinserted into the org buffer. I tried to find where > in the code that's happening (probably in org-edit-src-exit?) but I Yes. > couldn't quite see it. C-h v org-src-preserve-indentation RET Nick
Re: [O] Exporting inline code sections
> -Original Message- > From: Bastien Guerry [mailto:bastiengue...@googlemail.com] > Sent: Monday, August 13, 2012 4:56 PM > > Now fixed in git, thanks. Such service! =) > > Yes. Patch welcome! I'll have a shot at it. I'm very bad at elisp though. The other thing I just noticed was that every time I edit a table.el table with C-c ', two more spaces get inserted to the left of the table when it's reinserted into the org buffer. I tried to find where in the code that's happening (probably in org-edit-src-exit?) but I couldn't quite see it. -Ken CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.
Re: [O] Exporting inline code sections
Hi Ken, Ken Williams writes: > FWIW, I just downloaded 7.8.11 and confirmed that the problem still > exists there. Now fixed in git, thanks. > I wonder if the inline-code code could use a little love in general. > Another thing that would be nice to accomplish with it is to be able to > control the markup - right now it forces =code= markers around the output, > but it might be nice to let the result flow more naturally in whatever > paragraph it's part of. That would be great for stuff like report writing, > where statistics calculated dynamically could be put into the report > text. Yes. Patch welcome! -- Bastien
Re: [O] Exporting inline code sections
> -Original Message- > From: Ken Williams > Sent: Monday, August 13, 2012 3:37 PM > > I'm still at version 7.8.03, apologies if this has been addressed in a later > version already. FWIW, I just downloaded 7.8.11 and confirmed that the problem still exists there. I wonder if the inline-code code could use a little love in general. Another thing that would be nice to accomplish with it is to be able to control the markup - right now it forces =code= markers around the output, but it might be nice to let the result flow more naturally in whatever paragraph it's part of. That would be great for stuff like report writing, where statistics calculated dynamically could be put into the report text. -Ken CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.
[O] Exporting inline code sections
Hi, I noticed that exporting a document to HTML when "exports" is set to "both" gives an error. Here's an example document: - #+TITLE: Example Doc #+PROPERTY: exports both The result is src_R{3+4} =[1] 7=. - The stack trace looks like this: - Debugger entered--Lisp error: (void-function nil) nil("%flags") replace-regexp-in-string("%flags" nil "#+BEGIN_SRC R%flags\n3+4\n#+END_SRC" t t) org-fill-template("#+BEGIN_SRC %lang%flags\n%body\n#+END_SRC" (("lang" . "R") ("flags") ("body" . "3+4"))) org-babel-exp-code(("R" "3+4" ((:comments . "") (:shebang . "") (:cache . "") (:padline . "") (:noweb . "") (:tangle . "") (:exports . "both") (:results . "replace") (:session . "none" org-babel-exp-do-export(("R" "3+4" ((:comments . "") (:shebang . "") (:cache . "") (:padline . "") (:noweb . "") (:tangle . "") (:exports . "both") (:results . "replace") (:session . "none"))) inline) org-babel-exp-inline-src-blocks(1 83) #[(pair) "\211A@)\n \"\207" [pair x start end] 4]((src org-babel-exp-inline-src-blocks)) mapcar(#[(pair) "\211A@)\n \"\207" [pair x start end] 4] ((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks))) interblock(1 83) byte-code("\306\307\211\211\211\211\211\211\211\211\211\211+,-./0\310\311!\2111\205) - I'm still at version 7.8.03, apologies if this has been addressed in a later version already. -- Ken Williams, Senior Research Scientist WindLogics http://windlogics.com CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.