From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sergey Organov Newsgroups: gmane.emacs.devel Subject: Re: Should (buffer-list) ever return killed buffers? Date: Thu, 22 Jul 2021 14:27:30 +0300 Message-ID: <87eebqh9lp.fsf@osv.gnss.ru> References: <87wnrpujo0.fsf@osv.gnss.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="364"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 22 13:28:20 2021 Return-path: Envelope-to: ged-emacs-devel@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 1m6WsF-000ANr-LL for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Jul 2021 13:28:19 +0200 Original-Received: from localhost ([::1]:42770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6WsE-0003Lx-NM for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Jul 2021 07:28:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6WrY-0001y7-81 for emacs-devel@gnu.org; Thu, 22 Jul 2021 07:27:36 -0400 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:38782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6WrW-0005De-Eh for emacs-devel@gnu.org; Thu, 22 Jul 2021 07:27:35 -0400 Original-Received: by mail-lf1-x130.google.com with SMTP id q16so7975702lfa.5 for ; Thu, 22 Jul 2021 04:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=AJ78PAF/HE+aZTIqpLuKKIRXO+bb5Eixe4jiHE1RvdI=; b=eVX4y7MIh8Zm8mD904ACGT6Y41ZxqzNKbmoB9jbDEdRI0YUTIiYNuqGBXhGdrTTphg u+QsWRunw62WLz76dhyVXtBPeY5StMCF+zb2X1ztMY/I6fdpkygI9mkC5IMFvQ4STUyR PfG8STJCZFrctuAsvV4PYplLxNAsYswExEDijUmfUQaggQPUigGgCC/Okt8Wk8FNe3eq pwbYUqV+3+7ljxeowefGyIQE2V5xtIEkTiUZwwOk5UJco5Lu5i8mITXErWIayaMY0uB1 RLvjbMENQEz/4DmlPXn9cY9ANvmqK8yyJ/ALGAgq+WtBx/O1J2Ri3W6YFi595P7iBb2u aCMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=AJ78PAF/HE+aZTIqpLuKKIRXO+bb5Eixe4jiHE1RvdI=; b=GcYN8yGckbuGxKjgqTAfDPF5njAFf5N5ehsmsZ7K3m3/Hw/7/jHUISqOThiC6dtA0I lVvqCOUIMlLUAiMDsPh4iJ3CSav7wCis9OYA+YmJjf07lautmvlOsw34zSnUfWYVy1g+ 3RJOnHypyJyvzUdxsa+UNjV47fbWxV78Tqj21AYtxsBnV4saWoFd3UwHPv1DhKqDjhrh DzPIp3HQ9C95q1TJ1Y8jW3rT2416NxK/7oPsUuG65nI0G1prL4DokLVVn6u7OIJxBvrg XQdBPeV4LYQhKc0oAyDp430KMZqDCAGATFL3mgOKyzkOLnRjKbTMJQhqe41V6iuRCPX7 JTeg== X-Gm-Message-State: AOAM532QtvQIFo28X2d3fU/7mIjguRiTPMFLRvp4adLgmHVMb8nCfkyo Lxw6saE82jfVj98iKik375T6mQr0GmY= X-Google-Smtp-Source: ABdhPJxwU35THJMLIfqDa5JG8Wm8yfanj7QTy8i0wmiitCylIesqiQz173T4g1UGVS0UIz+/2uFY6g== X-Received: by 2002:ac2:4d12:: with SMTP id r18mr29837885lfi.51.1626953251838; Thu, 22 Jul 2021 04:27:31 -0700 (PDT) Original-Received: from osv.localdomain ([89.175.180.246]) by smtp.gmail.com with ESMTPSA id q66sm3101703ljb.83.2021.07.22.04.27.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 04:27:31 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 23 May 2021 19:41:42 -0400") Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=sorganov@gmail.com; helo=mail-lf1-x130.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271461 Archived-At: Stefan Monnier writes: >> Somehow it happens when `desktop-clear` is called from a timer and there >> is *Info* buffer out there, and apparently the one that is killed is >> >> "#" >> >> I'd like to know if this is a bug in `destop-clear`, `buffer-list`, >> info, or elsewhere? > > I strongly suspect that the problem goes as follows: > - buffer-list returns a list of buffers that are all live (i.e. no bug > there). > - while processing that list, some of its buffers die. > So I think the bug is in `desktop-clear` which should skip buffers that > have died between the call to `buffer-list` and the moment we get to > process them. > > > Stefan "who hasn't looked at the code" Thanks, this is now: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49692 -- Sergey Organov