distel-hackers Mailing List for Distel (Page 5)
Status: Beta
Brought to you by:
lukeg
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(19) |
Nov
(23) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(1) |
Feb
(2) |
Mar
(16) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(16) |
Dec
(6) |
2004 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(11) |
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
(1) |
2007 |
Jan
(1) |
Feb
(10) |
Mar
(9) |
Apr
(3) |
May
(2) |
Jun
(46) |
Jul
(25) |
Aug
(1) |
Sep
(50) |
Oct
(4) |
Nov
(3) |
Dec
|
2008 |
Jan
|
Feb
|
Mar
(6) |
Apr
(4) |
May
(3) |
Jun
(6) |
Jul
(3) |
Aug
(9) |
Sep
(5) |
Oct
(10) |
Nov
(26) |
Dec
(30) |
2009 |
Jan
(10) |
Feb
(11) |
Mar
(20) |
Apr
(37) |
May
(45) |
Jun
(24) |
Jul
(37) |
Aug
(3) |
Sep
(3) |
Oct
|
Nov
|
Dec
(13) |
2010 |
Jan
(4) |
Feb
(6) |
Mar
(2) |
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
(2) |
Sep
|
Oct
(3) |
Nov
|
Dec
(1) |
2011 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: Bill C. <bil...@gm...> - 2007-09-12 21:30:21
|
Matthias Radestock <mat...@so...> writes: > Pierre Radermecker wrote: >> I am wondering why some completions do not seem to work. For instance "math:" >> only gives pi(). None of the functions in the erlang module seems to >> complete(list_to, is_, ...) > > This is not distel's fault. There is something odd about these modules; > xref cannot see much in them either: > > (x@h)2> xref:start(foo, {xref_mode, modules}). > {ok,<0.158.0>} > (x@h)3> xref:add_release(foo, code:lib_dir(), {name, otp}). > ok > (x@h)4> xref:q(foo, 'X * math:_/_'). > {ok,[{math,pi,0}]} > (x@h)6> xref:q(foo, 'X * erlang:"list_to.*"/_'). > {ok,[{erlang,list_to_integer,2}]} > (x@h)7> xref:q(foo, 'X * erlang:"is_.*"/_'). > {ok,[]} Probably because they're BIF's that are implemented in C rather than Erlang: (emacs@bc)7> erl_bifs:is_bif(math, pi, 0). false (emacs@bc)8> erl_bifs:is_bif(math, sin, 1). true Do a "M-." on "math:pi()" and you'll see that it's the only function in the source file. - Bill |
From: Matthias R. <mat...@so...> - 2007-09-12 21:01:25
|
Pierre Radermecker wrote: > I am wondering why some completions do not seem to work. For instance "math:" > only gives pi(). None of the functions in the erlang module seems to > complete(list_to, is_, ...) This is not distel's fault. There is something odd about these modules; xref cannot see much in them either: (x@h)2> xref:start(foo, {xref_mode, modules}). {ok,<0.158.0>} (x@h)3> xref:add_release(foo, code:lib_dir(), {name, otp}). ok (x@h)4> xref:q(foo, 'X * math:_/_'). {ok,[{math,pi,0}]} (x@h)6> xref:q(foo, 'X * erlang:"list_to.*"/_'). {ok,[{erlang,list_to_integer,2}]} (x@h)7> xref:q(foo, 'X * erlang:"is_.*"/_'). {ok,[]} Matthias. |
From: Pierre R. <pra...@ya...> - 2007-09-12 17:37:12
|
I am wondering why some completions do not seem to work. For instance "math:" only gives pi(). None of the functions in the erlang module seems to complete(list_to, is_, ...) The way completion works is really weak (the *Completion buffer do not close automatically). Is there someone interested in improving the feature ? I will try to compare the el completion code with Slime if nobody else out is willing to do it (I have no knowledge of el). Are there obvious reasons why it is difficult to backport ? Thanks for your help. |
From: Pierre R. <pra...@ya...> - 2007-09-12 16:50:36
|
Pierre Radermecker <pradermecker <at> yahoo.ca> writes: > > If I do a fresh check out with > > svn checkout http://distel.googlecode.com/svn/trunk/ distel > > I get an empty ebin directory ?! > Sorry I forgot I had to do a make again ... |
From: Pierre R. <pra...@ya...> - 2007-09-12 16:47:42
|
If I do a fresh check out with svn checkout http://distel.googlecode.com/svn/trunk/ distel I get an empty ebin directory ?! |
From: James C. <jam...@gm...> - 2007-09-11 21:10:13
|
Matthew D Swank <akopa.gmane.poster <at> gmail.com> writes: > > I am still at a loss as to what is wrong when I try to use distel in emacs > 23.x. Could someone *please* give me some feed-back on what might be > wrong. > > Here is a typical trace from running a command that needs to connect to a > node (in this case erl-process-list): > > Debugger entered--Lisp error: (error "lucretia/-29892 Servname not supported for ai_socktype") I'm having pretty much the same problem: Looking around suggests that the problem is that there is not an entry in /etc/services (http://www.ducea.com/ 2006/09/11/error-servname-not-supported-for-ai_socktype/ has a similar problem, but for something else). So, if someone can figure out what service name to use, it should work... James |
From: mats c. <mat...@er...> - 2007-09-11 06:39:40
|
On Fri, 2007-09-07 at 15:55 -0700, Bill Clementson wrote: > Dimitris Dinodimos <di...@gm...> writes: > > > Distel is displaying an empty buffer. Everything else is fine. I can > > see the variables or I can press "c" to continue blindly. > > The attached patch solved the problem for me. > > mats - could you see whether this patch fixes the problem for you? found the bug. turned out the buggy bit was written by none other than myself :< divine justice and all that. it didn't occur to me that M:module_info() will behave differently depending on whether M is interpreted or not. i had also assumed that filelib:wildcard("") -> [], which also turned out to be wrong (it exits). i'm testing the fix now, will commit later today. mats |
From: Bill C. <bil...@gm...> - 2007-09-07 22:55:47
|
Dimitris Dinodimos <di...@gm...> writes: > Distel is displaying an empty buffer. Everything else is fine. I can > see the variables or I can press "c" to continue blindly. > The attached patch solved the problem for me. mats - could you see whether this patch fixes the problem for you? - Bill |
From: Dimitris D. <di...@gm...> - 2007-09-07 21:00:48
|
Distel is displaying an empty buffer. Everything else is fine. I can see the variables or I can press "c" to continue blindly. The attached patch solved the problem for me. |
From: Matthias R. <mat...@so...> - 2007-09-07 17:29:05
|
mats cronqvist wrote: > i just ran into the problem described by some guy named vish on > erlang-questions; > > "I start a debug session with C-c C-d i and set a breakpoint C-x SPC. > And when I run the function in the shell, the debug process list > window pops up. I type return on the correct process and a debugger > buffer pops up. As far as I understand it to work, it should show the > program in a read-only buffer: with the state of execution & > breakpoints, and with variables at the bottom of the window. However I > get a blank buffer: all the commands (n, SPC, q, h, etc.) seem to work > fine though. I'm not sure if it's because I misunderstood how it's > supposed to work, so here's a screenshot: > > http://vish.in/temp/emacs-debug.png " > > i see the same thing, but seemingly only on my solaris/emacs22 > machine. > could there be a problem with emacs22? I observed the same behaviour the other day on xemacs 21.4.20 on debian x86. This worked fine before on the same platform, but I have updated xemacs, distel and many of the debian packages since then. Chances are the problem lies with one of the three. The easiest to rule in/out is distel. Mats, are you running the exact same version of distel on both your installations? Matthias. |
From: Bill C. <bil...@gm...> - 2007-09-07 17:15:42
|
Hi Mats, mats cronqvist <mat...@er...> writes: > i just ran into the problem described by some guy named vish on > erlang-questions; > > "I start a debug session with C-c C-d i and set a breakpoint C-x SPC. > And when I run the function in the shell, the debug process list > window pops up. I type return on the correct process and a debugger > buffer pops up. As far as I understand it to work, it should show the > program in a read-only buffer: with the state of execution & > breakpoints, and with variables at the bottom of the window. However I > get a blank buffer: all the commands (n, SPC, q, h, etc.) seem to work > fine though. I'm not sure if it's because I misunderstood how it's > supposed to work, so here's a screenshot: > > http://vish.in/temp/emacs-debug.png " I replied to Vishnu on the erlang-questions list; however, he sent his replies to me via email. In short, this is what I asked him to try and what he replied: 1. Since he was using Aquamacs Emacs, I initially thought it was a problem related to Aquamacs (which, by default, pops up a new frame for every buffer). I told him how to disable this; however, he continued to get the same distel problem. 2. I asked him if he had his source files in a different location from the .beam files. Distel looks in certain standard places; however, I thought there might be a problem with either old .beam files or source/beam files not being in sync or source/beam not being in standard locations. I didn't hear back from him after this, so I don't know whether that was the problem or not. So, for the erlang file that you are debugging, was it recently compiled and is it in either the same directory as the source or in the standard ebin/src directories? > i see the same thing, but seemingly only on my solaris/emacs22 > machine. > could there be a problem with emacs22? I'm using emacs22 and I don't have any problems. I'll send Vishnu an email and see whether he found out what his problem was. - Bill |
From: mats c. <mat...@er...> - 2007-09-07 11:07:44
|
i just ran into the problem described by some guy named vish on erlang-questions; "I start a debug session with C-c C-d i and set a breakpoint C-x SPC. And when I run the function in the shell, the debug process list window pops up. I type return on the correct process and a debugger buffer pops up. As far as I understand it to work, it should show the program in a read-only buffer: with the state of execution & breakpoints, and with variables at the bottom of the window. However I get a blank buffer: all the commands (n, SPC, q, h, etc.) seem to work fine though. I'm not sure if it's because I misunderstood how it's supposed to work, so here's a screenshot: http://vish.in/temp/emacs-debug.png " i see the same thing, but seemingly only on my solaris/emacs22 machine. could there be a problem with emacs22? mats |
From: <to...@to...> - 2007-09-03 19:22:14
|
Matthias Radestock wrote: > Tobbe, > > Torbjorn Tornkvist wrote: >> it seems like when there are a large amount of callers >> I get nothing displayed!? > > That's strange. > > Two questions: > > 1) can you give me an example so I can try reproducing this? I'm afraid not, since it the code isn't open source. Hm...but now when I tried it again, it seems to work... So I take back my earlier statement. It is now just excellent :-) Cheers, Tobbe |
From: Bill C. <bil...@gm...> - 2007-09-03 19:09:43
|
Hi Matthias, Matthias Radestock <mat...@so...> writes: > Bill Clementson wrote: >>> There is a comment in the code saying "FIXME: Use line number for a >>> hyperlink.". I reckon one way to implement something sensible along >>> these lines is to construct an, in Emacs-lingo, "overlay" for the >>> displayed m:f/a with the line number information. >> >> I thought that "overlays" were more for display properties and that >> "text-properties" would be what you would want to use for storing the >> line# and source file of any matches. > > If you say so. I am not an emacs hacker. > >> Are you suggesting that "M-." be used to go to the "call"? Normally, >> "M-." is used to go to the definition, not a reference. Why not just >> use "RET"? You could have a separate RET key binding for the who-calls >> results buffer. > > That would be better indeed. It still has to do much of the same work > as "M-.", so I was just trying to cut some corners. > > Any chance you could have a go at implementing this? Not in the short term. I've taken a bit of a break from Erlang due to other commitments. It shouldn't be a difficult hack though, so maybe someone else would like to take it on? - Bill |
From: Matthias R. <mat...@so...> - 2007-09-03 19:02:17
|
Tobbe, Torbjorn Tornkvist wrote: > it seems like when there are a large amount of callers > I get nothing displayed!? That's strange. Two questions: 1) can you give me an example so I can try reproducing this? 2) what is the behaviour of the previous version? Matthias. |
From: Matthias R. <mat...@so...> - 2007-09-03 19:00:32
|
Bill Clementson wrote: >> There is a comment in the code saying "FIXME: Use line number for a >> hyperlink.". I reckon one way to implement something sensible along >> these lines is to construct an, in Emacs-lingo, "overlay" for the >> displayed m:f/a with the line number information. > > I thought that "overlays" were more for display properties and that > "text-properties" would be what you would want to use for storing the > line# and source file of any matches. If you say so. I am not an emacs hacker. > Are you suggesting that "M-." be used to go to the "call"? Normally, > "M-." is used to go to the definition, not a reference. Why not just > use "RET"? You could have a separate RET key binding for the who-calls > results buffer. That would be better indeed. It still has to do much of the same work as "M-.", so I was just trying to cut some corners. Any chance you could have a go at implementing this? Matthias. |
From: Torbjorn T. <to...@to...> - 2007-09-03 18:58:35
|
Matthias Radestock wrote: > Hi, > > I found distel's "who calls" (C-c C-d w) feature rather cumbersome to > use. It takes ages to start the first time and then doesn't update when > the code changes. Plus the code for it is quite horrible and brittle. > > So I replaced all ~250 lines of it with a single call to xref:q/2. See > the attached patch. > > Invoking "who calls" for the first time still takes a while, but less > than previously. And code changes are tracked properly. Excellent! However, it seems like when there are a large amount of callers I get nothing displayed!? Cheers, Tobbe |
From: Bill C. <bil...@gm...> - 2007-09-03 18:46:28
|
Hi Matthias, Matthias Radestock <mat...@so...> writes: > Bill Clementson wrote: > >> Very nice. This is much faster and (with my limited testing) seems to >> produce the same results. I've committed your patch. > > Cheers. > > On a related note, who_calls actually returns the line number of the > call sites but this currently isn't displayed/used. This was the case > in the previous version too. > > There is a comment in the code saying "FIXME: Use line number for a > hyperlink.". I reckon one way to implement something sensible along > these lines is to construct an, in Emacs-lingo, "overlay" for the > displayed m:f/a with the line number information. I thought that "overlays" were more for display properties and that "text-properties" would be what you would want to use for storing the line# and source file of any matches. > We can then look for > this invisible piece of information in "M-." (aka > erl-find-source-under-point) and, if present, navigate to it. > > Any other suggestions? Are you suggesting that "M-." be used to go to the "call"? Normally, "M-." is used to go to the definition, not a reference. Why not just use "RET"? You could have a separate RET key binding for the who-calls results buffer. - Bill |
From: Bill C. <bil...@gm...> - 2007-09-03 18:44:28
|
Hi Matthias, Matthias Radestock <mat...@so...> writes: > Bill Clementson wrote: > >> Very nice. This is much faster and (with my limited testing) seems to >> produce the same results. I've committed your patch. > > Cheers. > > On a related note, who_calls actually returns the line number of the > call sites but this currently isn't displayed/used. This was the case > in the previous version too. > > There is a comment in the code saying "FIXME: Use line number for a > hyperlink.". I reckon one way to implement something sensible along > these lines is to construct an, in Emacs-lingo, "overlay" for the > displayed m:f/a with the line number information. I thought that "overlays" were more for display properties and that "text-properties" would be what you would want to use for storing the line# and source file of any matches. > We can then look for > this invisible piece of information in "M-." (aka > erl-find-source-under-point) and, if present, navigate to it. > > Any other suggestions? Are you suggesting that "M-." be used to go to the "call"? Normally, "M-." is used to go to the definition, not a reference. Why not just use "RET"? You could have a separate RET key binding for the who-calls results buffer. - Bill |
From: Matthias R. <mat...@so...> - 2007-09-03 18:08:08
|
Bill, Bill Clementson wrote: > Very nice. This is much faster and (with my limited testing) seems to > produce the same results. I've committed your patch. Cheers. On a related note, who_calls actually returns the line number of the call sites but this currently isn't displayed/used. This was the case in the previous version too. There is a comment in the code saying "FIXME: Use line number for a hyperlink.". I reckon one way to implement something sensible along these lines is to construct an, in Emacs-lingo, "overlay" for the displayed m:f/a with the line number information. We can then look for this invisible piece of information in "M-." (aka erl-find-source-under-point) and, if present, navigate to it. Any other suggestions? Matthias. |
From: Bill C. <bil...@gm...> - 2007-09-03 17:55:21
|
Pierre Radermecker <pra...@ya...> writes: >> Yes, SLIME-like completion would definitely be a nice enhancement for >> distel. It wasn't clear from your post whether this was something you >> were working on or just a suggested enhancement. > > I am not working on it ... I could consider trying to improve the way completion > work in Distel but first I'd like to be sure it is indeed a good idea ... I have > no real knowledge of elisp so it could take me a while to figure it out. > > Maybe this kind of improvement has been considered before ? Maybe there are good > reasons why it is so basic ... > > Because Luke wrote both Slime and Distel, I was wondering why it doesn't work in > Distel the way it works in Slime ... There are multiple completion mechanisms in SLIME and Luke didn't write them all. I presume he was either happy with the way completion worked in distel or was waiting for a volunteer who would do something about it. ;-) - Bill |
From: Bill C. <bil...@gm...> - 2007-09-03 17:47:43
|
Hi Matthias, Matthias Radestock <mat...@so...> writes: > I found distel's "who calls" (C-c C-d w) feature rather cumbersome to > use. It takes ages to start the first time and then doesn't update when > the code changes. Plus the code for it is quite horrible and brittle. > > So I replaced all ~250 lines of it with a single call to xref:q/2. See > the attached patch. > > Invoking "who calls" for the first time still takes a while, but less > than previously. And code changes are tracked properly. Very nice. This is much faster and (with my limited testing) seems to produce the same results. I've committed your patch. - Bill |
From: mats c. <mat...@er...> - 2007-09-03 14:23:53
|
On Fri, 2007-08-31 at 23:41 +0000, Pierre Radermecker wrote: > On completion, Distel opens up a *Completions* buffer. ... > I would love to have something a bit more intuitive. Something along the line > with the Predictive Emacs extension (or other editors such as IntelliJ, > Netbeans, Eclipse, ...), a kind of tooltip completion of some sort. there is a very nice tool http://esense.sourceforge.net that does this. distel and esense together is the shit. mats |
From: Pierre R. <pra...@ya...> - 2007-09-02 21:15:40
|
Yep while reading previous posts, I understood that Luke doesn't maintain Distel anymore. Would be nice if Distel could benefit from Slime improvements ... Is the fact that Distel populates only the *Completions* buffer (without activating the mini-buffer for instance) a kind of misbehavior ? In Emacs in general the *Completions* buffer is supposed to work in conjunction with the mini-buffer, isn't ? |
From: Pierre R. <pra...@ya...> - 2007-09-02 20:48:07
|
> Yes, SLIME-like completion would definitely be a nice enhancement for > distel. It wasn't clear from your post whether this was something you > were working on or just a suggested enhancement. I am not working on it ... I could consider trying to improve the way completion work in Distel but first I'd like to be sure it is indeed a good idea ... I have no real knowledge of elisp so it could take me a while to figure it out. Maybe this kind of improvement has been considered before ? Maybe there are good reasons why it is so basic ... Because Luke wrote both Slime and Distel, I was wondering why it doesn't work in Distel the way it works in Slime ... |