This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-05
Channels
- # beginners (135)
- # cider (30)
- # clara (66)
- # cljs-dev (18)
- # cljsrn (6)
- # clojure (115)
- # clojure-austin (1)
- # clojure-dev (10)
- # clojure-italy (7)
- # clojure-nl (1)
- # clojure-spec (18)
- # clojure-uk (26)
- # clojurescript (76)
- # cursive (2)
- # datomic (4)
- # devops (1)
- # emacs (19)
- # fulcro (159)
- # garden (3)
- # klipse (5)
- # leiningen (5)
- # off-topic (61)
- # om (7)
- # pedestal (6)
- # re-frame (17)
- # reagent (73)
- # ring-swagger (6)
- # rum (5)
- # shadow-cljs (60)
- # spacemacs (31)
- # specter (4)
- # vim (8)
- # yada (1)
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
oh @jeff.terrell u’re here as well
Yep! I've confirmed this behavior in Spacemacs and I'm also curious if this is reproducible on vanilla Emacs.
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.
(And to be clear, the problem is that the macro playback has an extra o
in it.)
Interesting. Thanks for checking. /cc @U7ESY38HJ
I did it in org-mode
, FWIW.
I can reproduce in text-mode
in a scratch buffer but I can't reproduce if I do M-x fundamental-mode
first.
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 😄
Is there a hook for yanking/killing
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.
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
I rarely ever try to advise functions, so can't be too much help
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
also add-advice didnt' forward the arguments