[Orgmode] very small font in column view mode

2010-02-09 Thread Christian Wittern
Hi there,

I have been using Org-mode for three years now and everything worked so
perfect or was explained to excruciating detail in the manual that I never
had to write to the mailing list with a question.  However, as the usage
scenario of Org-mode expands (and in fact threatens to take over most of my
life), it seems that I finally arrived at a murky area:

When entering column-view mode, all of a sudden the font for the item to be
displayed becomes very small.  I see a header list for the columns at the
top of the file in normal size, but the item itself is barely readibly, such
a tiny font has been chosen.  I looked all over the place for any suspects,
but could not identify any.  What might be the reason and what kind of cure
is necessary to overcome this problem?

Any help appreciated,

Chris

P.S. And before I forget:  Many thanks to Carsten Dominik and the whole Org
community for such a marvelous tool!

-- 
 Christian Wittern, Kyoto


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: timestamps

2010-02-09 Thread Rares Pop
Thanks for the answer Carsten.

There is any plan to support it in future releases?

Thanks,
Rares

On Tue, Feb 9, 2010 at 12:42 AM, Carsten Dominik
carsten.domi...@gmail.comwrote:


 On Feb 8, 2010, at 5:23 PM, Rares Pop wrote:

  Hi Matt,

 It worked almost everything, with the exception of publishing and
 exporting.
 That doesn't work only if i delete the CLOCK: string before the timestamp.

 Here is the line:
  CLOCK: [2010-02-08 Mon 15:31]--[2010-02-08 Mon 16:32] =  1:01

 I searched through the doco but i didn't not find any solution, to export
 it the way it is.

 Can you give some more ideas?


 Clock lines are currently unconditionally removed during export.
 Mainly because I think they look ugly and nobody wants to see them.

 - Carsten


 Best regards,
 RAres

 On Mon, Feb 8, 2010 at 3:14 PM, Matt Lundin m...@imapmail.org wrote:
 Rares Pop rares@gmail.com writes:

  I'm using orgmode 6.30d, under the OS Ubuntu 8.04 and the general
  idea is to use it to log my work and i'm facing the following issues:
 
* insert a constant timestamp (e.g. i forgot to insert an activity
  that i did yesterday, and i want to log it. Ican't insert a clock
  with previous start and end date)

 You can insert an timestamp with HH:MM by typing C-u C-c !.

 Here is a *very simple* function I use to insert a clock line at point:

 --8---cut here---start-8---
   (defun my-org-insert-old-clock ()
 Insert a clock line interactively at point.
 (interactive)
 (open-line 1)
 (insert CLOCK: )
 (org-time-stamp-inactive t)
 (insert --)
 (org-time-stamp-inactive t)
 (org-clock-update-time-maybe))
 --8---cut here---end---8---

* change a timestamp inserted with a clock log in (e.g. i booked an
  activity to had started at 01:40PM but it actually started at 02:00
  PM, how can i change it to have it delayed 20 minutes later)

 You can change a time stamp by using Shift and the arrow keys. S-left
 and S-right move forward and backward by day. S-up and S-down change
 individual elements of the clock (hour, minutes, etc.).

 See manual section 8.2: Creating timestamps.

* export the org mode document with the clocks timestamp (e.g. i want
  to export the working log with all the timestamp both HTML and PDF
  but i have no success. The clock timestamps are not displayed in
  the output file)

 Are your timestamps in a :LOGBOOK: drawer? If so, you can turn on the
 inclusion of drawers in export by adding the following line to the top
 of your file:

 #+OPTIONS: d:t

 Or you can set org-export-with-drawers to t.

 Hope this helps.
 Matt

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


 - Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-refile to top-level heading

2010-02-09 Thread Nathaniel Flath
Is there a way to use org-refile to refile an item as a top-level heading in
some file?  Looking into this, there only seems to be a way to file as a
subheading.

Thanks,
Nathaniel Flath
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] very small font in column view mode

2010-02-09 Thread Giovanni Ridolfi
Christian Wittern cwitt...@gmail.com writes:

Hi Christian,

 When entering column-view mode, all of a sudden the font for the item to be
 displayed becomes very small. 
 well, I did M-x describe-fontset, so I *think* my fonts are:

 -outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-fontset-startup

and I don't have such problem.

Are you referring to agenda column view?

cheers,
Giovanni

P.S.
 I have been using Org-mode for three years now and everything worked so
 perfect or was explained to excruciating detail in the manual that I never
 had to write to the mailing list with a question.  

this captatio benevolentiae went directly to my fortunes! :-)
or it may also go to the worg quotation page 

orgmode.org/worg/org-quotes


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] very small font in column view mode

2010-02-09 Thread Christian Wittern

Hi Giovanni,


On 2010-02-09 18:16, Giovanni Ridolfi wrote:

Christian Witterncwitt...@gmail.com  writes:


   

When entering column-view mode, all of a sudden the font for the item to be
displayed becomes very small.
 

  well, I did M-x describe-fontset, so I *think* my fonts are:

  -outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-fontset-startup

   

For me, the same would be

Fontset: -*-Monaco-normal-normal-normal-*-18-*-*-*-m-0-fontset-auto1


If I say C-u C-x = on other parts of the buffer, I get a font like this

mac-ct:-*-Monaco-normal-normal-normal-*-18-*-*-*-m-0-iso10646-1 (#x26)

but on column-view lines, I get

mac-ct:-*-Monaco-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x0D)

which is much smaller than what I am used to.

BTW, I forgot to say, this is Emacs 23 on a Mac .



Are you referring to agenda column view?
   


No, my use case is more along the CD database in the manual, except that 
I am working on a catalog of texts.  Occasional it is useful to get an 
overview by displaying all entries in a table, hence I got interested in 
column-view.


All the best,

Christian





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] very small font in column view mode

2010-02-09 Thread Carsten Dominik

Hi Christian,

for a possible solution, please study the docstring of the face org- 
column.


- Carsten

