unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Alexandrov <321942@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 25216@debbugs.gnu.org
Subject: bug#25216: 26.0.50 [regression]; Curly quotes are not found in some sizes of ‘Terminus’ font
Date: Mon, 19 Dec 2016 07:52:42 +0300	[thread overview]
Message-ID: <87pokott9h.fsf@gmail.com> (raw)
In-Reply-To: <83eg1460u4.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 19 Dec 2016 05:42:59 +0200")

>> > It doesn't surprise me.  What I don't understand is why this happens.
>> > Emacs explicitly tests the default font for supporting any symbol or
>> > punctuation character it needs to display, before it looks for another
>> > font.  See the function face_for_char in fontset.c.
>> >
>> >> Aha!  Thanks.  The exact problematic commit is ‘2276a19d’ [0].
>> >> 
>> >> By the way, how could I prove that without rebuilding the whole Emacs?  I tried:
>> >> 
>> >>    $ git show 2276a19^:lisp/international/fontset.el > /tmp/lisp/fontset.el
>> >>    $ emacs --directory /tmp/lisp --quick --font '-*-terminus-medium-r-*-*-20-*-*-*-*-*-*-*'
>> >> 
>> >> Despite that:
>> >> 
>> >>    (locate-library "fontset")
>> >>         ⇒ "/tmp/lisp/fontset.el"
>> >> 
>> >> I did not see any effect.
>> >
>> > You must rebuild Emacs or manually load fontset.el after changing it.
>> > fontset.el is preloaded when Emacs is built.
>> 
>> So I need to use ‘temacs’?  Yes, that works, thank you.
>
> If you want to rebuild Emacs, then yes, you will need to run the
> command which dumps it after changing fontset.el.

So there is another way?  Mere (load "/tmp/lisp/fontset.el") have no use after built-in ‘fontset’ is already loaded of course.  I’m just curious.

>> >> However, It might be even better if I could erase that rule, as if
>> >> there were no lines about that range in ‘fontsel.el’. Is it
>> >> possible?
>> >
>> > That would adversely affect all the users.  We arrived at that rule
>> > after many complaints that symbol and punctuation characters are not
>> > displayed at all, or displayed using variable-pitch fonts, so we made
>> > the default fontset "smarter" about that by using fonts people
>> > generally have installed and which are the default fonts in Emacs.
>> 
>> Well, I’m the only user on most my machines, so that’s probably bearable.
>
> No, I meant all the users of Emacs, world wide.
>
>> However, we apparently misunderstood each other — I did not ask how
>> to patch ‘fontsel.el’ machine-wide (I hope, I do understand how to
>> do that). I meant, is it possible to remove elements from the
>> default fontset *user-wide*? ‘Terminus’ is not the only font I use,
>> so that would be cleaner than appending it there.
>
> You don't need (and cannot, AFAIK) to remove that.  What you need is
> to prepend your rules, which will override what's there.  Like this:
>
>  (set-fontset-font "fontset-default" '(#x2000 . #x2067) "Terminus" nil 'prepend)
>
> Note the "prepend" part.

Okay, if I can’t, I can’t.  As for ‘prepend’ it actually works all three ways for me: obviously ‘nil’ (for override, not what I want), ‘prepend’ (as expected) and ‘append’ (no idea why).





  reply	other threads:[~2016-12-19  4:52 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-17  1:03 bug#25216: 26.0.50 [regression]; Curly quotes are not found in some sizes of ‘Terminus’ font Dmitry Alexandrov
2016-12-17  8:18 ` Eli Zaretskii
2016-12-17  9:33   ` Dmitry Alexandrov
2016-12-17 11:02     ` Eli Zaretskii
2016-12-19  3:17       ` Dmitry Alexandrov
2016-12-19  3:42         ` Eli Zaretskii
2016-12-19  4:52           ` Dmitry Alexandrov [this message]
2016-12-19 16:11             ` Eli Zaretskii
2016-12-19  3:44         ` Eli Zaretskii
2016-12-19  4:53           ` Dmitry Alexandrov
2016-12-19 17:46             ` Eli Zaretskii
2016-12-19  6:14           ` Dmitry Alexandrov
2016-12-19 16:15             ` Eli Zaretskii
2016-12-20  2:51               ` Dmitry Alexandrov
2016-12-20  3:34                 ` Eli Zaretskii
2016-12-31  5:56                   ` Dmitry Alexandrov
2016-12-31  8:57                     ` Eli Zaretskii
2019-11-17  7:41                       ` Lars Ingebrigtsen
2019-11-17  8:38                         ` Dmitry Alexandrov
2019-11-17 16:01                           ` Eli Zaretskii
2019-11-20 15:01                             ` Dmitry Alexandrov
2019-11-25 16:16                               ` Eli Zaretskii

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=87pokott9h.fsf@gmail.com \
    --to=321942@gmail.com \
    --cc=25216@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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).