From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: debug-warn macro [was: Re: Emacs memory usage] Date: Sun, 29 Nov 2020 03:42:58 -0600 Message-ID: References: <83mtz6u42h.fsf@gnu.org> <83zh36ru8b.fsf@gnu.org> <83o8jlsbh9.fsf@gnu.org> <87v9dp0x1i.fsf_-_@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32362"; mail-complaints-to="usenet@ciao.gmane.io" To: Adam Porter , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 29 10:44:01 2020 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 1kjJFQ-0008LO-Ma for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Nov 2020 10:44:00 +0100 Original-Received: from localhost ([::1]:59688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjJFP-0000GJ-Nt for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Nov 2020 04:43:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38746) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjJEU-0007vw-Ic for emacs-devel@gnu.org; Sun, 29 Nov 2020 04:43:02 -0500 Original-Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:33293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjJES-0005fZ-Ck for emacs-devel@gnu.org; Sun, 29 Nov 2020 04:43:02 -0500 Original-Received: by mail-pg1-x536.google.com with SMTP id o4so5690089pgj.0 for ; Sun, 29 Nov 2020 01:43:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to; bh=QsPpzT/Vj2Cmy3OWB+TYYHFNUx1GMoqU28t/rqpa2+s=; b=KaGf7AwvrbqIaWSwnFHmO9FzY25X0OzGdxuwM539/VKs+XdJg+Mk6ZyanO7JaXihXi cK//TJIDjw99ydjA2wyK+oQP1krK55smupZkgfqeuwBncekTSddgINI9sjHqrCo84E8x jyiik6wUQ+XEpkSyQSNSYkRtyvSDtlNaYBFf6gfewA0W0oBREtC8iojnB+udZGIopwxK Y3V5sLrLj7caAQKMCYXrlNNUdscWGT7y1AwWHp7Q9tbREPz+WRfaN7SLOfr7zuS0JmM3 4M3AgQIjjSv6y3ext/qCu7j8UNnmnVFi59s+2FIwTD22eBZpKOmMRWiyhG4Pn2053HPg o24w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to; bh=QsPpzT/Vj2Cmy3OWB+TYYHFNUx1GMoqU28t/rqpa2+s=; b=SeXqeBSOLgouChBj9XkEsv7Jq2fDkpI+dkQafOYl/Sw7CFR2DFxGTJSyW706tyx7Tu lE+bqzR6UMoR9f3ZVUHYRlscDH9kcukKyqCPAk4AYIwEsGpXW4U/8DKRQAyxxkbtGjDq 2s1uoJH+XGOdikENy7X6vz6SfWW8O49gzOcWGqSirjgxhTWA5YuA7hPtOGd/P0h/dK00 zmJidsEvQgEMvRncDi6T06uNWR0hllX4NUQYzhfSW0sISClL7H+edQ84DjkS9eyS1Xku 0aR4E7hw3WpBs5FHG1vMW+SPdYlRmMpwC2dDXKDXvF58QxaJagmagZVuM5hy15+Gw2Az zeAQ== X-Gm-Message-State: AOAM531AOar6zhF1DHWjhybRFHAlrCDa2MBOAsLBDV3wfl65/lWCoAA9 yxvO2YTXAI4IrQQc6weOVzPKvU4K4A4/gfDB2KA= X-Google-Smtp-Source: ABdhPJz7CO8THRxFn7ZxRrFcwPWp0ERHUTex/NCzMFZ1YTyhoyHxkAX5vCT/2cLBPXE1/UZAAbR2kRuSz4sqZpGGd6o= X-Received: by 2002:a17:90a:66c7:: with SMTP id z7mr20289755pjl.175.1606642978841; Sun, 29 Nov 2020 01:42:58 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 29 Nov 2020 03:42:58 -0600 In-Reply-To: <87v9dp0x1i.fsf_-_@alphapapa.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=stefankangas@gmail.com; helo=mail-pg1-x536.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:259996 Archived-At: Adam Porter writes: > In case it would be help anyone in this context, this macro is useful > when it's necessary to use print-style debugging in several functions > with output displayed in one place. It handles a few chores for the > programmer, like getting and printing the function name and values of > variables or other expressions: > > https://github.com/alphapapa/emacs-package-dev-handbook#debug-warn-macro > > Plain-text export from Org follows (I hope the lines don't get wrapped): Looks useful. Why is it not in Emacs?