From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13675: Extremely slow redisplay when lines are very long Date: Fri, 20 Oct 2017 19:10:32 +0300 Message-ID: <83bml1dclj.fsf@gnu.org> References: <83sj545e55.fsf@gnu.org> <23017.21788.768005.940877@eduroam-169-233-201-230.ucsc.edu> <831slye2sx.fsf@gnu.org> <23018.6971.899464.78569@kestrel.local> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1508515898 25142 195.159.176.226 (20 Oct 2017 16:11:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Oct 2017 16:11:38 +0000 (UTC) Cc: 13675@debbugs.gnu.org To: Mark Diekhans Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 20 18:11:34 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5Zt8-0003OH-Dm for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Oct 2017 18:11:10 +0200 Original-Received: from localhost ([::1]:54762 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5ZtF-0006MK-UX for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Oct 2017 12:11:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5Zt4-0006MD-Na for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 12:11:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5Zt0-0001E8-Ng for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 12:11:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43935) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5Zt0-0001E3-JL for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 12:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e5Zt0-0008Mt-DM for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2017 12:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Oct 2017 16:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13675 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13675-submit@debbugs.gnu.org id=B13675.150851585132150 (code B ref 13675); Fri, 20 Oct 2017 16:11:02 +0000 Original-Received: (at 13675) by debbugs.gnu.org; 20 Oct 2017 16:10:51 +0000 Original-Received: from localhost ([127.0.0.1]:52616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5Zsp-0008MU-AH for submit@debbugs.gnu.org; Fri, 20 Oct 2017 12:10:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5Zsn-0008MF-Px for 13675@debbugs.gnu.org; Fri, 20 Oct 2017 12:10:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5Zse-00014H-Nh for 13675@debbugs.gnu.org; Fri, 20 Oct 2017 12:10:44 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5Zse-00014C-Jh; Fri, 20 Oct 2017 12:10:40 -0400 Original-Received: from [176.228.60.248] (port=2910 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e5Zse-0004tM-1n; Fri, 20 Oct 2017 12:10:40 -0400 In-reply-to: <23018.6971.899464.78569@kestrel.local> (message from Mark Diekhans on Fri, 20 Oct 2017 08:50:19 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138772 Archived-At: > Date: Fri, 20 Oct 2017 08:50:19 -0700 > Cc: 13675@debbugs.gnu.org > From: Mark Diekhans > > I would be gladly work on a patch to ask a question or stop on > files that might cripple emacs. > > However, before one dives into work, it's important to know the > history and if there is existing work one can help with as opposed > to start fresh. That leads to annoying questions like mine. > > The meta issue is not a user wanting something for nothing. > It's that it's a lot of work for someone who is not a core > developer to come up to speed on an issue since the discussions > are not linked to bug reports and the mailing lists are very > hard to search. I don't think you have anything to fear, because AFAIR this particular approach was never suggested or discussed. So I'd start with a feature that read the first N bytes from the file, and if no newlines were found in those N bytes, pop up the warning and the question. A good place for this would be inside insert-file-contents, which is where Emacs reads files into memory. Let me know if I can help you further with making this happen. Thanks.