Re: [O] Exporting inline code sections

2012-08-14 Thread Ken Williams


 -Original Message-
 From: Bastien Guerry [mailto:bastiengue...@googlemail.com]
 Sent: Monday, August 13, 2012 4:56 PM
 Ken Williams ken.willi...@windlogics.com 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

2012-08-14 Thread Ken Williams


 -Original Message-
 From: nicholas.do...@hp.com [mailto:nicholas.do...@hp.com]
 Sent: Monday, August 13, 2012 6:34 PM

 Ken Williams ken.willi...@windlogics.com 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

2012-08-14 Thread Nick Dokos
Ken Williams ken.willi...@windlogics.com 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

2012-08-14 Thread Ken Williams


 -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

2012-08-13 Thread Ken Williams


 -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.



Re: [O] Exporting inline code sections

2012-08-13 Thread Bastien
Hi Ken,

Ken Williams ken.willi...@windlogics.com 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

2012-08-13 Thread Ken Williams


 -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

2012-08-13 Thread Nick Dokos
Ken Williams ken.willi...@windlogics.com 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