logs archiveIRC Archive / Freenode / #emacs / 2010 / April / 18 / 1
noisesmith
sunoano: I don't know about anyone else here, but close parens alone on a line messes with my ability to read it (ie. I can read lisp, I can read c, and parens alone on a line slow down my lisp reading because they trigger my c reading reflexes)
damd
sunoano: where is your definition of `reduce'?
ggole
sunoano: are you calling that with M-x?
If so, nothing is going to happen. You need to print the result or something
damd
ggole: isn't the return value going to echo in the echo area?
ggole
Or invoke it with M-:, which does that automatically
Not using M-x, no
damd
anyways, sunoano, if it's of any help to you, you may want to do something like this: http://sunoano.pastebin.com/ZZ6WVwEh
note: (interactive "r") means that the command acts on the region
therefore (region-beginning) and (region-end) will be the values of `start' and `end'
i still can't find `reduce' though, maybe that's cl?
sunoano
well, I want the result to show up in the echo area
noisesmith
yeah "reduce is a compiled Lisp function in `cl-seq.el'."
sunoano: you can use (message (format "%s" (reduce... in your code for that
sunoano: in other words just wrapping the whole thing in message
damd
or just (message "%s" (reduce ...))
         

sunoano
ah, ok, I'll try
noisesmith
damd: oh, yeah, I forgot message interpreted format strings
ggole
It'd be cleaner to separate calculating a value and printing it into different functions, though
noisesmith
ggole: good poitn
sunoano
ah, yes http://sunoano.pastebin.com/ckqsF4gk work, thank you guys
noisesmith
*point
sunoano
*works
noisesmith
now I am thinking a version of that that used the rectangle functions to grab an arbitrary column would be kickass
sunoano
yup
but that's so totally beyond by elisp skills :)
jordanb
Let's book a trip to Europe.
noisesmith
oh M-x calc-grab-rectangle parses the current rectangle as a matrix, and pushes it onto the calculator
that is like 95% of the work done for us right there
sunoano
(Action) is accepting nifty code for his .emacs at all times :-)
FunctorSalad
is there some command for moar-macroexpansion?
after the first pp-macroexpand-last-sexp
if you'd like a child to be expanded without reducing the view to only that child
noisesmith
sunoano: oh, even better: (extract-rectangle start end) instead of (buffer-substring start end) -- nothing else needs to change
sunoano
(Action) tries
FunctorSalad
I mean like this: you pp-macroexpand-last-sexp and get: (foo bar baz)
now youd like to expand either of these three (don't really care which one, as long as all are expanded if you keep repeating)
*you'd
tedddd
new to emacs version control. How can I get my window set up to revert after, say, a check in?
FunctorSalad
hmm I don't use it much, but is there an after-checkin-hook? tedddd
or 'after-checkin-function[s]'
damd
[s]?
FunctorSalad
optional
         

damd
hehe, no, that means "just s"
s? means optional :)
FunctorSalad
actually I stopped to think for a moment whether to use manpage syntax or re
thought the ? would be less clear
damd
oh, sorry
FunctorSalad
:)
damd
so used to s// etc on irc
FunctorSalad
I still use s//
misread
damd
btw FunctorSalad do you happen to know if i've been "muted" in #haskell for my trolling?
FunctorSalad
("I used to")
noisesmith
tedddd: do (setq (current-window-configuration) var) in the before hook and (set-window-configuration var) in the after hook, if it has those
damd
i get 404 cannot send to channel whenever i try to say something
noisesmith
or make a wrapper that does those actions with the vc command in the middle, if not
FunctorSalad
damd: does #haskell even have secret muting?
tedddd
thanks
damd
i don't even know if there is any such functionality to be honest
FunctorSalad
it's a friendly channel generally
noisesmith
doh, of course I mean (setq var (current-window-configuration))
qDot_
Hahaha
FunctorSalad
damd: 404??
fsbot
Ask yourself, do you really want to know?
FunctorSalad
(in irc?)
stettberger
is there a simple solution in elisp for replacing text within elisp, something like: (string-replacement "asdasd,asdasd,asd" "," ".")
noisesmith
FunctorSalad: muting, on #haskell? I thought they hated mutability :)
damd
*badum pishhhhh*
qDot_
(Action) cringes and acts like he didn't laugh at that.
FunctorSalad
:D
damd
hiyoooo!
The_Journey
how do I change the ecb window sizes?
FunctorSalad
are you using a webchat or something?
anyway, I'd doubt an irc muting would translate to a 404
damd
who, me? no, i've used rcirc all the time
The_Journey
I tried store-windows-sizes but everytime I start Emacs the windows are still too big
FunctorSalad
so it's not http 404?
damd
no, it's not http 404 :)
FunctorSalad
ok, no idea what it's in irc then
noisesmith
stettberger: replace-string :) found via "M-x apropos<ret> replace string"
FunctorSalad
damd: you don't appear to be in my #haskell scrollback
stettberger
noisesmith: without using a buffer
damd
FunctorSalad: i haven't been able to speak there for weeks now
stettberger
you see 3 args, not two
bozhidar
,df replace-regexp-in-string
fsbot
replace-regexp-in-string is a compiled Lisp function in `subr.el'.
(replace-regexp-in-string REGEXP REP STRING &optional FIXEDCASE
LITERAL SUBEXP START)
Replace all matches for REGEXP with REP in STRING.
Return a new string containing the replacements. ..[Type ,more]
The_Journey
anyone know how to to change emasc code browser windows sizes?
stettberger
bozhidar: thank you
bozhidar
stettberger: you're welcome
FunctorSalad
with-temp-buffer may help ad an adapter...
to make buffer-funs into pure funs, generally
*as
noisesmith
FunctorSalad: yeah - I sometimes wonder why there are buffer-only versions of so many functions
FunctorSalad: and that looks like the right way to deal with it
damd
is the emacs git repo on repo.or.cz updated through a hook on the bzr trunk or it done by polling?
kodein
manually.
from what I've heard
The_Journey
does anyone know how to change Emacs Code Browser Windows sizes??
fsbot
Definitely
kodein
,botsnack
fsbot
:)
The_Journey
ugggh no one can help me? I've been searching for how to change the window sizes for days now
driving me nuts
stettberger
search in the manual for defining a new layout
The_Journey
stettbeger: new layout? I'm just trying to change the window sizes, the original sizes are too big
stettberger
as i see ecb these sizes are fixed, define simply a new layout and get happy with it
i hope i remember this right, that this was the solution for the problem
The_Journey
stettberger: I did define a new layout, but the sizes are still .33 of the emacs screen
rgr
erm, use the mouse ...
The_Journey
stettberger: I tried reducing it to 0.25 in customize but the windows are still 0.33
jordanb
rudybot: quote
rudybot
Let's build a space vehicle that runs on solid rocket fuel.
The_Journey
rgr: yes but then the windows is only for that sessions
jordanb
And we'll sandwhich a huge can of hydrogen between the solid rocken engines and then make the crew module ride piggyback on that.
scottj
Is there a feature that's like a "cursor location undo" that moves you back through the history of where your cursor was (lumping locations that are continuous into one or possibly beginning and end)?
but without changing the content of the buffer
rgr
The_Journey: you change the width in the customize dialogs. It works.
The_Journey
rgr: dialogs? can you explain more?
rgr
google up how to custoimise emacs
M-x customize-group
ebc
ecb
layouts
The_Journey
rgr: that's what I've been trying to tell you, the original size is 0.33 and I changed it to 0.25 and saved it
rgr: but when I start Emacs the windows are still 0.33
rgr
thats what you ve been trying to tell who? Certainly not me.
The_Journey
rgr: ok but still, changing 0.33 to 0.25 did not work
rgr: I changed the ECB Windows Width
rgr
ecb-windows-width
The_Journey
rgr: yes, I changed that from 0.33 to 0.25
rgr
check its saved in your custom
The_Journey
rgr: it's even said 0.25 in my .emacs
rgr: yet somehow the windows are still 0.33 at startup
rgr
and you checked trhe value of that variable after restarting?
The_Journey
rgr: yes
rgr: very frustrating
rgr
well, I just tried it and it works fine. sorry. cant help. I can only assume the value is not being set properly at start. works for me.
The_Journey
rgr: if you are able to change the windows sizes, can you paste the portion of your .emacs that's in customize for ecb?
stettberger
and C-h v says that the value of ecb-windows-width is correct?
The_Journey
rgr: in codepad or something
stettberger: yes it says the value is 0.25
rgr
I already did. ecb-windows-width
you are not setting this manually I assume?
The_Journey
rgr: can you just paste it in codepad.org so I can see, just the part of the customize fofr ecb
rgr: no
FunctorSalad
is there a way to align stand-alone closing parens with their open parens?
rgr
there is nothing to paste. Its just a custom entry for that one value.
FunctorSalad
it looks ugly to indent them 2 more :|
rgr
do it again, in customize-group,ecb,layouts and be sure to save.
The_Journey
rgr: what version of ecb are you using?
rgr
no idea. the emacs 23 one in debian.
The_Journey
how did you get your ecb, from repository or you downloaded it?
rgr
^^^^
The_Journey
???
fsbot
Ask yourself, do you really want to know?
rgr
I already told you
the debian one. debian testing.
ECB 2.32 uses loaded semantic 2.0pre4, eieio 1.0 and speedbar 1.0.1.
The_Journey
rgr: ok imma use 2.32, apparently my version is 2.40
jordanb
rudybot: quote
rudybot
We should do linux and mac ads.
jordanb
QT is the most ugliest thing in the universe.
Discuss;
rgr
wow, going back to color-theme-standard I realise how many faces I had been missing in normal gnus, elisp, erc etc. Astounding.
jordanb
gnus
rgr
Motif takes that honour.
cluck
jordanb: c++ is ugly, the first rule of the tautology club is the first rule of the tautology club, what else is new?
jordanb
?
I mean the way it looks.
kodein
the pope is a catholic?
jordanb
How can anyone possibly think that that loooks good.
rryouumaa
rgr: do you mean you didn't set them in your normal color theme?
hadn't*
rgr
No. I had just used other themes in the color-theme library.
Eraldo
I love how some code or text sniplets/blocks are quoted in messages I get from emacs mailing list
any idea how I can quote a region in such a style?
(Action) looking for an example.
cluck
kodein: everything in the wikipedia page points yes, he was a small catholic (pun intended) but a catholic nonetheless
jordanb: i was being playful as usual, i got it you meant the default look
Eraldo
there we go: http://openpaste.org/en/20531/
how can I get such a quoting box
jordanb
rudybot: quote
rudybot
Let's talk about fortran.
qDot_
Hmmm.
(Action) finds out about ezbounce, starts reconsidering erc.
If only I understood my obsession with being on IRC 24/7.
technomancy
ezbounce?
qDot_
http://linuxftw.com/ezbounce/
IRC proxy that allows you to stay connected. Basically, screen for irc.
Usually, I just use screen and irssi. Been thinking about trying ERC, but, for some reason, I like that always connected thing.
ezbounce + bitlbee could be nice, too
Resbaloso
It is time to put those Haitian jigaboos in their place! No matter how many times the civilized world donates money, opens schools, rebuilds their nation, and holds their little monkey paws, the damn niggers can never get it right. Mexicali had a worse earthquake than Haiti, and only about 4 people died! Even the housing of the poor generally held up! If you are sick of the fecal beast Join Chimpout Forum!
damd
uh-huh
Resbaloso
I mean Mexicali gets hit by a quake worse than Haitis
has over a million people
« prev 1 2 3 4 5 6 next »