From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54154: Emacs commit ae963e80a79f5a9184daabfc8197f211a39b136d (sieve-manage) Date: Wed, 18 Jan 2023 21:17:59 +0200 Message-ID: <835yd31wk8.fsf@gnu.org> References: <87wnhj5nbk.fsf@tetzco.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37035"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 54154@debbugs.gnu.org, emacs+bug@tetzco.de To: "Herbert J. Skuhra" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 18 20:18:24 2023 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 1pIDx2-0009Eu-6t for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Jan 2023 20:18:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIDws-0003H5-HW; Wed, 18 Jan 2023 14:18:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIDwh-0003Gj-Rm for bug-gnu-emacs@gnu.org; Wed, 18 Jan 2023 14:18:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIDwg-00040v-V9 for bug-gnu-emacs@gnu.org; Wed, 18 Jan 2023 14:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pIDwg-0001fj-AE for bug-gnu-emacs@gnu.org; Wed, 18 Jan 2023 14:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jan 2023 19:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54154 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 54154-submit@debbugs.gnu.org id=B54154.16740694756410 (code B ref 54154); Wed, 18 Jan 2023 19:18:02 +0000 Original-Received: (at 54154) by debbugs.gnu.org; 18 Jan 2023 19:17:55 +0000 Original-Received: from localhost ([127.0.0.1]:41874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIDwZ-0001fJ-0J for submit@debbugs.gnu.org; Wed, 18 Jan 2023 14:17:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIDwW-0001f0-D1 for 54154@debbugs.gnu.org; Wed, 18 Jan 2023 14:17:53 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIDwP-000403-Ke; Wed, 18 Jan 2023 14:17:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Rq2j+O+4WDEGfvl3NG0p/dC/P0kLcw3ia0e7voJbALE=; b=a1unuxJ3vsqP XwYMoKcmHLkj+rx4hJHl48WCHfGAuIFQbLluzQYViV8I5v+KEMXZ3G4cqrmxVCbku00MXN7e8pBO8 DGM+Bxm5xyg0qqn2fLvYz+V3I8Dp+W3XGBT5k1Z4N/E9jeANT4hPweXii5qf7tF+3p452our0HIjr jy9cqaBJZbL2jd9oCzLeBajfP53iO8J1b7oDwQJxx6f1X1obGk3RSWcH6HbWocCXNaxaZGLSrs61U iMBJ5QYG+v5xKgOXUuTz83OB02sHBglQ5t7qJ2DUXFEUxNDQHsBF9m8Fe1rg/CbabGKNa3OnqPbOH aS/RMAdMsHs4xCOEBSZ+8w==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIDwP-0006WP-19; Wed, 18 Jan 2023 14:17:45 -0500 In-Reply-To: (herbert@gojira.at) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253664 Archived-At: > Cc: larsi , 54154@debbugs.gnu.org > Date: Wed, 18 Jan 2023 19:28:40 +0100 > From: "Herbert J. Skuhra" > > On Wed, Jan 18, 2023 at 10:09:33AM +0100, Kai Tetzlaff wrote: > > Hello Herbert, > > > > it seems that I'm responsible for this issue. Unfortunately, I cannot > > reproduce it with my imap/sieve server setup. However, if you're willing > > to provide some additional info, we should hopefully be able to find the > > bug. > > Hello, > > this is strange because I can reproduce it easily on different systems: > > - master on FreeBSD 13.1-STABLE > - emacs-29 and master on macOS 12.6.2 > - master on WLS2/Windows11 (Ubuntu) Is this problem still relevant? I thought that Lars closed the bug report back in September? > > Could you re-run the steps above with the following additional steps > > before 3.: > > > > 2a) M-x find-library sieve-manage > > 2b) M-x eval-buffer > > 2c) M-x find-library sieve > > 2d) M-x eval-buffer > > 2e) M-x toggle-debug-on-error > > > > to get a full backtrace and send it to me? > > Backtrace attached. Thanks. The error is here: (defun sieve-manage--append-to-log (&rest args) "Append ARGS to sieve-manage log buffer. ARGS can be a string or a list of strings. The buffer to use for logging is specifified via `sieve-manage-log'. If it is nil, logging is disabled." (when sieve-manage-log (with-current-buffer (or (get-buffer sieve-manage-log) (with-current-buffer <<<<<<<<<<<<<<<<<<<<<< (get-buffer-create sieve-manage-log) (set-buffer-multibyte nil) (buffer-disable-undo))) And I admit that I don't understand this code. What is it trying to do? Shouldn't it be just (when sieve-manage-log (with-current-buffer (get-buffer-create sieve-manage-log) (set-buffer-multibyte nil) (buffer-disable-undo))) Kai, am I missing something? Herbert, if you make the change above, does the problem go away?