From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 19 11:29:40 2017 Received: (at submit) by debbugs.gnu.org; 19 Sep 2017 15:29:40 +0000 Received: from localhost ([127.0.0.1]:48411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duKSy-00056X-GD for submit@debbugs.gnu.org; Tue, 19 Sep 2017 11:29:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duIlr-0002Ce-8L for submit@debbugs.gnu.org; Tue, 19 Sep 2017 09:41:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duIli-0008Nr-1Q for submit@debbugs.gnu.org; Tue, 19 Sep 2017 09:40:58 -0400 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,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33516) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1duIlh-0008Ni-U8 for submit@debbugs.gnu.org; Tue, 19 Sep 2017 09:40:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duIlc-0003gD-3j for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 09:40:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duIlW-0008EG-AD for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 09:40:48 -0400 Received: from pv33p00im-asmtp002.me.com ([17.142.194.251]:17116) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duIlV-0008Ce-Mz for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 09:40:41 -0400 Received: from process-dkim-sign-daemon.pv33p00im-asmtp002.me.com by pv33p00im-asmtp002.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0OWJ000002TTOB00@pv33p00im-asmtp002.me.com> for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 13:40:28 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=04042017; t=1505828428; bh=EaVDLxHS/iWyielUIsiSlPVDSeEsHFG5TI7q5T/lx9A=; h=From:To:Subject:Date:Message-id; b=Ksqdkl3g1kRqg/8W6zcj8gTMuzOb3dZMqS5OSGHCJyYTCbvDAF8x/SZOg3rtfKbT9 jAbySgZKZyuB2Gmw1GppYWqQiLhgfV00eJxn6AMbycvUu7bpAMXQqIMYrF6Vng5+/0 rXyZccLPF3gedhZ8yUsdeJ/VTz1YnVjO7xazOXD6E1bpFlPz7G2kKqI2WF1goZ99L9 aRPM7n5XhMQTnmTGNIyHo/f0RjFQkkekl9WKxdh7sMaeoquqosdCouzQ/ZoUpxfIwH rR1Kq/oJBuGvk/PcajnU2HM6F34jcrE3AfwLqttGnWopk1hreXl4kCDilnnlneAs3x MqSdqZrBOvMCg== Received: from icloud.com ([127.0.0.1]) by pv33p00im-asmtp002.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) with ESMTPSA id <0OWJ006R04N76630@pv33p00im-asmtp002.me.com> for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 13:40:24 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-09-19_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1011 suspectscore=13 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1709190194 From: Yuya Minami To: bug-gnu-emacs@gnu.org Subject: [PATCH] fix url-current-object is undefined Date: Tue, 19 Sep 2017 22:39:53 +0900 Message-id: <20170919133953.37874-1-yuya373@me.com> X-Mailer: git-send-email 2.14.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 19 Sep 2017 11:29:38 -0400 Cc: Yuya Minami 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: -4.0 (----) `url-http-find-free-connection` using `url-current-object`, but this variable is nil at this point. --- lisp/url/url-http.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 9e8c58b1cd..078106fb8d 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el @@ -1249,9 +1249,10 @@ The return value of this function is the retrieval buffer." (nsm-noninteractive (or url-request-noninteractive (and (boundp 'url-http-noninteractive) url-http-noninteractive))) - (connection (url-http-find-free-connection (url-host url) - (url-port url) - gateway-method)) + (connection (let ((url-current-object url)) + (url-http-find-free-connection (url-host url) + (url-port url) + gateway-method))) (mime-accept-string url-mime-accept-string) (buffer (or retry-buffer (generate-new-buffer -- 2.14.1 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 25 11:29:56 2017 Received: (at 28515) by debbugs.gnu.org; 25 Sep 2017 15:29:56 +0000 Received: from localhost ([127.0.0.1]:58659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwVKW-0007hx-Al for submit@debbugs.gnu.org; Mon, 25 Sep 2017 11:29:56 -0400 Received: from st11p09im-asmtp001.me.com ([17.164.24.103]:35968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwNgw-0006A2-AM for 28515@debbugs.gnu.org; Mon, 25 Sep 2017 03:20:34 -0400 Received: from process-dkim-sign-daemon.st11p09im-asmtp001.me.com by st11p09im-asmtp001.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0OWT01500QY07200@st11p09im-asmtp001.me.com> for 28515@debbugs.gnu.org; Mon, 25 Sep 2017 07:20:28 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=04042017; t=1506324028; bh=qwBwAPt6Fy8BRRald2hGR8R3X6BuW3oIqpJ1vHWYcbI=; h=To:From:Subject:Date:Message-id:Content-type:MIME-version; b=rE4VZq1NJ20oXmZHKdNsojLmjFYl6w+DAGZI7jJuHFck7XeNF9PckDB/92L2d+hiS IcRIkwlw9j+oXw2L2WjJdsu+yXxKJdfzH+wwqsLxRIVcJII/kKjyqQYtKm1lj96clH KkHJ2qiQ+gg/gfW7lOJaiUZBCkKkrq8e7vcINNTl4sSszaxrQDAz4adawWK2LgofkV 746xA/qSyrf9i53ksoMrn9lXeDZOtQ1DoShpl48PJoeqsQC2+q9JZxTDspcK8/o4oD paf8MVpLWI4G1eRfPli6Sv+1UZELDsQbw4Q5ucRXZg0ga105btqLg1oo6Sjq6V2/0k 9XM/JjfNBX21Q== Received: from localhost (st11p09mm-webms003.me.com [17.164.24.67]) by st11p09im-asmtp001.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) with ESMTP id <0OWT00GIAR239V20@st11p09im-asmtp001.me.com> for 28515@debbugs.gnu.org; Mon, 25 Sep 2017 07:20:27 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-09-25_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1011 suspectscore=3 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1709250114 To: 28515@debbugs.gnu.org From: =?utf-8?B?5Y2XIOWEquS5nw==?= Subject: Date: Mon, 25 Sep 2017 07:20:27 +0000 (GMT) X-Mailer: iCloud MailClient17FProject126 MailServer17F61.26500-16A-2354-b8decc36e87a Message-id: <9d201cb1-5931-4c0a-90c7-34846d199827@me.com> Content-type: multipart/alternative; boundary=Apple-Webmail-42--96f32aa8-0524-4cab-91c8-30fb8d63da27 MIME-version: 1.0 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: additional information: `url-http` calls `url-http-find-free-connection` before `(setq url-current-object url)` and `url-http-find-free-connection` calls `url-open-stream` and `url-open-stream` referencing `url-current-object` before `url-http` updates it's value. when `url-open-stream` referencing `url-current-object`, it's value is `nil` or old `url-current-object`. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.0 HTML_MESSAGE BODY: HTML included in message 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [17.164.24.103 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [17.164.24.103 listed in list.dnswl.org] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: 28515 X-Mailman-Approved-At: Mon, 25 Sep 2017 11:29:54 -0400 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.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: additional information: `url-http` calls `url-http-find-free-connection` before `(setq url-current-object url)` and `url-http-find-free-connection` calls `url-open-stream` and `url-open-stream` referencing `url-current-object` before `url-http` updates it's value. when `url-open-stream` referencing `url-current-object`, it's value is `nil` or old `url-current-object`. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.0 HTML_MESSAGE BODY: HTML included in message 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [17.164.24.103 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [17.164.24.103 listed in list.dnswl.org] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 2.0 BLANK_SUBJECT Subject is present but empty --Apple-Webmail-42--96f32aa8-0524-4cab-91c8-30fb8d63da27 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8; format=flowed additional information:=0A`url-http` calls `url-http-find-free-connection`= before `(setq url-current-object url)` and `url-http-find-free-connection= ` calls `url-open-stream` and `url-open-stream` referencing `url-current-o= bject` before `url-http` updates it's value.=0Awhen `url-open-stream` refe= rencing `url-current-object`, it's value is `nil` or old `url-current-obje= ct`.=0A=0Aso, let `url-current-object` to `url` in `url-http` before calli= ng `url-http-find-free-connection`. --Apple-Webmail-42--96f32aa8-0524-4cab-91c8-30fb8d63da27 Content-Type: multipart/related; type="text/html"; boundary=Apple-Webmail-86--96f32aa8-0524-4cab-91c8-30fb8d63da27 --Apple-Webmail-86--96f32aa8-0524-4cab-91c8-30fb8d63da27 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8;
additional information:
`url-http` calls `url-http-find-fre= e-connection` before `(setq url-current-object url)` and `url-http-find-fr= ee-connection` calls `url-open-stream` and `url-open-stream` referencing `= url-current-object` before `url-http` updates it's value.
when `= url-open-stream` referencing `url-current-object`, it's value is `nil` or = old `url-current-object`.

