logs archiveIRC Archive / Freenode / #emacs / 2010 / March / 25 / 1
jeremyw
Anyone here familiar with gud development?
I'd really like to bounce some ideas off of him/her.
ams
jeremyw: you can bounce on me
and all night long babe!!
jlf
,yow
fsbot
This PORCUPINE knows his ZIPCODE.. And he has ``VISA''!!
ams
porcupine!!!!!!!!!!!!!!!
jlf
ams: such comments are not appropriate for this channel
ams
jlf: which one?
jeremyw
I just wonder why pdb doesn't display the prompt. Ugh...
jlf
the two comments preceding <ams> porcupine!!!!!!!!!!!!!!!
         

ams
you mean bouncing all night long?
or `,yow' and `This PORCUPINE knows his ZIPCODE.. And he has ``VISA''!!'?
jlf
your comments
jeremyw
ams: It's a shame you were joking. For a moment, I really was hoping you were knowledgeable on gud and we could talk about why the pdb prompt fails to display in Emacs latest.
ams
jeremyw: well, i am knowledgeable about gud :P
jeremyw
Ah.
ams
jlf: which one?
jlf
ams: don't play dumb
ams
jlf: i am dumb love.
(can you expect anything else after 15 pints of beer?)
ipis
yes, the 16 pint!
legumbre
#emacs has a drinking problem
let's intervene
ams
ipis: true that
jeremyw
ams: Got a minute to look at http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5653 with me?
ams: When I launch pdb, I never get a Pdb prompt.
ams
doll, i think it is you who want the minute, not me...
jeremyw
s/Got/Can you spare/
;)
I think I'm looking into the wrong parts of gud and python progmodes because I can't seem to find what is responsible for parsing the pdb output, validating it as a prompt and displaying it in the debugger buffer.
ams
lets see... which emacs is this?
jeremyw
Latest from sources.
ams
which is...
jeremyw
It's also reproducible in 23.1
ams
apply: Searching for program: no such file or directory, pdb
what do i need to have installed darling?
jeremyw
Python
         

