Re: [O] Ctl-E doesn't go to end of line?

2011-05-18 Thread Mark S.
Thanks Nick  Bernt,

Setting 'line-move-visual' to nil does seem to fix things. But 
org-special-ctl-a/e was good to know about too, since I don't mind if org 
doesn't go all the way to the end on a line that is a header with tags.

Thanks again!
Mark  



--- On Tue, 5/17/11, Nick Dokos nicholas.do...@hp.com wrote:

 From: Nick Dokos nicholas.do...@hp.com
 Subject: Re: [O] Ctl-E doesn't go to end of line?
 To: Bernt Hansen be...@norang.ca
 Cc: emacs-orgmode@gnu.org, Mark S. throa...@yahoo.com, 
 nicholas.do...@hp.com
 Date: Tuesday, May 17, 2011, 9:58 PM
 Bernt Hansen be...@norang.ca
 wrote:
 
   Isn't this the same as setting line-move-visual
 to nil? Just pretend
   it's an org-mode option.
  
  Could be :)  I didn't find any details about that
 var when I looked at
  the docstrings for the functions involved.
  
 
 There's some documentation about it in the Emacs manual,
 section 7.2,
 Changing the location of point. It seems harmless to set
 it to nil
 (restores emacs 23 default behavior wrt long lines) and
 it's probably
 going to solve Mark's problem.
 
 Nick
 
 




[O] Ctl-E doesn't go to end of line?

2011-05-17 Thread Mark S.
Hello,

In org-mode, Ctl-E is bound to org-end-of-line. However, this doesn't appear to 
take you to the actual end of line as it does in the regular modes. Instead, it 
appears to take you out to the default line fill -- even if your specified line 
fill is much shorter or much longer than the default.

This is annoying, since my fingers are already typing ahead, and sometimes I 
lose stuff just because the cursor didn't go to the real end of line.

Is this the desired behavior? And how can I change it to the expected true 
end of line?

Thanks!
Mark
Org-mode 7.5
Emacs 23.2.1 (i386-mingw-nt5.1.2600)
Windows XP



Re: [O] Ctl-E doesn't go to end of line?

2011-05-17 Thread Bernt Hansen
Mark S. throa...@yahoo.com writes:

 Hello,

 In org-mode, Ctl-E is bound to org-end-of-line. However, this doesn't
 appear to take you to the actual end of line as it does in the regular
 modes. Instead, it appears to take you out to the default line fill --
 even if your specified line fill is much shorter or much longer than
 the default.

 This is annoying, since my fingers are already typing ahead, and
 sometimes I lose stuff just because the cursor didn't go to the real
 end of line.

 Is this the desired behavior? And how can I change it to the expected true 
 end of line?

Hi Mark,

Look at org-special-ctrl-a/e.

-Bernt



Re: [O] Ctl-E doesn't go to end of line?

2011-05-17 Thread Mark S.
Hi Bernt,

Thanks for pointing that out.

However, I'm not on an item line nor a header line, so those settings should 
not apply. But even when I changed my line to an item, and then tried the 
settings t and reversed, it still wouldn't hop to the end of the line in 
one go. In fact, if the line is long enough, I may have to hit Ctl-E several 
times. So is something broken, or is there some other incantation? 

Thanks,
Mark

--- On Tue, 5/17/11, Bernt Hansen be...@norang.ca wrote:

 From: Bernt Hansen be...@norang.ca
 Subject: Re: [O] Ctl-E doesn't go to end of line?
 To: Mark S. throa...@yahoo.com
 Cc: emacs-orgmode@gnu.org
 Date: Tuesday, May 17, 2011, 5:32 PM
 Mark S. throa...@yahoo.com
 writes:
 
  Hello,
 
  In org-mode, Ctl-E is bound to org-end-of-line.
 However, this doesn't
  appear to take you to the actual end of line as it
 does in the regular
  modes. Instead, it appears to take you out to the
 default line fill --
  even if your specified line fill is much shorter or
 much longer than
  the default.
 
  This is annoying, since my fingers are already typing
 ahead, and
  sometimes I lose stuff just because the cursor didn't
 go to the real
  end of line.
 
  Is this the desired behavior? And how can I change it
 to the expected true end of line?
 
 Hi Mark,
 
 Look at org-special-ctrl-a/e.
 
 -Bernt
 
 



