• Karoly Lorentey's avatar
    Store local environment in frame (not terminal) parameters. · da8e8fc1
    Karoly Lorentey authored
    * src/callproc.c (child_setup, getenv_internal, Fgetenv_internal):
      Store the local environment in a frame (not terminal) parameter.
      Update doc strings.
      (syms_of_callproc): Update doc strings.
      (Qenvironment): Moved to frame.c. 
    
    * lisp/env.el (read-envvar-name, setenv, getenv, environment): Use frame
      parameters to store the local environment, not terminal parameters.
    
    * server.el (server-process-filter): Store the local environment in a
      frame (not terminal) parameter.  Do not try to decode environment
      strings.
    
    * lisp/frame.el (make-frame): Set up the 'environment frame parameter,
      when needed.
    
    * src/frame.c (Qenvironment): Move here from callproc.c.
      (Fdelete_frame): Don't allow other frames to refer to a deleted frame
      in their 'environment parameter.
      (Fframe_with_environment): New function.
      (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
    
    * frame.h (Qenvironment): Declare.
    * lisp.h (Fframe_with_environment): EXFUN it.
    
    git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-467
    da8e8fc1
frame.h 37.6 KB