bug-oleo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting options


From: Pete Wyckoff
Subject: Re: Setting options
Date: Sat, 12 May 2001 12:28:58 -0400

address@hidden said:
> Thanks for the response.  Unfortunately I'm still having problems setting
> options.
> 
> The general format I'm using for setting an option is:
>   M-x set-option RET option [value if there is one] RET
> 
> E.g., M-x set-option RET status -1 RET  works as it should to reposition
> the status line.
> 
> However, when I do  M-x set-option RET file oleo RET  I get: Unknown
> option 'oleo'.  Likewise, if I replace "oleo" with any of "sylk, sc, list,
> csv, panic, sylk-noa0" I get a similar message, with of course the unknown
> option being whatever the specified format was.  

Bug bug bug.  You're doing everything correctly.  I'll check it in soon.

                -- Pete

Here's the quick fix:

Index: io-term.c
===================================================================
RCS file: /cvsroot/oleo/oleo/src/io-term.c,v
retrieving revision 1.53
diff -u -r1.53 io-term.c
--- io-term.c   2001/04/19 00:05:27     1.53
+++ io-term.c   2001/05/12 16:27:53
@@ -233,8 +233,8 @@
                        (Preferences[i].trigger)(ptr);
 
                if (Preferences[i].copynext) {
-                       ptr += strlen(Preferences[i].name) + 1;
-                       *(char **)Preferences[i].var = strdup(ptr);
+                       *(char **)Preferences[i].var = strdup(ptr +
+                         strlen(Preferences[i].name) + 1);
                } else if (Preferences[i].var)
                        *(int *)Preferences[i].var = Preferences[i].value;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]