all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Anand Tamariya <atamariya@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Java: Jump to file from stacktrace
Date: Mon, 19 Apr 2021 15:41:51 +0300	[thread overview]
Message-ID: <8335vmtpio.fsf@gnu.org> (raw)
In-Reply-To: <CADm7Y4m=C5UUexZLowa7=ww_R9_=0T1GgnHZsPJjUJ4DYo2YOQ@mail.gmail.com> (message from Anand Tamariya on Sun, 18 Apr 2021 20:21:31 +0530)

> From: Anand Tamariya <atamariya@gmail.com>
> 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?



  parent reply	other threads:[~2021-04-19 12:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-18 14:51 Java: Jump to file from stacktrace Anand Tamariya
2021-04-19  6:15 ` Anand Tamariya
2021-04-19 12:41 ` Eli Zaretskii [this message]
2021-04-19 13:47   ` Anand Tamariya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8335vmtpio.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=atamariya@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.