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: Changing the no-toolkit scrollbar thumb color. (minor issue) Date: Sun, 28 Sep 2003 13:08:59 +0000 (UTC) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87fzijz4th.fsf@raven.i.defaultvalue.org> <200309262123.h8QLNNi07638@raven.dms.auburn.edu> <200309272155.h8RLttv09524@raven.dms.auburn.edu> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1064754641 17872 80.91.224.253 (28 Sep 2003 13:10:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2003 13:10:41 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Sep 28 15:10:40 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 1A3bJw-0007Y1-00 for ; Sun, 28 Sep 2003 15:10:40 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A3bJv-0006Sj-00 for ; Sun, 28 Sep 2003 15:10:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3bIk-0004v6-UK for emacs-devel@quimby.gnus.org; Sun, 28 Sep 2003 09:09:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A3bIR-0004sP-Ie for emacs-devel@gnu.org; Sun, 28 Sep 2003 09:09:07 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A3bIP-0004qu-CU for emacs-devel@gnu.org; Sun, 28 Sep 2003 09:09:06 -0400 Original-Received: from [140.186.114.245] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3bIN-0004pu-Eq for emacs-devel@gnu.org; Sun, 28 Sep 2003 09:09:04 -0400 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.114) Sun, 28 Sep 2003 13:08:59 +0000 (UTC) Original-To: emacs-devel@gnu.org In-reply-to: <200309272155.h8RLttv09524@raven.dms.auburn.edu> (message from Luc Teirlinck on Sat, 27 Sep 2003 16:55:55 -0500 (CDT)) 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:16718 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16718 Using Saturday';s CVS snapshot, 2003 Sep 27 19:56 UTC GNU Emacs 21.3.50.94 (i686-pc-linux-gnu, GTK+ Version 2.2.1) started with /usr/local/bin/emacs -q --no-site-file --eval '(blink-cursor-mode 0)' Earlier, I wrote: M-x customize-face RET scroll-bar This customization function has no effect in an Emacs configured with --with-x-toolkit=gtk I would like to change the colors both of the foreground (the `thumb') and the background (the `trough') of the scroll bars. How do I do that? The response was ... is the answer to your question in `(emacs)GTK resources' and following sections, especially `(emacs)GTK names in Emacs'? No -- I just tried several variations on how to create a ~/.emacs.d/gtkrc file and none worked. (I also tried putting the variations into ~/.gtkrc-2.0 just in case ~/.emacs.d/gtkrc was the wrong name for the Emacs-specific file; that also failed.) This is a problem with the documentation. It should be clear enough. But the problem is worse than inadaquate documentation. The current message from `customize-face' is *false*. The `customize-face' method tells you that it has changed the foreground and background faces of the scroll bars when it has not. The `customize-face RET scroll-bar' feature needs to * check for the tool kit in use and if it is `GTK+' {i.e, if (featurep 'gtk) returns t}, - either have `customize-face' do the right thing, whatever that be, or - tell the user that `customize-face' fails with GTK and that the user must modify his or her ~/.emacs.d/gtkrc file. The work to be done to the ~/.emacs.d/gtkrc file needs to be described in a manner that a novice can understand. As for the documentation, * if customize is modified to customize GTK scroll bar faces, the documentation needs to be rewritten so that a moderate expert can follow it; * if customize is modified to tell people when it fails, the documentation needs to be rewritten so a novice can write a ~/.emacs.d/gtkrc file and achieve his or her desired results. You mention I personally use the native scroll-bar, ... I usually do as well. However, it is it worth testing Emacs built with the GTK toolkit every so often. I fear it is not tested enough. -- Robert J. Chassell Rattlesnake Enterprises http://www.rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.teak.cc bob@rattlesnake.com