logs archiveIRC Archive / Freenode / #emacs / 2010 / June / 24 / 1
madpickle
the wiki has an overview of what it can do
ieure
I cant use BitBucket because I have no desire to "merge tips" with anyone.
madpickle
ieure: lol
JordiGH
lol
madpickle
you prefer giving head?
ieure
Actually, a git pull receives HEAD.
JordiGH
Let's sexualise all of our software interactions.
madpickle
i have the name "mickey" on bitbucket and lifetime pro subscription
plus as a pythonista i should support bitbucket and hg
JordiGH
madpickle: tmm? :-(
         

madpickle
JordiGH: it'll work without it.. i think.
well. sorta work. it'll work with one line. but people who don't use tmm like things rough anyway.
JordiGH
You calling me a perv?
madpickle
;)
bremner
1) sell service to JordiGH 2) sell service to madpickle 3) ? 4) profit
jlf
i think he's calling you trans-phobic
ieure
madpickle, Thats pretty slick.
What Id really like is if you could fixup indentation when you yank text inside a block.
madpickle
ieure: that's also possible
ieure
That would be fantastic.
madpickle
i'm tackling that issue next.
it'll be a naïve indentation: by looking at the logical line immediately above like the region shifting
JordiGH
madpickle: Ohhh, I get what it does. If you move a block around to another part of the code, it adjusts its indentation.
madpickle
but it'll work 95% of the time
JordiGH: yup
JordiGH
This whitespace thing is mostly suck, if you ask me. :-(
madpickle
JordiGH: it can be frustrating; and python-mode doesn't solve all the problems.
ieure
madpickle, Right. The hard part might be figuring out what the indentation is inside the block. Ill often end up with the first line killed at the first character without preceding whitespace, then everything else indented normally under that.
bpalmer
ieure: can't you just look, and save as a property on kill?
pjammer
i built emacs cocoa from source (23.2) yet on my mac, func+backspace won't delete as usual. anyone else experienced that.
madpickle
ieure: so what i currently do with region shifting in case there's a big swath of empty lines is recursively scan upward until a non-empty line is encountered. Then it seeks out the inner-most block and indents to that.
ieure
bpalmer, I dont know, thats more emacs-fu than I possess.
madpickle
ieure: the problem is lack of reindentation. Python-mode's indent doesn't exactly DWIM
err
bpalmer: : the problem is lack of reindentation. Python-mode's indent doesn't exactly DWIM
ieure
madpickle, Ive noticed that. I used to advise yank so it would reindent the block, but it never worked in python-mode.
         

madpickle
ieure: yeah. as a stop-gap, use C-c > and C-c <
ieure: it will shift left or right by `python-indent' spaces
ieure: but that's just a work-around.
JordiGH
Whitespace shouldn't create scopes. :-(
ieure
madpickle, Right. The real problem is that when I kill, it can screw up the first line. The first line has no preceding whitespace, but the subsequent ones do.
So its inconsistent when its yanked.
madpickle
yep
shift-region recursively backtracks until it finds a sensible line.
ieure
And I think bpalmer was saying that you could save the base indent at kill time.
bpalmer
ieure: something along the lines of (add-hook 'kill-hooks 'annotate-with-initial-indentation) , where (defun annotate-with-initial-indentation (obj) (if (not (get-text-property 1 'annoted-initial-indentation obj)) (put-text-property 1 (length obj) 'annotated-initial-indentation (calculate-indentation) obj))))
certain details left to the reader.
madpickle
ieure: if you open up a python shell in emacs and press C-c C-d and C-c C-h with point on an expression (like os.path) it will look it up for you in the REPL
with either dir/help respectively
ieure
Hm, C-c C-f runs help() for me.
madpickle
yeah.
ieure
And I took over C-c C-d for my own stuff.
madpickle
this one's for when you're in the inferior python buffer hacking away at a one-liner
and you want to quickly look up details about something
mnemonikk
madpickle
the default C-c C-f does the same (and works rather well) when editing.
hm
ieure: do you still have my module loaded?
yokoyama
i got diaria
madpickle
diarrhea?
yokoyama
yep, that one
madpickle
talk to jlf about that, not me.
e1f
i thought he meant diary
yokoyama
lol
e1f
it's probably all the raw fish
yokoyama
no, actually i meant diarrhea
too much potate tips
e1f
wow. the general resigned
kiba
(Action) is hungry
Food.
no money.
yokoyama
anyway, i'm now testing automated logging bot
kiba
need to make money.
madpickle
,yow
fsbot
I just bought FLATBUSH from MICKEY MANTLE!
bpalmer
yokoyama: please don't make any logs of #emacs public.
kiba
need to make mininum viable product.
cellofellow
is there a simple way to convert non-ascii characters into their HTML &representations;?
yokoyama
bpalmer: i'm not going to do that
JordiGH
cellofellow: There was such a function, I think.
yokoyama
bpalmer: my intension is, just to see if it works on my office irc server
JordiGH
,gw html escape
fsbot
[google] http://en.wikipedia.org/wiki/Cross-site_scripting
http://en.wikipedia.org/wiki/Character_encodings_in_HTML
JordiGH
,g html escape emacs
fsbot
[google] http://www.gnu.org/s/emacs/manual/html_node/elisp/General-Escape-Syntax.html
http://www.irt.org/articles/js136/
JordiGH
:-/
bpalmer
url.el has one, I believe; but you can always do &xyzw; for a unicode character xyzw
and just not special case the standard escaping.
damd
there was talk about this on emacs-devel a few days ago
hober
&#xyzw; you mean
JordiGH
damd: zeitgeist
damd
cellofellow: http://gist.github.com/436913
cellofellow
maybe something that just highlights any non-ascii characters? I'm only bothering because this particular script the code will be run through dies if the code isn't ascii, for some reason.
yokoyama
bpalmer: but for curiousity, is there any demerit to open the log of #emacs?
damd
,df rng-escape-string
fsbot
ERROR: Symbol's function definition is void: rng-escape-string
damd
,rng-escape-string
fsbot
[google] http://www.emacswiki.org/emacs-es/eldoc-extension.el
http://www.emacswiki.org/alex/DragonFall
e1f
cellofellow: if you change the file encoding of the buffer to a plain text one and then try to save it emacs will complain and hilight the character
damd
there is allegedly a function named rng-escape-string in nxml
cellofellow
e1f: ok, I'll try that.
bpalmer
hober: oops, right.
yokoyama: it was thought people prefer some privacy.
since otherwise their names show up with out-of-context quotes
yokoyama
bpalmer: i understand that
e1f
if logs were made public, then drug companies would spam those of us with diarrhea, with ads for immodium
madpickle
brb
yokoyama
bpalmer: i can see mainly such a productive discussion here. it's assumed that quite a few of people in here have quoted information out of this room.
e1f
http://youtube-global.blogspot.com/2010/06/youtube-wins-case-against-viacom.html
yokoyama
so, i guess that's just the matter of moral, but the act itself
turbofail
there's a decent number of people who talk about their jobs here, which would be better not to get too public
bpalmer
and remember that time that tonystark told us all he was iron man?
Be a lot of problems if word about *that* got out.
turbofail
yeah
e1f
TOO LATE!
turbofail
iron man's suit is controlled by elisp!
WE'RE DOOMED
damd
e1f: what does it mean?
turbofail
Let's use stop-the-world GC in a real time control application.
bpalmer
there would't be any problem, as long as you're careful to stop the whole world.
e1f
damd: it means tony stark's secret is out
bpalmer
Little known fact: The Matrix doesn't even use garbage collection.
turbofail
ah yes, the stop-the-universe approach
e1f
http://www.zdnet.com/blog/btl/sandisk-sd-card-can-store-tamper-proof-photos-for-100-years/36151
shabble
Let's have our binmen use mark & sweep.
turbofail
yeah, the matrix totally failed to GC agent smith
yokoyama
turbofail: right. i'm doing this purely for the sake of myself
turbofail
the matrix trilogy is a cautionary tale against memory leaks
bpalmer
yokoyama: then that's cool :)
yokoyama
bpalmer: yeah, thanks for pointing it out for me
bpalmer
Is Jumper a warning about the use of goto ?
madpickle
guys.
molqr
hello all ... i m learning ediff ... but i can't find any undo commands ... say i copy a region from A to B is there a command to undo the change?
madpickle
on a scale of 1-10, where 1 is not bad at all and 10 is being Hitler
where do you rank changing `this-command' programmatically to make another function work?
turbofail
molqr: I think you can do "r [A or B]" to restore A or B
damd
madpickle: 1, if only temporarily
molqr
turbofail, in deed that works ... thanks so much for helping my ignorant self :)
it was there in the help but i could not understand rx meant either ra or rb :( thanks turbofail
turbofail
np
madpickle
ieure: you around?
genehack
re question: http://www.socialtext.net/perl5/index.cgi?events
sorry 'bout that, wrong chan
bpalmer
madpickle: 2 to 3.
madpickle
bpalmer: and `last-command'?
bpalmer
oh, mess with that all you want; your changes will be lost in time, like tears in rain.
emacs will automatically copy this-command into last-command after your command is done executing.
madpickle
well, see, `indent-for-tab-command' winds up calling `python-indent-line' which checks last/this-command to see if `indent-for-tab-command'. But I've replaced that with my own that doesn't suck. hence the breakage.
bpalmer
oh. yeah, go ahead and lie.
madpickle
but it's all good. it works great now.
regions of python will now reindent properly.
turbofail
prefix arguments glittering by tannhauser gate
bpalmer
let's fold an origami unicorn.
madpickle
,yow
fsbot
I'm GLAD I remembered to XEROX all my UNDERSHIRTS!!
damd
my friend said this on his facebook: being able to call a function on a bool in objective-c does make it total sh*t
what does he mean?
isomer
he means he doesn't understand oo
damd
that's the feeling i get
madpickle
i don't know objective-c but maybe his point is that bool, what he believes should be a simple data type should not have methods
damd
"call a function on a bool" sounds like a sh*tty way to say that a bool is an object
isomer
madpickle: i suspect that is indeed what he means
hence his misunderstanding....
turbofail
ha
damd
,objective-c
fsbot
ObjectiveCaml is at http://www.emacswiki.org/cgi-bin/wiki.pl?ObjectiveCaml
damd
,Objective-C is a reflective, object-oriented programming language which adds Smalltalk-style messaging to the C programming language.
fsbot
created.
palace_chan
anybody know the "clear shell buffer" shortcut when running a shell in emacs?
quidnunc
Maybe C-c C-o
that is the analog in a lisp repl
analogue*
palace_chan
that flushed the output didn't clear the buffer unfortunately...ugh i can't remember it for some reason
turbofail
i'm not sure that that exists
palace_chan
oh well
turbofail
not in the standard shell-mode anyway
ieure
palace_chan, C-c C-o flushes the output of the last command. C-x h C-w will nuke everything in the buffer.
palace_chan
ieure, oh right just select it all and kill it, thanks
legumbre
,ping
fsbot
pong
JordiGH
,pong
fsbot
ping
JordiGH
IRC table tennis
technomancy
doubles, even
JordiGH
Shit.
http://twitter.com/KremlinRussia_E/status/16879198717
Phase 2 of the iDomination plans have begun.
legumbre
Let's take the IP Czars to Yekaterinburg.
jlf
madpickle: uh...?
rntz
tromey, or anyone else who knows much about package.el: is there some way to get package.el to treat a given package as if it were installed for purposes of dependency resolution?
this would be useful for dealing with cases where a prerequisite package is already installed via some other mechanism
quidnunc
rntz: I assume you hack the info in ~/.emacs.d/elpa/archives/contents
archive-contents not contents
I don't know the formatting though
Maybe not. It might look at the directories present in the elpa directory. If that is the case just create the directory
Look at the source code.
rntz: package-alist seems to be the variable of interest
« prev 1 2 3 4 5 6 7 8 9 10 11 next »