From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Edit huge files in Emacs. Date: Tue, 29 Mar 2022 16:48:21 +0800 Message-ID: References: <83y20wai4n.fsf@gnu.org> <83wnggagfx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15413"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 29 10:49:14 2022 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 1nZ7XN-0003pO-V7 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 29 Mar 2022 10:49:13 +0200 Original-Received: from localhost ([::1]:54944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZ7XM-0000fD-De for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 29 Mar 2022 04:49:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZ7Wl-0000ew-SF for help-gnu-emacs@gnu.org; Tue, 29 Mar 2022 04:48:36 -0400 Original-Received: from [2607:f8b0:4864:20::e32] (port=37733 helo=mail-vs1-xe32.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZ7Wk-0000ji-4C; Tue, 29 Mar 2022 04:48:35 -0400 Original-Received: by mail-vs1-xe32.google.com with SMTP id 2so18383264vse.4; Tue, 29 Mar 2022 01:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BniO1xzGdEi5HALRL8JeKuxE2Jn3On6JK7XDzdypxTo=; b=NKx9JuqwH8RXklCcmAQKlnQOBW2opeVIkN5TW+movPG3RGOto3Q1iYmlLkJBeBPEbS 602+AJhOpR7msSgh5vR8aLh3O8ppzT3RjapvDY5sAK/8AqVPazgC9fZiHmf4oVKOI00E c8jloaiaB/hsWli251NQVo4r/UHfZ6SYAjyHEg7RSVS/A2e2JMlek2+783SdlU6hwq+j czMs8QDjeLB5YB5NDgslW8/fK2wMrDZNO1SZYvU/8EtGenJv8cXBSyloxoUyBH+ZWmKp u+DYtTzeuip8dUSJAqISVbwObzpkTEAzEUF0kRoZ4VR5kvU6YJ/CJD8DCRmf6nRwOZf/ 22fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BniO1xzGdEi5HALRL8JeKuxE2Jn3On6JK7XDzdypxTo=; b=74Pw9vGirrFPWrZMBmh/37KZgdmajQVtNwJ9IDlQhLJ3yfx1n4SueaQNqPkWctHGIp CldHDQ2C3jgokiJP9uh1TtCDZp8ut7KuO0xkn8tXujM5uYr/nzYTbHpX+TnqRpmOyqjV 7UYC68raWDtUDT1nQ6IE08fCcaIHlQyJIGnXuqxGv1fHaf60Hp7aPxp1R5pMAUMaklv7 Uv4t9LI0ebmATpMYZUb2Qv5w+oHkx/5rOuf+AVr7FUPjAaAZzqkgmVrD/Nlf1U8oywYh H+AdyJtZbNN+V7vEgtMQZQ/87Q8ha+iHL97od0JFM+OFvLkpfxk5UbpaUeeStkTT60PW ZffQ== X-Gm-Message-State: AOAM531vyoDAROjadIMnQ3aSj1LyK4X3xCYvf/jwzfsSB9RFjXHEKfcJ 24aLiG0OMYxsAJtRuCfX81TzRc2i3m5aX1ytUkRow2nbmvo= X-Google-Smtp-Source: ABdhPJxz47fOV+BkBK6eCOfXmVzQsDbMWcj1vxkbtFV+xQgN+XBNUbzOyhuqnGesEXa64O9PmhMJiEccvBRFCL2Oy0k= X-Received: by 2002:a67:2f92:0:b0:325:bc0f:e131 with SMTP id v140-20020a672f92000000b00325bc0fe131mr4355249vsv.1.1648543712615; Tue, 29 Mar 2022 01:48:32 -0700 (PDT) In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::e32 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::e32; envelope-from=hongyi.zhao@gmail.com; helo=mail-vs1-xe32.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:136807 Archived-At: On Sun, Mar 27, 2022 at 9:51 AM Hongyi Zhao wrote: > > On Sat, Mar 26, 2022 at 11:21 PM Eli Zaretskii wrote: > > > > > From: Hongyi Zhao > > > Date: Sat, 26 Mar 2022 22:56:31 +0800 > > > Cc: help-gnu-emacs > > > > > > I tried to visit it in "emacs -Q". When I drag the scroll bar, Emacs > > > stops responding. As shown in the attachment. > > > > That's a different file, not the one you originally pointed to. > > Strange, in this discussion, I always point to the same file [1] which > is extracted from DASG-Machine-Readable.zip [2]. > > > This one has some very long lines, which is known to slow down > > redisplay in Emacs so my advice is to enable the so-long-minor-mode > > after visiting it. > > Good. That solves the problem. BTW, according to the guidance here [1], I also tried with the following configuration in my `~/.emacs.d/init.el`, but it can't solve the problem discussed here: (global-so-long-mode 1) I am very confused about the difference between the `so-long-minor-mode` and the `global-so-long-mode`. [1] https://www.emacswiki.org/emacs/SoLong#h5o-6 Regards, HZ