logs archiveIRC Archive / Freenode / #emacs / 2015 / July / 27 / 1
tali713
blaenk: sure, go for it.
blaenk
sweet
made some glorious smartparens bindings for evil
wasamasa
that must be the fourth attempt I've seen at this problem
blaenk
mine?
fsbot
hmm, mine is mine!
wasamasa
ryouma: you know, maybe this noreturn macro doesn't intend to defy turing
tali713
wasamasa: clearly it's a popular problem.
wasamasa
tali713: oh, sure it is
tali713
fsbot: yours
         

fsbot
[->] I heard erbot is [0/8] An ERC (i.e. Emacs) based IRC infobot <http://emacswiki.org/wiki/ErBot>; source is at http://www.gnufans.net/~fsbot/erbot/erbot/
[1] the program of which fsbot is an instance (see <fsbot> and <help>)
[2] See also ,fslisp and ,parse ..[Type ,more]
wasamasa
tali713: mail clients used to be that kind of problem
parsnip
,greet myself
fsbot
Hallo, myself!
ryouma
wasamasa: of course presumably not :) but it makes it sound like it does
blaenk
I'm trying to wrap a function that is (interactive "<r><vc>"), how can I make that wrapped function take on those interactive arguments, but then call another function as well?
ham-peas
the interactive form automatically populates arguments of its enclosing defun with values it gets from the user
o dpm
...
blaenk
oh ok
wasamasa
ryouma: all it does is erroring out if it does return
ham-peas
and then my hands exploded
blaenk
so I should make my lambda take the arguments and then I pass them to the wrapped function, sweet
ryouma
wasamasa: i guess i shoul dhave explained taht i just thought it was funny
wasamasa
ryouma: it would have been funnier if it did try to do something else beyond that
ryouma: like, dissecting the form
ryouma
seems unlikely, but perhaps you'll find me an example :)
blaenk
I'm trying to wrap an evil function, is this a normal interactive call? (interactive "<r><vc>") cause I get an error saying invalid control character, could it be evil created its own 'interactive'?
wasamasa
it did
blaenk
thanks, now to see how to use it
wasamasa
`interactive' is smoke and mirrors anyways
it's great to confuse newbies
blaenk
yeah it's working
offby1
blaenk: that doesn't look at all like a proper "interactive" spec
         

wasamasa
and Evil did take it to the next level
by inventing their own interactive spec format and using a macro to expand it to something valid
ryouma
i actually try to avoid using interactive to deal with args
blaenk
yeah I can't find how to use evil's interactive
it seems like they create their own interactive codes
wasamasa
you don't use it, silly
blaenk
oh :/
wasamasa
you define an evil command with the correct spec and use that instead
blaenk
I'm just trying to wrap 'evil-shift-left' in my own
wasamasa: you mean like evil-ex-define-cmd
wasamasa
blaenk: correct
blaenk
thanks
ryouma
how come disks have radially-defined chunks for the outer edges? couldn't they divide them by e.g. 2 and get more capacity?
blaenk
what does <remap> do in k
in kbd
because I would've imagined just setting a bind would remap it
so I guess remap means something else
wasamasa
see `define-key'
blaenk
thanks
oh sweet
wasamasa
TIL the right kbd syntax to actually work with remap
blaenk
so it remaps all bindings that were set to 'some-command to be to another command
wasamasa
(kbd "<remap><next-line>") ;=> [remap next-line]
tali713
wasamasa: personally for anything interesting I use the list form for interactive. which has a total of a one line reference in the docstring for `interactive'
blaenk
wasamasa: I'm trying to replicate this bind from my vimrc: vnoremap < <gv
tali713
which, I suppose, if you have reached the point where you would need it, that's "sufficient" documentation.
blaenk
basically shift the selection left and keep it highlighted, so you can keep shifting it
so the way I thought to try was like this https://gist.github.com/blaenk/01f27288cfba60437525
but apparently not :{
I saw the ex command creation thing but I'm not sure how it factors in
wasamasa
blaenk: well...
parsnip
is scp used often?
wasamasa
you could use keyboard macros for this
but it's very brittle compared to vim
blaenk
ah
wasamasa
there is no such thing as the non-recursive remapping
or whatever that was
blaenk
well that's not an issue because I'm writing out the elisp
not binding it in terms of another bind
parsnip
nnoremap ; : nnoremap : ;
wasamasa
yeah and you'll notice that it's rather bothersome for common tasks
blaenk
the only problem is that I can't use interactive the way evil uses it for that wrapped function
or at least I can't figure out how
wasamasa
you could cheat and use `call-interactively'
to tell emacs to figure it out itself
tali713
parsnip: I don't understand your question, regarding scp. I use scp plenty.
parsnip
tali713: i haven't been, and now i think it could make my life easier
but potential change in workflow and how i've been doing things. for instance, my .emacs (.emacs.org) is in dropbox, so using git to get bits on my remote will be troublesome, as dropbox and git i hear can make problems.
tali713
parsnip: that sounds more like an rsync job, but yeah, scp is good there.
parsnip
but getting configs on to a remote, maybe i'll consider scp.
wasamasa
time to grep my logs again
I'm wondering who wrote here that there is a practical file size limit for emacs libraries
tali713
wasamasa: define "practical" a few megs would certainly make syntax highlighting painful.
wasamasa
tali713: I think the argument was about loadup
tali713: and when to split a file
tali713
wasamasa: 3 screen-fulls at most. the first one for the header comments of course. ;)
ryouma
loading is not linear?
i prefer to have it be human-centric. e.g. if the file contents are uniform, and large, then the whole file is dedicated to that. stuff that belongs together goes in same file. otherwise keep stuff pretty small.
tali713
i.e. "try to be reasonable"?
parsnip
rudybot: what say you of silmarillion
rudybot
parsnip: silmarillion is all about tolkiens way of writing(to me)
wasamasa
tali713: trying to be reasonable is unreasonable for emacs hackers!
don't you know that??
fsbot
Improbable
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 next »