From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#26445: 26.0.50; Scroll margin and cursor movement working incorrectly when scrolling over different height lines Date: Fri, 14 Apr 2017 15:16:14 +0300 Message-ID: <83k26ngp69.fsf@gnu.org> References: <624e8d20-8e9f-f164-d9e8-b81659eec2f7@web.de> <83wpaogkqr.fsf@gnu.org> <858e2c55-9e4c-2293-3070-c091372bb8b2@web.de> <83tw5rh3i6.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1492172238 22733 195.159.176.226 (14 Apr 2017 12:17:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Apr 2017 12:17:18 +0000 (UTC) Cc: 26445@debbugs.gnu.org, npostavs@users.sourceforge.net To: Alexander Miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 14 14:17:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1cz0A3-0005ln-Ux for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Apr 2017 14:17:12 +0200 Original-Received: from localhost ([::1]:53111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cz0A9-0007DX-Jz for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Apr 2017 08:17:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cz09z-0007AL-BP for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2017 08:17:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cz09u-0007bh-Cy for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2017 08:17:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48383) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cz09u-0007bd-9J for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2017 08:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cz09u-0007oR-4s for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2017 08:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Apr 2017 12:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26445 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 26445-submit@debbugs.gnu.org id=B26445.149217216529958 (code B ref 26445); Fri, 14 Apr 2017 12:17:02 +0000 Original-Received: (at 26445) by debbugs.gnu.org; 14 Apr 2017 12:16:05 +0000 Original-Received: from localhost ([127.0.0.1]:46582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cz08x-0007n7-WF for submit@debbugs.gnu.org; Fri, 14 Apr 2017 08:16:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47229) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cz08v-0007mP-ON for 26445@debbugs.gnu.org; Fri, 14 Apr 2017 08:16:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cz08l-0007HU-Kh for 26445@debbugs.gnu.org; Fri, 14 Apr 2017 08:15:56 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cz08l-0007HP-HI; Fri, 14 Apr 2017 08:15:51 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2380 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cz08k-0002JO-OV; Fri, 14 Apr 2017 08:15:51 -0400 In-reply-to: (message from Alexander Miller on Fri, 14 Apr 2017 12:56:30 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131571 Archived-At: > Cc: npostavs@users.sourceforge.net, 26445@debbugs.gnu.org > From: Alexander Miller > Date: Fri, 14 Apr 2017 12:56:30 +0200 > > On 14/04/17 09:06, Eli Zaretskii wrote: > > That depends on what font you have installed that's used to display > > those characters. It is best to have fonts of approximately the same > > height. > How would I go about finding out which fonts have which height I don't know any way except by trying, sorry. Perhaps some font expert could offer a more useful method. > and how to make emacs use them? You do that by customizing the default fontset. There are examples in the Emacs manual, and you can see more examples in fontset.el which comes with Emacs. > For emacs I found I could do something like > (set-fontset-font "fontset-default" nil (font-spec :size 1 :name "Symbola")) > but that doesn't seem to do anything. If you have Symbola installed, Emacs will already use it by default. You can see which font is used for a character by invoking "C-u C-x =" at that character's position. If Symbola is not used for some characters, you could customize your default fontset so that it is. > > There's no need to get rid of margins, as I think the problem you > > describe is purely aesthetic, and quite expected when you have lines > > of different height. Why does it bother you so much? > I just don't like the inconsistency. The scroll stutter happens when I'm > quickly scrolling through a buffer and suddenly see my cursor change > position for seemingly no reason. There's no way around that when screen lines have different height. The most you can do is make sure (most of) your fonts are of the same height. FWIW, the characters you mentioned in your email are displayed on my system using Symbola, and the height of the line is the same as for the surrounding text. So perhaps you should just make sure your Emacs uses Symbola for them? > > Btw, , , and  are private-use area (PUA) characters, so I'm not > > sure what you expected from Emacs to do with them. > I've picked those up from Font Awesome, which brings us back to my > previous question. I tried to answer it above. > Is it possible to tell emacs that Font Awesome Icons should have the > same size as my default text font, and if yes how do I do it? Once you tell Emacs to use that font for some range of characters, it should choose the best size automatically.