From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hector Newsgroups: gmane.emacs.help Subject: debugging Emacs LISP functions Date: Wed, 1 Mar 2017 13:14:27 +0100 Message-ID: <20170301121427.GA3290@workstation> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1488370716 17836 195.159.176.226 (1 Mar 2017 12:18:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2017 12:18:36 +0000 (UTC) User-Agent: Mutt/1.5.20 (2009-06-14) To: 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:18:33 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 1cj3DB-0003v4-TU for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Mar 2017 13:18:30 +0100 Original-Received: from localhost ([::1]:45958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj3DI-0007gp-1B for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Mar 2017 07:18:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj3Ct-0007gf-2E for help-gnu-emacs@gnu.org; Wed, 01 Mar 2017 07:18:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cj3Cp-000780-3t for help-gnu-emacs@gnu.org; Wed, 01 Mar 2017 07:18:11 -0500 Original-Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:36670) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cj3Co-000742-SO for help-gnu-emacs@gnu.org; Wed, 01 Mar 2017 07:18:07 -0500 Original-Received: by mail-wr0-x241.google.com with SMTP id l37so5273982wrc.3 for ; Wed, 01 Mar 2017 04:18:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mime-version:content-disposition :user-agent; bh=ME6Comwf844nM6XXU0A9OJS4j2Rc8T7mr1iPLlQPSCg=; b=O7+WxlKR6PKAo/UmlOHKj02Jj2UlqZDAzugI83Tvvsorh6Qn953WbKqxz008FJ8ZBg Q1svj9LcwuvCeviRU7PDbi2WpEYa86xdWczvoFKduBIoO0G741OHcTL32/gIOmjvYv+T GaWnlxkN2Jjm1MuQ4PeGKo41jJw2uvWeV9YioqEHab/FznOmxXI1DWLzCP1jirbbFMve LazxdikJoWBgRSd+Oa04HjFCV/wwim1KDUdYW2RC2nKfYx+6o+/TOpR26Lw5DiPc+Gf9 7mbCiE8+zRZ9Cu3qWE8hN2+dxj+ERR+RinRXCMlGOuDq4Bbzi14pi2XQaM39931GCQnh B7FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mime-version :content-disposition:user-agent; bh=ME6Comwf844nM6XXU0A9OJS4j2Rc8T7mr1iPLlQPSCg=; b=L7qmdf7nhT3o4Vw2CGNFSC052W1kL6hPaZEHfm2ohbEcl/VN9ly+Jd9qIWS4i/9fcC GUB6IVEk5NQkEStJ2wVzO6ZNw8Kk9iTUDk4cN2SjK8kxXQ58oMbiAIx+s8s5ZCrUsKge TnDrqSLTLpZ5Ob60Jq5FfDfwZa6zPbDjslFtZuNqyT2nlTFF+DTqAwscbsPkBelErVWw 3RjQA6EVJaQZsLn08LZwUUuZPdLN62Sg997uau+FcsDdM5yoCzT6nMehKKmus2v2sY0+ 2nOUiaJB18tUOiO30zIA/uJ54P/TF6O/8kUzIAMjNt6DL6PslKnRW2Wl+Xb8PyTarsbe wxSQ== X-Gm-Message-State: AMke39mCbUFXkjh6/Py2edKNvZeGBqrh2WXAUhuux/blaXfgkz0zUlRkohcCMLxH06Rq7w== X-Received: by 10.223.172.101 with SMTP id v92mr7792158wrc.49.1488370683867; Wed, 01 Mar 2017 04:18:03 -0800 (PST) Original-Received: from workstation ([148.56.5.204]) by smtp.gmail.com with ESMTPSA id d6sm22615448wmd.6.2017.03.01.04.18.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 01 Mar 2017 04:18:03 -0800 (PST) X-Google-Original-From: hector Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 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:112401 Archived-At: 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 functions 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?