From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#27397: [PATCH] New commands for bulk tracing of elisp functions Date: Mon, 19 Jun 2017 21:35:11 +1200 Message-ID: References: <1348823a-7623-8146-8cc0-8c0eff13e458@orcon.net.nz> <34fcc090-6a8b-42de-b6c8-df182f8de938@yandex.ru> <8760fs5sjw.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1497864973 26623 195.159.176.226 (19 Jun 2017 09:36:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Jun 2017 09:36:13 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 Cc: 27397@debbugs.gnu.org, Dmitry Gutov To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 19 11:36:06 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 1dMt6M-0006Te-3C for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jun 2017 11:36:06 +0200 Original-Received: from localhost ([::1]:41420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMt6Q-0005k9-RN for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jun 2017 05:36:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMt6L-0005k2-Cy for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2017 05:36:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMt6I-0000ni-A6 for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2017 05:36:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52945) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMt6I-0000nV-6c for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2017 05:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dMt6H-0001Ym-QX for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2017 05:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jun 2017 09:36: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.14978649225944 (code B ref 27397); Mon, 19 Jun 2017 09:36:01 +0000 Original-Received: (at 27397) by debbugs.gnu.org; 19 Jun 2017 09:35:22 +0000 Original-Received: from localhost ([127.0.0.1]:55622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMt5e-0001Xo-7f for submit@debbugs.gnu.org; Mon, 19 Jun 2017 05:35:22 -0400 Original-Received: from smtp-3.orcon.net.nz ([60.234.4.44]:42318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMt5c-0001Xa-5K for 27397@debbugs.gnu.org; Mon, 19 Jun 2017 05:35:20 -0400 Original-Received: from [150.107.172.99] (port=11950 helo=[192.168.20.102]) by smtp-3.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1dMt5U-0005m6-BW; Mon, 19 Jun 2017 21:35:12 +1200 In-Reply-To: <8760fs5sjw.fsf@detlef> Content-Language: en-GB X-GeoIP: NZ X-Spam_score: -1.0 X-Spam_score_int: -9 X-Spam_bar: - 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:133747 Archived-At: On 19/06/17 19:45, Michael Albinus wrote: >> (trace-package "tramp-") > > There's no package "tramp-". Better would be > > (trace-regexp "^tramp-") To be clear, the two are functionally equivalent; but if you'd prefer it written that way then I'm happy to make that change. > One problem I'm always faced with Tramp are autoloaded functions. > The code as given in the Tramp manual instruments only functions > which are either already loaded, or which are marked as to be > autoloaded. Functions from a Tramp package, which are loaded later > on, are not handled. > > Could you add this functionality? I'm not certain what you're asking here. With respect to the manual entry being discussed here, we could trivially show code to `require' all of the tramp-* libraries prior to calling trace-package or trace-regexp. e.g.: (mapc 'require '(tramp tramp-adb tramp-cache tramp-cmds tramp-compat tramp-ftp tramp-gvfs tramp-sh tramp-smb tramp-uu trampver)) (or else something which automatically locates library names starting with "tramp-" and loads them all). Perhaps you're actually be suggesting some kind of `eval-after-load' tracing behaviour, though? -Phil