unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
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: Tue, 23 Sep 2014 20:51:09 -0400	[thread overview]
Message-ID: <jwvvbodvoc1.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <84sijiuess.fsf@gmail.com> (Andrea Rossetti's message of "Wed, 24 Sep 2014 00:56:19 +0200")

> Hello, I think I found a bug in ruler-mode,
> here's a recipe for it. Start "emacs -Q" and type:
> M-x ruler-mode RET 
> M-: (set-window-margins nil 10 10) RET

Setting margins with set-window-margins is a low-level operation.
Margins get re-set whenever the buffer displayed is changed.
IOW I think the behavior you describe with above recipe is not a bug.

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.


        Stefan





  reply	other threads:[~2014-09-24  0:51 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 [this message]
2014-09-24 22:14   ` Andrea Rossetti
2014-09-25  1:09     ` Stefan Monnier
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=jwvvbodvoc1.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).