From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Why does exec-path seem to be modified? Date: Sun, 15 Feb 2015 19:57:50 +0200 Message-ID: <83iof3ukf5.fsf@gnu.org> References: <87lhk0w4o5.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1424023099 6195 80.91.229.3 (15 Feb 2015 17:58:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Feb 2015 17:58:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 15 18:58:13 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YN3SO-0005x5-Hl for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Feb 2015 18:58:12 +0100 Original-Received: from localhost ([::1]:36146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN3SO-0006ym-4W for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Feb 2015 12:58:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN3S9-0006yg-0V for help-gnu-emacs@gnu.org; Sun, 15 Feb 2015 12:58:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YN3S4-0008KF-6c for help-gnu-emacs@gnu.org; Sun, 15 Feb 2015 12:57:56 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:47128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN3S3-0008K4-UO for help-gnu-emacs@gnu.org; Sun, 15 Feb 2015 12:57:52 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NJT00900R04H800@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Sun, 15 Feb 2015 19:57:49 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJT008SVR8AYB90@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Sun, 15 Feb 2015 19:57:47 +0200 (IST) In-reply-to: <87lhk0w4o5.fsf@wmi.amu.edu.pl> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102733 Archived-At: > From: Marcin Borkowski > Date: Sat, 14 Feb 2015 22:42:50 +0100 > > C-h v exec-path RET > shows roughly this in my Emacs: > > exec-path is a variable defined in `C source code'. > Its value is > ("/home/marcin/texlive/2014/bin/i386-linux" "/home/marcin/bin" "/usr/local/sbin" "/usr/local/bin" "/usr/sbin" "/usr/bin" "/sbin" "/bin" "/usr/games" "/usr/local/games" "/usr/local/libexec/emacs/25.0.50/i686-pc-linux-gnu") > > Original value was > ("/home/marcin/texlive/2014/bin/i386-linux" "/home/marcin/bin" "/usr/local/sbin" "/usr/local/bin" "/usr/sbin" "/usr/bin" "/sbin" "/bin" "/usr/games" "/usr/local/games" "/home/marcin/other-files/emacs/emacs/lib-src" "/usr/local/libexec/emacs/25.0.50/i686-pc-linux-gnu") > > The /home/marcin/other-files/emacs/emacs is where the source code of my > Emacs lives. > > Why is there a difference between its "value" and "original value"? Because Emacs modifies the original value during startup, see callproc.c.