logs archiveIRC Archive / Freenode / #emacs / 2010 / January / 7 / 1
yonkelphone
,spook
fsbot
interception Gazprom sniper IMF constitution Bin Laden quarter
yonkelphone
,spock
fsbot
yonkelphone: Are you just trying to see what kind of things I have in my vocabulary? Please try to carry on a reasonable conversation!
yonkelphone
Worth a shot...
shyam
is there a doxygen equivalent for elisp ?
i mean what i want to get is an overview of functions and their inter relations before diving into the code..
Licenser
Greetings everyone! I'm in the process of learning some EMACS and I came to a problem mit Aquaemacs it refuses to lead the .emacs.d files -.-
Does anyone has some experience with that? I fail to find something useful on google about it -.-
kodein
do you reference the files in .emacs.d in your .emacs?
e1f
aquamcs is not recommended. use ,,cocoaemacs
         

fsbot
I think cocoaemacs23 is [0] nightly builds for cocoa emacs 23 on os x http://atomized.org/wp-content/cocoa-emacs-nightly/
[1] stable build at https://cocoa-emacs.s3.amazonaws.com/Cocoa%20Emacs%2023.1.dmg
dim
well there's ,g emacsformacosx and ,atomized too
,g emacsformacosx
fsbot
[google] http://emacsformacosx.com/builds
http://friendfeed.com/alexott/afe5a284/avysk-try
dim
,atomized
fsbot
I think atomized is http://atomized.org/wp-content/cocoa-emacs-nightly/
dim
oh yes that's cocoaemacs, sorry for noise
Licenser
I tried that but since every single shortcut I'm used to does horrible things to my files -.-
so I'm going to try to get used to the cocoa thing, thanks people!
dim
Licenser: (setq mac-command-modifier 'meta) (setq mac-option-modifier 'none)
Licenser
dim: thanks for the start up
dim
that could help explain the strange shortcut :)
rokstar
is there a comparable function to read that will write an S expression to buffer/stream? all I can seem to find is stuff like write-char and write-region
timcharper
does Emacs have any hooks that you can tie into that get called when the window is focused?
Licenser
dim: well I need the option key to be meta since otherwise my keyboard is totally messed up (german keybard) just that option-S and such things to horrible horrible things :P
dim
timcharper: window-configuration-change-hook might be the nearest
timcharper
thank you
dim
Licenser: consider qwerty keyboard or layout + adequate input method
I did that (french here, azerty stupid layout) and won't get back
ok but time to get the computer off, good luck, good night
Licenser
sadly that is about 120 Euro, plus I need the special characters for writing usual text like letters :P I've an external qwerty one. Thanks dim and have a good night
dim
Licenser: with the right input method it's easy
ß is s / for example
à a `
etc
with latin-1-alt-postfix, try C-\ to change the input method
it's pretty efficient
Licenser
thanks dim I'll try to work something out
dim
and using mac you can switch to another layout easily on the same keyboard
in International settings
then alt-command-space changes the layout, there's a flag up there to show which is current
etc
well, I said good night :)
         

Licenser
^^
don't want to rob your sleep :P
dim
too late too late (not your fault, like 1h30 late)
Licenser
^^
yates
is there a color thingie in emacs?
DuClare
yates, Yes
yates
color picker thingie
like when designing / editing web pages, a emacs-centric way to pick a color?
in the #xxxxxx representation?
DuClare
list-colors-display
yates
hello? is this thing on? where's the power button?
clop2
when i try to open a file in a directory with many files, emacs takes several seconds before letting me type (presumably scanning the directory) -- is there a way to turn that off?
philsnow
clop2: are you tab-completing anything, or just typing the full path into find-file ?
clop2
i just type C-x C-f and it gives me the pause right then
it's probably the ido-mode thing
philsnow
(Action) knows nothing of ido sorry
jlf
clop2: ,,-q
fsbot
I heard -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.
konr
Is there any general rule on using C-x vs C-c prefixes?
timcharper
konr: yes
I don't remember where I read it from, but it's something like C-x is for system commands, and C-c is for user commands.
if you release an Emacs extension that has key bindings, you should prefix all of the it's hotkeys with C-c
now, not everybody follows this rule, but that's what it is I believe
DuClare
C-c + letters are reserved for the user
Other than that, C-c is a prefix for mode-specific binds
I'd tag C-x as the prefix for "miscellaneous emacs commands"
timcharper
,,hotkeys
fsbot
[google] http://www.emacswiki.org/cgi-bin/wiki%3FCategoryCode
http://www.emacswiki.org/emacs/CompletionUI
timcharper
,,keyboard binding guideline
fsbot
[0] think of it as a mouse that doesn't move and has at least 102 keys
[1] see also http://www.emacswiki.org/cgi-bin/wiki.pl?KinesisKeyboard
timcharper
no help there
r4yner
konr
thanks!
nofxx
How to find out which command a keystroke is invoking? forgot..
DuClare
C-h
aurele
Thanks for the last emacs version 'goodnight
DuClare
Sheep well
nofxx
DuClare: thanks man, C-h k
scottj_
Anyone use ido with the use-filename-at-point option? When you don't want it to use the filename at point, is there a keystroke for that?
ruediger
I'm currently writing a mode that uses comint to run an interpreter. I want to provide the user with a function to cleanly kill of the process buffer. I tried to do sth. like (comint-kill-subjob)(kill-buffer)
but when kill-buffer is called it still says that a process is associated with the buffer
how can I fix this?
is comint-kill-subjob even a good idea?
r4yner
ruediger: based on help file for kill-buffer, comint-kill-subjob may be redundant
ruediger: "Any processes that have this buffer as the `process-buffer' are killed with SIGHUP."
ruediger
r4yner: the issue is that (kill-buffer) will ask the user if he really wants to kill the buffer because it has a process attatched
and I want to avoid this message :-)
nofxx
any idea why (global-set-key "\M-v" 'cua-paste) don't work? M-c 'cua-copy-region works
somnium
is there an M-x butterfly to wrap the region in quotation marks and auto-escape all quotes inside?
ruediger
hmm (delete-process buffername) works fine :)
r4yner
ruediger: ah great. i might be doing something similar soon
ruediger
r4yner: comint is kinda magic sometimes
I'm mostly copying stuff from other modes like python or maxima
r4yner
ruediger: yeah that's my approach too, looking at everyone else's comint programs
ruediger
r4yner: that's what I'm currently working on. But I guess it's not much of a good example :-D http://github.com/ruediger/flusspferd/blob/master/misc/emacs/flusspferd.el
r4yner
ruediger: cool :)
elarson
hi all, I've been having a bit of a time trying to turn off visual-line-mode in shell-mode
I've tried a shell mode hook with (interactive)(visual-line-mode) so it will turn it off but no dice
I've also tried doing a (visual-line-mode-0) as it seems that a minor mode should support that convention to turn it on/off, but that didn't work eithre
any other ideas?
ieure
elarson, Some minor modes take -1 as the arg to disable them rather than 0.
elarson
hmm...
ieure: I'll give that a try
although I have a feeling I did already ;)
ieure
Also, you dont want (interactive) in any hook. You only need (interactive) for commands, i.e. things which you might explicitly invoke as a user.
elarson
ieure: right, I was just trying it since other things didn't seem to work
(Action) just learned about actual reason for interactive the other day though :)
technomancy
is there a way to undefine a function?
eshell/sudo is killing me
ieure
technomancy, ,,df fmakunbound
fsbot
fmakunbound is a built-in function in `C source code'.
(fmakunbound SYMBOL)
Make SYMBOL's function definition be void.
Return SYMBOL.
technomancy
thanks
ieure
Its the least obvious function name ever.
elarson, (visual-line-mode 0) works for me using M-: - perhaps yourre defining your hook wrong?
elarson
ieure: wouldn't surprise me
technomancy
eshell/sudo being implemented in terms of tramp would be fine as long as it respected tramp-mode being turned off
rokstar
somnium: http://pastebin.ca/1740804
don't think there exists such a function but that will do the trick, bind it to whatever butterfly you want
(it ain't pretty either but it works)
ieure
elarson, Try: (add-hook 'shell-mode-hook '(progn (visual-line-mode 0)))
elarson
ah!
progn
that could very well be it
ieure
If you were doing (add-hook 'shell-mode-hook (visual-line-mode 0)), you would be adding the return value of the (visual-line-mode) call to shell-mode-hook.
fledermaus
ieure: errrr... progn? is thatr even going to work? don't you mean lambda?
shyam
which would be a good project to study how to use url package?
ieure
fledermaus, Progn works fine and doesnt require an empty arg list like lambda.
technomancy
(Action) M-x report-emacs-bug's it
ieure
Its quoted.
shyam
i see the url callback being called when the network connection is broken .. and i want to check it in the callback to avoid error on parsing later..
s/later//
elarson
ieure: so what if I had (defun my-shell-mode hook () (visual-line-mode 0)) and then (add-hook 'shell-mode-hook 'my-shell-mode-hook)
that is what I had been doing
technomancy
(Action) has never seen progn hooks before, but that looks nicer
fledermaus
ieure: (invalid-function (progn (message "moo")))
is what I get.
I don't think it's right at all.
ieure
fledermaus, Are you quoting the progn?
fledermaus
yes
I don't see why it would work, and I don't see why you would think it would, either, tbh.
ieure
Okay, maybe Im full of sh*t.
fledermaus
it just looks wrong.
ieure
Yeah - confusion. I use (eval-after-load '(progn (add-hook (lambda () &))))
elarson, That looks like it should work.
fledermaus
(defun my-shell-mode hook () <- looks wrong to me
unless that space is a typo
elarson
fledermaus: sorry, but what do you mean?
ieure: unfortunately that doesn't seem to do it
ieure
elarson, Theres a space between "mode" and "hook" in the defun.
fledermaus
(defun my-shell-mode hook () <- that's not the start of a valid defun, there's a space between mode and hook, should be a - or other symbol char
elarson
btw, I have (global-visual-line-mode t) earlier in my .emacs
ah
that was a typo
technomancy
is the way eshell/sudo uses tramp a new-ish feature?
I never noticed it before
fledermaus
no idea, don't really use eshell
shyam
is there any live projects using url package on emacs?
fledermaus
erbot
technomancy
something must have changed with my setup recently. scp completion in eshell was broken and now it works
shyam
(Action) searching for a project to see examples on writing sentinel etc..
technomancy
but the git mirror hasn't been updated in weeks, so I wonder what it was
shyam: see ,,relax.el
elarson
man that is so frustrating that I can do (visual-line-mode 0) C-x C-e and see it turn off the visual wrapping in shell mode but it doesn't work in a hook
fsbot
couchdb is, like, [0] a distributed document-based database written in Erlang
[1] see the Emacs client at http://github.com/technomancy/relax.el
technomancy
elarson: yeah, emacs is missing a lot of the functional programming tools that would make that easier
like partial application
elarson
technomancy: I'd be cool with my hook working ;)
technomancy
elarson: did you wrap it in a lambda?
it's ugly, but it should do the trick
elarson
technomancy: I made my-shell-mode-hook and then added it to the shell mode hooks like I mentioned above
shyam
on a feeble connection url-retrieve calls callback before the content is loaded when the connection is broken.. i am checking what i can use on the sentinel to prevent it from looking at the buffer if its been called when the connection is broken.
fledermaus
shyam: check the payload size against the headers.
technomancy
elarson: from what you pasted there was a stray space
I'm kind of relieved that eshell/scp completion isn't broken though; that was my first contribution to Emacs. =)
shyam
fledermaus: to check whether the payload size is less than headers? i see it often, like the content is half loaded so will be bigger than the header but not complete.
fledermaus
huh?
I don't get it
if the content is half loaded, surely it is smaller than the size given in the headers.
or the headers are wrong and you're screwed anyway
elarson
technomancy: right, that was a typo
(Action) pastes the current non-working hook
http://codepad.org/SJ8TN8QZ
jordanb
You know a blog is going to be good when it's got a picture of a lambda at the top.
rudybot: quote
rudybot
I'LL TELL YOU WHO'S A RECORDING!
konr
is a take function in elisp like (take 2 '(0 1 2 3 4)) -> (0 1)
oops
is there a function (...) ?
« prev 1 2 3 4 5 6 7 8 next »