From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Async rebuild package-quickstart after packages update? was Re: 28.0.50; Proposal: slightly more efficient package-quickstart.el Date: Fri, 06 Aug 2021 16:13:06 +0200 Message-ID: References: <24842.41537.969310.87574@retriever.mtv.corp.google.com> <83tuk4jusd.fsf@gnu.org> <83pmurhy9s.fsf@gnu.org> <83h7g2itxx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7802"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, raman@google.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 06 16:15:38 2021 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 1mC0dK-0001j9-JK for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Aug 2021 16:15:36 +0200 Original-Received: from localhost ([::1]:35896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mC0dJ-0004e7-BY for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Aug 2021 10:15:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mC0b3-0001RS-0z for emacs-devel@gnu.org; Fri, 06 Aug 2021 10:13:16 -0400 Original-Received: from mail-db8eur05olkn2027.outbound.protection.outlook.com ([40.92.89.27]:45088 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mC0b0-0001uB-Fg; Fri, 06 Aug 2021 10:13:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RrKw1NKfim1vPElViEpXO/RIRbgzxxWJxw2vYRjLVfZ0zhwbhjqSGB14ZwCWAnFV8tbmoFojdNiqNI6ndxac7Nf7h3syYbFMZIHmRp4pcdD8G2yFi7wyv8RTxgcsPxsa2o2b87RACSHnYEHzC894kKaFxUjBUwcpJDsbwJsrFCCIRwd6DtQKv2GK1O8z/SJ5g4DHQyC5KP7nF9/OyLIie8vILhbwZWNnj45XqaHseZ48QfZpFv6yueeDSBnHEcEsJR7KhA3vYE3mAMD+0mC7Gs3BGHdSzVoCrQuTcIaj0Fz9g8VcW6/3spDYstioXlb6rf2I9+zf8Q5IeoC4vd8Irw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VN2imKp6/ZXVFNWuSB24z102y1KBo3IXLOBrejUQBRc=; b=gz+Phl9zpCK81vm6G6OoUetF3b4mjGD5AfrOkD0J74IR7r+wjb/YFTrCQZhlpKaLC6FTkhjmxEMy/UlifchAgl2LDAO+zdzpKLb5srqBbcaNgfRaf/Gg739nyuvFHWDBLzJyFYSftaRS6paGxqni46yvp8Bz17m0XahICB+bbjV1x2dqOA5Q/ek+HaTBrhae3/OdYcYL0Pw2G4Udi39BXa8+yLeOEMaqYH41EwkEelcD4OZyNr/rnjEgAd3GqkEvcm3HyCjZzKeYn3CrKF1O4rUP4v4LHVZe0FIaFqJTmnBmZ6D/uZj5Wqm1pT58+coZEpa9RTn1mMALvl+xEMreYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VN2imKp6/ZXVFNWuSB24z102y1KBo3IXLOBrejUQBRc=; b=sOXRb7wyQFFrEEmE8S0nxftz0Z67vMcYQ4YYnWazXF9TIAkLJ0cluetPrsj9XYd30xQlEU6+DdvaptPhwGKqjCWHL7hREB0i8Digtz951Haxgj6MNNEuDhAmq7/ukuF7AFBQLiukux/+MvmDDz9b5rTJEfiYn3DRbxSsJ4XhqFu6xRZFvCPxTjNaX6o2LZ5N+unRm2aZasgh9LTaLG36qS6w/VKnS9+n9eZJ9LklDZbkk2oTObGQZLquUjEpyc/E8WH9prxPrtCzHk+4xNQHnUEO0As0eDBdv5qERTQkXa0fksQCzOOq+8PzQ7LIjv5xCFaeV3alazDlHrK5a2eLzQ== Original-Received: from VI1EUR05FT029.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::47) by VI1EUR05HT030.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.16; Fri, 6 Aug 2021 14:13:07 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc12::46) by VI1EUR05FT029.mail.protection.outlook.com (2a01:111:e400:fc12::382) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.16 via Frontend Transport; Fri, 6 Aug 2021 14:13:07 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:1338D094173A91748BC59AF91E59531CC5A3B5EB83C21FCB551B7AEA767D6241; UpperCasedChecksum:1AA8AF5AF4611D698FD61669C1AD383D74CE0A256AF4296032908ED0A1FE426A; SizeAsReceived:8476; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::6558:f201:6d1a:3f39]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::6558:f201:6d1a:3f39%2]) with mapi id 15.20.4394.019; Fri, 6 Aug 2021 14:13:07 +0000 In-Reply-To: <83h7g2itxx.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 06 Aug 2021 16:28:10 +0300") X-TMN: [TP4ZIImWiu9rDQuaZ98fGjL+/7IjQt6U] X-ClientProxiedBy: AM6PR04CA0051.eurprd04.prod.outlook.com (2603:10a6:20b:f0::28) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87czqqirv1.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6PR04CA0051.eurprd04.prod.outlook.com (2603:10a6:20b:f0::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Fri, 6 Aug 2021 14:13:06 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 91dedd64-8828-4c5f-e3ec-08d958e45022 X-MS-TrafficTypeDiagnostic: VI1EUR05HT030: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BM2J51Uk5M+vdnvCIFhlSAdAn2CHYsnWeC0ccC4PuGGIxbmFau35HGSAM3odJr0Zb94QykLCKeFRunvIoIxqeuTd+QjzFBNPThdMIObhZWnKVmNMQ135JLakrPJsS+89USWivolst2DiE01bRnQTU/q9Dj3J4YnbJK9dkj0Qat/DM8b8uVgeWGYK9RsogvM0QJSNTwETWgel4pW6PmdG6eko3hzQB0cyXTVBizahNY75b9kRqxjnV0dp1n9VekZPhmuoss5NcgFw5kzi/dbpKvIqy+y+n9vi+CQWnwc0G0cb9IlHMeHOd3BZB4mKxEcbLr9LdiZi04WXc08pYen4xFwzwPJS7t1XsbPxedbhNHYimx/h9vSxRwqCl+5499qSprLpW6xuv+GvlSzzXbJ4GmKjD5SOJaT0+Q6luPJ0fVwu/Mp7fTzftfrPjcMeKPoc X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xy/Bwm2QIJjJlG769yaSSV982Gy3l7E6wvjfBlLOoZftunN3k+lBi+Dc1PWhHF+k3cAw9wi7buZrRkH0iTWBNSkjAETJoURGIjIxEY+KPVnTWu6lFoXRcrQTHU50pWwuN+XlDhl/TI22gAfSub/M1A== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 91dedd64-8828-4c5f-e3ec-08d958e45022 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2021 14:13:07.2924 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR05FT029.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR05HT030 Received-SPF: pass client-ip=40.92.89.27; envelope-from=arthur.miller@live.com; helo=EUR05-DB8-obe.outbound.protection.outlook.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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:272135 Archived-At: Eli Zaretskii writes: >> From: Arthur Miller >> Cc: monnier@iro.umontreal.ca, raman@google.com, emacs-devel@gnu.org >> Date: Fri, 06 Aug 2021 15:20:19 +0200 >> >> >> Why do you even care for -Q option there? You would like to do it async, >> >> so just start the process with user settings and forgett about it and >> >> let it chew until it's done. >> > >> > Starting "emacs -batch" with user settings could easily fail, since >> > many settings in the init files are for interactive sessions, and will >> > signal errors when done in batch mode. >> >> Aha. Ok. Fair enough. But why runing in batch mode at all. >> >> Why not start normal emacs server process on another socket and >> ask it to refresh quickstart file form another client? Two processes, >> but no tinkering needed? Would that work? > > You mean, start a new interactive session, open an Emacs frame, run > all the customizations, including perhaps restoring the last session > via desktop, etc.? No, start new emacs server proces on it's own socket. Yes, the point is to run user init file, since you said batch mode does not do that. So what if interactive settings are re-read? It is async proces, and that is what I said a second or two extra, who cares? I don't think you need new frame. I don't remember if new emacsclient process is needed to just send it message over socket to eval (package-quickstart-refresh) or not, but even if it is needed, it does not matter. I don't use to do this so I don't remember deatisl of the call, but wasn't there some thread with some guy running multiplse servers for evaling completions like not so long time ago? > Doesn't sound right to me. Why? At least it is sure user session will be the same, and the extra time to load emacs does not matter in this case. It is just a pragmatic approach.