But beg and end are positions, not markers, I am wrong?


2014/1/18 Nicolas Goaziou <n.goaziou@gmail.com>
Hello,

Sylvain Chouleur <sylvain.chouleur@gmail.com> writes:

> A little fix on my last patch:

Thanks for your patch. A small style comment.

> +                                (let ((bound
> +                                       (cons (move-marker (make-marker) beg)
> +                                             (move-marker (make-marker) end))))
> +                                  (set-marker-insertion-type (car bound) t)
> +                                  (set-marker-insertion-type (cdr bound) t)
> +                                  bound)

All of this is really a one-liner:

  (cons (copy-marker beg t) (copy-marker end t))


Regards,

--
Nicolas Goaziou