public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Re: pref
       [not found] <80464F9A4D2BF042A154DD067F1F539302A63CC9@CEL-BANGT-M01>
@ 2004-10-18 16:47 ` Keith Seitz
  0 siblings, 0 replies; only message in thread
From: Keith Seitz @ 2004-10-18 16:47 UTC (permalink / raw)
  To: KiranKumar B Shivananda; +Cc: insight

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-18 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <80464F9A4D2BF042A154DD067F1F539302A63CC9@CEL-BANGT-M01>
2004-10-18 16:47 ` pref Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).