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: Mon, 24 May 2021 02:58:43 +0300 Message-ID: <87bl91uhn0.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="19801"; 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 Mon May 24 01:59:28 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 1lky0F-00052U-OU for ged-emacs-devel@m.gmane-mx.org; Mon, 24 May 2021 01:59:27 +0200 Original-Received: from localhost ([::1]:56156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lky0E-0005Wc-Rz for ged-emacs-devel@m.gmane-mx.org; Sun, 23 May 2021 19:59:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkxzb-0004rT-Bf for emacs-devel@gnu.org; Sun, 23 May 2021 19:58:47 -0400 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:44600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lkxzZ-0003K7-V2 for emacs-devel@gnu.org; Sun, 23 May 2021 19:58:47 -0400 Original-Received: by mail-lj1-x22a.google.com with SMTP id s25so31208608ljo.11 for ; Sun, 23 May 2021 16:58:45 -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=xoeVzMjsqBuomUE7yRbnSX/fgulJ9OCJyj3/H1EOwbs=; b=cIrf03UxRyPibMAmowdybXqIbGUfzz2NF20C2PfSW3TKnTL5/PHdjyz2fzlN1qFqPH qidwzcw4Noc+irfStimc6K3TfT9TgJ7lOByIISGcZSLGxmj8MF4FaPKxgG/UfGHurrSf q3AdFXJJ6RYZ1ADLG0XCh6KWH7HTye9MkoojeIkQY8u5r7U2lQuubOzJUl86nhyyZfyH 9pbCK/KTRb3MvQukXn9cSy7YqULLFLPOHo11CkgIToMeWCHS0z4P0kLBq142tBwq9Wph mkBWq8THm0jEVVkO3F3LZz42i73M1OwoorYBDg4c9HLMx0CVMa5naLy9LWybgV2LK70M mgrw== 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=xoeVzMjsqBuomUE7yRbnSX/fgulJ9OCJyj3/H1EOwbs=; b=VIELlqTAiGGE+r/xZbb70T2L2WrC+gDEvY+ET0rBwYfFcgOHLa7T3g3wG7uI1PzO/X 7FdcG+r4F8WJ+CTyyYEKjOsetpJjhTEeZwxjTLW+m8rXU0X/U+Wf3zH4eQGT7ELOYy3r 3hNTiecYPiZPiq1nbW2Y2JGeX23Zp0OIZeXHkjYk8xP0SF4oJZ7ofEpOcsEKDpWyH13r ano0jKy/cnTz5DTJtUK9A39AVsQd9eRc30wpFmGRRr2YTNGthQsQbidPK+veoWMmLtzD mUt7qhtZe++GnryCmAu/RFZqe3GH9UMCmj/bHbTkDrC4yGFOArZhDXKzljJELKLocPf7 J6sg== X-Gm-Message-State: AOAM533IMMs5FN9zZ8U/8f1r1CN0MJFXXyg6mMDg6x8d4QC5TzSK4zzL zvd8i5ldq7EMbfJId8BUC819ZkzGHyc= X-Google-Smtp-Source: ABdhPJxMvUaMXOWeyDHE+0owa0Xk95G8c05XVxVGVnWiCArXnvGAAQsyBGzcM5D5Hg08E/WDqQFwaA== X-Received: by 2002:a2e:9b88:: with SMTP id z8mr14809139lji.229.1621814324216; Sun, 23 May 2021 16:58:44 -0700 (PDT) Original-Received: from osv.localdomain ([89.175.180.246]) by smtp.gmail.com with ESMTPSA id o15sm1271522lfr.257.2021.05.23.16.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 May 2021 16:58:43 -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::22a; envelope-from=sorganov@gmail.com; helo=mail-lj1-x22a.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:269728 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. Yep, looks like this. The only question then is why didn't it ever fail for me before, for about 10 years, and started to fail only recently, despite "desktop.el" is like that for ages, as far as I can see. And how running from a timer could be involved? Thanks, -- Sergey Organov