Fork me on GitHub
#emacs
<
2018-06-05
>
Bravi12:06:32

hi everyone. there’s a strange bug happening in spacemacs and I was wondering if it’s happening in emacs as well. unfortunately I am a vim user and I’ve never used emacs and if someone could try and see if O <F3> fo <F4> <F4> yields fofoo, that’d be very helpful please

Bravi12:06:52

oh @jeff.terrell u’re here as well

jeff.terrell12:06:14

Yep! I've confirmed this behavior in Spacemacs and I'm also curious if this is reproducible on vanilla Emacs.

jeff.terrell12:06:04

Note that O above is how to insert a blank line above the cursor in evil-mode, so some translation may be necessary if you're not an evil user. I'm not sure how necessary that piece really is; perhaps a simple <F3> fo <F4> <F4> would exhibit the problem as well.

jeff.terrell12:06:21

(And to be clear, the problem is that the macro playback has an extra o in it.)

p4v4n12:06:10

No extra 'o' for me in vanilla emacs. Working as expected.

jeff.terrell12:06:36

Interesting. Thanks for checking. /cc @U7ESY38HJ

Bravi12:06:19

now I’m wondering perhaps it’s some sort of mode that’s affecting this

jeff.terrell12:06:46

I did it in org-mode, FWIW.

jeff.terrell12:06:53

I can reproduce in text-mode in a scratch buffer but I can't reproduce if I do M-x fundamental-mode first.

Bravi12:06:12

I definitely remember there was a different combo as well, I’ll try to find it now. I know exactly what I was trying to refactor and I’ll follow the steps 😄

Bravi12:06:42

but I’m guessing whatever is causing that one, is the same for others too

theeternalpulse14:06:02

Is there a hook for yanking/killing

theeternalpulse15:06:49

closest I've found is doing add-advice but that is not buffer local, and don't want it to spill into other modes than my own.

tanzoniteblack17:06:21

I don't believe there's a hook, but you could probably use defadvice ( https://www.gnu.org/software/emacs/manual/html_node/elisp/Advising-Functions.html ) to accomplish something, depending on what you're trying to do

tanzoniteblack17:06:44

I rarely ever try to advise functions, so can't be too much help

theeternalpulse17:06:39

I did the add-advice but it doesn't seem to be local to the buffer that I call it in, so it would bleed into other buffers

theeternalpulse17:06:52

also add-advice didnt' forward the arguments