Re: [O] how to change the headline starter *

2011-07-16 Thread harven
Carsten Dominik carsten.dominik at gmail.com writes:

 
 BTW, this discussion has happened in the mailing list
 before several times - a FAQ entry might indeed be
 appropriate.
 
 - Carsten

Let me apologize for having started the thread then.
Sincerely,
--
Harven





Re: [O] how to change the headline starter *

2011-07-15 Thread harven
Achim Gratz Stromeko at nexgo.de writes:

 
 Bastien bzg at altern.org writes:
  If you can go through Org's code (or motivate someone to go thru the
  code for you) and check where the * is hardcoded instead of being
  inherited from outline-mode that would help a lot, because I'm busy
  with other changes I find more important right now.
 
 There's roughly 100 places in Org where \\*+ is hardcoded (there may
 be false positives and negatives)

There are a lot of false positives coming from the wildcards appearing in
regular expressions. The * header seems to be hardcoded as  ?* and I get less
than 30 matches for  \\?\\* for the 6.33 version of org-mode. 

org-archive.el.gz1
org-agenda.el.gz 1
org-clock.el.gz  2
org-datetree.el.gz   1
org-freemind.el.gz   1
org-habit.el.gz  1
org-html.el.gz   1
org-indent.el.gz 1
org-inlinetask.el.gz 2
org-list.el.gz   1
org.el.gz   14

Once the sources have been downloaded and marked in *Ibuffer*, I got these
numbers using

M-x ibuffer-do-eval RET
   (print (concat buffer-file-name(number-to-string (how-many  \\?\\*)))
(get-buffer *scratch*)) RET

I am assuming that the org files all start with a org- prefix. Am I right ?

Hope that helps




Re: [O] how to change the headline starter *

2011-07-15 Thread harven
harven harven at free.fr writes:

 
 Achim Gratz Stromeko at nexgo.de writes:
 
  
  Bastien bzg at altern.org writes:
   If you can go through Org's code (or motivate someone to go thru the
   code for you) and check where the * is hardcoded instead of being
   inherited from outline-mode that would help a lot, because I'm busy
   with other changes I find more important right now.
  
  There's roughly 100 places in Org where \\*+ is hardcoded (there may
  be false positives and negatives)
 
 There are a lot of false positives coming from the wildcards appearing in
 regular expressions. 

Sorry, I misunderstood what you were looking for. Indeed, these must also
be taken in account. And also org-indent-outline-re, I guess.

Sincerely,
-- 
Harven




Re: [O] how to change the headline starter *

2011-07-14 Thread harven


- Mail Original -
De: Bastien b...@altern.org
À: Darlan Cavalcante Moreira darc...@gmail.com
Cc: harven har...@free.fr, emacs-orgmode@gnu.org
Envoyé: Samedi 2 Juillet 2011 11h48:52 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: Re: [O] how to change the headline starter *

Hi Darlan,

Darlan Cavalcante Moreira darc...@gmail.com writes:

 I don't think this is possible. The * as a headline starter seems to be
 hard-coded in org.

I confirm this is not possible, it's hardcoded in outline-mode, and Org
is derived from this mode.

As this is a FAQ, I added an entry in Worg/org-faq.org

Cheers,

-- 
 Bastien


Sorry for the late response. The * as a headline character is not hard-coded
in outline-mode. The headline character can be in fact any regexp, and is
specified in the variable outline-regexp defined in outline.el. Its default
value is [*\f]+.

It is howewer hard-coded as a * e.g. in org-indent.el 
(e.g. in org-indent-initialize), and a change to outline-regexp breaks
org-mode.

BUG. How to reproduce. 
Starting with emacs -Q (this is emacs 23.2 together with org-mode 6.33),
execute in the scratch buffer
(setq outline-regexp [-\f]+)
so as to use - as the headline starter character in outline mode.
Switch to another buffer, enter the text

- first heading 
-- second heading
   some stuff here

Activate org-mode. M-x org-mode.

Then go to the first heading. TAB folds the text as expected.
Go to the second heading. TAB inserts a TAB instead of folding 
the second heading.

Sincerely,
--
Harven



Re: [O] how to change the headline starter *

2011-07-14 Thread harven

 b...@altern.org writes:

 har...@free.fr writes:
 
  (setq outline-regexp [-\f]+)
  so as to use - as the headline starter character in outline mode.
  Switch to another buffer, enter the text
 
  - first heading
  -- second heading
 some stuff here
 
  Activate org-mode. M-x org-mode.
 
 You should not do this.  org-mode lists start with a -, using
 this character for headlines will just confuse things.

Let me rephrase my message then.

BUG. How to reproduce.
Starting with emacs -Q (this is emacs 23.2 together with org-mode 6.33),
execute in the scratch buffer
(setq outline-regexp [•\f]+)
so as to use a bullet as the headline starter character in outline mode.
Switch to another buffer, enter the text

• first heading
•• second heading
   some stuff here

Activate org-mode. M-x org-mode.

Then go to the first heading. TAB folds the text as expected.
Go to the second heading. TAB inserts a TAB instead of folding
the second heading.

 Can't you live with the * as the headline character?

That's a pretty rude answer, I must say. I don't know a single
language (language as e.g. english, russian, spanish...) that
uses * as an headline character. BTW, I know that bugs should be
reported through the bug tracker, I will do that asap, and
no, I don't have a patch, I don't understand how org-mode
works.

-- 
Harven



[O] how to change the headline starter *

2011-06-13 Thread harven
Hi, 
is it possible to change the headline starter, for example from * to - ?
thanks,
--
Harven



[O] problem with utf8 todo keywords

2011-06-13 Thread harven
Hi,

I use emacs 23.2.1 together with org 6.33.
I am trying to add the character ▶ as a todo keyword with no success.

Starting with emacs -Q, I execute the following 
code in the scratch buffer
(setq org-todo-keywords
'((sequence \u25b6 ok)
  (sequence \u25b8 ok)))
Then I open a simple .org file containing

* ▶ first
* ▸ second

Only the second keyword is highlighted. 
Why is it not the case with the first keyword ?

Thanks,
--
Harven