From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Bookmarks at EO Buffer? Date: Fri, 22 Jun 2012 09:32:13 -0700 Message-ID: <7CA9C96FA00B431BBA490E2E964C28C0@us.oracle.com> References: <155DEC68569B714B86C2C7075F5EDA980AE13A0B@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340382781 8893 80.91.229.3 (22 Jun 2012 16:33:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Jun 2012 16:33:01 +0000 (UTC) To: "'Doug Lewan'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 22 18:32:58 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Si6n3-0000Bg-42 for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Jun 2012 18:32:57 +0200 Original-Received: from localhost ([::1]:55308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Si6n3-0000wY-2Z for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Jun 2012 12:32:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Si6mw-0000wF-Kj for help-gnu-emacs@gnu.org; Fri, 22 Jun 2012 12:32:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Si6mu-0006sf-SD for help-gnu-emacs@gnu.org; Fri, 22 Jun 2012 12:32:50 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:44995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Si6mu-0006sE-Lx for help-gnu-emacs@gnu.org; Fri, 22 Jun 2012 12:32:48 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5MGWhtV008377 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 22 Jun 2012 16:32:43 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q5MGWgBA003602 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 22 Jun 2012 16:32:43 GMT Original-Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q5MGWgLZ023584; Fri, 22 Jun 2012 11:32:42 -0500 Original-Received: from dradamslap1 (/10.159.222.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 22 Jun 2012 09:32:42 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac1QhWf6Xcc2N0LsT62EJNqxB7bdFAADemKg In-Reply-To: <155DEC68569B714B86C2C7075F5EDA980AE13A0B@DAKIYA1.pegasus.local> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85382 Archived-At: > Is there any way to place a bookmark at the End Of Buffer? Not sure I understand the question. If you put point at the end of a file (file or buffer, if using Bookmark+) and hit `C-x r m' then the bookmark will be at that eob position. But perhaps you mean that you want the bookmark to go to the end of the file/buffer later, regardless of whether that current eob position is the same position that was bookmarked? In that case, you can do any of the following: * Define your own bookmark handler to do that. IOW, define a new bookmark type. * (Bookmark+) Use a function bookmark, where the function does two things: (a) visit the file/buffer and then (b) (goto-char (point-max)). * (Bookmark+) Create an ordinary bookmark to the file/buffer, and create a function bookmark where the function is just (lambda () (goto-char (point-max))), and combine the two using a sequence bookmark. The 1st and 3rd approaches are the most general. The 3rd approach lets you reuse your function bookmark, combining it with any other bookmark that visits a file or buffer. (The 2nd & 3rd approaches require Bookmark+.) HTH. http://www.emacswiki.org/cgi-bin/wiki/BookmarkPlus#toc5