ams
i have python installed
$ python --version
Python 2.6.2
jeremyw
ams: Okay. When prompted for pdb, change pdb to PATH/TO/pdb.py.
I forgot I symlinked /usr/bin/pdb to that. Let me try to get you a full path.
ams
that cannot possibly work
pdb is eithe a pyc or pdb, which ain't an elf
jeremyw
ams: /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/pdb.py
It's jsut a script.
pdb.py is just a script that starts the pdb debugger.
And for me: lrwxr-xr-x 1 root wheel 77 Feb 26 10:19 /usr/bin/pdb2.6 -> /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/pdb.py
ams
you want the pyc... ok
Debugger exited abnormally with code 1
Current directory is /tmp/
> /tmp/test.py(1)<module>()
-> import pdb
(Pdb) 123
123
GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.18.6) of 2010-01-14 on x86-02.phx2.fedoraproject.org
works for me doll
jeremyw
Well eff me. What is up with OS X?
Ugh.
ams
jeremyw: it is non-free software, that's what the eff is wrong
jlf
(Action) didn't see that coming _at all_
jeremyw
Well, it worked from the command line version, only in the NextStep version. Wild.
ams
jeremyw: i like wild girls
jlf: cookie?
jlf
(Action) doesn't accept third-party cookies
ams
ok
i'm going to bed
love you!!!
<3
kodein
ams: sweet dreams
quotemstr
#emacs, what's the best way to input tabular data?
malsyned
quotemstr, I'll start with a lame answer to kick off the discussion: use text mode, tab key indents you underneath your previous line's column breaks
misty_
good morning everybody
legumbre
orgtbl-mode
kodein
Ses?
fsbot
From memory, ses is the Simple Emacs Spreadsheet at http://mywebpages.comcast.net/jyavner/ses/ .. + other entries
misty_
I'm not sure if this would be considered a macro or something else, but is there a way to insert pre-baked text in a document with emacs, like snippets in gedit?
jlf
,yasnippet
fsbot
I heard yasnippet is [0] http://code.google.com/p/yasnippet/
[1] see also http://www.emacswiki.org/emacs/Yasnippet,
[2] is a great template system for Emacs.
misty_
I'm looking on the emacs wiki but not finding it because I don't know what it is called
oh yay, thanks!
jlf
:)
misty_
that looks absolutely perfect, it was the one stupid thing I was a bit jealous of gedit for
jlf
there are few features that emacs lacks
misty_
of course
I knew there must be a way
this is why I put up with getting heckled about my OS within an OS
legumbre
there's too much confusion, you can get no relief!
jlf
(Action) cues up jimi
legumbre
(Action) pokes a stick at some R code
jeremyw
ams: Well, it appears to be an OS X issue or maybe a "specific to jeremyw issue". I just tried without NextStep support and both just hang with no prompt.
jlf
jeremyw: different PATH maybe?
jeremyw
jlf: What's weird is if I use gud-pdb, it fails but if I run pdb from an emacs shell, the debugger hooks up just fine. Seems to be gud related. As for PATH, can you elaborate?
I just wish I could see how this all fit together. I see where the pdb function is defined and I can walk through it but apparently there is a hook or something that gets invoked that makes stuff happen outside that function to do the real work.
And I can't find it yet.
jlf
just a guess that it may be finding different versions of pdb due to PATH being different in -nw/GUI or whatever ways you're launching it
jeremyw
Well, -nw/GUI result in the same problem.
I might had mentioned earlier that wasn't the case but it is. What did work was an earlier version of Emacs but Python support then was done differently.
What I'm trying to piece together is why "M-x pdb <RET> <RET>" doesn't work but running the exact same pdb command from "M-x shell" works.
jlf
is the output of `which pdb` from M-x shell as expected?
jeremyw
It appears that the logic that runs pdb from gud and parses the output is failing but when I can't find the sources to walk through, it doesn't help.
jlf: Yes. pdb is the same for both.
jlf: It's like pdb in gud just hangs but in reality, it didn't. I can randomly type into the buffer, without the prompt, until something eventually shows up.
And when it does, it's like it was passing my input to pdb.
I just can't see why I don't get the prompt like I should.
Is there a way to see hidden/virtual buffers? Onces not in the buffer list but obviously open for other tooling?
jlf
anything relevant in M-x apropos pdb.*hook or gud.*hook ?
jeremyw
Let's check.
No.
jlf
i'm not aware of buffers that aren't visible in C-x C-b
jeremyw
jlf: Well, when pdb gets invoked, its output is somewhere. I assumed it was a buffer that was hidden or something.
Is there a way to profile a module and invoke it and then see what was called, in what order?
Like a backtrace, but I can't seem to get a backtrace after running pdb.
It would be great to see where the call stack was at a given time. When I see it, it appears to be very shallow and looking into the parts don't seem to help.
jlf
you can always just temporarily redefine functions in gud.el.gz, sprinkling messages or backtrace invocations or whatever
jeremyw
Yeah. That was my next plan, maybe even forcing an error to get a backtrace.
Backtrace seems to tell me that I called backtrace...great.
legumbre
jeremyw: did you just M-x backtrace ?!
jeremyw
legumbre: Yeah but I'm sure that's wrong. I looked at the help for it but it didn't seem to show any alternate usage.
legumbre
/o\
jeremyw
Enlighten me. :)
I'm new to this Emacs development bit.
legumbre
jeremyw: you'd just put (backtrace) in place
jlf
try evalling each of (defun foo () (bar)) (defun bar () (baz)) (defun baz () (error "uh oh")) (foo)
jeremyw
That's the rub...I don't know where I'm at when the code appears to freeze.
It looks like in gud, a lot of variables are set and then gud kicks in. I guess I should go check and see how/when those variables are used.
legumbre
jeremyw: can't you just debug-on-entry the entry function and then dig down?
jeremyw
legumbre: Yes and I've done this. But in gud, it appears that a lot of variables get set and then gud runs off into magic land. I guess I can try to find another place to look since the pdb function returns and I dont' know where it goes after that.
I instrumented one function that I thought for sure would be used, since it appears to be the one that parses the output of pdb but it's never run.
Maybe the python package is overriding it somehow.
Oh my...now, all the sudden, it's stopping. I feel dumb.
But I can't walk through it although I've instrumented the function.
It doesn't stop I mean, it just tells me in the backtrace that it entered there.
Lies.
I'll leave you guys alone now. It appears that I was wrong. I am not sure why this didn't work earlier.
haha
#fail
jlf
jeremyw: check out gud-common-init ... specifically the set-process-filter form
jeremyw
Yeah. I think I've figured this all out, at least how things get setup and called.
Now to figure out why this is failing. :)
harovali
hi , is it possible when I open a file to have emacs put the point where it was at last save time ?
fledermaus
,session
fsbot
[->] SessionManagement is, like, [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?SessionManagement
[1] http://emacs-session.sourceforge.net,
[2] desktop.el,
[3] http://emacs-session.sourceforge.net/related.html
fledermaus
,bookmarks
fsbot
bookmarks -- at http://www.emacswiki.org/cgi-bin/wiki/BookMarks
harovali
thanks
what can I use to select a block of text and kill it instead of C-w ?
retroj
harovali: that's the normal key.. what do you mean?
harovali
retroj: something that does not get into the stack
retroj
harovali: oh, you want to delete, not kill
bind a key to delete-region
harovali
retroj: thanks
e1f
http://www.metro.co.uk/news/818725-is-new-uk-space-agency-inspired-by-doctor-who
the new c64 http://www.commodoreusa.net/tech.html
derrida
e1f: are you taking preorders?
e1f
no, i use a mac
derrida
:)
Evanlec
heyy how do i change the color theme in emacs (gui version)
im completely lost (vim user)
bob2
,,color-theme
fsbot
[->] I heard colortheme is [0] a collection of some 80 complete color-themes at http://www.emacswiki.org/cgi-bin/wiki.pl?ColorTheme. Web preview at http://tinyurl.com/3a4mqf.
[1] add (require 'color-theme) (color-theme-initialize) to .emacs then (color-theme-<foo>), or M-x color-theme-select RET, ..[Type ,more]
quotemstr
Is it possible to transform a string regular expression into rx form?
douji
Hi, i'm trying to use nXhtml/MuMaMo to edit files with PHP + html + javascript + css. How can I get it to recognize the javascript parts correctly? I've downloaded and loaded Karl's javascript-mode. Is there any extra steps I need to take to link the two together?
rryouumaa
quotemstr: ,,regexp-quote
fsbot
BEEEP: Wrong number of arguments: (lambda (str) (unless (stringp str) (setq str (format "%s" str))) (regexp-quote str)), 0
quotemstr
That's not the same thing at all.
rryouumaa
oh rx, sorry
e1f
,mumamo
fsbot
I think mumamo is [0] a tool for editing a buffer with Multiple Major Modes (e.g. html and php) <http://emacswiki.org/wiki/MuMaMo>
[1] better than mmm-mode,
[2] distributed with <NxhtmlMode>
douji
i've installed the javascript.el mode, but it's not interacting with MuMaMo, the parts of the my file with javascript is being handled as normal text..
quotemstr
Ah, mumamo.
Use nxhtml.
It bundles and configures all that to work properly --- or at least as close to properly as you can get in Emacs.
douji
quotemstr: i am using nxhtml, but it doesn't seem to support javascript ... they took it out and i'm trying to configure it back in.
quotemstr
Took it out?
That seems unlikely.
douji
quotemstr: well, it doesn't seem to recognize the javascript inline in my PHP files.
quotemstr
You might want to submit a bug report then.
douji
in changelog for version 2.03 of nxhtml: "Removed the JavaScript modes that were distributed with nXhtml."
=\
it also mentions using modules from the "Emacs CVS repository", but I'm not sure how to install/configure those to work with nxhtml/mumamo
quotemstr
Hrm, that *is* a surprise.
I'm sorry I can't be more helpful. I'm the author of js-mode (which is included in Emacs these days), but I never use it in a multi-mode configuration.
douji
quotemstr: thanks anyways
quotemstr
Why have an ~/.emacs when I can create an emacs bzr branch and customize that? :-D
abstrakt
aight, so i installed 'color-theme' via the emacs-goodies package in synaptic
but i get an error when putting (color-theme-initialize) in my ~/.emacs
what gives?
i mean, it's either that or the (require 'color-theme) that's throwing the error, don't know which
but one of them is
quotemstr
,doesntwork
« prev 1 2 3 4 5 6 7 8 9 next »