all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: ture@turepalsson.se, stefankangas@gmail.com, 74924@debbugs.gnu.org
Subject: bug#74924: 29.3; Buffer showing manpage jumps back to beginning
Date: Sat, 28 Dec 2024 13:39:05 +0200	[thread overview]
Message-ID: <86zfkgrq92.fsf@gnu.org> (raw)
In-Reply-To: <87seqm302a.fsf@gmail.com> (message from Robert Pluim on Tue, 17 Dec 2024 14:34:37 +0100)

> Cc: Ture Pålsson <ture@turepalsson.se>, 74924@debbugs.gnu.org
> From: Robert Pluim <rpluim@gmail.com>
> Date: Tue, 17 Dec 2024 14:34:37 +0100
> 
> >>>>> On Tue, 17 Dec 2024 13:19:00 +0000, Stefan Kangas <stefankangas@gmail.com> said:
> 
>     Stefan> found 74924 29.3
>     Stefan> found 74924 31.0.50
>     Stefan> tags 74924 + confirmed
>     Stefan> thanks
> 
>     Stefan> Ture Pålsson <ture@turepalsson.se> writes:
> 
>     >> 1. Run in a terminal window. Operating system seems not to matter; I can
>     >> reproduce on both macOS and Linux.
>     >> 
>     >> 2. Set environment variable MANWIDTH to 80 .
>     >> 
>     >> 3. Start Emacs ('emacs -nw -Q').
>     >> 
>     >> 4. Do M-x man, enter the name of some manpage, and type RET.
>     >> 
>     >> 5. Switch to the manpage window (C-x o), and scroll down by typing 'C-v'
>     >> a few times.
>     >> 
>     >> 6. Switch back to the *scratch* window (C-x o again).
>     >> 
>     >> 7. After about a second, the manpage window jumps back to the beginning
>     >> of the buffer.
>     >> 
>     >> 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ʼing Man-columns
> unconditionally, I think (itʼs 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)))

If this fixes the problem, please install on master, and thanks.





  reply	other threads:[~2024-12-28 11:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-17  9:07 bug#74924: 29.3; Buffer showing manpage jumps back to beginning Ture Pålsson
2024-12-17 13:19 ` Stefan Kangas
2024-12-17 13:34   ` Robert Pluim
2024-12-28 11:39     ` Eli Zaretskii [this message]
2024-12-17 13:36 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86zfkgrq92.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=74924@debbugs.gnu.org \
    --cc=rpluim@gmail.com \
    --cc=stefankangas@gmail.com \
    --cc=ture@turepalsson.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.