[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: show registered positions
From: |
rgb |
Subject: |
Re: show registered positions |
Date: |
18 Oct 2005 12:16:32 -0700 |
User-agent: |
G2/0.2 |
Peter Tury wrote:
> Hi,
>
> I see in the manual (GNU Emacs 21.3.1 on Win XP; I may switch to using CVS)
> that C-x r <SPC> R saves position of point in register R.
>
> Is it possible somehow easily (=using at most a few elisp lines in .emacs?)
> to mark those lines (may be: highlight?) what contain saved positions, e.g.
> at the left edge of the buffer? Or at least list all registers what contain
> a position?
>
> I mean that in the case I have several saved positions, it would be nice to
> see them in (pick them from?) a list; or see them when I am around a
> "saved" line...
There is list-registers and view-registers and the contents of
register-alist are fairly well documented if you use C-h v.
I'm not sure if that helps but I can't remember seeing a package
that acutally marks the locations. You could probably redefine
set-register to add an overlay whenever a point is put into
a register and remove the overlay when the register's value is
changed. It doesn't look like it would be too hard.