emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: improving debug output of get-buffer


From: Eli Zaretskii
Subject: Re: improving debug output of get-buffer
Date: Sat, 04 Nov 2023 10:45:39 +0200

> From: Rahguzar <rahguzar@zohomail.eu>
> Cc: look@strawberrytea.xyz, emacs-devel@gnu.org
> Date: Thu, 02 Nov 2023 17:57:03 +0100
> 
> > We could improve the diagnostics of set-buffer.  But I'm still at a
> > loss how that would have helped you here when "stringp nil" did not.
> 
> As a clumsy programmer I cause quite a lot of errors, a sizable of them
> of `stringp nil` variety and mostly they are caused by wrong
> manipulation of strings. So when I see it I tend to hunt for strings I
> in the code. I think `buffer-or-string-p` will narrow down the places
> where I need to look quite substantially.

Patches to improve the error messages from set-buffer will be welcome.
I think we should use something similar to nsberror there.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]