Fork me on GitHub
#spacemacs
<
2018-06-05
>
Bravi09:06:02

@jeff.terrell ok I did a few more tests and I managed to narrow it down quite a bit. it’s happening whenever there’s a blank indentation in front of it. so for example, if my cursor is here

|
and if I do
qq i fo ESC q @q
it will read
fofoo
but if there are no blank spaces in front of it, so if my cursor is here
|
then it works fine

Bravi09:06:51

I’m wondering if there’s something in my config that’s making this happen

Bravi09:06:27

confirmed it’s happening on other machines as well

Bravi09:06:39

with a fresh install of spacemacs

Timo Freiberg11:06:46

with a default .spacemacs as well?

Bravi11:06:50

yeah. I tried it on a machine that had never had spacemacs on it

Bravi12:06:38

it’s not happening in a new empty buffer. nor in .txt files

jeff.terrell12:06:19

@bravilogy - Nice triage. Yep, I can reproduce. Looks like a legit (and fascinating!) bug. O SPC ESC qq i fo ESC q @q yields a line with ffooo. Nice find!

Bravi12:06:03

oh thanks for that! 😄 I thought I was going mental haha

jeff.terrell12:06:37

Looks like this might not even be related to evil-mode: O SPC ESC <F3> i fo ESC <F4> <F4> does the same thing.

Bravi12:06:16

I tried it emacs way as well - C-x ( I believe

Bravi12:06:21

and it’s the same thing

Bravi12:06:28

not sure if behind the scenes they do the same thing but

jeff.terrell12:06:52

In fact, you can reproduce this entirely within insert mode. O <F3> fo <F4> <F4> yields fofoo.

jeff.terrell12:06:20

Oh OK I thought <F3>/`<F4>` was stock emacs, but I don't know. C-x ( does feel more emacs-y.

Bravi12:06:41

I believe there was another combination except fo that I’m trying to remember now

Bravi12:06:50

there was i character in there

Bravi12:06:01

but it was the same thing happening basically

jeff.terrell12:06:03

Have you tried vanilla emacs?

jeff.terrell12:06:09

This is really pretty interesting. Kudos. simple_smile

Bravi12:06:51

I haven’t tried vanilla emacs because I don’t know anything in emacs haha 😄 I’m a hardcore vim user

Bravi12:06:19

but it’s not happening in vim for sure

jeff.terrell12:06:46

Yeah, I'm not surprised about that. In general I've found vim's macros to be more reliable and robust than those in emacs.

Bravi12:06:49

btw, I didn’t know <F3> and <F4> 👍

jeff.terrell12:06:06

Do you want to ask people in #emacs?

Bravi12:06:27

yeah sure I can do that

👍 4
Bravi13:06:37

I can’t reproduce it in clojure files

Bravi13:06:03

I’m so eager to find out the issue that I completely forgot my lunch 😄

jeff.terrell13:06:23

I guess you have a programmer's ability to focus. simple_smile

😂 4
Bravi13:06:36

on an unrelated note to the above bug, is it possible to format my js code based on my eslint configuration file?

Bravi13:06:59

if anyone knows..