From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: CRLF0710 Newsgroups: gmane.emacs.bugs Subject: bug#9481: 24.0.50; emacs_dir behavior too cumbersome for use within msys Date: Mon, 12 Sep 2011 16:01:44 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1315814764 31518 80.91.229.12 (12 Sep 2011 08:06:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2011 08:06:04 +0000 (UTC) To: 9481@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 12 10:06:00 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R31Wh-0004xW-Ai for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2011 10:05:59 +0200 Original-Received: from localhost ([::1]:38778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R31Wg-0003Eg-SW for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2011 04:05:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R31UW-0002xS-Bq for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 04:03:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R31UU-000846-Aq for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 04:03:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R31UU-00083u-60 for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 04:03:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R31Yf-00011U-KU; Mon, 12 Sep 2011 04:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: CRLF0710 Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Sep 2011 08:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9481 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.13158148303863 (code B ref -1); Mon, 12 Sep 2011 08:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Sep 2011 08:07:10 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R31Xq-00010F-Aa for submit@debbugs.gnu.org; Mon, 12 Sep 2011 04:07:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R31XP-0000z4-7l for submit@debbugs.gnu.org; Mon, 12 Sep 2011 04:06:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R31T7-0007t3-5Y for submit@debbugs.gnu.org; Mon, 12 Sep 2011 04:02:23 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:41232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R31T7-0007sy-3b for submit@debbugs.gnu.org; Mon, 12 Sep 2011 04:02:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R31T0-0002FA-Jv for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 04:02:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R31Sv-0007qa-PO for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 04:02:10 -0400 Original-Received: from mail-gx0-f172.google.com ([209.85.161.172]:58392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R31Sv-0007qW-Ji for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 04:02:05 -0400 Original-Received: by gxk19 with SMTP id 19so3282268gxk.31 for ; Mon, 12 Sep 2011 01:02:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=uMQDA3K2ha1HRzwazx4iZFTI3zUQJ6vgZsmvSF9XFsw=; b=tNJuhS/PvaIxyS220xUQ1Q72yHVapwaaGquumnrQfqJ1qjdINq6mzkAN57jhuy1lMe mfluIKFL3NOIfGF4386MCFJ8/8cvDZ7bRP5Vjwct4Ckkz/H09960Wwzyjct3AWGHzWUG 4HLxVNEMtJ5CWX6546TDCmcInEZ2w8vN3KgFE= Original-Received: by 10.150.13.12 with SMTP id 12mr552913ybm.149.1315814524796; Mon, 12 Sep 2011 01:02:04 -0700 (PDT) Original-Received: by 10.151.45.11 with HTTP; Mon, 12 Sep 2011 01:01:44 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 12 Sep 2011 04:07:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 12 Sep 2011 04:08:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Mon, 12 Sep 2011 04:05:55 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51045 Archived-At: Hello. emacs_dir is a special environment variable on Win32. If Emacs.exe is located in a "bin/" directory, it will be calculated, which is not a desired behavior at all times. One might want to use it in msys and organize the emacs files in a way similiar to that of *nix systems. To fulfill this, one might want to set emacs_dir to the *:/share/emacs// directory. This works unless the emacs.exe is in the *:/bin directory(in fact any directory which is not with the name "bin" or "i386"). in src/w32.c, the existing code > _snprintf (buf, sizeof (buf)-1, "emacs_dir=3D%s", modname); > _putenv (strdup (buf)); will override this settings directly, but i think to modify the env_vars[] array, which is a copy of dflt_envvars[], should be the correct behavior. something like: > for (i =3D 0; i < N_ENV_VARS; i++) > { > if(strcmp(env_vars[i].name, "emacs_dir")=3D=3D0) > { > env_vars[i].def_value =3D ; > } > } may solve this. In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7601) of 2011-04-11 on SHAN-PC Windowing system distributor `Microsoft Corp.', version 6.1.7601 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: CHS value of $XMODIFIERS: nil locale-coding-system: cp936 default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: recentf-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m b Recent messages: Loading recentf...done Loading d:/home/CrLFWorkshop/.recentf...done Cleaning up the recentf list...done (0 removed) Ido mode enabled Loading d:/progra~1/emacs/site-lisp/proofgeneral/generic/proof-site.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: d:/Program Files/Emacs/site-lisp/emacs-jabber-0.8.0/compat/sha1 hides d:/Program Files/Emacs/lisp/sha1 d:/Program Files/Emacs/site-lisp/emacs-jabber-0.8.0/compat/hex-util hides d:/Program Files/Emacs/lisp/hex-util d:/Program Files/Emacs/site-lisp/emms/tq hides d:/Program Files/Emacs/lisp/emacs-lisp/tq d:/Program Files/Emacs/site-lisp/emacs-w3m/attic/rfc2368 hides d:/Program Files/Emacs/lisp/mail/rfc2368 Features: (shadow mail-extr message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader emacsbug help-mode view multi-term term ehelp electric proof-site proof-autoloads pg-vars lyric-mode emms-bookmarks emms-lastfm-client emms-lastfm-scrobbler w3m doc-view jka-compr image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util xml parse-time emms-cue emms-mode-line-icon emms-browser sort emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd tq emms-playing-time emms-streams emms-tag-editor format-spec emms-info-metaflac emms-mark emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-info later-do emms-playlist-mode emms-player-vlc emms-player-mplayer emms-source-playlist emms-lyrics emms-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse auth-source eieio assoc gnus-util password-cache url-vars mm-util mail-prsvr mailcap time-date emms-source-file locate dired emms-player-simple hl-line emms-setup emms emms-compat jabber-autoloads anything warnings ido inferior-slime inf-lisp info-look info slime-autodoc advice advice-preload slime-parse slime-autoloads slime byte-opt bytecomp byte-compile cconv macroexp derived help-fns edmacro kmacro easy-mmode hideshow pp comint ring hyperspec thingatpt browse-url cl cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt recentf tree-widget wid-edit easymenu cus-start cus-load china-util tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer button faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) -- Wir m=FCssen wissen; wir werden wissen! CrLF.0710