From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50043: 28.0.50; USABLE_SIGOI undef code paths do not work correctly Date: Wed, 17 Nov 2021 19:37:32 +0200 Message-ID: <835ysqzns3.fsf@gnu.org> References: <874kbtfthj.fsf@gnus.org> <835yw9cwoa.fsf@gnu.org> <87mtpla013.fsf@gnus.org> <83zgtlbaw6.fsf@gnu.org> <87fsvcuttw.fsf@gnus.org> <83czn12uz1.fsf@gnu.org> <837dd80zc7.fsf@gnu.org> <92d3e509-be73-88c8-0085-f13c3716dd1b@cornell.edu> <83sfvuzzy5.fsf@gnu.org> <83ee7ezw8l.fsf@gnu.org> <4a256b21-ec50-90f8-b472-079fa98969b2@cornell.edu> <83czmyzpno.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18451"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 50043@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 17 18:38:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnOst-0004ci-0t for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 18:38:11 +0100 Original-Received: from localhost ([::1]:39480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnOsr-0007Ni-3A for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 12:38:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnOsk-0007Mg-LK for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 12:38:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnOsk-0000qN-Co for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 12:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnOsj-000849-VE for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 12:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Nov 2021 17:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50043 X-GNU-PR-Package: emacs Original-Received: via spool by 50043-submit@debbugs.gnu.org id=B50043.163717066630968 (code B ref 50043); Wed, 17 Nov 2021 17:38:01 +0000 Original-Received: (at 50043) by debbugs.gnu.org; 17 Nov 2021 17:37:46 +0000 Original-Received: from localhost ([127.0.0.1]:33806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnOsT-00083Q-MI for submit@debbugs.gnu.org; Wed, 17 Nov 2021 12:37:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnOsR-000831-Fj for 50043@debbugs.gnu.org; Wed, 17 Nov 2021 12:37:43 -0500 Original-Received: from [2001:470:142:3::e] (port=42182 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnOsM-0000ng-22; Wed, 17 Nov 2021 12:37:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LuW/sbmXn92sdeiG9BUSWKTnNP8kpHT6Rgz6Nbd2h8I=; b=RyjK87rqB00D BmHICdUlYCa5Zy2+hUubuyYsnVvzEzZYM2cfEWLqS5NmZ/Smsd0zoLJg0KqGvPZdRiZqgclaW/Hrx rZvZpWlQd4GeJrWFiv8WvJMaAlh6cyWjUfdfsfYHvVaErRqScFNT2mmLU1tA1/qi3RN6pUtyii08K SWdsrvQUQI+QJbXLPcQN5HToLMvh4piUoQvjXd986Fz1VmCcgE939lkW2FS/V8R5gztQp8kfUDYRt jGnj+hR38wz/TOz81aT+FKSpKmkIU/O0k620O7a2dCEwEBaHNoO1rkQ1vx3Gkxwlvg0GgnHfLSjdl h0aFhpTedXPLN5hQc6/c6g==; Original-Received: from [87.69.77.57] (port=1471 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnOsL-00042y-NU; Wed, 17 Nov 2021 12:37:38 -0500 In-Reply-To: (message from Ken Brown on Wed, 17 Nov 2021 12:25:38 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220238 Archived-At: > Date: Wed, 17 Nov 2021 12:25:38 -0500 > Cc: larsi@gnus.org, 50043@debbugs.gnu.org > From: Ken Brown > > There's still one more issue related to this bug, which I mentioned earlier: If > x_selection_timeout is zero, x_get_foreign_selection will call > wait_reading_process output with an infinite timeout rather than a zero timeout, > which I'm sure is not what was intended. The attached patch fixes that. Bu that's clearly what was intended. The doc string of x-selection-timeout says: A value of 0 means wait as long as necessary. And with the fix in wait_reading_process_output the original problem is gone, since we will now loop with short select timeout, waiting for the selection event. Which is the intent here, AFAIU.