logs archiveIRC Archive / Freenode / #emacs / 2010 / April / 27 / 1
bremner
5 line README, 2 of the blank. Up to the community doc standards I see.
jlf
sounds more like a WRITEME file
yonkeltron
jlf: zing.
,yow
fsbot
DIDI... is that a MARTIAN name, or, are we in ISRAEL?
yonkeltron
haha
it is actually funny
metaperl[A]
WRITEME file... lol
quotemstr
"Microsoft gives you Windows; Linux gives you the whole house."
cvandusen
and Emacs is the kitchen sink
damd
ENOUGH WITH THE ANALOGIES
         

yonkeltron
quotemstr: "Microsoft gives you Windows. Linux gives you the option of not using sh*t software"
bremner
analogies are like a burrito
kanja
they're tasty
bremner
and if you hit damd with enough of them, he gets angry
metaperl_
oh, ok
damd
lol
cvandusen
I thought analogies were like similes
quotemstr
Analogies are like trucks. Ford makes them.
boscop
how can I go to the next mark in the ring?
ashawley
boscop: (info "(emacs) Mark Ring")
magcius
okay
what are with the stuff in emacs regexps like "\\foo\\'"
metaperl_
my brace-matching isnt working in cperl-mode ... how do I turn it on?
kanja
magcius: emacs regexps predate perl, so they aren't done as well
quotemstr
magcius: They're look an old hog in the morning.
magcius
Where are those things explained in the manual?
kanja
actually - does anyone know of a package to use perl style rather then classic emacs?
http://jamesthornton.com/emacs/node/emacs_97.html1
quotemstr
magcius: All editors are alike when your monitor is off.
magcius
oh
I'm an idiot
they hid the stupid thing under the "Next" button
http://www.gnu.org/software/emacs/manual/html_node/elisp/Regexp-Backslash.html
jlf
quotemstr: nope, vim is way beepier
quotemstr
jlf: A clock will run without watching it.
         

