From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vasilij Schneidermann Newsgroups: gmane.emacs.bugs Subject: bug#25656: 25.1; remember-notes-mode makes every temporary buffer created from it unkillable Date: Thu, 9 Feb 2017 00:12:32 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1486595604 16106 195.159.176.226 (8 Feb 2017 23:13:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2017 23:13:24 +0000 (UTC) To: 25656@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 09 00:13:19 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbbQM-0003qI-IP for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Feb 2017 00:13:18 +0100 Original-Received: from localhost ([::1]:33701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbbQR-0006VH-Sl for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Feb 2017 18:13:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbbQB-0006QA-Sc for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 18:13:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbbQ6-0004Kc-36 for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 18:13:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34183) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbbQ6-0004KQ-07 for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 18:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cbbQ5-00031E-PP for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 18:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vasilij Schneidermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Feb 2017 23:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25656 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148659556511580 (code B ref -1); Wed, 08 Feb 2017 23:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Feb 2017 23:12:45 +0000 Original-Received: from localhost ([127.0.0.1]:60615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbbPp-00030i-DM for submit@debbugs.gnu.org; Wed, 08 Feb 2017 18:12:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbbPn-00030V-2m for submit@debbugs.gnu.org; Wed, 08 Feb 2017 18:12:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbbPh-0004Ap-1v for submit@debbugs.gnu.org; Wed, 08 Feb 2017 18:12:37 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50353) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbbPg-0004Ac-W8 for submit@debbugs.gnu.org; Wed, 08 Feb 2017 18:12:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbbPg-00063Z-3p for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 18:12:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbbPf-0004A6-8t for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 18:12:36 -0500 Original-Received: from mail-ot0-x22b.google.com ([2607:f8b0:4003:c0f::22b]:34044) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbbPf-00049k-4x for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 18:12:35 -0500 Original-Received: by mail-ot0-x22b.google.com with SMTP id f9so117913otd.1 for ; Wed, 08 Feb 2017 15:12:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=uPn6ikWzLqGxFPHzxVIswB8JXEt/3yGC9EOMU66FEp8=; b=tedLg6wcqe+yXzXNsvESzjP2iljIruXeJ9fLgELYz+SaWm80M63yUCgd55EA3/CRqZ xzR5wXnkHa4mLBfp0OSPk9GxbJ1bzEoHpVAVYMt6Ic8XJhf+/CuWn2LWgRupU0HKPaGq jqKxo0LqK0w+HRsBlL6tu9GUvAmwUMrOkoK7VL2BWUwLYV7vM5K62ukc1x8Lpsi2l5W0 HeasPzdJQEujQgpxNfngwIaYKAQGrwdIcmHP3nEkWczPRvSOoy8mbhzsJvRnv1+4XYA7 fkn1fwj7EneYTyEFGkHOxYJklG4UVbyxCj0UIU7S3pQvcA9kKTR3MprefOF+MQMcJ7kx bROA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=uPn6ikWzLqGxFPHzxVIswB8JXEt/3yGC9EOMU66FEp8=; b=IGu3nt13KwaG82CNrtT9tywGi804wSB0/kNMvtxpmIy+HX8eFz4GqFJ8v53hdZnBE+ 8seSRHBgGbHiVpUkTZE0TR6Wc2wl//0AEA6Q+OWhICw2cN4UEndAsKqbu/iIGs4g7LZG RMHZdgkVoZEVkxAAnblHSJvvRj9oib88+bRXO8/hBz3z2xpYoRQ+7YuH1z2tzYpTuJ6d 43rtUQ/pPnJ1AGqwos0//CZVMlVk8zQyY8KW83IbdPe3TppwXOdT3j2i9Sr5f1SCgcyZ czGGyV3S109FHA/uOW0qjbSXm2lUUH5fWyi7x43tMpL7VOxn7e0NZ1x22ErOEqTQQsPx Ym5A== X-Gm-Message-State: AMke39kMwnbj8OlKrEgjq0dZkfOTYyl9K9oQr1eRyYnKkTIt0SCyXgRu8IcYaAFso6DfFfm6L9Q57ou1LQHTVA== X-Received: by 10.157.29.251 with SMTP id w56mr24726otw.13.1486595552698; Wed, 08 Feb 2017 15:12:32 -0800 (PST) Original-Received: by 10.157.0.34 with HTTP; Wed, 8 Feb 2017 15:12:32 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129136 Archived-At: I wrote an Emacs package that takes an Org file, processes it with Org's element API and exports to a file. Later I've noticed that if I use it on an Org buffer created with remember-notes-mode, it creates ~500 temporary buffers that cannot be killed. Bisection reveals that this is the fault of `remember-notes--kill-buffer-query` which is added locally to `kill-buffer-query-functions` and returns nil if `remember-notes-bury-on-kill` hasn't been customized. This raises an interesting question, should a temporary buffer as created by `with-temp-buffer` let-bind potentially troublesome hooks including, but not limited to `kill-buffer-query-functions`? Another example coming to mind is `buffer-list-update-hook`, adding a function to it that scans the buffer list makes creating and killing temporary buffers an expensive action.