[note xpost, followups]
> I'm not sure if this is the correct newsgroup for this question if it is
> not could you please refer me to the appropriate place.
xposted, and set followups.
That seems to work for me (well, I replace the command with 'echo hi',Quote:> I have an emacs lisp function that opens a shell then runs a shell script
> to initialize some environment variables that I need set inorder to 'make'
> my programs correctly, Here is the code
> (defun ldw-gnustep-shell()
> "Opens a shell and executes the GNUstep.sh file
> in /usr/GNUstep/System/Makefiles/GNUstep.sh"
> (insert ". /usr/GNUstep/System/Makefiles/GNUstep.sh")
and hi gets echoed).
You're thinking about this wrong. Go into the shell buffer, and typeQuote:
> My problem is I don't know if I am sending a carriage return properly
> after I have inserted the line
> ". /usr/GNUstep/System/Makefiles/GNUstep.sh"
C-h k RET
you'll see that when you press return, you don't actually insert a
newline. You call the function #'comint-send-input, which inserts a
newline, and sends the current line to the process.
So calling the function explicitly is probably the best way.
If you want divine justice, die.
-- Nick Seldon