From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: master f2d2fe6fc8: server-execute: Initialize the *scratch* buffer Date: Wed, 04 May 2022 16:56:14 +0200 Message-ID: <87h76573e9.fsf@gmail.com> References: <165162665935.26821.8964921720746152690@vcs2.savannah.gnu.org> <20220504011059.9F667C009A8@vcs2.savannah.gnu.org> <87levhdfeh.fsf@athena.silentflame.com> <87y1zhe5qz.fsf@athena.silentflame.com> <87levh74eg.fsf@gmail.com> <87v8ule4p8.fsf@athena.silentflame.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="1771"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel@gnu.org To: Sean Whitton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 04 16:57:19 2022 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 1nmGRK-0000Hi-TQ for ged-emacs-devel@m.gmane-mx.org; Wed, 04 May 2022 16:57:18 +0200 Original-Received: from localhost ([::1]:60112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmGRJ-0002gM-HE for ged-emacs-devel@m.gmane-mx.org; Wed, 04 May 2022 10:57:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmGQN-0001ux-64 for emacs-devel@gnu.org; Wed, 04 May 2022 10:56:19 -0400 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:46765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nmGQL-0005I6-ON for emacs-devel@gnu.org; Wed, 04 May 2022 10:56:18 -0400 Original-Received: by mail-wr1-x42a.google.com with SMTP id i5so2368996wrc.13 for ; Wed, 04 May 2022 07:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=eGKbOm4YnYtmORv7MIW0od772x4Zy9Hsj1aVse+GHk4=; b=AzscQOZ0nxN3d0KqUx9ZP6tf59mmVEmqPxinimDl5A7HesGpCyW9scaVlKh0xYcrXJ sC5CMhGk5X1te34O0zSuDbDlBkb4iIXNXbuQcfBqAqY7O0hhRk1e80Fn094YidfGQWYQ gRcYEdBm2JctQOszx0XQtgH43m8cAmWcSQvbCLKd/YiK9cuCdhHx7Gzsc1nB8dYMZ0Iq a1DGXKzRweVKO2tcnw3O455S4ZeHVO+LBRm/y6bzWb21jhTHFrKao72a9DCbucf71yEr IZjED8nkyPjHXJZItBQRfxdWDfmr1GocVbaqG4Oc27K1A4P+HykuAnDdTn+V06XbKS7Y AFMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=eGKbOm4YnYtmORv7MIW0od772x4Zy9Hsj1aVse+GHk4=; b=UJGaorbwqeNb9kJfwU5KS9zofY8FZT5+e96Bvwh4Q7uxKfewUVcM8zhzg02MTiu35j ZSgOBhrm1vCD2XOTu2/PUxP+5XAz+muIfVA28WuuehjKh31N+wmV/rwHcZZeIf15OTvB f7zxwXy36ZHLzyqvheD8lOpjl7A2uyokrdLwTbExuoElR3rN0Gba5vFCU535pyeLs5El oteibZnpp8y46cM1RoGTNEjR9PYu57KXKdjeje2iECJkqLIbfP1LBMj2IQinTA3UWJOu PVLnROmCRW3ANucy+0ROJkxs4wr9iYZX2VpExjhvAeXerlaI7jEGp34TFaf1dGU58i/E qC1A== X-Gm-Message-State: AOAM532W/oZW904ouVmWT76OA/9fLCFc6qBbQ01XxITMn+b9CVrIdUx0 1AfsGIF1Bnkl7Nks82KT8mLyvNWk1TA= X-Google-Smtp-Source: ABdhPJy6db/KST/v/V+QJ2N7XdF1ewurZBPx2Z4S1Ebc6X4pYiPqc95MMXWxArm7U5Z40YL+hHN/bQ== X-Received: by 2002:adf:d22f:0:b0:20a:d8e7:41ae with SMTP id k15-20020adfd22f000000b0020ad8e741aemr16066868wrh.708.1651676175592; Wed, 04 May 2022 07:56:15 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:7623:b433:37be:1f20]) by smtp.gmail.com with ESMTPSA id l1-20020a1ced01000000b003942a244f4fsm3962958wmh.40.2022.05.04.07.56.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 07:56:15 -0700 (PDT) In-Reply-To: <87v8ule4p8.fsf@athena.silentflame.com> (Sean Whitton's message of "Wed, 04 May 2022 07:46:11 -0700") Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42a.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" Xref: news.gmane.io gmane.emacs.devel:289180 Archived-At: >>>>> On Wed, 04 May 2022 07:46:11 -0700, Sean Whitton said: Sean> Hello, Sean> On Wed 04 May 2022 at 04:34pm +02, Robert Pluim wrote: >>>>>>> On Wed, 04 May 2022 07:23:32 -0700, Sean Whitton said: Sean> In order to factor it out of the C as well I need to define it in= C with Sean> the DEFUN macro, right? Otherwise each C callsite would have to = use Sean> Ffuncall, which doesn't seem right. >>=20 >> You'll need to weigh the cost of implementing it in C against the ne= ed >> to use Ffuncall. For something like this that=CA=BCs not going to be= called >> a lot I=CA=BCd be strongly tempted to choose the easiest implementat= ion >> language, ie elisp. Sean> The C thing is in other-buffer and other-buffer-safely -- I think= those Sean> get called quite often? Probably. And it looks like it=CA=BCs only 6 lines or so of code, so maybe you can put those in a DEFUN. Robert --=20