From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: MPS: Forwording symbols Date: Tue, 18 Jun 2024 14:05:39 +0200 Message-ID: <87zfria224.fsf@gmail.com> References: <87jziod6yc.fsf@gmail.com> <874j9rcuf6.fsf@gmail.com> <87y173bda9.fsf@gmail.com> <87plsfbcd5.fsf@gmail.com> <87iky6boz7.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="27580"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel , Eli Zaretskii To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 18 14:06:31 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 1sJXbb-00073H-NA for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jun 2024 14:06:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJXau-0005AM-RV; Tue, 18 Jun 2024 08:05:49 -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 1sJXas-00056s-8n for emacs-devel@gnu.org; Tue, 18 Jun 2024 08:05:46 -0400 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJXaq-0006qf-8y; Tue, 18 Jun 2024 08:05:45 -0400 Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a6f8ebbd268so244407666b.0; Tue, 18 Jun 2024 05:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718712341; x=1719317141; 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=9npiZUWwPqok4fleDEMEC26HltlkvdxDAE7QXNkVuNY=; b=BZwgy2AB62D8+4adJt+tInkH3UQnteTifO3bR3PAAWbYAF5fFQ0RY8PK1AYWJjGgpr 1Vib4I8vvdqESKJTmWfMoV4gaOiaRGsHKYEeOcgH5uRnzbrmh0dLu+QS9KIpAmKVb3zu Z8c1hDSFrs5tpoRtZR8SKMoDOtRfZJ6XAqmzthV3xU9Ge47B+CvnGVKZN0X0cPtede32 CyuQl4nGQw4ilKAGj+DYGvehMpBaXBjijlmmZIv+iVA+0dIjstOV4AH2p3E2VnIIzJ64 mprZKAm2VK5hAQc7uw48U+uE88OXWsrT9c0N5gy9vipWXeuDyFuE2apHyzl2X0qrjXp2 eZww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718712341; x=1719317141; 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=9npiZUWwPqok4fleDEMEC26HltlkvdxDAE7QXNkVuNY=; b=HNmkhT7xTeIcNHemH8MqxjPU727kIXZ44rBlB4EulrqQfJS7wzpsfljuLeCXIufa1s YAq7voLQZW/M7zf/YZ4JqHVGqFwe7/NX3I01lIPM9ug/MT4DY9LB7nEjyGn8dClNaMYA m7Jp0T+Ty9CsgWH9rmVCwH7uk84HCLyeXKC3D+KhsJsuDnGvZ+Oy+f8BAkchsckBOmtK 6+mHABWFHXkto8b9rLpOLRSW7SNkaC2vzSMFX1hbzzHFfJBXkDTQhN2F0TeZcAuc7IiH +uvJFRr1Ta0JMT639fh4xSZHFYKWj51zmz5Tiu5u8v6J5k8IBAk8VkN+j4uMYDO4rrJo /nuA== X-Forwarded-Encrypted: i=1; AJvYcCUdF05g8xwxpGcDeyZPCNAoxZPUmvxVT0D2uaahxQivN1K4e/rqSufkU5NAn6L0Irx4eM4UEHY5apttcb8= X-Gm-Message-State: AOJu0YwrChLWc8nG7QhbjiLrUJajmYIdaQvGX/dKMe3J126pCkB4RQ0n JEjbAmOJPl7nCqTHGXpx07dRCTgwEsOPYRbcnHIJcJNtvKWx9PDhgV777Q== X-Google-Smtp-Source: AGHT+IFENqfhnGN0OhHgKDYRgSsAXWPpEhwqPkzScfj/k1FxC+EYBxIQU9+fIqK+mhS883nXz1IVVA== X-Received: by 2002:a17:906:27d0:b0:a6d:fbed:7953 with SMTP id a640c23a62f3a-a6f9506efe1mr146915166b.27.1718712341008; Tue, 18 Jun 2024 05:05:41 -0700 (PDT) Original-Received: from caladan (dial-189091.pool.broadband44.net. [212.46.189.91]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db620csm614904666b.71.2024.06.18.05.05.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jun 2024 05:05:40 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Tue, 18 Jun 2024 11:24:38 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=eller.helmut@gmail.com; helo=mail-ej1-x62e.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:320237 Archived-At: 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.