From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MPS: Forwording symbols Date: Tue, 18 Jun 2024 16:08:57 +0300 Message-ID: <865xu6qtxy.fsf@gnu.org> References: <87jziod6yc.fsf@gmail.com> <874j9rcuf6.fsf@gmail.com> <87y173bda9.fsf@gmail.com> <87plsfbcd5.fsf@gmail.com> <87iky6boz7.fsf@gmail.com> <87zfria224.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28933"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 18 15:09:54 2024 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 1sJYaw-0007Lr-Ko for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jun 2024 15:09:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJYaB-0003ba-UJ; Tue, 18 Jun 2024 09:09:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJYa5-0003as-Aq for emacs-devel@gnu.org; Tue, 18 Jun 2024 09:09:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJYa5-0000vj-0f; Tue, 18 Jun 2024 09:09:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=OoLzfMyCwk4t4QlPWYslhGOQIWVkJPEbt44hlfQObhk=; b=WKPJOYaMPRliyjtx4pbS uvPNMg86oMziF4KPjzDZ37FjnLX1NUEXRM+madWy8x/n0KZWmpJMy1zyedzXB5v+TCSrYcRDeIRay ZJS+9lxJIAVJYCTaTnAQy5hr1Rd48SFzqwLbGsnpVYS5LM0yBEEJh8veodrhR/XPZzwwXe78Q2Cuz DSu8KPPHVCGm1q/GjOoJ/9XosLP8GF+9Egg+c5vkxeO/Dxldv+stnhTlGtt9Onwe7w2uyOp5CoBqs HsMxO2E0mBV0LIivnBwOHpMFsja4GPP2r3MIspxPbY026OEkapvIW3c07HlrthGdX77JzymRO66QP wXO9d7rgam3fFg==; In-Reply-To: <87zfria224.fsf@gmail.com> (message from Helmut Eller on Tue, 18 Jun 2024 14:05:39 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320242 Archived-At: > From: Helmut Eller > Cc: Emacs Devel , Eli Zaretskii > Date: Tue, 18 Jun 2024 14:05:39 +0200 > > On Tue, Jun 18 2024, Gerd Möllmann wrote: > > >> Those in buffer.c are at least easy to understand. Strange: there are > >> 4 IGC_OBJ_DUMPED_BUFFER_TEXT objects in the dump but only 3 buffers in > >> Vbuffer_alist. > > > > Somehow there is never an end to surprises... > > An interesting comment in buffer.c: Yes, yours truly is responsible for it ;-) > /* The dumped buffers reference addresses of buffer text > recorded by temacs, that cannot be used by the dumped Emacs. > We map new memory for their text here. > > Implementation notes: the buffers we carry from temacs are: > " prin1", "*scratch*", " *Minibuf-0*", "*Messages*", and > " *code-conversion-work*". They are created by > init_buffer_once and init_window_once (which are not called > in the dumped Emacs), and by the first call to coding.c > routines. Since FOR_EACH_LIVE_BUFFER only walks the buffers > in Vbuffer_alist, any buffer we carry from temacs that is > not in the alist (a.k.a. "magic invisible buffers") should > be handled here explicitly. */ > FOR_EACH_LIVE_BUFFER (tail, buffer) > { > struct buffer *b = XBUFFER (buffer); > b->text->beg = NULL; > enlarge_buffer_text (b, 0); > } > /* The " prin1" buffer is not in Vbuffer_alist. */ > XBUFFER (Vprin1_to_string_buffer)->text->beg = NULL; > enlarge_buffer_text (XBUFFER (Vprin1_to_string_buffer), 0); > > The " *code-conversion-work*" buffer doesn't seem to exist anymore and It does exist. From coding.c: Vcode_conversion_workbuf_name = build_pure_c_string (" *code-conversion-work*"); AFAIR, whether it exists in the dump depends on what happens during dumping, probably due to locale differences or something.