all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: General Approach to Troubleshooting Inferior Process
Date: Wed, 20 Aug 2008 05:50:45 +0200	[thread overview]
Message-ID: <873al0fip6.fsf@hubble.informatimago.com> (raw)
In-Reply-To: 1cced856-27be-4653-8795-fb009514e1b1@v39g2000pro.googlegroups.com

formido <formido@gmail.com> writes:

> So, I installed the elisp packages for inferior ruby and and ruby
> mode. Using the repl in the interpreter works correctly. However,
> sending the ruby process a function definition, or evaluating a region
> if it's a function definition, fails. It errors with, 'cannot make nil
> into string' or some such.


Well you would have to debug emacs lisp code.  Are you ready to do that?
The first step would be to enable the debugger:
M-x set-variable RET debug-on-error RET t RET


But in my experience, when there is this kind of errors on executing
some basic emacs command,  it's because the el package installed
doesn't match the version of emacs used.

Perhaps you have or had a different version of emacs installed in
/usr/local and some .el from /usr/local/share/emacs are used by
/usr/bin/emacs?  


> In general, what sorts of things could I do to troubleshoot this? The
> first thing I thought of was 'well, what's emacs *actually* sending to
> the process?' It uses a function 'process-send-region' which
> apparently takes a starting point and ending point in the target
> buffer. What function can I use to display the text between those two
> points?

(buffer-substring start end) will return a string containing the text
between start and end in the current buffer.


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

"Debugging?  Klingons do not debug! Our software does not coddle the
weak."


  parent reply	other threads:[~2008-08-20  3:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-19 17:20 General Approach to Troubleshooting Inferior Process formido
2008-08-20  0:01 ` formido
2008-08-20  3:50 ` Pascal J. Bourguignon [this message]
2008-08-20 16:33   ` formido
2008-08-20 17:56   ` formido

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873al0fip6.fsf@hubble.informatimago.com \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.