Re: [Orgmode] Bug: lines are commented when they shouldn't

2007-01-09 Thread Carsten Dominik

This is caused by my setting of `comment-start' to # in order
to allow the command `comment-region' to work, which was a recent
request.  However, as you point out, this causes some strange
interaction with word-wrapping.  Until I understand this, I will
remove the setting of comment-start again.

Thanks.

- Carsten

On Jan 9, 2007, at 8:18, Bastien wrote:


Hi Carsten,

===%=
#+TITLE: Title example

* First header

Try to edit this line.  Auto-filling does comment each line after this
#one (- like this). This bug does not happen when you remove the #+..
===%=

I've seen this bug before, but i think it was not in 4.60.

Regards,

--
Bastien


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--
Carsten Dominik
Sterrenkundig Instituut Anton Pannekoek
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bug: lines are commented when they shouldn't

2007-01-09 Thread Carsten Dominik

No, you misunderstand.

#+TITLE is a comment, but it ends at the end of line.  Empty lines
and an outline header produces should be enough separation to make
sure that the line Try... should not be seen as a comment.  But the
leading # is inserted nonetheless when the line autowraps.

- Carsten

On Jan 9, 2007, at 16:13, Leo wrote:


* Bastien (2007-01-09 08:18 +0100) said:
  ^^^

Hi Carsten,

===%=
#+TITLE: Title example

* First header

Try to edit this line.  Auto-filling does comment each line after this
#one (- like this). This bug does not happen when you remove the #+..
===%=

I've seen this bug before, but i think it was not in 4.60.


I think that is just how comment works. I try to add comment in lisp
mode, it has the same behavior. Also I think that is the correct
behavior, because the long line is commented and should stay commented
when auto-fill break it into multiple lines.

--
Leo sdl.web AT gmail.com (GPG Key: 9283AA3F)



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--
Carsten Dominik
Sterrenkundig Instituut Anton Pannekoek
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Bug: lines are commented when they shouldn't

2007-01-09 Thread Leo
* Carsten Dominik (2007-01-09 16:46 +0100) said:
  ^^^
 No, you misunderstand.

 #+TITLE is a comment, but it ends at the end of line.  Empty lines
 and an outline header produces should be enough separation to make
 sure that the line Try... should not be seen as a comment.  But
 the leading # is inserted nonetheless when the line autowraps.

Now I got it. Seems every thing after #+ has been treated as comments.

-- 
Leo sdl.web AT gmail.com (GPG Key: 9283AA3F)



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] a '#' at the beginning of my text lines.

2007-01-09 Thread J. David Boyd


I like to put notes in my TODO items, like

*** TODO yadda yadda yadda 
[CLOCK thing]

The purpose of this note is to 
figure out what I should do with
the whatever, whenever.


However, now I am getting:

*** TODO yadda yadda yadda 
[CLOCK thing]

The purpose of this note is to 
#figure out what I should do with
#the whatever, whenever.



Where did the '#' characters come from, and how do I turn them off?

Dave



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: a '#' at the beginning of my text lines.

2007-01-09 Thread J. David Boyd
[EMAIL PROTECTED] (J. David Boyd) writes:

 I like to put notes in my TODO items, like

 *** TODO yadda yadda yadda 
 [CLOCK thing]

 The purpose of this note is to 
 figure out what I should do with
 the whatever, whenever.


 However, now I am getting:

 *** TODO yadda yadda yadda 
 [CLOCK thing]

 The purpose of this note is to 
 #figure out what I should do with
 #the whatever, whenever.



 Where did the '#' characters come from, and how do I turn them off?

 Dave



Hmm, it has something to do with turning on 'auto-fill-mode'.  If
auto-fill-mode is off, I don't see these. 

I'll have to dig in to this, because I _like_ auto-fill-mode, but I _don't_
like the '#'.

Dave



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: a '#' at the beginning of my text lines.

2007-01-09 Thread Carsten Dominik

This was already described earlier today.

For the time being,

  (add-hook 'org-mode-hook (lambda () (setq comment-start nil)))

should fix this, the next version will have this fixed.

- Carsten

On Jan 9, 2007, at 21:42, J. David Boyd wrote:


[EMAIL PROTECTED] (J. David Boyd) writes:


I like to put notes in my TODO items, like

*** TODO yadda yadda yadda
[CLOCK thing]

The purpose of this note is to
figure out what I should do with
the whatever, whenever.


However, now I am getting:

*** TODO yadda yadda yadda
[CLOCK thing]

The purpose of this note is to
#figure out what I should do with
#the whatever, whenever.



Where did the '#' characters come from, and how do I turn them off?

Dave




Hmm, it has something to do with turning on 'auto-fill-mode'.  If
auto-fill-mode is off, I don't see these.

I'll have to dig in to this, because I _like_ auto-fill-mode, but I 
_don't_

like the '#'.

Dave



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--
Carsten Dominik
Sterrenkundig Instituut Anton Pannekoek
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477




___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: a '#' at the beginning of my text lines.

2007-01-09 Thread Kai Großjohann
[EMAIL PROTECTED] (J. David Boyd) writes:

 I'll have to dig in to this, because I _like_ auto-fill-mode, but I
 _don't_ like the '#'.

Auto fill mode has a fill prefix which is prefixed to every line
when auto filling happens.  (The fill prefix is also used for filling,
e.g. via M-q.)

There is a key for this, see below.  Use it at the beginning of the
line to set the fill prefix to nothing.

Kai

C-x . runs the command set-fill-prefix
  which is an interactive compiled Lisp function in `fill.el'.
It is bound to C-x ..
(set-fill-prefix)

Set the fill prefix to the current line up to point.
Filling expects lines to start with the fill prefix and
reinserts the fill prefix in each resulting line.




___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode