From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Intelligent stacking of messages in the echo area Date: Thu, 30 Jan 2020 18:07:14 -0500 Message-ID: References: <87sgldfi9j.fsf@mail.linkov.net> <878sn3g0o7.fsf@gmail.com> <87pngepti3.fsf@mail.linkov.net> <878slrcibk.fsf@mail.linkov.net> <87pnf1navp.fsf@mail.linkov.net> <87o8ukzjkq.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="59580"; 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, Eric S Fraga To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 31 00:08:10 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 1ixIuv-000FRF-Ub for ged-emacs-devel@m.gmane-mx.org; Fri, 31 Jan 2020 00:08:09 +0100 Original-Received: from localhost ([::1]:40742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixIuv-0004Uw-0c for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Jan 2020 18:08:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36384) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixIuE-00045J-Eb for emacs-devel@gnu.org; Thu, 30 Jan 2020 18:07:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixIuD-0008AR-0a for emacs-devel@gnu.org; Thu, 30 Jan 2020 18:07:25 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64287) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ixIuC-00083Q-Q5 for emacs-devel@gnu.org; Thu, 30 Jan 2020 18:07:24 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C6090811E8; Thu, 30 Jan 2020 18:07:17 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CF98880D8A; Thu, 30 Jan 2020 18:07:15 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1580425635; bh=Q04c8F0kf+DG+wM3ulnlfsl0InvDJ5mQ8F9Q6nvJJhY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=UvFFF6zIxeRM5BoPH+uIP1xz+Uk28KtS4F6fSCKFGCZTMRA980NISxeLA7uH0pN8D v+ufoQE/ds+hAKkrSHfYNdcLAOZs8IhZ5YAsqGy8mPAEIlSfaFCDgaBbvcesGbx3yZ HgOO/EjAt4Y2iKLRaUh0dHJwy0S9YyZGKhcfapFk9Rh/Clrft2X12UgOCgABTbxlSc mgQNDeRITTSk2tYFXqfHzQh8PCIaUFhBrLTmdEZGm4MH3JtAvxX6g9Uq7zd27U9tXO 1JZKv6rx9/ZdewMaq3Cf1O9BKAvoI3/jeVoHYGyoynyI5EJbPGCR6vnXN4b+H9jFp5 Evz34Q3NGtPiA== Original-Received: from pastel (unknown [45.72.213.248]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 985C9120C71; Thu, 30 Jan 2020 18:07:15 -0500 (EST) In-Reply-To: <87o8ukzjkq.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 31 Jan 2020 00:35:25 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:244782 Archived-At: > Debugger entered--Lisp error: (void-variable v) > (default-value v) > (lambda nil (default-value v))() > advice--add-function(:around ((lambda nil (default-value v)) lambda (gv--val) (set-default v gv--val)) set-multi-message--wrapper nil) > (add-function :around (default-value sym) #'set-multi-message--wrapper) My crystal ball says you need to activate lexical-binding for this anonymous function as well. IOW, you need to turn the outer ' into a ` and then use ,(lambda ...) Or move this function to a top-level definition and then refer to it by name. Stefan