From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.help Subject: Re: Opening multiple files in a single buffer? Date: Sat, 13 Jun 2020 20:42:47 +0000 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; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="17883"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.21 (NEB 202 2017-01-01) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 13 22:43:20 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 1jkCzn-0004YI-QZ for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Jun 2020 22:43:19 +0200 Original-Received: from localhost ([::1]:53716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkCzm-0007hr-Rf for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Jun 2020 16:43:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkCzT-0007hk-8Z for help-gnu-emacs@gnu.org; Sat, 13 Jun 2020 16:42:59 -0400 Original-Received: from mx.sdf.org ([205.166.94.20]:61682) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkCzQ-0000qZ-SB for help-gnu-emacs@gnu.org; Sat, 13 Jun 2020 16:42:58 -0400 Original-Received: from sdf.org (IDENT:ghe@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 05DKgoC6027126 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Sat, 13 Jun 2020 20:42:50 GMT Original-Received: (from ghe@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 05DKgoup005007; Sat, 13 Jun 2020 20:42:50 GMT In-Reply-To: <53D2E172-0D7E-4440-84C7-8650B3AA7FCB@easesoftware.com> Content-ID: Received-SPF: pass client-ip=205.166.94.20; envelope-from=ghe@sdf.org; helo=mx.sdf.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/13 15:22:16 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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:123383 Archived-At: > >> Indeed, but that's not the point. As I said what I'm proposing is a=20 >> way to do some things more easily (for some users). Everything that=20 >> could be done with such a feature can already be done in other ways.=20 >> I don't use the menu-bar, the tool-bar, customize, or the menus on the= =20 >> mode-line. But I do not consider that they are useless. All these=20 >> features make it possible to do things more easily (for some users),=20 >> that can already be done in other ways. > > Before you decide to dive into this, I would suggest doing a test run by= =20 > 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=20 > in various places making edits. I have vague memories that when buffers= =20 > get extremely big, emacs slows down considerably but my memories are not= =20 > clear enough to recall the exact circumstances. > > Perhaps one of the emacs maintainers can jump in and comment. Is emacs= =20 > going to be more efficient with several =E2=80=9Csmall=E2=80=9D buffers r= ather than one=20 > extremely large buffer. Some of the people commenting are wanting to=20 > load up an entire project into a single buffer. As I recall, that is=20 > going to be very unfriendly to use. > That's not correct. On my laptop, I can easily edit a 100 (one hundred)=20 MB text file, Emacs is almost as reactive as with a 1 KB text file. Of=20 course some operations take more time, e.g. a query-replace-regexp on the= =20 whole buffer, but from what I see (on my laptop it takes about four=20 seconds, with a regexp) I doubt that it takes more time than hundred=20 query-replace-regexp in a 1 MB file, or for that matter than doing this=20 with dired on hundred 1 MB files. Gregory