Fork me on GitHub
#spacemacs
<
2017-09-13
>
jeff.terrell13:09:30

Huh, TIL (from the FP Slack) about a couple neat things you can do with search results such as what SPC / or SPC s t p provide. (These assume you're using helm; dunno if ivy has similar features.) 1. <f4> (i.e. action 4; all actions are visible with C-z) opens a special buffer that lets you edit all the matching lines. C-c C-c saves changes, and (I think) C-c C-k aborts. 2. C-c C-f enables follow mode, where the corresponding line is shown in its context as you move down over each search result.

reefersleep17:09:58

that is brilliant!

eggsyntax16:09:58

Something is suddenly super screwed up for me. I'm getting "file mode specification error" on cljs files, the CIDER menu is missing, and if I try to jack-in-clojurescript, I get "Symbol's value as variable is void: seq-random-elt". Anyone else encountered this?

alandipert16:09:39

eggsyntax i think seq-random-elt is a relatively new emacs function, in seq.el (added 11 months ago). perhaps if you rebuild emacs head, it will work?

alandipert16:09:50

(or, downgrade cider)

eggsyntax16:09:57

I'll give it a shot -- fairly sure I was already on latest CIDER for a while. I bet it's on the emacs side of things -- earlier today something was weird & I realized I was somehow back on emacs 24.4 instead of 25.x, which I've been on for months. Emacs reinstall ahoy.

donyorm16:09:24

I need to update to 25, I'm still on 24 I think

chris16:09:46

just updated to 26 today

chris16:09:50

sweet sweet threads

chris16:09:55

(that no one is using afaik)

donyorm16:09:03

threads? What do they mean in this context?

chris16:09:25

elisp has (limited) threading support in 26

donyorm16:09:59

ah, so packages could do asynchronous work, supposedly? That would be nice

chris16:09:28

well, they already can, but they hack it in by using more than one process or the like

chris16:09:21

so it was already concurrent, but now things can run in parallel in the same process

eggsyntax16:09:01

Yep, complete emacs uninstall/reinstall did it. That was very odd.

alandipert16:09:25

sometimes blowing away .elc fixes various things

alandipert16:09:39

maybe you did that as part of your reinstall?

eggsyntax16:09:25

Huh. .elc? No, not consciously. Unless it's underneath .emacs.d/ ? Blowing that away was the first thing I tried.

eggsyntax16:09:35

I haven't run across .elc before.

eggsyntax16:09:11

Gahhhh, no, spacemacs is hanging on a cljs, which is the symptom that originally started this whole process. Walking away for a while 😠

alandipert17:09:03

oh sorry, i meant .elc files. the byte-compiled .el files that emacs caches

chris17:09:00

these are under your ~/.emacs.d/elpa/<package-name-and-version>/

chris17:09:27

and afaik the byte compilation depends on the version of emacs, so if you update things may not work correctly and you need to remove the elc files

chris17:09:59

(or you can just backup your entire elpa directory (`mv elpa elpa.bak`) and have spacemacs download and byte compile everything again)

chris17:09:37

this takes a few minutes, but it's safe and easy

eggsyntax18:09:01

Cool, thanks, y'all! Walked away for an hour & am ready to try again 😜

eggsyntax18:09:18

Weirdness proceeds apace. I can intermittently jack in. Sometimes it tells me Symbol’s value as variable is void: helm-bookmark-map and sometimes it works. Really bizarre.

chris18:09:53

@eggsyntax: that error is fixed in develop

eggsyntax18:09:31

I'm very relieved to find that at least this one is a known & recent problem -- I feel a little less crazy now 😉

eggsyntax20:09:16

For anyone else who encounters that error when trying to jack in ("Symbol's value as variable is void: helm-bookmark-map"), the simplest workaround (if you don't want to switch to develop branch) is to add (require 'helm-bookmark) to your user-config in .spacemacs.

eggsyntax20:09:20

Also as an FYI, I seem to have gotten a noticeable speed boost by switching from emacs-plus to the prebuilt binary available by brew cask install emacs. Didn't go looking for more speed, but it's always a nice bonus. YMMV

vuuvi21:09:40

@eggsyntax I had that problem too. I reinstalled and fucked around for about an hour and It took me a long while to get to that answer. Hope it saves sometime for more fortunate souls here

eggsyntax23:09:21

@alexkeyes Were you also seeing issues with spacemacs hanging, and possibly being unable to open certain files? That’s what I originally encountered, and I’m not sure yet whether it was ultimately caused by the helm-bookmark issue.