From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27479 invoked by alias); 18 Oct 2004 16:47:07 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 27459 invoked from network); 18 Oct 2004 16:47:06 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 18 Oct 2004 16:47:06 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i9IGl5G8004329 for ; Mon, 18 Oct 2004 12:47:05 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i9IGl5r22296; Mon, 18 Oct 2004 12:47:05 -0400 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i9IGl40T002086; Mon, 18 Oct 2004 12:47:05 -0400 Subject: Re: pref From: Keith Seitz To: KiranKumar B Shivananda Cc: "insight@sources.redhat.com" In-Reply-To: <80464F9A4D2BF042A154DD067F1F539302A63CC9@CEL-BANGT-M01> References: <80464F9A4D2BF042A154DD067F1F539302A63CC9@CEL-BANGT-M01> Content-Type: text/plain Message-Id: <1098118321.3240.3.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Date: Mon, 18 Oct 2004 16:47:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2004-q4/txt/msg00035.txt.bz2 On Mon, 2004-10-18 at 05:27, KiranKumar B Shivananda wrote: > Hi, > > what do the following lines do? > > pref setd /gdb/inculde/rows This causes an error. The correct syntax is "pref setd gdb/include/rows VALUE". It sets the preference "gdb/include/rows" to VALUE -- the same as if "pref set" had been used. Unlike "pref set", however, "pref setd" will not raise an error if the preference is not defined; it will simply define it. I don't know why it makes a distinction. These functions are from libgui src/libgui/library/prefs.tcl. > set rows [pref get gdb/gdbreg/rows] This will retrieve the preference setting "gdb/gdbreg/rows", storing it in the local variable "rows". Keith