[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Bookmarks at EO Buffer?
From: |
Drew Adams |
Subject: |
RE: Bookmarks at EO Buffer? |
Date: |
Fri, 22 Jun 2012 09:32:13 -0700 |
> 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