From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ralf Fassel Newsgroups: gmane.emacs.help Subject: Re: Function behaves differently when debugged Date: Tue, 15 May 2018 16:48:32 +0200 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1526395740 24571 195.159.176.226 (15 May 2018 14:49:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 15 May 2018 14:49:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 15 16:48:56 2018 Return-path: Envelope-to: geh-help-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 1fIbG4-0006Gs-H1 for geh-help-gnu-emacs@m.gmane.org; Tue, 15 May 2018 16:48:56 +0200 Original-Received: from localhost ([::1]:41820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIbIB-0005V6-G6 for geh-help-gnu-emacs@m.gmane.org; Tue, 15 May 2018 10:51:07 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-X-Trace: individual.net HazZhjSwNTI/IuDxEhGwOAWTDgQ22sWGJUrUsHobpp0zDkmh8= Cancel-Lock: sha1:0cRz8THqNT7ZkrzCSyv639o3CtE= sha1:Se63gTtJds+tab4s0TUucTnC7Ns= Original-Xref: usenet.stanford.edu gnu.emacs.help:222623 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116742 Archived-At: * Matthias Pfeifer | I bind it to some key in ibuffer-mode. it should print the path to a | buffer's file. When point is on a line of a buffer that is not backed by a | file (eg *Messages*) then i get this output: > | wrong type argument: strinp, nil You could set the variable debug-on-error to t to see where the error occurs and protect that function call by 'stringp'. | Also I do not understand why my function behaves differently when my | defun is debugged and when it run without debugging. Probably because the current buffer query function does not return 'nil' when you are in the debugging console... HTH R'