logs archiveIRC Archive / Freenode / #emacs / 2010 / January / 23 / 1
jlf
hmm, i'm seeing messages such as "*** gczdlpupgexu: No such nick/channel" in my erc buffer, as if i had tried to /msg gczdlpupgexu. anyone know precisely what is happening?
ams
jlf: user in question sent a ctcp, your client tries to answer it.
like...
kodein
I must say their source is surprisingly well commented.
ams
jlf: you should have gotten something from me now,no?
jlf
ams: no, nothing
kodein
jlf: ctcp version spamming
ams
hm.
oh,right..
you send it to the channel i think
gofigure
anyway, got better things todo.
jlf
kodein: any more details?
(Action) is curious
plus i need to unload all this c14l15 somewhere
ams
jlf: read the announcment.
         

jlf
fu*k, fire drill
swathanthran
jlf: /mode <nick> +CE
erc is responding to ctcp requests (like answering a ping)... you can also do M-x erc-toggle-ctcp-autoresponse but mode changing should do it.
ams
ah, right..
rcirc doesnt' do ping...
jlf
swathanthran: interesting. istr that freenode does a ctcp version request upon connect; will disabling autoresponses cause trouble?
kodein
jlf: no, they use it for statistics and so on
jlf
(Action) nods
kodein
so no trouble really if you ignore it.
boscop
http://www.youtube.com/watch?v=Qv1pEKAy25A
junis
is there an eacy way to kill a buffer while juct walking the *Buffer List*> buffer?..
jlf
junis: d x
junis: also, from ido's C-x b you can do C-k
junis
what is ido?..
jlf
,ido
fsbot
[->] I heard InteractivelyDoThings is [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?InteractivelyDoThings
[1] an extended reimplementation of iswitchb that also covers operations like opening new files (as well as switching buffers like iswitchb),
[2] an alternative to iswitchb
junis
lovely...
jlf
junis: ido has a nice fuzzy match feature where you can type just a few characters of a buffer/file name to disambiguate
kenyon
what is the hot setup for using git in emacs these days, egg or magit?
Nafai
I prefer magit myself
swathanthran
kenyon: haven't tried egg.. but magit works cool..
kenyon
magit development looks more active/recent
jlf
(Action) e ido
         

zeev
junis
at what mg/Kg the lethale doze of zopiclone myght be?...
ruediger
kenyon: more active? lol
shabble
junis: it's ok, life is worth living. just stop using vi(m) :p
kenyon
ruediger: just skimming their commit logs on github/gitorious, I dunno
ruediger
sadly magit looks pretty dead. the mailinglist is full of spam and nobody cares to comit or comment on patches :/
kenyon
that's unfortunate
ruediger
http://gitorious.org/~philjackson/magit/philjacksons-reclone <-- that looks more active
but I guess magit simply lacks maintainers
subopt
What's the cmd that tells me if my buffer is different from its file?
junis
i just kno :x q! about vi
ruediger
subopt: (diff-buffer-with-file (current-buffer))
subopt
ruediger: thx.
joe_42
Hi
I would like to know how to let auto-save save every time in a different file, like save1,save2, etc.
jlf
joe_42: ,,df make-auto-save-file-name
fsbot
make-auto-save-file-name is a compiled Lisp function in `files.el'.
(make-auto-save-file-name)
Return file name to use for auto-saves of current buffer.
Does not consider `auto-save-visited-file-name' as that variable is checked ..[Type ,more]
junis
how do i kill the buffer that C-x o would go to ?...
jlf
do you mean the window?
junis
i do mean that... close the window ... thand you jlf how do i do that?..
jlf
if you have only two windows, C-x 1 in the window you want to keep
ams
jlf: C-x 4 0
swathanthran
:)
shabble
junis: if you have more, C-x o C-x 0
ams
shabble: C-x 4 0
swathanthran
ams: he was asking for closing the other window:)
ams
swathanthran: yes, C-x 4 0
chrisdone
good day, emacs lovers (and sneaky haters)!
shabble
ams: that's bound to kill-buffer-and-window for me, which I assume operates on the active window
ams
oh,doh,soryr.
junis
someone lied to me here .o\
mathk
HI I have a fresh compile of emacs fro cvs and got an error on startup
jlf
shabble: technically he should do 'C-x o C-x 0 C-u - 1 C-x o' to get back to his original window :p
chrisdone
mathk: haha, surprise surprise!
mathk
I am running on osx
ams
junis: please refrain from calling people liar unless you are DAMN sure.
23:46 /ignore junis
mathk
Debugger entered--Lisp error: (error "Cannot open doc string file \"/Applications/Emacs.app/Contents/Resources/etc/DOC-23.1.90.2\"")
jlf
junis: don't worry; ams is extremely /ignorant
shabble
jlf: seems like there should be a delete-other-window, but doesn't look like there is
jlf
(Action) predicts an imminent "<ams> 23:46 /ignore jlf"
mathk
this is when I load ecb
ams
jlf: jesus loves you.
junis
lovely...
shabble
mathk: does that file exist?
mathk
nop
but I have the DOC-23.1.90.1
jlf
ams: you reminded me of that bumper sticker.. 'jesus loves you; everyone else thinks you're an as****e'
junis
but i didn't even called anyone a liar
ams
jlf: i like that quote.
shabble
mathk: ln -s /that/path/DOC-thing /that/path/DOC-thing.2
swathanthran
mathk: which platform are you running emacs on?
mathk
why not shabble but the problem remain
osc
jlf
shabble: i like ln -s /that/path/DOC-thing{,.2}
mathk
osx
10.6
junis
(Action) lights a fmoke....
mathk
nexstep
Cocoa I guess
shabble
jlf: is that a bashism?
jlf
(Action) nods
i wouldn't be surprised if it were in ksh and zsh
shabble
that could be quite handy
jlf
yeah, it really is
shabble
I know zsh has all sorts of crazy glob support
jlf
mv foo{,.old} etc.
shabble
although it'd probably be {.1,.2} in his case
I only recently started using foo[xyz]baz recently
s/recently//
good wording me
mathk
swathanthran shabble think I got it
joe_42
jlf: so I have to override make-auto-save-file-name and somehow put numbers in it with regexp or using a command in lisp?
mathk
my make clean faild due to permission
joe_42
jlf: I'm not familiar with lisp and google does not help much so I can't figure out how.
mathk
, onlisp
fsbot
hmm, onlisp is [0] at http://www.paulgraham.com/onlisp.html
[1] "available online at
[2] "All there is to know about Lisp macro programming.",
[3] available as an /unofficial/ texinfo file: http://t2100cdt.kippona.net/linux/lisp/
jlf
joe_42: i think you could just advise the function and append your uniquifier to the return value
shabble
joe_42: http://www.emacswiki.org/emacs/BackupEachSave sounds like it might be what you want
joe_42
shabble: thx
shabble
but, you're probably better off using a version control system. I have some things with an after-save-hook to call git commit.
mathk
oops joe_42 thought you were loking for lisp documentation
joe_42
jlf: I read about advises, but didn't get the concept. I guess I'll leave it at that until I have some time to struggle through lisp :)
mathk:no problem, I'll need it sooner or later
stepnem
,fortune
fsbot
So you're back... about time...
mathk
I have still a small issue when starting emacs : I got 3 open buffer a part from the on of ecb which is, compiler-log and 2 scratch buffer. Someone now how to remove them
stepnem
,botsnack
fsbot
my favourite snack!
e1f
mathk: check if you have a .emacs file. the code to setup those buffers might be there
Tekk_
how do you start the interactive interpreter?
for emacs lisp, obviously
mathk
M-x ielm
e1f
you can eval stuff in the *scratch* buffer interactively
jlf
or M-:
Tekk_
awesome
thanks
mathk
e1f: I dont see any such thing as buffer setup in my .emacs
e1f
ok, when you start emacs -q do the buffers appear
mathk
nop but those buffer might com from ecb
seems that I have the same issue than http://old.nabble.com/%60save-excursion%27-defeated-by-%60set-buffer%27-td26840925.html
timcharper
kodein: thanks. I just disabled it.
e1f
ok, is there a ecb start-up file then? .ecbrc or something?
mathk
I got a .ecb-tip-of-the day.el in my home dir
here is the content of the compile-log http://paste.lisp.org/+20CK
e1f
check the emacswiki.org entry for ,,ecb and see if there's any info
fsbot
[->] From memory, EmacsCodeBrowser is [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?EmacsCodeBrowser
[1] at http://ecb.sourceforge.net/,
[2] an XEmacs package, see http://www.xemacs.org/Documentation/packageGuide.html,
[3] at http://www.emacswiki.org/cgi-bin/wiki.pl?ECB, ..[Type ,more]
nejucomo
I want to execute a shell command after saving all files of a certain type, so I started with (add-hook 'python-mode-hook (lambda () (add-hook 'after-save-hook &)))
This is obviously wrong, because add-hook seems to be global.
How do I install a buffer-local hook?
ams
huh??
fsbot
Yes
ams
what do you mean global?
add-hook is a function...
nejucomo
I mean, add-hook modifies global state.
My original mental model was: "Everytime python-mode kicks in, modify a hook for *the current buffer* so that saving a file does FOO."
Instead I have "everytime python-mode kicks in, append to a global list of save file hooks to do FOO."
ams
yes...
nejucomo
Are there per-buffer hooks?
ams
what is a per buffer hook?
actually...
lets make it easy
what do you want to achive?
nejucomo
I don't know if they exist in emacs, but it's quite easy to specify: When calling hooks for a given symbol name, first check for a list of functions in a buffer local variable of that name, then execute them, then check for a list of functions in a global variable of that name, then execute those.
What I want to achieve:
Every time I save a python file, execute a shell command on it.
A simple inelegant solution is to have a hook that executes on every buffer save, and checks to see if it is in python-mode before doing its stuff.
ams
tbat
that is the rightsolution.
nejucomo
So determine the mode of the buffer, and then if it is a certain mode, do X. Doesn't it seem more elegant to have buffer or mode-specific hooks?
johnw
there are no mode-specific hooks for just saving a file
ams
python-mode is mode specific.
it is related to the python-mode.
what you are doing has nothing to do with the mode
you are using write-file, and you wish to do something with something at that point
so it is related to write-file,andnot the mode
nejucomo
Ideally it *would* involve the mode someday, because I want to annotate the source code with the output of a tool& But simple steps first. ;-)
ams
?
so do that.
nejucomo
Perhaps I will someday. It's a question of which yaks to shave when.
DuClare`
jlf, ERC doesn't annoy you by telling it has automatically replied to something it has been told to reply
johnw
and what to do with the yak hair that results
damd
johnw: isn't it obvious?
johnw
yak-hair pancakes?
damd
lol, wtf
guys, this guy doesn't know what to do with yak hair
what a n00b
philsnow
aren't you supposed to use it to fashion restraints to help shave the next yak ?
jlf
it's a hairy problem, no doubt
« prev 1 2 3 4 5 6 7 8 next »