From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Java: Jump to file from stacktrace Date: Mon, 19 Apr 2021 15:41:51 +0300 Message-ID: <8335vmtpio.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30928"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Anand Tamariya Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 19 14:43:43 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYTFe-0007wm-Bu for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Apr 2021 14:43:42 +0200 Original-Received: from localhost ([::1]:49712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYTFd-00066c-AE for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Apr 2021 08:43:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYTEA-0005KV-US for emacs-devel@gnu.org; Mon, 19 Apr 2021 08:42:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39316) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYTEA-0000Md-Mb; Mon, 19 Apr 2021 08:42:10 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4219 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lYTE9-0001yB-C0; Mon, 19 Apr 2021 08:42:09 -0400 In-Reply-To: (message from Anand Tamariya on Sun, 18 Apr 2021 20:21:31 +0530) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268160 Archived-At: > From: Anand Tamariya > Date: Sun, 18 Apr 2021 20:21:31 +0530 > > If you need to jump into a file from stacktrace in a log, use the patch in compile.el . Then with an appropriate > find-file function, you can easily jump to the location. > > (defun gud-compilation-find-file (_marker filename _directory &rest _formats) > "Find a buffer for file FILENAME." > (ede-find-file filename)) > > (setq next-error-function 'compilation-next-error-function > compilation-locs (make-hash-table :test 'equal :weakness 'value) > compilation-find-file 'gud-compilation-find-file) Thanks, but could you please describe the scenario where this feature would be useful? I'm not sure I understand that, especially what kind of "log" is supposed to include a stacktrace, and what do GUD and EDE have to do with this?