From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 19 22:33:49 2014 Received: (at submit) by debbugs.gnu.org; 20 Mar 2014 02:33:49 +0000 Received: from localhost ([127.0.0.1]:41709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQSnk-0002FO-Q8 for submit@debbugs.gnu.org; Wed, 19 Mar 2014 22:33:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36711) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQSni-0002FG-GN for submit@debbugs.gnu.org; Wed, 19 Mar 2014 22:33:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQSne-0000Pf-9s for submit@debbugs.gnu.org; Wed, 19 Mar 2014 22:33:46 -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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQSne-0000Pb-6t for submit@debbugs.gnu.org; Wed, 19 Mar 2014 22:33:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQSna-0007DG-Cb for bug-gnu-emacs@gnu.org; Wed, 19 Mar 2014 22:33:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQSnW-0000OK-He for bug-gnu-emacs@gnu.org; Wed, 19 Mar 2014 22:33:38 -0400 Received: from mail-qg0-x22a.google.com ([2607:f8b0:400d:c04::22a]:50140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQSnS-0000O4-6m; Wed, 19 Mar 2014 22:33:30 -0400 Received: by mail-qg0-f42.google.com with SMTP id q107so721941qgd.1 for ; Wed, 19 Mar 2014 19:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:return-receipt-to:reply-to:date:message-id :mime-version:content-type; bh=6o1V2XhTqTU/zPCTU9kUIY4UlyPAmUBiS3eWOA03GxQ=; b=r5dOPQYHmuR867ZFqn1ufrcXWzOz2zY/OfbKDJoNvy74W1RAvHyj76kZoJLVAIv6Z6 JygRej0jDBn5OB2D41Gu2zr+gHO7Hdnml4OVsKO0Hj2h/BNL4nCW5oablL5gMY3whXGU aOtswDZjH8bjdBln+CPqZWqUgi15as4TJ9slEyD6g1WE4/q1jt0Rzb3sjz1XcmeVAqaz Q+gClpEXxCARo088Us3UWqeEG3hzEFwsrE8NRz9bkO62yJrHMb8mRL3ofROB0WPZv+1i +/qvxRmMxkmiR8WKH+j9W3CXkYuBICAt8XG1qy2cYlc8GHdSX0cwIkiEkWGEanGadT/S /PxA== X-Received: by 10.224.66.8 with SMTP id l8mr47193021qai.16.1395282809059; Wed, 19 Mar 2014 19:33:29 -0700 (PDT) Received: from sds-MacBook-Pro.local (pool-108-41-150-137.nycmny.fios.verizon.net. [108.41.150.137]) by mx.google.com with ESMTPSA id m74sm762346qgd.14.2014.03.19.19.33.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Mar 2014 19:33:28 -0700 (PDT) From: Sam Steingold To: bug-gnu-emacs@gnu.org Subject: 24.3.50; feature request: rcirc-reconnect X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Wed, 19 Mar 2014 22:33:25 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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 Reply-To: sds@gnu.org 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 (----) It is not nice to have to do M-x rcirc whenever the connection dies. Would it be possible to incorporate something similar to http://www.emacswiki.org/emacs/rcircReconnect Please? In GNU Emacs 24.3.50.1 (x86_64-apple-darwin13.1.0, NS apple-appkit-1265.19) of 2014-03-18 on sds-MacBook-Pro.local Windowing system distributor `Apple', version 10.3.1265 Configured using: `configure --with-ns' -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265 http://www.childpsy.net/ https://www.facebook.com/TheIslamicThreat http://camera.org http://americancensorship.org http://ffii.org Yellow wine is called "white" because it is made out of green grapes. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 08 04:44:37 2014 Received: (at 17045) by debbugs.gnu.org; 8 Apr 2014 08:44:37 +0000 Received: from localhost ([127.0.0.1]:40270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXRe0-0007iW-VM for submit@debbugs.gnu.org; Tue, 08 Apr 2014 04:44:37 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:45159) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXRdw-0007iK-E8 for 17045@debbugs.gnu.org; Tue, 08 Apr 2014 04:44:33 -0400 Received: by mail-pd0-f174.google.com with SMTP id y13so708460pdi.19 for <17045@debbugs.gnu.org>; Tue, 08 Apr 2014 01:44:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=u2TWeVxKz8mpBf4gnb52mZuxude4I5+1adkyaV6IMro=; b=CxdW7628KgqYpiLYy8v7eUoyfYnJECcgjCwXcieFyEFMYGnGWU6YkEfdUQoOhY9UP8 zQkW+z62l37IL25v8EZ8YdpNYC73fDQG2Rx6XvQjkynnqmrLfbZBrjKvJHBusaWsFVHy sOwTFbkx8J7BMJJcw93MRVw7rbTMr0eDxlfLorPMBJ1Eo96CIkLBaDSoL5+uelWSpKL+ /Y0xA7IUBIWzR4wG7XKjq4YT2gHuBMXDcKN4K8YVteJQ0WcxXTqf5UFXod+8CCqEh6GW szgVgR+UINWDfLIDyjs6ohUpWInwqWHw9ed+WLAYyxDiTWzAN5Vr2YQzU7BteMlgjSWr NTdA== X-Received: by 10.68.240.5 with SMTP id vw5mr2860893pbc.113.1396946671394; Tue, 08 Apr 2014 01:44:31 -0700 (PDT) Received: from fortuna ([222.130.179.253]) by mx.google.com with ESMTPSA id el14sm6901255pac.31.2014.04.08.01.34.20 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 08 Apr 2014 01:44:30 -0700 (PDT) From: Leo Liu To: Sam Steingold Subject: Re: bug#17045: 24.3.50; feature request: rcirc-reconnect References: Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= Date: Tue, 08 Apr 2014 16:33:18 +0800 In-Reply-To: (Sam Steingold's message of "Wed, 19 Mar 2014 22:33:25 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (CentOS 6.5) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17045 Cc: 17045@debbugs.gnu.org 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: 0.0 (/) On 2014-03-20 10:33 +0800, Sam Steingold wrote: > It is not nice to have to do M-x rcirc whenever the connection dies. > Would it be possible to incorporate something similar to > http://www.emacswiki.org/emacs/rcircReconnect > Please? > > In GNU Emacs 24.3.50.1 (x86_64-apple-darwin13.1.0, NS apple-appkit-1265.19) > of 2014-03-18 on sds-MacBook-Pro.local > Windowing system distributor `Apple', version 10.3.1265 > Configured using: > `configure --with-ns' Hi Sam, Would something like this suit your needs? Thanks for testing. - Leo === modified file 'lisp/net/rcirc.el' --- lisp/net/rcirc.el 2014-04-08 03:32:37 +0000 +++ lisp/net/rcirc.el 2014-04-08 08:27:11 +0000 @@ -521,6 +521,7 @@ (defvar rcirc-user-authenticated nil) (defvar rcirc-user-disconnect nil) (defvar rcirc-connecting nil) +(defvar rcirc-connection-info nil) (defvar rcirc-process nil) ;;;###autoload @@ -549,22 +550,23 @@ (set-process-sentinel process 'rcirc-sentinel) (set-process-filter process 'rcirc-filter) - (set (make-local-variable 'rcirc-process) process) - (set (make-local-variable 'rcirc-server) server) - (set (make-local-variable 'rcirc-server-name) server) ; Update when we get 001 response. - (set (make-local-variable 'rcirc-buffer-alist) nil) - (set (make-local-variable 'rcirc-nick-table) - (make-hash-table :test 'equal)) - (set (make-local-variable 'rcirc-nick) nick) - (set (make-local-variable 'rcirc-process-output) nil) - (set (make-local-variable 'rcirc-startup-channels) startup-channels) - (set (make-local-variable 'rcirc-last-server-message-time) - (current-time)) - - (set (make-local-variable 'rcirc-timeout-timer) nil) - (set (make-local-variable 'rcirc-user-disconnect) nil) - (set (make-local-variable 'rcirc-user-authenticated) nil) - (set (make-local-variable 'rcirc-connecting) t) + (setq-local rcirc-connection-info + (list server port nick user-name full-name startup-channels + password encryption)) + (setq-local rcirc-process process) + (setq-local rcirc-server server) + (setq-local rcirc-server-name server) ; Update when we get 001 response. + (setq-local rcirc-buffer-alist nil) + (setq-local rcirc-nick-table (make-hash-table :test 'equal)) + (setq-local rcirc-nick nick) + (setq-local rcirc-process-output nil) + (setq-local rcirc-startup-channels startup-channels) + (setq-local rcirc-last-server-message-time (current-time)) + + (setq-local rcirc-timeout-timer nil) + (setq-local rcirc-user-disconnect nil) + (setq-local rcirc-user-authenticated nil) + (setq-local rcirc-connecting t) (add-hook 'auto-save-hook 'rcirc-log-write) @@ -782,11 +784,11 @@ (defun rcirc-buffer-process (&optional buffer) "Return the process associated with channel BUFFER. With no argument or nil as argument, use the current buffer." - (or (get-buffer-process (if buffer - (with-current-buffer buffer - rcirc-server-buffer) - rcirc-server-buffer)) - rcirc-process)) + (let ((buffer (or buffer (if (buffer-live-p rcirc-server-buffer) + rcirc-server-buffer + (error "Server buffer deleted"))))) + (or (with-current-buffer buffer rcirc-process) + rcirc-process))) (defun rcirc-server-name (process) "Return PROCESS server name, given by the 001 response." @@ -2210,6 +2212,17 @@ reason rcirc-id-string)))) +(defun-rcirc-command reconnect (_) + "Reconnect to current server." + (interactive "i") + (with-rcirc-server-buffer + (unless (or rcirc-connecting (process-live-p process)) + (let ((conn-info (copy-sequence rcirc-connection-info))) + (setf (nth 5 conn-info) + (cl-remove-if-not #'rcirc-channel-p + (mapcar #'car rcirc-buffer-alist))) + (apply #'rcirc-connect conn-info))))) + (defun-rcirc-command nick (nick) "Change nick to NICK." (interactive "i") From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 08 05:33:36 2014 Received: (at 17045) by debbugs.gnu.org; 8 Apr 2014 09:33:36 +0000 Received: from localhost ([127.0.0.1]:40292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXSPQ-0000aU-68 for submit@debbugs.gnu.org; Tue, 08 Apr 2014 05:33:36 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:42172) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXSPN-0000aL-6C for 17045@debbugs.gnu.org; Tue, 08 Apr 2014 05:33:34 -0400 Received: by mail-pa0-f46.google.com with SMTP id kx10so786605pab.33 for <17045@debbugs.gnu.org>; Tue, 08 Apr 2014 02:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=UhTJSrhrLotYbOTi4lvBjGmkrpPwjErZhZ4SM896EZY=; b=abSwkp/6H91VswP2skGl36iRPFPogOlp6MUCA0Gywgf6+F51LPkskRFLo7DWiSFhcA yfMziZ4Rwg9ZL8W1fv0tP8sxWd22wsggssK/AdeKQE4K/oxTjUTLB6et6ePI0R8Xqmt5 ZGb0sJH0CBM8vJxk54ZeYBnPHo4ceLYKpSWTq9MmkpDoo1g8Cne5SAQ7GaohChJe5FCA IjUybK03haepmFGU2ntBhn0e3reoUtoPJ6LGlM1+n3aG9HgWv8KU5wNw2svSra/n1JVz QGfHl8f2lrePfMSuRas5w0b1rBF62otLixNn1TamtpIp9/N3YlksR6Puul7OLlFzIx0r TEYg== X-Received: by 10.68.178.131 with SMTP id cy3mr3238086pbc.146.1396949612152; Tue, 08 Apr 2014 02:33:32 -0700 (PDT) Received: from localhost ([2001:2f8:200:1:e206:e6ff:fecb:5a]) by mx.google.com with ESMTPSA id yx3sm3345126pbb.6.2014.04.08.02.33.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 08 Apr 2014 02:33:30 -0700 (PDT) From: Daimrod To: Leo Liu Subject: Re: bug#17045: 24.3.50; feature request: rcirc-reconnect References: Date: Tue, 08 Apr 2014 18:33:24 +0900 In-Reply-To: (Leo Liu's message of "Tue, 08 Apr 2014 16:33:18 +0800") Message-ID: <87lhvgw4gr.fsf@tanger.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17045 Cc: 17045@debbugs.gnu.org, Sam Steingold 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: -0.7 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Leo Liu writes: > On 2014-03-20 10:33 +0800, Sam Steingold wrote: >> It is not nice to have to do M-x rcirc whenever the connection dies. >> Would it be possible to incorporate something similar to >> http://www.emacswiki.org/emacs/rcircReconnect >> Please? >> >> In GNU Emacs 24.3.50.1 (x86_64-apple-darwin13.1.0, NS apple-appkit-1265.= 19) >> of 2014-03-18 on sds-MacBook-Pro.local >> Windowing system distributor `Apple', version 10.3.1265 >> Configured using: >> `configure --with-ns' > > Hi Sam, > > Would something like this suit your needs? Thanks for testing. - Leo It would be nice if a hook was run with the old and the new process as arguments. For example, shoes-off[1] would need it to update the process plist and its inner structures. 1: https://github.com/nicferrier/shoes-off =2D-=20 Daimrod/Greg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTQ8JkAAoJEBNzVHcrZRiUWTIP+wd0XklZNuwVCI0j+i6W5kIm 6hjQ8sYCwm36+Pk54S8XAiPvog/3+WJBcwcMs7VdsgVwcPO8n7qcihhDwClh7QHl UrHvfn8cCQ5+dTpTJCkZfqe6nAgvgYyl83H7mQWcbg8G58GQTyuDSTliB40LsJYN nmDjoPPanQuqa6e1Xd/UA0u4V2rVDe4ZUvsnOpWOTB2DIuXLcCOcXkINlCe32kcQ Jq8V10GgBsLXqpm5L7OoWWwPVzemXl0uOyWMRAu79N98rOmUDdhET9X/sAcMd0vo KhhnNm5HiDA8NK9GZk8hD+y5vtEUqVnrMtnrY3zJ1s2sjSYi0bH9mTrvxoN2cA1/ h3/72J9bJf22+rdx6g2Cb3Uiy8WOW+fXEgxUG3ndo++3BQiykosdjqy88CRzJ81K Ic8nLmcEsUG9KKJVUA/JXCKAiH2+UHLWysM6X2fWF2Pu2A+5uu0UQMbfWdgHu2S6 Oo3DHDD9n7zLhZd/l6zTC0VNxjpElpeFKEV0jFnQOEBsld+QPAxy1wLxSJP2IIcm WOxd2j7NFjIVZM7+AuIDESfSOoDaX+DQn51LV1q0OLlPoCstkm6zD6mI2eRqBIZJ QvdhvEBuLBbDO7afRobY+nFK9TwjGv9jCmKYW6AT1lo7qZIabYr6fKNbDOLLmGg8 /a1ST5/Vc5bH1y9+RbT2 =MboW -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 08 07:53:39 2014 Received: (at 17045) by debbugs.gnu.org; 8 Apr 2014 11:53:39 +0000 Received: from localhost ([127.0.0.1]:40362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXUaw-0005kv-LH for submit@debbugs.gnu.org; Tue, 08 Apr 2014 07:53:39 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:44888) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXUam-0005kd-TH for 17045@debbugs.gnu.org; Tue, 08 Apr 2014 07:53:36 -0400 Received: by mail-pa0-f44.google.com with SMTP id bj1so928937pad.17 for <17045@debbugs.gnu.org>; Tue, 08 Apr 2014 04:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=8wtQioW+1DM4ZmrhJtA63+NC5elFIPPQO8saMB+xFoE=; b=PbyDufks61/tS7QrNKiQYSCXa4Fz3NUj+3U7yl3CPsl01V0251B3biktGVsK9kuFhZ DMPt1UPaPr6GSU7mU/dDQNLvgpVecaVENnNawFKfG2YWieYrfU7Bbk+0S3c8j9UsJcVv v+lmGJVdVN9isQTanYx4AVQqkKlPpYGoHz2qKlShfKjoJxZLV8anBrZs7vBUbqrhhQ/E WX2CViwnriWe9avjv4KSukzUyhok0GYwZpKi2aVdBCmqm4UbSEuZ4h45+MzQ/PgfHb5k nuNpjfSdsGVRLMqYYVutgkdiVZreD/GkQ7C7uuhGpsEa838gkUOgprpk+xK0floZMJZt HYlQ== X-Received: by 10.69.2.2 with SMTP id bk2mr3924357pbd.75.1396958007713; Tue, 08 Apr 2014 04:53:27 -0700 (PDT) Received: from fortuna ([222.130.179.253]) by mx.google.com with ESMTPSA id iv2sm4163906pbc.19.2014.04.08.04.52.53 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 08 Apr 2014 04:53:26 -0700 (PDT) From: Leo Liu To: Daimrod Subject: Re: bug#17045: 24.3.50; feature request: rcirc-reconnect References: <87lhvgw4gr.fsf@tanger.home> Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= Date: Tue, 08 Apr 2014 19:52:40 +0800 In-Reply-To: <87lhvgw4gr.fsf@tanger.home> (daimrod@gmail.com's message of "Tue, 08 Apr 2014 18:33:24 +0900") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (CentOS 6.5) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17045 Cc: 17045@debbugs.gnu.org, Sam Steingold 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: -0.7 (/) On 2014-04-08 17:33 +0800, Daimrod wrote: > It would be nice if a hook was run with the old and the new process as > arguments. > > For example, shoes-off[1] would need it to update the process plist and > its inner structures. > > 1: https://github.com/nicferrier/shoes-off Please give more details about what it does and the requirements to support it. I probably won't have time to try 3rd party code. Thanks, Leo From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 08 10:03:56 2014 Received: (at 17045) by debbugs.gnu.org; 8 Apr 2014 14:03:56 +0000 Received: from localhost ([127.0.0.1]:40808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXWd2-0000rC-0T for submit@debbugs.gnu.org; Tue, 08 Apr 2014 10:03:56 -0400 Received: from mail-pb0-f53.google.com ([209.85.160.53]:46057) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXWcy-0000qz-4Z for 17045@debbugs.gnu.org; Tue, 08 Apr 2014 10:03:52 -0400 Received: by mail-pb0-f53.google.com with SMTP id rp16so1064779pbb.40 for <17045@debbugs.gnu.org>; Tue, 08 Apr 2014 07:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=afQ1YhmYFVtcKtGPrulZ34ZV1wn5tp3jnqfsgzZa+xg=; b=N1vaOWoyNHhpKk92tRzyK+oT8pNPHUYyXrG4TShqVM2rsZzfYkB2y64EtIhk79zoMZ Kvx2CozZOywb3KksNkFCLhXIOOCIALPMyY/Kdc/hItztybDAA1J05IeU6SQVIps/yCWf o12Z9JpCYXs77+Ey65jNs6ONBNljip+h1tGmIVTjdcKkYoccI0s3yGWGXLzPW8BdYbpA GJp9rXdhukaDuMWG2nvm0kQzWvaF7iEKKHK0PoJfPzRTH9hnMqoPg/i13Bex8JUeeFl4 M67plk0+hUhFRNL+sGdOAkV+wfxN0aV1FPNfMSmpPdk6AWgxkOMjRUqVkFQ/isfxR2vn 9YNg== X-Received: by 10.68.113.194 with SMTP id ja2mr4980003pbb.30.1396965830990; Tue, 08 Apr 2014 07:03:50 -0700 (PDT) Received: from localhost (i118-21-141-133.s30.a048.ap.plala.or.jp. [118.21.141.133]) by mx.google.com with ESMTPSA id vx10sm10849053pac.17.2014.04.08.07.03.48 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 08 Apr 2014 07:03:49 -0700 (PDT) From: Daimrod To: Leo Liu Subject: Re: bug#17045: 24.3.50; feature request: rcirc-reconnect References: <87lhvgw4gr.fsf@tanger.home> Date: Tue, 08 Apr 2014 23:03:45 +0900 In-Reply-To: (Leo Liu's message of "Tue, 08 Apr 2014 19:52:40 +0800") Message-ID: <877g6zx6im.fsf@tanger.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17045 Cc: 17045@debbugs.gnu.org, Sam Steingold 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: -0.7 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Leo Liu writes: > On 2014-04-08 17:33 +0800, Daimrod wrote: >> It would be nice if a hook was run with the old and the new process as >> arguments. >> >> For example, shoes-off[1] would need it to update the process plist and >> its inner structures. >> >> 1: https://github.com/nicferrier/shoes-off > > Please give more details about what it does and the requirements to > support it. I probably won't have time to try 3rd party code. Shoes-off is an IRC bouncer built on top of RCIRC. So basically, it uses RCIRC to connect to IRC servers and listen on a specific port for clients. When a clients connect, it is as if it was connected to the IRC servers. To do that, shoes-off "binds" RCIRC processes to a client connection and it uses process-plist to store this kind of information. However, when a RCIRC connection is restarted, AFAIK it just means that a new connection is established. So, from shoes-off's POV, the previous RCIRC process is dead, hence it can not continue to forward the messages between the RCIRC connection and the client. That's why I would like a way to be notified when a RCIRC process is replaced so that shoes-off can update the connections information. But to do that, I would probably need more that just a notification, I would need the old and the new process. Best, =2D-=20 Daimrod/Greg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTRAHBAAoJEBNzVHcrZRiUXgwP/iXx+jcGpa0V2wsfHRDaCeKE AfCVNHP++IZCMR1eKBrabC2pSW02iN+OfXb8Rj1ILJlDb0C0hOvxMTqrCtwMAXgt QRgrX6VVZB9tQOX2zHbYajP2Udehv2ej5tAMqlF5aZpi2I4Ef0yZNq+h5TXXRgtA q70IzQu0cGy0Z+GwGdE8VVg0Y44nx/JzXz4LqWDo2ArMTgFXPR4p7D4neXiW9RZG Fpyt6kVcsRPh78jEBMUjuhNC5l7O7L/K9sYzvYm7rnLmsjdNlaWR3/J4C0wyfbOy 6URO1abC53bW9j3IstjT6ckYrB3pQNG+0lt3HUU68TK+A+afcYjeaEDpRIm0MMLm HqX1CNKDdirEBjajEboOol6sGsj1PVeb4TY3xPOoJEbK0jivAHqwSMFPEt1/MQfe JJaNXPEgNhTWnSD3zwM3ViXEuytN6bzNeU/Y5TRpSwPjgRbGg0Q5sYUyystvkeb/ 4OdBg5eV+8H+kID/CvX+oFpTpmqM/vQK3q21JvqldvfmJj7HWXR0hkSgQvmoZ9iO e51EP1iAEr1Sdt/5F9VycoeiFXurDetGZVLBfPil8yucLValaULUk/XVjo3zX2hG c/OBjfnOTCIuC9VsI3vORsWBzO/gamdikq8ct9fdoHKc+trBGrM9DcYn3Uznould U/mD1tua/AQb6OyC72pr =TLPH -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 09 17:17:32 2014 Received: (at 17045) by debbugs.gnu.org; 9 Apr 2014 21:17:32 +0000 Received: from localhost ([127.0.0.1]:39360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXzsB-0007Tf-9y for submit@debbugs.gnu.org; Wed, 09 Apr 2014 17:17:32 -0400 Received: from mail-qg0-f48.google.com ([209.85.192.48]:54817) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXzs8-0007TO-97 for 17045@debbugs.gnu.org; Wed, 09 Apr 2014 17:17:28 -0400 Received: by mail-qg0-f48.google.com with SMTP id i50so2991405qgf.35 for <17045@debbugs.gnu.org>; Wed, 09 Apr 2014 14:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent :return-receipt-to:reply-to:date:message-id:mime-version :content-type; bh=t+ayedKAzJr4CBq3tmNma/qzQEKqNobGtHECyBSCAGs=; b=eNNfEA5Of9aV/bGZ7jwtb5NWv60ZRBBJNUg5rlnGo+e70pGPY/L26HUbpO/rVUCAD2 ikkLnKE7MXwxVQI+E6p8dumEDVROg/34sfZ0tHnrOxbUtID2y71Q2xLMRbpugv5GJZ6O iHlhZWhAlnibjO9KiDPVhXQGnJ+ZyL5HzicIxgGte/RCXVb6Jiy2oH698R/srnXDiZMG GtvFAAohD3qxSYiJqAE1M3ne10ql5dtJta5Mx6DQhlLsi8bNDtHO/XeFESzW8agTTAlN WjNix4O+gjTBnNdbtbqVFQPZQrz+buKWig1m0fzv6t0e3LHyLIM1LIxr01evWx2UDJ5d gLmw== X-Received: by 10.140.33.244 with SMTP id j107mr14936232qgj.81.1397078242631; Wed, 09 Apr 2014 14:17:22 -0700 (PDT) Received: from sds-MacBook-Pro.local (static-72-80-117-250.nycmny.fios.verizon.net. [72.80.117.250]) by mx.google.com with ESMTPSA id u15sm2510930qge.2.2014.04.09.14.17.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Apr 2014 14:17:21 -0700 (PDT) From: Sam Steingold To: Daimrod Subject: Re: bug#17045: 24.3.50; feature request: rcirc-reconnect In-Reply-To: <877g6zx6im.fsf@tanger.home> (daimrod@gmail.com's message of "Tue, 08 Apr 2014 23:03:45 +0900") References: <87lhvgw4gr.fsf@tanger.home> <877g6zx6im.fsf@tanger.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Wed, 09 Apr 2014 17:17:19 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17045 Cc: 17045@debbugs.gnu.org, Leo Liu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: sds@gnu.org 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: 0.0 (/) > * Daimrod [2014-04-08 23:03:45 +0900]: > > That's why I would like a way to be notified when a RCIRC process is > replaced so that shoes-off can update the connections information. would rcirc-reconnect-hook be enough? > But to do that, I would probably need more that just a notification, I > would need the old and the new process. I am afraid the old process is dead and discarded by this time. -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265 http://www.childpsy.net/ http://palestinefacts.org http://islamexposedonline.com http://truepeace.org http://dhimmi.com Murphy's Law was probably named after the wrong guy. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 09 17:22:29 2014 Received: (at 17045) by debbugs.gnu.org; 9 Apr 2014 21:22:30 +0000 Received: from localhost ([127.0.0.1]:39369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXzwz-0007ck-Es for submit@debbugs.gnu.org; Wed, 09 Apr 2014 17:22:29 -0400 Received: from mail-qg0-f46.google.com ([209.85.192.46]:62413) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WXzwx-0007cX-Kq for 17045@debbugs.gnu.org; Wed, 09 Apr 2014 17:22:28 -0400 Received: by mail-qg0-f46.google.com with SMTP id 63so2812717qgz.5 for <17045@debbugs.gnu.org>; Wed, 09 Apr 2014 14:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent :return-receipt-to:reply-to:date:message-id:mime-version :content-type; bh=iJEXN4E+1D8yV89gmGa+ZnGjZcf9/sJ5/Wm+5cAuFgA=; b=d+f3kdIeBUB3XveuSBPOjDlLGoJlCb7hFeP5cTjX77x4Mj3KwHEZjbzazgyARjS6Iq YopXQHGAqhPGUBHAUbWhTJKCQ8U20pM8OvVxhAJ0TaSccQIRc37q/+/mbE2Hx9YWnvpO oNmV+0b+FTcVORITkSGKP/+gqGShYQhaMop6PJKu6w7LJORu03wbBTwnfR1mb6GMB8cT AvXR5bdHFOOSis+XFTF342lfJkRBSAow4JT2eZySLvSi1mxZoBdiXUnuIaBwUgNx0wTE EqjzV33nKhE99dkQffJWvaL7k27vdPjayOPo0Lv4rLUlt4Z2Mc75QianYk/KLTwCjrI0 pNVQ== X-Received: by 10.224.72.69 with SMTP id l5mr16080656qaj.1.1397078541907; Wed, 09 Apr 2014 14:22:21 -0700 (PDT) Received: from sds-MacBook-Pro.local (static-72-80-117-250.nycmny.fios.verizon.net. [72.80.117.250]) by mx.google.com with ESMTPSA id a17sm3792626qac.35.2014.04.09.14.22.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Apr 2014 14:22:20 -0700 (PDT) From: Sam Steingold To: Leo Liu Subject: Re: bug#17045: 24.3.50; feature request: rcirc-reconnect In-Reply-To: (Leo Liu's message of "Tue, 08 Apr 2014 16:33:18 +0800") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Wed, 09 Apr 2014 17:22:18 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17045 Cc: 17045@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: sds@gnu.org 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: 0.0 (/) Hi Leo, > * Leo Liu [2014-04-08 16:33:18 +0800]: > > Would something like this suit your needs? Thanks for testing. - Leo looks good, except that you might want to avoid mixing functional changes with cosmetic ones (setq-local & rcirc-buffer-process). thanks! -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265 http://www.childpsy.net/ http://honestreporting.com http://palestinefacts.org http://memri.org https://www.facebook.com/TheIslamicThreat http://truepeace.org If Microsoft wrote poetry, it would have patented dactyl and anapest. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 09 20:48:11 2014 Received: (at 17045) by debbugs.gnu.org; 10 Apr 2014 00:48:11 +0000 Received: from localhost ([127.0.0.1]:39443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WY3A2-0004p4-9u for submit@debbugs.gnu.org; Wed, 09 Apr 2014 20:48:10 -0400 Received: from mail-pb0-f43.google.com ([209.85.160.43]:64575) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WY39z-0004oT-0g for 17045@debbugs.gnu.org; Wed, 09 Apr 2014 20:48:07 -0400 Received: by mail-pb0-f43.google.com with SMTP id um1so3223597pbc.2 for <17045@debbugs.gnu.org>; Wed, 09 Apr 2014 17:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=XUTlT3YrFrAKUxbAMkZcOdw2pZFVoSCAbN5ymsExC4o=; b=xRNwPYCg0L7ED+xAFbGREd1cjiHAuyzngf5/mo+FfFTHHZu6s+lmy29Pq277Qi6f+F trY7GtGcuhjn4PXLXXNoHlD3QN37aAC2LjxVSm6wj0pTGrJMfgbdval2DeqF1aUPn46m mATkYUjr1Q6qezwyHbq3QIuFOIFBk0dwOXgz2D4gJsBOsGc2T0YeB+voNg3/ld07VM5L BGTlMkidhUwZKN6O3A4TErRWEhdroFGm0PlhTxV+VPRet7O1gKwiNkvo7R7qWLA/k1Jw 1Qw6s8n2+PyY/alicLptYGIKNj+qhKJOfqsPrJ5sXH3j+a+JHoS58bDsA1/4mxWTT/cA tvNA== X-Received: by 10.66.190.4 with SMTP id gm4mr15781396pac.116.1397090880834; Wed, 09 Apr 2014 17:48:00 -0700 (PDT) Received: from localhost (i118-21-141-133.s30.a048.ap.plala.or.jp. [118.21.141.133]) by mx.google.com with ESMTPSA id te2sm12022009pac.25.2014.04.09.17.47.58 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 09 Apr 2014 17:47:59 -0700 (PDT) From: Daimrod To: Sam Steingold Subject: Re: bug#17045: 24.3.50; feature request: rcirc-reconnect References: <87lhvgw4gr.fsf@tanger.home> <877g6zx6im.fsf@tanger.home> Date: Thu, 10 Apr 2014 09:47:55 +0900 In-Reply-To: (Sam Steingold's message of "Wed, 09 Apr 2014 17:17:19 -0400") Message-ID: <87bnwaui10.fsf@tanger.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17045 Cc: 17045@debbugs.gnu.org, Leo Liu 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: -0.7 (/) Sam Steingold writes: >> * Daimrod [2014-04-08 23:03:45 +0900]: >> >> That's why I would like a way to be notified when a RCIRC process is >> replaced so that shoes-off can update the connections information. > > would rcirc-reconnect-hook be enough? > >> But to do that, I would probably need more that just a notification, I >> would need the old and the new process. > > I am afraid the old process is dead and discarded by this time. Hmm, does the new process use the same buffer or does it create a new one? I'm trying to find a way to identify which RCIRC process is replaced. Simply checking which connection is dead is probably not enough in case more than one conections dropped at the same time. -- Daimrod/Greg From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 10 00:42:43 2014 Received: (at 17045) by debbugs.gnu.org; 10 Apr 2014 04:42:43 +0000 Received: from localhost ([127.0.0.1]:39490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WY6p0-0003dw-Rt for submit@debbugs.gnu.org; Thu, 10 Apr 2014 00:42:43 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:45112) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WY6oy-0003dc-Ss for 17045@debbugs.gnu.org; Thu, 10 Apr 2014 00:42:41 -0400 Received: by mail-pd0-f174.google.com with SMTP id y13so3373998pdi.33 for <17045@debbugs.gnu.org>; Wed, 09 Apr 2014 21:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:face:date :message-id:mime-version:content-type; bh=fYqzU/94lat/aXEI1z2i2pVlcG4gHfF9KlN59cgTLu8=; b=Yf1N1JMT3VmwPEG5GRIJbsppi9Ujg33uEu/QxndDjlr3LvpMiWbS0hxe+rM9WE0QpG Mgf1EFpBiz0dqFVx5aJAKMCUUsWIaU3IViNXO60bWPjGdog18yHX8u1oU5TKo9Z1KKrZ 3HzavXY2kJ/TOWSR0ZlzO2f9Uum/TRBuPCHKcs9vEVkOnLY0diZDyf7jZSh90omDOOnF oVFRJSEczwK8MK51WNtzItcBxmrgHA71aFKukTxJ/IED3For/kw/o6zHD0hZuiqUoJCC 5QimZkDxxCuARF0P9qY4rZOC+tv6c1CYu1nz3gJbfae8Ejr9FbUQqVp/dhZrmox2hFQ3 JxGQ== X-Received: by 10.66.136.17 with SMTP id pw17mr17066458pab.86.1397104954885; Wed, 09 Apr 2014 21:42:34 -0700 (PDT) Received: from fortuna ([222.130.179.131]) by mx.google.com with ESMTPSA id pv4sm6081988pbb.55.2014.04.09.21.42.30 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 09 Apr 2014 21:42:33 -0700 (PDT) From: Leo Liu To: Daimrod Subject: Re: bug#17045: 24.3.50; feature request: rcirc-reconnect In-Reply-To: <87bnwaui10.fsf@tanger.home> (daimrod@gmail.com's message of "Thu, 10 Apr 2014 09:47:55 +0900") References: <87lhvgw4gr.fsf@tanger.home> <877g6zx6im.fsf@tanger.home> <87bnwaui10.fsf@tanger.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (CentOS 6.5) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+ vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMO DhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QH w/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnY DQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V 7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ7 0hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloe m/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= Date: Thu, 10 Apr 2014 12:41:52 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17045 Cc: 17045@debbugs.gnu.org, Sam Steingold 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: 0.0 (/) On 2014-04-10 08:47 +0800, Daimrod wrote: > Hmm, does the new process use the same buffer or does it create a new > one? > > I'm trying to find a way to identify which RCIRC process is replaced. > Simply checking which connection is dead is probably not enough in case > more than one conections dropped at the same time. When users kick off /reconnect it will find the connection info in the server buffer and fire off rcirc-connect which will reuse the buffer if I am not mistaken. Leo From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 10 01:07:56 2014 Received: (at 17045) by debbugs.gnu.org; 10 Apr 2014 05:07:56 +0000 Received: from localhost ([127.0.0.1]:39496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WY7DQ-0004S8-8Z for submit@debbugs.gnu.org; Thu, 10 Apr 2014 01:07:56 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:36764) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WY7DN-0004Ro-Fk for 17045@debbugs.gnu.org; Thu, 10 Apr 2014 01:07:54 -0400 Received: by mail-pd0-f180.google.com with SMTP id v10so3368502pde.25 for <17045@debbugs.gnu.org>; Wed, 09 Apr 2014 22:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=8pemRAVokrrJi8Px9H0zSTi/65sHTjHT4o4E3mUD7E8=; b=ODwGQKU4dpOh/gCus4PQ7LgvaA246sEuDJWTBA15aUAs7LVPuGFYxoGVdsFyp8G7tV YcryMjZlF7VzniHyWWQXiMmQ2uAVk2/3QpGErw5YjJ274CMf42MvtUbnoRL8JN9FFwRz EjExKkAcY/DR4piq2XNyBvW63wOSRVNDPxQCKmhQRKKm3D7923B8dfVoJQd4s9X7fzSh +p92M3UIBtPavmnX+eTtSSYDOE23QHJLFk/yi4HbzY3vvgKheCsHbYy+oqNO+RevMhwK 7+DiMMCcaycOG9tnsln7fsHAOx5/fnQB/gUf0YTfQkvLILf/2TCrCkXWVhj1ebi4wAgK nCmg== X-Received: by 10.66.119.136 with SMTP id ku8mr17027395pab.121.1397106467483; Wed, 09 Apr 2014 22:07:47 -0700 (PDT) Received: from localhost (i118-21-141-133.s30.a048.ap.plala.or.jp. [118.21.141.133]) by mx.google.com with ESMTPSA id st4sm14611143pab.34.2014.04.09.22.07.44 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 09 Apr 2014 22:07:46 -0700 (PDT) From: Daimrod To: Leo Liu Subject: Re: bug#17045: 24.3.50; feature request: rcirc-reconnect References: <87lhvgw4gr.fsf@tanger.home> <877g6zx6im.fsf@tanger.home> <87bnwaui10.fsf@tanger.home> Date: Thu, 10 Apr 2014 14:07:32 +0900 In-Reply-To: (Leo Liu's message of "Thu, 10 Apr 2014 12:41:52 +0800") Message-ID: <877g6xvkkr.fsf@tanger.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17045 Cc: 17045@debbugs.gnu.org, Sam Steingold 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: 0.0 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Leo Liu writes: > On 2014-04-10 08:47 +0800, Daimrod wrote: >> Hmm, does the new process use the same buffer or does it create a new >> one? >> >> I'm trying to find a way to identify which RCIRC process is replaced. >> Simply checking which connection is dead is probably not enough in case >> more than one conections dropped at the same time. > > When users kick off /reconnect it will find the connection info in the > server buffer and fire off rcirc-connect which will reuse the buffer if > I am not mistaken. Ok, then it's doable. Best, =2D-=20 Daimrod/Greg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTRiceAAoJEBNzVHcrZRiU15wQAII01ikeL868ba/MJfGxaUqf dLfH793KAqajWCVUyJ6GoEPLalnj+SLI7apv36K0DJl6bNNChbjZzDsaA7k6AGN6 2jE/jIpKxE+Uwoj/djtQrjdX8Yu/u1/udx5om5Hw6kh3jsZrGo8O54KEoIxVx0k9 jRYAT5/30hw9XrRjHjgi3bxNxxOXRyHaRuY3SNl9BrFI/kDXlSvQKQC8LFrWGEst S20ZoTJ6kv3/vTApMf60v77WMXcQiBYE3k7flbm0TX+xhkO5icL6Oh4DQZSYAeG6 CP/XlRWFzP7PgsclYi2juTwOLnqKZZ99IWt47oKXzZ0Z2mwCNWBTjn/UQlgBZV8f QPep1SjolKmQQ2nWAj2PWJudL3eSbLsVSH5hbn5L0oJ7J3WAG3ZlMDiN3uY7LSiv TVcdxZ8MCcsRRFW4dYcfit0sg5K/z0ChzANgg8faXKeQfYVZ+i8vS7HpBVBLEUww 9ZPrn3WBZjeSLzymGXeyfzmM8SlZ/7saWUvCJvFfaQ59thqG+k95Ix39eqZjTX2H qLPr4j5FmxooFz0GyFkg7SfD+stxVC8sbVaIZcJxgzFVetAZfPbAtRyXfnie2Epo qn5UXBf6k/rzwlR2RQPDiToHQgn+jzu66jpP7VDxQPEQkxJUCDJkkzJw0KFB7y1y /Qut9/YDlIYBlu6/L5tO =6zxJ -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 07 13:57:22 2014 Received: (at 17045) by debbugs.gnu.org; 7 May 2014 17:57:22 +0000 Received: from localhost ([127.0.0.1]:54760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wi65p-00038u-54 for submit@debbugs.gnu.org; Wed, 07 May 2014 13:57:21 -0400 Received: from mail-qg0-f49.google.com ([209.85.192.49]:42900) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wi65n-00038c-4z for 17045@debbugs.gnu.org; Wed, 07 May 2014 13:57:19 -0400 Received: by mail-qg0-f49.google.com with SMTP id a108so1463753qge.36 for <17045@debbugs.gnu.org>; Wed, 07 May 2014 10:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent :return-receipt-to:reply-to:date:message-id:mime-version :content-type; bh=Ral7u3DSlkVB566JCBIsThi+tmjNCtVRIlLgbR9+3Ag=; b=MoZYej3QDI61LYyJdv99xLu6B7YeeCZyZ+W/ecow3OROwiI5Xm+g7ltNDD0sdImlLJ A8YO34t29QswtI27JBk9dVjg1CRTo3ZPYTwI0AZJZtx9X4Lry7o3Woi+Xtr7E0MaWDe3 gRVhgDTAAaQ79ranb5PfG75pCnfBUZiEXeJlS8Zo2cfZcw6rui9vTGJ9v7mYPElYPl1v jBSRk83mzWsTP9gg7lTN0K5ooQEsMcm+/y+XeChLGgbQnD4SxPLklcIhUx1wp4q8VMnY cX5o0o1vH+oRwWo4fzRfK0ujm3Y6AVT1u/HPpUw+CKdr1xn89Et8ReYh/M78GU1+wH7J w0tA== X-Received: by 10.224.8.131 with SMTP id h3mr68485260qah.61.1399485433208; Wed, 07 May 2014 10:57:13 -0700 (PDT) Received: from sds-MacBook-Pro.local (static-72-80-117-250.nycmny.fios.verizon.net. [72.80.117.250]) by mx.google.com with ESMTPSA id 21sm20833567qgh.23.2014.05.07.10.57.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 May 2014 10:57:11 -0700 (PDT) From: Sam Steingold To: Leo Liu Subject: Re: bug#17045: 24.3.50; feature request: rcirc-reconnect In-Reply-To: (Leo Liu's message of "Tue, 08 Apr 2014 16:33:18 +0800") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Wed, 07 May 2014 13:57:06 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17045 Cc: 17045@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: sds@gnu.org 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: 0.0 (/) Hi Leo, > * Leo Liu [2014-04-08 16:33:18 +0800]: > > On 2014-03-20 10:33 +0800, Sam Steingold wrote: >> It is not nice to have to do M-x rcirc whenever the connection dies. >> Would it be possible to incorporate something similar to >> http://www.emacswiki.org/emacs/rcircReconnect > > Would something like this suit your needs? Thanks for testing. - Leo This indeed enables me to auto-reconnect like this: --8<---------------cut here---------------start------------->8--- (defvar sds-rcirc-sentinel-last (current-time) "last reconnect attempt time") (defun sds-rcirc-sentinel (process sentinel) (let* ((now (current-time)) (delay (float-time (time-subtract (current-time) sds-rcirc-sentinel-last)))) (message "%s sds-rcirc-sentinel: %s %s %s (last: %s, %s ago)" (format-time-string "%F %R") process (process-status process) sentinel (format-time-string "%F %R" sds-rcirc-sentinel-last) (sds-difftime-to-string delay)) (when (and (string= sentinel "deleted") (< 60 delay)) ; do not try to reconnect more than once a minute (setq sds-rcirc-sentinel-last now) (rcirc-cmd-reconnect nil)))) (add-hook 'rcirc-sentinel-functions 'sds-rcirc-sentinel) --8<---------------cut here---------------end--------------->8--- However, I would much prefer to enable auto-reconnect by a simple (custom-set-variables '(rcirc-reconnect-interval 60)) where rcirc-reconnect-interval = 0 means the current behavior (no auto-reconnect). Do you mind if I commit something based on the above or would you like to implement it yourself? Thanks a lot for your help! -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265 http://www.childpsy.net/ http://think-israel.org http://mideasttruth.com http://pmw.org.il http://honestreporting.com There is an exception to every rule, including this one. From debbugs-submit-bounces@debbugs.gnu.org Wed May 07 21:59:03 2014 Received: (at 17045) by debbugs.gnu.org; 8 May 2014 01:59:04 +0000 Received: from localhost ([127.0.0.1]:54992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WiDbz-0000b6-7F for submit@debbugs.gnu.org; Wed, 07 May 2014 21:59:03 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:36616) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WiDbx-0000aa-GF for 17045@debbugs.gnu.org; Wed, 07 May 2014 21:59:01 -0400 Received: by mail-pa0-f50.google.com with SMTP id fb1so1987842pad.23 for <17045@debbugs.gnu.org>; Wed, 07 May 2014 18:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=0SjeCaoZRdqjId6smZITCUJoim6fm0wAvXy7wpKESYs=; b=BdK47UC71hq/0aeAxBHMq5DlS56qhz2/BfaucE/Ses4jvIohDOj7akgoT805JXoKGJ M93dWter7i9vDJYRcu7xX4iSz7fZd/52KIRHccB5kq6cdbYXIfMdFwlp3GA0oDkabwev rq0idENl7R4XF/M4XxqIm38bRU0A5X2bApNmlUlkVb2bKeXxTUK1JKEuhQtMiwcKabBM YRVg1ctH3OKweinei3cqnJY13rWHJ/nTt7nOOacnPKZjVW8wmGnMCr2ZsuKs84X8xeAI 7OI3EXIzryMez9SVgLSCUaw1Jha1gr+/SFhtDIltN3rBPtr9tmiD0W8WNhSMMoZIltAV GfmQ== X-Received: by 10.66.155.7 with SMTP id vs7mr1672410pab.42.1399514335430; Wed, 07 May 2014 18:58:55 -0700 (PDT) Received: from fortuna ([123.115.254.233]) by mx.google.com with ESMTPSA id ak1sm5553499pbc.58.2014.05.07.18.58.52 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 07 May 2014 18:58:54 -0700 (PDT) From: Leo Liu To: Sam Steingold Subject: Re: bug#17045: 24.3.50; feature request: rcirc-reconnect References: Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+ vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMO DhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QH w/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnY DQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V 7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ7 0hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloe m/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= Date: Thu, 08 May 2014 09:58:40 +0800 In-Reply-To: (Sam Steingold's message of "Wed, 07 May 2014 13:57:06 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (CentOS 6.5) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17045 Cc: 17045@debbugs.gnu.org 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: -0.7 (/) On 2014-05-07 13:57 -0400, Sam Steingold wrote: > Do you mind if I commit something based on the above? Not at all. Please make the change and thanks ;) Leo From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 11 21:29:34 2017 Received: (at control) by debbugs.gnu.org; 12 Dec 2017 02:29:34 +0000 Received: from localhost ([127.0.0.1]:57526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOaK6-00005B-80 for submit@debbugs.gnu.org; Mon, 11 Dec 2017 21:29:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOaK4-00004u-Oh for control@debbugs.gnu.org; Mon, 11 Dec 2017 21:29:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOaJy-00060P-Ls for control@debbugs.gnu.org; Mon, 11 Dec 2017 21:29:27 -0500 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,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOaJy-00060C-I2 for control@debbugs.gnu.org; Mon, 11 Dec 2017 21:29:26 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1eOaJy-0005pG-9r for control@debbugs.gnu.org; Mon, 11 Dec 2017 21:29:26 -0500 Subject: control message for bug 17045 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Mon, 11 Dec 2017 21:29:26 -0500 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: 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: -5.0 (-----) # 0b816f1 close 17045 25.1 From unknown Mon Jun 23 07:51:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 09 Jan 2018 12:24:06 +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