From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11484: 23.4; Scrolling leaves traces of old text behind Date: Mon, 22 Oct 2012 21:22:29 -0400 Message-ID: References: <87wqyiv94p.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350955397 2164 80.91.229.3 (23 Oct 2012 01:23:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2012 01:23:17 +0000 (UTC) Cc: 11484@debbugs.gnu.org To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 23 03:23:24 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TQTDI-0000ab-I1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2012 03:23:24 +0200 Original-Received: from localhost ([::1]:37163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQTDA-00005r-PK for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Oct 2012 21:23:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQTD8-00005b-L3 for bug-gnu-emacs@gnu.org; Mon, 22 Oct 2012 21:23:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQTD7-0006cc-HZ for bug-gnu-emacs@gnu.org; Mon, 22 Oct 2012 21:23:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQTD7-0006cY-ER for bug-gnu-emacs@gnu.org; Mon, 22 Oct 2012 21:23:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TQTEs-0005Xt-CP for bug-gnu-emacs@gnu.org; Mon, 22 Oct 2012 21:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Oct 2012 01:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11484 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Original-Received: via spool by 11484-submit@debbugs.gnu.org id=B11484.135095546721270 (code B ref 11484); Tue, 23 Oct 2012 01:25:02 +0000 Original-Received: (at 11484) by debbugs.gnu.org; 23 Oct 2012 01:24:27 +0000 Original-Received: from localhost ([127.0.0.1]:56543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQTEJ-0005X0-5o for submit@debbugs.gnu.org; Mon, 22 Oct 2012 21:24:27 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:61586) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQTEH-0005Wp-P4 for 11484@debbugs.gnu.org; Mon, 22 Oct 2012 21:24:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09FpYC//2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="202513280" Original-Received: from 69-165-128-191.dsl.teksavvy.com (HELO pastel.home) ([69.165.128.191]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 22 Oct 2012 21:22:30 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D97E559347; Mon, 22 Oct 2012 21:22:29 -0400 (EDT) In-Reply-To: <87wqyiv94p.fsf@gnu.org> (Kenichi Handa's message of "Tue, 23 Oct 2012 00:06:46 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65893 Archived-At: >> If someone knows how to get misc-fixed-semicondensed-13 using xft >> (i.e. client-side fonts), I'm all ears. > At first, enable bitmap font in fontconfig (on Ubuntu, this > is done by deleting /etc/fonts/conf.d/70-no-bitmaps.conf). Indeed, that worked, thanks (tho the performance wasn't noticeably better). > Then copy PCF files of misc-fixed-semicondensed-13 fonts to ~/.fonts. I didn't need to do that for the font I use (running Debian, here). > Now Emacs should be able to use those PCF fonts via XFT. It actually crashed with an assertion violation because a font `spec' was nil where a vector was expected. I used the quick-fix below which appeared to work, but without knowing what it implies. Can you take a look and help me figure out what the right fix should be? Stefan === modified file 'src/frame.c' --- src/frame.c 2012-10-20 21:30:51 +0000 +++ src/frame.c 2012-10-23 01:11:11 +0000 @@ -3242,7 +3242,7 @@ Lisp_Object ascii_font = fontset_ascii (fontset); Lisp_Object spec = font_spec_from_name (ascii_font); - if (! font_match_p (spec, font_object)) + if (NILP (spec) || ! font_match_p (spec, font_object)) fontset = -1; } }