[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bongo-devel] Re: Marks
From: |
Daniel Jensen |
Subject: |
[bongo-devel] Re: Marks |
Date: |
Tue, 01 May 2007 21:36:39 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.99 (gnu/linux) |
Daniel Brockman <address@hidden> writes:
> I went ahead and installed some code for this.
>
> There are now two commands, `&' and `M-&', --- one which
> applies the p/r/m convention on tracks _and_ sections (`&'),
> and one which applies it only to tracks (`M-&').
Nice! The region versions do not work for me, though. I have to save the
positions before changing point.
In `bongo-universal-prefix/region/marking-object-command', like so:
(let ((marking bongo-marking)
(beg (region-beginning))
(end (region-end)))
(when marking
;; XXX: This discards the killed marking
;; as an unfortunate side-effect.
(bongo-kill-marking))
(goto-char beg)
(while (and (bongo-snap-to-object-line 'no-error)
(< (point) end))
And also in `bongo-universal-prefix/region/marking-track-command':
(let ((marking bongo-marking)
(beg (region-beginning))
(end (region-end)))
(when marking
;; XXX: This discards the killed marking
;; as an unfortunate side-effect.
(bongo-kill-marking))
(goto-char beg)
(while (and (or (bongo-track-line-p)
(goto-char (or (bongo-point-at-next-track-line)
(point-max))))
(< (point) end))
I haven't the time to do more testing right now, things are a little
chaotic down here.
- [bongo-devel] Re: Marks,
Daniel Jensen <=