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 09:08:46 -0400 Message-ID: <87mtb8hezl.fsf@dick> References: <87y1uujufi.fsf@dick> <83k06effg6.fsf@gnu.org> <87tu5ijcqg.fsf@dick> <2e25ca87e3d9ee13ba3e@heytings.org> <87illxka46.fsf@dick> <8335d1dr39.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3949"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.14 (Gnus v5.14) Commercial/29.0.50 (gnu/linux) Cc: gregory@heytings.org, 57669@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 09 17:15:22 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 1oWfix-0000qv-Hr for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Sep 2022 17:15:19 +0200 Original-Received: from localhost ([::1]:46816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWfiw-0001Ko-73 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Sep 2022 11:15:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWfhk-0000Ms-Fy for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2022 11:14:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46333) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWfhj-0002u5-Nc 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-0003Ir-JF 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.166273640212575 (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:22 +0000 Original-Received: from localhost ([127.0.0.1]:35016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWfh3-0003Ge-1y for submit@debbugs.gnu.org; Fri, 09 Sep 2022 11:13:22 -0400 Original-Received: from mail-qk1-f170.google.com ([209.85.222.170]:40476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWdkc-0007w1-1z for 57669@debbugs.gnu.org; Fri, 09 Sep 2022 09:08:54 -0400 Original-Received: by mail-qk1-f170.google.com with SMTP id f4so1065847qkl.7 for <57669@debbugs.gnu.org>; Fri, 09 Sep 2022 06:08:54 -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=MIHrv6t0NXBfg7BEJKU1kV+ZixlKnZG4hN9K+cpv+q8=; b=nxlJWK2L9sFIBWnpSwnRh4NK8ugqO9cCkgh42NpVFf8yz7mSKDMorVawDmb9c7F/Gf EhO0Rhof/0Cp6W6AIeV5aG+zikELujtvSkmStEzTZuvOzc8CO6ViWGpv4Tq86VOGNA7y WVt+ks8uIfhAj5Sqb+x+DF5HQREr2c+eua1uTziCJaoUkiNECBAi5TslSorbmfwL3ylc fgUerecBAENpZPXVm6C+ZAnocGe72PUgmSu6aHhDQX5ok0mdLtH1R+yY/Pud7LKKqqBM YyQetYaz9ztNSvHbzih7LG7JZpOsFhpGonF6ztggA5oNlS3mvdcjLpWq5vu8VGa5gWUt kvMA== 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=MIHrv6t0NXBfg7BEJKU1kV+ZixlKnZG4hN9K+cpv+q8=; b=vD6fl3NbrhiJMZeuFRZOopZiSUtCMYu2ylJVQecF3UeKSZ1W5ous4SzYdfEygCb9fM gMhc3xjfhV1tqSUrXFSncndszCYqHy/PsVFKGxYdXBecGawG5nCMH6UYBH7Ne15+UHWz oN2FApki2zkRGkfKbRpefwMziGpmzqtupq4buIB9lXcvpG7jMaib+ohkxSZAT/fbLuDO 8kmnnsMx8uLCplUosAcadhmtUr8rTSA7+sf5pQ9TfelNIAtqtkKwYebgq+orJRWqmEMA 61fJXfzbY2i5m16VFmqJnmrCBeXpqfnpqGZu3Z/iMJwMneTVjfID01ZODEuTHapeg0x8 hHNg== X-Gm-Message-State: ACgBeo09SpgYThG2qeDHwjCAyDwaFVHBKsB9gcv1E1mTLbm0JlJoIkVT PvtduhPTu4v1kO7Lk26JnS4= X-Google-Smtp-Source: AA6agR4ewADNc//GCFDYXcMO5RBnSGy0rC6UVzrRB2al2b/aUlbPHqeWKj1OxZ6I61uA1Bp18dO9Vw== X-Received: by 2002:a05:620a:4087:b0:6bc:5e42:fee3 with SMTP id f7-20020a05620a408700b006bc5e42fee3mr10084023qko.551.1662728927490; Fri, 09 Sep 2022 06:08:47 -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 g3-20020a05620a40c300b006bbe6e89bdcsm398808qko.31.2022.09.09.06.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 06:08:46 -0700 (PDT) In-Reply-To: <8335d1dr39.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 09 Sep 2022 09:00:58 +0300") 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:241986 Archived-At: > because before the change Emacs couldn't cope with such files at all Oh, I know what you're trying to do. After all Commercial Emacs's original attempt at "making the best of a bad situation" was the impetus for your own poke at the pig. When 29 goes mainstream, just be prepared to auto-reply "Does your file have a long line?" when feckless users ask, "Why did C-n go to a weird column?" And to be clear, you're going from "ineffable" performance to just "underwhelming." As of cb036a7 you still need find-file-literally for some semblance of respectability. OUTPUT: Under long-line-threshold=nil find-file 62s Under long-line-threshold=10000 find-file 27s Under long-line-threshold=nil find-file-literally 30s Under long-line-threshold=10000 find-file-literally 4s INPUT: C-n through file of alternating short and long lines. src/emacs -Q -l cl-lib --eval " \ (let ((long-line-threshold 10000) \ (file (make-temp-file \"baz\"))) \ (cl-assert (= 80 (window-width)) t) \ (with-temp-file file \ (dotimes (i 100) \ (insert (make-string (if (zerop (% i 2)) \ 200 \ (1+ long-line-threshold)) \ ?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))) \ (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))"