logs archiveIRC Archive / Freenode / #emacs / 2015 / June / 29 / 1
Sizur
still not working as expected: http://pastebin.com/RJnrwjND
tali713
which would simply the definition of all such derived commands to simply (defun foo (...) (interactive ...) (with-relative-line-numbers (call-interactively 'original-command)))
caudex`
Sizur: now typing siz completes to _Siz...
caudex
\who #emacs caud
caudex`
\part
Sizur
http://pastebin.com/gaPsbQWM is not working too...
anli_
are there happy users of js2-mode + ES6 (babel)? Is the tandem smooth?
caudex
Ankhers: Does this line echo out there?
tali713
Sizur: 2 minor mistakes there,
well 3 technically, but lets talk about getting it to work first.
         

Sizur
thanks. coz changing redraw-display to linum-update-current also does not work
tali713
Sizur: very close, but not quite right, I'm setting up a paste right now.
Sizur: fix the first... http://paste.lisp.org/display/150759#1
Sizur: however, this does the wrong thing if you /happen/ to already be in linum-relative, I can fix that as well.
Sizur
hmm
update-window moves the cursor for me
and still does not update the line numbers
it updates once if i C-g during query, which also is not wanted.
it should run second toggle always
well, the smart function does need to revert to the pre-call state, but that's secondary to actually making linum update the numbers before the query.
tali713
right, well, it works fine here, just tested. I'm trying to track your bug.
Sizur: oh, I see the cursor bug, how peculiar.
wasamasa
"Often high level language compilers are implemented using some other languages, not always very suitable for such a task, but reasonable in terms of build dependencies and maintenance. One notorious example is Clojure, with a huge part of it implemented in Java (almost 60kloc of Java vs. 7kloc in core.clj)."
I guess I can forget my silly idea of implementing something clojure-like on top of emacs then
octalsrc
having a bit of an issue, and haven't found any similar issues googling..
tramp hangs when I (require 'tramp) or invoke it
Seylerius
wasamasa: What if someone re-implemented Emacs in Clojure?
octalsrc
but only when I'm connected to the internet
wasamasa
Seylerius: nothx
Seylerius
Lol
wasamasa
I mean, a clojure repl takes me 10s to start
Seylerius
Hah
octalsrc
(and when I invoke it, it's using sudo not ssh or anything internet-y)
wasamasa
I don't want to know how long an undumped emacs will take
Seylerius: also, there is such a project already
,deuce
fsbot
deuce: [0] (not yet) emacs under clojure - https://github.com/hraberg/deuce
[1] a project, like guile-emacs, to make a "2 lang " Emacs. This time with clojure.
octalsrc
to be more specific, it seems that *loading* tramp hangs
tali713
Sizur: how about this (2 variants)
Sizur: http://paste.lisp.org/display/150759#2
octalsrc
if I (require 'tramp) with no internet
and then connect to the internet and use it
it works fine
wgreenhouse
octalsrc: is your system networking weird in some way, like lack of a loopback interface when not on the Internet or lack of a "localhost" definition in /etc/hosts?
tali713
Sizur: the latter should make it easier to make similar such commands in the future.
         

bremner
octalsrc: tramp tries to ssh no a non-existant address at startup. Some people have bad DNS which makes that hang
kovrik
wasamasa: Clojure apps start up much faster. But REPL's startup time is bad, yes.
octalsrc
I don't think I have a weird setup
wasamasa
kovrik: so far every single one I had to start up from the REPL
octalsrc
but I'll check into that
wasamasa
kovrik: and depending how much baggage it was, it took more or less long
kovrik
wasamasa: also, you run it from leiningen, right? I guess it slowdowns too
wasamasa
(Action) rolls eyes
wgreenhouse
octalsrc: also, it should not normally be needed to explicitly (require 'tramp). do you still get the hang from just implicitly loading it with e.g. C-x C-f /sudo::/path/to/thingy ?
Sizur
tali713: awesome! that works
octalsrc
wgreenhouse: yes
Sizur
why wasn't the former working? seems like it's thesame thing
wgreenhouse
oh well, so much for my ,,doctordoctor,, solution :)
fsbot
Don't do that, then!
Sizur
the interactivity of linum-relative-toggle was getting in the way?
octalsrc
wgreenhouse: helps to narrow down the issue, anyway
tali713
Sizur: nope, I was using the wrong linum-update function.
Sizur: I mean it's possible that was getting in the way, but I highly doubt it. I just fixed that part because it annoyed me that toggle was being used for non-toggle behavior. :)
Sizur: I converted it to a macro on the assumption that this isn't the only such command you'll define.
Sizur: for extra bonus points you could make it so it also turned on linum-mode temporarily if it is currently off.
Sizur
tali713: how to modify it so state will be restored in case of a C-g?
tali713
Sizur: currently that /should/ be the case.
kovrik
wasamasa: 'java -cp clojure-1.6.0.jar clojure.main -r' startups immediately
tali713
Sizur: that's what the unwind-protect is for.
Sizur
it's not working for me
aidalgol
wth control character is \[ ?
Sizur
maybe that's related to how chords work
tali713
Sizur: here if I call `call-macro-linum-wrap' and then C-g it immediately reverts correctly. perhaps you could describe exactly what "not working" means in your case.
Sizur
tali713: yeah, it is because of chords
tali713
don't know, chords are their own library, I'm testing with directly calling via M-x call-macro-linum-wrap RET
Sizur
it works like a charm without chords
tali713
Sizur: file a bug with the author of the chord package then, they /shouldn't/ interfere.
Sizur
tali713: thank you!
tali713
(could be a won't fix, of course)
yeah, no problem, you seemed like you had struggled long enough. :)
Sizur
hehe a couple days
tali713
Sizur: I saw, and with quite a bit of effort in those days.
wasamasa
kovrik: ok, that's three seconds
aidalgol
wgreenhouse: And where were you this weekend, mister?
(Action) stands before wgreenhouse in a bathrobe, arms folded, wielding a rolling pin, and with his hair in curlers.
tali713
deuce? really?
aidalgol
tali713: ?
tali713
aidalgol: emacs in clojure.
Seylerius
wasamasa: Wow. I might have to get involved with that. It looks like, if it ever gets fast enough, it could be awesome.
wasamasa
(Action) feels trolled
wgreenhouse
aidalgol: I have no idea. Where does the time go.
aidalgol
(Action) transforms back to normal.
wgreenhouse: I've got a pretty sweet firejail setup now.
Have you started using it, yet?
hodapp
rudybot: why do people think Myers-Briggs is such a meaningful personality classification?
rudybot
hodapp: I think Myers-Briggs is kind of bunk. Actually, isn't this something psychiatrists say? It seems to me a bit like horoscopes.
wgreenhouse
aidalgol: in truth, I've been getting ready for the big move to the frozen north, and for an interview up there
aidalgol: no, I haven't played with it much other than getting really confused about network bridging and dhcp when using its --net option :)
aidalgol
oh fun
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 next »