[Orgmode] Re: `C-u 2 S-Tab' with `#+STARTUP: odd'

2009-10-12 Thread Michael Brand

Thank you for the fix of the function org-shifttab in org-version 6.31a.

I wonder how the function org-outline-level is intended to work. Should it show 
the outline level or count the stars like in org-version 6.31a and one has to 
take into account `odd' himself to get the outline level when implementing own 
stuff which use e. g. the function org-shifttab?



yes, I agree it would be consistent to adapt the interpretation
of the prefix arg when using odd-levels.

I have fixed this, it is available in git now, and will be in
the next release (6.31).

Thanks!

- Carsten

On Sep 10, 2009, at 1:48 PM, Michael Brand wrote:


I like the org-indent-mode with the soft-indentation but even more I
like the hard-indentation with `#+STARTUP: odd hidestars' instead for
which I have a question.

This is the content of the example file oddeven:
-*- mode: org -*-
#+STARTUP: oddeven hidestars content
* 1 Org Mode
** 1.1 Introduction
*** 1.1.1 Installation

This is the content of the example file odd:
-*- mode: org -*-
#+STARTUP: odd hidestars content
* 1 Org Mode
*** 1.1 Introduction
* 1.1.1 Installation

The different _Emacs-faces_ (colors) for the heading levels are the  same
when comparing the two files. This Emacs-internal adaptation I
appreciate a lot.

C-u 2 S-Tab shows _two_ levels with the file oddeven but only _one_  with
the file odd. Is this how it is intended to work for the file odd?


org-version is 6.30e.



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


Re: [Orgmode] Re: Tagging a region of text without creating a branch

2009-10-12 Thread Carsten Dominik


On Oct 10, 2009, at 5:39 PM, Matt Lundin wrote:


Hi Carsten,

Carsten Dominik wrote:


Yes, this should now work.  Good catch.

You method with the tag on the END line would even be harmful, as it
removes any text after the END line, up to the next heading.

Can you show me the use case for not exporting inline tasks? Maybe I
need to bring that variable back, if there is a good case for it


Now that I am doing more of my writing in org-mode, I plan to use
inline tasks for marking up my drafts with TODOs. These reminders
would be for my eyes only. When I publish the draft to LaTeX or html
for sharing, I would thus prefer that the inline tasks be excluded.


OK, I have re-introduced the variable org-inlinetask-export, as a  
Boolean.

Do we need to be able to set this on a per-file basis?

- Carsten



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


Re: [Orgmode] Extracting agenda information: what encoding?

2009-10-12 Thread Carsten Dominik

Hi DAve,

I have little knowledge about coding systems myself.

Could you please let me know, what if the value of `buffer-file-coding- 
system' in an agenda buffer, when you create the agenda by hand?


Thanks.

- Carsten

On Oct 11, 2009, at 10:22 PM, Dave Milter wrote:


I try this from manual(
http://orgmode.org/manual/Extracting-agenda-information.html#Extracting-agenda-information) 
:


emacs -batch -l ~/.emacs -eval '(org-batch-agenda a)'

and get some garbage on place of not English letters,

encoding guessing software tell me that it is
 Doubly-encoded to UTF-8 from ISO-8859-5, but I unable to recover
text from it.

I used Linux with utf-8 locale, I never faced with encoding problems
in emacs (emacs 23), for example
(message some not English text) print right message to console
if I call it using emacs -batch,

so I have no guess, why org-mode convert my utf-8 text to some strange
encoding, the same thing happened on another machine
with emacs 22, utf-8 locale and completly empty .emacs (a couple of
lines only).

May I should set utf-8 somewhere in org-mode preferences?


___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] The Perl color style

2009-10-12 Thread Water Lin

I try to tag perl-mode to color the Perl code while I am publishing my
org file to html. Here is the example:
---
#+BEGIN_SRC perl-mode
#!/usr/bin/perl
# some comments;

use warnings;
use strict;

print hi;
#+END_SRC
---

But after I convert the content to html, the Perl code is badly
colored, just having some colors for content between .

So, is there a good way to color Perl code in org? What's the tag for
Perl souce code?

Thanks

Water Lin

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: water...@ymail.com
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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


Re: [Orgmode] The Perl color style

2009-10-12 Thread Mikael Fornius
Water Lin water...@ymail.com writes:

 #+BEGIN_SRC perl-mode

For me:

#+BEGIN_SRC perl

is more colorful.

-- 
Mikael Fornius


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


Re: [Orgmode] The Perl color style

2009-10-12 Thread Water Lin
Mikael Fornius m...@abc.se writes:

 Water Lin water...@ymail.com writes:

 #+BEGIN_SRC perl-mode

 For me:

 #+BEGIN_SRC perl

 is more colorful.

I don't know why, when I am using

#+BEGIN_SRC perl

, Emacs will tell me the error:

face-attribute: Invalid face: quote
Could not find config file ~/.tidyrc.  Winging it.


But if I use

#+BEGIN_SRC Perl

which has the capital P, it works but the output is not colorful enough
I think.

Water Lin

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: water...@ymail.com
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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


[Orgmode] problem with example block and headings

2009-10-12 Thread Eric S Fraga
Hello,

This is not a critical problem but I thought I would highlight it.  

If you have an example block which includes lines that look like
org-mode headings, the show/collapse commands get confused.  The two
images attached show the erroneous behaviour for a file with these
contents:

--8---cut here---start-8---
* example blocks
  The following is an example of the contents of a simple org-mode file:
#+begin_example problem with org interpretation of contents
  This is an example of a simple org-mode file
* The main heading
** A sub-heading
** another sub-heading
   - a list
   - second entry
#+end_example
 That example shows the hierarchical structure and the use of lists.
** Further text here
This is more text that is in a sub-section
--8---cut here---end---8---

Although a contrived example, this arose from my use of org-babel-sh
and having output generated that happened to have lines starting with
'* '.  

Note also the indentation of the line immediately after the end of the
example.

thanks,
eric

inline: expanded.jpginline: collapsed.jpg___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Extracting agenda information: what encoding?

2009-10-12 Thread Dave Milter
On 10/12/09, Carsten Dominik carsten.domi...@gmail.com wrote:
 Hi DAve,

 I have little knowledge about coding systems myself.

 Could you please let me know, what if the value of `buffer-file-coding-
 system' in an agenda buffer, when you create the agenda by hand?