Re: [O] Ctl-E doesn't go to end of line?

2011-05-17 Thread Bernt Hansen
Mark S. throa...@yahoo.com writes:

 Hi Bernt,

 Thanks for pointing that out.

 However, I'm not on an item line nor a header line, so those settings
 should not apply. But even when I changed my line to an item, and then
 tried the settings t and reversed, it still wouldn't hop to the
 end of the line in one go. In fact, if the line is long enough, I may
 have to hit Ctl-E several times. So is something broken, or is there
 some other incantation?


Sorry Mark, I just tried it on a headline only.  C-e invokes
end-of-visual-line and there seems to be no way to turn that off as a
option.

The following patch disables this behaviour permanently but it should
probably be turned into an option in org-mode preserving the current
behaviour as the default.

--8---cut here---start-8---
Modified lisp/org.el
diff --git a/lisp/org.el b/lisp/org.el
index 975266c..af57d54 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19495,8 +19495,7 @@ beyond the end of the headline.
(not (org-on-heading-p))
arg)
(call-interactively
-(cond ((org-bound-and-true-p line-move-visual) 'end-of-visual-line)
-  ((fboundp 'move-end-of-line) 'move-end-of-line)
+(cond ((fboundp 'move-end-of-line) 'move-end-of-line)
   (t 'end-of-line)))
   (let ((pos (point)))
(beginning-of-line 1)
--8---cut here---end---8---

Regards,
Bernt



Re: [O] Ctl-E doesn't go to end of line?

2011-05-17 Thread Memnon Anon
Hi Mark,

Mark S. throa...@yahoo.com writes:

 Hello,

 In org-mode, Ctl-E is bound to org-end-of-line. However, this doesn't
 appear to take you to the actual end of line as it does in the regular
 modes. Instead, it appears to take you out to the default line fill --
 even if your specified line fill is much shorter or much longer than
 the default.

Just to be clear: 

a) `C-e' takes you to whatever fill-column is set to globally?

b) And this happens not only on headlines, but also on body lines?

c) And you did not explicitly set any of the org-special-ctrl-xxx
   variables?

afaics, org-end-of-line uses either a) end-of-visual-line, b)
move-end-of-line or c) end-of-line. But none of those seem to have this
effect. ... 

Now I am as curious as you are :).

Memnon





Re: [O] Ctl-E doesn't go to end of line?

2011-05-17 Thread Mark S.

--- On Tue, 5/17/11, Memnon Anon gegendosenflei...@googlemail.com wrote:

 From: Memnon Anon gegendosenflei...@googlemail.com
 Subject: Re: [O] Ctl-E doesn't go to end of line?
 To: emacs-orgmode@gnu.org
 Date: Tuesday, May 17, 2011, 7:30 PM
 Hi Mark,
 
 Mark S. throa...@yahoo.com
 writes:
 
  Hello,
 
  In org-mode, Ctl-E is bound to org-end-of-line.
 However, this doesn't
  appear to take you to the actual end of line as it
 does in the regular
  modes. Instead, it appears to take you out to the
 default line fill --
  even if your specified line fill is much shorter or
 much longer than
  the default.
 
 Just to be clear: 
 
 a) `C-e' takes you to whatever fill-column is set to
 globally?
 
 b) And this happens not only on headlines, but also on body
 lines?
 
 c) And you did not explicitly set any of the
 org-special-ctrl-xxx
    variables?
 
 afaics, org-end-of-line uses either a) end-of-visual-line,
 b)
 move-end-of-line or c) end-of-line. But none of those seem
 to have this
 effect. ... 
 
 Now I am as curious as you are :).
 
 Memnon
 


Hello Memnon,

'b'  'c' are true on my system. On 'a', I don't know how org-mode is setting 
the distance. It seems to get stuck on some arbitrary number. For instance, it 
was at 106. Then I rebooted emacs and now its at 80 followed by jumps of 40. 
Changing the fill position doesn't seem to change the point to which it jumps. 

Basically, I would like it to either (1) jump to the end of the line just like 
in ordinary emacs or (2) behave predictably, so that I can get to the end in 
two key sequences. Currently it does neither.

Thanks,
Mark 




Re: [O] Ctl-E doesn't go to end of line?

2011-05-17 Thread Nick Dokos
Bernt Hansen be...@norang.ca wrote:

 Mark S. throa...@yahoo.com writes:
 
  Hi Bernt,
 
  Thanks for pointing that out.
 
  However, I'm not on an item line nor a header line, so those settings
  should not apply. But even when I changed my line to an item, and then
  tried the settings t and reversed, it still wouldn't hop to the
  end of the line in one go. In fact, if the line is long enough, I may
  have to hit Ctl-E several times. So is something broken, or is there
  some other incantation?
 
 
 Sorry Mark, I just tried it on a headline only.  C-e invokes
 end-of-visual-line and there seems to be no way to turn that off as a
 option.
 
 The following patch disables this behaviour permanently but it should
 probably be turned into an option in org-mode preserving the current
 behaviour as the default.
 
   Modified lisp/org.el
 diff --git a/lisp/org.el b/lisp/org.el
 index 975266c..af57d54 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -19495,8 +19495,7 @@ beyond the end of the headline.
   (not (org-on-heading-p))
   arg)
   (call-interactively
 -  (cond ((org-bound-and-true-p line-move-visual) 'end-of-visual-line)
 -((fboundp 'move-end-of-line) 'move-end-of-line)
 +  (cond ((fboundp 'move-end-of-line) 'move-end-of-line)
  (t 'end-of-line)))
(let ((pos (point)))
   (beginning-of-line 1)
 

Isn't this the same as setting line-move-visual to nil? Just pretend
it's an org-mode option.

Nick




Re: [O] Ctl-E doesn't go to end of line?

2011-05-17 Thread Bernt Hansen
Nick Dokos nicholas.do...@hp.com writes:

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

 Mark S. throa...@yahoo.com writes:
 
  Hi Bernt,
 
  Thanks for pointing that out.
 
  However, I'm not on an item line nor a header line, so those settings
  should not apply. But even when I changed my line to an item, and then
  tried the settings t and reversed, it still wouldn't hop to the
  end of the line in one go. In fact, if the line is long enough, I may
  have to hit Ctl-E several times. So is something broken, or is there
  some other incantation?
 
 
 Sorry Mark, I just tried it on a headline only.  C-e invokes
 end-of-visual-line and there seems to be no way to turn that off as a
 option.
 
 The following patch disables this behaviour permanently but it should
 probably be turned into an option in org-mode preserving the current
 behaviour as the default.
 
  Modified lisp/org.el
 diff --git a/lisp/org.el b/lisp/org.el
 index 975266c..af57d54 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -19495,8 +19495,7 @@ beyond the end of the headline.
  (not (org-on-heading-p))
  arg)
  (call-interactively
 - (cond ((org-bound-and-true-p line-move-visual) 'end-of-visual-line)
 -   ((fboundp 'move-end-of-line) 'move-end-of-line)
 + (cond ((fboundp 'move-end-of-line) 'move-end-of-line)
 (t 'end-of-line)))
(let ((pos (point)))
  (beginning-of-line 1)
 

 Isn't this the same as setting line-move-visual to nil? Just pretend
 it's an org-mode option.

Could be :)  I didn't find any details about that var when I looked at
the docstrings for the functions involved.

Thanks for pointing that out.

-Bernt



Re: [O] Ctl-E doesn't go to end of line?

2011-05-17 Thread Nick Dokos
Bernt Hansen be...@norang.ca wrote:

  Isn't this the same as setting line-move-visual to nil? Just pretend
  it's an org-mode option.
 
 Could be :)  I didn't find any details about that var when I looked at
 the docstrings for the functions involved.
 

There's some documentation about it in the Emacs manual, section 7.2,
Changing the location of point. It seems harmless to set it to nil
(restores emacs 23 default behavior wrt long lines) and it's probably
going to solve Mark's problem.

Nick