Re: [Orgmode] Automatically indent text when return is hit in an org buffer.

2007-12-17 Thread Carsten Dominik
On Dec 10, 2007 5:31 AM, Daniel Pittman [EMAIL PROTECTED] wrote:
 G'day.  I am a fan of `newline-and-indent', and turn it on for most of
 the modes I routinely use, since it is almost always what I want done.

 org-mode rebinds the return key to `org-return', which acts
 intelligently in the face of tables -- and calls `newline' hard-coded in
 other cases.

 I would like to preserve that intelligence, but also to use
 `newline-and-indent', so generated this patch to implement my desired
 behaviour.

 By default this changes nothing: org behaves exactly the same way as it
 did previously.


 If this isn't the right approach I am happy to rework the patch to
 better match the rest of the software.


 Finally, while I believe that this is a trivial change and will not need
 assignment papers anyway I can note two things:

  * there are copyright assignments from me to the FSF on record already
for Emacs and constituents, so I don't know if I need a new
assignment.

If you have a past-and-future-changes assignment for Emacs, that
would be enough.  Please mail me a PDF copy of the assignment for
my records.  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


Re: [Orgmode] Automatically indent text when return is hit in an org buffer.

2007-12-17 Thread Carsten Dominik
I will take Bastien's patch, thanks to both of you.

- Carsten

On Dec 11, 2007 12:17 PM, Daniel Pittman [EMAIL PROTECTED] wrote:
 Bastien [EMAIL PROTECTED] writes:
  Daniel Pittman [EMAIL PROTECTED] writes:
 
  G'day.  I am a fan of `newline-and-indent', and turn it on for most
  of the modes I routinely use, since it is almost always what I want
  done.

 [...]

  I think having a new option is not the best solution.  I would prefer
  to preserve the distinction between the two commands (RET and C-j).
 
  The patch below does this: define org-return-indent and bind it to
  C-j.  Whether you want to bind it to RET is up to you.

 Well, the approach seems perfectly reasonable to me, and I can achieve
 the same result; I fully support your approach.

 [...]

  If this isn't the right approach I am happy to rework the patch to
  better match the rest of the software.
 
  Thanks for pointing out this issue and for the patch!  I don't know
  what Carsten will do with this, but having two solutions is certainly
  good :)

 Mmm.  I suspect that your approach is the better one; it is more in
 keeping with the rest of Emacs, I think, and certainly achieves my goal.

 Thanks,
 Daniel
 --
 Daniel Pittman [EMAIL PROTECTED]   Phone: 03 9428 6922
 1/130-132 Stawell St, Richmond  Web: http://www.cyber.com.au
 Cybersource: Australia's Leading Linux and Open Source Solutions Company



 ___
 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] Automatically indent text when return is hit in an org buffer.

2007-12-11 Thread Daniel Pittman
Bastien [EMAIL PROTECTED] writes:
 Daniel Pittman [EMAIL PROTECTED] writes:

 G'day.  I am a fan of `newline-and-indent', and turn it on for most
 of the modes I routinely use, since it is almost always what I want
 done.

[...]

 I think having a new option is not the best solution.  I would prefer
 to preserve the distinction between the two commands (RET and C-j).

 The patch below does this: define org-return-indent and bind it to
 C-j.  Whether you want to bind it to RET is up to you.

Well, the approach seems perfectly reasonable to me, and I can achieve
the same result; I fully support your approach.

[...]

 If this isn't the right approach I am happy to rework the patch to
 better match the rest of the software.

 Thanks for pointing out this issue and for the patch!  I don't know
 what Carsten will do with this, but having two solutions is certainly
 good :)

Mmm.  I suspect that your approach is the better one; it is more in
keeping with the rest of Emacs, I think, and certainly achieves my goal.

Thanks,
Daniel
-- 
Daniel Pittman [EMAIL PROTECTED]   Phone: 03 9428 6922
1/130-132 Stawell St, Richmond  Web: http://www.cyber.com.au
Cybersource: Australia's Leading Linux and Open Source Solutions Company


___
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