unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Bookmarks at EO Buffer?
@ 2012-06-22 14:43 Doug Lewan
  2012-06-22 16:32 ` Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Lewan @ 2012-06-22 14:43 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

Is there any way to place a bookmark at the End Of Buffer?

A quick look through the code didn't reveal anything to me.
The context strings in the bookmark database offer some flexibility, but a bookmark still seems tied to a numeric value.

Thanks.

,Douglas
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224



[-- Attachment #2: Type: text/html, Size: 2323 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Bookmarks at EO Buffer?
  2012-06-22 14:43 Bookmarks at EO Buffer? Doug Lewan
@ 2012-06-22 16:32 ` Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2012-06-22 16:32 UTC (permalink / raw)
  To: 'Doug Lewan', help-gnu-emacs

> 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-22 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-22 14:43 Bookmarks at EO Buffer? Doug Lewan
2012-06-22 16:32 ` Drew Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).