logs archiveIRC Archive / Freenode / #emacs / 2010 / January / 27 / 2
ams
(if (nlistp tags)
(setq matched (member tags tagslist))
(mapc (lambda (x)
(when (member x tagslist) (setq matched t)))
tags)))
damd
ams: please refrain from doing that
ams
damd: no.
jordanb
If you stick your finger in ams' cage, he'll try to bite it.
jabot
ams: use some
ams
johnsu01: .
jlf
is that a euphemism?
jabot
-- Function: some predicate seq &rest more-seqs
rgr
hmm, I dont like the code continuing to evaluate after a match is done. Its pointless.
         

jabot
should be faster
rgr
there might conceivably be hundreds of tags.
jabot
rgr: use some
damd
jabot: we are trying to stay away from cl
jabot
oh
why?
rgr
yes, why?
damd
i'm not sure
ams
rgr: some is not standard elisp though.
and even with `hundreds' of tags, you'llnot see any slow down.
mapc is a builtin function.
jordanb
rudybot: quote
rudybot
Let's have an AI winter.
damd
gee, wouldn't it be cool if we had a functional language which would only evaluate as much as it needed to?
bremner
lazy bastard
kodein
wouldn't it be nice if P=NP?
bremner
whoosh
greboides
i would prefer a brain bot that talked directly to me :)
damd
what if god was one of us?
greboides
damd: he is
jlf
P=NP for N=1
jordanb
I like it how ams's address is that of a swedish mental institution.
ams
jlf: and P=0.
         

kodein
jordanb: which one?
also, what the heck is wrong with y'all?
jordanb
?
jlf
a variety of things most probably
ams
jlf: also for P=0,and N=R
jlf: but ohwell.
jabot
hmmm...
jordanb
rudybot: quote
rudybot
Let's just let us all have artistic license with our sarcastic statments, how about?
kodein
jordanb: I don't really get this swedish mental institution thing you just talked about, so I was trying to get you to elaborate on it. But now I've changed my mind and would instead implore you not to.
jabot
if the lists have N and M elements
we have O(NM)
...
jordanb
;)
jabot
would be faster to sort
damd
jordanb: please elaborate on the mental institution subject
ams
indeed,pleae do.
jlf
jordanb: what's this about mental institutions? do yours and ams' have some sort of rivalry?
jabot
O(N log N + M log M + max(N, M))
jordanb
jlf: Yeah, his mental institution is way nicer than mine.
ams
jlf: i get the cute nurses.
jlf
that's because they have socialized mental health care over there
jordanb
i no
It still didn't prevent RMS from taking out a restraining order against him though.
ams
jordanb: funny
jordanb
rudybot: quote
rudybot
Anyone who designes a program that uses the character "~" as something other than a reference to the user's home directory needs taken out back.
jordanb
Taken out back and given a stern talking to.
damd
lol
ams
so....
emacs?
fsbot
Emacs is an extensible, customizable, self-documenting real-time display editor <http://www.gnu.org/software/emacs/> .. + other entries
ams
emacs uses ~
damd
as?
fsbot
I heard as is at http://www.emacswiki.org/cgi-bin/wiki.pl?as
ams
foo~, foo.~N~
damd
FFS FSBOT
jordanb
If ams and twb ever met in the same place at the same time, there'd be a massive release of energy.
ams
fsbot: shut the fu*k up you damn annoying moron
fsbot
you watch as fsbot explodes into a gazillion pieces!
jlf
,botsnack
fsbot
(Action) dances happily
damd
,forget as
fsbot
Forgot "as" which had exactly one entry.
damd
as?
thank you
ams
hm.
,...
rudybot
Woof.
fsbot
[In the distance, you hear a dog bark]
nejucomo
Is the only way to alter a buffer-local variable by setting the buffer to be current, and then using set/setq?
Is there any way to alter a buffer-local variable without making that buffer current?
damd
you mean with-current-buffer?
i.e. (with-current-buffer "*scratch*" (setq some-buffer-local-sh*t 1))
hober
if you need a local value in buffer A for setting a local variable in buffer B
something like this should DTRT:
(let ((this-local foo)) (with-current-buffer that-buffer (setq foo (frob this-local))))
nejucomo
I want to change a non-current buffer to read-only, so I have written: (with-current-buffer buf (set 'buffer-read-only t))
buffer-locals are pretty confusing to me.
jordanb
rudybot: quote
rudybot
Let's write our changes to disk.
ams
nejucomo: setq
kodein
ah, there we go, now all lines with "replies" to rudybot should be ignored too.
jordanb
rudybot: quote
rudybot
I'll make YOU RoHS Compliant in a minute!
nejucomo
I don't see how that's related to my question. Does setq behave differently than set with respect to buffer-locals?
Or is this a tangent about why setq is preferred?
kodein
well, setq quotes for you
that is, the first argument
with set you need to quote it yourself.
nejucomo
Yes. So that's unrelated to buffer-locals, correct? I prefer set, but it's totally irrelevant.
kodein
and also, you can set a whole bunch of variables with one setq expression
nejucomo
I see.
jordanb
I think emacs sucks. Please provide counterarguments.
tonyg
hi all: I've just build a machomebrew emacs with x11, and I'm seeing the following font problem: http://imagebin.ca/view/YfvBTrzu.html
it's clear that emacs knows how to draw the font I want -- the one in the menu bar -- but I cannot figure out how to put it as the main font for the edit part of the program itself
jordanb
Heh, that's a ghey font.
jlf
,fonts
fsbot
[->] font is [0] see http://www.emacswiki.org/emacs/SetFonts
[1] http://www.cl.cam.ac.uk/~rf10/pstex/latexcommands.htm
jordanb
I like it how don knuth maintains his own bitmapped font for xorg so that ``foo'' doesn't look dumb.
tonyg
jlf: thanks; i've tried the shift-click menu
the font I'm after (the one in the menu bar of the image i linked a minute ago) doesn't seem to be in the menu
jordanb
Aren't mac users supposed to use textmate?
jlf
tonyg: i have e.g. (setq initial-frame-alist '((font . "-b&h-lucidatypewriter-bold-r-normal-sans-12-*-*-*-*-*-iso8859-1") ...))
kodein
jordanb: aren't trolls supposed to be less obvious?
jlf
OH SNAP
jordanb
kodein: Don't worry, I still agree that macs are AWESOME
jlf
,fanboi
fsbot
fanboi -- [0] someone who flogs the fruit
[1] jordanb (reportedly),
[2] jlf,
[3] johnw,
[4] e1f, once, now, always,
[5] Riastradh,
[6] ridip because it was the best *nix-based laptop he could buy., ..[Type ,more]
jordanb
See?
jlf
,s/reportedly/confirmed/ in fanboi 1
fsbot
Replaced string "reportedly" with "confirmed".
jordanb
,more
fsbot
To see docs after <..+more>, type , more or ,l. Also use ,TERM N to see the TERM nth entry onwards.
kodein
wouldn't it be iFan?
jordanb
OSX is Unix like HP-UX was Unix.
docgnome
heh
jordanb
As in, 'technically.'
docgnome
well
actually OSX is UNIX
jordanb
technically
tonyg
(Action) wishes xfontsel sucked less
docgnome
jordanb: no, in fact. UNIX not to be confused with unix
they paid the money to use the tm heh
jordanb
Ah.
ams
technically, anyone who pays the opengroup enough money gets to call their OS for UNIX.
Window could be UNIX.
docgnome
yeah, i'm not saying that it means anything
ams
Windows NT or something was after all POSIX compliant..
jordanb
That was back before microsoft figured out that it was way cheaper to buy your own standard than to half-ass somebody else's.
kodein
there's been POSIX packs for all windows versions in the NT series, more or less
ams
kodein: no need for `posix' packs..
kodein
indeed
ams
kodein: it wascompliant with posix.
jordanb: posix can't be bought.
kodein
they also sold their unix to SCO too, and we all know what that led to
jlf
ams: are you having trouble with your space bar?
ams
jlf: ye
and s key
kodein: xenix?
kodein: i don't think they transfered anything of xenix to sco
jordanb
ams: That's not what I meant there, sport. But thanks for playing!
jlf
(Action) 's first *nix account was on a trs80 model 16 running xenix
kodein
SCO acquired it somehow, tho
ams
jlf: i'm so sorry, that is why you are insane.
jlf
i have fond memories of it actually
jordanb
I can see why someone who liked xenix would like OSX.
ams
01:27 !!! consolers sent unsupported ctcp: EATSHITANDDIE
ah!
jordanb
Remember when JWZ was an Irix bigot?
ams
how cuddly!
jlf
jordanb: well.. it was quite a revelation after trs-dos
ams
hehe consolers is really cute today
jordanb
rudybot: quote
rudybot
Let's reprogram emacs in scheme.
ams
anyway, night.
jordanb
rudybot: quote
rudybot
Let's shoot down a Korean airliner.
jordanb
rudybot: quote
rudybot
We should port WoW to the difference engine.
jordanb
Let's make a video game where you have to do the same dumb thing over and over again.
kodein
frogger?
jordanb
At least in frogger it gets faster.
tonyg
hooray! after lots of mucking about with xfontsel and .Xdefaults and xrdb and restarting emacs, I'm back where I started: with a sane font setting! Thanks, jlf, for the pointer into emacswiki.
jordanb
rudybot: quote
rudybot
We should make Iraq celebrate the fourth of july.
jlf
it is so awesome having to explain basic concepts to people who make twice my salary
ned
im running emacs-snapshot-gtk. when i try to create a new frame, a new window pops out. is there anyway to make the frames function as though it was running in emacs -nw ?
jordanb
rudybot: quote
rudybot
I'll bang you.
jordanb
rudybot: quote
rudybot
Let's accelerate our life.
rgr
if I create a list '("el1" "el2" el3) where I (setq el3 "SUPRISE") then why do I not see SURPRISE as the element when I loop that list? Some sort of symbol thing? I have no idea. What do I need to read up on?
cluck
jordanb: what's your problem with toc-tac-toe and sudoku? huh?
jordanb
?
cluck
[00:31:08]<jordanb> Let's make a video game where you have to do the same dumb thing over and over again. :)
jordanb
Well, you can only win at tic tac toe if you're playing an idiot.
« prev 1 2 3 4 5 6 7 8 9 10 next »