help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to use the gnuserv for GNU emacs for windows?


From: wangyu
Subject: Re: How to use the gnuserv for GNU emacs for windows?
Date: Tue, 10 Jun 2003 17:25:34 +0800

"Peter Lee" <pete_lee@swbell.net> ??????:u1xy2d26a.fsf@swbell.net...
> >>>> wangyu  writes:
>
>     wangyu> The emacs I am using is the GNU Emacs for windows. I added
>     wangyu> the following into the .emacs file to start the gnuserv:
>     wangyu> ;; start gnuserv on Windows (if (or (eq window-system
>     wangyu> 'w32) (eq window-system 'win32)) ;.span
>     wangyu> class=compcode>Windows NT/95 (progn (require 'gnuserv)
>     wangyu> (setq server-done-function 'bury-buffer gnuserv-frame (car
>     wangyu> (frame-list))) (gnuserv-start) ;;; open buffer in existing
>     wangyu> frame instead of creating new one...  (setq gnuserv-frame
>     wangyu> (selected-frame)) (message "gnuserv started.")))
>
>     wangyu> Then I copied the four files of gnu into the same path as
>     wangyu> the emacs executable file and add the path to the
>     wangyu> environment variable PATH.  Finally, I associated some
>     wangyu> file extension to gnuclientw.  However, when I double
>     wangyu> click the file, the emacs said: An error has occurred
>     wangyu> while loading `c:/.emacs': File error: "Cannot open load
>     wangyu> file", "gnuserv"
>
> It looks like there's an error in your .emacs.  Try launching emacs
> with --debug-init.
>
> I'm not a lisp expert, but you could simplify the loading of gnuserv
> by doing the following to rule out errors in your conditional
> statements.  Once you've narrowed down the problem you could start
> adding the conditionals back to see whats breaking.  Just a guess.
>
> (require 'gnuserv)
> (gnuserv-start)
> (setq gnuserv-frame (selected-frame))
>
> The above works for me.
thank you, but it still doesn't work. the debugger information is as
follows:
Debugger entered--Lisp error: (file-error "Cannot open load file" "gnuserv")
  require(gnuserv)
  eval-buffer(#<buffer  *load*> nil "~/.emacs" nil t)
  load-with-code-conversion("c:/.emacs" "~/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "?  ?? ???  ?? ??#? ?5 ?5  ?? ?5 ????n?#??? ?? ?!?? ?!???!?
? ?f!? \f? ?? ?f\"? ?\f#???f*? ? ??#))? [init-file-user system-type
user-init-file-1 user-init-file source alt ms-dos "~" "/_emacs" windows-nt
directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "~/_emacs" vax-vms
"sys$login:.emacs" "/.emacs" t load file-name-extension "elc"
file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message
"Warning: %s is newer than %s" sit-for 1 "default" inhibit-default-init
inhibit-startup-message] 5]()
  command-line()
  normal-top-level()

I can't understand what this means. Since it says that cannot open the file
gnuserv, I think maybe it is a problem of path. However, I have add the path
to the environment variable "PATH". Would you please tell me where did you
put your emacs and the gunserv file? thanks




reply via email to

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