From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "J.P." Newsgroups: gmane.emacs.bugs Subject: bug#51841: 27.2; erc-insert-marker has no value Date: Sun, 14 Nov 2021 14:53:35 -0800 Message-ID: <87r1bixsb4.fsf__17876.3902209297$1636930460$gmane$org@neverwas.me> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18717"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: 51841@debbugs.gnu.org, emacs-erc@gnu.org To: Rostislav Svoboda Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 14 23:54:12 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 1mmOO4-0004dM-Bx for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 23:54:12 +0100 Original-Received: from localhost ([::1]:59428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmOO3-0003XM-9i for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 17:54:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmONu-0003Wb-OA for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 17:54:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40426) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmONu-0007bq-Fl for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 17:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmONu-0004iU-Ez for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 17:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "J.P." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Nov 2021 22:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51841 X-GNU-PR-Package: emacs Original-Received: via spool by 51841-submit@debbugs.gnu.org id=B51841.163693043118111 (code B ref 51841); Sun, 14 Nov 2021 22:54:02 +0000 Original-Received: (at 51841) by debbugs.gnu.org; 14 Nov 2021 22:53:51 +0000 Original-Received: from localhost ([127.0.0.1]:51972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmONj-0004i3-8w for submit@debbugs.gnu.org; Sun, 14 Nov 2021 17:53:51 -0500 Original-Received: from mail-108-mta199.mxroute.com ([136.175.108.199]:39521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmONg-0004hk-2W for 51841@debbugs.gnu.org; Sun, 14 Nov 2021 17:53:50 -0500 Original-Received: from filter004.mxroute.com ([149.28.56.236] filter004.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta199.mxroute.com (ZoneMTA) with ESMTPSA id 17d20a7f852000177f.001 for <51841@debbugs.gnu.org> (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Sun, 14 Nov 2021 22:53:38 +0000 X-Zone-Loop: c066e563f815ebe38e128a09d07078a717d77a7b334c X-Originating-IP: [149.28.56.236] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=neverwas.me ; s=x; 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=Ec7ZT199JaygJtyorz6wZHGwhYrqPl+UQG/cfMjPORk=; b=W7PkqG5M87MeAe04mfoy8HY5Ud NBkjZCexXP/hgO0n50JJa3bAImvLckcxx/YIwnc7NWhGZiUICQFdt7iykKTJUVSEWuWDfLNS+wG8M 2C0NabyVLv5nIVWHttfEc5c2J0tvZkfZmCeeGSwwMuxLH500MADBZi6ymyaMzkXp0keqFadQ7o/ZQ XrgdV0hE2viZ/Venk19b2FFmE26dMZCZ8LJVKOo9dkEIIIAH7iweE+bmRlWl2tj5Sa9EabqlLIpj4 8eHgLgdGjTpwxzj/aLzu6r8j/KqPKCOgbXFQOYfET4bi8t31HsnkPFdFqISLHDwMNzYPT8ZgvJmh6 xnBRCc6A==; In-Reply-To: (Rostislav Svoboda's message of "Sun, 14 Nov 2021 14:19:31 +0100") X-AuthUser: masked@neverwas.me X-Zone-Spam-Resolution: no action X-Zone-Spam-Status: No, score=-0.1, required=15, tests=[ARC_NA=0, FROM_HAS_DN=0, RCPT_COUNT_THREE=0, TO_DN_SOME=0, FREEMAIL_ENVRCPT=0, TAGGED_RCPT=0, MIME_GOOD=-0.1, NEURAL_SPAM=0, FREEMAIL_TO=0, RCVD_COUNT_ZERO=0, FROM_EQ_ENVFROM=0, MIME_TRACE=0, MID_RHS_MATCH_FROM=0] 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:220017 Archived-At: Rostislav Svoboda writes: > Hi. The bug > "erc-insert-marker has no value, please report a bug" > gets triggered when I run `M-x erc-mode` in an existing IRC channel. > > Thanks in advance for fixing it. > > Bost Hi Bost, I think what's happening is that all your local variables are getting killed by manually running `erc-mode'. And replacements are hard won because ERC is a bit funny when it comes to setting up buffers and initializing local variables. This causes real problems, like imposing artificial burdens on modules, for example. (I have a patch that I think improves the situation here [1], but that's a whole other discussion.) The error you saw is from the function `erc-beg-of-input-line', which is used throughout ERC. That message probably wasn't intended for folks invoking `erc-mode' manually, which you've probably gathered by now. However, you're welcome to share whatever it was that drove you to try that in the first place, if you think there's more to consider here. Thanks, J.P. [1] https://gitlab.com/jpneverwas/erc-tools/-/raw/39b10aa2a1832586aeef34b9a6f045d6e0f9b015/bugs/49860/patches/wip/0024-Enable-local-ERC-modules-in-erc-mode-buffers.patch