From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#27397: [PATCH] New commands for bulk tracing of elisp functions Date: Mon, 19 Jun 2017 15:50:00 +0300 Message-ID: References: <1348823a-7623-8146-8cc0-8c0eff13e458@orcon.net.nz> <34fcc090-6a8b-42de-b6c8-df182f8de938@yandex.ru> <8760fs5sjw.fsf@detlef> <871sqg5mig.fsf@detlef> <6282010c-b2ec-ebca-35b7-a382b30ea3f0@orcon.net.nz> <87poe0i3mw.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1497876948 26311 195.159.176.226 (19 Jun 2017 12:55:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Jun 2017 12:55:48 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Thunderbird/54.0 Cc: 27397@debbugs.gnu.org To: Michael Albinus , Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 19 14:55:40 2017 Return-path: Envelope-to: geb-bug-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 1dMwDT-0006Ke-2h for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jun 2017 14:55:39 +0200 Original-Received: from localhost ([::1]:42426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMwDW-0000AQ-CA for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jun 2017 08:55:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMw93-0003MK-IQ for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2017 08:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMw90-00054X-6K for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2017 08:51:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53051) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMw90-00054L-1r for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2017 08:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dMw8z-0007uj-Rj for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2017 08:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jun 2017 12:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27397 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 27397-submit@debbugs.gnu.org id=B27397.149787661230365 (code B ref 27397); Mon, 19 Jun 2017 12:51:01 +0000 Original-Received: (at 27397) by debbugs.gnu.org; 19 Jun 2017 12:50:12 +0000 Original-Received: from localhost ([127.0.0.1]:55728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMw8C-0007tg-79 for submit@debbugs.gnu.org; Mon, 19 Jun 2017 08:50:12 -0400 Original-Received: from mail-lf0-f41.google.com ([209.85.215.41]:36439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMw8A-0007tT-G6 for 27397@debbugs.gnu.org; Mon, 19 Jun 2017 08:50:10 -0400 Original-Received: by mail-lf0-f41.google.com with SMTP id o83so54864461lff.3 for <27397@debbugs.gnu.org>; Mon, 19 Jun 2017 05:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=McpB80RdzFhBmF5zcMUv2dilFM/mr346LDMzl/m6P8s=; b=JtVrrHBPLFI9PMMVshf/KJUEKlJ+/UBXbXqzrysOkUYvOSIZfB4JH3gbulfTzoG1qP 8/5jCoXaubVABPZ0YrctnebVTjdBZMAe3EmV5pFIx9jr5W0lhQIAb1fsvJz1sOlS/quU L0053Kh8V6tkneduBHcfjnzxhuze44+APtPiml1DPZ/Fpxwp2Mf+aGpjS24Jm11QAGuN R6AtXsyBCJpYMA2Y/yV0AfDo5h+N0d356euGB2IR6IfpQTCJfuVIIq6LsK8LIUVPPLns MQVtm7iaezVAFUYJYHrmQlf5t1Z/xpnASoHbBXMHtMmKjxBHQBJ4y0j60acVKBOlq69e PZ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=McpB80RdzFhBmF5zcMUv2dilFM/mr346LDMzl/m6P8s=; b=kerJ7An0mXn35TtU+NNrkaczmn/0ZewoBONEVkBYs3fgQn3fMlqXMLK+V+7pP/LwgJ JV4zq8hV2e9qmsxMyWG0rBlqMUEMlJ1qmiMC381B192+Bx1p/hcINbbn9WDjhRv7qrvo YNOqmg7In+phW4YD6TCSUo8bZOEJoVhWONkXHffz3KyS/SEFV4HlQD5y3X85w/9iE2/R wGwhCKQO500FnkKNIHq9jWMTXrQyzpuHVv2Zs+QQ0+NxBDKAPu/LS/fkzh+/cbBycFVO //Y/jSktOjOiC4EQqCx/+SXCM4s6YKSH06ms2iBH2+C7ZQPyNTIbNtYuClgBwKZdqyQF +f8A== X-Gm-Message-State: AKS2vOzdTNYaO1GaB7c5M2+M8CnJJ1lad7PymqQAfOfUG09V1uNZsYDT dyHD1sYB5x962n+XZZk= X-Received: by 10.80.176.3 with SMTP id i3mr17241124edd.65.1497876603740; Mon, 19 Jun 2017 05:50:03 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id c23sm4714727edc.34.2017.06.19.05.50.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Jun 2017 05:50:02 -0700 (PDT) In-Reply-To: <87poe0i3mw.fsf@detlef> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133758 Archived-At: On 6/19/17 3:05 PM, Michael Albinus wrote: > So we shall parse indead every function for the library it belongs to. It > shouldn't be too hard, based on `autoloadp', `find-lisp-object-file-name' > and friends, see the implementation in `describe-function-1'. Something > like this is a very rudimentary implementation: I'm not sure I understand. This find the library to which a function belongs. How do we find the file corresponding to a package name this way? This question aside, I'm not sure we'll always want to ignore "tramp-sh" when tracing "tramp". IOW, that this will be every user's preference. For instance, someone might try to trace-package "cedet", and expect every function belonging to CEDET to be traced, subpackages and all. And likewise for multi-file ELPA packages. In that case, it's understood that a "package" can be spread over several files.