* How to use the gnuserv for GNU emacs for windows?
@ 2003-06-10 2:42 wangyu
2003-06-10 3:47 ` Peter Lee
2003-06-10 11:16 ` Rob Thorpe
0 siblings, 2 replies; 6+ messages in thread
From: wangyu @ 2003-06-10 2:42 UTC (permalink / raw)
The emacs I am using is the GNU Emacs for windows. I added the following
into the .emacs file to start the gnuserv:
;; start gnuserv on Windows
(if (or (eq window-system 'w32) (eq window-system 'win32)) ;.span
class=compcode>Windows NT/95
(progn
(require 'gnuserv)
(setq server-done-function 'bury-buffer
gnuserv-frame (car (frame-list)))
(gnuserv-start)
;;; open buffer in existing frame instead of creating new one...
(setq gnuserv-frame (selected-frame))
(message "gnuserv started.")))
Then I copied the four files of gnu into the same path as the emacs
executable file and add the path to the environment variable PATH.
Finally, I associated some file extension to gnuclientw.
However, when I double click the file, the emacs said:
An error has occurred while loading `c:/.emacs':
File error: "Cannot open load file", "gnuserv"
What's the problem?
thanks
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to use the gnuserv for GNU emacs for windows?
2003-06-10 2:42 How to use the gnuserv for GNU emacs for windows? wangyu
@ 2003-06-10 3:47 ` Peter Lee
2003-06-10 9:25 ` wangyu
2003-06-10 11:16 ` Rob Thorpe
1 sibling, 1 reply; 6+ messages in thread
From: Peter Lee @ 2003-06-10 3:47 UTC (permalink / raw)
>>>> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to use the gnuserv for GNU emacs for windows?
2003-06-10 3:47 ` Peter Lee
@ 2003-06-10 9:25 ` wangyu
2003-06-10 9:32 ` lawrence mitchell
0 siblings, 1 reply; 6+ messages in thread
From: wangyu @ 2003-06-10 9:25 UTC (permalink / raw)
"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 "\b? ?? ??? ?? ??#? ?5 ?5 ?? ?5 ??\x1a??n?#??? ?\v? ?!?? ?!??\x1d?!?
? ?f!? \f? ?\x14? ?f\v\"? ?\f\v#???f\x13*\x0e\x1f? ? ??#))? [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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to use the gnuserv for GNU emacs for windows?
2003-06-10 9:25 ` wangyu
@ 2003-06-10 9:32 ` lawrence mitchell
0 siblings, 0 replies; 6+ messages in thread
From: lawrence mitchell @ 2003-06-10 9:32 UTC (permalink / raw)
wangyu wrote:
[...]
> 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)
[...]
> 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
As you correctly intuit, it means that Emacs can't find the
gnuserv file in its load path. However, said path is /not/ the
same as the value of the PATH environment variable. But rather,
the value of the emacs variable `load-path'. To modify this to
include the path to gnuserv. You can add something like this to
your .emacs:
(add-to-list 'load-path "/path/to/dir/containing/gnuserv/")
before the (require 'gnuserv) call.
(see also C-h v load-path RET for a description of the
`load-path' variable).
--
lawrence mitchell <wence@gmx.li>
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: How to use the gnuserv for GNU emacs for windows?
@ 2003-06-10 10:33 andrew.maguire
0 siblings, 0 replies; 6+ messages in thread
From: andrew.maguire @ 2003-06-10 10:33 UTC (permalink / raw)
Cc: wangyu02
> >>>> wangyu writes:
>
> 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"
gnuserv also comes with a file, gnuserv.el. This needs to be placed in a
'site-lisp'
directory.
Look at the Emacs variable load-path for the places where Emacs looks for
.el files.
Andrew
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to use the gnuserv for GNU emacs for windows?
2003-06-10 2:42 How to use the gnuserv for GNU emacs for windows? wangyu
2003-06-10 3:47 ` Peter Lee
@ 2003-06-10 11:16 ` Rob Thorpe
1 sibling, 0 replies; 6+ messages in thread
From: Rob Thorpe @ 2003-06-10 11:16 UTC (permalink / raw)
"wangyu" <wangyu02@mails.tsinghua.edu.cn> wrote in message news:<bc3gd3$2jn0$1@mail.cn99.com>...
> The emacs I am using is the GNU Emacs for windows. I added the following
> into the .emacs file to start the gnuserv:
> ;; start gnuserv on Windows
> (if (or (eq window-system 'w32) (eq window-system 'win32)) ;.span
> class=compcode>Windows NT/95
> (progn
> (require 'gnuserv)
> (setq server-done-function 'bury-buffer
> gnuserv-frame (car (frame-list)))
> (gnuserv-start)
> ;;; open buffer in existing frame instead of creating new one...
> (setq gnuserv-frame (selected-frame))
> (message "gnuserv started.")))
>
> Then I copied the four files of gnu into the same path as the emacs
> executable file and add the path to the environment variable PATH.
> Finally, I associated some file extension to gnuclientw.
> However, when I double click the file, the emacs said:
> An error has occurred while loading `c:/.emacs':
> File error: "Cannot open load file", "gnuserv"
gnuserv.el must be somewhere where it will be seen by Emacs, mines in site-lisp
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-06-10 11:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-10 2:42 How to use the gnuserv for GNU emacs for windows? wangyu
2003-06-10 3:47 ` Peter Lee
2003-06-10 9:25 ` wangyu
2003-06-10 9:32 ` lawrence mitchell
2003-06-10 11:16 ` Rob Thorpe
-- strict thread matches above, loose matches on Subject: below --
2003-06-10 10:33 andrew.maguire
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).