logs archiveIRC Archive / Freenode / #emacs / 2015 / August / 12 / 13
wasamasa
MatthewRock: are you using an init.org?
MatthewRock: or why that comment about concatenating?
sbrg
forcer: thanks! as I said, I already set that variable. it isn't taking effect. I just tried venvs, but it doesn't look like pyvenv-activate is doing anything..
MatthewRock
wasamasa: I'm working on some minor mode. It consists of several files, and when something went wrong in one file, I got an error msg(don't remember it now, sorry) which was more or less "error X line <huge-number>"
wasamasa
MatthewRock: you actually get line numbers in your errors?
forcer
sbrg: Do you want C-c C-z to use python2, or the RPC process?
MatthewRock
wasamasa: I got in that one
wasamasa
MatthewRock: can you pastebin that?
wilfredh
MatthewRock: these errors: https://gist.github.com/Wilfred/028b47158f7c2be2bb5d
MatthewRock
wasamasa: Nope, it was some time ago and I don't remember what caused it nor can I reproduce it now
         

wasamasa
...
sbrg
forcer: C-c C-c and C-z
wasamasa
well, you shouldn't get any line numbers in the first place
MatthewRock
Maybe I misinterpreted it, but when I read it it looked to me like it wanted to hint me where error was, but failed
forcer
sbrg: That's not the RPC process, that's the interactive shell - the variable for that is `python-shell-interpreter'
afk again (I'm at work), sorry.
sbrg
aaah, duh.
forcer: no problem. changed interpreter -- that worked. thanks!
MatthewRock
wasamasa: Then maybe it was some process ID or anything that looked to me like line number
wasamasa
MatthewRock: eval-region can indicate a buffer position where it started reading
MatthewRock: I've written a hack to turn that into a line number, but it's useless most of the time
MatthewRock
:)
wasamasa
to have proper error reporting, it ought to be built into the system from the base, otherwise it's not going to be any good
and that has been less of a priority for emacs
heck, the fact that you aren't automatically thrown into a debugger, but need to start again with --debug-init tells a lot
MatthewRock
wilfredh: Well, I don't know, but maybe someone else will be able to help
Are there keyword arguments in elisp?
I thought there were
there are*
When I do (defun test-funct (a b &key c d) (list a b c d)) it requires 5 args...
tsdh
MatthewRock: They are only supported with with cl-defun.
MatthewRock
tsdh: Are there any disadvantages for using cl-defun?
I have a function that I'd like to use &key, and I want to make sure cl-defun won't break anything
wasamasa
cl-defun requires cl-lib to be there
tsdh
MatthewRock: Well, a downside is that people need to have a pretty recent emacs, or at least the cl-lib elpa package.
wasamasa: hehe
wasamasa
cl-lib is included as of 24.3?
and can be installed in 24.1 and up
you don't really want to target anything below that
because getting a testing system running these versions of emacs is tricky
tsdh
MatthewRock: Previously (emacs 23), cl-defun was called defun* (it still has an alias) which required cl to be required.
wasamasa
tsdh
MatthewRock, wasamasa: But since cl-defun/defun* is a macro, you can probably just use (eval-when-compile (require 'cl)) (defun* my-kw-function ...) which will probably work also in emacs < 24.
wasamasa
:E
         

tsdh
Ah, I think the form given to eval-when-compile needs to be quoted...
MatthewRock
tsdh: theoretically it's macro
so it shouldn't need quoting
but idk I'm more fluent in cl then elisp
tsdh
MatthewRock: Yes, you are right.
MatthewRock: I've confused it with `eval-after-load' which is a function and thus there you need to quote your form.
MatthewRock
tsdh: Kay
forcer
There's `with-eval-after-load' nowadays to get rid of that silly behavior ...
wasamasa
24.4 and up though
"It's sad that's the project seems to be abandoned."
TIL three months of no commits == abandoned
forcer
:-D
wasamasa
and yes, this is of course guile emacs we're speaking of, what else
you know what, I'll compile it and see for myself how great it is
got nothing much to do at work currently
Fuco
oh gods fu*king teambuildings again...
why do people expect we will work better if we go get drunk somewhere every friday ...
Firedancer
It is tuesday....
Fuco
and they send out a form where you check what you like to drink... and the only option is vodka
Firedancer
no Wednesday? Sigh....this week is already too long
Fuco
how do I politely tell them to fu*k off and let me be :/
sagittarian
i want to run a compile command (M-x compile or projectile's compile command, just 'make install' is good), but i want to do it in a specific python virtualenv
forcer
Fuco: A group of people who know each other well will work together better. The problem with team building like "go get out drunk" is that that's a consequence of liking each other, not so much an initial cause. :-D
sagittarian
how do i activate the virtualenv before the compile command is run?
forcer
sagittarian: You can use the pyvenv package
sagittarian
forcer: thanks, checking it out
wasamasa
Fuco: maybe they want to force their fun
Fuco: or just blindly copy what others do
forcer
sagittarian: That provides the commands M-x pyvenv-workon (for virtualenvwrapper) or M-x pyvenv-activate (for other virtualenvs)
I would not mind some regular beer outings with others in the company. Sadly, no one ever has time.
sagittarian
and then the given env would be active for all of emacs?
Fuco
forcer: that *you* wouldn't mind is the thing though... I really don't like the trend where management forces fun on you (= employees)...
forcer
sagittarian: Yes.
Fuco: *Forcing* is a bad idea in any case, yes.
wasamasa
so speaketh the forcer
forcer
Indeed. I am a domain expert.
aidalgol
Indeed, he has much expertise on domains.
finster
i am looking for a short example on how to run helm-do-grep programmatically from a defun. does somebody have an example handy?
wasamasa
(helm-do-grep)
finster
apparenty helm-do-grep-1 expects recursive to be set, even if the first parameter is a list of existing files
i mean, if I already *know* what files I want to grep through, why would I need recursive to be set
taylanub
feel free to upvote my GNU propaganda: https://www.reddit.com/r/emacs/comments/3gpb7u/guile_emacs_status/cu08t59
wasamasa
anything is better than some clueless noobs spreading hysteria
taylanub
[tongue-in-cheek notice just in case]
forcer
wasamasa: Can we write a chrome extension that replaces "reddit" and "hacker news" with that phrase?
wasamasa
forcer: wait, what phrase exactly?
forcer
wasamasa: "Some clueless noobs spreading hysteria"
wasamasa
forcer: I'm sure there is a generalized extension that allows you to use whatever regex you'd like
https://chrome.google.com/webstore/detail/regex-replace/llijpdapajjfoaddofmmdhdookcfampl
rudybot
http://teensy.info/Lr9ASEbhOj
forcer
wasamasa: I feel the need to whoosh you.
wasamasa
but I did deliver ._.
josteink: ping
taylanub
behold ... magic! http://sprunge.us/UFWb (error message needs improvement)
code up so far, with hashtable bits untested because Chibi doesn't have (r6rs hashtables). (actually I just need to copy over the R7RS library '(r6rs hashtables)' from Larceny...) http://sprunge.us/AVdR
wasamasa
huh
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 next »