Fork me on GitHub
#emacs
<
2018-12-29
>
theeternalpulse03:12:55

How would I unit test an interactive function that kills a specific region? I'm looking for examples because my test doesn't seem to register when it hits the function that there's an active region.

theeternalpulse17:12:59

I ended up doign this

(goto-char 0)
    (push-mark 5 t)
    (activate-mark)
I've seen examples using set-mark but didn't really get that working, not sure if this ideomatic