I ran org-agenda in emacs, then press a, and
chose in menu Describe coding system, and got:

Coding system for saving this buffer:
  Not set locally, use the default.
Default coding system (for new files):
  U -- utf-8-unix (alias: mule-utf-8-unix)


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


Re: [Orgmode] Extracting agenda information: what encoding?

2009-10-12 Thread Carsten Dominik


On Oct 12, 2009, at 12:59 PM, Dave Milter wrote:


On 10/12/09, Carsten Dominik carsten.domi...@gmail.com wrote:

Hi DAve,

I have little knowledge about coding systems myself.

Could you please let me know, what if the value of `buffer-file- 
coding-

system' in an agenda buffer, when you create the agenda by hand?



I ran org-agenda in emacs, then press a, and
chose in menu Describe coding system, and got:

Coding system for saving this buffer:
 Not set locally, use the default.
Default coding system (for new files):
 U -- utf-8-unix (alias: mule-utf-8-unix)


Could you please do   `C-h v buffer-file-coding-system RET'
Just to be sure that we are talking about the same thing.

Also, could you try to run with the following in .emacs, to see
if the problem disappears?

(eval-after-load org-agenda
  '(defun org-encode-for-stdout (s) s))

Thanks

- Carsten





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


[Orgmode] ECB and org-mode

2009-10-12 Thread Eric S Fraga
Hello!

I use ECB-mode when programming, especially for Java.  Although I used
to have ECB activate and deactivate automatically when entering and
leaving programing language modes, I found it annoying.  I now simply
keep ECB active when I'm programming.  As a result, I noticed that
org-mode is supported quite nicely by ECB (or vice versa depending on
your point of view ;-).  Highly complementary, actually, as it allows
me to have an overview visible at all times regardless of the
expansion of the org-mode file.

There is one minor niggle, however: when I use the method view in
ECB to jump to a different location in my org-mode files, the location
is not made visible as it is when you jump into an org-mode file via
other means.  I note that the variable org-show-hierarchy-above has a
number of options covered but not ECB.  Is there a more general way of
having org-mode show where I am when I've jumped into the middle of a
collapsed section?

Thanks,
eric


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


Re: [Orgmode] Extracting agenda information: what encoding?

2009-10-12 Thread Dave Milter
On 10/12/09, Carsten Dominik carsten.domi...@gmail.com wrote:

 On Oct 12, 2009, at 12:59 PM, Dave Milter wrote:

 On 10/12/09, Carsten Dominik carsten.domi...@gmail.com wrote:
 Hi DAve,

 I have little knowledge about coding systems myself.

 Could you please let me know, what if the value of `buffer-file-
 coding-
 system' in an agenda buffer, when you create the agenda by hand?


 I ran org-agenda in emacs, then press a, and
 chose in menu Describe coding system, and got:

 Coding system for saving this buffer:
  Not set locally, use the default.
 Default coding system (for new files):
  U -- utf-8-unix (alias: mule-utf-8-unix)

 Could you please do   `C-h v buffer-file-coding-system RET'
 Just to be sure that we are talking about the same thing.


buffer-file-coding-system is a variable defined in `C source code'.
Its value is utf-8-unix

 Also, could you try to run with the following in .emacs, to see
 if the problem disappears?

  (eval-after-load org-agenda
'(defun org-encode-for-stdout (s) s))


yes, this fix problem,

may be you be so kind and explain magic?


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


Re: [Orgmode] Re: clearing the state of an org-mode subtree

2009-10-12 Thread Robert Goldman
Nick Dokos wrote:
 Robert P. Goldman rpgold...@sift.info wrote:
 
 ...
 Robert Goldman rpgoldman at sift.info writes:

 Andrew Stribblehill wrote:
 org-mode files are plain text. M-% to do a replacement: once you've
 entered your search term and its replacement, hit ! to replace all
 without question.
 Yes, one can do this, but note that it's not entirely a no-brainer.  You
 need to:

 1.  clear all the check boxes and then recompute all checkbox counts in
 the region.  [this isn't a simple tag replacement]

 2.  replace all non-TODO keywords with TODO.  This is a replacement, but
 not a simple one to do with M-%

 3.  Wipe out all of the notes that were added with state changes.
 Again, this can be done with a replacement command, but it's not a
 trivial one.

 This is one of those cases where automating a task will not pay back the
 investment (at least not to me, individually), so I think I'd better
 just do it by hand.

 ...
 
 Apologies for jumping in without the whole context (I'm buried with work
 and I have not been able to even read the whole thread). I'm not sure
 how to do #1 and #3 above, but I believe that #2 can be done with the
 mapping API (see section A.10 of the org manual) - something like this
 (untested and too simple as it stands - probably won't handle headlines
 without a todo keyword correctly):
 
 (org-map-entries (lambda () (org-todo TODO)) t 'tree)
 
 but it may be worth a try. It may even be possible to extend it to do
 the other stuff.

Thanks, that's very helpful.  That is indeed what I'm looking for --- I
had been thinking in terms of string replacement, but this reminds me
that there are functions that address org trees semantically, based on
the meaning of the entries.

In addition to org-todo, there's also org-reset-checkbox-state-subtree.
 I haven't yet found anything that will find an org-note (so that it can
be removed), but I will look more carefully.

With all of these, it should be possible to put together what I want.

best,
r


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


Re: [Orgmode] Re: clearing the state of an org-mode subtree

2009-10-12 Thread Carsten Dominik


On Oct 12, 2009, at 2:39 PM, Robert Goldman wrote:


Nick Dokos wrote:

Robert P. Goldman rpgold...@sift.info wrote:

...

Robert Goldman rpgoldman at sift.info writes:


Andrew Stribblehill wrote:
org-mode files are plain text. M-% to do a replacement: once  
you've
entered your search term and its replacement, hit ! to replace  
all

without question.
Yes, one can do this, but note that it's not entirely a no- 
brainer.  You

need to:

1.  clear all the check boxes and then recompute all checkbox  
counts in

the region.  [this isn't a simple tag replacement]

2.  replace all non-TODO keywords with TODO.  This is a  
replacement, but

not a simple one to do with M-%

3.  Wipe out all of the notes that were added with state changes.
Again, this can be done with a replacement command, but it's  
not a

trivial one.

This is one of those cases where automating a task will not pay  
back the
investment (at least not to me, individually), so I think I'd  
better

just do it by hand.


...

Apologies for jumping in without the whole context (I'm buried with  
work

and I have not been able to even read the whole thread). I'm not sure
how to do #1 and #3 above, but I believe that #2 can be done with the
mapping API (see section A.10 of the org manual) - something like  
this
(untested and too simple as it stands - probably won't handle  
headlines

without a todo keyword correctly):

(org-map-entries (lambda () (org-todo TODO)) t 'tree)

but it may be worth a try. It may even be possible to extend it to do
the other stuff.


Thanks, that's very helpful.  That is indeed what I'm looking for  
--- I

had been thinking in terms of string replacement, but this reminds me
that there are functions that address org trees semantically, based on
the meaning of the entries.

In addition to org-todo, there's also org-reset-checkbox-state- 
subtree.
I haven't yet found anything that will find an org-note (so that it  
can

be removed), but I will look more carefully.


You should be logging into a drawer - drawer are much easier
to find than individual notes.

- Carsten



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


Re: [Orgmode] Extracting agenda information: what encoding?

2009-10-12 Thread Carsten Dominik

Hi Dave,

On Oct 12, 2009, at 2:32 PM, Dave Milter wrote:


On 10/12/09, Carsten Dominik carsten.domi...@gmail.com wrote:


On Oct 12, 2009, at 12:59 PM, Dave Milter wrote:


On 10/12/09, Carsten Dominik carsten.domi...@gmail.com wrote:

Hi DAve,

I have little knowledge about coding systems myself.

Could you please let me know, what if the value of `buffer-file-
coding-
system' in an agenda buffer, when you create the agenda by hand?



I ran org-agenda in emacs, then press a, and
chose in menu Describe coding system, and got:

Coding system for saving this buffer:
Not set locally, use the default.
Default coding system (for new files):
U -- utf-8-unix (alias: mule-utf-8-unix)


Could you please do   `C-h v buffer-file-coding-system RET'
Just to be sure that we are talking about the same thing.



buffer-file-coding-system is a variable defined in `C source code'.
Its value is utf-8-unix


Also, could you try to run with the following in .emacs, to see
if the problem disappears?

(eval-after-load org-agenda
  '(defun org-encode-for-stdout (s) s))



yes, this fix problem,

may be you be so kind and explain magic?


Before printing to STDOUT, I process text in this way

(defun org-encode-for-stdout (string)
  (if (fboundp 'encode-coding-string)
  (encode-coding-string string buffer-file-coding-system)
string))

This is done in the good intention that this is necessary
to produce the text in the correct encoding.  The code I sent
you in my last mail just replaces this function with a dummy
no-operation function, to skip this encoding step.  Apparently,
at least in your case, this does more harm than good, and frankly,
I am not sure it ever does anything good.  Maybe I implemented this
because a mule-Emacs produced bad output in this way.

I will change it to make the default behavior work for you, and then see
if anyone comes back and complains... :-)

So if you pull again from git, this should work without the snippet  
in .emacs.



- Carsten





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


Re: [Orgmode] ECB and org-mode

2009-10-12 Thread Carsten Dominik

Hi Eric,

you would have to find out which function is the one doing the jumping  
to the
method.  With some luck there will be a hook called after jumping  
somewhere.  With no luck, one can still advise this function.  A good  
function to call for this is org-bookmark-jump-unhide.


HTH

- Carsten

On Oct 12, 2009, at 2:32 PM, Eric S Fraga wrote:


Hello!

I use ECB-mode when programming, especially for Java.  Although I used
to have ECB activate and deactivate automatically when entering and
leaving programing language modes, I found it annoying.  I now simply
keep ECB active when I'm programming.  As a result, I noticed that
org-mode is supported quite nicely by ECB (or vice versa depending on
your point of view ;-).  Highly complementary, actually, as it allows
me to have an overview visible at all times regardless of the
expansion of the org-mode file.

There is one minor niggle, however: when I use the method view in
ECB to jump to a different location in my org-mode files, the location
is not made visible as it is when you jump into an org-mode file via
other means.  I note that the variable org-show-hierarchy-above has a
number of options covered but not ECB.  Is there a more general way of
having org-mode show where I am when I've jumped into the middle of a
collapsed section?

Thanks,
eric


___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] problem with example block and headings

2009-10-12 Thread Carsten Dominik

Hi Eric,

please move the cursor into the example block and press C-c ' (that  
is C-c followed by the single quote.  This will get you into a special  
editing buffer for this snippet.  When you exit by pressing the same  
keys again, you will see what Org does to quote such headlines.


Also, you might enjoy your example even better if you use

  #+begin_src org

instead of

  #+begin_example

HTH

- Carsten

On Oct 12, 2009, at 12:46 PM, Eric S Fraga wrote:


Hello,

This is not a critical problem but I thought I would highlight it.

If you have an example block which includes lines that look like
org-mode headings, the show/collapse commands get confused.  The two
images attached show the erroneous behaviour for a file with these
contents:

--8---cut here---start-8---
* example blocks
 The following is an example of the contents of a simple org-mode  
file:

#+begin_example problem with org interpretation of contents
 This is an example of a simple org-mode file
* The main heading
** A sub-heading
** another sub-heading
  - a list
  - second entry
#+end_example
That example shows the hierarchical structure and the use of  
lists.

** Further text here
This is more text that is in a sub-section
--8---cut here---end---8---

Although a contrived example, this arose from my use of org-babel-sh
and having output generated that happened to have lines starting with
'* '.

Note also the indentation of the line immediately after the end of the
example.

thanks,
eric

 
expanded 
.jpgcollapsed.jpg___

Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Tagging a region of text without creating a branch

2009-10-12 Thread Matt Lundin
At Mon, 12 Oct 2009 09:29:05 +0200,
Carsten Dominik wrote:

 On Oct 10, 2009, at 5:39 PM, Matt Lundin wrote:
 
  Hi Carsten,
 
  Carsten Dominik wrote:
 
  Yes, this should now work.  Good catch.
 
  You method with the tag on the END line would even be harmful, as it
  removes any text after the END line, up to the next heading.
 
  Can you show me the use case for not exporting inline tasks? Maybe I
  need to bring that variable back, if there is a good case for it
 
  Now that I am doing more of my writing in org-mode, I plan to use
  inline tasks for marking up my drafts with TODOs. These reminders
  would be for my eyes only. When I publish the draft to LaTeX or html
  for sharing, I would thus prefer that the inline tasks be excluded.
 
 OK, I have re-introduced the variable org-inlinetask-export, as a
 Boolean. Do we need to be able to set this on a per-file basis?

Thanks Carsten! An option to set per-file would indeed be nice. For
instance, if I'm working on an article, I might want to share one
version of it without visible inline tasks/comments and another with
them.

That said, I suppose I could use local variables to do this.

- Matt


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


[Orgmode] Re: `C-u 2 S-Tab' with `#+STARTUP: odd'

2009-10-12 Thread Carsten Dominik


On Oct 12, 2009, at 9:24 AM, Michael Brand wrote:

Thank you for the fix of the function org-shifttab in org-version  
6.31a.


I wonder how the function org-outline-level is intended to work.  
Should it show the outline level or count the stars like in org- 
version 6.31a and one has to take into account `odd' himself to get  
the outline level when implementing own stuff which use e. g. the  
function org-shifttab?


org-outline-level shows the number of stars, independently of org-odd- 
levels


Use

   (org-reduced-level (org-outline-level))

to get normalized levels.

Inside org, you need to check which function works with what kind
of level, this is unfortunately not entirely abstracted.

HTH

- Carsten





yes, I agree it would be consistent to adapt the interpretation
of the prefix arg when using odd-levels.
I have fixed this, it is available in git now, and will be in
the next release (6.31).
Thanks!
- Carsten
On Sep 10, 2009, at 1:48 PM, Michael Brand wrote:

I like the org-indent-mode with the soft-indentation but even more I
like the hard-indentation with `#+STARTUP: odd hidestars' instead  
for

which I have a question.

This is the content of the example file oddeven:
-*- mode: org -*-
#+STARTUP: oddeven hidestars content
* 1 Org Mode
** 1.1 Introduction
*** 1.1.1 Installation

This is the content of the example file odd:
-*- mode: org -*-
#+STARTUP: odd hidestars content
* 1 Org Mode
*** 1.1 Introduction
* 1.1.1 Installation

The different _Emacs-faces_ (colors) for the heading levels are  
the  same

when comparing the two files. This Emacs-internal adaptation I
appreciate a lot.

C-u 2 S-Tab shows _two_ levels with the file oddeven but only  
_one_  with

the file odd. Is this how it is intended to work for the file odd?


org-version is 6.30e.


- Carsten





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


[Orgmode] org-clock-into-drawer

2009-10-12 Thread Matt Lundin
Hi Carsten,

According to the docstring, the value of org-clock-into-drawer is
derived from org-log-into-drawer.

,
| The default for this variable is the value of `org-log-into-drawer'.
`

I have org-log-into-drawer set to t, and yet org-clock-into-drawer is
nil.

Thus all my new clock entries are now inserted outside of LOGBOOK
drawers. This began to happen quite recently AFAICT.

Thanks,
Matt


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


Re: [Orgmode] Re: Tagging a region of text without creating a branch

2009-10-12 Thread Carsten Dominik


On Oct 12, 2009, at 3:14 PM, Matt Lundin wrote:


At Mon, 12 Oct 2009 09:29:05 +0200,
Carsten Dominik wrote:


On Oct 10, 2009, at 5:39 PM, Matt Lundin wrote:


Hi Carsten,

Carsten Dominik wrote:


Yes, this should now work.  Good catch.

You method with the tag on the END line would even be harmful, as  
it

removes any text after the END line, up to the next heading.

Can you show me the use case for not exporting inline tasks?  
Maybe I
need to bring that variable back, if there is a good case for  
it


Now that I am doing more of my writing in org-mode, I plan to use
inline tasks for marking up my drafts with TODOs. These reminders
would be for my eyes only. When I publish the draft to LaTeX or  
html

for sharing, I would thus prefer that the inline tasks be excluded.


OK, I have re-introduced the variable org-inlinetask-export, as a
Boolean. Do we need to be able to set this on a per-file basis?


Thanks Carsten! An option to set per-file would indeed be nice. For
instance, if I'm working on an article, I might want to share one
version of it without visible inline tasks/comments and another with
them.

That said, I suppose I could use local variables to do this.


Local variables will not work, but #+BIND will.

I guess this will be enough

- Carsten



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


Re: [Orgmode] The Perl color style

2009-10-12 Thread Carsten Dominik


On Oct 12, 2009, at 11:19 AM, Water Lin wrote:


Mikael Fornius m...@abc.se writes:


Water Lin water...@ymail.com writes:


#+BEGIN_SRC perl-mode


For me:

#+BEGIN_SRC perl

is more colorful.


I don't know why, when I am using

#+BEGIN_SRC perl

, Emacs will tell me the error:

face-attribute: Invalid face: quote
Could not find config file ~/.tidyrc.  Winging it.



Are you using htmlize.el as it comes distributed with Org in the  
contrib directory, or some other, older version?  You need 1.36 at  
least.


- Carsten




But if I use

#+BEGIN_SRC Perl

which has the capital P, it works but the output is not colorful  
enough

I think.

Water Lin

--
Water Lin's notes and pencils: http://en.waterlin.org
Email: water...@ymail.com
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-clock-into-drawer

2009-10-12 Thread Carsten Dominik


On Oct 12, 2009, at 3:25 PM, Matt Lundin wrote:


Hi Carsten,

According to the docstring, the value of org-clock-into-drawer is
derived from org-log-into-drawer.

,
| The default for this variable is the value of `org-log-into-drawer'.
`

I have org-log-into-drawer set to t, and yet org-clock-into-drawer is
nil.

Thus all my new clock entries are now inserted outside of LOGBOOK
drawers. This began to happen quite recently AFAICT.


Hi Matt,

how are you setting your variables?

Something like this could happen if you first load org-clock, before  
having
set org-log-into-drawer.  THis can happen, for example, if you do org- 
clock-persistence-insinuate before setting the above variable, or  
before loading your custom-file.


HTH

- Carsten



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


[Orgmode] Searching inside of attachments (pdf, odt)?

2009-10-12 Thread Karl Maihofer

Hi,

does anyone use something like Lucene[*] with orgmode to search inside  
attachments like pdf- and odt-files? At the moment I use org for  
time-planning and a stand-alone Confluence wiki for knowledge  
management (which uses Lucene to index attachments). My knowledge  
management mainly consists of a large amount of pdf-files. If I could  
search inside attachments with org, I could perhaps switch to an  
Emacs-only solution. That would be awesome.


Kind regards,
Karl

[*] http://en.wikipedia.org/wiki/Lucene






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


[Orgmode] Re: add a whole directory as one item to refile targets

2009-10-12 Thread Eraldo Helal
 What is Reference/ supposed to be in this case -- a directory?  Refiling
 only works to headings (or top level headings) in files in org-mode IIRC.
Yes it is supposed to be a directory...

I have org files in many directorys... about like so:
 reference/emacs/emacs.org
 reference/eros/eros.org
 reference/Avalon/Avalon.org
 reference/Gimp/Gimp.org
 reference/office/office.org
 reference/home/home.org
 reference/poems/poems.org
...

What would be a smart way to get a headline from the file inbox.org
named * Erich Fried poems to poems.org?
Considering that poems.org is not part of the agenda nor a refile target.

What I am doing until now is:
 folding the headline (tab)
 cutting the headline (C-k)
 making a split screen (C-x 2)
 changing buffer (C-x o)
 opening poems.org (C-x C-f reference/poems/poems.org)
 pasting headline (C-y)
 changing buffer (C-x o)
 removing split view (C-x 1)

Poems.org is not part of the agenda because it is reference material
and not an active file.
It is also not a refile target because I would have to make every .org
file in all subdirectories a refile target and sometimes the
appropriate file does not yet exist, in which case I need to create
it.

Any ideas?
Do I need to further try to make clear what I mean?

Greetings,
Eraldo


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


Re: [Orgmode] newline in tag menu not working after groupend

2009-10-12 Thread Eraldo Helal
 :endgroup already make a newline, so the extra ones are ignored.


What if I want something like this:

| { [a] antwhere[c] call[i] internet   [p] pharmacy }
|
| [p] Person1[q] Person2(...etc)


How an I get the empty like in between there?
If I do not use a group... it does work!  (with :newline)

| [a] antwhere[c] call[i] internet   [p] pharmacy
|
| [p] Person1[q] Person2(...etc)


at the moment all I get is this:

| { [a] antwhere[c] call[i] internet   [p] pharmacy }
| [p] Person1[q] Person2(...etc)

or the following:;; if I add the :newline after the last group
item and before the group is closed

| { [a] antwhere[c] call[i] internet   [p] pharmacy
| }
| [p] Person1[q] Person2(...etc)


Greetings,
Eraldo


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


Re: [Orgmode] newline in tag menu not working after groupend

2009-10-12 Thread Carsten Dominik


On Oct 12, 2009, at 3:58 PM, Eraldo Helal wrote:


:endgroup already make a newline, so the extra ones are ignored.



What if I want something like this:


You can't.

- Carsten



| { [a] antwhere[c] call[i] internet   [p] pharmacy }
|
| [p] Person1[q] Person2(...etc)


How an I get the empty like in between there?
If I do not use a group... it does work!  (with :newline)

| [a] antwhere[c] call[i] internet   [p] pharmacy
|
| [p] Person1[q] Person2(...etc)


at the moment all I get is this:

| { [a] antwhere[c] call[i] internet   [p] pharmacy }
| [p] Person1[q] Person2(...etc)

or the following:;; if I add the :newline after the last group
item and before the group is closed

| { [a] antwhere[c] call[i] internet   [p] pharmacy
| }
| [p] Person1[q] Person2(...etc)


Greetings,
Eraldo


- Carsten





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


Re: [Orgmode] org-clock-into-drawer

2009-10-12 Thread Matt Lundin
Carsten Dominik wrote:
 
 
 On Oct 12, 2009, at 3:25 PM, Matt Lundin wrote:
 
  Hi Carsten,
 
  According to the docstring, the value of org-clock-into-drawer is
  derived from org-log-into-drawer.
 
  ,
  | The default for this variable is the value of `org-log-into-drawer'.
  `
 
  I have org-log-into-drawer set to t, and yet org-clock-into-drawer is
  nil.
 
  Thus all my new clock entries are now inserted outside of LOGBOOK
  drawers. This began to happen quite recently AFAICT.
 
 Hi Matt,
 
 how are you setting your variables?
 
 Something like this could happen if you first load org-clock, before  
 having
 set org-log-into-drawer.  THis can happen, for example, if you do org- 
 clock-persistence-insinuate before setting the above variable, or  
 before loading your custom-file.

That was it. I had indeed been fiddling around with persistence
variables, which were located before org-log-into-drawer. Sorry for
the false alarm.

Thanks,
Matt



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


[Orgmode] Re: add a whole directory as one item to refile targets

2009-10-12 Thread Carsten Dominik


On Oct 12, 2009, at 3:48 PM, Eraldo Helal wrote:

What is Reference/ supposed to be in this case -- a directory?   
Refiling
only works to headings (or top level headings) in files in org-mode  
IIRC.

Yes it is supposed to be a directory...

I have org files in many directorys... about like so:
reference/emacs/emacs.org
reference/eros/eros.org
reference/Avalon/Avalon.org
reference/Gimp/Gimp.org
reference/office/office.org
reference/home/home.org
reference/poems/poems.org
...

What would be a smart way to get a headline from the file inbox.org
named * Erich Fried poems to poems.org?
Considering that poems.org is not part of the agenda nor a refile  
target.


Well, you need to make it a refile target, that is the
whole point of defining refiling targets.

If you want, you can make yourself a special refile function that  
temporarily installs a long list of files in org-refile-targets.  You  
can use `let' to bind

org-refile-targets, and directory-files to get the files.

For example (untested)

(defun my-refile-to-reference ()
  (interactive)
  (let ((org-refile-targets (list (directory-files ~/Reference/  
'full *.org)

  '(:maxlevel . 1
 (call-interactively 'org-refile)))

Would offer all top-level headlines in any org files in the ~/ 
Reference directory



HTH

- Carsten



What I am doing until now is:
folding the headline (tab)
cutting the headline (C-k)
making a split screen (C-x 2)
changing buffer (C-x o)
opening poems.org (C-x C-f reference/poems/poems.org)
pasting headline (C-y)
changing buffer (C-x o)
removing split view (C-x 1)

Poems.org is not part of the agenda because it is reference material
and not an active file.
It is also not a refile target because I would have to make every .org
file in all subdirectories a refile target and sometimes the
appropriate file does not yet exist, in which case I need to create
it.

Any ideas?
Do I need to further try to make clear what I mean?

Greetings,
Eraldo


- Carsten





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


Re: [Orgmode] problem with example block and headings

2009-10-12 Thread Eric S Fraga
At Mon, 12 Oct 2009 15:09:31 +0200,
Carsten Dominik wrote:
 
 Hi Eric,
 
 please move the cursor into the example block and press C-c ' (that
 is C-c followed by the single quote.  This will get you into a special
 editing buffer for this snippet.  When you exit by pressing the same
 keys again, you will see what Org does to quote such headlines.
 
 Also, you might enjoy your example even better if you use
 
   #+begin_src org
 
 instead of
 
   #+begin_example
 
 HTH
 
 - Carsten

Carsten,

What you suggest is perfectly reasonable in normal circumstances.  My
situation is that I ran into this problem when using org-babel [1],
specifically the sh module.  It generates an example block with the
output verbatim.

I guess the solution is to somehow get the shell command output
converted to not cause the problems...  I'll investigate.  As I said
in my original message, it's not a critical issue!

Thanks,
eric

Footnotes: 
[1]  I wonder whether there should be a separate orb-babel mailing
 list to avoid too much noise in the org-mode list?



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


Re: [Orgmode] ECB and org-mode

2009-10-12 Thread Eric S Fraga
At Mon, 12 Oct 2009 15:06:24 +0200,
Carsten Dominik wrote:
 
 Hi Eric,
 
 you would have to find out which function is the one doing the jumping
 to the
 method.  With some luck there will be a hook called after jumping
 somewhere.  With no luck, one can still advise this function.  A good
 function to call for this is org-bookmark-jump-unhide.

Thanks for the pointer.  The method, in ecb, is tree-buffer-select
which is part of tree-buffer.  I'm still tracing the code but I should
have enough to do what you suggest, especially through advise (there's
no hook that I can see unfortunately).

Thanks again,
eric


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


Re: [Orgmode] problem with example block and headings

2009-10-12 Thread Giovanni Ridolfi
--- Lun 12/10/09, Eric S Fraga ucec...@ucl.ac.uk ha scritto:
 Footnotes: 
 [1]  I wonder whether there should be a separate
 orb-babel mailing list to avoid too much noise 
 in the org-mode list?

what about a tag in the subject line such as:

Subject: [babel] problem with example block and headings

cheers,
 
Giovanni





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


[patch] Re: [Orgmode] problem with example block and headings

2009-10-12 Thread Dan Davison
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi Eric,

 please move the cursor into the example block and press C-c ' (that
 is C-c followed by the single quote.  This will get you into a special
 editing buffer for this snippet.  When you exit by pressing the same
 keys again, you will see what Org does to quote such headlines.

Hmm, and you also see that point jumps around by one character.

Carsten, please consider merging branch ded-org-src at

git://repo.or.cz/org-mode/babel.git

Dan

--8---cut here---start-8---
commit 23b4026937572339a453922bb79a05d1e82597e7
Author: Dan Davison davi...@stats.ox.ac.uk
Date:   Mon Oct 12 12:13:08 2009 -0400

org-src-mode: maintain relative location of point when lines are protected

diff --git a/lisp/org-src.el b/lisp/org-src.el
index 796e914..03e5b45 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -229,6 +229,7 @@ the edited version.
(when org-mode-p
  (goto-char (point-min))
  (while (re-search-forward ^, nil t)
+   (if (eq (org-current-line) line) (setq total-nindent (1+ 
total-nindent)))
(replace-match )))
(org-goto-line (1+ (- line begline)))
(org-move-to-column
@@ -463,7 +464,7 @@ the language, a switch telling if the content should be in 
a single line.
 (total-nindent (+ (or org-edit-src-block-indentation 0)
   org-edit-src-content-indentation))
 (preserve-indentation org-src-preserve-indentation)
-code line col indent)
+(delta 0) code line col indent)
 (untabify (point-min) (point-max))
 (save-excursion
   (goto-char (point-min))
@@ -490,6 +491,7 @@ the language, a switch telling if the content should be in 
a single line.
   (goto-char (point-min))
   (while (re-search-forward
  (if (org-mode-p) ^\\(.\\) ^\\([*]\\|[ \t]*#\\+\\)) nil t)
+   (if (eq (org-current-line) line) (setq delta (1+ delta)))
(replace-match ,\\1)))
 (when (org-bound-and-true-p org-edit-src-picture)
   (setq preserve-indentation nil)
@@ -514,7 +516,7 @@ the language, a switch telling if the content should be in 
a single line.
 (goto-char beg)
 (if single (just-one-space))
 (org-goto-line (1- (+ (org-current-line) line)))
-(org-move-to-column (if preserve-indentation col (+ col total-nindent)))
+(org-move-to-column (if preserve-indentation col (+ col total-nindent 
delta)))
 (move-marker beg nil)
 (move-marker end nil)))
--8---cut here---end---8---




 Also, you might enjoy your example even better if you use

   #+begin_src org

 instead of

   #+begin_example

 HTH

 - Carsten

 On Oct 12, 2009, at 12:46 PM, Eric S Fraga wrote:

 Hello,

 This is not a critical problem but I thought I would highlight it.

 If you have an example block which includes lines that look like
 org-mode headings, the show/collapse commands get confused.  The two
 images attached show the erroneous behaviour for a file with these
 contents:

 --8---cut here---start-8---
 * example blocks
  The following is an example of the contents of a simple org-mode
 file:
 #+begin_example problem with org interpretation of contents
  This is an example of a simple org-mode file
 * The main heading
 ** A sub-heading
 ** another sub-heading
   - a list
   - second entry
 #+end_example
 That example shows the hierarchical structure and the use of
 lists.
 ** Further text here
 This is more text that is in a sub-section
 --8---cut here---end---8---

 Although a contrived example, this arose from my use of org-babel-sh
 and having output generated that happened to have lines starting with
 '* '.

 Note also the indentation of the line immediately after the end of the
 example.

 thanks,
 eric

 
 expanded
 .jpgcollapsed.jpg___
 Emacs-orgmode mailing list
 Remember: 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
 Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: add a whole directory as one item to refile targets

2009-10-12 Thread Sebastian
Am Montag, den 12.10.2009, 15:48 +0200 schrieb Eraldo Helal:
  What is Reference/ supposed to be in this case -- a directory?  Refiling
  only works to headings (or top level headings) in files in org-mode IIRC.
 Yes it is supposed to be a directory...
 
 I have org files in many directorys... about like so:
  reference/emacs/emacs.org
  reference/eros/eros.org
  reference/Avalon/Avalon.org
  reference/Gimp/Gimp.org
  reference/office/office.org
  reference/home/home.org
  reference/poems/poems.org
 ...
 
 What would be a smart way to get a headline from the file inbox.org
 named * Erich Fried poems to poems.org?
 Considering that poems.org is not part of the agenda nor a refile target.
 
 What I am doing until now is:
  folding the headline (tab)
  cutting the headline (C-k)
  making a split screen (C-x 2)
  changing buffer (C-x o)
  opening poems.org (C-x C-f reference/poems/poems.org)
  pasting headline (C-y)
  changing buffer (C-x o)
  removing split view (C-x 1)
 
 Poems.org is not part of the agenda because it is reference material
 and not an active file.
 It is also not a refile target because I would have to make every .org
 file in all subdirectories a refile target and sometimes the
 appropriate file does not yet exist, in which case I need to create
 it.
 
 Any ideas?
 Do I need to further try to make clear what I mean?
 
 Greetings,
 Eraldo
 


Since having so many targets for refiling slows down refiling a lot, I
do this here.


I've set `org-refile-targets' like this (custom-set-variables):

 '(org-refile-targets (quote ((org-agenda-files :maxlevel . 3)
  (sr-org-refile-targets :maxlevel . 2



In addition, I have this here in my setup:



(defvar sr-org-refile-targets nil 
  List of refile targets for Org-remember.
   See `org-refile-targets'.)

(defvar sr-org-refile-dir-excludes  ^[#\\.].*$)
(defvar sr-org-refile-file-excludes ^[#\\.].*$)


(defun sr-find-org-refile-targets
(optional recurse dirs file-excludes dir-excludes)
  Fill the variable `sr-org-refile-targets'.
Optional parameters:
  recurseIf `t', scan the directory recusively.
  dirs   A list of directories to scan for *.org files.
  file-excludes  Regular expression. If a filename matches this regular
expression,
 do not add it to `sr-org-refile-targets'.
  dir-excludes   Regular expression. If a directory name matches this
regular expression,
 do not add it to `sr-org-refile-targets'.
  (let ((targets (or dirs (list org-directory)))
(fex (or file-excludes  ^[#\\.].*$))
(dex (or dir-excludes  ^[#\\.].*$))
path)
(dolist (dir targets)
  (if (file-directory-p dir)
  (let ((all (directory-files dir nil ^[^#\\.].*$)))
(dolist (f all)
  (setq path (concat (file-name-as-directory dir) f))
  (cond
   ((file-directory-p path)
(if (and recurse (not (string-match dex f)))
  (sr-find-org-refile-targets t (list path) fex
dex)))
   ((and (string-match ^[^#\\.].*\\.org$ f) (not
(string-match fex f)))
(setq sr-org-refile-targets (append (list path)
sr-org-refile-targets))
(message Not a directory: %s path))
  )))



(defun sr-add-to-org-refile-targets ( recurse dirs )
  Add a directory to org-refile targets recursively.
  (interactive P\nDdirectory: )
  (sr-find-org-refile-targets
   (if recurse t nil)
   (list dirs)
   sr-org-refile-file-excludes
   sr-org-refile-dir-excludes)
  (message org-refile-targets: \n%s sr-org-refile-targets))






Now I call the function `sr-add-to-org-refile-targets' whenever I need
to add all Org-files in a directory recursively.




Sebastian






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


Re: [Orgmode] problem with example block and headings

2009-10-12 Thread Eric Schulte
Giovanni Ridolfi giovanni.rido...@yahoo.it writes:

 --- Lun 12/10/09, Eric S Fraga ucec...@ucl.ac.uk ha scritto:
 Footnotes: 
 [1]  I wonder whether there should be a separate
 orb-babel mailing list to avoid too much noise 
 in the org-mode list?

 what about a tag in the subject line such as:

 Subject: [babel] problem with example block and headings


I second Giovanni's suggestion.

The Org-mode mailing list is such a nice community I would hate for the
Org-babel discussions to leave it, at least until Carsten kicks us
out :). -- Eric


 cheers,
  
 Giovanni


   


 ___
 Emacs-orgmode mailing list
 Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: `C-u 2 S-Tab' with `#+STARTUP: odd'

2009-10-12 Thread Michael Brand
I wonder how the function org-outline-level is intended to work. 
Should it show the outline level or count the stars like in 
org-version 6.31a and one has to take into account `odd' himself to 
get the outline level when implementing own stuff which use e. g. the 
function org-shifttab?


org-outline-level shows the number of stars, independently of 
org-odd-levels


Use

   (org-reduced-level (org-outline-level))

to get normalized levels.

Inside org, you need to check which function works with what kind
of level, this is unfortunately not entirely abstracted.

HTH

- Carsten


Thank you, exactly what I have missed. Allow me to mention that I would like 
this hint to be added to the Help documentation of org-outline-level where I 
looked before.

There is something more with org-outline-level in org-version 6.31a which I 
still don't understand because I am not aware of some functions used in its 
implementation. I drilled down the quite special situation to the following 
file content. I hope that the indentation of x by three spaces does not get 
lost in the mailing list archive:

-*- eval: (org-mode) -*-
  x

After opening this file and confirming `eval', org-outline-level reports `3' 
(changes when changing the indentation of x) but I expect it to report someting 
like `0', `1000' or `1001' or similar like it does with variations like e. g.

-*- mode: org -*-
  x


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


[Orgmode] How to change colour theme during export

2009-10-12 Thread Dan Davison
How do I set the color theme for fontification of exported source
blocks? I thought maybe I could do it by adding the desired
(color-theme-whatever) to my org-src-mode-hook. But it doesn't seem to
have any effect (although the hook is called). So how should I do it and
why didn't my method work?

Thanks,

Dan

p.s. The bit in org-exp.el (from l. 2334) that (I believe) does the
htmlize-ing looks like this

--8---cut here---start-8---
  (with-temp-buffer
(insert rtn)
(if (functionp mode)
(funcall mode)
  (fundamental-mode))
(font-lock-fontify-buffer) ;; I tried switching this line with the next,
(org-src-mode) ;; but that wasn't it.
(set-buffer-modified-p nil)
(org-export-htmlize-region-for-paste
 (point-min) (point-max
--8---cut here---end---8---


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


Re: [Orgmode] How to change colour theme during export

2009-10-12 Thread Carsten Dominik

Hi Dan,

files which you publish interactively should get the colors you  
currently have active in Emacs.  Stuff published in Org and Worg uses  
color definitions in org.css and worg.css, respectively.  If you  
wanted to change these, you would have to make a different style file.


Check the command `org-export-htmlize-generate-css', that might help.

During export on orgmode.org, also the following setting is activated

   (setq org-export-htmlize-output-type 'css)

making sure that the colors will be taken from the css file.

Also, check out this FAQ:

http://orgmode.org/worg/org-faq.php#preserving-faces-during-batch-export

HTH

- Carsten

On Oct 12, 2009, at 11:06 PM, Dan Davison wrote:


How do I set the color theme for fontification of exported source
blocks? I thought maybe I could do it by adding the desired
(color-theme-whatever) to my org-src-mode-hook. But it doesn't seem to
have any effect (although the hook is called). So how should I do it  
and

why didn't my method work?

Thanks,

Dan

p.s. The bit in org-exp.el (from l. 2334) that (I believe) does the
htmlize-ing looks like this

--8---cut here---start-8---
 (with-temp-buffer
   (insert rtn)
   (if (functionp mode)
   (funcall mode)
 (fundamental-mode))
   (font-lock-fontify-buffer) ;; I tried switching this line with  
the next,

   (org-src-mode) ;; but that wasn't it.
   (set-buffer-modified-p nil)
   (org-export-htmlize-region-for-paste
(point-min) (point-max
--8---cut here---end---8---


___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] columnview and emacsclient (again)

2009-10-12 Thread Memnon Anon
Hi!

I still see this problem with emacsclient and columnview (cf.
http://article.gmane.org/gmane.emacs.orgmode/17568/match= , especially
the links to the pictures).

I cut down my .emacs to a minimum, could someone please again test it
with emacs 23?

0.) change path-to-org-directory to your setup.
1.) Start emacs in server-mode with this .emacs.
2.) Start emacsclient in X, open test.org in emacsclient.
3.) Columnmode should work.
4.) Uncomment one of the commented lines, save .emacs.
5.) Restart Emacs, start emacsclient session in X
6.) Columnmode fails in the emacsclient session.
(Setup still works in a non emacsclient session)

Problem here in:
Emacs 23.1.1 (debian testing) and Emacs 23.1.50 (debian-snapshot)

Thanks ;)

=== .emacs
(setq load-path (cons ~/elisp/org-6.31a/lisp load-path)) ; change!
(setq load-path (cons ~/elisp/org-6.31a/contrib/lisp load-path)) ; change!
(require 'org-install)
(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
(global-set-key \C-cl 'org-store-link)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)
(global-font-lock-mode 1)
(add-hook 'org-mode-hook 'turn-on-font-lock)

(setq org-log-into-drawer LOGBOOK)
(setq org-clock-persist t)
;(org-clock-persistence-insinuate) ;;; Breaks columnview

 Settings remember
;(org-remember-insinuate)  ;;; Breaks columnview
(setq org-directory ~/orgdirectory/)
(setq org-default-notes-file (concat org-directory /organizer.org))
(define-key global-map \C-cr 'org-remember)

(server-mode)
===

= test.org ==
#+PROPERTY: COOKIE_DATA ESTIMATE_ALL 0 0:05 0:10 0:20 0:30 1:00 2:00 3:00
#+COLUMNS: %35ITEM %4TODO %19SCHEDULED %10TAGS %5ESTIMATE{:} %5CLOCKSUM

* Example
:PROPERTIES:
:CATEGORY: example
:END:
** TODO [#B] Fix org columns for emacs client 
   :PROPERTIES:
   :ESTIMATE: 2:00
   :END:
===



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


Re: [Orgmode] columnview and emacsclient (again)

2009-10-12 Thread David Bremner
Memnon Anon wrote:

Hi!

I still see this problem with emacsclient and columnview (cf.
http://article.gmane.org/gmane.emacs.orgmode/17568/match= , especially
the links to the pictures).

I don't much about the causes, but when have this problem, it turns
out that the org-column face is messed up. In particular, it often
seems to get set to 1/10 of a point high or something silly.  

d



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


[Orgmode] Re: columnview and emacsclient (again)

2009-10-12 Thread Memnon Anon
David Bremner brem...@unb.ca writes:

 I don't much about the causes, but when have this problem, it turns
 out that the org-column face is messed up. In particular, it often
 seems to get set to 1/10 of a point high or something silly.  

Interesting. I compared the output of C-u C-x =, they are the same
except one line:

Broken:
xft:-unknown-LMRoman12-normal-normal-normal-*-*-*-*-*-*-0-iso10646-1 (#x14)

Working:
xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1 
(#x0D)

I don't know if this is to be expected...




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