logs archiveIRC Archive / Freenode / #emacs / 2010 / July / 7 / 1
sword
nmvictor: It's fairly simple, you define a list of repetitive kbd commands. This can include any searching, deleting, whatever
rolando
couldn't you simply search and replace all the " " that appear at the beginning of a line?
sword
nmvictor: Then you start at the top of the file, and let emacs do the work
So then it boils down to figuring out what you want to do, 8000 times
nmvictor
sword: i like the simplicity in your lines, sometutorial am reading makes me think of this as another programming language
rolando
well, I was eating, so maybe I've got something wrong, but would (query-replace "^ " "") work?
nmvictor
rolando: was hoping for that too, problem is whats the regex
kensanata
nmvictor: I still don't understand why you're not using C-M-% ^ SPC SPC SPC SPC SPC SPC RET RET ! and be done with it.
rolando
if it's always 6 spaces, I think that's the regex
kensanata: yeah, it was what I was thinking
kensanata
Alternatively, use C-M-% C-q C-j SPC SPC SPC SPC SPC SPC RET SPC RET ! or something like that
         

nmvictor
kensanata: rolando trying...., then i can bookmark this macro thing for another day
kensanata
rolando: Yeah, I mentioned that 19 minutes ago. :)
rolando
although I was thinking about query-replace and not query-replace-regexp
sword
kensanata: It's not clear what he's trying to do, but your solution is sensible
rolando
nmvictor: use what kensanata said, I don't think my would work
jlf
,yow
fsbot
Are we live or on tape?
nmvictor
rolando: kensanata tried C-M-% ^ SPC SPC SPC SPC SPC SPC RET RET but got: Replaced 0 occurances, yes they wer six [SPC]ses
rolando
nmvictor: weird
kensanata
nmvictor: Perhaps you didn't start the search & replace at the beginning of the buffer?
nmvictor: Perhaps the lines don't start with six spaces after all but contain tabs instead?
rolando
I tried with this string:
sdfasdfasdf " "
and it worked there...
vinjacob
these are not at the begining from he said, continuation from the previous line
rolando
vinjacob: so it can be something like:
leifw
when I use align-newline-and-indent if the block preceding point contains any comments, of the form "# my comment goes here", they (every other line of comments, actually) are stripped down to the first character, and end up as "# m" and such, which is super annoying
rolando
"abc "
" abc"
?
leifw
has anyone seen this behavior? maybe I just have a bad combination of configurations
vinjacob
rolando: probably
import it to R as a dataframe I say.
rolando
oh... backtracking regex are hard
also I think they cause stack overflow
leifw
this happens for both C++ modes and perl modes, but not (AFAIK) lisp modes
rolando
maybe one could simply bruteforce it with a regex like " \n [^ ]"?
take one space from one side and add it to the other
         

