From: "B. T. Raven" <ecinmn@peoplepc.com>
Subject: Re: changing bookmark entry
Date: Mon, 17 Apr 2006 15:35:02 GMT [thread overview]
Message-ID: <GAO0g.5206$Es3.3180@newsread3.news.atl.earthlink.net> (raw)
In-Reply-To: m264l8k637.fsf@west_f1.net
"Mike Ballard" <dont_w@nt_spam.org> wrote in message
news:m264l8k637.fsf@west_f1.net...
>
> 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)))
>
>
Maybe you don't need a bookmark then but just a macro that visits that
file and moves point to the end. Here's an example:
C-x ( C-x C-f d:/mydocu~1/dribdrab <ret> M-> C-x ) <ret> ;; define kbd
macro
M-x name-last-kbd-macro <ret> dribdrab
C-x C-f ;; visit your .emacs
move to where you want the macro definition inserted...
M-x insert-kbd-macro <ret> dribdrab
this produces:
(fset 'dribdrab
[?\C-x ?\C-f ?d ?: ?/ ?m ?y ?d ?o ?c ?u ?~ ?1 ?/ ?d ?r ?i ?b ?d ?r ?a
?b return ?\M->])
Then you can M-x dribdrab or set dribdrab to a key if you want. I set it
with defalias:
(defalias 'ddb 'dribdrab) for invocation with M-x ddb.
Just change the names to protect the innocent on your system.
Ed.
next prev parent reply other threads:[~2006-04-17 15:35 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 [this message]
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
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='GAO0g.5206$Es3.3180@newsread3.news.atl.earthlink.net' \
--to=ecinmn@peoplepc.com \
/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).