From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Kamphausen Newsgroups: gmane.emacs.help Subject: Re: Feature Request: Auto-jumping to source file (.el) upon elisp error Date: Mon, 10 Dec 2007 10:59:49 +0100 Organization: Church of Emacs Message-ID: <85y7c2na3u.fsf@usenet.my.skamphausen.de> References: <2195cd7f-f88e-420b-b173-a3996379d5f4@i29g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1197283323 7464 80.91.229.12 (10 Dec 2007 10:42:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Dec 2007 10:42:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 10 11:42:12 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J1g5U-0004rA-A3 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Dec 2007 11:42:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1g5C-0002Jw-NV for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Dec 2007 05:41:54 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 55 Original-X-Trace: news.albasani.net u8+Oofkp4ZzXB2+mekq61N0MvH86JXQSDK//BAb3ZQuVLnpE47Q1p9aM1MzK38EpZS+7c9dKd60qaifzJIRkQiVhdLfGGfIwxGBevsbZLIwfsy/+/YC7/WSsxwRtgRe0 Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Mon, 10 Dec 2007 09:59:50 +0000 (UTC) X-User-ID: hwR78VhF4E66ihOpaNHAcCGdCgI6uR5eivM1np8ujJg= Cancel-Lock: sha1:hIS37UNGQaQbdow0Z79Wo/xcqD8= sha1:WyQsQViwMB1C6MxsmtK+qG49+mk= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-NNTP-Posting-Host: 3JA5dCACMpN4nSrkLA6aHNSTSsobjiQ94G7aNVjg1zc= Original-Xref: shelby.stanford.edu gnu.emacs.help:154548 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49977 Archived-At: Hi, "Nordlöw" writes: > My highest priority Emacs feature request: > > When I encounter an error in elisp code I always wonder: Is there a > way for Emacs to automatically split my elisp-error window in two and > replace one of the windows with the relating source file and jump to > position in that buffer where the error occurrred, like we are used to > with practically all other languages/IDEs? to me it seems that just the right thing happens. For example, when I start a un-customized emacs: shell> emacs -q put the following into my scratch buffer: ---------------------------------------------------------------------- (defun produce-an-error () (interactive) (goto-char)) (setq debug-on-error t) (produce-an-error) ---------------------------------------------------------------------- and do a M-x eval-current-buffer I get a second window showing a backtrace: ---------------------------------------------------------------------- Debugger entered--Lisp error: (wrong-number-of-arguments goto-char 0) (goto-char) produce-an-error() eval-current-buffer() call-interactively(eval-current-buffer) execute-extended-command(nil) call-interactively(execute-extended-command) ---------------------------------------------------------------------- The cute thing is that all known elisp functions (as opposed to C-builtins) will be clickable to jump to the function definition. Since I may be interested in various levels of the whole backtrace this is way better than having the program decide which one will be my point of interest. Just my 2ct. Regards, Stefan -- Stefan Kamphausen --- http://www.skamphausen.de a blessed +42 regexp of confusion (weapon in hand) You hit. The format string crumbles and turns to dust.