From: Mike Ballard <dont_w@nt_spam.org>
Subject: Re: changing bookmark entry
Date: Tue, 18 Apr 2006 19:55:56 GMT [thread overview]
Message-ID: <m2zmiilhzm.fsf@west_f1.net> (raw)
In-Reply-To: mailman.506.1145291768.9609.help-gnu-emacs@gnu.org
On Tue Apr 18, I was peacefully napping until Kevin Rodgers said:
> Mike Ballard wrote:
> > In ~/.emacs.bnk I have a bookmark which opens an existing file; the file
> > is continually being written to by another source. So the line the
> > bookmark code set to open the file to originally, is now way up near the
> > top of this growing file whenever I open this bookmark.
> > How can I change the ~/.emacs.bmk entry to make it always open this
> > bookmarked file and position point at the end of the buffer instead?
> > Here's the code as it is now:
> > (("bookmark title"
> > ((filename . "<path to some file>")
> > (front-context-string . " 18:32:29 EDT 20")
> > (rear-context-string . "t) - Sat Apr 08")
> > (position . 8154)))
>
> (goto-char POSITION) will move point to the end of the buffer if
> POSITION is greater than (point-max). So choose the largest possible
> buffer position on your platform:
>
> (defconst most-positive-fixnum (eval '(lsh -1 -1)))
>
Thanks so much!!
I couldn't figure out how to use the defconst/var stuff w/o 'integer-p'
kinds of errors so I just did '(position . NNN+)', removed the context
strings and it works perfectly (file size will never get this big anyway
so seems perfectly satisfactory to me; I'm assuming the 'lsh' thing is for
some reason returning an invalid value)...
Mike
--
prev parent reply other threads:[~2006-04-18 19:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-17 6:33 changing bookmark entry Mike Ballard
2006-04-17 15:35 ` B. T. Raven
2006-04-17 16:34 ` Kevin Rodgers
[not found] ` <mailman.506.1145291768.9609.help-gnu-emacs@gnu.org>
2006-04-18 19:55 ` Mike Ballard [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2zmiilhzm.fsf@west_f1.net \
--to=dont_w@nt_spam.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.
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).