unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 14170@debbugs.gnu.org
Subject: bug#14170: 24.3; linum won't create all overlays after a folding
Date: Tue, 16 Apr 2013 09:15:03 +0300	[thread overview]
Message-ID: <83bo9f57dk.fsf@gnu.org> (raw)
In-Reply-To: <jwvvc7n9zg9.fsf-monnier+emacs@gnu.org>

> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Cc: rgm@gnu.org, 14170@debbugs.gnu.org
> Date: Mon, 15 Apr 2013 19:00:46 -0400
> 
> > +(defvar margin-side nil)
> 
> I suspect you wanted to use nlinum--margin-side instead, right?

Yes, I suspect so, too.

> Hmm... since the default value of bidi-paragraph-direction is nil, that
> means that this will change the default behavior and put a margin in
> each side.

Not in the major modes where line numbers are normally wanted: every
mode that inherits from prog-mode has its bidi-paragraph-direction set
as left-to-right by default.

For other modes, yes.

> Maybe we should decide nlinum--margin-side "lazily" based on the
> buffer's content, so if bidi-paragraph-direction is nil we only set
> a margin on the sides where we do display line numbers.

Patches are welcome ;-)





  reply	other threads:[~2013-04-16  6:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-09 21:33 bug#14170: 24.3; linum won't create all overlays after a folding E Sabof
2013-04-10  0:38 ` Stefan Monnier
2013-04-10  1:02   ` E Sabof
2013-04-10  1:51     ` Glenn Morris
2013-04-12 12:52       ` Eli Zaretskii
2013-04-14  1:21         ` Stefan Monnier
2013-04-14  6:15           ` Eli Zaretskii
2013-04-15 23:00             ` Stefan Monnier
2013-04-16  6:15               ` Eli Zaretskii [this message]
2013-04-11  1:37     ` E Sabof
2013-04-11  1:44       ` E Sabof
2013-04-11  2:50       ` Eli Zaretskii
2013-04-11  3:23         ` E Sabof
2013-04-11 16:14           ` Eli Zaretskii
2013-04-11 13:58       ` Stefan Monnier
     [not found]         ` <CAEp6DyZQx81yUkxKfqk2O8VJz68xYVs0+_Cii50MG4Wxc6q=rA@mail.gmail.com>
     [not found]           ` <jwvmwt1ucww.fsf-monnier+emacs@gnu.org>
2013-04-14  1:40             ` E Sabof
2013-04-14  3:16               ` Stefan Monnier
2016-06-09  3:03 ` Noam Postavsky

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=83bo9f57dk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=14170@debbugs.gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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).