delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/28/00:21:21

From: sawilla AT yahoo DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Error when compiling within Emacs
Message-ID: <38e0128e.680477@news>
References: <38dcfdc8 DOT 44704665 AT news> <200003260321 DOT WAA21084 AT mescaline DOT gnu DOT org>
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 289
Date: Tue, 28 Mar 2000 02:18:41 GMT
NNTP-Posting-Host: 24.65.239.223
X-Complaints-To: abuse AT home DOT net
X-Trace: news1.rdc1.ab.home.com 954209921 24.65.239.223 (Mon, 27 Mar 2000 18:18:41 PST)
NNTP-Posting-Date: Mon, 27 Mar 2000 18:18:41 PST
Organization: @Home Network Canada
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sat, 25 Mar 2000 22:21:06 -0500, Eli Zaretskii <eliz AT gnu DOT org>
wrote:

>I suspect this is something specific to your system setup.  If you
>have a _emacs init file, try running Emacs with "emacs -q" and if that
>makes the problem go away, look for the cause in your _emacs file.
>Otherwise, post here the details of your system and Emacs setup,
>including the version of Emacs you are using.

I tried using the -q switch and I still had the same result. I tried
to put in the full path to make.exe and it worked! It isn't a big
problem if I need to specify the full path but what change should I
make so that I can just use "make -k" instead of
"c:/progra~1/unix/bin/make -k"?

Thanks for all your help,
Reg

Here are the details of my system and setup:

HP Pavilion, Celeron 533, Windows 98, 128 MB RAM, 13 GB free hard disk
space.

GNU Emacs 20.4.1 (i386-*-windows98.2222) of Thu Jul 15 1999

Emacs installed in c:\program files\unix\bin

Autoexec.bat file:
*********************************
@echo off
C:\PROGRA~1\NETWOR~1\MCAFEE~1\SCAN.EXE C:\
IF ERRORLEVEL 1 PAUSE

REM To make a DOS Boot Diskette; See the file C:\DOSBOOT\DOSBOOT.TXT

set PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\UNIX\BIN
set DJGPP=C:\PROGRA~1\UNIX\DJGPP.ENV

REM SetPower.exe will initialize the USB Keyboard.
c:\windows\system\setpower.exe
                                  
rem - By Windows Setup - mscdex.exe /d:IDECD000 /L:M 

lh doskey
*********************************


djgpp.env
*********************************
#= Don't edit this line unless you move djgpp.env outside
#= of the djgpp installation directory.  If you do move
#= it, set DJDIR to the directory you installed DJGPP in.
#=
DJDIR=%:/>DJGPP%

+USER=dosuser
+GROUP=root
+TMPDIR=%DJDIR%/tmp
+EMU387=%DJDIR%/bin/emu387.dxe
+LFN=y
+TEXMFMAIN=%DJDIR%/share/texmf
+GO32STUB=%DJDIR%/bin/stubify.exe

[bison]
BISON_HAIRY=%DJDIR%/lib/bison.hai
BISON_SIMPLE=%DJDIR%/lib/bison.sim

[cpp]
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include
OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc
OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc

[gcc]
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib

[info]
INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info
+INFO_COLORS=0x1f.0x31
+INFO_LINES=40

[emacs]
INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info

[less]
+LESSBINFMT=*k<%%X>
+LESSCHARDEF=8bcccbcc12bc5b95.b127.b
LESS=-h5$y5$Dd2.0$Du14.0$Ds4.7$Dk9.0$%LESS%
+LESSSEPARATOR=/

[ispell]
+ISPELL_HOME=%DJDIR%/lib
+ISPELL_DICTDIR=%DJDIR%/lib
+ISPELL_COLORS=0x1e.0x74
+LINES=40

[locate]
+LOCATE_PATH=%DJDIR%/lib/locatedb.dat

[ls]
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
[dir]
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
[vdir]
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:

[enscript]
ENSCRIPT_LIBRARY=%DJDIR%/share/enscript

[bash]
PATH=%/>PATH%
+CONFIG_SITE=%DJDIR%/share/config.site

[sh]
PATH=%/>PATH%
+CONFIG_SITE=%DJDIR%/share/config.site

[groff]
+GROFF_TMAC_PATH=.;%DJDIR%/share/groff/tmac
+GROFF_TYPESETTER=ascii
+GROFF_FONT_PATH=.;%DJDIR%/share/groff/font

[eqn]
+GROFF_TMAC_PATH=.;%DJDIR%/share/groff/tmac
+GROFF_TYPESETTER=ascii

[grodvi]
+GROFF_FONT_PATH=.;%DJDIR%/share/groff/font

[grolj4]
+GROFF_FONT_PATH=.;%DJDIR%/share/groff/font

[grops]
+GROFF_FONT_PATH=.;%DJDIR%/share/groff/font
+GROFF_TMPDIR=%DJDIR%/tmp

[grotty]
+GROFF_FONT_PATH=.;%DJDIR%/share/groff/font

