From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: chaouche yacine Newsgroups: gmane.emacs.help Subject: Re: debugging Emacs LISP functions Date: Wed, 1 Mar 2017 12:30:31 +0000 (UTC) Message-ID: <55630350.3414504.1488371431454@mail.yahoo.com> References: <20170301121427.GA3290@workstation> Reply-To: chaouche yacine NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1488371521 10096 195.159.176.226 (1 Mar 2017 12:32:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2017 12:32:01 +0000 (UTC) To: hector , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 01 13:31:54 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj3Q5-0001P8-Q5 for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Mar 2017 13:31:50 +0100 Original-Received: from localhost ([::1]:45994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj3Q9-00018f-Tq for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Mar 2017 07:31:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj3Ov-000177-W2 for help-gnu-emacs@gnu.org; Wed, 01 Mar 2017 07:30:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cj3Os-0002LB-1B for help-gnu-emacs@gnu.org; Wed, 01 Mar 2017 07:30:38 -0500 Original-Received: from sonic320-30.consmr.mail.bf2.yahoo.com ([74.6.128.211]:50943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj3Or-0002L2-SR for help-gnu-emacs@gnu.org; Wed, 01 Mar 2017 07:30:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1488371431; bh=z4UdvHOQpLUejlco8c08KMoVPMHx1WxyR8Q0Y9MHIF4=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=aUUwAVvSN/Mv21T7nEPNi23fRL/pyHi5Modg0M4bWdYU8OdUS1ixIz5M21qsW7FwxADFlP2s0uR4FmXOvELYkcxQi8ba48XpqJ2G9spIliJxcXlIao5Ta+lhVdJIYdBgpN2JDay1ODeL+BUOfFHflhAaVAMFGRF7pujrYXBty5OHPEyfVfyCA3NMc6GY+KO5+LYtH5cdtCLsUClTLhWkyrso7Jg0g2fVZUWHnxzcZARsp381uORtT87tcoOQF2la5UDqEW1JWOi0yiimyxtCD9wCyplUShaN3YzkxDiJVS0ANuNnlHXVvkiHTCirJa+bTWY1RWLVCeI2FnsuYvyx3Q== X-YMail-OSG: WWhhorMVM1n8Mv3O_p61UoUkrVouR9SmV6y9ncfn5LpAWf.radj7Ae9DFiNrlZL Zii57iGe8RUFnHmek3i0RqRmI2PqLuWCLbj.HTcOcIM4yWI0fLRAvAGx7q.7HXUKjA6mqzrE6OMi AsFw5vrVGRDmYmkvTRH6dwASPwxnJc7ey5hSPv0QJ3zMxuvpaZ.OzPgygndBOeUQoSwq86TMa.kq 2Y1LOceTg27S9SbORnaRyCLXlgPjPbt9Iyz_xwEw8y4M6FcrpE64rHf3ciT9uymuu_x5wr8b3QmR OZJOylKNpOGTSk2M19_0gXEJUzbVozH4CqOs8i.Yi2NKEWM46FRYqMtB.iibNYCtjNaSUYbkYPtY TAqNdIhZ1oUmeZumh39X0OmI1EdHiFZEqxbHKgsBGSqg8Or1uHeXug34DjXQU.sHT_Yio0CUc73x Ka0wRcK6O60dObDt6khng_eEHG56E6ZLBMKh4Ig6Ex3T4MVI7gAvsnL5OI7v.2Sz5SzkXK1Aae5x 0TCmcczX8t3FPxuX9UP4DZAL6prU.yCh3FwY- Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic320.consmr.mail.bf2.yahoo.com with HTTP; Wed, 1 Mar 2017 12:30:31 +0000 In-Reply-To: <20170301121427.GA3290@workstation> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.6.128.211 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112402 Archived-At: Hello Hector, I'm new to the list and to emacs tweaking in gle. I had the same problem a = couple days ago. You can't debug those functions because they're in .elc fi= les (emace lisp compiled), you need to grab the .el file (the human readabl= e source file) somewhere and put it in the same location, that way the deve= loper can take you there. Hope this help. =C2=A0 -- Yassine. =20 On Wednesday, March 1, 2017 1:18 PM, hector wro= te: =20 I have a problem with Emacs. Basically it doesn't do what I want it to do = :-) Or put it another way, it doesn't behave as I expect it to behave. I tried debugging the offending function (dir-locals-find-file) and then I found another problem. Perhaps I just don't get acquainted to the LISP typing system. This function can return a string or a list. Is this good coding style? But that's another question. Perhaps this mail should go to the emacs-devel mailing list. I don't know. With free software you just loose the difference between a "user" and a "developer". Anyway I see some developers read this list every now and then. When I try to debug LISP code that is part of Emacs I see with some functio= ns I get the source code and with others I just get "byte-code". In the latter case I can't debug it because the debugger just skips the whole function. How can I know what functions appear as "byte-code" in the debugger? And how can I debug them? =20