From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: 21.3: end-of-buffer resets mark Date: Thu, 31 Jul 2003 09:45:17 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3F29398D.7070800@yahoo.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1059666699 31099 80.91.224.249 (31 Jul 2003 15:51:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2003 15:51:39 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 31 17:51:38 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 19iFgW-0007wW-00 for ; Thu, 31 Jul 2003 17:49:45 +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 19iFg7-00086k-BW for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Jul 2003 11:49:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19iFeo-0007bq-VB for bug-gnu-emacs@prep.ai.mit.edu; Thu, 31 Jul 2003 11:47:58 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19iFed-0007Cm-L7 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 31 Jul 2003 11:47:47 -0400 Original-Received: from chi6-1.relay.mail.uu.net ([199.171.54.98]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19iFcJ-0005r4-9i for bug-gnu-emacs@prep.ai.mit.edu; Thu, 31 Jul 2003 11:45:23 -0400 Original-Received: from mail.fu-berlin.de by chi6sosrv13.alter.net with ESMTP (peer crosschecked as: mail.fu-berlin.de [160.45.11.165]) id QQozsx27372 for ; Thu, 31 Jul 2003 15:45:19 GMT Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Thu, 31 Jul 2003 17:45:09 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Thu, 31 Jul 2003 17:45:09 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 51 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1059666309 24460332 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us 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:5463 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5463 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