From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t Date: Fri, 9 Apr 2021 11:59:26 -0500 Message-ID: References: <86wnvds38h.fsf@gmail.com> <83czx4c7dt.fsf@gnu.org> <86tuqefye3.fsf@gmail.com> <837dnabi1r.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="21170"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: ynyaaa@gmail.com, 46316-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 09 19:06:27 2021 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 1lUuaQ-0005No-Ki for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Apr 2021 19:06:26 +0200 Original-Received: from localhost ([::1]:44268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUuaP-0002wG-M5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Apr 2021 13:06:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUuUH-0000gF-CQ for bug-gnu-emacs@gnu.org; Fri, 09 Apr 2021 13:00:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39253) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUuUH-0002ps-3t for bug-gnu-emacs@gnu.org; Fri, 09 Apr 2021 13:00:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUuUH-0001Vb-3t for bug-gnu-emacs@gnu.org; Fri, 09 Apr 2021 13:00:05 -0400 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Apr 2021 17:00:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 46316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Mail-Followup-To: 46316@debbugs.gnu.org, stefan@marxist.se, ynyaaa@gmail.com Original-Received: via spool by 46316-done@debbugs.gnu.org id=D46316.16179875735629 (code D ref 46316); Fri, 09 Apr 2021 17:00:04 +0000 Original-Received: (at 46316-done) by debbugs.gnu.org; 9 Apr 2021 16:59:33 +0000 Original-Received: from localhost ([127.0.0.1]:50777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUuTl-0001Sj-1y for submit@debbugs.gnu.org; Fri, 09 Apr 2021 12:59:33 -0400 Original-Received: from mail-pf1-f170.google.com ([209.85.210.170]:42803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUuTk-0001SV-ET for 46316-done@debbugs.gnu.org; Fri, 09 Apr 2021 12:59:32 -0400 Original-Received: by mail-pf1-f170.google.com with SMTP id w8so1154713pfn.9 for <46316-done@debbugs.gnu.org>; Fri, 09 Apr 2021 09:59:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=lSdvDjWKJe47xNpwLzbYmuZQ1Lcg6sNWjMLDbfjwPKQ=; b=V2CFwkPHARSrNPRtQM1avUiIow7ThtXuHIFaHeGx6AzoK+oS+DYjDXFFg4sO1vDeEO XN8jBS4+3RT0Vs3d2lItcVE5jmrvSywL7ifptmNRxMxZJn1fGGVagANryhZpH/HWgPm9 /FlxCAxTIvcQb5XXLurPhjCcL4sRK0n3LIC6CZiSoIhNYsPX1t3RlXAwUycmD05IWOzk 9egvHuSzDktHbI6nO2NnFRSyGE6ROYUxsjT2ebiB3Qz5MzyIWPymSdxPjo0LXzgQLqxL OkLkv716aRBEEvJ7WjfI687NruLNwm/w1HHFDM4vwWEfXLREvSqyHTpOij/t35XN099t 0LHg== X-Gm-Message-State: AOAM533qvZqQssB5qfg8LO9s0SBA5wbZ0JgjC1xlkGBDPwZQeECi7dzs kOzN0zW9iLECGrtCAjP7L5rGPWIDKIz/B7vr/w7dDePW X-Google-Smtp-Source: ABdhPJwlxWHGotJ2fj6LbJQ9AS4ACynY9CHJ9XrcKT4gOL7nnXCmEtwLi6Isn+3pIudkD/Jd0e3fDxRxDRNu4cnDlWY= X-Received: by 2002:aa7:828f:0:b029:200:6e27:8c8f with SMTP id s15-20020aa7828f0000b02902006e278c8fmr13253357pfm.44.1617987566784; Fri, 09 Apr 2021 09:59:26 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 9 Apr 2021 11:59:26 -0500 In-Reply-To: <837dnabi1r.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 14 Feb 2021 20:50:08 +0200") 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:203770 Archived-At: Eli Zaretskii writes: >> From: ynyaaa@gmail.com >> Cc: 46316@debbugs.gnu.org >> Date: Mon, 15 Feb 2021 00:43:32 +0900 >> >> >> (let ((buf (generate-new-buffer "tmp"))) >> >> (switch-to-buffer buf) >> >> (setq truncate-lines t) >> >> (dotimes (i 200) >> >> (insert (format ":%03d" i)) >> >> (when (= 0 (% (1+ i) 100)) (insert ?\n))) >> >> (forward-char -1) >> >> (sit-for 1) >> >> (set-window-hscroll nil (window-hscroll)) >> >> (save-excursion >> >> (forward-char -100) >> >> (insert-char ?\n 10) >> >> )) >> > >> > Sorry, I don't think I follow: what exactly is the bug here? What did >> > you expect to happen ,and what did actually happen? >> >> The expression '(set-window-hscroll nil (window-hscroll))' should not >> have any effect > > That's not true: calling set-window-hscroll inhibits automatic > hscrolling, until point moves for some reason. > >> but if it is deleted from the form, auto-hscroll-mode works >> correctly. > > I think this is expected: the text your recipe adds is not around > point, so we don't re-enable auto-hscroll. > >> Not only point motion but also buffer modification should be checked for >> auto-hscroll-mode. > > If you want this to happen, don't call set-window-hscroll. This was tagged notabug and Eli explained that the behavior is expected. The bug that was here has been fixed. There also has been no further update within 7 weeks. I'm therefore closing this bug report.