From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#74924: 29.3; Buffer showing manpage jumps back to beginning Date: Tue, 17 Dec 2024 14:34:37 +0100 Message-ID: <87seqm302a.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21985"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ture =?UTF-8?Q?P=C3=A5lsson?= , 74924@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 17 14:36:17 2024 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 1tNXkF-0005VL-0P for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Dec 2024 14:36:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNXk8-0006ji-Rg; Tue, 17 Dec 2024 08:36:09 -0500 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 1tNXk4-0006gR-62 for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2024 08:36:04 -0500 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 1tNXk3-0004ZV-TT for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2024 08:36:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=slfIzrjR6uBOBcqlys+8D9syDu31XJfcL94nt8vwuXE=; b=fyqRAfnr74Oai83ZYjlmll7N9PyCQFHzodz7rfF4N4Q3EPmDbgTZSEzHJ0+8kLQArOzOFpTbEpmHaHYX2D3AE9SPxTIRRF49BAeSPrkJrGQYybdYWSAiQYn7v3QH0T0LqAw+kB4rsLzOfbfO+NYZdLpVuxb0uWCqejYzNf1N0eytlAFYLjqrLZglh0M+DZSLGxktWhAMAQu737SPFYPXx9VI9WOyAPbEj1tmUVMBON5ypMJLgqVs0lYmUpOMcLBc6rcmQz3gvRrggrSanJEh4vIHSddPyXfu5werq/Naui5QRDC4uXfma1u7oeI/WjGw3iuOoxWJNltx5aL3LJQwlw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNXk3-0008O0-Ma for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2024 08:36:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Dec 2024 13:36:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74924 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 74924-submit@debbugs.gnu.org id=B74924.173444254732194 (code B ref 74924); Tue, 17 Dec 2024 13:36:03 +0000 Original-Received: (at 74924) by debbugs.gnu.org; 17 Dec 2024 13:35:47 +0000 Original-Received: from localhost ([127.0.0.1]:58102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNXjj-0008N8-DF for submit@debbugs.gnu.org; Tue, 17 Dec 2024 08:35:47 -0500 Original-Received: from mail-wm1-f42.google.com ([209.85.128.42]:45439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNXjf-0008Mw-NU for 74924@debbugs.gnu.org; Tue, 17 Dec 2024 08:35:40 -0500 Original-Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4361c705434so38391845e9.3 for <74924@debbugs.gnu.org>; Tue, 17 Dec 2024 05:35:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734442479; x=1735047279; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=slfIzrjR6uBOBcqlys+8D9syDu31XJfcL94nt8vwuXE=; b=dI7HPVo3smVvC0MtQHbqAiYvJUZpTRewM1JQY2Ge4P8uT0hZojGXEvnCycTIgtkXYV efax7al3CVj91gWzo40JbbrBfq5ASOFcrpXmLai0f3j3TN1yPlfki1V3uJDo9J7q4jKl V3MAeqWVNqRRPCsXG+3zRq5pGiO9cYn8pVlWtJYFPCuu/qopIvHlWkAyd9BavNWxzAya M3IX/V+RtNkxDCrA5Zk2iym5if/+Tey6eLEVVRGHt9EMs7uFzWhE6u4KzBNFDemELqgJ NirsNIPmsv1FBTzZsQk7o3smkPc6IiPzczHx5KUX0PCNKaI0RA7v7UZkC4DdaH4T1Iip l4+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734442479; x=1735047279; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=slfIzrjR6uBOBcqlys+8D9syDu31XJfcL94nt8vwuXE=; b=tyAf0coDi07GvyZg9jghXVBpV0gyArAA44atLjApn9dVe0Nrgu49Bjwwy4Y2YEBmEt U/aA2/3tIIPyDHc2HrELZRGgYqCFOXPMVYUvgkvkSh92votwEf8+nD9b2wVBlJhWpd0m wgO4O3upDSWdirJxE6PUmBX8lVbLyH2O+LBu8+fViNcTjwumx3PpundNQCNPdC0p+MhG B4Ng1RPfZeHK40tQw2cQx6zKIu/XkgbPqqA91r5xODnUzbxxccxWi3l1gPHed9PHOr9C 39d9f2hh4E9PAwTvXx7tlHlTeRSzF2KdGYdbXyKFIrtaaU9D3iogqMq9JXbPO2GCO8my j+uw== X-Forwarded-Encrypted: i=1; AJvYcCWnoxcjjEoZt/AUJJwgdt6p7Y7FCQ35je28G5CpHiBrLWLWM99VFCIYy3ChTrlkjMihuTjobw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxfykinQq6dlmgwFEZxqr3l4GCSEHpNoS63Res+eE1uoncG2Ief zu9MKtFpVodDPq7VXaCn47eujYQe5SrGWYdKID25rCt886Kxlq1DDndbpg== X-Gm-Gg: ASbGnctwZhoMAmOLYhOW9oWHGNRnSrtA5ul9fHkhANnR56B1wLk7rdtBRBVRS2l0/5X jMR1Hiz8LevIwQN3kwZzZDYR46OfldZG0gTwgyS1L53yue5wvZGelOuxXek+tbC/pMOJFQ4J5+H IXDWRs2B2GtkbFU3jTPZZOMKEBPBqPMbXynbmFLnrAII2JUuTTUQRAF8v1bNXQwR3yrN+qK9Ch+ imDrbw0p51BYgLvMNEwMLWkA/KY162A/Zm0rf30RFOo X-Google-Smtp-Source: AGHT+IFQWxFAgnaRQdQUQOFtazs+H7zekY1tMwAWSTxf1rWYQk5g5mITIh0TLJP17a0GOfNGILye0g== X-Received: by 2002:a05:600c:198a:b0:434:fe3c:c67c with SMTP id 5b1f17b1804b1-436476cd473mr28132615e9.26.1734442478668; Tue, 17 Dec 2024 05:34:38 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb51:9db7:abd4:e7ac:ea0b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436362b6981sm119697075e9.31.2024.12.17.05.34.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2024 05:34:38 -0800 (PST) In-Reply-To: (Stefan Kangas's message of "Tue, 17 Dec 2024 13:19:00 +0000") 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:297293 Archived-At: >>>>> On Tue, 17 Dec 2024 13:19:00 +0000, Stefan Kangas said: Stefan> found 74924 29.3 Stefan> found 74924 31.0.50 Stefan> tags 74924 + confirmed Stefan> thanks Stefan> Ture P=C3=A5lsson writes: >> 1. Run in a terminal window. Operating system seems not to matter; I= can >> reproduce on both macOS and Linux. >>=20 >> 2. Set environment variable MANWIDTH to 80 . >>=20 >> 3. Start Emacs ('emacs -nw -Q'). >>=20 >> 4. Do M-x man, enter the name of some manpage, and type RET. >>=20 >> 5. Switch to the manpage window (C-x o), and scroll down by typing '= C-v' >> a few times. >>=20 >> 6. Switch back to the *scratch* window (C-x o again). >>=20 >> 7. After about a second, the manpage window jumps back to the beginn= ing >> of the buffer. >>=20 >> My *guess* is that this is related to the changes in commit >> 7e387c9e5265b98dbb3b986f8ab8ac2217052831, but that may well be a red >> herring. Stefan> I can reproduce this on both 29.3 and master on GNU/Linux. This code from man.el should be setq-local=CA=BCing Man-columns unconditionally, I think (it=CA=BCs nil by default): (when (or window-system (not (or (getenv "MANWIDTH") (getenv "COLUMNS")))) ;; Since the page buffer is displayed beforehand, ;; we can select its window and get the window/frame width. (setq-local Man-columns (Man-columns)) (setenv "COLUMNS" (number-to-string Man-columns))) Robert --=20