From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 30747@debbugs.gnu.org, jidanni@jidanni.org
Subject: bug#30747: Emacs lacks a command to horizontally recenter
Date: Fri, 25 Jun 2021 17:59:23 +0300 [thread overview]
Message-ID: <83zgveq9bo.fsf@gnu.org> (raw)
In-Reply-To: <87tulmc88r.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 25 Jun 2021 16:46:28 +0200)
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Fri, 25 Jun 2021 16:46:28 +0200
> Cc: 30747@debbugs.gnu.org
>
> > The future horizontal-recenter command (please implement) should keep
> > the cursor upon the same character (x), but just move the view screen ([
> > ]) so that x is now in the center.
> >
> > ......[.......x..]...... BEFORE
> > .........[....x.....]... AFTER
>
> So this would only be for buffers where truncate-lines is non-nil?
No, also in partial-width windows (as in after "C-x 3").
> Yes, it'd be handy to have such a command... or perhaps `C-l'
> should just do this automatically (in these buffers)?
>
> Any opinions?
Since lines are generally not all of the same width, such horizontal
scrolling can only guarantee to center one line, and sometimes cannot
center it at all (if it's narrower than the window). I wonder whether
the OP indeed understands what he will get as result of implementing
this feature.
next prev parent reply other threads:[~2021-06-25 14:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-08 3:01 bug#30747: Emacs lacks a command to horizontally recenter 積丹尼 Dan Jacobson
2018-03-08 10:06 ` Marcin Borkowski
2018-03-08 10:35 ` Werner LEMBERG
2021-06-25 14:46 ` Lars Ingebrigtsen
2021-06-25 14:59 ` Eli Zaretskii [this message]
2021-06-26 12:49 ` Lars Ingebrigtsen
2021-06-26 12:58 ` Eli Zaretskii
2021-06-26 15:21 ` 積丹尼 Dan Jacobson
2021-06-30 11:58 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83zgveq9bo.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=30747@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
--cc=larsi@gnus.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).