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: new *Help* argument highlighting Date: Mon, 10 May 2004 17:54:47 -0400 (EDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040510013534.F994.LEKTU@mi.madritel.es> <20040510020140.F99A.LEKTU@mi.madritel.es> <87llk0qftn.fsf-monnier+emacs@gnu.org> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1084269081 7089 80.91.224.253 (11 May 2004 09:51:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 May 2004 09:51:21 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 11 11:51:12 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNTuq-0007HU-00 for ; Tue, 11 May 2004 11:51:12 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNTup-0000AK-01 for ; Tue, 11 May 2004 11:51:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNTtA-0006kX-EO for emacs-devel@quimby.gnus.org; Tue, 11 May 2004 05:49:28 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BNTt5-0006kB-8J for emacs-devel@gnu.org; Tue, 11 May 2004 05:49:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BNTsZ-0006ct-9A for emacs-devel@gnu.org; Tue, 11 May 2004 05:49:22 -0400 Original-Received: from [140.186.114.245] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNTsW-0006c0-Ty for emacs-devel@gnu.org; Tue, 11 May 2004 05:48:50 -0400 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Mon, 10 May 2004 17:54:47 -0400 (EDT) Original-To: Stefan Monnier In-reply-to: <87llk0qftn.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on 10 May 2004 15:06:13 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 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:23125 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23125 [Regarding bold causing a problem in a mode line] > First, will someone who understands the patch review it? Or should I > commit the merged version of xfaces.c and see whether it breaks others > people's installations? My understanding of the patch is that it introduces risks of crashes. If you set realize-face-filter-functions to functions that are simple enough, it might be safe (tho maybe only if you compile with -DSYNC_INPUT). I did suffer some crashes immediately after installing the patch, but none in the past year or so. As I said a year ago, I think that some other change to xfaces.c solved that danger. But an alternative explanation is that I stopped doing anything that evokes the condition. I don't know which is which, although I doubt the latter. Here are extracts from the message I sent on 20 Nov 2002. As I saw it then, the problem is how to make a permanent global change to a variable that is buffer local? ... 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! 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")))) ...) ... Please tell me how to reset the bold characteristic universally. I talked about `mode-line-buffer-identification' because it is easy and obvious, but it turns out that name of directories shown in a PCL-CVS *cvs* buffer are also effected. The `m' in the word `emacs' becomes unreadable. -- Robert J. Chassell Rattlesnake Enterprises As I slowly update it, bob@rattlesnake.com I rewrite a "What's New" segment for http://www.rattlesnake.com