From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: org-irc.el get IRC link port error Date: Wed, 28 Jun 2017 19:53:03 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045f581a6ac22e055303d580" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQBXN-0000rQ-2j for emacs-orgmode@gnu.org; Wed, 28 Jun 2017 07:53:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQBXL-0004w7-Rn for emacs-orgmode@gnu.org; Wed, 28 Jun 2017 07:53:37 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:34874) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQBXL-0004vH-Hy for emacs-orgmode@gnu.org; Wed, 28 Jun 2017 07:53:35 -0400 Received: by mail-wr0-x22c.google.com with SMTP id k67so172548551wrc.2 for ; Wed, 28 Jun 2017 04:53:35 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org-mode --f403045f581a6ac22e055303d580 Content-Type: text/plain; charset="UTF-8" Here is the steps to reproduce this issue: Emacs version: 26.0.50 (from source code repo master branch) Org-mode version: 9.0.8 (from source code repo master branch) Here is the example link: IRC: [[irc://irc.freenode.net/#nextcloud][#nextcloud]] on Freenode I use Edebug to debug on function `org-irc-visit-erc`: - [-] check out source code - [X] org-open-at-point(nil) - [X] org-irc-visit("//irc.freenode.net/#nextcloud") - [ ] org-irc-visit-erc((("irc.freenode.net") "#nextcloud")) - [ ] (port (or (string-to-number (cadr (pop link))) erc-default-port)) - [ ] (string-to-number (cadr (pop link))) - [ ] (cadr (pop link)) -> (cadr ("irc.freenode.net")) -> nil #+BEGIN_SRC emacs-lisp (setq temp-link '(("irc.freenode.net") ("#clojure"))) (pop temp-link) (cadr (pop temp-link)) #+END_SRC - [ ] (string-to-number nil) You can see what's wrong. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ --f403045f581a6ac22e055303d580 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Here is the steps to reproduce this issue:

Emacs version: 26.0.50 (from source cod= e repo master branch)
Org-mode version: 9.0.8 (from source= code repo master branch)

Here is th= e example link:
IRC: [[irc://= irc.freenode.net= /#nextcloud][#nextcloud]] on Freenode

I use Edebug to debug on function `org-irc-visit-erc`:
- [-] check out source code
=
=C2=A0= - [X] org-open-at-point(nil)
=C2=A0 - [X] org-irc-visit("//irc.freenode.net/#nextcloud&= quot;)
=C2=A0 - [ ] org-irc-visit-erc((("irc.freenode.net") "#nextcloud"))
=C2= =A0 =C2=A0 - [ ] (port (or (string-to-number (cadr (pop link))) erc-default= -port))
=C2=A0 =C2=A0 =C2=A0 - [ ] (string-to-number (cadr (pop link)= ))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 - [ ] (cadr (pop link)) -> (cadr (&= quot;irc.freenode.net")) ->= nil

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 #+BEGIN_SRC emacs-= lisp
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq temp-link '(("= irc.freenode.net") ("#clo= jure")))

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (pop temp= -link)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (cadr (pop temp-link))

=C2=A0 =C2= =A0 =C2=A0 =C2=A0 - [ ] (string-to-number nil)

You can see what's wrong.<= /div>

[stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this world!>=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeenode): stardiviner =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @numbchild
Key fingerpr= int =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardivine= r.github.io/
--f403045f581a6ac22e055303d580--