[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix previous-button to work with connected buttons
From: |
Miles Bader |
Subject: |
Re: Fix previous-button to work with connected buttons |
Date: |
Sun, 11 Mar 2007 15:12:11 +0900 |
Stefan Monnier <address@hidden> writes:
> How 'bout the patch below, then?
> + (add-text-properties beg end
> + ;; Each button should have a different `button'
> + ;; property so that next-single-property-change can
> + ;; detect boundaries reliably.
> + (cons 'button (cons (list t) properties)))
Hmm. Any reason to waste a cons-cell? I imagine something like
(cons 'button (cons (setq button-counter (1+ button-counter)) properties))
would work as well.
-Miles
--
The key to happiness
is having dreams. [from a fortune cookie]
Re: Fix previous-button to work with connected buttons, Diane Murray, 2007/03/31