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#66216: 28.2; scroll-up-line doesn't work if there is a before-string overlay with newline Date: Tue, 26 Sep 2023 20:30:53 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39255"; 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 To: 66216@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 26 20:32:40 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 1qlCrP-000A4d-WE for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Sep 2023 20:32:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qlCqf-00033w-9B; Tue, 26 Sep 2023 14:31:53 -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 1qlCqb-000332-Cc for bug-gnu-emacs@gnu.org; Tue, 26 Sep 2023 14:31:49 -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 1qlCqb-00041N-43 for bug-gnu-emacs@gnu.org; Tue, 26 Sep 2023 14:31:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qlCqn-0007Lf-ST for bug-gnu-emacs@gnu.org; Tue, 26 Sep 2023 14:32: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: Tue, 26 Sep 2023 18:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66216 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169575308828196 (code B ref -1); Tue, 26 Sep 2023 18:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Sep 2023 18:31:28 +0000 Original-Received: from localhost ([127.0.0.1]:49722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlCqG-0007Ki-5l for submit@debbugs.gnu.org; Tue, 26 Sep 2023 14:31:28 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:41206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlCqC-0007KR-E6 for submit@debbugs.gnu.org; Tue, 26 Sep 2023 14:31:26 -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 1qlCpo-0002qW-KR for bug-gnu-emacs@gnu.org; Tue, 26 Sep 2023 14:31:03 -0400 Original-Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qlCpm-0003o4-F6 for bug-gnu-emacs@gnu.org; Tue, 26 Sep 2023 14:30:59 -0400 Original-Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-534848725e8so499428a12.0 for ; Tue, 26 Sep 2023 11:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695753056; x=1696357856; darn=gnu.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=iW8HsLOGEtslt994pLXhE6SV6GSiIANpIqqaEEzl9VY=; b=CnAPqLIRUXcqOjiIRQe7r7cI3HBDxILdA2NwGzBcAJ0pEbIsVbhstSgrQISLPC+3OX BO3d65jaLdlfJwDhMVbc3OX+wLHt6sS1Ros0rmI3UgcNkRleIWr2Znmxj6vEajscq1IB BbU2ajZj3p+Pnvn1ckW/Cqn3Uf1NhktJSr6uXdK5lUFMOtcM8G0wOl+FCa/9+mqOkwxx RztYUVpBeAcuMUoErZEpA4FxAC3vQ+RdThqIQc6xMS584AIzZ1JEjRZF7UTP2bEjDO3l raZoNn4iXxv1wtIZzeOtd4XjnY49CF/jgRcY0hhfZ8ZOC4YksxU70I6wJIbXX3ilR0Ah Xhrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695753056; x=1696357856; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=iW8HsLOGEtslt994pLXhE6SV6GSiIANpIqqaEEzl9VY=; b=LP7j8JRKYRYxLJW5Rpf7eHpLxbZiVWG3b+rc8lhGlicsvUkJOOa6+fYDaRC28tcupM d96sH4B5LAKiDtade3Sy8RgDqvO2JUjPi0IAP6Q6/RrGxmUtec3zHZMUvcPkg+Afq5wc sQrJQFSoa8MfpDtfBcUL7mMr/rAvx47CmFXZAKMy6X0U9428a6HlUxgsb06W5NRIUqhD TcC8E+N6T2Swj9c5DR6101Hq8/NbteR0Nw56XRKUHCYPAhQWNPsi1U831STfVH6Vw/tE BxEcMihEDFNuc9RLY7JBT5G9UkP0MpPXLZzJMfEADNNWG48PPMc/Ccx7W6LnjP2so6gv 1inA== X-Gm-Message-State: AOJu0Yyoj/HN7DfmL3y2Mm7/MFuoPWr/WyzUb0WIZP457wocil5HLc0E +1smjus2Owsgx7s3ncKnB+zjDd21Yio= X-Google-Smtp-Source: AGHT+IFHdoiaIzzODICdh14kTIvSvWblEv0Pj1OcNAYBNtqFUsYQEmlLZgYGvOKMaDAAzpdmsKZF7A== X-Received: by 2002:a05:6402:a4b:b0:532:c92f:3e1a with SMTP id bt11-20020a0564020a4b00b00532c92f3e1amr9719632edb.28.1695753055594; Tue, 26 Sep 2023 11:30:55 -0700 (PDT) Original-Received: from [192.168.8.4] (netacc-gpn-204-68-204.pool.yettel.hu. [5.204.68.204]) by smtp.gmail.com with ESMTPSA id u11-20020a056402064b00b0053120f313cbsm7085862edx.39.2023.09.26.11.30.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Sep 2023 11:30:55 -0700 (PDT) Content-Language: sv-FI Received-SPF: pass client-ip=2a00:1450:4864:20::535; envelope-from=geza.herman@gmail.com; helo=mail-ed1-x535.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:271389 Archived-At: This bug exists in 28.2, but on a not too old master as well. Repro:  - emacs -Q  - M-: (overlay-put (make-overlay 72 72) 'before-string "Fake line\n")  - this will put a "Fake line" at the 2nd line of the scratch buffer, (between the two default scratch buffer message lines)  - M-x scroll-up-line  - this will correctly scroll one line up  - M-x scroll-up-line  - this is the bug, no scroll happens Also, if the overlay is added at the middle of some line (not at the beginning like in my repro steps), then scroll-up-line will "scroll" until the overlay only, making the overlay to visually move the left side. Then further scroll-up-line commands won't have an effect.