From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#46316: 27.1; wrong horizontal scroll with truncate-lines value t Date: Mon, 08 Feb 2021 03:54:32 +0900 Message-ID: <86tuqn3dzr.fsf@gmail.com> References: <86wnvnm79l.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40239"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46316@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 07 19:55:21 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 1l8pDL-000ALL-3d for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 19:55:19 +0100 Original-Received: from localhost ([::1]:60278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8pDK-0001yf-69 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 13:55:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8pD6-0001yO-3g for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 13:55:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8pD4-0001Tn-83 for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 13:55:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8pD4-0006fz-7N for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 13:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2021 18:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 46316-submit@debbugs.gnu.org id=B46316.161272408525635 (code B ref 46316); Sun, 07 Feb 2021 18:55:02 +0000 Original-Received: (at 46316) by debbugs.gnu.org; 7 Feb 2021 18:54:45 +0000 Original-Received: from localhost ([127.0.0.1]:48795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8pCm-0006fP-Sw for submit@debbugs.gnu.org; Sun, 07 Feb 2021 13:54:45 -0500 Original-Received: from mail-pj1-f49.google.com ([209.85.216.49]:40654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8pCk-0006fB-Ll for 46316@debbugs.gnu.org; Sun, 07 Feb 2021 13:54:43 -0500 Original-Received: by mail-pj1-f49.google.com with SMTP id z9so7514525pjl.5 for <46316@debbugs.gnu.org>; Sun, 07 Feb 2021 10:54:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:subject:in-reply-to:from:date:message-id:mime-version; bh=sNigeWU16djA/Yc5GztHJWY2D788yX9wy4ck5fpv+oQ=; b=D3wuJRp9vcWMqRYOCXufCLPVyOFkaDe8o1chqTfOP+o1Keiz2Qsf4ooF/GeTnfoa19 B/DwGDP993bgsoobvuRloyVL6/Z8fzJEdcerU7cW3H0+MV0jRzwvr+3xz0C4rIROfo22 W48f0fYJg4eVkuoXx9llnTNVhuhIIsYrzQAaqtS6hXLol/lxcdhm7AWcPlDj5ry5Y/KP 0CauVRCDI8drVvg42mwhmqaF/V6coLuZff4qjQvonYJO6ilJOXX+IgC2VTKoWm2lKAPe h8yjaH8/pU1fNPdtlilHQcoYtbtHI0uia5aCs9H+bh1vmEm5DYYtQXWdr+STHuitDExe uqTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:subject:in-reply-to:from:date:message-id :mime-version; bh=sNigeWU16djA/Yc5GztHJWY2D788yX9wy4ck5fpv+oQ=; b=EdwnzIpNhLFnKKbocrinuvNwzrc8hLTZRQejoHg804zvJ6X4Ir4gh7SqKmAbcC+6V7 8YiYhzonzA582CHxk86zdLDgTQuCeGWExMpM+fZvwl4DYq0/aQFVeaIPHxdXApLbBCUD goxWiCAwkCigRWK9rBiheqq8kRQ4wOOWbx4VSC8ZwHdm0rXV5h/z2yrmhtTl/A05Qs9A KShsIZmDud/ob53tSGHoiZuTtqyaPkffjhLAqDYXOVnAsnYabwj/qXy4ShHsE1jtpDPw HqM6aIGm61iMvD8eitBQAmokvR1/FY0ZMkXrt+2AjCkhfMrhEmhfppoHxMC85TwB+Feu ODjw== X-Gm-Message-State: AOAM531s+KtEkSjItBrw26oft+4wzkB1F7y1Ha89UWzSVjxh7K2fCR0a wD03YeFU4jOnteHuCEULlkJhgq82TAM= X-Google-Smtp-Source: ABdhPJyMuJETiJjKaRQrbTe2iizfokLQT6GYT2FHHNNP9cYMUoR8Ug15nS2potizcDFBbIdrNpIJRA== X-Received: by 2002:a17:90a:7e8d:: with SMTP id j13mr13206050pjl.37.1612724076607; Sun, 07 Feb 2021 10:54:36 -0800 (PST) Original-Received: from HP (east42-p109.eaccess.hi-ho.ne.jp. [219.121.173.110]) by smtp.gmail.com with ESMTPSA id j3sm6937403pgk.24.2021.02.07.10.54.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 10:54:36 -0800 (PST) In-Reply-To: <83mtwfnb6l.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 07 Feb 2021 17:34:58 +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:199541 Archived-At: Eli Zaretskii writes: >> Cc: 46316@debbugs.gnu.org >> From: ynyaaa@gmail.com >> Date: Mon, 08 Feb 2021 00:28:57 +0900 >> >> > I don't think this behavior is a bug. We only change the hscroll of a >> > window when point moves, and in these two scenarios it doesn't move. >> > I see no reason to assume that the user will necessarily want to have >> > the window scroll, instead of keeping it at its current horizontal >> > scroll. >> >> In the case of isearch, the hscroll is changed without point motion >> when isearch fails. > > Yes, because the focus changes into the minibuffer, where we show the > failure message. > >> In the case of image-toggle-display, the hscroll is changed without >> point motion when typing 'C-c C-c' for the first time. > > Yes, and for a similar good reason. When emacs misses the appropriate hscroll, typing 'M-: t RET' changes the forcus into the minibuffer temporally, but does not change the hscroll of the original buffer. > I don't really understand the insistence: you can easily cause the > window to auto-scroll if you move point by one character. Emacs > cannot possibly guess which part of the display is more important for > the user in situations like this. I only want auto-hscroll-mode to scroll buffer automatically. Otherwise I will be very confused. If a searched string is not displayed in the window, I might think the searched string does not exist in the buffer. If an image is hidden, I might think the image is a solid color same as the emacs background color.