From unknown Wed Jun 18 23:04:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16315 <16315@debbugs.gnu.org> To: bug#16315 <16315@debbugs.gnu.org> Subject: Status: Slow paste Reply-To: bug#16315 <16315@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:04:18 +0000 retitle 16315 Slow paste reassign 16315 emacs submitter 16315 Perry Smith severity 16315 normal tag 16315 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 01 10:42:54 2014 Received: (at submit) by debbugs.gnu.org; 1 Jan 2014 15:42:54 +0000 Received: from localhost ([127.0.0.1]:56193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VyNwb-0007fx-Gy for submit@debbugs.gnu.org; Wed, 01 Jan 2014 10:42:53 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49487) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VyNwY-0007fo-IG for submit@debbugs.gnu.org; Wed, 01 Jan 2014 10:42:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VyNwP-0002D0-UT for submit@debbugs.gnu.org; Wed, 01 Jan 2014 10:42:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VyNwP-0002Cw-Qs for submit@debbugs.gnu.org; Wed, 01 Jan 2014 10:42:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VyNwH-0005mO-C4 for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2014 10:42:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VyNw8-0002AL-UQ for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2014 10:42:33 -0500 Received: from mail-qc0-x22b.google.com ([2607:f8b0:400d:c01::22b]:62992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VyNw8-0002A2-Ow for bug-gnu-emacs@gnu.org; Wed, 01 Jan 2014 10:42:24 -0500 Received: by mail-qc0-f171.google.com with SMTP id c9so12950701qcz.30 for ; Wed, 01 Jan 2014 07:42:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:message-id:date:to:mime-version; bh=NtoF3MTiKWwMzkSSHU0jaeSqkH9Nqe7IxsF9WBDpw5I=; b=XG00uncotrSEBIZQSm+tq4yOM92VgRd1E0pDdbkuZfg1uaUWFsDAOC0IcaHyxi9ZLc WJem1nnfCjp3+fRC2R6MQY3ADdpo3sAdxVVqtWmS6wlW/h4hH5FXNcwTSxOijllYLOZt HLMZdxCY7pAPoVlSEsPf1Y9pZJR0K7+gmZgH+apmxVbIeILH9d/hZMSZ6iDjFOGmL8CC oIXgQQflI2t0xeaBzpbN26u+GC4rUPKQcmxgoYO3KU/caGL9Ghr6B8AwP4v5HFRVcLc+ Cr7vS7ouweWQJvxpO17isx3O3YCur2O7SaVGNho4y7bTe19aHuTwNLYP0vOg2wYzcD7E lu1A== X-Received: by 10.49.98.35 with SMTP id ef3mr134873452qeb.30.1388590944109; Wed, 01 Jan 2014 07:42:24 -0800 (PST) Received: from magicbook.local ([64.128.19.234]) by mx.google.com with ESMTPSA id p20sm76081852qay.0.2014.01.01.07.42.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Jan 2014 07:42:23 -0800 (PST) From: Perry Smith Content-Type: multipart/signed; boundary="Apple-Mail=_059F83E6-75F2-4EC4-8313-27DF93888082"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: Slow paste Message-Id: <72CCD5AC-959C-4E7E-B54C-7CD1632BD2E5@gmail.com> Date: Wed, 1 Jan 2014 09:42:20 -0600 To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) X-Mailer: Apple Mail (2.1510) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --Apple-Mail=_059F83E6-75F2-4EC4-8313-27DF93888082 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, I have a Mac (10.8.5) running JollysFastVNC (1.48) viewing a RealVNC = server (5.0.1) on AIX (6.1 TL08 SP03) running emacs (24.3). When I copy from a Mac window and paste into emacs (yank), there is a = long delay. When I started seriously testing, it was always 5 seconds = but I have memories that sometimes it was much longer. I'm calling = these memories "false" at this point. I believe it started when emacs 24 was being developed but I'm not sure. = I know the issue existed in 24.2 and did not exist in emacs 23 that I = was using but I don't recall which subversion that was. I've turned on TRACE_SELECTION in xselect.c and I've also duplicated = those macros in keyboard.c and process.c. When I start emacs -q I get = this output: 10748140: get_input_pending returning 0 10748140: last check: read_kdb=3D-1 NILP(wait_for_cell):1 10748140: get_input_pending returning 0 10748140: no_avail:0 10748140: pselect 2 followed by a half second pause. This is the normal polling of the = input (I guess its normal). I go to a Mac window, select some text, = then hit command-C to copy it into the cut buffer, then select the VNC = window (where emacs is already the active window) and hit control-Y to = paste. I get: 10748140: get_input_pending returning 1 10748140: get_input_pending returning 1 10748140: Get selection UTF8_STRING, type _EMACS_TMP_ 10748140: Start waiting 5 secs for SelectionNotify 10748140: last check: read_kdb=3D0 NILP(wait_for_cell):0 10748140: Received SelectionNotify 10748140: get_input_pending returning 0 10748140: no_avail:0 10748140: pselect 2 followed by a 5 second pause, then I get 10748140: Got event =3D 1 10748140: Reading selection data 10748140: Read 7 bytes from property _EMACS_TMP_ 10748140: Delete property _EMACS_TMP_ and then I see the text show up in the emacs window. I *think* what is = "wrong" here is in this case, get_input_pending is actually pulling the = text out and via the SelectionNotify handler placing the text into = reading_selection_reply but then returns zero because, at that point in = time, there is no input to be read. Thus this if test, is not true: if ((read_kbd || !NILP (wait_for_cell)) && detect_input_pending ()) I'm thinking that after detect_input_pending is called in = wait_reading_process_output, another two lines like this: if (! NILP (wait_for_cell) && ! NILP (XCAR (wait_for_cell))) break; should be added before the if (!no_avail) line (around line 4612 in the = copy I am looking at. I made this change in my copy and so far, it seems to work. Perry Smith --Apple-Mail=_059F83E6-75F2-4EC4-8313-27DF93888082 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJSxDdcAAoJEIPoMwNgGirlxCcH+weCLsXgW8GVNkp502eTk5CF /3+zX+pYz8arAe0aWAOtJfn7BRBDlpchZV6VsKoihzItndHkCnrbd3D7eRD65pxr /Y0AM+GgyMRsqXuyP1VVxLMkKxZLDD0PZ3tcGTbmuyiPGyLbnVwLVPlu5IZsh28D uAdEp7p8V6rtrnj14gt6LhRwTNhNQiV3UtB3DZJ+GcwduzxiQ9XzC8J0TPzd2Q5u tKQ9Pv6fImr2m47FC7mcNPm8db5ype9QNc/82pj/LvrCESU5G1NDaL8ThrPMca+K taz2h+b5q5+kQkdFSsFXeEUAnIfNv5P6kHIHYQC7HsGHToC6l6F4vb9DU2tZ/fs= =dbRQ -----END PGP SIGNATURE----- --Apple-Mail=_059F83E6-75F2-4EC4-8313-27DF93888082-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 06 10:12:05 2020 Received: (at 16315) by debbugs.gnu.org; 6 Dec 2020 15:12:05 +0000 Received: from localhost ([127.0.0.1]:50723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klvhk-00024T-WB for submit@debbugs.gnu.org; Sun, 06 Dec 2020 10:12:05 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klvhj-00023y-VZ for 16315@debbugs.gnu.org; Sun, 06 Dec 2020 10:12:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kAFeEsCdb/imO5pERP9ZhxkS8lLPm+KOOTHNWJcAELM=; b=R8iUsxNTBRrLcb9nwbJ4K/QcrL ycpqrmba/rIRCtm4BSs5W9pm1Kgsx5mEwfU0DMSdSCukCu+kzKIWNHFaklsYAgaXLRaZm5H6tPkOX wBInAAUMp19BWXDBSxLcQUD4hegT2/Vjhr2rgBROnnXilTX5T8MVGlR4nl85/8NjaqqU=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klvhb-0005No-GZ; Sun, 06 Dec 2020 16:11:57 +0100 From: Lars Ingebrigtsen To: Perry Smith Subject: Re: bug#16315: Slow paste References: <72CCD5AC-959C-4E7E-B54C-7CD1632BD2E5@gmail.com> X-Now-Playing: Jlin's _Pres Rebooted_: "Lotus" Date: Sun, 06 Dec 2020 16:11:54 +0100 In-Reply-To: <72CCD5AC-959C-4E7E-B54C-7CD1632BD2E5@gmail.com> (Perry Smith's message of "Wed, 1 Jan 2014 09:42:20 -0600") Message-ID: <87y2ib9dfp.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Perry Smith writes: > When I copy from a Mac window and paste into emacs (yank), there is a > long delay. When I started seriously testing, it was always 5 seconds > but I have memories that sometimes it was much longer. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16315 Cc: 16315@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Perry Smith writes: > When I copy from a Mac window and paste into emacs (yank), there is a > long delay. When I started seriously testing, it was always 5 seconds > but I have memories that sometimes it was much longer. I'm calling > these memories "false" at this point. [...] > and then I see the text show up in the emacs window. I *think* what > is "wrong" here is in this case, get_input_pending is actually pulling > the text out and via the SelectionNotify handler placing the text into > reading_selection_reply but then returns zero because, at that point > in time, there is no input to be read. Thus this if test, is not > true: > > if ((read_kbd || !NILP (wait_for_cell)) > && detect_input_pending ()) > > I'm thinking that after detect_input_pending is called in > wait_reading_process_output, another two lines like this: > > if (! NILP (wait_for_cell) && ! NILP (XCAR (wait_for_cell))) > break; > > should be added before the if (!no_avail) line (around line 4612 in > the copy I am looking at. > > I made this change in my copy and so far, it seems to work. (This bug report unfortunately got no response at the time.) The wait_reading_process_output function has changed a bit over the years since this was first reported. Are you still seeing this issue in more recent Emacs versions? If so, could you include a proposed patch? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 06 10:12:10 2020 Received: (at control) by debbugs.gnu.org; 6 Dec 2020 15:12:10 +0000 Received: from localhost ([127.0.0.1]:50726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klvhq-00024k-7j for submit@debbugs.gnu.org; Sun, 06 Dec 2020 10:12:10 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klvho-00024K-Mn for control@debbugs.gnu.org; Sun, 06 Dec 2020 10:12:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hedXo65Tl4qRU+rtnVJ5Ox4JWEmYJHSPILf41i/ndqo=; b=oEA6CHgA8W4YrmlAE169wz1Zlv f0OyB5iTjZ7MGpXscnEx1GQzQ85uEQQZbckKygBp3Wxc5/to8yEUXaa6AtfR4prvB+Mkfw6mTCSJg Ipsp9L65siVasCD8OyyWgm8oJqYFxVnbnS/BeFNJqjU4EkbDrlMud0ZVXVifFrdi6La8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klvhh-0005Nv-4h for control@debbugs.gnu.org; Sun, 06 Dec 2020 16:12:03 +0100 Date: Sun, 06 Dec 2020 16:11:59 +0100 Message-Id: <87wnxv9dfk.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16315 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 16315 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 16315 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 06 18:16:01 2020 Received: (at 16315) by debbugs.gnu.org; 6 Dec 2020 23:16:01 +0000 Received: from localhost ([127.0.0.1]:51692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km3G5-0008KI-D2 for submit@debbugs.gnu.org; Sun, 06 Dec 2020 18:16:01 -0500 Received: from mail-qt1-f176.google.com ([209.85.160.176]:42592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km3G3-0008K5-KD for 16315@debbugs.gnu.org; Sun, 06 Dec 2020 18:16:01 -0500 Received: by mail-qt1-f176.google.com with SMTP id z3so8231834qtw.9 for <16315@debbugs.gnu.org>; Sun, 06 Dec 2020 15:15:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yGZ8hZN0zol4IfQ0SgRu0TLg5+VOjDwy/sKYCxLyVcc=; b=X4HFHbftr5xGNTDKSpdyXIk6Dru7F5DOedsC8FPJ5q1E/pSKTrjyTNcA5hfYcFaClF xn11iyneJEcJLkMDhhMkSx8tO4LFdl5m5x4FDpPVvvZ7DU4yJ0nYt6BRT1EhiZMYrsdV YPUIiqgtAcGSmJCuI49GvElT56q3tt1sH8yjNOeEJ1Ui2P0511F1xJ9EdztVPmrIleHy 0gcjgjykAEYaIyqKfLCTZxHx75YccU00X7TFgsRNY4IqGxCLkNpR0urpLNFrSc/Boefe x61b4BT1JDUB1t+bjS2U47KyTMXg9SFeCgEHsoEmwjgqJ/1pHi/OmpACSB3aoP4G1Myj ho+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yGZ8hZN0zol4IfQ0SgRu0TLg5+VOjDwy/sKYCxLyVcc=; b=oZCn+5IqkZ2NlsM6CD5acVsM8AgnEi2g5egzA5phq3/KGZwJjM+nWi7fEmaY2Xgfur OpJpNoKO/vy9DBB9ZsMkS4YFfcl6mEaab9jAIXongnDWbFO0qzFHxOXixozMpveu5ybi 1C5NDnKciiVuVCjowgXKKgygZ5tPLoFp45+FAnP2cp5S1GR2wZpb2+TE4MLEg+kZUXbD J2lpDEYSdonXxE1J8oti6cTxLuBJfxn4FK23TX/9i4MksAZXO+MztM1PlweO1/aHgmVd H7g1hsp8v+JOlJUOo+AvoJppLkn/YJMcrJG99tlDGvJzJU6Mu/7iyxgu364wFoQH/SSx fYOg== X-Gm-Message-State: AOAM530PGfmP+kpjGRmwCTRsWrulRzdHv5HI/I/RBEpigIYQ6Pqq6yJn IgZp+Q2vhpDlJiO4gWM4QA== X-Google-Smtp-Source: ABdhPJxa4PxRIDtmvMwdvCItIeqZncqnoeyCT5O7Q8BFf1cqBkTHEUd/wKUX4nDw3+j7jG4Tf0mdrA== X-Received: by 2002:ac8:594c:: with SMTP id 12mr21676449qtz.224.1607296554126; Sun, 06 Dec 2020 15:15:54 -0800 (PST) Received: from mysticslate.localdomain (mobile-107-92-60-59.mycingular.net. [107.92.60.59]) by smtp.gmail.com with ESMTPSA id p62sm10776748qkf.50.2020.12.06.15.15.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Dec 2020 15:15:53 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: bug#16315: Slow paste From: Perry Smith In-Reply-To: <87y2ib9dfp.fsf@gnus.org> Date: Sun, 6 Dec 2020 17:15:51 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <4642427E-C050-49C4-8883-91100ED6B638@gmail.com> References: <72CCD5AC-959C-4E7E-B54C-7CD1632BD2E5@gmail.com> <87y2ib9dfp.fsf@gnus.org> To: Lars Ingebrigtsen X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16315 Cc: 16315@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I no longer work as the initial bug report said. I=E2=80=99m not using = AIX, RealVNC, nor JollysFastVNC. The original report had a change which I don=E2=80=99t= recall not working but if I=E2=80=99m the only person reporting the issue, I = would just close it and leave sleeping dogs lie. > On Dec 6, 2020, at 9:11 AM, Lars Ingebrigtsen wrote: >=20 > Perry Smith writes: >=20 >> When I copy from a Mac window and paste into emacs (yank), there is a >> long delay. When I started seriously testing, it was always 5 = seconds >> but I have memories that sometimes it was much longer. I'm calling >> these memories "false" at this point. >=20 > [...] >=20 >> and then I see the text show up in the emacs window. I *think* what >> is "wrong" here is in this case, get_input_pending is actually = pulling >> the text out and via the SelectionNotify handler placing the text = into >> reading_selection_reply but then returns zero because, at that point >> in time, there is no input to be read. Thus this if test, is not >> true: >>=20 >> if ((read_kbd || !NILP (wait_for_cell)) >> && detect_input_pending ()) >>=20 >> I'm thinking that after detect_input_pending is called in >> wait_reading_process_output, another two lines like this: >>=20 >> if (! NILP (wait_for_cell) && ! NILP (XCAR (wait_for_cell))) >> break; >>=20 >> should be added before the if (!no_avail) line (around line 4612 in >> the copy I am looking at. >>=20 >> I made this change in my copy and so far, it seems to work. >=20 > (This bug report unfortunately got no response at the time.) >=20 > The wait_reading_process_output function has changed a bit over the > years since this was first reported. Are you still seeing this issue = in > more recent Emacs versions? >=20 > If so, could you include a proposed patch? >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 06 18:17:07 2020 Received: (at 16315) by debbugs.gnu.org; 6 Dec 2020 23:17:07 +0000 Received: from localhost ([127.0.0.1]:51697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km3H8-0008N1-P5 for submit@debbugs.gnu.org; Sun, 06 Dec 2020 18:17:06 -0500 Received: from quimby.gnus.org ([95.216.78.240]:58694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km3H7-0008MO-DZ for 16315@debbugs.gnu.org; Sun, 06 Dec 2020 18:17:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=YiA3DCf++kGqcZBlKdCxCPwuAM4KChPZd8yqgI0T3qs=; b=SiI/6z62HQ3L0fWFWMgVJgKMm1 u9CBiZvfm8JaeiRJkEoooXXCBa2Y+HW1Toqx2086KGfJgPCMOsJkdiWC2JrmiHpRfQoP0PjAu9VlA ePxEKjrF7IiT2U7sWySoYC69WrfLuiecECxzcfv6F5GcSKvpYgYLi/Eo0Io8rUSSNRLA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1km3Gx-0001UW-Ea; Mon, 07 Dec 2020 00:16:58 +0100 From: Lars Ingebrigtsen To: Perry Smith Subject: Re: bug#16315: Slow paste References: <72CCD5AC-959C-4E7E-B54C-7CD1632BD2E5@gmail.com> <87y2ib9dfp.fsf@gnus.org> <4642427E-C050-49C4-8883-91100ED6B638@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWWbWsLBgctGRtc Oz7FpKX///+xZKb9AAAAAWJLR0QF+G/pxwAAAAd0SU1FB+QMBhcNGB4xEgcAAAGtSURBVDjLvZLR bcMwDEQPlhcQs4BFLaCQGUBAvf9MPVJ2059+taiAIBFfeEdSBARufeznCZ6zYJ2CcmyHuRPMUTIw 8CrFCb27O85IGbya6MNaxxhbgEEwQ2OrcRoz3AZzwiRcSksgDVCjeWac4WDSlEDhw6xJf517ipW6 jrCIAtc+LoBCQ9dW4ShlSc192e+TvgrMWdjHi/8PsLPJ3fHh2aWzshBiWTv2EM1UKEURFgwwkj+A biqqN4jI1WoWTXDF6UHXD85GtYnWHO/q0c0RwzOlWO23B7Yeo7POjMOf0m/PwT+6elOIDq1KkJ2X ACQiYPd0HzNJjJ3SnRUhxvyIorCKjfkYg6gUouxljrGpDq9NEE2wdcyrkdJ4j7EvkG3MfEXXfBDo DfiqcjDDNcnKIIkt0Hac07S9M0hezyi7DpitjHoB584IgzBv38GwuLFtWH9L9RvwxL3qZZ5ju/dG LVrOjG4EuX7xZj3KUrmrikq0qbg9yqpKl7ulPOevYs9VVZw+nnW9fWx6i68EUtCukuLDtW4X6Pcu R4LIW+qhd/SLo/5wfgn076T+G3wCWQl/t+P6JWIAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMTIt MDZUMjM6MTM6MjQrMDA6MDCOqd1vAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTEyLTA2VDIzOjEz OjI0KzAwOjAw//Rl0wAAAABJRU5ErkJggg== X-Now-Playing: Moses Sumney's =?utf-8?Q?=5Fgr=C3=A6=5F=3A?= "Lucky Me" Date: Mon, 07 Dec 2020 00:16:54 +0100 In-Reply-To: <4642427E-C050-49C4-8883-91100ED6B638@gmail.com> (Perry Smith's message of "Sun, 6 Dec 2020 17:15:51 -0600") Message-ID: <87wnxule3d.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Perry Smith writes: > I no longer work as the initial bug report said. I’m not using AIX, RealVNC, > nor JollysFastVNC. The original report had a change which I don’t recall > not working but if I’m the only person [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16315 Cc: 16315@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Perry Smith writes: > I no longer work as the initial bug report said. I=E2=80=99m not using A= IX, RealVNC, > nor JollysFastVNC. The original report had a change which I don=E2=80=99= t recall > not working but if I=E2=80=99m the only person reporting the issue, I wou= ld just close > it and leave sleeping dogs lie. OK; doesn't sound like we'll make further progress here, so I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 06 18:17:16 2020 Received: (at control) by debbugs.gnu.org; 6 Dec 2020 23:17:16 +0000 Received: from localhost ([127.0.0.1]:51700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km3HI-0008NO-19 for submit@debbugs.gnu.org; Sun, 06 Dec 2020 18:17:16 -0500 Received: from quimby.gnus.org ([95.216.78.240]:58710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km3HG-0008NA-Lj for control@debbugs.gnu.org; Sun, 06 Dec 2020 18:17:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=86cdT7wcRIeaUaQN42nW5SAPDGPW29jijNdNTH9fEIk=; b=GjxcghxSCHvICpniSwpG3DdF9F 6uhkVl2seA9rJ+9aESvcJ3L+bJgM5GTj4pdSwWMSgApAtGiUwNea1RaqnCwYo9LnUJjlHeooR5vqD Q4D/cJjJFCQ2W8M6p/qoejT5swErnlxWR9pCgtDGG+r2QXmjX0uMky1usbzPPufNpmCo=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1km3H8-0001Uw-N8 for control@debbugs.gnu.org; Mon, 07 Dec 2020 00:17:08 +0100 Date: Mon, 07 Dec 2020 00:17:05 +0100 Message-Id: <87v9dele32.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16315 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 16315 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 16315 quit From unknown Wed Jun 18 23:04:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 04 Jan 2021 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator