From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dick Newsgroups: gmane.emacs.bugs Subject: bug#57669: 29.0.50; C-n, C-p off under long lines Date: Fri, 09 Sep 2022 10:34:28 -0400 Message-ID: <87edwkhb0r.fsf@dick> References: <87y1uujufi.fsf@dick> <83k06effg6.fsf@gnu.org> <87tu5ijcqg.fsf@dick> <2e25ca87e3d9ee13ba3e@heytings.org> <87illxka46.fsf@dick> <8335d1dr39.fsf@gnu.org> <87mtb8hezl.fsf@dick> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6032"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.14 (Gnus v5.14) Commercial/29.0.50 (gnu/linux) Cc: 57669@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 09 17:15:48 2022 Return-path: Envelope-to: geb-bug-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 1oWfjP-0001PC-P9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Sep 2022 17:15:47 +0200 Original-Received: from localhost ([::1]:40158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWfjO-0001Zt-RN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Sep 2022 11:15:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWfhk-0000Mn-Es for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2022 11:14:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46334) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWfhk-0002u8-2p for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2022 11:14:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWfhj-0003Iy-Uf for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2022 11:14:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: dick Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Sep 2022 15:14:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57669 X-GNU-PR-Package: emacs Original-Received: via spool by 57669-submit@debbugs.gnu.org id=B57669.166273640312590 (code B ref 57669); Fri, 09 Sep 2022 15:14:03 +0000 Original-Received: (at 57669) by debbugs.gnu.org; 9 Sep 2022 15:13:23 +0000 Original-Received: from localhost ([127.0.0.1]:35020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWfh4-0003Gu-Sz for submit@debbugs.gnu.org; Fri, 09 Sep 2022 11:13:23 -0400 Original-Received: from mail-qv1-f41.google.com ([209.85.219.41]:34788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWf5Y-0002Dt-FV for 57669@debbugs.gnu.org; Fri, 09 Sep 2022 10:34:36 -0400 Original-Received: by mail-qv1-f41.google.com with SMTP id ml1so1370859qvb.1 for <57669@debbugs.gnu.org>; Fri, 09 Sep 2022 07:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date; bh=aD2rwKzgNg3AdihDCnGnIgRJp/KaZjvLmDEMSpz4BX4=; b=PdS5emOZaQexXutZ+X9fjwXzhREClE48MiIDHHcbl1GpxM9rtaccSrByQ9iTbEWS+v ZaVwqiAEud8NHg+q4yGjtYV9fI29UaUnwc5gl1mvhwoWSSV2NlI6O8Z1PCnfdgHQoN2W RRNc4xxU4M4723rp30605UDk56LgyRGop+4nC/PY2EP3ttaoCpnfmAe3qEKrP/C3T8e5 K7QrVmh7A9VpzugvrwxxHy7fJ0i29/81TKQF4TfzO61OMj6YCbuSxliAuzQ+nPxnTEVr 1yj072uHwSRA3UvRMBvaSCmmTOiCf8y4AsGUmFJSAjjboJL02spM8xIzAB7FOftNA3D3 ixzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date; bh=aD2rwKzgNg3AdihDCnGnIgRJp/KaZjvLmDEMSpz4BX4=; b=LtbGTK+wT4prjMRr52k3W6sFekhOwiIHCGPYx9kDkpa8vNILLaIixP+rGIxFo0nzOd wDHA/HckDazqyCaI3g6eELdTnmghaBlUlzli0qmdFvZVcputwH1C8bHds2VXGk46Zenw RxlCEZsJq/CMZlXbLka+quXMweIZ5jaHFf1pyuUUgVoYpn3LH0RHnxxk9L5odqJ30/0h UrvLPh/UtO/ELG1kATxFYGb16Umdp8R8cwRupSKdi1+sCNXEd5/TKVWdyOYOlsh8Akye S8Uffb5PSRMhQAZw47VPJkX2JB6v2CrOgkEQ7HQkmgySi5gwsksvNLo3wDo06gGHYqEI MG1A== X-Gm-Message-State: ACgBeo0Mb2bZFSExHU1NlclMHm/Lq5icUfg61wNaQp83eoNlXxyfkO5K NZJ01Nk+4FhoBKjje0xBhqU= X-Google-Smtp-Source: AA6agR7U2THsdekRRxV1VGqvG1nIdbEZHjQ7mDEVuUSKK9C4V0GK1YZ3JzYHhQ5ATbne6pZd9gRJog== X-Received: by 2002:a0c:b20a:0:b0:4ac:6f54:f94b with SMTP id x10-20020a0cb20a000000b004ac6f54f94bmr9779142qvd.21.1662734069704; Fri, 09 Sep 2022 07:34:29 -0700 (PDT) Original-Received: from localhost (pool-173-56-234-28.nycmny.fios.verizon.net. [173.56.234.28]) by smtp.gmail.com with ESMTPSA id z24-20020ac84558000000b0035ba4e53500sm331301qtn.56.2022.09.09.07.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 07:34:29 -0700 (PDT) In-Reply-To: (Gregory Heytings's message of "Fri, 09 Sep 2022 13:38:53 +0000") X-Mailman-Approved-At: Fri, 09 Sep 2022 11:13:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241987 Archived-At: > Try the same with a buffer with 10 lines, each of which is 10 MB long. I don't have the patience for 10MB. How about 0.1MB? OUTPUT: Under long-line-threshold=nil find-file ineffable Under long-line-threshold=10000 find-file 99s Under long-line-threshold=nil find-file-literally ineffable Under long-line-threshold=10000 find-file-literally 8s INPUT: src/emacs -Q -l cl-lib --eval " \ (let ((large-file-warning-threshold (truncate 1e9)) \ (long-line-threshold 10000) \ (file (make-temp-file \"baz\"))) \ (cl-assert (= 80 (window-width)) t) \ (with-temp-file file \ (dotimes (i 10) \ (insert (make-string (truncate 1e5) ?x) \"\n\"))) \ (dolist (config (list (cons nil (function find-file)) \ (cons long-line-threshold (function find-file)) \ (cons nil (function find-file-literally)) \ (cons long-line-threshold (function find-file-literally)))) \ (let* ((long-line-threshold (car config)) \ (note (format \"long-line-threshold=%s %s\" \ (car config) (cdr config))) \ (buffer (funcall (cdr config) file))) \ (if (null (car config)) \ (princ (format \"Under %s ineffable\n\" note) \ (function external-debugging-output)) \ (with-current-buffer buffer \ (show-paren-mode -1) \ (goto-char (point-min)) \ (princ (format \"Under %s %ds\n\" note \ (fround (car (benchmark-run \ (while (condition-case nil \ (prog1 t (call-interactively \ (function next-line)) \ (redisplay)) \ (end-of-buffer))))))) \ (function external-debugging-output))) \ (kill-buffer buffer)))) \ (kill-emacs))"