boscop
I'd need to pop n-1 marks off to get the last, or is there another way?
magcius
that explains the "\\'" but not the "\\" that starts the string
quotemstr
magcius: It's probably a ' that you just didn't see.
magcius: Either that, or a bug.
magcius
\\.h\\'
from flymake.el.gz
oh wait
\\. just means the literal "." character
who maintains flymake?
mfisher
http://sourceforge.net/project/memberlist.php?group_id=77501
user2379
Hi, all. I'm having issues with nxhtml (can't find rng-auto.el). I saw a discussion about it (http://tinyurl.com/374xcnf), but I can't make heads or tails of anything. Does anyone know how to get nxhtml working? I'm using the version released yesterday, though I had the same issue with the previous one (2.04?) as well. Thank you!
mfisher
AFAICT, that is the flymake support group
cvandusen
user2379: The instructions in README.txt should work.
specifically, (load "YOUR-PATH-TO/nxhtml/autostart.el")
user2379
cvandusen: I did that. The error in *Messages* is occurring while processing autostart22.el
Oh, no. I'm sorry.... I could have sworn I had emacs 23, not 22
cvandusen
user2379: What message?
user2379
I just double-checked, and I have 22, not 23 - I'll update. I'm sorry to bother you!...
cvandusen
user2379: np
magcius
is there a way to compare the contents of two files?
basically, equal or not equal
ashawley
magcius: M-x diff
magcius
ashawley: in elisp
ggole
Or compare their hashes
cvandusen
,ediff
fsbot
cvandusen: Ediff is at http://www.emacswiki.org/cgi-bin/wiki.pl?Ediff
magcius
ggole: how do I get the hash?
ashawley
magcius: (diff old new)
(Action) laughs at his own bad jokes
ggole
md5sum(1)
ashawley
,df compare-buffer-substrings
fsbot
compare-buffer-substrings is a built-in function in `editfns.c'.
(compare-buffer-substrings BUFFER1 START1 END1 BUFFER2 START2 END2)
Compare two substrings of two buffers; return result as number.
the value is -N if first string is less after N-1 chars, ..[Type ,more]
magcius
ashawley: do they have to be in buffers?
ggole
If you want to use elisp, yes
ashawley
(Action) agrees with ggole
jlf
he could just call diff and check the exit status
ashawley
What Emacs can't do in buffers it delegates to the shell.
magcius
okay
ggole
Why do you need to compare file equality?
magcius
ggole: to hack around something
ggole
Ugh
If you insist on doing it in elisp, there is ,,df md5
fsbot
md5 is a built-in function in `fns.c'.
(md5 OBJECT &optional START END CODING-SYSTEM NOERROR)
Return MD5 message digest of OBJECT, a buffer or string.
A message digest is a cryptographic checksum of a document, and the
algorithm to calculate it is defined in RFC 1321. ..[Type ,more]
ggole
But md5sum(1) is probably better
dionisos
hello
with the delete-selection-mode active, that is possible to make the erase text not go to kill-ring ?
damd
dionisos: if you want it to
dionisos
damd: how ?
damd
dionisos: sorry, i may have misunderstood the mode. i don't know.
ashawley
dionisos:
M-x finder-commentary RET delsel RET
dionisos
ashwawley: emacs tell me he can't find library delsel
ashawley
(Action) . o O (Emacs is a dude?)
dionisos: What version of Emacs do you have?
dionisos
GNU Emacs 22.2.1
i will see that it is not able to find simple.el too
ashawley
What platform?
dionisos
ubuntu(gnome)
ashawley
Ubuntu doesn't include the Elisp libraries by default.
You have to include a package called emacs-el or some such.
dionisos
ok thx, i will see that
malsyned
Is there a way to get emacs to leave point where it is when I scroll with the scroll bar so that point would be outside of the window?
ashawley
(Action) checks to see if the Emacs tutorial includes setting the mark.
malsyned: (info "(emacs) Mark Ring")
dim
[msmtp/gnutls] msmtp: TLS handshake failed: Internal error in memory allocation. --- any known workarounds?
malsyned
ashawley: is that shorthand for "no, but here's what to do instead"?
moljac024
do you guys know why hitler killed himself?
ashawley
malsyned: It was the other alternative to yelling "Don't use the mouse!"
jlf
,yow
fsbot
I want DUSTIN HOFFMAN!! .. I want LIBERACE!! YOW!!
malsyned
ashawley: I usually don't use the mouse. But an outright prohibition on it misses its occasional utility.
dionisos
ashawley: i don't understand the commentary: "Commands which will delete the selection need a 'delete-selection
property on their symbols", command have symbols hook? or that mean to call command with this symbol
ashawley
malsyned: Same is said about drugs.
dionisos: Right it will take adding some `put' entries in your .emacs file.
malsyned: So you consider yourself a casual mouse user?
malsyned: You know they have support groups for that?
moljac024
i use a mouse too
malsyned
ashawley: yeah, they're called Photoshop (ams: or Gimp) User Groups
ashawley
The first step in the 12-step program is getting over denial and admitting you have a problem.
moljac024
but not with emacs
ggole
dionisos: symbols have a list of attached metadata called a property list
ashawley
dionisos: Which commands do you not want to have delete-selection-mode not kill with?
dionisos
the yank command
ggole: thanks for this info
seangrove
Is there a way to script ssh via emacs?
malsyned
seangrove: can you be more specific about what you mean?
seangrove
malsyned: I have a series of steps I always do... ssh -p someport someuser@somehost, sudo -s <password> cd ~somedir kickoff_some_tests
but the ssh timeout is very short
So I'd like emacs to do everything up to the last command
malsyned
seangrove: you can accomplish this just fine without using emacs.
seangrove
I suppose, I just enjoy using emacs lisp a bit more than bash shell
jlf
,scsh
fsbot
I heard scsh is [0] the scheme shell.
[1] at http://www.scsh.net/,
[2] manual at http://www.scsh.net/docu/html/man-Z-H-1.html,
[3] See Lush, (Lisp Universal Shell) at http://lush.sourceforge.net/doc.html,
[4] See clash (clisp shell) at http://clisp.cons.org/clash.html, ..[Type ,more]
seangrove
Ah jlf, you and your strangely encyclopedic knowledge
jlf
hehe
malsyned
seangrove: ssh -p someport someuser@somehose "sudo -s \"cd ~somedir; kickoff_some_tests\""
seangrove: the quoting there might not be exactly right.
seangrove
That's pretty simple, I like it :)
I'll check it out malsyned, thanks
SirNick
I've recently started using ecb and something that has been bothering me is that if I click a directory or source in the directory tree, the tree automatically scrolls to some position. Does anyone know if there is a way to turn that off? I couldn't find it in the docs.
malsyned
seangrove: add -t before -p
bpalmer
has someone compromised the jlf=human wikipedality project ? We need to initiate 3rd impact NOW
madpickle
,eshell
fsbot
I think eshell is [0] the shell implementation written entirely in elisp. Finally a decent shell, no matter where you run Emacs.
[1] at http://www.emacswiki.org/cgi-bin/wiki.pl/CategoryEshell
madpickle
(Action) wins
jlf
(Action) looks around nervously
madpickle
,beer jlf
fsbot
(Action) slides jlf a warm mug of Orval!
jlf
,martini jlf
fsbot
bettersalespitch -- let's go out to an expensed, 4-martini lunch and then sign the contracts.
malsyned
seangrove: and that won't quite work either. the quoting is wrong. gimme a sec.
madpickle
the best martini is: 1 part gin with one piece of olive to be enjoyed whilst glancing in the general direction of a bottle of vermouth.
seangrove
malsyned: Acutally, I'm hoping it will just drop me into the directory when it's finished
bpalmer
the best martini involves pouring it down the sink and making a margarita instead.
jlf
,flame bpalmer
fsbot
bpalmer: when the humans take over, you will be first against the wall,
seangrove
So no -t flag I think
malsyned
seangrove: that's not what the -t is for.
madpickle
(Action) sics the ghost of ams past on bpalmer
malsyned
seangrove: the -t is so that sudo can read your password without echoing it.
seangroove: almost got this. hang on.
jlf
(Action) has had to stop ordering martinis in restaurants lately because some horrible concoction of vodka frequently arrives instead
madpickle
who serves a martini with vodka when you ask for a martini straight up?
SirNick
Anyone have any insight into how to get ECB from auto scrolling when I click something in the directory list?
madpickle
i mean sure, if you ask for vodka martini the intent in clearer (thoug i'd still argue that it is wrong)
SirNick: sorry, i don't use it.
SirNick
madpickle: thanks anyway
madpickle
SirNick: does it scroll your main window?
or ECB itself?
malsyned
seangrove: OK, here we go...
SirNick
madpickle: no, it just scrolls the document tree to some seemingly random position
madpickle
SirNick: hmm
SirNick: does it recenter on the clicked node, perhaps>
malsyned
ssh -t -p someport someuser@somehost "sudo bash -c \"cd ~somedir; kickoff_some_tests\"; bash -i"
SirNick
madpickle: it seems like it might be trying to, but it often isn't actually in the center... Either way I would prefer it didn't move at all
malsyned
seangrove: ^^^
dim
[gnus message] how to send messages to localhost:587?
seangrove
malsyned: perfect :)
malsyned
seangrove: The stuff between sudo bash -c \" and the second \" is the stuff to run in the sudo session. The bash -i at the end causes ssh to drop into bash after running your initial commands. (but it won't be a sudo shell. for that, say sudo -s instead of bash -i)
seangrove: and actually, say bash -l instead of bash -i anyway.
dim
(defcustom smtpmail-smtp-service 25
ahah
ri4a
Why would he use bash -l?
malsyned
ri4a: for maximum simulation of a more typical ssh login session.
ri4a
Certainly.
Thanks :)
ashawley
dionisos: What does evaluating (put 'yank 'delete-selection) give?
user2379
All right, I got nxhtml working - I cant believe I had emacs 22 unzipped next to an emacs 23 archive.... .html and .css files work well, but I'm now getting thrown into the debugger when trying to load a javascript file: (void-function javascript-mode) - any thoughts?
dionisos
ashawley: i will see, thanks for your help
ashawley
dionisos: Sorry, meant (get 'yank 'delete-selection)
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 next »