bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 21.3: end-of-buffer resets mark


From: Kevin Rodgers
Subject: Re: 21.3: end-of-buffer resets mark
Date: Thu, 31 Jul 2003 09:45:17 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Bjoern Milcke wrote:

Do the following:

1. `set-mark-command'         (C-SPC)
2. `next-line'                (down)
3. `end-of-buffer'            (C-end, non-standard key?)
4. `exchange-point-and-mark'  (C-x C-x)

=> you will notice that the mark is at the point from where you
   called `end-of-buffer' and not the line above where you called
   `set-mark-command'.


`C-u SPC C-u SPC' after or instead of `C-x C-x' will get you back to your first
mark.


,----[ C-h f end-of-buffer ]
| end-of-buffer is an interactive compiled Lisp function in `simple'.
| (end-of-buffer &optional ARG)
| | Move point to the end of the buffer; leave mark at previous position.
| With arg N, put point N/10 of the way from the end.
| | If the buffer is narrowed, this command uses the beginning and size
| of the accessible part of the buffer.
| | Don't use this command in Lisp programs!
| (goto-char (point-max)) is faster and avoids clobbering the mark.
`----

Does 'leave mark at previous position' mean set it to the current
point when calling?  If so, why is this implemented this way?  Or
how could it be done differently?

Yes.  Because it's convenient (to be able to return from your position
after taking a quick look at the beginning or end of the buffer).  I
don't know.


Where can I look, whether bugs are already known (Issuezilla or the
like)?


Use http://groups.google.com to search gnu.emacs.bug


--
Kevin Rodgers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]