From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: .emacs fix for dired with non-default font Date: Fri, 27 Jan 2006 15:41:27 +0000 (UTC) Message-ID: Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1138480984 5430 80.91.229.2 (28 Jan 2006 20:43:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2006 20:43:04 +0000 (UTC) Cc: bob@rattlesnake.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 28 21:42:58 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F2wuK-0002tQ-HO for ged-emacs-devel@m.gmane.org; Sat, 28 Jan 2006 21:42:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F2wKH-000134-5w for ged-emacs-devel@m.gmane.org; Sat, 28 Jan 2006 15:05:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F2ZMz-0001VG-Jn for emacs-devel@gnu.org; Fri, 27 Jan 2006 14:34:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F2Y6y-000772-Iq for emacs-devel@gnu.org; Fri, 27 Jan 2006 13:14:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F2Vm1-0007GO-W7 for emacs-devel@gnu.org; Fri, 27 Jan 2006 10:44:31 -0500 Original-Received: from [69.168.108.225] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F2Vjn-0003So-2e for emacs-devel@gnu.org; Fri, 27 Jan 2006 10:42:11 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Fri, 27 Jan 2006 15:41:27 +0000 (UTC) Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49621 Archived-At: Today's GNU Emacs CVS snapshot, Fri, 2006 Jan 27 11:39 UTC GNU Emacs 22.0.50.16 (i686-pc-linux-gnu, GTK+ Version 2.8.10) started with /usr/local/src/emacs/src/emacs -Q -D \ --eval '(setq-default mode-line-buffer-identification (quote (#("%14b" 0 4 (face (:weight normal))))))' \ -fn "-Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO8859-1" A person may prefer a larger font on a monitor with many pixels per millimeter. (The issue does not arise in a default Emacs started with /usr/local/src/emacs/src/emacs -Q -D only, since that instance uses a conventional font.) With a "10x20" font, find-file (`C-x C-f') displays the name with a normal weight for the buffer identification face. However, the `setq-default mode-line-buffer-identification' fails for dired, since the `propertized-buffer-identification' function definition in emacs/lisp/bindings.el sets the face to `mode-line-buffer-id', which by default is bold. A person who uses this font can reset `mode-line-buffer-id' by putting the following expression in his .emacs file: (custom-set-faces '(mode-line-buffer-id ((t (:weight normal))))) Since discovery is sufficiently difficult, and since additional people will begin to use displays with more than the currently conventional number of pixels per millimeter, unless people argue otherwise in the next few days, I will add this as an example to emacs/man/custom.texi in @node Init Examples -- Robert J. Chassell bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc