unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Leo <sdl.web@gmail.com>
Cc: 9792@debbugs.gnu.org
Subject: bug#9792: 24.0.50; process-file and space in filename
Date: Thu, 20 Oct 2011 12:02:48 +0200	[thread overview]
Message-ID: <83aa8wt1yv.fsf@gnu.org> (raw)
In-Reply-To: <864nz4nhyd.fsf@gmail.com>

> From: Leo <sdl.web@gmail.com>
> Date: Thu, 20 Oct 2011 17:14:02 +0800
> 
> On 2011-10-20 15:12 +0800, Michael Albinus wrote:
> > `process-file' is a Lisp function. It would be sufficient to activate
> > edebug for it, for example via
> >
> > M-x load-library RET edebug
> > M-: (edebug-instrument-function 'process-file)
> >
> > When the debugger enters `process-file', you can produce the backtrace
> > with "d".
> 
> This does not enter the debugger.

I think you need to load the .el file that defines process-file, with
"M-x load-file", before you invoke edebug-instrument-function.  In
this case, "M-x load-file RET simple.el RET".

> Note when the call-process form is eval'd in process-file, there is
> no error from the elisp point of view.  `call-process' returns 1 to
> indicate failure in executing the external process.

This doesn't matter.  Instrumenting a Lisp function will enter Edebug
when that function is called, regardless of whether there is a
Lisp-level error.

> But I can C-u M-C-x process-file and get a backtrace like this one:
> http://paste.pound-python.org/show/13964 if that is helpful.

Assuming that process-file is called with the name of the program
being just "git", with no leading directories, it sounds like the
problem is born inside call-process and its subroutines; I will have a
look.





  reply	other threads:[~2011-10-20 10:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-19  3:43 bug#9792: 24.0.50; process-file and space in filename Leo
2011-10-19  7:36 ` Eli Zaretskii
2011-10-19 17:23   ` Leo
2011-10-19 18:02     ` Eli Zaretskii
2011-10-20  5:07       ` Leo
2011-10-20  7:12         ` Michael Albinus
2011-10-20  9:14           ` Leo
2011-10-20 10:02             ` Eli Zaretskii [this message]
2011-10-20 11:00               ` Eli Zaretskii
2011-10-21  1:27                 ` Leo
2011-10-21  7:53                   ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83aa8wt1yv.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=9792@debbugs.gnu.org \
    --cc=sdl.web@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).