From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Filipe Silva Newsgroups: gmane.emacs.devel Subject: Re: Native line numbers, final testing Date: Tue, 11 Jul 2017 18:18:47 -0300 Message-ID: References: <83y3s9pm2a.fsf@gnu.org> <87r2y1z45o.fsf@lylat> <83vandp7wz.fsf@gnu.org> <87mv8pyy7f.fsf@lylat> <83shigpoxq.fsf@gnu.org> <87mv8nkh31.fsf@lylat> <83bmp3pnmb.fsf@gnu.org> <87eftzju5g.fsf@lylat> <837ezqq3gd.fsf@gnu.org> <874luuyuqy.fsf@lylat> <83wp7po86m.fsf@gnu.org> <87fuecc7vg.fsf@lylat> <83y3s2n5pa.fsf@gnu.org> <878tk1rmjx.fsf@lylat> <83a84gn4z9.fsf@gnu.org> <837ezkmwfg.fsf@gnu.org> <874lumps82.fsf@lylat> <8337a5ja4p.fsf@gnu.org> <83van0i5wl.fsf@gnu.org> <87iniy7ksy.fsf@lylat> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113cd7ecd323580554113e16" X-Trace: blaine.gmane.org 1499807968 22799 195.159.176.226 (11 Jul 2017 21:19:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Jul 2017 21:19:28 +0000 (UTC) Cc: Eli Zaretskii , James Cloos , Emacs developers To: Alex Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 11 23:19:21 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dV2Yu-0005JB-8i for ged-emacs-devel@m.gmane.org; Tue, 11 Jul 2017 23:19:16 +0200 Original-Received: from localhost ([::1]:48971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dV2Yz-0006Py-HK for ged-emacs-devel@m.gmane.org; Tue, 11 Jul 2017 17:19:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dV2Yr-0006Ps-Ag for emacs-devel@gnu.org; Tue, 11 Jul 2017 17:19:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dV2Yq-0003ip-Et for emacs-devel@gnu.org; Tue, 11 Jul 2017 17:19:13 -0400 Original-Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:34058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dV2Yq-0003Z9-9v; Tue, 11 Jul 2017 17:19:12 -0400 Original-Received: by mail-oi0-x22c.google.com with SMTP id l130so4150965oib.1; Tue, 11 Jul 2017 14:18:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UXSNr2ljfCBuqZBvMGd6CtXi3Wo1JECrh4m4hEi/Wv0=; b=et+9Go4HmhBNmaXnryOvCzxI9CSHmbOtCLs6a1MMxmpVscR9FJ6AZ7pMj05bRRyDkM 2V8BzVWqRbe4OFXE0PC3acCD7SiuchTQXh1SqOZg+1pTeMQziE3WSZu2R6IIT250xzGH Dyh3lrJBh+OuJYhJMBwxDtPTuYndz222SOl1mJ7tOdpIbFMP4gsqDzuBRpshRMOW2kfy npZ0c35zSJ48T2mGKPGWv5D7cEKVsZsSI7lF1VryIPMYuqejwYh7j6tXfi61U954jjv+ Wy8HQsWveAmhCZBLmT5jdO7ZBVC6z9QqXydHe/SWxtPYx8/pxndj6fjZ24658yKJqPmq 2gWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UXSNr2ljfCBuqZBvMGd6CtXi3Wo1JECrh4m4hEi/Wv0=; b=b9kWGuZHa56+BJ3PyHUrCsAGqCYFBYFnqOZWXCjbMlloJl3j1KVHim0yV8AtfZ45W8 DXGnvCexSVcbsvdlxzwYQVihD3kChwRpGy1YFvarVrJhRcJb3sEgmr/rAAlo0IOHj0g8 jSRvyshsavsguTF7EvY4/qBb4r26sWbNpMgx6chSpRhpDBspTlFEat1Hx7SgMuQHSTzS wsOFBAReI2GHSvojN5cFyl151m7QcICV/KG+YYVbPzygUJ/wLLAs2A57DvBhXt3aShXQ KcATaKE+lPtF2YM1faxqlSo+xY/wpxSQMpNYWO5qM2tHRCGBaSLOkTOxtrAsBKpuhFD3 OaVQ== X-Gm-Message-State: AIVw111/zyJy5fUeXHs42lmmhZuChe8Rh7eZukWfWT0DIWyQc5XTEOMS FW66gvtTfqJX56nsjywuv6xvoTs6sQ== X-Received: by 10.202.168.130 with SMTP id r124mr1331984oie.91.1499807928752; Tue, 11 Jul 2017 14:18:48 -0700 (PDT) Original-Received: by 10.182.85.69 with HTTP; Tue, 11 Jul 2017 14:18:47 -0700 (PDT) Original-Received: by 10.182.85.69 with HTTP; Tue, 11 Jul 2017 14:18:47 -0700 (PDT) In-Reply-To: <87iniy7ksy.fsf@lylat> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216504 Archived-At: --001a113cd7ecd323580554113e16 Content-Type: text/plain; charset="UTF-8" Eli, just a thought: wouldn't it be appropriate to ship a minor mode wrapping this feature? Or do you think it is better to just leave it to the community? On Jul 11, 2017 5:59 PM, "Alex" wrote: > Eli Zaretskii writes: > > > Here's the patch I propose to fix your variable-pitch problem: > > > > diff --git a/lisp/faces.el b/lisp/faces.el > > index c3693d1..52a4db5 100644 > > --- a/lisp/faces.el > > +++ b/lisp/faces.el > > @@ -2467,7 +2467,7 @@ trailing-whitespace > > > > ;; Definition stolen from linum.el. > > (defface line-number > > - '((t :inherit (shadow default))) > > + '((t :inherit (shadow default) :family "Monospace Serif")) > > "Face for displaying line numbers. > > This face is used when `display-line-numbers' is non-nil. > > > > This gives me a smaller line numbers by default, since I apparently have > not configured an appropriate serif font (my default font is DejaVu Sans > Mono). > > What about just inheriting from fixed-pitch rather than default? > > --001a113cd7ecd323580554113e16 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Eli, just a thought: =C2=A0wouldn't it be appropriate= to ship a minor mode wrapping this feature?=C2=A0

Or do you think it is better to just leave it to the c= ommunity?



On Jul 11, 2017= 5:59 PM, "Alex" <agramb= ot@gmail.com> wrote:
Eli Zaretskii <eliz@gnu.org&= gt; writes:

> Here's the patch I propose to fix your variable-pitch problem:
>
> diff --git a/lisp/faces.el b/lisp/faces.el
> index c3693d1..52a4db5 100644
> --- a/lisp/faces.el
> +++ b/lisp/faces.el
> @@ -2467,7 +2467,7 @@ trailing-whitespace
>
>=C2=A0 ;; Definition stolen from linum.el.
>=C2=A0 (defface line-number
> -=C2=A0 '((t :inherit (shadow default)))
> +=C2=A0 '((t :inherit (shadow default) :family "Monospace Ser= if"))
>=C2=A0 =C2=A0 "Face for displaying line numbers.
>=C2=A0 This face is used when `display-line-numbers' is non-nil. >

This gives me a smaller line numbers by default, since I apparently have not configured an appropriate serif font (my default font is DejaVu Sans Mono).

What about just inheriting from fixed-pitch rather than default?

--001a113cd7ecd323580554113e16--