[indxbib]
+GROFF_EIGN=%DJDIR%/share/groff/eign

[lkbib]
+REFER=%DJDIR%/share/Ind

[refer]
+REFER=%DJDIR%/share/Ind
+GROFF_TMPDIR=%TMPDIR%

[troff]
+GROFF_TMAC_PATH=.;%DJDIR%/share/groff/tmac
+GROFF_TYPESETTER=ascii
+GROFF_FONT_PATH=.;%DJDIR%/share/groff/font

[gawk]
+AWKPATH=.;%DJDIR%/share/awk

[awk]
+AWKPATH=.;%DJDIR%/share/awk

[man]
MANPATH=%/>;MANPATH%%DJDIR%/man;%DJDIR%/info
+PAGER=%DJDIR%/bin/less.exe

[rhide]
RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx
RHIDE_TYPED_LIBS_DJGPP.cxx=stdcxx
RHIDE_TYPED_LIBS_DJGPP.cpp=stdcxx
RHIDE_TYPED_LIBS_DJGPP.f=g2c m

[grep]
+GREP_OPTIONS=--directories=skip

[fgrep]
+GREP_OPTIONS=--directories=skip

[egrep]
+GREP_OPTIONS=--directories=skip
*********************************


.emacs file:
*********************************
;; 1998 May - for use emacs version 20.02 or xemacs

; added 25-Mar-00 Forces .h files to be opened in c++ mode.
(setq auto-mode-alist (cons '("\\.h$" . c++-mode) auto-mode-alist))

;; bind C-x l to go to a line number
(define-key ctl-x-map "l" 'goto-line)

;; bind C-x v to go toggle between overwrite and insert mode
(define-key ctl-x-map "v" 'overwrite-mode)

;; bind C-x c to start the compiler
(define-key ctl-x-map "c" 'compile)

;; set line number display
(setq line-number-mode t)

;; keep marked regions highlighted
(setq transient-mark-mode t)

;; ask before allowing execution of code in mail
(setq enable-local-variables 1 )

;; uncomment to enter editing session where left off - see
saveplace.elc
(load "saveplace")
(setq-default save-place t)

; bind  C-h to delete
(define-key global-map "\C-h" 'backward-delete-char-untabify )

; bind M-? to help
(define-key global-map "\M-?" 'help-for-help )

;; prefered C, C++ and java style
  ;; make the new-line character also indent
  (setq c-mode-common-hook
    '(lambda () 
            (define-key global-map "\C-m"
'reindent-then-newline-and-indent)))
  ;; turn on mode to highlight syntax with colour
  (add-hook 'c-mode-common-hook	'turn-on-font-lock)

  (defun my-c-mode-common-hook ()
    ;; the default java style seems O.K for java mode
    ;; uncomment next line to use ellemtel indentation style
    ; (c-set-style "ellemtel")

    ;; other customizations can go here
    (c-set-offset 'case-label '+)
    (setq c-basic-offset 3)
    ;; make new-line character also indent - works for xemacs but not
emacs?
    ;(define-key c-mode-map "\C-m" 'newline-and-indent)
  )
  (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)


;; use Pascal mode for files with extension .p and highlight syntax
with colour
;  (setq auto-mode-alist 
;          (append (list (cons "\\.p$" 'pascal-mode))
auto-mode-alist))
  (setq pascal-mode-hook  '(lambda () (font-lock-mode 1)))

; added 21-Mar-00 Turns on syntax highlighting for all major modes
global-font-lock-mode 1
*********************************


emacs.bat
*********************************
@echo off 
set emacs_dir=C:\progra~1\unix

REM Here begins emacs.bat.in

REM Use new proxy shell by default.
set SHELL=%emacs_dir%\bin\cmdproxy.exe

set EMACSLOADPATH=%emacs_dir%\site-lisp;%emacs_dir%\lisp
set EMACSDATA=%emacs_dir%\etc
set EMACSPATH=%emacs_dir%\bin
set EMACSLOCKDIR=%emacs_dir%\lock
set INFOPATH=%emacs_dir%\info
set EMACSDOC=%emacs_dir%\etc
set TERM=CMD

REM The variable HOME is used to find the startup file, ~\_emacs.
Ideally,
REM this will not be set in this file but should already be set before
REM this file is invoked.  If HOME is not set, use some generic
default.

set HOME_SAVE=%HOME%
set HOME_EXISTS=yes
set HOME_DEFAULT=%emacs_dir%\home
set HOME=
if "%HOME%" == "%HOME_SAVE%" set HOME_EXISTS=no
if "%HOME_EXISTS%" == "yes" set HOME=%HOME_SAVE%
if "%HOME_EXISTS%" == "no" set HOME=%HOME_DEFAULT%
if "%HOME_EXISTS%" == "no" echo HOME is not set!  Using %HOME% as a
default...

%emacs_dir%\bin\emacs.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
*********************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019