all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bjoern Milcke <Bjoern.Milcke@sun.com>
Subject: 21.3: end-of-buffer resets mark
Date: Thu, 31 Jul 2003 09:52:53 +0200	[thread overview]
Message-ID: <xyw7el07nne2.fsf@bm-1.germany.sun.com> (raw)

Hi,

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

Description:
------------

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

Information:
------------

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

Question:
---------

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

-Bjoern

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

             reply	other threads:[~2003-07-31  7:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-31  7:52 Bjoern Milcke [this message]
     [not found] <mailman.764.1059640667.8231.bug-gnu-emacs@gnu.org>
2003-07-31 15:45 ` 21.3: end-of-buffer resets mark Kevin Rodgers
     [not found] ` <mailman.788.1059666557.8231.bug-gnu-emacs@gnu.org>
2003-07-31 16:07   ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xyw7el07nne2.fsf@bm-1.germany.sun.com \
    --to=bjoern.milcke@sun.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.