Re: A basic cursor problem

[email protected] Mon, 6 Feb 2006 11:20:46 -0500
Newsgroups gmane.emacs.xemacs.general
Message-ID <OFBD5D9E84.871405EF-ON8525710D.00581821-8525710D.0059CAFC@iqfinancial.com>

1. I think Mr Turnbull nailed your original problem. If you type without
hitting the Enter key, you create a long line which DISPLAYS on multiple
lines on your screen, but, in fact, is only one line. So, hitting the
uparrow takes you to the previous REAL line, not to an earlier point in the
current line. For example:

Let's pretend this is a long line.
This is the second line.

Now, let's show those two lines on a really narrow window:

Let's preten
d this is a lo
ng line.
This is the s
econd line.

Let's say the cursor is on the 'econd line', at the e.
Hitting uparrow will take you to the 'd this is a ...'.

The wrapping is something emacs does for you on the display, but,
internally, there is still only two lines, and you are moving from the
second part of line 2 to second part of line 1, however-many display lines
that may encompass.

2. To answer your second question, you would likely find the start of the
tutorial to be extremely useful. Click Help, then Tutorial and spend 15
minutes (won't make you an expert, but will be a good start. And, you can
always continue later. There's lots more.)
There are also some good emacs books (from O'Reilly, I think?); the Intro
text even include a Quick Reference Card. Highly recommended...

3. Windows Ctrl-C = emacs Alt-W = copy.
Windows Ctrl-X = emacs Ctrl-W = cut.
Windows Ctrl-V = emacs Ctrl-Y = paste.





                                                                                                                                      
                      Jined                                                                                                           
                      <[email protected]>        To:       [email protected]                                                
                                               cc:       [email protected]                                                       
                      02/04/2006 07:52         Subject:  Re: A basic cursor problem                                                   
                      AM                                                                                                              
                                                                                                                                      
                                                                                                                                      




Good afternoon !
> What command are you using to go "up"?
>
> For example, Ctrl-P?
> Alt-x previous-line {Enter}?
> An arrow on your keyboard?
>
That's it, I use the up arrow of my keyboard. The funny thing is this :
when I type a text, I have the "up-problem" I exposed, but when I'm
inside an equation environement, using the up arrow of my keyboard makes
me go just one line above, and not 5. It's weird, but I think it's only
a question of finding how to tell xemacs to move up by one line only
when I hit the up arrow of my keyboard.
> Or something else entirely?
>
> If a keystroke, what command does it actually execute?
> Hit F1 followed by k followed by the keystroke you use to go up a line.
>
> What happens if you do Alt-x previous-line {Enter}?
>
As I said before, I'm a beginner, and the syntax you are using, that is
"Alt-x previous-line", I do not really understand it. For instance, how
do you paste with xemacs ? Under windows, it's "Ctrl + V", but under
xemacs it doesn't work that way. I went to the tab menu named "edit",
and here what I found in front of "paste" : (<paste>). What is this ?
Every time I want to paste something from the clipboard, I use click
with the mouse on "paste" inside the tab menu "edit", but it would be
much more quicker to use some keystroke.

>
>
>
> |---------+---------------------------->
> |         |           Jined            |
> |         |           <[email protected]>|
> |         |                            |
> |         |           02/03/2006 03:35 |
> |         |           PM               |
> |         |                            |
> |---------+---------------------------->
>
>-------------------------------------------------------------------------------------------------------------------------|

>   |
|
>   |       To:       [email protected]
|
>   |       cc:       [email protected]
|
>   |       Subject:  Re: A basic cursor problem
|
>
>-------------------------------------------------------------------------------------------------------------------------|

>
>
>
>
>
>
>> What do you mean "Cursor"? The mouse pointer or the character cursor?
>>
>>
> Sorry, I mean the character cursor, the one which is inside xemacs and
> moves to the right each time you type a letter. The problem is that when
> I want to go in line just above, it takes me 5 lines up. I hope that my
> problem is better defined. Thanks.
>
>> If the mouse pointer, then there is something called "mouse avoidance
>>
> mode"
>
>> which keeps the mouse pointer from obscuring the cursor. Whenever the
>>
> mouse
>
>> pointer would be over the character cursor WHILE YOU ARE TYPING, the
>>
> mouse
>
>> pointer magically moves 5 or so characters away (according to one of
>> several rules).
>>
>> Look for:
>>
>> (if window-system (mouse-avoidance-mode 'jump))
>>
>> You can comment it out:
>>
>> ;; (if window-system (mouse-avoidance-mode 'jump))
>>
>> Or, you can change behavior:
>>
>> Effects of the different modes:
>>  * banish: Move the mouse to the upper-right corner on any keypress.
>>  * exile: Move the mouse to the corner only if the cursor gets too
close,
>>      and allow it to return once the cursor is out of the way.
>>  * jump: If the cursor gets too close to the mouse, displace the mouse
>>      a random distance & direction.
>>  * animate: As `jump', but shows steps along the way for illusion of
>> motion.
>>  * cat-and-mouse: Same as `animate'.
>>  * proteus: As `animate', but changes the shape of the mouse pointer
too.
>>
>>
>>
>> |---------+------------------------------>
>> |         |           Jined              |
>> |         |           <[email protected]>  |
>> |         |           Sent by:           |
>> |         |           xemacs-news-bounces|
>> |         |           @xemacs.org        |
>> |         |                              |
>> |         |                              |
>> |         |           02/03/2006 12:53 PM|
>> |         |                              |
>> |---------+------------------------------>
>>
>>
-------------------------------------------------------------------------------------------------------------------------|

>>
>
>
>>   |
>>
> |
>
>>   |       To:       [email protected]
>>
> |
>
>>   |       cc:
>>
> |
>
>>   |       Subject:  A basic cursor problem
>>
> |
>
>>
-------------------------------------------------------------------------------------------------------------------------|

>>
>
>
>>
>>
>> Good evening to all,
>>
>> I use xemacs to type my university reports using miktex, and while
>> typing the source code, the cursor is always moving upwards or downwards
>> for more that one line, it's 4 or 5 actually. This is annoying, and as I
>> was told that xemacs is fully customizable, I wonder if a good soul
>> could tell me how to fix this problem. I do not think it is a major
>> problem, but rather a question of a beginner.
>>
>> Thanks.
>>
>> Jined.
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
>
>