logs archiveIRC Archive / Freenode / #emacs / 2010 / March / 20 / 1
quotemstr
You should be able to configure your default printer from http://localhost:631/
laurus
Now what's the print command that utilizes that variable?
quotemstr
,df ps-print-buffer
fsbot
ps-print-buffer is an interactive compiled Lisp function in
`ps-print.el'.
It is bound to <menu-bar> <file> <ps-print-buffer>.
(ps-print-buffer &optional FILENAME)
Generate and print a PostScript image of the buffer.
Interactively, when you use a prefix argument (C-u), the command prompts the ..[Type ,more]
laurus
Yeah, I see that
muep-e
is there any nice way to make the dired mode use an appropriate external program to open binary files?
laurus
quotemstr, it worked!
quotemstr
Good.
laurus
The font is a little small, but it worked, heh.
It's got a nice header too!
         

quotemstr
You can configure all that.
laurus
Cool, well this is a great start.
Thanks a lot!
quotemstr
You're welcome.
lamdk
hey is there a key to select the last thing you selected with Ctrl-space? sumthin like 'gv' in vi
bob2
ctrl-space C-x C-x maybe
quotemstr
(Action) wishes C++ had namespace-private access control
cluck
muep-e: look on the wiki for the xdg-open snippet
lamdk
bob2: ooo yeah, hitting C-x C-x does it!
bob2
it only works if you'res still at the end point, I guess
systemfault
quotemstr: Not necessary, just do like boost, put that kind of code in a "detail" namespace
laurus
Gotta go, take care all!
systemfault
quotemstr: If the lib user uses things from the detail namespace, it's at his own peril
quotemstr
systemfault: That works sometimes, but not when you want different access to different members of the *same* type.
systemfault: Access control in general is a crock.
I'll just make it public and add a comment.
systemfault
Haha ok :)
quotemstr
Making everything a friend of everything else in a module is O(N^2) clearly.
Life's too short to manually do that.
systemfault
I try to avoid "friends" in C++ :P
e1f
it would be interesting to know how often someone suggests that emacs should be re-written in language x
quotemstr
e1f: I sense an xkcd coming on.
technomancy
oh man... that would be an epic graph
systemfault
Haskell!
(Action) flees
         

quotemstr
technomancy: It should be a scatterplot of language versus date.
e1f
hmmmm...
that would be something worth graphing
bremner_
(Action) suggests that emacs be rewritten in teco, to create a cycle
quotemstr
bremner_: But first, we need a teco implementation in Emacs.
bremner_
shouldn't be hard, all we need is an elisp backend for gcc
quotemstr
I don't think the source for teco is available.
And even if it were, isn't it written in PL/1?
bremner_
twb claims otherwise
technomancy
and an egg whisk, yeah
(http://wondermark.com/359/)
HandyGandy
What's zoning mode?
quotemstr
Try it and see.
"In particular, according to the Reuters report, it targeted every single policyholder who contracted H.I.V., looking for any excuse, no matter how flimsy, for cancellation."
HandyGandy
quotemstr: I dson't have to try it, it seems to start on it's own.
bremner_
quotemstr: see http://almy.us/files/tecoclinux0398.tar.gz ; seems to be C version
quotemstr
Why do I suspect all the short domain name namespace will be eaten up by URL shorteners?
bremner_
because you just filed a business method patent along those lines?
jlf
(Action) reports HandyGandy to the society for the prevention of apostrophe abuse
cluck
HandyGandy: a screensaver, more or less
smanek
Hi, I'm having some trouble using emacs/tramp/plink on windows. The main problem was an extra "^M" on the end of all file/directory names, etc
bpalmer
oops. apparently xmonad and metacity don't work well when running simultaneously
bremner_
its hard to find window managers that work well together. they should all be taken out back.
bpalmer
hard to argue with that.
raph_ael
bpalmer: i found a fork of xmonad today
bpalmer
oh? It have anything to offer?
jeremyw
I keep crashing MAT.
raph_ael
bpalmer: http://www.bluetile.org ie xmonad for newbies
crossblaim
hi
sshirokov
Word up
spcshpopr8r
cheers #emacs...
(Action) tips his glass...an IPA at the Hub in Tacoma
stockholm
hi!
all of a sudden TAB does not indent my lines anymore
i am in perl-mode
bob2
C-h k tab
what is it bound to?
stockholm
its bound to perl-indent-command
and perl-tab-always-indent is t
jlf
stockholm: some prefer ,,cperl
fsbot
try: CPerlMode CPerlModeOutlineMode
stockholm
what is the advantage?
jlf
i don't know, i'm mostly done with perl myself
MJBoa
i just tried to set indent-tabs-mode to nil and now my tab key does nothing in emacs, even after i set it back to t
what gives?
i removed ~/.emacs and purged and reinstalled emacs
bob2
no need to reinstall anything
,,repro
fsbot
tell us EXACTLY 1) what you typed; 2) what you saw; and 3) what you expected to see.
bob2
,,-q
fsbot
hmm, -q is if you start emacs with "emacs -q" and the problem goes away, it's YOUR FAULT; check your .emacs. If "emacs -q" has problems and "emacs -Q" does not, it's caused by your distro or local admin.
MJBoa
both of them no longer work
-q and -Q
and all settings i applied through M-x are reset when i close emacs right?
bob2
you mean "regardless of -q and -Q, tab still does nothing"?
MJBoa
yes
bob2
also, you need to mention: what mode you're talking about and what 'C-h k tab' prints in that mode
MJBoa
It happens in Fundamental
TAB runs the command forward-button, which is an interactive compiled
Lisp function.TAB runs the command forward-button, which is an interactive compiled
thats what C-h k tab gives me
bob2
in fundamental mode?
MJBoa
yeah
bob2
that's quite surprising
MJBoa
in lisp interaction i get
TAB runs the command indent-for-tab-command, which is an interactive
compiled Lisp function.
which seems correct
but it still doesnt do anything
gcr
Oh herro! I have a n00b question from a vim user who's considering switching: In vim, there are two marvelous keybindings, C-o and C-i, that let you jump back and forth among a location list of sorts; for example, if you're in the middle of a document and you open a different document, you can jump straight back with just C-O. It's very nice. What's the equivalent keybinding for emacs?
fledermaus
C-x b
or C-x o
quotemstr
(Action) waits for n(00|oo)b to enter the OED.
Why am I getting physically anxious looking at this memory allocation problem? It's as if I'm afraid it's going to beat me up and leave me in a dumpster.
bob2
MJBoa: it's not just that you're expecting tab to actually tab, is it?
quotemstr
Hrm.
gcr
fledermaus: Hmm, interesting. Thanks.
fledermaus
,tutorial
fsbot
I heard tutorial is [0] required reading to receive support here. To start it run "emacs -e help-with-tutorial" or type C-h t
[1] will appear in your language if a translation is available and your locale is set correctly (see "man locales")
quotemstr
Anyone around here used Win32's fibers?
crehberg
does anyone here use slime?
dark
will a file in path ~/.emacs.d/file be loaded automatically, or i need something in my ~/.emacs ?
i'm using 23.1.1
CyberGh0st
(add-to-list 'load-path "~/.emacs.d/") if you using unix/linux
dark
nice.. emacs seems to have added some files there, at ~/.emacs.d/auto-save-list/, is there a problem? (for loading twice, etc)
it's not working u.u
"~/.emacs.d/" really works?
(add-to-list 'load-path "/home/dark/.emacs.d/") isn't working here either
CyberGh0st
try to add full path smt like (add-to-list 'load-path "~/.emacs.d/haml-mode.el")
for example
dark
well then i should use (load "..") i guess
http://www.rattlesnake.com/intro/Loading-Files.html
crehberg
does anyone here use emacs with slime on fedora because i'm having trouble setting it up
rryouumaa
(Action) wishes he knew why his computer is slow despite ps showing nothing unusual except firefox inexplicably using 30% or so of cpu when it is idling even though noscript turns everything off.
quotemstr
Define "slow".
rryouumaa
beachball on this mac, emacs typeahead delayed by a second or more
(beachball = hourglass)
quotemstr
That's odd.
My Macbook's camera-active LED came on, and I didn't do anything.
dark
rryouumaa, what is the version of your firefox?
quotemstr
rryouumaa: A friend had the same problem, but on his hackintosh.
rryouumaa: Do you still see the delay when FF is dead?
rryouumaa: Have you checked that you're not thrashing?
(Activity Monitor has a disk activity indicator.)
rryouumaa
dark: ff 3.5.8 on mac osx tiger
dark
i've found that disk i/o in some versions of firefox are so terrible that having ~/.mozilla in a ramdisk can be a nice option
rryouumaa
how do i check memory reliably again?
is there a command line version?
quotemstr
Activity Monitor.
The command line version is 'top'.
I recommend the excellent GPLed MenuMeters package, by the way.
,menumeters
fsbot
Don't tell any big lies today. Small ones can be just as effective.
dark
memory? here i use free -mt, but there are some caveats.. (i'm on debian though)
quotemstr
,menumeters is a GPLed gkrellm-like system monitor for OS X
fsbot
created.
quotemstr
dark: It's OS X.
dark
yes, i'm not sure if os x has free
quotemstr
It does not.
dark
^^
rryouumaa
which version of memory do i look for?
dark
,menumeters
fsbot
menumeters -- a GPLed gkrellm-like system monitor for OS X
quotemstr
rryouumaa: free
rryouumaa
22.1M free according to top
quotemstr
And wired, active, and inactive?
MJBoa
bob2: regarding the tab issue, i have no idea what fixed it but it now works, not to how i want it to, but to how it was.
quotemstr
"inactive" is page cache, and "active" is in-use memory, AIUI.
rryouumaa
103M, 571M, 326M
quotemstr
If most memory is taken up by wired and active, you're under memory pressure.
Hrm.
MJBoa
i just kept killing and running emacs and turning indent-tabs-mode on and off. i can't figure out why it happened or why its fixed
quotemstr
That's reasonable then.
Okay, let's look at IO.
Do you see a lot of pageins and pageouts?
rryouumaa
MemRegions: num = 9209, resident = 668M + 7.93M private, 119M shared
PhysMem: 103M wired, 571M active, 326M inactive, 1001M used, 22.1M free
VM: 6.08G + 115M 44330(0) pageins, 38526(0) pageouts
dunno if that's a lot or not
quotemstr
No, that's reasonable.
JimmyRcom
doesn't mean you have 22.1 mem available
quotemstr
JimmyRcom: That's just the memory not being used for anything else.
JimmyRcom
or reserved for video card
quotemstr
JimmyRcom
Is there any way to kill a loop in emacs shell other than just kill buffer? Like equivalent to ctrl+C in terminal
quotemstr
C-g
JimmyRcom
thanks
rryouumaa
c-c c-c
quotemstr
Ohh, in eshell.
Yeah, listen to rryouumaa.
JimmyRcom
thanks rryouumaa
rryouumaa
yw
quotemstr
rryouumaa: Also, just as a hunch, but sudo killall mds
JimmyRcom
What if I want to use ctrl+D (stop python, haskell) or ctrl+G(stop erlang) and it eats it as a emacs binding?
rryouumaa
i think (not sure) that i ran into mds in the past and disabled it somehow. just did the killal though. no response.
quotemstr
rryouumaa: No response means it died. Is your system any faster?
(Or to be more precise, that killall had no trouble delivering the death signal.)
rryouumaa
you're right, it must have been there. now i suspect it. but i thought i had disabled it somehow. the system is still slow, but not as slow.
mds is some indexing thing, right? i soooo don't care about indexing.
« prev 1 2 3 4 5 6 7 next »