Added EMACS to LibreWRT
[librewrt/.git] / packages / utils / emacs / patches / 010-fix-init-env.patch
1 Index: emacs23.2-openwrt-q/src/emacs.c
2 ===================================================================
3 --- emacs23.2-openwrt-q.orig/src/emacs.c        2010-12-18 20:24:35.000000000 +0100
4 +++ emacs23.2-openwrt-q/src/emacs.c     2010-12-18 20:28:41.000000000 +0100
5 @@ -1735,6 +1735,10 @@
6  #endif  /* HAVE_NTGUI */
7      }
8  
9 +  /* syms_of_callproc() resets process-environment to nil; generating it again
10 +   * here, as workaround (probably only hits us since we're not dumping */
11 +  set_initial_environment();
12 +
13    init_charset ();
14  
15    init_editfns (); /* init_process uses Voperating_system_release. */