[Top][All Lists]

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

21.3: end-of-buffer resets mark

From: Bjoern Milcke
Subject: 21.3: end-of-buffer resets mark
Date: Thu, 31 Jul 2003 09:52:53 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)


Title:  `end-of-buffer' resets mark.


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

,----[ 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?


Emacs: GNU Emacs 21.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll
bars) of 2003-03-24
OS: Linux 2.4.19-4GB #1 Fri Sep 13 13:14:56 UTC 2002 i686 unknown


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


Bjoern Milcke                   mailto:address@hidden
Software Engineer               http://www.sun.com/staroffice
(Star|Open)Office Chart         http://graphics.openoffice.org

reply via email to

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