emacs-devel
[Top][All Lists]
Advanced

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

Re: NSTRACE: Create message indicating window and/or buffer.


From: Keith David Bershatsky
Subject: Re: NSTRACE: Create message indicating window and/or buffer.
Date: Thu, 07 Sep 2017 09:34:17 -0700

Printing to stderr achieves the desired result -- thank you very much!  I 
wrapped it in an NSTRACE_ENABLED condition:

#if NSTRACE_ENABLED
  if (BUFFERP (w->contents) && STRINGP (BVAR (XBUFFER (w->contents), name)))
    fprintf (stderr, "window %s\n", SSDATA (BVAR (XBUFFER (w->contents), 
name)));
#endif

Thank you also to Anders for taking an interest in this thread.  Your 
assistance is always greatly appreciated.

Keith

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

DATE:  [09-07-2017 07:56:04] <07 Sep 2017 17:56:04 +0300>
FROM:  Eli Zaretskii <address@hidden>
> 
> * * * 
> 
>   if (BUFFERP (w->contents) && STRINGP (BVAR (XBUFFER (w->contents), name)))
>     fprintf (stderr, "window %s\n", SSDATA (BVAR (XBUFFER (w->contents), 
> name));
> 
> This prints the name of the buffer shown in the window.



reply via email to

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