From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Herman@debbugs.gnu.org, =?UTF-8?Q?G=C3=A9za?= Newsgroups: gmane.emacs.bugs Subject: bug#66764: 29.1; Emacs scrolls for "(goto-char (point-max))" instead of jumping Date: Fri, 27 Oct 2023 11:43:28 +0200 Message-ID: <289aa452-b1f1-f0fb-dcfe-496af2110a78@gmail.com> References: <83jzr9fdh0.fsf@gnu.org> <807a1bd5-6477-cc36-088f-efcb782ccb99@gmail.com> <83a5s4fwih.fsf@gnu.org> <831qdgftja.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11740"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Cc: Gregory Heytings , 66764@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 27 11:44:44 2023 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 1qwJOV-0002xM-Uy for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Oct 2023 11:44:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwJOL-0002lN-S1; Fri, 27 Oct 2023 05:44:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwJOJ-0002lB-78 for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2023 05:44:31 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qwJOI-0004FJ-Nu for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2023 05:44:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qwJOn-0000xK-N7 for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2023 05:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Herman@debbugs.gnu.org, =?UTF-8?Q?G=C3=A9za?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Oct 2023 09:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66764 X-GNU-PR-Package: emacs Original-Received: via spool by 66764-submit@debbugs.gnu.org id=B66764.16983998503591 (code B ref 66764); Fri, 27 Oct 2023 09:45:01 +0000 Original-Received: (at 66764) by debbugs.gnu.org; 27 Oct 2023 09:44:10 +0000 Original-Received: from localhost ([127.0.0.1]:35091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwJNx-0000vr-RJ for submit@debbugs.gnu.org; Fri, 27 Oct 2023 05:44:10 -0400 Original-Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:52408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwJNv-0000vc-9x for 66764@debbugs.gnu.org; Fri, 27 Oct 2023 05:44:08 -0400 Original-Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9bdf5829000so300213566b.0 for <66764@debbugs.gnu.org>; Fri, 27 Oct 2023 02:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698399810; x=1699004610; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9bRN2Nz5NdrfaeguNEhHj59H5k8VhU0Jnh1y0yVdi3A=; b=QoVvjYtPNL1iTE5sT9Ikh+ayw+quwOMLmnRrqLwIIq01TuaJqMYsDVwR0tGrNzT0tQ oZwCX8BexjxqGDP9j8HuY9OVLn2RfRoJMr9rsH3gU6QfM60cPrPTJ6ghvKUw7FVN9NP5 1XTmWZPZ5Nt5ILO8VKrhCKqugyQZpnIADcNgaTJZ43okSDnRdQeCUzi973UgAb/LTlQm ulFnrq4ef0re17NPhNwj/+rQycfO57NHGE7sW58bM+lbUK+yO5BJO086V637KlAoYiJ5 5kar58222CGi08yuc90pZFRizYA4Orsj2xiEUQzyLWetOSCbv8YFVmsSxkzjlft8oGzP lHMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698399810; x=1699004610; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9bRN2Nz5NdrfaeguNEhHj59H5k8VhU0Jnh1y0yVdi3A=; b=UoC1u9mC2uXRSLpSEVE8h/ddt6+2aWzfD6nS0eUOqrLPV3SkO23IkYCrlJD/3doBTK SRxJJOTHtH46rPm4IiuU74+mKZfL6uE5FAY2k7VjG0g8WJBOhzu48S+no30o91fY6UJa Fou0n+NSdhdFelDRmjzetFO1nRlBRUq5rcJFbQ/OBIICdgBzwxJpq2NxScbyswpjrh2Y eDsRJDI28WFrpoDt5vv8ihlt8haY30H7BcOIJ0PdmEntsfNqIfoJiHOFcs2C62Qg3og4 0IbCOfmMq26Vqm1LN4ybjlVYGiZNXx/skAyO8Q7ShnqTROyWsl8/7skuCwMn0bSXnv8K 46Lg== X-Gm-Message-State: AOJu0YxqiughH6qR9f77leAnX48nkWtpROTXlfaYGrq0vqQoWMfHWxdb 1aNd2xEdZtVlSzlXQSIptQhUf9SVjF4= X-Google-Smtp-Source: AGHT+IGvj3RyLReUTdRX4uVpD/C9IMp0FZQvgFjGCwDzMUeYc85+gXoz0kPXR5Xlu6YgX0WtqWdWWg== X-Received: by 2002:a17:906:daca:b0:9ae:3d17:d5d0 with SMTP id xi10-20020a170906daca00b009ae3d17d5d0mr1648106ejb.31.1698399809971; Fri, 27 Oct 2023 02:43:29 -0700 (PDT) Original-Received: from [192.168.8.4] (netacc-gpn-4-226-97.pool.yettel.hu. [84.224.226.97]) by smtp.gmail.com with ESMTPSA id n11-20020a170906b30b00b00989828a42e8sm905253ejz.154.2023.10.27.02.43.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Oct 2023 02:43:29 -0700 (PDT) Content-Language: sv-FI In-Reply-To: <831qdgftja.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273356 Archived-At: On 10/27/23 08:50, Eli Zaretskii wrote: > AFAIU, the font-lock-keywords setting above causes the display engine > to call this function every time it moves across some chunk of text, > which slows down redisplay. This shows with scroll-conservatively set > to a large value because Emacs then attempts to find the minimum > amount of scrolling the screen in order to bring point into the view. As far as I understand, if the buffer is fully font-locked, then this function won't be called again, unless the buffer is modified. So this shouldn't be a problem. But even if this is not true, I've been using this setting for a long time, I didn't notice any performance problems with it. > It is a known fact that modes which use advanced font-lock settings > should adapt to the long-line situation (when the function > long-line-optimizations-p returns non-nil) This setting comes from a package named hl-todo. I believe it is done this way so it only highlights TODO items which are in comments/strings. Maybe there is a better way to achieve this, I don't know. > so I think you should > modify your font-lock settings to avoid this problem in that case. I turned off long-line optimizations instead, because it causes other problems as well (mentioned in my previous email).