From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How to debug memory leaks Date: Fri, 26 Mar 2021 12:44:50 -0400 Message-ID: References: <87pmzmihyj.fsf@robertthorpeconsulting.com> <83lfaaot5h.fsf@gnu.org> <83k0puorpb.fsf@gnu.org> <83ft0hq4wb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8887"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Arthur Miller Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 26 17:45:19 2021 Return-path: Envelope-to: geh-help-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 1lPpaJ-0002BI-3S for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 26 Mar 2021 17:45:19 +0100 Original-Received: from localhost ([::1]:42670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPpaI-0002Nd-1l for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 26 Mar 2021 12:45:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPpZv-0002NU-Na for help-gnu-emacs@gnu.org; Fri, 26 Mar 2021 12:44:55 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:58955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPpZt-0000Ye-Ri for help-gnu-emacs@gnu.org; Fri, 26 Mar 2021 12:44:55 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 011A4441004; Fri, 26 Mar 2021 12:44:53 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7812B441007; Fri, 26 Mar 2021 12:44:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1616777091; bh=wECFgqKHSqH/slieubO/dQDeZnZUf567fZpfS35vkkY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=VlA0pLA2IEcUYJHSAfLeOilOUfBfnYcLa84UwjC1PJTFZsFIB7QJhO62SIa6KYSg5 U5XULGkQKT4ClxImSer+WCHEcA3/e7Sa3NDh5zNqZW6YRTQL70ahmDpcK03FPYbtE9 XNLU8c6kd9PMQ6nrahbPpW4VJNAJ8gkCjv07QBkMHHTOLlfU9ysBVVVj7qepmj3IQ1 LlowntqzojQsEurjxuDk+SZe9+cWuji4DecHWPacbBnhinGldcHeDSfzqlQK9WPkY2 LqsH8vvVDJcVeeozitRw+GS7yZfYCwT3FN55KJ7x8jzqJvkFtc0VlAi3ytm/2MQJuB u962IoU1fEKYw== Original-Received: from alfajor (unknown [216.154.43.249]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EE8751204DE; Fri, 26 Mar 2021 12:44:50 -0400 (EDT) In-Reply-To: (Arthur Miller's message of "Fri, 26 Mar 2021 17:32:54 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128653 Archived-At: > Yes, that is why I ment a hook that will be avaialble for mode writers > to put potential "cleanup" into since users probably don't know and > should not need to know the details. What I meant is that if the mode's writer knows that this variable can be a source of problem, he can just as well fix those problem (or report the problem and have someone else fix the problem). > I used undo history as example, but I ment bunch of other stuff. No idea > how much it would give in practice though. So, there's no concrete existing example of stuff that could be added to this "cleanup hook" :-( Stefan