From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Andrea Rossetti <andrea.rossetti@gmail.com>
Cc: 18541@debbugs.gnu.org
Subject: bug#18541: 24.3; ruler-mode: margins are reset when doing next-buffer/previous-buffer
Date: Wed, 24 Sep 2014 21:09:59 -0400 [thread overview]
Message-ID: <jwvvboc1pft.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <84r3z01x9u.fsf@gmail.com> (Andrea Rossetti's message of "Thu, 25 Sep 2014 00:14:37 +0200")
>> But indeed, if you set the margin with S-mouse-1 or S-mouse-3 on the
>> header-line, then ruler-mode should arguably try to preserve this
>> setting like you request it.
> Even if I set margins with S-mouse-1 and S-mouse-3, and then
> type M-x next-buffer RET M-x previous-buffer RET , the margins
> disappear.
Yes, that's what I meant, and this is the actual bug that needs fixing.
> It could indeed be a nice addition in the future if there's
> some agreement. I can't think of a case where margin preservation
> could be inappropriate (just a guess: maybe non-interactive sessions?).
There's no reason not to preserve the margin (other than the fact it's
not implemented). There are questions about *how* to do it, tho.
Mostly, should the margin set by the user be considered as a property of
the buffer (applied wherever the buffer gets displayed), or is it
a property that applies to this buffer but only in this particular window?
E.g. if I have the buffer in window 1 and then display it in window 2,
should window 2 get the same margins as well? What if window 2 has
a completely different width than window 1?
> My suggested alternative if one needs to jump around buffers while
> keeping margins enabled in a certain buffer: I noticed that the "window
> configuration registers" preserve margins properly:
> - (... set margins with S-mouse-1 and S-mouse-3 ...)
> - C-x r w a
> - M-x next-buffer RET
> - C-x r j a
Right, that can be a good workaround until ruler-mode does that for you,
Stefan
next prev parent reply other threads:[~2014-09-25 1:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-23 22:56 bug#18541: 24.3; ruler-mode: margins are reset when doing next-buffer/previous-buffer Andrea Rossetti
2014-09-24 0:51 ` Stefan Monnier
2014-09-24 22:14 ` Andrea Rossetti
2014-09-25 1:09 ` Stefan Monnier [this message]
2021-08-19 15:34 ` Lars Ingebrigtsen
2021-08-20 8:18 ` martin rudalics
2021-08-20 13:14 ` Lars Ingebrigtsen
2021-08-22 8:24 ` martin rudalics
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=jwvvboc1pft.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=18541@debbugs.gnu.org \
--cc=andrea.rossetti@gmail.com \
/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).