[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Function behaves differently when debugged
From: |
Ralf Fassel |
Subject: |
Re: Function behaves differently when debugged |
Date: |
Tue, 15 May 2018 16:48:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
* Matthias Pfeifer <pfemat@web.de>
| 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'