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: Sv: Opening multiple files in a single buffer? Date: Mon, 15 Jun 2020 06:58:04 +0000 Message-ID: References: <83pna23j1h.fsf@gnu.org> <53D2E172-0D7E-4440-84C7-8650B3AA7FCB@easesoftware.com> , Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="130041"; mail-complaints-to="usenet@ciao.gmane.io" To: Gregory Heytings , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 15 09:13:34 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 1jkjJG-000XjL-18 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 15 Jun 2020 09:13:34 +0200 Original-Received: from localhost ([::1]:47686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkjJF-0008Nq-1k for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 15 Jun 2020 03:13:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkjIv-0008NW-6t for help-gnu-emacs@gnu.org; Mon, 15 Jun 2020 03:13:13 -0400 Original-Received: from mail-vi1eur06olkn2013.outbound.protection.outlook.com ([40.92.17.13]:35991 helo=EUR06-VI1-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 1jkjIs-0002Tf-CC for help-gnu-emacs@gnu.org; Mon, 15 Jun 2020 03:13:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gxgPrtYvfQmrxTIPCZYhwpXNNeaw7WnTL1bUkl8zThAAOHuWa+rEPSIiY3cbdO+H+mW6usX3rGTPuFImXYP/JeoTyCuN4OVXMynsArCzRw1P/PaymUsoU3l1PhCyliGMWtvFinjidX4UPf7h+q8WgEj7Wmu3RqAoDphqliiOmBdgc0x2nuaB/IGcSjfifjWYhqdy5lp0HreWcbJehtCFOQKPhjMNCYUoSrSAUZBPZB7WyRXsfoLz30N81N4neKwb9PVtP1O9FG9eC3K0yJZzEB31DifQp2Ux8gp0B0gz+WcjiJBTy7Cm8hUhGb/e6WavIV58seXMbH7cWewGpWdAHg== 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=Z/hlcvEfk6W9+/tFpjTg4YtgNtJQr46xyhMXlG0wSpo=; b=fZY5u9yB/mhsOYcZI1SAb2o+HalcPt/IGxb15WXHkYPjD19nrEL9kIQHv+y6mSkxkw9GBTQX/H4Hx0jxQz2DBCBbFpPyhOUAwNAwKU2Nhx+w8Cy3oCnqJFK+wVh+B1xk/+N8MkujWGsrQ1K2NwS2sz+xu0q5/6OJUd9kyjNHVVkDT0lPOB/t88nzTUo8fDYCpMM2Ho9NAWT5A0IVaCVmu2oRYXz3Wsy9oHm0t9cVxevHpphHPkKCZqzI5m8afSk9EM642n+m8ZxsuaLZQppoK7kCkaunhy6WSFP3q7+e5JWJ5xSg10f0SBGk6dCKxhBLcrH2X9L6O2GWjvMwxAixag== 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=Z/hlcvEfk6W9+/tFpjTg4YtgNtJQr46xyhMXlG0wSpo=; b=q7x4Yg1EtRqdyhzhF2G5ynwN6MgngIT+onW+zUoE6MTcvXd7eZJMG5JSS+0OyMUKa5GzF8WSvneQs0iS5mbI6ROAgr6xvNwboWJTXXnQHNE6EpDy5Us7KmT5gEIOloTPo9h/l8GIWq3/wfdWBwmOKSmdWgR5gj3ZmhUTJj2pKhcwf1AQDmAX5Yoq4mQ+dHCm/oUGpYBtbBiWmmCEVgOWnkct8jHZHpyZ3+4kxYr8rvZp+ErGC+MSoVqo0JHkCqUJ1C7aCTSQ/oC8jK+ddJ/lyXtcyXDycf2yekUkudYBjpvjqBcIhl3dd2dd4mKIl7tW05Vz59SUUO5Efx074JP7jg== Original-Received: from DB8EUR06FT022.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::4d) by DB8EUR06HT037.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::381) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18; Mon, 15 Jun 2020 06:58:04 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:fc35::53) by DB8EUR06FT022.mail.protection.outlook.com (2a01:111:e400:fc35::287) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18 via Frontend Transport; Mon, 15 Jun 2020 06:58:04 +0000 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; Mon, 15 Jun 2020 06:58:04 +0000 Thread-Topic: Opening multiple files in a single buffer? Thread-Index: AQHWQZCx3UduhgSCzk6TiTeb8Tk8T6jYjcEAgACztCo= In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE x-incomingtopheadermarker: OriginalChecksum:244700B81BFB8F211E6520CDEB883BC55E81277DD07F61CBD442F24FA8B2D0A8; UpperCasedChecksum:BA3BFB4A3776FF4B40EAAC5D0FD5DFE7D00B5A4C02AB002EC323F03AB85DE8A9; SizeAsReceived:7458; Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [zWF6+WiCPGJMZuufkzoySt0aJ0FjVrpe] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 0646ff35-d95e-4659-c862-08d810f973a9 x-ms-traffictypediagnostic: DB8EUR06HT037: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ib1IAd4kCNBVMbr700xolnGcOoyTmNCuCCQbEX8MwJ9dloa04fQhXowGslsICKox5frrq1Qngi7rKqSrl82R14JYiX7WWcB52YISnmbg9wJKkL0mfoAvm8jBjkQx+nGubh5FDlLUVjxxmiLKY4DZgjFzf1b6k1CCpUdsCxwtgj5p741y6m1n9uXxmJ+yqeCktXJchHaJL6YXhIEFKPPclg== 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: 67LDtOnax3AnZUY4vaySbeC3/Q5WtgNePIOZlx4FfgdjG0naQnmFrsItTiXq6FJGrxt868eaQ95Y2DrbRA1B6RutWUqaA8OWEiHoh7rNwPkqvEPdasLJVIC4TSnjyBrOmVjehOtBuZCfYIQrgvQzxg== x-ms-exchange-transport-forked: True X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 0646ff35-d95e-4659-c862-08d810f973a9 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2020 06:58:04.3484 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR06HT037 Received-SPF: pass client-ip=40.92.17.13; envelope-from=arthur.miller@live.com; helo=EUR06-VI1-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/15 03:13:07 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:123390 Archived-At: That sounds great! ________________________________ Fr=E5n: help-gnu-emacs f=F6r Gregory Heytings Skickat: den 14 juni 2020 22:14 Till: help-gnu-emacs@gnu.org =C4mne: Re: Opening multiple files in a single buffer? > > Wonder how fast it would work with emacs src directory by opening all .h > anc .c files, some of which are 5k+ lines of code. If that is the case > for refactorisation and similar. > I just tried this. With "cat *.h *.c > all.c" in the Emacs src directory, the resulting file is 11 MB, for about 370K source lines. Opening and using that file, with c-mode, font-lock-mode, transient-mark-mode, hl-line-mode and display-line-numbers-mode (and a few others), works without any visible problems. I tried e.g. to insert some code at random places, to kill the second half ot the buffer and to yank it as its first part, to query-replace-regexp the 1652 occurrences of "E\([^ ]*\)s " with "Es\1 ", to narrow-to-region/widen, ... The Emacs process did not use more than 120 MB. Gregory