From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bjoern Milcke Newsgroups: gmane.emacs.bugs Subject: 21.3: end-of-buffer resets mark Date: Thu, 31 Jul 2003 09:52:53 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1059641007 28865 80.91.224.249 (31 Jul 2003 08:43:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2003 08:43:27 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 31 10:43:23 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19i914-0007Re-00 for ; Thu, 31 Jul 2003 10:42:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19i8x6-0000G7-NK for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Jul 2003 04:38:24 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19i8r2-0007Bf-Qs for bug-gnu-emacs@gnu.org; Thu, 31 Jul 2003 04:32:08 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19i8r0-0007AZ-ST for bug-gnu-emacs@gnu.org; Thu, 31 Jul 2003 04:32:07 -0400 Original-Received: from brmea-mail-3.sun.com ([192.18.98.34]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19i8FD-0002Ay-Ag for bug-gnu-emacs@gnu.org; Thu, 31 Jul 2003 03:53:03 -0400 Original-Received: from phys-hamburg-2.germany.sun.com ([129.157.136.19]) by brmea-mail-3.sun.com (8.12.9/8.12.9) with ESMTP id h6V7quVP022627 for ; Thu, 31 Jul 2003 01:52:57 -0600 (MDT) Original-Received: from bm-1.germany.sun.com (bm-1 [10.16.64.140]) by phys-hamburg-2.germany.sun.com (8.11.7+Sun/8.11.7/ENSMAIL, v2.1p1) with ESMTP id h6V7qt619685 for ; Thu, 31 Jul 2003 09:52:55 +0200 (MEST) Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5461 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5461 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