Permalink
Browse files

some more doc. added some text to some error messages.

git-svn-id: https://distel.googlecode.com/svn/trunk@67 d5f8e727-742a-0410-b67d-dd739a6cc792
  • Loading branch information...
1 parent 7c48f5b commit 4c9fd2c3b890e21fa7b03ced051e11ae67a845a1 @massemanet committed Jun 26, 2008
Showing with 24 additions and 4 deletions.
  1. +4 −1 AUTHORS
  2. +12 −0 README
  3. +3 −0 elisp/derl.el
  4. +5 −3 elisp/erl.el
View
@@ -4,5 +4,8 @@ Luke Gorrie <luke@bluetail.com>
Vladimir Sekissov <svg@surnet.ru> (dilber)
David Wallin <david.wallin@ul.ie> (distel-ie)
Darius Bacon <darius@accesscom.com> (design and doc advice)
-Mats Cronqvist <etxmacr@cbe.ericsson.se> (debugger patches)
+Mats Cronqvist <masse@cronqvi.st> (debugger patches, otp_doc)
Martin Bj�rklund <mbj@bluetail.com> (major debugger hacking)
+Bill Clementson (this and that)
+Matthias Radestock (who-calls)
+Dimitris Dinodimos (emacs-23-unicode)
View
@@ -72,3 +72,15 @@ https://lists.sourceforge.net/lists/listinfo/distel-hackers
and the issue tracker at google;
http://code.google.com/p/distel
+
+FAQ
+1. Can't handle event closed in state derl-recv-challenge-ack
+
+this is what you get if the erlang node and the distel node disagree
+one what cookie to use.
+
+Use (in erl)
+ erlang:get_cookie()
+and (in emacs)
+ M-x erl-get-cookie
+to check the cookies.
View
@@ -179,6 +179,9 @@ Use the distribution protocol's EXIT2 message."
(defun derl-recv-challenge-ack (event data)
"Receive and check challenge ack. If it's OK then the handshake is
complete and we become live."
+ (if (equal event 'closed)
+ (message "Distel thinks the cookie is %s. Erlang seems to disagree."
+ (erl-cookie)))
(check-event event 'data)
(when (derl-have-msg)
(goto-char (point-min))
View
@@ -53,9 +53,11 @@
(defun erl-determine-hostname ()
"Figure out the short-names hostname."
(let ((fqdn (system-name)))
- (if (string-match "[^\\.]+" fqdn)
- (match-string 0 fqdn)
- (error "erl: Can't determine hostname."))))
+ (if (string-match "\\.local$" fqdn)
+ fqdn
+ (if (string-match "[^\\.]+" fqdn)
+ (match-string 0 fqdn)
+ (error "erl: Can't determine hostname.")))))
(when (null erl-node-name)
(setq erl-node-name

0 comments on commit 4c9fd2c

Please sign in to comment.