Fork me on GitHub
#emacs
<
2020-09-14
>
sogaiu08:09:21

wrt the helm situation, i've tried ivy and selectrum over the last couple of days and am leaning toward selectrum.

mpenet08:09:55

ivy has a few advantages imho > like ivy-occur and some various counsel plugins

mpenet08:09:24

I'd love to use selectrum instead personally (ivy code is... involved), but no ivy-occur equivalent is a blocker for me

sogaiu08:09:24

ah i don't know what ivy-occur is, but i will look into it.

sogaiu08:09:29

thanks for mentioning it.

mpenet08:09:47

ivy-occur is awesome, shotcut that opens all the candidates in an occur buffer

mpenet08:09:52

it's very useful

sogaiu08:09:00

that does sound pretty nice.

mpenet08:09:15

there's also sub-selection that might be missing from selectrum

sogaiu08:09:40

perhaps it's a matter of time before some similar features appear 🙂

mpenet08:09:43

I hope so. I opened an issue for ivy-occur equivalent on selectrum months ago tho

mpenet08:09:17

the sub-selection feature I mentioned earlier is ivy-restrict-to-matches I think

sogaiu08:09:33

ah, thanks for the specifics, that should make searching easier

mpenet08:09:15

it allows narrowing in steps: "show all candidates for foo" > then for all these show candidates for "bar" > etc etc

sogaiu08:09:49

ha ha ha -- i should stop listening now so i can "tolerate" what i've currently got 🙂

sogaiu08:09:43

in terms of features, abo-abo's stuff will likely be difficult to match

mpenet08:09:44

yes, also counsel-ag, I am not sure there's a standalone equivalent that can be run with selectrum

sogaiu09:09:41

ah, it looks like may be an issue where ivy-occur was discussed: https://github.com/raxod502/selectrum/issues/15

sogaiu09:09:04

yes, i see you there 🙂

sogaiu09:09:47

hmm, i wonder what the status is...the end of the issue seems to sound somewhat hopeful

mpenet09:09:06

not sure either

arohner10:09:36

When I have emacs open to a clojure source file, I’m seeing a decent amount of input lag when typing. The problem seems to be worse when using multiple emacs window divisions, or when the application window is occupying the full screen (a 5K monitor). I’ve tried using M-x profiler-start, but the results weren’t very informative:

- command-execute                                                 612  90%
 - call-interactively                                             612  90%
  - byte-code                                                     523  77%
   - read-extended-command                                        523  77%
    - completing-read                                             523  77%
     - completing-read-default                                    523  77%
      - read-from-minibuffer                                      154  22%
       + command-execute                                           11   1%
       + timer-event-handler                                        6   0%
       + nrepl-client-filter                                        1   0%
       + redisplay_internal (C function)                            1   0%
  - funcall-interactively                                          89  13%
   - execute-extended-command                                      89  13%
    + sit-for                                                      86  12%
    + command-execute                                               3   0%
+ ...                                                              56   8%
+ redisplay_internal (C function)                                   5   0%

sogaiu11:09:30

i notice in that trace something about nrepl so is it the case you are connected to some repl? if you aren't connected to the repl (so just using clojure-mode.el), do you notice similar input lag?

arohner11:09:38

killing the nrepl didn’t fix it

arohner11:09:47

switching to M-x text-mode didn’t fix it

arohner11:09:59

multiple windows definitely makes it worse

sogaiu11:09:33

if you turn off font-lock does it help at all?

sogaiu11:09:49

that's one thing i try when things get slow

sogaiu11:09:13

i guess using text-mode is like turning off font-lock-mode

sogaiu11:09:37

i presume it's the same no matter which file of clojure code you are taking a look at?

sogaiu11:09:59

may be you've already tried looking at a clojure file after starting emacs with emacs -q

sogaiu11:09:21

there was mention of performance issues and a 5k display in this issue: https://github.com/sabof/org-bullets/issues/11

sogaiu12:09:12

didn't know there was also emacs -Q...TIL

arohner12:09:27

hrm, looks like the problem isn’t present with emacs -nw, running my normal configuration

sogaiu12:09:47

there is a reddit thread mentioning some slowness of emacs on macos: https://www.reddit.com/r/emacs/comments/d2n2wh/emacs_is_slow_on_macos/ -- is this happening on macos?

arohner12:09:36

yes, macos. I’ll see if brew has other emacs versions

sogaiu12:09:22

fwiw, i tried recently: https://github.com/d12frosted/homebrew-emacs-plus -- and specified version 27

arohner13:09:54

emacs-plus is dramatically faster. Thanks for the help

👍 3
Josef Richter14:09:40

hi. this may sound stupid, but somehow I lost a file in emacs. I am positive it was there, I am positive I saved it numerous times, because I had it open for several days, and when I was creating a new file (with random clojure exercises) the previous one simply disappeared.. I though it’s just in another buffer, but it’s gone for good. No success searching for it in spotlight either, no success with recover-file nor recover-session… any ideas, please?

borkdude14:09:13

Maybe it was in your /tmp folder?

borkdude14:09:54

If you have Time Machine running you could look for it

Josef Richter14:09:56

no time machine, I am using icloud & dropbox

Josef Richter14:09:07

but is there a way to show history of open files in emacs actually?

borkdude14:09:27

yes, recentf-open-files

borkdude14:09:59

does anyone have experience with enhancing an existing flycheck plugin by making it tramp-compatible?

sogaiu22:09:02

did you not already find out that flycheck needs modification? https://github.com/flycheck/flycheck/issues/1816#issuecomment-673159577