From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.devel Subject: Re: master d014a5e: Use fixed-pitch font for display-line-numbers Date: Thu, 13 Jul 2017 14:15:17 -0600 Message-ID: <87shi08562.fsf@lylat> References: <20170711151708.4322.33014@vcs0.savannah.gnu.org> <20170711151709.2AE9822E0A@vcs0.savannah.gnu.org> <8760eyv7mc.fsf@holos> <83h8yhiuy3.fsf@gnu.org> <83wp7cgwie.fsf@gnu.org> <83k23cgny7.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1499977002 27361 195.159.176.226 (13 Jul 2017 20:16:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 13 Jul 2017 20:16:42 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: mvoteiza@udel.edu, emacs-devel@gnu.org, Yuri Khan To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 13 22:16:38 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 1dVkXJ-0006eS-1F for ged-emacs-devel@m.gmane.org; Thu, 13 Jul 2017 22:16:33 +0200 Original-Received: from localhost ([::1]:33880 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVkXO-0000hQ-AK for ged-emacs-devel@m.gmane.org; Thu, 13 Jul 2017 16:16:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVkWH-0000hJ-Hu for emacs-devel@gnu.org; Thu, 13 Jul 2017 16:15:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVkWE-0000uv-96 for emacs-devel@gnu.org; Thu, 13 Jul 2017 16:15:29 -0400 Original-Received: from mail-it0-x244.google.com ([2607:f8b0:4001:c0b::244]:34760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVkWE-0000uc-1Q; Thu, 13 Jul 2017 16:15:26 -0400 Original-Received: by mail-it0-x244.google.com with SMTP id o202so9111951itc.1; Thu, 13 Jul 2017 13:15:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=72Hmt4ZQSHNSLPiftAForE/omOFreU/jZvLXBn4YlYM=; b=I/FxcJtwQxKOPTgvHH6Fto625G7H0swkiL/vRpQLhLCr/yktOS5Msd5Y5SPYUfvQfG N2530mEHwjW47rG0sSPSdGN/a/XlpOPssnUQlFSxeUC2AtnEnoNeeQZBhgf9cM24Itf0 zXR5VXn5/dbntutMwU/fzPYZG9UIk063PBBofi442Z810EswcCelasiTsv2G5GvjWGYf FfWUrbptgTr0dijP6Tf0rSqzIbBRid9WsFEhJ3uX6pEoGAeLXc0CtvKNV1uIlApcgiZZ aXC/O2nmieQKzFjJgJClOnLSzy+nQCQ9jYRM8XziJtMgcCPVIVkS1J9GRofysDYp0hRx ZpGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :user-agent:mime-version:content-transfer-encoding; bh=72Hmt4ZQSHNSLPiftAForE/omOFreU/jZvLXBn4YlYM=; b=CYpCKO73zwOhFnSAoHwOrdYaVPUReZJuLBLOJZalhk9/nqFyGhhniiCP3AJCuf9Q2A g6mPruaOF6a4m7CQ9Lywa9UxRdXZ/adZPixungHh6ejsY6KsiYNeipfKtYrErJAWcAFP btuv8r1XgZvxWTIaMANZ2JUc4lthZOcQu+naV9pUSp/KIuCupuk3KgzGbcEtCo9Mfs7F gCRY3AKuUUIt0OBPzjdQ7Os/H3N+D8C/376KbWy1liq5DUblN+Cx8+Cv3t7m9ebiYOXB +6ki2Ac+QMH4XgOPc9yXcwIDM4bASjEx0jZDnNA0VJDn8JEIBcTNhv161E5IGIPMZPch mATg== X-Gm-Message-State: AIVw110WH7XlCOsKcfvPwkUNMdtjq+yyT1kn1w/Mkx1z4A7eAS6s99qz OynfsBRC/F2x6AXM X-Received: by 10.36.141.197 with SMTP id w188mr613579itd.41.1499976925051; Thu, 13 Jul 2017 13:15:25 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id k16sm180322itb.1.2017.07.13.13.15.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Jul 2017 13:15:23 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::244 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:216614 Archived-At: Eli Zaretskii writes: >> From: Yuri Khan >> Date: Fri, 14 Jul 2017 01:07:21 +0700 >> Cc: Mark Oteiza , Emacs developers >>=20 >> On Thu, Jul 13, 2017 at 10:57 PM, Eli Zaretskii wrote: >>=20 >> >> Maybe, but the name =E2=80=98fixed-pitch-serif=E2=80=99 suggests a pa= rticular >> >> presentation (a serif font), while =E2=80=98fixed-pitch=E2=80=99 does= not. >> > >> > AFAIU, fixed-pitch just means Sans Serif, so it is also a particular >> > presentation in that sense. >>=20 >> The name =E2=80=98fixed-pitch=E2=80=99 literally means only the fixednes= s of pitch and >> says nothing about presence or absence of serifs. > > The name alone might suggest that, but the code tells a different > story. I thought you looked in the code and saw there something I > missed, thus my questions. Where does the code tell a different story? If you mean `face-font-family-alternatives', then I believe it is faulty (see below). >> > And fixed-pitch definitely doesn't yield the >> > same font as the default face on my system. >>=20 >> I would suggest that is a bug. > > It's not a bug, since the code was written to produce that effect. (I > think similar issue happens in the NS build.) You're using Windows, correct? I just tried out Emacs 25.2 on a Windows partition and I believe this a bug on Windows. I can't say anything about the NS build. In Emacs 25.2 on Windows 7, the default face is Courier New, a serif font. GNU/Linux defaults to DejaVu Sans Mono, a sans-serif font. I don't see why Windows should default to a serif font. FWIW, I checked a couple of other popular text editors (Sublime and Atom), and they default to Consolas (sans-serif) on Windows. The bigger issue here is that fixed-pitch-serif on Windows defaults to a sans-serif font (Consolas), and that fixed-pitch defaults to a serif font (Courier -- not Courier New like the default font). I believe the following should happen: * the defaults for the default face and fixed-pitch should align on all systems possible * fixed-pitch should default to what fixed-pitch serif does now (Consolas seems suitable) * fixed-pitch-serif should default to what the default face does currently If this is done, then changing the line-number face to plain "Monospace" should work fine even for Windows.