so, let `url-current-ob= ject` to `url` in `url-http` before calling `url-http-find-free-connection= `.
--Apple-Webmail-86--96f32aa8-0524-4cab-91c8-30fb8d63da27-- --Apple-Webmail-42--96f32aa8-0524-4cab-91c8-30fb8d63da27-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 09:35:48 2017 Received: (at 28515-done) by debbugs.gnu.org; 30 Sep 2017 13:35:48 +0000 Received: from localhost ([127.0.0.1]:40163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyHvo-0003Qb-0x for submit@debbugs.gnu.org; Sat, 30 Sep 2017 09:35:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyHvm-0003QM-I7 for 28515-done@debbugs.gnu.org; Sat, 30 Sep 2017 09:35:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyHvd-000781-Dk for 28515-done@debbugs.gnu.org; Sat, 30 Sep 2017 09:35:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyHvd-00077j-9z; Sat, 30 Sep 2017 09:35:37 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3288 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dyHvc-00067n-IR; Sat, 30 Sep 2017 09:35:37 -0400 Date: Sat, 30 Sep 2017 16:35:30 +0300 Message-Id: <83efqo48d9.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?5Y2XIOWEquS5nw==?= In-reply-to: <9d201cb1-5931-4c0a-90c7-34846d199827@me.com> (message from =?utf-8?B?5Y2XIOWEqgnkuZ8=?= on Mon, 25 Sep 2017 07:20:27 +0000 (GMT)) Subject: Re: bug#28515: References: <20170919133953.37874-1-yuya373@me.com> <9d201cb1-5931-4c0a-90c7-34846d199827@me.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28515-done Cc: 28515-done@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: 南 優也 > Date: Mon, 25 Sep 2017 07:20:27 +0000 (GMT) > > additional information: > `url-http` calls `url-http-find-free-connection` before `(setq url-current-object url)` and `url-http-find-free-connection` calls `url-open-stream` and `url-open-stream` referencing `url-current-object` before `url-http` updates it's value. > when `url-open-stream` referencing `url-current-object`, it's value is `nil` or old `url-current-object`. > > so, let `url-current-object` to `url` in `url-http` before calling `url-http-find-free-connection`. Thanks, I fixed this on the emacs-26 branch. From unknown Mon Aug 18 02:31:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 29 Oct 2017 11: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