This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-09
Channels
- # announcements (5)
- # babashka (1)
- # beginners (116)
- # calva (139)
- # cider (11)
- # clara (2)
- # clj-kondo (13)
- # clojure (247)
- # clojure-dev (18)
- # clojure-europe (5)
- # clojure-france (2)
- # clojure-italy (2)
- # clojure-nl (7)
- # clojure-spec (24)
- # clojure-uk (34)
- # clojurescript (41)
- # cursive (11)
- # data-science (2)
- # datomic (33)
- # emacs (10)
- # events (3)
- # fulcro (134)
- # graphql (9)
- # jackdaw (3)
- # jobs (1)
- # joker (20)
- # kaocha (3)
- # leiningen (7)
- # luminus (2)
- # malli (3)
- # music (1)
- # pedestal (7)
- # re-frame (25)
- # remote-jobs (7)
- # ring (7)
- # shadow-cljs (85)
- # spacemacs (13)
- # testing (2)
- # tools-deps (60)
- # xtdb (11)
- # yada (7)
I've noticed when I'm using magit/evil, when I move the cursor down to "unstaged" in the status buffer I get long pauses, especialy for annoyingly long diffs like a package-lock.json file. The diff is automatically expanded when I go to the magit status buffer, and even before opening the file, if I move the cursor down to "unstaged" it just pauses for a long time
magit-section-forward
is the function that gets called on pressing n
(i.e. cursor down in magit).
If you want to find out which function is called on a particular key press, you can press: C-h k
and then press the key/keys you want to know about.
If you want to see what magit-section-forward
is doing, you can put a debugger on it by pressing C-u C-M-x
on that function. After that, when you press n
in magit status buffer, you will be able to step through in magit-section-forward
.
C-h k with evil only shows evil-next-visual-line
so I'm guessing magit-section-forward is attached via advice or some other hook
Maybe. I’m not very familiar with evil. I use normal Emacs.
yeah, evil has plugins for other special modes to allow evil motion keys across the board, so not sure how it re-routes the movement keys to the evil commands, or where to even find them
Ah, I see.
How can I find out what magit is even doing when the cursor hits the unstaged changes