From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: Bold by moving pixels problem Date: Mon, 11 Aug 2003 18:54:58 +0000 (UTC) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200308071656.h77Guc115098@raven.dms.auburn.edu> <200308111759.h7BHxaM20880@raven.dms.auburn.edu> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1060628351 23997 80.91.224.253 (11 Aug 2003 18:59:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2003 18:59:11 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Aug 11 20:59:10 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19mHss-0003DQ-00 for ; Mon, 11 Aug 2003 20:59:10 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19mI0F-0001wZ-00 for ; Mon, 11 Aug 2003 21:06:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19mHsb-0004u9-OK for emacs-devel@quimby.gnus.org; Mon, 11 Aug 2003 14:58:53 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19mHqg-00040b-GU for emacs-devel@gnu.org; Mon, 11 Aug 2003 14:56:54 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19mHpk-00028G-MC for emacs-devel@gnu.org; Mon, 11 Aug 2003 14:56:27 -0400 Original-Received: from [140.186.114.245] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.20) id 19mHos-0000Qj-TN for emacs-devel@gnu.org; Mon, 11 Aug 2003 14:55:03 -0400 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.114) Mon, 11 Aug 2003 18:54:58 +0000 (UTC) Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15886 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15886 .... That could be different colors, different font or whatever. .... Speaking of fonts, has anyone permanently fixed the font problem I reported last November? I am still using the second patch from Miles on 18 Dec 2002, which solves the problem for me personally. I just checked. The font problem still exists with Today's CVS snapshot, Mon, 2003 Aug 11 18:39 UTC GNU Emacs 21.3.50.29 (i686-pc-linux-gnu, X toolkit) and is fixed when I patch emacs/src/xfaces.c with what Miles sent. Miles said his second patch should not be widely used since it could cause a race condition. While I suffered initially, I have not suffered any problems for several months and wonder if other changes to the emacs/src/xfaces.c code have taken care of the potential problem. Or have I just been lucky? To remind you, this is the font issue: Date: Wed, 20 Nov 2002 13:09:10 +0000 (UTC) Subject: Bold by moving pixels problem From: "Robert J. Chassell" ... on 19 Nov 2002, mode-line-buffer-identification suddenly started showing buffer names in bold. This applies both to a plain vanilla instance of Emacs started with: /usr/local/bin/emacs -q --no-site-file --eval '(blink-cursor-mode 0)' and to the instance I start with a .emacs file. The change does not look too bad with the plain vanilla instance. However, there are three problems with the consequences of the change for instances of emacs started with my .emacs file: * the new bold creation technique fills in letters such as `m' so that they become unreadable rectangles I am using a `10x20' font, -Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO8859-1 which has been very clear for the screen I am using. * I cannot permanently change :weight bold to :weight normal in the variable `mode-line-buffer-identification', which is buffer-local. That is to say, when I reset the value of `mode-line-buffer-identification' so its face is :weight normal rather than :weight bold, that change is only temporary. I don't know what to write in my .emacs file that can make a permanent global change to a variable that is buffer local. If there is a method please tell me! * I do not know how to set the value that is associated with (face (:weight bold) ... in my .emacs. Put another way, evaluating the following works temporarily but not permanently: (setq mode-line-buffer-identification (quote (#("%14b" 0 4 (face ;; (:weight bold) (:weight normal) help-echo "mouse-1: other buffer, mouse-2: prev, M-mouse-2: next, mouse-3: buffer menu" local-map (keymap (header-line keymap (down-mouse-3 . mouse-buffer-menu) (mouse-2 . bury-buffer) (M-mouse-2 . mode-line-unbury-buffer) (mouse-1 . mode-line-other-buffer)) (mode-line keymap (down-mouse-3 . mouse-buffer-menu) (mouse-2 . bury-buffer) (M-mouse-2 . mode-line-unbury-buffer)))))) )) On the other hand, the following produces the face that I specify when I evaluate it: (custom-set-faces ... '(bold ((t (:background "DodgerBlue4" :foreground "cyan")))) ...) How do I reset the bold characteristic of the face in `mode-line-buffer-identification' when it is a local variable? We had another discussion about this in May 2003. Miles' second patch is in this message: Subject: Re: Bold by moving pixels problem Date: 18 Dec 2002 19:01:01 +0900 From: Miles Bader To: bob@rattlesnake.com Cc: emacs-devel@gnu.org Reply-To: Miles Bader In-Reply-To: Thanks! -- Robert J. Chassell Rattlesnake Enterprises http://www.rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.teak.cc bob@rattlesnake.com