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

Re: Forms Mode

I tried both M-x forms-find-file and C-e C-f with exactly the same
results - still get the error message. It all works fine if I replace
the call to read-file-name function with just the string identifying
the message file e.g. (setq forms-file "/var/log/messages") which
leads me to think I'm starting the forms mode correctly but the
forms-file variable is not being set via the call to
read-file-name. In fact, as I don't get prompted at all, I suspect
that read-file-name is not doing anything or is not setting the
forms-file variable. 

T. V. Raman writes:
> You need to open those files with M-x forms-find-file --not
> load them like a regular lisp file.
> >>>>> "Tim" == Tim Cross <tcross@northnet.com.au> writes:
>     Tim> I decided to try out the forms mode with the
>     Tim> example messages.el file provided in the emacspeak
>     Tim> distribution. However, I get the error
>     Tim> Forms control file error: `forms-file' has not been
>     Tim> set
>     Tim> When I look at the messages.el file, the following
>     Tim> piece of code makes me think that when I load this
>     Tim> file it should prompt me for the name of the file
>     Tim> to use and the forms-file
>     Tim> (setq forms-file (read-file-name "Messages file: "
>     Tim> "/var/log/" "/var/log/messages"))
>     Tim> and in fact, if I replace this with
>     Tim> (setq forms-file "/var/log/messages")
>     Tim> Everything works fine. So, what is going wrong
>     Tim> here? Why isn't the read-file-name function
>     Tim> working? Am I missing something vital?
>     Tim> Feeling a bit thick (its been a long week and its
>     Tim> still only wednesday!)
>     Tim> Tim
>     Tim> -----------------------------------------------------------------------------
>     Tim> To unsubscribe or change your address send mail to
>     Tim> "emacspeak-request@cs.vassar.edu" with a subject of
>     Tim> "unsubscribe" or "help"
> -- 
> Best Regards,
> --raman
> Email:  tvraman@us.ibm.com
> WWW:    http://cs.cornell.edu/home/raman/             
> PGP:    http://cs.cornell.edu/home/raman/raman.asc 

       To unsubscribe or change your address send mail to
"emacspeak-request@cs.vassar.edu" with a subject of "unsubscribe" or "help"

Emacspeak Files | Subscribe | Unsubscribe