From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.help Subject: Re: Opening multiple files in a single buffer? Date: Sun, 14 Jun 2020 07:29:58 +0200 Message-ID: References: <83pna23j1h.fsf@gnu.org> <53D2E172-0D7E-4440-84C7-8650B3AA7FCB@easesoftware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="60250"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Gregory Heytings Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 14 07:45:31 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1jkLSU-000FaN-Qg for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 14 Jun 2020 07:45:30 +0200 Original-Received: from localhost ([::1]:60094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkLST-0001XR-Sf for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 14 Jun 2020 01:45:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkLS8-0001XH-H3 for help-gnu-emacs@gnu.org; Sun, 14 Jun 2020 01:45:08 -0400 Original-Received: from mail-oln040092065032.outbound.protection.outlook.com ([40.92.65.32]:38982 helo=EUR01-HE1-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 1jkLS5-0007Ir-Jn for help-gnu-emacs@gnu.org; Sun, 14 Jun 2020 01:45:08 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jsY3VwrWKznNS3nxAVIBePhUNS7Rf3iQx5aymAkMwhO2153adwFGuLlFv2JrWXYLu7JO0D2oB0PNTIg+xWpglf19g+8PAahwWTB7WkpAsSptodJAIQVHef1Xk3reBw7ISbkZUFnes7OcBZ0k/QUtvbLg7q2wbbBkt4gb7xf2uWbzXQbYN3Caarg9A0dud4gxFaGf9ZDde5Fqmyc1G6GbDvY5lmyqObmNNrq4KhL/CvuPrhaYwWrlc5qUjAH0/99cdcI237P4Q1vWovJwQ2phyg8E0QsOiq4KplGlORhbragoNi6rcvpMG+In/rFu7Jjal27F2nO/0Md1caUKU3PqSw== 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=ZVXgtfXYWNs9XnY4slE9sD4wuj8H/2E/ju89GunqUdA=; b=liD84jzbUae4nNhVqJMt+YoBtj692fPAh3KewQmRqMQQnOu/rID57oUItx5npvucb1mF3IbAkGLFudtEvMUv17EBNuVa9oNaAE/3CEs2jhGEWoTHvUP6ZQZiWZp0uRpxnwqLqMwxLPGR033yezg2MqDIZum2kNv+oPNB45yGRffxTcAIqB5+PXqlkwvFz3s0JZ/RN9dP5JJ8Gln0ZoHOrozTPrzkWevAHLAT3nUmb4OPyBTgEpopVMw/ixtqLMasDyg8yCODjeWvatHQBUKCfyT1taJ/DU71TEiCsulK9l7ksFrjNXOrOYyPIxlOYbyfkEXpXUlfN/M/bM3XZpgRYw== 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=ZVXgtfXYWNs9XnY4slE9sD4wuj8H/2E/ju89GunqUdA=; b=Y81f9qP1y4LdVlVbwx+JQQWsiM4syD8R6AaN9wNr4L9m64/gCPRhJ9MLI1PV3RFgiOfqdjXu9GSxWslmDSgt2L6Jlvhs5I5UKOR9wBEKKNJWxPtoePt67MSLE/mbIKadGuyxoKmJ+PJToQy52xIgLhbwO3JHA9j/ZaFyagdND8t/A7mGOwBKAIy2C/wPvY83ohBhHQputVnVISS4RXp9LK7/We6GZ8S9erwYrLHV33PFoIN5PnnzRzovkIqbhmpvvde+ewT8qSQXv0A0H48AI72IffheqkJu42Xskw2INSZlvCPPtG0adNaS4/OQAdpL+MDz9s+stjxvoQmUUdQVlw== Original-Received: from DB5EUR01FT058.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e1a::50) by DB5EUR01HT187.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e1a::317) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18; Sun, 14 Jun 2020 05:30:00 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e1a::43) by DB5EUR01FT058.mail.protection.outlook.com (2a01:111:e400:7e1a::302) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18 via Frontend Transport; Sun, 14 Jun 2020 05:30:00 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:B2CC2A46C32AFF1D3FCCE55CF24AF973F7F891AA33583098FEABB1E6476072C9; UpperCasedChecksum:25242CAB63C0064D46F4F05A8D940C9DF71DE8C07A3E8992C90AE0AEA9B382F2; SizeAsReceived:8956; Count:48 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::485f:2120:63bb:92c]) by VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::485f:2120:63bb:92c%7]) with mapi id 15.20.3088.028; Sun, 14 Jun 2020 05:30:00 +0000 In-Reply-To: (Gregory Heytings's message of "Sat, 13 Jun 2020 20:42:47 +0000") X-ClientProxiedBy: AM6PR08CA0001.eurprd08.prod.outlook.com (2603:10a6:20b:b2::13) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87d062usdl.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6PR08CA0001.eurprd08.prod.outlook.com (2603:10a6:20b:b2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18 via Frontend Transport; Sun, 14 Jun 2020 05:29:59 +0000 X-Microsoft-Original-Message-ID: <87d062usdl.fsf@live.com> X-TMN: [5+bwHuTqyzcVPI+IYNL2vRiD4dvmEITI] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 64479099-ff87-40c1-e73d-08d81023faff X-MS-TrafficTypeDiagnostic: DB5EUR01HT187: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FjHvL674jqjyVwnIs9xf/q7EqBCmRXHMtKn/WlEDjplBHjhqM+tblxZ0G9nKsopqrSReUcy7aV3uNSsxJlzel/O3h005KMQ0NuGWMBnpQgkKZWPWPcvh/C6z6xtj5kzsvxf54ZfrKRrxB0DytQhOQxJifJqeAqJ3e/qjTf8nqJRiyGWm9v1PXDyhQqF6EWfRQjQ/jk8sGBQCDI2+AqxkXJiLDB56NGbfM+5zmP69TUv/6ynbZsLkLO7uCtsYF1Uh X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR06MB4526.eurprd06.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; X-MS-Exchange-AntiSpam-MessageData: gnKCYA3ZEulVsV75iv4yh3YnYarWLo6/1FFznIAmXVlv5u8df8bBHaxXrr8SMF6wf9nmmidIP8wfy0G2TaSXu6lETCB5DUyEb9OIhFv9OeffB1vBmYU2m+b/X6gjXGDtuPWfgSlJoA7dG/bYWQH93w== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 64479099-ff87-40c1-e73d-08d81023faff X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2020 05:30:00.2315 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT187 Received-SPF: pass client-ip=40.92.65.32; envelope-from=arthur.miller@live.com; helo=EUR01-HE1-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/14 01:45:03 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -37 X-Spam_score: -3.8 X-Spam_bar: --- X-Spam_report: (-3.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123384 Archived-At: Gregory Heytings writes: >> >>> Indeed, but that's not the point. As I said what I'm proposing is a wa= y to >>> do some things more easily (for some users). Everything that could be = done >>> with such a feature can already be done in other ways. I don't use the >>> menu-bar, the tool-bar, customize, or the menus on the mode-line. But I= do >>> not consider that they are useless. All these features make it possibl= e to >>> do things more easily (for some users), that can already be done in oth= er >>> ways. >> >> Before you decide to dive into this, I would suggest doing a test run by >> writing a simple script to cat the files together with a separator and=20 >> edit that file with something like search and replace or bounce around i= n >> various places making edits. I have vague memories that when buffers ge= t >> extremely big, emacs slows down considerably but my memories are not cle= ar >> enough to recall the exact circumstances. >> >> Perhaps one of the emacs maintainers can jump in and comment. Is emacs = going >> to be more efficient with several =E2=80=9Csmall=E2=80=9D buffers rather= than one extremely >> large buffer. Some of the people commenting are wanting to load up an e= ntire >> project into a single buffer. As I recall, that is going to be very >> unfriendly to use. >> > > That's not correct. On my laptop, I can easily edit a 100 (one hundred) = MB text > file, Emacs is almost as reactive as with a 1 KB text file. Of course so= me > operations take more time, e.g. a query-replace-regexp on the whole buffe= r, but > from what I see (on my laptop it takes about four seconds, with a regexp)= I > doubt that it takes more time than hundred query-replace-regexp in a 1 MB= file, > or for that matter than doing this with dired on hundred 1 MB files. > > Gregory I think it depends on content in those files as well as of size. Try to edit some of those two files: https://github.com/amno1/Plato , possibly Plato.org. Don't just display them, but try to actually put some text note in it or add/remove some whitespace or whatever. Jump to some paragraph and insert a new line and see how long it takes. Then try to do same in Atom text editor. My Emacs takes quite some time even to add a white space char while Atom has not problems whatsoever. I run on 6700K i7 cpu + 32 gig 3000Mhz ram. I don't know what the problem is, if it is just my Emacs config or actually underlaying data structure (Gap buffer vs linked structure optimiz= ed for changes - their "Superstring").