From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: Forwording symbols Date: Tue, 18 Jun 2024 14:29:57 +0200 Message-ID: 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: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1450"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel , Eli Zaretskii To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 18 14:30:57 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 1sJXzF-0000Ho-0X for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jun 2024 14:30:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJXyQ-00033c-Mt; Tue, 18 Jun 2024 08:30:06 -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 1sJXyO-000331-F8 for emacs-devel@gnu.org; Tue, 18 Jun 2024 08:30:04 -0400 Original-Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJXyM-0002gv-Lt; Tue, 18 Jun 2024 08:30:04 -0400 Original-Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a6f09b457fdso505302466b.2; Tue, 18 Jun 2024 05:30:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718713798; x=1719318598; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lDMNOv1IydcT2uORnVy6Buf1jDThEhbwRjRBX1RLL+g=; b=M/Ki2XA1sNRh5WzROwbbGX/FXVRhAErRLhiL7BdtBfKsiOFG9+B7wAhJM2zCIxkTes Kyksruh4SqUtNPZ5eUu5v8SGo/gAZbpGXL29QpWHlEgzD5hgsU0cZIKdKibBF8DEA6xu 0tJZ5enk1sXb7BJIThOyTXRsUYz0dOwuNRQfUy5mgzLJXt3qCWpvGHjPD01xNMzRNmsK y7Yyn295qW4s2OYqY/MUkYkPdYx5G2dC6V3ImepvSUcBDYZ5P9cnQlBBq+0o6EnXb9gG WTayv9VeTXgRS9814Ra6sTZiu9vONLVLqaVuc47JqoB8pk1AkIg5QHH0qoWj1zsBxEUX XbmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718713798; x=1719318598; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=lDMNOv1IydcT2uORnVy6Buf1jDThEhbwRjRBX1RLL+g=; b=r7mUtuHIUTMUvgG4bPRFaKFcqp4dTbqrWKgLjC45HjB/Gz7+vJGm3YD9uGn8BtLeOD /x6tT6DRLgn0PNBiOMGzouVq2waTWGb6zKVuKg60rVgxA+RH3f6gP3PtdoVc6Q2yRzHp Tiwy9bRiLHyVX2aqFp7tSi6AzR0GtshzddOa6SLiwy91k6xJIqCcnH5N2rlPtncOBFkF 3ArFqc8vUIS8nuu+K7z6T7hhg2S1b11+X5FQLVTINnfmbHdyvY8rz7GUEdxFp+8/4/Im gwdTIS4YoeBdGNqXe4XHm023VJ6x7WMuldMCuQLCXi1fXU1dT7ssiAVcfDS9IrUNzKHu 7r7A== X-Forwarded-Encrypted: i=1; AJvYcCVwRkLt1AN71oKHFXn0ze5OfDKY5QqfOVpC0YHnW1tgnRPzGnQWCUwpQsmUpwdocWsewzGjSndprJWcnZ4= X-Gm-Message-State: AOJu0Yy7gweTOON6fRLmFDT8BP6nLsOP/ATvXcDqhlDxngqY+KgHhBDq 8qKTUJk9bVQySr0/Vq6am5vmYx2HCSgn/EC3YZZO6HOBuk+iXLnVWH8DSw== X-Google-Smtp-Source: AGHT+IHwIASxKUYpGAmxXgDw+F6G0GSX3HGFvPuHUnXgoglycn09oEtgq0mJCeu9koZQV7WYGcR5NQ== X-Received: by 2002:a17:906:7215:b0:a65:7643:3849 with SMTP id a640c23a62f3a-a6f60de5f9bmr821358066b.73.1718713798330; Tue, 18 Jun 2024 05:29:58 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36c2f.dip0.t-ipconnect.de. [217.227.108.47]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f9bbc2136sm48321466b.123.2024.06.18.05.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jun 2024 05:29:57 -0700 (PDT) In-Reply-To: <87zfria224.fsf@gmail.com> (Helmut Eller's message of "Tue, 18 Jun 2024 14:05:39 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62f.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:320239 Archived-At: Helmut Eller writes: > On Tue, Jun 18 2024, Gerd M=C3=B6llmann 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: > > /* 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 =3D XBUFFER (buffer); > b->text->beg =3D NULL; > enlarge_buffer_text (b, 0); > } > /* The " prin1" buffer is not in Vbuffer_alist. */ > XBUFFER (Vprin1_to_string_buffer)->text->beg =3D NULL; > enlarge_buffer_text (XBUFFER (Vprin1_to_string_buffer), 0); > > The " *code-conversion-work*" buffer doesn't seem to exist anymore and > the only non-empty buffer is *Messages*, which contains 374 bytes > (pretty useless to have in the dump). The quoted code is only used when > dumped_with_unexec_p, but I was going to do almost the same. Interesting, thanks!