From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#45872: 27.1; rcirc nick tracking Date: Sat, 24 Jul 2021 14:56:23 +0000 Message-ID: <87wnpfzroo.fsf@posteo.net> References: <87zh1bwbin.fsf@redhat.com> <87im11dzcz.fsf@gnus.org> <87czr99r23.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24222"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 45872@debbugs.gnu.org To: Ken Raeburn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 24 16:57:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7J5S-00066Q-1K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jul 2021 16:57:10 +0200 Original-Received: from localhost ([::1]:58582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7J5Q-0008Oi-Kb for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jul 2021 10:57:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7J5K-0008OX-AF for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 10:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35193) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7J5K-0004G3-06 for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 10:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7J5J-0003pg-Vn for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 10:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Jul 2021 14:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45872 X-GNU-PR-Package: emacs Original-Received: via spool by 45872-submit@debbugs.gnu.org id=B45872.162713859514692 (code B ref 45872); Sat, 24 Jul 2021 14:57:01 +0000 Original-Received: (at 45872) by debbugs.gnu.org; 24 Jul 2021 14:56:35 +0000 Original-Received: from localhost ([127.0.0.1]:46739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7J4t-0003ou-KQ for submit@debbugs.gnu.org; Sat, 24 Jul 2021 10:56:35 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:44009) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7J4p-0003od-09 for 45872@debbugs.gnu.org; Sat, 24 Jul 2021 10:56:34 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B7B2C240027 for <45872@debbugs.gnu.org>; Sat, 24 Jul 2021 16:56:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1627138584; bh=nbdoWWJ0CN63mfeIlQa8AGjvBP1tcezsdj5Cmvkx2Pw=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=cIqIUbLcDED1A+G6LfDO5XCMXJMVerlO5SaJ0u6OQELi085mx/tdvTlqev2Y+vxjj vJzbP5c8NF09VBjeD9V6WFrcGLrKEomS+MrJuRV5mk7EwKqRz6Z0xWMq4atl9U2OMc LQ+RnuB84d7+Gad2M3yL7YKyTYaDvXuRlg+f7tKn06Z5PB1RLDfAye42w5LrHo+ClX X47Ya0OgidftIuRxYFo0f3CmGEMtHuITy4x3NFdSMZYCOdn3fogXLnXI1701AM4z6t 4cL/fu/q9R+pFLoS+5adm3I7s6xxavRAF/RQ5Hjsuo/iBJlDaRa4V9gnF63eGoPXkZ hrbXy0fpR6TaA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GX8Qb4c9Kz9rxS; Sat, 24 Jul 2021 16:56:23 +0200 (CEST) Autocrypt: addr=philipk@posteo.net; prefer-encrypt=mutual; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB In-Reply-To: (Ken Raeburn's message of "Fri, 23 Jul 2021 14:07:43 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210638 Archived-At: Ken Raeburn writes: > On 7/23/21 8:02 AM, Philip Kaludercic wrote: >> Lars Ingebrigtsen writes: >> >>> Ken Raeburn writes: >>> >>>> One of my IRC contacts uses frequent nick changes to indicate away >>>> status, e.g., "johnsmith" when available, "johnsmith|away", >>>> "johnsmith|vacation", whatever. I've noticed that sometimes rcirc will >>>> fail to rename the buffer used for private messages between us, and so >>>> I'll wind up with a buffer "johnsmith|away" showing something along the >>>> lines of: >>>> >>>> ... *** johnsmith NICK johnsmith|away >>>> ... *** johnsmith|away NICK johnsmith >>>> >>>> but the buffer won't have been renamed back to "johnsmith@", >> Do you have some idea in what cases the buffer is not renamed? In >> principle, the NICK handler (rcirc-handler-NICK) should handle this >> case, but there might be issues if you disconnect and reconnect. > > I forgot to update this ticket... I found that rcirc-buffer-alist > included a nick that had text properties set, and scanning the list > didn't find a match. I used advice-add to postprocess the list after > rcirc-handler-NICK using string-equal to work around it, and that > seems to do the job (as long as I can stay connected). > > I haven't checked in a while to see if it's been fixed. If not, a > better fix might be stripping out the text properties before putting a > nick into the list. That shouldn't be an issue, but I wonder where the text properties come from. Could you find out what text properties these were that were confusing rcirc? > Ken > -- Philip Kaludercic