[comp.emacs] uEmacs 3.9 '@' problem - more

rbp@investor.UUCP (Bob Peirce) (09/22/87)

I discovered that main.c for 3.9 handles rc files differently from
3.8i.  I was able to get both a standard rc file to load and a file
specified with '@' as in "emacs f1 f2 @rc" with the following mod:

		} else if (argv[carg][0]== '@') {

			/* Process Startup macroes */
			if (startup(&argv[carg][1]) == TRUE)
				/* don't execute emacs.rc */
				startflag = TRUE;

		} else {

			/* Process an input file */
			
***			/* if we haven't run emacs.rc, do it now */
***			if (startflag == FALSE) {
***				startup("");
***				startflag = TRUE;
***			}

			/* set up a buffer for this file */
	                makename(bname, argv[carg]);
			unqname(bname);


This manages to load the two rc files.  The second file also starts to
execute.  However, somewhere at the end of the process something gets
trashed and it doesn't run to completion.  Everything gets loaded in,
but the last window contains buffer f1 instead of the correct buffer.  I
can't be sure, but it may have something to do with the fact that "f1"
is used to set a variable and rc has a line that says "execute-buffer
f1".  This does work under 3.8i.  I have also had problems having the rc
file execute-file "path/f1".  This dumps core, causing me to suspect
a problem with the routines that execute buffers and files.

I hope this gives a clue that can lead to a solution.

-- 
Bob Peirce, Pittsburgh, PA				 412-471-5320
uucp: ...!{allegra, bellcore, cadre, idis, psuvax1}!pitt!investor!rbp
	    NOTE:  Mail must be < 30K  bytes/message