vinjacob
I'm sure he can live with the harmless spaces for now.
rolando
the [^ ] should make sure that the next character after it is really a letter and not whitespace
jcromartie
hay guise have u seen M-x google-maps lol?
jlf
rolando: you forgot tabs
jcromartie
kidding, but seriously, is there an easier way to stick an image in a buffer, or does the google-maps guy just do it the hard way for fun?
s/fun/technical reasons/
nmvictor
rolando: kensata was right, too bad he's left. The contained tab keys so i use used reg-builder and it worked, thanks for opening my eyes, think im sleepy.
turbofail
hmmm... well if he's really going to do M-x google-maps then he needs to make it drag-scrollable
bleh... synchronous url-retrieval
JordiGH
turbofail: Mice are useless.
turbofail
they are perfect for training cats to be efficient killers
hiwk
yeah, I've tried teaching them to type for me for a few weeks now, and nothing!
shabble
my kittens are doing pretty well without any mice
hiwk
mice are really useless for anything but being snake food
e1f
and genetic experiments
nmvictor
(Action) wonders how somethings could be done without emacs, and how did he ever live without it?
JordiGH
,praise
fsbot
40:67 It was He who created you from dust, making you a little germ,
and then a clot of blood. He brings you infants into the world; you
reach manhood, then decline into old age (though some of you quit
editland young), so that you may complete your appointed term and grow
in wisdom.
JordiGH
For once I was blind, but now I use Emacs.
turbofail
,blame
fsbot
I think chomsky is [0] at http://angryflower.com/blame.gif
[1] http://www.ibiblio.org/Dave/Dr-Fun/df200304/df20030409.jpg
monotux
awh :)
JordiGH
As I walk in the valley of the shadow of proprietary software, I will fear no evil for the Emacs is my shepherd.
damd
who is chomsky?
fsbot
hmm, chomsky is at http://angryflower.com/blame.gif .. + other entries
sword
Thy regex and buffers, they comfort me.
damd
he has become known more widely as a political dissident and an *anarchist*.
i like him already
JordiGH
damd: He's like far far far left.
damd: Also, he more or less singlehandedly invented modern linguistics.
damd: I can't believe you've never heard of him. :-/
rolando
The student ask the teacher "Do we have to use Emacs?". The teacher replies "That not correct. You should say "May I please use Emacs""
JordiGH
Oh, right, you hate linguistics. Do you also hate computer science?
damd
JordiGH: i've heard his name, but i don't know him
JordiGH
damd: you realise it's called a "regular expression" because of Chomsky?
damd
why would i?
turbofail
well i think chomsky called it "type-3"
JordiGH
damd: ,,g site:youtube.com franco unamerican
fsbot
[google] http://www.youtube.com/watch%3Fv%3DLzpTmcq7nBg
http://www.youtube.com/watch%3Fv%3Dtr5OyWtBB3M
turbofail
damd: why wouldn't you?
damd
turbofail: are you fsbot all of the sudden?
JordiGH: what are you trying to say?
JordiGH
damd: It's a fun song and it mentions Chomsky in proper context.
damd
i've forgotten the name of a famous american anarchist who made a few records
i think he died relatively recently
he had a big beard (oh boy...)
JordiGH
Emma Goldman.
turbofail
lol
JordiGH
lol
damd
i can't believe i forgot his name
i've wikipedia'd like crazy to no avail
turbofail
i always think of e.l. doctorow's ragtime when people mention emma goldman
damd
i recall there being a photo of him on wikipedia where he stands in front of some monument (if i remember correctly) talking about some massacre of american anarchists
the massacre took place in the early 20th century
JordiGH
Is rms an anarchist?
turbofail
don't think so
JordiGH
Does he long for a classless utopia where a man will not be questioned for his eating habits?
damd
it wouldn't surprise me if he's syndicalist
UTAH PHILLIPS
that's his name, utah phillips
http://upload.wikimedia.org/wikipedia/commons/5/57/HayMarket100a.jpg
isomer
he died?
turbofail
oh, haymarket
JordiGH
I met some IWW kids recently in Mexico City.
damd
yeah, rest in peace sweet prince
JordiGH
Huh, haymarket.
damd
yes, haymarket
JordiGH
What's that other haything? That evokes images of anarchism?
It's old, from the 60's.
damd
haywire?
JordiGH
No... maybe it's not hay...
damd
haywire was a good guess though, gotta give a man credit for that
cvandusen
Old == from the '60s?
,yow
fsbot
Someone is DROOLING on my collar!!
JordiGH
cvandusen: Yep, half a century.
What's the name of a boxing strong punch to the head that knocks you out?
turbofail
haymaker
JordiGH
Ah, that.
turbofail
not sure what that has to do with anarchists
JordiGH
Were there ever any anarchists who called themselves haymakers?
cvandusen
IIRC, it's a drink, as well
damd
isn't haymaker a boxing move?
turbofail
professional boxers never use it
it's more of a brawling move
cvandusen
,gw haymaker
damd
i see
fsbot
[google] http://en.wikipedia.org/wiki/Punch_(combat)
http://en.wikipedia.org/wiki/Haymaker_(album)
damd
I WILL BE AN OLD BUM, LOVED BUT UNRESPECTED!
cvandusen
JordiGH
Maybe it was just a fictional thing, then.
In the 60's remember that with all the social unrest, some groups were getting radicalised.
The black community in the US envisioned a revolution very soon, a sort of second civil war along racial lines.
They called it "when the crunch comes".
damd
when the sh*t sprays the kitchen walls
JordiGH
Anyways, in this book I read, one of those radical groups from the sixtie was called the Haymakers.
turbofail
there was probably a radical group for every noun you can think of
the Dustpans
cvandusen
the Wimps
JordiGH
But the Haymakers in the novel were characteristic in that they went around recruiting impressionable kids fed up with their lot in the world.
So when I met those IWW kids here touring Mexico City, I thought of the same.
jlf
let's make hay while the sun's shining
turbofail
the Douchebandits
jlf
,gw ammon hennacy
fsbot
[google] http://en.wikipedia.org/wiki/Christian_anarchism
http://en.wikipedia.org/wiki/Portal%253AAnarchism/Anniversaries/Dates
technomancy
the Panther Moderns?
cvandusen
ooh! Portal Anarchism
that'd be a cool game
jlf
http://en.wikipedia.org/wiki/Ammon_Hennacy <- fascinating character
turbofail
sounds like casy from the grapes of wrath
at least, that's what i think when i hear "christian anarchist"
cvandusen
Tolstoi and Gandhi were his influences. Interesting combination
JordiGH
technomancy: Isn't that from Neuromancer?
pjb
fsbot: What do you think of influences??
fsbot
Ask yourself, do you really want to know?
technomancy
JordiGH: yeah.
JordiGH
technomancy: I was about to think that it was a radical branch of the Black Panthers. :-/
technomancy
Lupus Yonderboy.
heh
rolando
(Action) just picked Neuromancer at the library
although is in Portuguese
cvandusen
rolando: brasileiro?
rolando
nope, Portuguese
ah... from Portugal :P
cvandusen
desculpe
rolando
não há problema :)
wgreenhouse
that may improve upon Gibson's lack of technical writing ability.
rolando
(Action) wonders if he was his charset correctly configured
bpalmer
wgreenhouse: he intentionally avoids being too real.
wgreenhouse
(great storyteller and builder of worlds, horrible writer of dialogue)
rolando
wgreenhouse: Gibson didn't have a computer at the time of the Neuromancer I think
it was like computer -> *magic*
JordiGH
I think very few people had one.
Hm, maybe not so few. It was early 80's.
jlf
,gw neuromancer
fsbot
[google] http://en.wikipedia.org/wiki/Neuromancer_(video_game)
http://en.wikipedia.org/wiki/William_Gibson
JordiGH
Man, I remember when you were a nerd for just owning a computer.
cvandusen
He's more interested in the human angle (i.e., how people are affected by technology)
rolando
read somewhere, that when he got one, he called the support because it was making some noise... they told him it was his hard drive working
technomancy
(Action) o O ( "really, google? the neuromancer game outranks the book?" )
rolando
when he realized that it was working using simple mechanics, he created Steampunk
bpalmer
technomancy: not for me.
turbofail
it doesn't
rolando
or was it Clockpunk? I forgot
JordiGH
rolando: He didn't create steampunk?
turbofail
fsbot just orders things all weird
technomancy
bpalmer: must be an fsbot quirk
JordiGH
Also, The Difference Engine was a huge disappointment.
Both the book and the actual engine.
cvandusen
JordiGH: aye
bpalmer
technomancy: pehraps google realizes fsbot isn't a big reader.
rolando
JordiGH: maybe I'm confusing it with somebody
« prev 1 2 3 4 5 6 7 8 9 10 11 next »