From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Message's text-properties in *Messages* Date: Thu, 31 May 2018 05:40:16 +0300 Message-ID: <83muwgh7jj.fsf@gnu.org> References: <20180521171019.GA5750@ACM> <83a7sqcmnw.fsf@gnu.org> <83603eckk6.fsf@gnu.org> <83tvqpgix5.fsf@gnu.org> <83po1chqat.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1527734309 6200 195.159.176.226 (31 May 2018 02:38:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 31 May 2018 02:38:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 31 04:38:25 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fODTs-0001VQ-FL for ged-emacs-devel@m.gmane.org; Thu, 31 May 2018 04:38:24 +0200 Original-Received: from localhost ([::1]:41649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fODVx-0005g9-M7 for ged-emacs-devel@m.gmane.org; Wed, 30 May 2018 22:40:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fODVn-0005c0-5c for emacs-devel@gnu.org; Wed, 30 May 2018 22:40:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fODVj-0003wu-8p for emacs-devel@gnu.org; Wed, 30 May 2018 22:40:23 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fODVj-0003wm-54; Wed, 30 May 2018 22:40:19 -0400 Original-Received: from [176.228.60.248] (port=1963 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fODVi-0004cg-Jh; Wed, 30 May 2018 22:40:19 -0400 In-reply-to: (message from Stefan Monnier on Wed, 30 May 2018 22:09:50 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225838 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org > Date: Wed, 30 May 2018 22:09:50 -0400 > > BTW now I see that message_dolog indeed runs the after-change-functions > as well, so it already runs arbitrary Lisp code (and if its > after-change-functions call `message` you get funny results). That's Emacs giving you enough rope to hang yourself. The important part is that by the time these hooks run, we are done using the C pointer to the message, so we no longer care about any GC effects.