This is the mail archive of the
mailing list for the Insight project.
- From: Keith Seitz <keiths at redhat dot com>
- To: KiranKumar B Shivananda <kirankumar dot shivananda dot b at celstream dot com>
- Cc: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: Mon, 18 Oct 2004 09:52:02 -0700
- Subject: Re: pref
- References: <80464F9A4D2BF042A154DD067F1F539302A63CC9@CEL-BANGT-M01>
On Mon, 2004-10-18 at 05:27, KiranKumar B Shivananda wrote:
> 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".