On Feb 9, 2010, at 11:19 AM, Christian Wittern wrote:


Hi Giovanni,


On 2010-02-09 18:16, Giovanni Ridolfi wrote:

Christian Witterncwitt...@gmail.com  writes:



When entering column-view mode, all of a sudden the font for the  
item to be

displayed becomes very small.


 well, I did M-x describe-fontset, so I *think* my fonts are:

 -outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*- 
fontset-startup




For me, the same would be

Fontset: -*-Monaco-normal-normal-normal-*-18-*-*-*-m-0-fontset-auto1


If I say C-u C-x = on other parts of the buffer, I get a font like  
this


   mac-ct:-*-Monaco-normal-normal-normal-*-18-*-*-*-m-0-iso10646-1  
(#x26)


but on column-view lines, I get

   mac-ct:-*-Monaco-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1  
(#x0D)


which is much smaller than what I am used to.

BTW, I forgot to say, this is Emacs 23 on a Mac .



Are you referring to agenda column view?



No, my use case is more along the CD database in the manual, except  
that I am working on a catalog of texts.  Occasional it is useful to  
get an overview by displaying all entries in a table, hence I got  
interested in column-view.


All the best,

Christian





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Org Babel Bug

2010-02-09 Thread Ian Barton
I am using Babel to maintein my .emacs file. When I try to publish I am 
getting a Babel error from one of my org files. The offending section of 
the org file seems to be:


#+BEGIN_SRC emacs-shell
  127.0.0.1 mail.wilkesley.org localhost

  # The following lines are desirable for IPv6 capable hosts
  ::1 ip6-localhost ip6-loopback
  fe00::0 ip6-localnet
  ff00::0 ip6-mcastprefix
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  ff02::3 ip6-allhosts

#+END_SRC

I am using a recent git checkout of org and GNU Emacs 23.1.50.1 
(x86_64-pc-linux-gnu, GTK+ Version 2.18.0).


The backtrace is:

Debugger entered--Lisp error: (error Unmatched block [bug in 
`org-babel-exp-src-blocks'].)

  signal(error (Unmatched block [bug in `org-babel-exp-src-blocks'].))
  error(Unmatched block [bug in `org-babel-exp-src-blocks'].)
  (or (and (re-search-backward org-babel-src-block-regexp ... t) (setq 
progress-marker ...) (org-babel-exp-do-export ... ...)) (save-excursion 
(forward-line 0) (and ... ... ...)) (and (re-search-backward 
org-block-regexp ... t) (setq progress-marker ...) (match-string 0)) 
(error Unmatched block [bug in `org-babel-exp-src-blocks'].))
  (progn (fset (quote cond-progress-marker) (function* ...)) (or (and 
... ... ...) (save-excursion ... ...) (and ... ... ...) (error 
Unmatched block [bug in `org-babel-exp-src-blocks'].)))
  (unwind-protect (progn (fset ... ...) (or ... ... ... ...)) (if 
--cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...)))
  (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) 
(unwind-protect (progn ... ...) (if --cl-letf-bound-- ... ...)))
  (letf ((... ...)) (or (and ... ... ...) (save-excursion ... ...) (and 
... ... ...) (error Unmatched block [bug in 
`org-babel-exp-src-blocks'].)))
  (letf* ((... ...)) (or (and ... ... ...) (save-excursion ... ...) 
(and ... ... ...) (error Unmatched block [bug in 
`org-babel-exp-src-blocks'].)))
  (flet ((cond-progress-marker nil ...)) (or (and ... ... ...) 
(save-excursion ... ...) (and ... ... ...) (error Unmatched block [bug 
in `org-babel-exp-src-blocks'].)))
  org-babel-exp-src-blocks(#(127.0.0.1 mail.wilkesley.org 
localhost\n\n# The following lines are desirable for IPv6 capable 
hosts\n::1 ip6-localhost ip6-loopback\nfe00::0 ip6-localnet\nff00::0 
ip6-mcastprefix\nff02::1 ip6-allnodes\nff02::2 ip6-allrouters\nff02::3 
ip6-allhosts\n 0 240 (fontified nil)) #(emacs-shell 0 11 (fontified 
nil)))
  apply(org-babel-exp-src-blocks #(127.0.0.1 mail.wilkesley.org 
localhost\n\n# The following lines are desirable for IPv6 capable 
hosts\n::1 ip6-localhost ip6-loopback\nfe00::0 ip6-localnet\nff00::0 
ip6-mcastprefix\nff02::1 ip6-allnodes\nff02::2 ip6-allrouters\nff02::3 
ip6-allhosts\n 0 240 (fontified nil)) #(emacs-shell 0 11 (fontified 
nil)))


byte-code(\306\307\211\211\211\211\211\211\211\211#$%\310\311!\211'\205#


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] search for DEADLINE in warning period

2010-02-09 Thread Łukasz Stelmach
Greetings.

Is there a way to search for a timestamp, particularly a DEADLINE, that
is in its warning period?

Eg.

--8---cut here---start-8---

* TODO Pay the rent
  DEADLINE: 2010-03-05 Fri -5d +1m

--8---cut here---end---8---

This is a repeatable item so it's always in TODO state and pollutes my
TODO list for 25 out of 30 days in a month. Doing simple 
`DEADLINE=+5d' does not satisfy me because there are notes I would
like to know about much earlier. That's why I'd like to facilitate the
timestamps' own warning periods.

It seems to be workaroundable by adding a SCHEDULED date

--8---cut here---start-8---

* TODO Pay the rent
  SCHEDULED: 2010-03-01 +1m
  DEADLINE: 2010-03-05 Fri -5d +1m

--8---cut here---end---8---

and searching for `SCHEDULED=now'. But it builds two logs of

--8---cut here---start-8---

  - State DONE   from TODO   [2010-02-01 Mon 14:23]

--8---cut here---end---8---

Is there a cleaner way to do it?

-- 
Miłego dnia,
Łukasz Stelmach



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: search for DEADLINE in warning period

2010-02-09 Thread Bernt Hansen
Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes:

 Greetings.

 Is there a way to search for a timestamp, particularly a DEADLINE, that
 is in its warning period?

 Eg.

 --8---cut here---start-8---

 * TODO Pay the rent
   DEADLINE: 2010-03-05 Fri -5d +1m

 --8---cut here---end---8---

 This is a repeatable item so it's always in TODO state and pollutes my
 TODO list for 25 out of 30 days in a month. Doing simple 
 `DEADLINE=+5d' does not satisfy me because there are notes I would
 like to know about much earlier. That's why I'd like to facilitate the
 timestamps' own warning periods.

 It seems to be workaroundable by adding a SCHEDULED date

 --8---cut here---start-8---

 * TODO Pay the rent
   SCHEDULED: 2010-03-01 +1m
   DEADLINE: 2010-03-05 Fri -5d +1m

 --8---cut here---end---8---

 and searching for `SCHEDULED=now'. But it builds two logs of

 --8---cut here---start-8---

   - State DONE   from TODO   [2010-02-01 Mon 14:23]

 --8---cut here---end---8---

 Is there a cleaner way to do it?

I remove entries from the global TODO lists using the variables
org-agenda-todo-ignore-scheduled, org-agenda-todo-ignore-deadlines,
org-agenda-todo-ignore-with-date

This leaves SCHEDULED and DEADLINE items only on the daily agenda view.

So to see deadlines in the warning period I just go to the agenda for
today (C-c a a) and it shows up.

HTH,
Bernt


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] very small font in column view mode

2010-02-09 Thread Christian Wittern

On 2010-02-09 19:42, Carsten Dominik wrote:

Hi Christian,

for a possible solution, please study the docstring of the face 
org-column.
A wonderful, this is exactly what I need.  And it might be that 
something, maybe a color-theme, inadvertly had changed this, because 
customize tells me that it had been changed outside of customize.  So it 
might be that the culprit was not Org-mode at all?  I have to admit I 
don't really understand what's going on, except that my problem is 
solved now.  Hurray!


Christian





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-refile to top-level heading

2010-02-09 Thread Matt Lundin
Nathaniel Flath flat0...@gmail.com writes:

 Is there a way to use org-refile to refile an item as a top-level
 heading in some file?  Looking into this, there only seems to be a way
 to file as a subheading.

Yes that is indeed possible with the following settings:

(setq org-outline-path-complete-in-steps t)
(setq org-refile-use-outline-path 'file)  

I believe you'll also need to make sure that you have a (:maxlevel . N)
cons cell in your org-refile-targets setting.

Best,
Matt


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] MobileOrg capture question

2010-02-09 Thread Anthony Lander

Hi all,

After I do a pull from mobileOrg, the original captured notes stay in  
the capture area in mobileOrg on my iTouch. Even if I refile the notes  
in emacs and push/resync mobileOrg, I have to delete those captured  
notes manually.


Is this the intended behavior, or is something wrong with my setup?

Thanks,

  -Anthony


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: search for DEADLINE in warning period

2010-02-09 Thread Matt Lundin
Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes:

 Is there a way to search for a timestamp, particularly a DEADLINE, that
 is in its warning period?

 Eg.


 * TODO Pay the rent
   DEADLINE: 2010-03-05 Fri -5d +1m


 This is a repeatable item so it's always in TODO state and pollutes my
 TODO list for 25 out of 30 days in a month. Doing simple 
 `DEADLINE=+5d' does not satisfy me because there are notes I would
 like to know about much earlier. That's why I'd like to facilitate the
 timestamps' own warning periods.

 It seems to be workaroundable by adding a SCHEDULED date


 * TODO Pay the rent
   SCHEDULED: 2010-03-01 +1m
   DEADLINE: 2010-03-05 Fri -5d +1m


 and searching for `SCHEDULED=now'. But it builds two logs of


   - State DONE   from TODO   [2010-02-01 Mon 14:23]


 Is there a cleaner way to do it?

(setq org-agenda-todo-ignore-deadline 'near)

With this setting, your items with a deadline will not show up in your
TODO list until they are within the warning period.

Best,
Matt


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: search for DEADLINE in warning period

2010-02-09 Thread Łukasz Stelmach
Matt Lundin m...@imapmail.org writes:

 Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes:

 Is there a way to search for a timestamp, particularly a DEADLINE, that
 is in its warning period?
[...]

 (setq org-agenda-todo-ignore-deadline 'near)

 With this setting, your items with a deadline will not show up in your
 TODO list until they are within the warning period.

Thanks a lot. That is exactly what I haven't found in the documentation ;-)

-- 
Miłego dnia,
Łukasz Stelmach



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] MobileOrg capture question

2010-02-09 Thread Richard Moreland
Hi Anthony,

This is indeed a bug and will be fixed in the next version.

Thanks,
Richard

On Tue, Feb 9, 2010 at 8:43 AM, Anthony Lander anthonylan...@yahoo.com wrote:
 Hi all,

 After I do a pull from mobileOrg, the original captured notes stay in the
 capture area in mobileOrg on my iTouch. Even if I refile the notes in emacs
 and push/resync mobileOrg, I have to delete those captured notes manually.

 Is this the intended behavior, or is something wrong with my setup?

 Thanks,

  -Anthony


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: search for DEADLINE in warning period

2010-02-09 Thread Łukasz Stelmach
Bernt Hansen be...@norang.ca writes:

 Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes:
 Is there a way to search for a timestamp, particularly a DEADLINE, that
 is in its warning period?
[...]
 I remove entries from the global TODO lists using the variables
 org-agenda-todo-ignore-scheduled, org-agenda-todo-ignore-deadlines,
 org-agenda-todo-ignore-with-date

Matt's solution with 'near symbol is what I was looking for. 

 This leaves SCHEDULED and DEADLINE items only on the daily agenda view.

I use SCHEDULED to /send messages to the future/ and in fact I've got to
try to get rid of SCHEDULED and DEADLINEd TODOs from the agenda view
leaving there only unkeyworderd appointments. I use the
-SCHEDULED=now to hide them until they become relevant
(someday/maybe list). On the other hand DEDLINES are meant to be
completed by the the designated time but they are still TODOs (next
actions) and not appointments or things I've got to do *exactly* on that
date. So I'd like to keep them off of my agenda and on my TODO list. I
think I'll use (i haven't set up my gtd workflow completely yet) only
plain timestamps to make notes show up on the agenda.

-- 
Miłego dnia,
Łukasz Stelmach



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: search for DEADLINE in warning period

2010-02-09 Thread Carsten Dominik


On Feb 9, 2010, at 3:17 PM, Łukasz Stelmach wrote:


Bernt Hansen be...@norang.ca writes:


Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes:
Is there a way to search for a timestamp, particularly a DEADLINE,  
that

is in its warning period?

[...]

I remove entries from the global TODO lists using the variables
org-agenda-todo-ignore-scheduled, org-agenda-todo-ignore-deadlines,
org-agenda-todo-ignore-with-date


Matt's solution with 'near symbol is what I was looking for.


For this variable, `near' means the same as `t', or any non-nil value,  
in fact.


- Carsten



This leaves SCHEDULED and DEADLINE items only on the daily agenda  
view.


I use SCHEDULED to /send messages to the future/ and in fact I've  
got to

try to get rid of SCHEDULED and DEADLINEd TODOs from the agenda view
leaving there only unkeyworderd appointments. I use the
-SCHEDULED=now to hide them until they become relevant
(someday/maybe list). On the other hand DEDLINES are meant to be
completed by the the designated time but they are still TODOs (next
actions) and not appointments or things I've got to do *exactly* on  
that

date. So I'd like to keep them off of my agenda and on my TODO list. I
think I'll use (i haven't set up my gtd workflow completely yet) only
plain timestamps to make notes show up on the agenda.

--
Miłego dnia,
Łukasz Stelmach



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: search for DEADLINE in warning period

2010-02-09 Thread Matt Lundin
Carsten Dominik carsten.domi...@gmail.com writes:

 On Feb 9, 2010, at 3:17 PM, Łukasz Stelmach wrote:

 Bernt Hansen be...@norang.ca writes:

 Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes:
 Is there a way to search for a timestamp, particularly a DEADLINE,
 that
 is in its warning period?
 [...]
 I remove entries from the global TODO lists using the variables
 org-agenda-todo-ignore-scheduled, org-agenda-todo-ignore-deadlines,
 org-agenda-todo-ignore-with-date

 Matt's solution with 'near symbol is what I was looking for.

 For this variable, `near' means the same as `t', or any non-nil value,
 in fact.


Interesting. The docstring for org-agenda-todo-ignore-deadlines seems to
suggest otherwise. Is this documentation inaccurate?

,
| Documentation:
| Non-nil means don't show near deadline entries in the global todo list.
| Near means closer than `org-deadline-warning-days' days.
| The idea behind this is that such items will appear in the agenda anyway.
| See also `org-agenda-todo-ignore-with-date'.
| See also the variable `org-agenda-tags-todo-honor-ignore-options'.
`

Best,
Matt


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org Babel Bug

2010-02-09 Thread Dan Davison
Ian Barton li...@manor-farm.org writes:

 I am using Babel to maintein my .emacs file. When I try to publish I
 am getting a Babel error from one of my org files. The offending
 section of the org file seems to be:

 #+BEGIN_SRC emacs-shell

Hi Ian,

I don't think org-babel supports a language emacs-shell. I'm curious
though; what do these lines do?  Do let us know if there is something
that you feel might be a good feature to add.

Dan


   127.0.0.1 mail.wilkesley.org localhost

   # The following lines are desirable for IPv6 capable hosts
   ::1 ip6-localhost ip6-loopback
   fe00::0 ip6-localnet
   ff00::0 ip6-mcastprefix
   ff02::1 ip6-allnodes
   ff02::2 ip6-allrouters
   ff02::3 ip6-allhosts

 #+END_SRC

 I am using a recent git checkout of org and GNU Emacs 23.1.50.1
 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0).

 The backtrace is:

 Debugger entered--Lisp error: (error Unmatched block [bug in
 org-babel-exp-src-blocks'].)
   signal(error (Unmatched block [bug in `org-babel-exp-src-blocks'].))
   error(Unmatched block [bug in `org-babel-exp-src-blocks'].)
   (or (and (re-search-backward org-babel-src-block-regexp ... t) (setq
 progress-marker ...) (org-babel-exp-do-export ... ...))
 (save-excursion (forward-line 0) (and ... ... ...)) (and
 (re-search-backward org-block-regexp ... t) (setq progress-marker ...)
 (match-string 0)) (error Unmatched block [bug in
 org-babel-exp-src-blocks'].))
   (progn (fset (quote cond-progress-marker) (function* ...)) (or (and
 ... ... ...) (save-excursion ... ...) (and ... ... ...) (error
 Unmatched block [bug in `org-babel-exp-src-blocks'].)))
   (unwind-protect (progn (fset ... ...) (or ... ... ... ...)) (if
 --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...)))
   (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...))
 (unwind-protect (progn ... ...) (if --cl-letf-bound-- ... ...)))
   (letf ((... ...)) (or (and ... ... ...) (save-excursion ... ...)
 (and ... ... ...) (error Unmatched block [bug in
 org-babel-exp-src-blocks'].)))
   (letf* ((... ...)) (or (and ... ... ...) (save-excursion ... ...)
 (and ... ... ...) (error Unmatched block [bug in
 org-babel-exp-src-blocks'].)))
   (flet ((cond-progress-marker nil ...)) (or (and ... ... ...)
 (save-excursion ... ...) (and ... ... ...) (error Unmatched block
 [bug in `org-babel-exp-src-blocks'].)))
   org-babel-exp-src-blocks(#(127.0.0.1 mail.wilkesley.org
 localhost\n\n# The following lines are desirable for IPv6 capable
 hosts\n::1 ip6-localhost ip6-loopback\nfe00::0 ip6-localnet\nff00::0
 ip6-mcastprefix\nff02::1 ip6-allnodes\nff02::2 ip6-allrouters\nff02::3
 ip6-allhosts\n 0 240 (fontified nil)) #(emacs-shell 0 11 (fontified
 nil)))
   apply(org-babel-exp-src-blocks #(127.0.0.1 mail.wilkesley.org
 localhost\n\n# The following lines are desirable for IPv6 capable
 hosts\n::1 ip6-localhost ip6-loopback\nfe00::0 ip6-localnet\nff00::0
 ip6-mcastprefix\nff02::1 ip6-allnodes\nff02::2 ip6-allrouters\nff02::3
 ip6-allhosts\n 0 240 (fontified nil)) #(emacs-shell 0 11 (fontified
 nil)))

 byte-code(\306\307\211\211\211\211\211\211\211\211....#.$.%.\310\311!\211.'\205#


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org Babel Bug

2010-02-09 Thread Eric Schulte
Hi Ian,

The implementation of our block exportation has been bothering me for
some time now.  The attached patch *greatly* simplifies the exportation
code.  Could you please give it a try and let me know if it fixes your
bug?

If so I will apply it to the main repository.

Thanks -- Eric

diff --git a/contrib/babel/lisp/org-babel-exp.el b/contrib/babel/lisp/org-babel-exp.el
index 8ce52b6..b299d57 100644
--- a/contrib/babel/lisp/org-babel-exp.el
+++ b/contrib/babel/lisp/org-babel-exp.el
@@ -73,20 +73,10 @@ results - just like none only the block is run on export ensuring
 none - do not display either code or results upon export
   (interactive)
   (message org-babel-exp processing...)
-  (flet ((cond-progress-marker () (when (and progress-marker ( progress-marker (point)))
-   progress-marker)))
-(or (and (re-search-backward org-babel-src-block-regexp (cond-progress-marker) t)
- (setq progress-marker (match-end 0))
- (org-babel-exp-do-export (org-babel-get-src-block-info) 'block))
-(save-excursion
-  (forward-line 0)
-  (and (org-babel-where-is-src-block-head)
-   (goto-char (org-babel-where-is-src-block-head))
-   (org-babel-exp-do-export (org-babel-get-src-block-info) 'block)))
-(and (re-search-backward org-block-regexp (cond-progress-marker) t)
- (setq progress-marker (match-end 0))
- (match-string 0))
-(error Unmatched block [bug in `org-babel-exp-src-blocks'].
+  (when (member (first headers) org-babel-interpreters)
+(save-excursion
+  (goto-char (match-beginning 0))
+  (org-babel-exp-do-export (org-babel-get-src-block-info) 'block
 
 (defun org-babel-exp-inline-src-blocks (start end)
   Process inline src blocks between START and END for export.
diff --git a/lisp/org-exp-blocks.el b/lisp/org-exp-blocks.el
index 1d43d3a..af53b60 100644
--- a/lisp/org-exp-blocks.el
+++ b/lisp/org-exp-blocks.el
@@ -183,13 +183,15 @@ specified in BLOCKS which default to the value of
 	(setq body (save-match-data (org-remove-indentation body
 	  (unless (memq type types) (setq types (cons type types)))
 	  (save-match-data (interblock start (match-beginning 0)))
-	  (if (setq func (cadr (assoc type org-export-blocks)))
-	  (progn
-(replace-match (save-match-data
+	  (when (setq func (cadr (assoc type org-export-blocks)))
+(let ((replacement (save-match-data
  (if (memq type org-export-blocks-witheld) 
-   (apply func body headers))) t t)
+   (apply func body headers)
+  (when replacement
+(replace-match replacement t t)
 (unless preserve-indent
-		  (indent-code-rigidly (match-beginning 0) (match-end 0) indentation
+  (indent-code-rigidly
+   (match-beginning 0) (match-end 0) indentation)
 	  (setq start (match-end 0)))
 	(interblock start (point-max))
 

Ian Barton li...@manor-farm.org writes:

 I am using Babel to maintein my .emacs file. When I try to publish I
 am getting a Babel error from one of my org files. The offending
 section of the org file seems to be:

 #+BEGIN_SRC emacs-shell
   127.0.0.1 mail.wilkesley.org localhost

   # The following lines are desirable for IPv6 capable hosts
   ::1 ip6-localhost ip6-loopback
   fe00::0 ip6-localnet
   ff00::0 ip6-mcastprefix
   ff02::1 ip6-allnodes
   ff02::2 ip6-allrouters
   ff02::3 ip6-allhosts

 #+END_SRC

 I am using a recent git checkout of org and GNU Emacs 23.1.50.1
 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0).

 The backtrace is:

 Debugger entered--Lisp error: (error Unmatched block [bug in
 org-babel-exp-src-blocks'].)
   signal(error (Unmatched block [bug in `org-babel-exp-src-blocks'].))
   error(Unmatched block [bug in `org-babel-exp-src-blocks'].)
   (or (and (re-search-backward org-babel-src-block-regexp ... t) (setq
 progress-marker ...) (org-babel-exp-do-export ... ...))
 (save-excursion (forward-line 0) (and ... ... ...)) (and
 (re-search-backward org-block-regexp ... t) (setq progress-marker ...)
 (match-string 0)) (error Unmatched block [bug in
 org-babel-exp-src-blocks'].))
   (progn (fset (quote cond-progress-marker) (function* ...)) (or (and
 ... ... ...) (save-excursion ... ...) (and ... ... ...) (error
 Unmatched block [bug in `org-babel-exp-src-blocks'].)))
   (unwind-protect (progn (fset ... ...) (or ... ... ... ...)) (if
 --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...)))
   (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...))
 (unwind-protect (progn ... ...) (if --cl-letf-bound-- ... ...)))
   (letf ((... ...)) (or (and ... ... ...) (save-excursion ... ...)
 (and ... ... ...) (error Unmatched block [bug in
 org-babel-exp-src-blocks'].)))
   (letf* ((... ...)) (or (and ... ... ...) (save-excursion ... ...)
 (and ... ... ...) (error 

Re: [Orgmode] Org Babel Bug

2010-02-09 Thread Dan Davison
Dan Davison davi...@stats.ox.ac.uk writes:

 Ian Barton li...@manor-farm.org writes:

 I am using Babel to maintein my .emacs file. When I try to publish I
 am getting a Babel error from one of my org files. The offending
 section of the org file seems to be:

 #+BEGIN_SRC emacs-shell

 Hi Ian,

 I don't think org-babel supports a language emacs-shell.

Sorry, I think I may have missed the point of your report. org-babel
tangling and export procedures should of course proceed without problems
in the presence of an unknown language block. Could you provide an
example file in which the error occurs? Are you sure that all blocks in
the file are started/terminated correctly? I tried the test file below
containing your emacs-shell block and, for me, it tangles correctly
(just the two emacs lisp blocks), and exports to HTML (all three
blocks), and org-babel-load-file works on it (the two variables have
their values set). Does it work for you?

Dan


* testblock 1
#+begin_src emacs-lisp
(setq testvar1 'testval1) 
#+end_src

* emacs-shell block
#+BEGIN_SRC emacs-shell
  127.0.0.1 mail.wilkesley.org localhost

  # The following lines are desirable for IPv6 capable hosts
  ::1 ip6-localhost ip6-loopback
  fe00::0 ip6-localnet
  ff00::0 ip6-mcastprefix
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  ff02::3 ip6-allhosts

#+END_SRC

* test block 2
#+begin_src emacs-lisp
(setq testvar2 'testval2) 
#+end_src



 I'm curious
 though; what do these lines do?  Do let us know if there is something
 that you feel might be a good feature to add.

 Dan


   127.0.0.1 mail.wilkesley.org localhost

   # The following lines are desirable for IPv6 capable hosts
   ::1 ip6-localhost ip6-loopback
   fe00::0 ip6-localnet
   ff00::0 ip6-mcastprefix
   ff02::1 ip6-allnodes
   ff02::2 ip6-allrouters
   ff02::3 ip6-allhosts

 #+END_SRC

 I am using a recent git checkout of org and GNU Emacs 23.1.50.1
 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0).

 The backtrace is:

 Debugger entered--Lisp error: (error Unmatched block [bug in
 org-babel-exp-src-blocks'].)
   signal(error (Unmatched block [bug in `org-babel-exp-src-blocks'].))
   error(Unmatched block [bug in `org-babel-exp-src-blocks'].)
   (or (and (re-search-backward org-babel-src-block-regexp ... t) (setq
 progress-marker ...) (org-babel-exp-do-export ... ...))
 (save-excursion (forward-line 0) (and ... ... ...)) (and
 (re-search-backward org-block-regexp ... t) (setq progress-marker ...)
 (match-string 0)) (error Unmatched block [bug in
 org-babel-exp-src-blocks'].))
   (progn (fset (quote cond-progress-marker) (function* ...)) (or (and
 ... ... ...) (save-excursion ... ...) (and ... ... ...) (error
 Unmatched block [bug in `org-babel-exp-src-blocks'].)))
   (unwind-protect (progn (fset ... ...) (or ... ... ... ...)) (if
 --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...)))
   (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...))
 (unwind-protect (progn ... ...) (if --cl-letf-bound-- ... ...)))
   (letf ((... ...)) (or (and ... ... ...) (save-excursion ... ...)
 (and ... ... ...) (error Unmatched block [bug in
 org-babel-exp-src-blocks'].)))
   (letf* ((... ...)) (or (and ... ... ...) (save-excursion ... ...)
 (and ... ... ...) (error Unmatched block [bug in
 org-babel-exp-src-blocks'].)))
   (flet ((cond-progress-marker nil ...)) (or (and ... ... ...)
 (save-excursion ... ...) (and ... ... ...) (error Unmatched block
 [bug in `org-babel-exp-src-blocks'].)))
   org-babel-exp-src-blocks(#(127.0.0.1 mail.wilkesley.org
 localhost\n\n# The following lines are desirable for IPv6 capable
 hosts\n::1 ip6-localhost ip6-loopback\nfe00::0 ip6-localnet\nff00::0
 ip6-mcastprefix\nff02::1 ip6-allnodes\nff02::2 ip6-allrouters\nff02::3
 ip6-allhosts\n 0 240 (fontified nil)) #(emacs-shell 0 11 (fontified
 nil)))
   apply(org-babel-exp-src-blocks #(127.0.0.1 mail.wilkesley.org
 localhost\n\n# The following lines are desirable for IPv6 capable
 hosts\n::1 ip6-localhost ip6-loopback\nfe00::0 ip6-localnet\nff00::0
 ip6-mcastprefix\nff02::1 ip6-allnodes\nff02::2 ip6-allrouters\nff02::3
 ip6-allhosts\n 0 240 (fontified nil)) #(emacs-shell 0 11 (fontified
 nil)))

 byte-code(\306\307\211\211\211\211\211\211\211\211...#.$.%.\310\311!\211.'\205#


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Wishlist: indicate language in LaTeX export of literal source examples

2010-02-09 Thread Hsiu-Khuern Tang
Hi Eric,

Thanks for telling me about this solution.  It is somewhat of an
overkill, but I'll take it :)  The listings documentation is also
quite impressive.

-- Hsiu-Khuern.

On Mon, Feb 8, 2010 at 6:11 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Hi Hsiu-Khuern,

 This may be overkill, but you could try the following which will
 indicate the source-code language in the generated .tex

 ;; tell org to use listings
 (setq org-export-latex-listings t)

 If you actually want to use the listings package you can also include
 the following

 ;; you must include the listings package
 (add-to-list 'org-export-latex-packages-alist '( listings))
 ;; if you want colored source code then you need to include the color package
 (add-to-list 'org-export-latex-packages-alist '( color))

 in either case a block such as

 #+begin_src R
 ...
 #+end_src

 will export to

 \lstset{language=R}
 \begin{lstlisting}
 ...
 \end{lstlisting}

 Best -- Eric

 Hsiu-Khuern Tang tan...@gmail.com writes:

 (Resending because of earlier problems -- my apologies if this is a 
 duplicate!)

 Hi,

 Currently, literal examples (#+BEGIN_EXAMPLE and #+BEGIN_SRC) are exported to

 \begin{verbatim}
 ...
 \end{verbatim}

 in LaTeX.  For #+BEGIN_SRC blocks, could we indicate the language in a
 LaTeX comment, e.g.,

 #+BEGIN_SRC R
 ...
 #+END_SRC

 becomes

 % R
 \begin{verbatim}
 ...
 \end{verbatim}


 I'm trying to post-process the LaTeX output, and knowing the language would
 help me.

 Thanks!

 --
 Best,
 Hsiu-Khuern.


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] We need to widen before closing edit buffers

2010-02-09 Thread Dan Davison
At the moment, if we use narrowing in source code edit buffers, then we
need to be very careful that we widen before exiting with C-c '. So
shall we change org-src as below?

Dan

diff --git a/lisp/org-src.el b/lisp/org-src.el
index 1d155cc..a11fac2 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -515,6 +515,7 @@ the language, a switch telling if the content should be in 
a single line.
   (interactive)
   (unless org-edit-src-from-org-mode
 (error This is not a sub-editing buffer, something is wrong...))
+  (widen)
   (let* ((beg org-edit-src-beg-marker)
 (end org-edit-src-end-marker)
 (ovl org-edit-src-overlay)


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] setting org-export-latex-image-default-option on a per file basis?

2010-02-09 Thread Lee Hinman
Hi all,

I'm using org-babel-ditaa to insert a picture into a document I am
writing. This works great, except the inserted image is too small.  By
changing the -s option to ditaa I was able to modify the size of the
image for the HTML export but not for the LaTeX.  I did a little looking
at the .tex file and found this:

\includegraphics[width=10em]{before1.png}

the width=10em is controlled by org-export-latex-image-default-option.
Ideally I'd like to change this value for this file only, something
like an entry in the #+OPTIONS line.  But org-export-plist-vars has that
element set to nil so it isn't configurable via that method.  Does
anyone have a suggestion of how I could tweak this variable on a per
file basis?

Thanks for any suggestions.

-- 
Lee Hinman
hin...@gmail.com


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] We need to widen before closing edit buffers

2010-02-09 Thread Carsten Dominik

Hi Dan,

Yes, please check this in.  Thanks.

- Carsten

On Feb 9, 2010, at 8:19 PM, Dan Davison wrote:

At the moment, if we use narrowing in source code edit buffers, then  
we

need to be very careful that we widen before exiting with C-c '. So
shall we change org-src as below?

Dan

diff --git a/lisp/org-src.el b/lisp/org-src.el
index 1d155cc..a11fac2 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -515,6 +515,7 @@ the language, a switch telling if the content  
should be in a single line.

  (interactive)
  (unless org-edit-src-from-org-mode
(error This is not a sub-editing buffer, something is wrong...))
+  (widen)
  (let* ((beg org-edit-src-beg-marker)
(end org-edit-src-end-marker)
(ovl org-edit-src-overlay)


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] setting org-export-latex-image-default-option on a per file basis?

2010-02-09 Thread Dan Davison
Lee Hinman hin...@gmail.com writes:

 Hi all,

 I'm using org-babel-ditaa to insert a picture into a document I am
 writing. This works great, except the inserted image is too small.  By
 changing the -s option to ditaa I was able to modify the size of the
 image for the HTML export but not for the LaTeX.  I did a little looking
 at the .tex file and found this:

 \includegraphics[width=10em]{before1.png}

 the width=10em is controlled by org-export-latex-image-default-option.
 Ideally I'd like to change this value for this file only, something
 like an entry in the #+OPTIONS line.  But org-export-plist-vars has that
 element set to nil so it isn't configurable via that method.  Does
 anyone have a suggestion of how I could tweak this variable on a per
 file basis?

Hi Lee,

I was just having the same problem. We can use a file-local variable,
for now. 

# Local Variables:
# org-export-latex-image-default-option: width=30em
# End:

This goes near the end of the file according to 
http://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html#Specifying-File-Variables.

Dan


 Thanks for any suggestions.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org Babel Bug

2010-02-09 Thread Eric Schulte
Hi,

Since the patch below greatly simplifies the code, and it has worked in
all my tests, I'm going to apply it now.

Please do let me know if the export problems persist.

Best -- Eric

Eric Schulte schulte.e...@gmail.com writes:

 Hi Ian,

 The implementation of our block exportation has been bothering me for
 some time now.  The attached patch *greatly* simplifies the exportation
 code.  Could you please give it a try and let me know if it fixes your
 bug?

 If so I will apply it to the main repository.

 Thanks -- Eric


 diff --git a/contrib/babel/lisp/org-babel-exp.el 
 b/contrib/babel/lisp/org-babel-exp.el
 index 8ce52b6..b299d57 100644
 --- a/contrib/babel/lisp/org-babel-exp.el
 +++ b/contrib/babel/lisp/org-babel-exp.el
 @@ -73,20 +73,10 @@ results - just like none only the block is run on export 
 ensuring
  none - do not display either code or results upon export
(interactive)
(message org-babel-exp processing...)
 -  (flet ((cond-progress-marker () (when (and progress-marker ( 
 progress-marker (point)))
 -   progress-marker)))
 -(or (and (re-search-backward org-babel-src-block-regexp 
 (cond-progress-marker) t)
 - (setq progress-marker (match-end 0))
 - (org-babel-exp-do-export (org-babel-get-src-block-info) 'block))
 -(save-excursion
 -  (forward-line 0)
 -  (and (org-babel-where-is-src-block-head)
 -   (goto-char (org-babel-where-is-src-block-head))
 -   (org-babel-exp-do-export (org-babel-get-src-block-info) 
 'block)))
 -(and (re-search-backward org-block-regexp (cond-progress-marker) t)
 - (setq progress-marker (match-end 0))
 - (match-string 0))
 -(error Unmatched block [bug in `org-babel-exp-src-blocks'].
 +  (when (member (first headers) org-babel-interpreters)
 +(save-excursion
 +  (goto-char (match-beginning 0))
 +  (org-babel-exp-do-export (org-babel-get-src-block-info) 'block
  
  (defun org-babel-exp-inline-src-blocks (start end)
Process inline src blocks between START and END for export.
 diff --git a/lisp/org-exp-blocks.el b/lisp/org-exp-blocks.el
 index 1d43d3a..af53b60 100644
 --- a/lisp/org-exp-blocks.el
 +++ b/lisp/org-exp-blocks.el
 @@ -183,13 +183,15 @@ specified in BLOCKS which default to the value of
   (setq body (save-match-data (org-remove-indentation body
 (unless (memq type types) (setq types (cons type types)))
 (save-match-data (interblock start (match-beginning 0)))
 -   (if (setq func (cadr (assoc type org-export-blocks)))
 -   (progn
 -(replace-match (save-match-data
 +   (when (setq func (cadr (assoc type org-export-blocks)))
 +(let ((replacement (save-match-data
   (if (memq type org-export-blocks-witheld) 
 -   (apply func body headers))) t t)
 +   (apply func body headers)
 +  (when replacement
 +(replace-match replacement t t)
  (unless preserve-indent
 -   (indent-code-rigidly (match-beginning 0) (match-end 0) 
 indentation
 +  (indent-code-rigidly
 +   (match-beginning 0) (match-end 0) indentation)
 (setq start (match-end 0)))
   (interblock start (point-max))
  


 Ian Barton li...@manor-farm.org writes:

 I am using Babel to maintein my .emacs file. When I try to publish I
 am getting a Babel error from one of my org files. The offending
 section of the org file seems to be:

 #+BEGIN_SRC emacs-shell
   127.0.0.1 mail.wilkesley.org localhost

   # The following lines are desirable for IPv6 capable hosts
   ::1 ip6-localhost ip6-loopback
   fe00::0 ip6-localnet
   ff00::0 ip6-mcastprefix
   ff02::1 ip6-allnodes
   ff02::2 ip6-allrouters
   ff02::3 ip6-allhosts

 #+END_SRC

 I am using a recent git checkout of org and GNU Emacs 23.1.50.1
 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0).

 The backtrace is:

 Debugger entered--Lisp error: (error Unmatched block [bug in
 org-babel-exp-src-blocks'].)
   signal(error (Unmatched block [bug in `org-babel-exp-src-blocks'].))
   error(Unmatched block [bug in `org-babel-exp-src-blocks'].)
   (or (and (re-search-backward org-babel-src-block-regexp ... t) (setq
 progress-marker ...) (org-babel-exp-do-export ... ...))
 (save-excursion (forward-line 0) (and ... ... ...)) (and
 (re-search-backward org-block-regexp ... t) (setq progress-marker ...)
 (match-string 0)) (error Unmatched block [bug in
 org-babel-exp-src-blocks'].))
   (progn (fset (quote cond-progress-marker) (function* ...)) (or (and
 ... ... ...) (save-excursion ... ...) (and ... ... ...) (error
 Unmatched block [bug in `org-babel-exp-src-blocks'].)))
   (unwind-protect (progn (fset ... ...) (or ... ... ... ...)) (if
 --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...)))
   (let* 

Re: [Orgmode] setting org-export-latex-image-default-option on a per file basis?

2010-02-09 Thread Nick Dokos
Dan Davison davi...@stats.ox.ac.uk wrote:

 Lee Hinman hin...@gmail.com writes:
 
  Hi all,
 
  I'm using org-babel-ditaa to insert a picture into a document I am
  writing. This works great, except the inserted image is too small.  By
  changing the -s option to ditaa I was able to modify the size of the
  image for the HTML export but not for the LaTeX.  I did a little looking
  at the .tex file and found this:
 
  \includegraphics[width=10em]{before1.png}
 
  the width=10em is controlled by org-export-latex-image-default-option.
  Ideally I'd like to change this value for this file only, something
  like an entry in the #+OPTIONS line.  But org-export-plist-vars has that
  element set to nil so it isn't configurable via that method.  Does
  anyone have a suggestion of how I could tweak this variable on a per
  file basis?
 
 Hi Lee,
 
 I was just having the same problem. We can use a file-local variable,
 for now. 
 
 # Local Variables:
 # org-export-latex-image-default-option: width=30em
 # End:
 
 This goes near the end of the file according to 
 http://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html#Specifying-File-Variables.
 
 Dan
 

You should also be able to use BIND for this:

#+BIND: org-export-latex-image-default-option width=30em

should do it. I think this should work but I have not tested it.

HTH,
Nick


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-babel and source highlighting

2010-02-09 Thread Nathaniel Flath
Is there a way to get org-babel to highlight the source blocks embedded in
your document in the natural language's source?  All the source shows as
grey for me.

Thanks,
Nathaniel Flath
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-babel and source highlighting

2010-02-09 Thread Eric Schulte
Hi Nathaniel,

There is currently no reliable way to mix other major modes with
Org-mode.  Please see this previous discussion which includes a somewhat
buggy attempt at what you've described.

http://article.gmane.org/gmane.emacs.orgmode/8112/

Best -- Eric

Nathaniel Flath flat0...@gmail.com writes:

 Is there a way to get org-babel to highlight the source blocks embedded in 
 your document in the
 natural language's source?  All the source shows as grey for me. 

 Thanks,
 Nathaniel Flath

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode