This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pref


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]