all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Doug Lewan'" <dougl@shubertticketing.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Bookmarks at EO Buffer?
Date: Fri, 22 Jun 2012 09:32:13 -0700	[thread overview]
Message-ID: <7CA9C96FA00B431BBA490E2E964C28C0@us.oracle.com> (raw)
In-Reply-To: <155DEC68569B714B86C2C7075F5EDA980AE13A0B@DAKIYA1.pegasus.local>

> 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




      reply	other threads:[~2012-06-22 16:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-22 14:43 Bookmarks at EO Buffer? Doug Lewan
2012-06-22 16:32 ` Drew Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7CA9C96FA00B431BBA490E2E964C28C0@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=dougl@shubertticketing.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.