all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* assq_no_quit... huh?
       [not found] <87zfkrp0da.fsf.ref@yahoo.com>
@ 2024-12-20  2:13 ` Po Lu
  2024-12-20  5:00   ` Gerd Möllmann
  0 siblings, 1 reply; 5+ messages in thread
From: Po Lu @ 2024-12-20  2:13 UTC (permalink / raw)
  To: emacs-devel

What's the meaning of this code?

	  if (is_tty_frame (f))
	    {
	      /* Ignore all invisble tty frames, children or root.  */
	      if (!FRAME_VISIBLE_P (root_frame (f)))
		continue;

	      /* Remember tty root frames which we've seen.  */
	      if (!FRAME_PARENT_FRAME (f)
		  && NILP (assq_no_quit (frame, tty_root_frames))) <===
		tty_root_frames = Fcons (frame, tty_root_frames);
	    }

No alist is being constructed and consequently assq_no_quit always
returns nil.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: assq_no_quit... huh?
  2024-12-20  2:13 ` assq_no_quit... huh? Po Lu
@ 2024-12-20  5:00   ` Gerd Möllmann
  2024-12-20  5:18     ` Gerd Möllmann
  2024-12-20  7:41     ` Eli Zaretskii
  0 siblings, 2 replies; 5+ messages in thread
From: Gerd Möllmann @ 2024-12-20  5:00 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

Po Lu <luangruo@yahoo.com> writes:

> What's the meaning of this code?
>
> 	  if (is_tty_frame (f))
> 	    {
> 	      /* Ignore all invisble tty frames, children or root.  */
> 	      if (!FRAME_VISIBLE_P (root_frame (f)))
> 		continue;
>
> 	      /* Remember tty root frames which we've seen.  */
> 	      if (!FRAME_PARENT_FRAME (f)
> 		  && NILP (assq_no_quit (frame, tty_root_frames))) <===
> 		tty_root_frames = Fcons (frame, tty_root_frames);
> 	    }
>
> No alist is being constructed and consequently assq_no_quit always
> returns nil.

Thanks, that's a bug. It would have better been memq_no_quit but that
doesn't seem to exist anymore. Will be fixed soon.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: assq_no_quit... huh?
  2024-12-20  5:00   ` Gerd Möllmann
@ 2024-12-20  5:18     ` Gerd Möllmann
  2024-12-20  7:41     ` Eli Zaretskii
  1 sibling, 0 replies; 5+ messages in thread
From: Gerd Möllmann @ 2024-12-20  5:18 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

Gerd Möllmann <gerd.moellmann@gmail.com> writes:

> Po Lu <luangruo@yahoo.com> writes:
>
>> What's the meaning of this code?
>>
>> 	  if (is_tty_frame (f))
>> 	    {
>> 	      /* Ignore all invisble tty frames, children or root.  */
>> 	      if (!FRAME_VISIBLE_P (root_frame (f)))
>> 		continue;
>>
>> 	      /* Remember tty root frames which we've seen.  */
>> 	      if (!FRAME_PARENT_FRAME (f)
>> 		  && NILP (assq_no_quit (frame, tty_root_frames))) <===
>> 		tty_root_frames = Fcons (frame, tty_root_frames);
>> 	    }
>>
>> No alist is being constructed and consequently assq_no_quit always
>> returns nil.
>
> Thanks, that's a bug. It would have better been memq_no_quit but that
> doesn't seem to exist anymore. Will be fixed soon.

Should be fixed now.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: assq_no_quit... huh?
  2024-12-20  5:00   ` Gerd Möllmann
  2024-12-20  5:18     ` Gerd Möllmann
@ 2024-12-20  7:41     ` Eli Zaretskii
  2024-12-20  7:49       ` Gerd Möllmann
  1 sibling, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2024-12-20  7:41 UTC (permalink / raw)
  To: Gerd Möllmann; +Cc: luangruo, emacs-devel

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: emacs-devel@gnu.org
> Date: Fri, 20 Dec 2024 06:00:35 +0100
> 
> Po Lu <luangruo@yahoo.com> writes:
> 
> > What's the meaning of this code?
> >
> > 	  if (is_tty_frame (f))
> > 	    {
> > 	      /* Ignore all invisble tty frames, children or root.  */
> > 	      if (!FRAME_VISIBLE_P (root_frame (f)))
> > 		continue;
> >
> > 	      /* Remember tty root frames which we've seen.  */
> > 	      if (!FRAME_PARENT_FRAME (f)
> > 		  && NILP (assq_no_quit (frame, tty_root_frames))) <===
> > 		tty_root_frames = Fcons (frame, tty_root_frames);
> > 	    }
> >
> > No alist is being constructed and consequently assq_no_quit always
> > returns nil.
> 
> Thanks, that's a bug. It would have better been memq_no_quit but that
> doesn't seem to exist anymore.

It did exist, in the w32*.c files.  So the change you made to re-add
memq_no_quit broke the MS-Windows build.

Please in the future, when you add a new function, grep _all_ of the
sources for the same symbol, to avoid inadvertent breakage of
platforms where you don't build Emacs routinely.

Thanks.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: assq_no_quit... huh?
  2024-12-20  7:41     ` Eli Zaretskii
@ 2024-12-20  7:49       ` Gerd Möllmann
  0 siblings, 0 replies; 5+ messages in thread
From: Gerd Möllmann @ 2024-12-20  7:49 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: luangruo, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> It did exist, in the w32*.c files.  So the change you made to re-add
> memq_no_quit broke the MS-Windows build.

Sorry for that.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-12-20  7:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87zfkrp0da.fsf.ref@yahoo.com>
2024-12-20  2:13 ` assq_no_quit... huh? Po Lu
2024-12-20  5:00   ` Gerd Möllmann
2024-12-20  5:18     ` Gerd Möllmann
2024-12-20  7:41     ` Eli Zaretskii
2024-12-20  7:49       ` Gerd Möllmann

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.