logs archiveIRC Archive / Freenode / #emacs / 2010 / June / 13 / 1
ManateeLazyCat
Kiba: I need go now, I think it's something wrong with your configuration file, it's not fault of yasnippet.
Kiba
what does it mean when (yas/load-directory "~/emacs/snippets/") yield a nil?
does it mean there's nothing loaded?
ManateeLazyCat
Kiba: Where your yasnippet directory?
Kiba
~/emacs/yasnippet-0.6.1c
ManateeLazyCat
Kiba: Has sub-directory *snippets* under ~/emacs/yasnippet-0.6.1c ?
Kiba
?
there's a directory called snippets under ~/emacs/yasnippets-0.6.1c
ManateeLazyCat
Kiba: Do you have directory "~/emacs/yasnippet-0.6.1c/snippets" ?
Kiba: So write (yas/load-directory "~/emacs/yasnippet-0.6.1c/snippets")
Kiba
yep
I just did
ManateeLazyCat
Kiba: Then do yas/reload-all
         

Kiba
done
ManateeLazyCat
Kiba: And re-open some files, example foo.c
Kiba
than what?
ManateeLazyCat
Kiba: And type some snippets (such as your self.$1)
Kiba
oh dear
I have to save that snippet
under the new directory
ManateeLazyCat
Kiba: Type any snippets that exist under ~/emacs/yasnippet-0.6.1c/snippets
Kiba
still no go
err
I try that
shader
how would you write a simple extension to compile or smart-compile so that the compile window closes if it was successful?
ManateeLazyCat
shader: I remember i have this code.
shader
cool
ManateeLazyCat
shader: I remember, my friend ask same question 2 years ago.
damd
Compiling vc/cvs-status.el
In toplevel form:
vc/cvs-status.el:33:1:Error: Cannot open load file: pcvs-util
...from latest bzr. any ideas?
madpickle-
it couldn't open the file "pvcs-util"
=)
damd
:(
ManateeLazyCat
shader: Just add some *advance* (emacs keyword) in smart-compile, when successful, close window.
damd
wdired is just so amazing :((((
makes me want to weep
legumbre
how could we not weep? :(
Kiba
finally!
yasnippet works
and it works better than tempo
w00t time!
(Action) gained 300 EXP points in emacs-wizardly
skill
jbms
For 1 additional EXP point, you can find the actual role-playing game that is built into Emacs itself
well, not really role-playing, but...
Kiba
there's a mode for nethack?
         

shabble
yes
although it needs a custom nh build, iirc
,df dunnet
fsbot
dunnet is an interactive compiled Lisp function in `dunnet.el'.
It is bound to <menu-bar> <tools> <games> <adventure>.
(dunnet)
Switch to *dungeon* buffer and start game.
alise
Is there anything which can hyphenate text on fill? I've seen an implementation of Liang's hyphenation algorithm, but it was just the algorithm, not plugged into filling.
There's modes to do justification, but that just makes text unreadable without proper hyphenation.
jbms
alise: maybe the new word-wrapping is enough?
jordanb
Ok.
alise
jbms: does it hyphenate?
jbms
no
alise
Then no, it is not suitable for use with justification.
jordanb
I realized another absurdity in Johnny Mnemonic.
So
The data was too large to send over the network so they had to load it into his head.
Yet.
When they decided to transmit the data.
It took like 30 seconds to broadcast all of it.
What The Fuck.
rudybot: quote
rudybot
I blame oil companies
jordanb
rudybot: eh?
rudybot
jordanb: Eh, the firmware group was an older crowd probably about a decade away from retirement. I get the feeling they just didn't care.
jordanb
rudybot: eh?
rudybot
jordanb: eh, i guess that's it actually, haven't seen sources of schmuse (only docs / mit ai memos)
jordanb
rudybot: eh?
rudybot
jordanb: yeah, he's a national treasure, eh
jordanb
rudybot: eh?
rudybot
jordanb: Eh, nobody is going to give these guys any real authority. I'm not worried. But I'm sad that somebody actually wanted to do that.
quotemstr
Do what?
jordanb
rudybot: eh?
rudybot
jordanb: You know, I'd like programming to accept the mu value into their logic. This two-valued boolean stuff is just too boring, I'd like my programs to just say "eh, I dunno" every now in a while.
quotemstr
Oh.
jordanb
rudybot: eh?
rudybot
jordanb: eh? a us piint is something like 470 ml
jordanb
The "eh?" command is better than the "quote" command, as it turns out.
jbms
jordanb: maybe their encrypted transfer incurred a large overhead
jordanb: but transferring it in the clear could be done quickly
jordanb
Since unencrypted brodcast took less than a minute, I'd have to be some epic overhead.
Even 100 times worse would mean it'd take less than three hours.
jbms
didn't the place get raided just as he was leaving?
jordanb
They couldn't have known that was happening.
Anyway, they could have transmitted it in the time it took to hire him and have him fly to asia...
And he arrived late too.
jbms
well, you can imagine that with quantum computers or whatever, traditional encryption may not be usable, and maybe only very high overhead methods can be used...
Also, back when the movie was made, most people thought of "the network" as dialup speed, while "broadcast" seems like more an analogy towards television broadcasts, which were transmitting at a significantly higher data rate
jordanb
Broadcast was hire "data rate" because it was analog.
jbms
jordanb: even disregarding that, television signals contain much more data than a dialup signal
alise
this is the most technical discussion of johnny mnemonic ever
jbms
anything to get out of doing actual work...
FFighter
hi
ayon
heterogenous?hi
jordanb
The thing is that jbms' argument seems like the ones you see on memoryalpha about Star Trek. No matter how sloppily and lazily the star trek violate common sense and the rules of the universe they created themselves, the fans come up with some bizzare explanation to try to rectify it.
FFighter
how can I get the current value of the color (HEX) used in the buffer background color
?
ayon
woops
FFighter
any ideas?
I want to get the HEX value for the color currently being used as background color for frames/buffers
alise
jordanb: well if you are going to nitpick about *JOHNNY* *MNEMONIC* you are already in the realms of extreme pedanticry
jordanb: so anything goes.
ayon
FFighter, M-x apropos-command background will give you a hint.
at least it should. I've never done it myself.
i mean the hint. I have run apropos-command background :)
jbms
jordanb: bizarre explanations to rectify the problems that you identified are precisely what I was trying to come up with...
jordanb
I'm explaining why it's a horrible movie that makes it impossible to suspend my disbelief.
armyriad
How would I create a regexp that matches lines that do not contain a certain string?
ggole
With difficulty.
Arrange not to have to do that.
shabble
you're better off doing (not (re-search-forward "whatever")) if you can
johnw
you could say: (while (not (eobp)) (if (re-search-forward "" (line-end-position)) t nil) (forward-line 1))
Philonous
Could someone please help me out with an elisp function that determines whether a given character is an uppercase letter?
(Or the appropriate section in the documentation)
shabble
Philonous: (let ((thing "x")) (when (equal thing (upcase thing)) "upper case"))
as a function, soemthing like (defun phil-isuppercase (thing) (equal thing (upcase thing)))
Philonous
shabble: Well, thanks, but isn't there a less... kludgy version?
quotemstr
I have a C++0x argument pack args (with type Args) and a callable C. I'd like to call C(func(0,args[0]), func(1, args[1]), ... func(N, args[N])))
Philonous
I'd presume there is a standard function for that. It seems like a fairly common thing to do.
quotemstr
What's the best way to go about doing that?
DraX
what's kludgy about it?
shabble
Philonous: I don't know if there's a builtin, a brief poke at the info pages and I can't find one.
you could use a regex, I suppose, with string-match
Philonous
shabble: That sounds more more reasonable. Thanks.
DraX: Observing the effect of a function that changes a value to determine a property is a rather roundabout way of doing something that should be as simple as checking it's representation. Also, I suppose "upcase" itself somehow determines the case of the character, why wouldn't that be exposed directly?
benny
This is insane... I set a command to be Edebug, but I run it and it never goes into the debugger
shabble
elegant, easy, correct. Choose none :p
benny
it seems to be related to whether or not the buffer is read-only, that's weird
legumbre
shabble: I like your style!
johnw
benny: try (debug)
as in, insert it into the definition
benny
that stops the defun
johnw
there are times when edebug won't fire
it shouldn't
make it part of the functino body
benny
yeah I mean I get a backtrace
johnw
yeah
benny
can I get a stepper from there?
johnw
just the standard one, not edebug-style
type 'd' to descend
shabble
legumbre: it's my new development methodology
I call it "Fragile"
johnw
haha
thats' awesome
Functional yet Relative AGILE
legumbre
haha
benny
johnw: sorry, false alarm
doesn't go into backtrace when the buffer is read-only
quotemstr
Damn you, C++, for making the equivalent of APPLY so complicated.
waltermai
if I copy a /usr/bin/share or such things in my ~ to the root directory, will it erase those directories current contents?
or mv, rahter
benny
okay, I'm silly... I used (interactive "*r")
(because I delete text) ... but now the command was extended
legumbre
(Action) revokes benny 's defun privileges
benny
I was tainted by an earlier encounter where edebug didn't fire even though I called it
it's everybody else's fault!
quotemstr
Try to avoid getting gruesomely killed.
FlyingBishop
How do you kill a *gud-progname* buffer?
I try C-x k, but then it yells at me with "gdb-input: Process gud-progname not running"
Which you would think would make it free to go away
vIkSiT
hi all
I'm suddenly facing an error trying to update some packages on elpa :http://paste.lisp.org/display/111384
I'm not familiar with the elisp traces. Would anyone know what it refers to?
sorry, that link became un-clickable : http://paste.lisp.org/display/111384
FlyingBishop
Did you change anything in your .emacs?
vIkSiT
FlyingBishop, no, no changes to .emcas
just elpa (trying to update the swank-clojure and slime packages)
ah if i disable elpas package.el, the error goes away
FlyingBishop
diff package.el with the most recent version?
vIkSiT
hmm weird. I actually ended up overwriting the old files since I didn't think anything would crash
but even a simple slime install seems to be causing a lot of compilation warnings
jordanb
When you consider the huge exposure of British pension funds to BP it starts to become a matter of national concern if a great British company is being continually beaten up, said Mr. Johnson, a member of Camerons Conservative party
jmdc
Crossposting from #org-mode, it seems pretty quiet over there: Is there a way to add an exception to a timestamp with a repeater interval? For example, I have my class schedule in org-mode and class is cancelled due to a holiday. I would like to tell org-mode to take the classes out of my agenda on that one day only.
jordanb
rudybot: quote
rudybot
I'll define your lambda.
Kiba
5 flies has died by being sleepy on my desk
slapped to death by awesome 4x4 notecards
shader`
how do you tell erc to ignore all the background noise of people logging in and quitting?
legumbre
,dv erc-hide-list
fsbot
*List of IRC type messages to hide.
A typical value would be '("JOIN" "PART" "QUIT").
You can customize this variable.
Defined in `/usr/share/emacs/23.1/lisp/erc/erc.elc'.
shader`
interesting
what does "dv" mean?
legumbre
describe variable
shader`
ah
the interesting thing about deactivating or activating event awareness is that you can never tell if it worked or not ;)
legumbre
:)
jordanb
http://chzoddlyspecific.files.wordpress.com/2010/04/129168595598188797.jpg
shader`
what's the best way to look up the source for built in emacs functions?
madsy
Does emacs have a mode for (f)lex and bison?
« prev 1 2 3 4 5 6 7 8 9 next »