From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael@cadilhac.name (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.devel Subject: Re: Location of init files for M-x shell. Date: Mon, 04 Dec 2006 14:16:32 +0100 Organization: Epita/LRDE Message-ID: <87slfv3iof.fsf@lrde.org> References: <87wt58yksi.fsf@lrde.org> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1206308038==" X-Trace: sea.gmane.org 1165238225 26057 80.91.229.10 (4 Dec 2006 13:17:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Dec 2006 13:17:05 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 04 14:17:03 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GrDgs-0004TI-Jr for ged-emacs-devel@m.gmane.org; Mon, 04 Dec 2006 14:17:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GrDgs-0000Lk-AU for ged-emacs-devel@m.gmane.org; Mon, 04 Dec 2006 08:17:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GrDgZ-0000LB-66 for emacs-devel@gnu.org; Mon, 04 Dec 2006 08:16:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GrDgW-0000Kf-JV for emacs-devel@gnu.org; Mon, 04 Dec 2006 08:16:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GrDgW-0000Kc-BQ for emacs-devel@gnu.org; Mon, 04 Dec 2006 08:16:40 -0500 Original-Received: from [62.39.139.2] (helo=kualalumpur.lrde.epita.fr) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GrDgR-0005Rh-9Q; Mon, 04 Dec 2006 08:16:36 -0500 Original-Received: from mahaena.lrde.epita.fr ([192.168.101.66] helo=mahaena.lrde) by kualalumpur.lrde.epita.fr with esmtp (Exim 4.50) id 1GrDgP-00054K-Uw; Mon, 04 Dec 2006 14:16:34 +0100 Original-To: rms@gnu.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEU/JREXDATg1LV8UCao i1fQpmoP3Nd6AAACa0lEQVQ4jWWUQW7jMAxFqZEPICJzAjXeM6W8dyNqX9ji/a8yn04xnWIEJLD9 LJH85DcJFyJV3erqPty8ExHfBikXSdn0WVezC0hOAQiA2nCsAHOqEnPe4k+puU8zw/t+xquqjRKA 4lHsmQBT8C5pDtBwfwH8VdcHI5+FHtjRxrQRwZsf3hNjZRKAPEzHEdH9mFNSYb5dQK3r8KM6ftNy KikAirDZFWdVkDqbxjGFbAcwbQCxxc8mPRHUGOcCIMgMACV23RfJTch3gC6ofT3qCdG0NyUUPfYF yQrKCIAnuYsgX2qPzW2i9sNrfSOSPPZQiygtCNlCjlpXJV38lIKshF/AZzsAMoArdCKNHfXukPuJ ImbLh+9J2gXwap0QpZ7NjZ7ekdkFcDiqPiLGcHmuvaG/AHgy62s52Lae1ABoA7D6d2kDoAvgbnyD ZutEd6lTHOXfYPHVJDH1K8a1+oyrjoZpAGn1x5pfwPr2E9yjxSpk50/gEyKgD/+BD/KzN3tQ13b8 Cx5loF0AgnZf5IUny9hRHQOYBllHDM+6s3oviZBu77mFjDm621Np3hkjR90wE1BkTYvhdDgDgCmR xWChFfcYAOqMm5NZkVWMur8AL5+oeMQOob2FmY76FiM+PrDDZypwGdqokSlAaQOmGH6mW8KpsOwl 0YOLedjSITr6scNRF8D4PesH33QmLrx8AzjpV/3kkg025w2gfAFYKCLluJAc4Ap+h18oo4S8wzaY klDsBUTiY8EZFkg5Iass75FubC9wd8qa0u9+gRxAsAKEaRAo6iB+vwCMGmdBjvgidQGA1ntMX4CS ZYGV/wADyL80LIX/UAAAAABJRU5ErkJggg== In-Reply-To: (Richard Stallman's message of "Mon\, 04 Dec 2006 00\:15\:48 -0500") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63267 Archived-At: --===============1206308038== Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Richard Stallman writes: > I think this is a good change, but before we install it, > you need to change the manuals, etc/NEWS, and anything else > that describes these names. Would you like to write that? Okey, here attached. As I was grepping the whole thing, I've seen that cmuscheme has the same `problem'. I've modified it too (see NEWS diff). --=-=-= Content-Type: text/x-patch; charset=iso-8859-1 Content-Disposition: inline; filename=init-files.patch Content-Transfer-Encoding: quoted-printable Index: lisp/cmuscheme.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/lisp/cmuscheme.el,v retrieving revision 1.42 diff -c -r1.42 cmuscheme.el *** lisp/cmuscheme.el 6 Feb 2006 14:33:32 -0000 1.42 =2D-- lisp/cmuscheme.el 4 Dec 2006 12:35:02 -0000 *************** *** 244,250 **** If there is a process already running in `*scheme*', switch to that buffe= r. With argument, allows you to edit the command line (default is value of `scheme-program-name'). ! If a file `~/.emacs_SCHEMENAME' exists, it is given as initial input. Note that this may lose due to a timing error if the Scheme processor discards input when it starts up. Runs the hook `inferior-scheme-mode-hook' \(after the `comint-mode-hook' =2D-- 244,251 ---- If there is a process already running in `*scheme*', switch to that buffe= r. With argument, allows you to edit the command line (default is value of `scheme-program-name'). ! If the file `~/.emacs_SCHEMENAME' or `~/.emacs.d/init_SCHEMENAME.scm' exi= sts, ! it is given as initial input. Note that this may lose due to a timing error if the Scheme processor discards input when it starts up. Runs the hook `inferior-scheme-mode-hook' \(after the `comint-mode-hook' *************** *** 268,279 **** "Return the name of the start file corresponding to PROG. Search in the directories \"~\" and \"~/.emacs.d\", in this order. Return nil if no start file found." ! (let* ((name (concat ".emacs_" (file-name-nondirectory prog))) ! (start-file (concat "~/" name))) (if (file-exists-p start-file) start-file ! (let ((start-file (concat "~/.emacs.d/" name))) ! (and (file-exists-p start-file) start-file))))) =20=20 (defun scheme-send-region (start end) "Send the current region to the inferior Scheme process." =2D-- 269,280 ---- "Return the name of the start file corresponding to PROG. Search in the directories \"~\" and \"~/.emacs.d\", in this order. Return nil if no start file found." ! (let ((progname (file-name-nondirectory prog)) ! (start-file (concat "~/.emacs_" progname)) ! (alt-start-file (concat "~/.emacs.d/init_" progname ".scm"))) (if (file-exists-p start-file) start-file ! (and (file-exists-p alt-start-file) alt-start-file)))) =20=20 (defun scheme-send-region (start end) "Send the current region to the inferior Scheme process." Index: lisp/shell.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/lisp/shell.el,v retrieving revision 1.143 diff -c -r1.143 shell.el *** lisp/shell.el 15 Oct 2006 20:42:10 -0000 1.143 =2D-- lisp/shell.el 4 Dec 2006 12:35:03 -0000 *************** *** 521,529 **** Program used comes from variable `explicit-shell-file-name', or (if that is nil) from the ESHELL environment variable, or else from SHELL if there is no ESHELL. ! If a file `~/.emacs_SHELLNAME' exists, it is given as initial input ! (Note that this may lose due to a timing error if the shell ! discards input when it starts up.) The buffer is put in Shell mode, giving commands for sending input and controlling the subjobs of the shell. See `shell-mode'. See also the variable `shell-prompt-pattern'. =2D-- 521,529 ---- Program used comes from variable `explicit-shell-file-name', or (if that is nil) from the ESHELL environment variable, or else from SHELL if there is no ESHELL. ! If a file `~/.emacs_SHELLNAME' exists, or `~/.emacs.d/init_SHELLNAME.sh', ! it is given as initial input (Note that this may lose due to a timing ! error if the shell discards input when it starts up). The buffer is put in Shell mode, giving commands for sending input and controlling the subjobs of the shell. See `shell-mode'. See also the variable `shell-prompt-pattern'. *************** *** 556,563 **** (name (file-name-nondirectory prog)) (startfile (concat "~/.emacs_" name)) (xargs-name (intern-soft (concat "explicit-" name "-args")))) ! (if (not (file-exists-p startfile)) ! (setq startfile (concat "~/.emacs.d/.emacs_" name))) (apply 'make-comint-in-buffer "shell" buffer prog (if (file-exists-p startfile) startfile) (if (and xargs-name (boundp xargs-name)) =2D-- 556,563 ---- (name (file-name-nondirectory prog)) (startfile (concat "~/.emacs_" name)) (xargs-name (intern-soft (concat "explicit-" name "-args")))) ! (unless (file-exists-p startfile) ! (setq startfile (concat "~/.emacs.d/init_" name ".sh"))) (apply 'make-comint-in-buffer "shell" buffer prog (if (file-exists-p startfile) startfile) (if (and xargs-name (boundp xargs-name)) Index: lisp/ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/lisp/ChangeLog,v retrieving revision 1.10400 diff -c -0 -r1.10400 ChangeLog *** lisp/ChangeLog 4 Dec 2006 10:24:04 -0000 1.10400 =2D-- lisp/ChangeLog 4 Dec 2006 12:35:15 -0000 *************** *** 0 **** =2D-- 1,7 ---- + 2006-12-04 Micha=EBl Cadilhac +=20 + * cmuscheme.el (run-scheme, scheme-start-file): Search the start + file in ~/.emacs.d as `init_SCHEMENAME.scm' instead. + * shell.el (shell): Search the start file in ~/.emacs.d as + `init_SHELLNAME.sh' instead. +=20 Index: etc/NEWS =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/etc/NEWS,v retrieving revision 1.1409 diff -c -r1.1409 NEWS *** etc/NEWS 1 Dec 2006 13:36:26 -0000 1.1409 =2D-- etc/NEWS 4 Dec 2006 12:38:55 -0000 *************** *** 235,242 **** +++ ** Init file changes If the init file ~/.emacs does not exist, Emacs will try ! ~/.emacs.d/init.el or ~/.emacs.d/init.elc. You can also put the shell ! init file .emacs_SHELL under ~/.emacs.d. =20=20 +++ ** Emacs now reads the standard abbrevs file ~/.abbrev_defs =2D-- 235,242 ---- +++ ** Init file changes If the init file ~/.emacs does not exist, Emacs will try ! ~/.emacs.d/init.el or ~/.emacs.d/init.elc. Likewise, if the shell init f= ile ! ~/.emacs_SHELL is not found, Emacs will try ~/.emacs.d/init_SHELL.sh. =20=20 +++ ** Emacs now reads the standard abbrevs file ~/.abbrev_defs *************** *** 2162,2170 **** *** Emacs now offers to start Scheme if the user tries to evaluate a Scheme expression but no Scheme subprocess is running. =20=20 ! *** If a file `.emacs_NAME' (where NAME is the name of the Scheme interpr= eter) ! exists in the user's home directory or in ~/.emacs.d, its ! contents are sent to the Scheme subprocess upon startup. =20=20 *** There are new commands to instruct the Scheme interpreter to trace procedure calls (`scheme-trace-procedure') and to expand syntactic forms =2D-- 2162,2170 ---- *** Emacs now offers to start Scheme if the user tries to evaluate a Scheme expression but no Scheme subprocess is running. =20=20 ! *** If the file ~/.emacs_NAME or ~/.emacs.d/init_NAME.scm (where NAME ! is the name of the Scheme interpreter) exists, its contents are sent ! to the Scheme subprocess upon startup. =20=20 *** There are new commands to instruct the Scheme interpreter to trace procedure calls (`scheme-trace-procedure') and to expand syntactic forms Index: etc/ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/etc/ChangeLog,v retrieving revision 1.476 diff -c -0 -r1.476 ChangeLog *** etc/ChangeLog 1 Dec 2006 17:43:30 -0000 1.476 =2D-- etc/ChangeLog 4 Dec 2006 12:39:02 -0000 *************** *** 0 **** =2D-- 1,7 ---- + 2006-12-04 Micha=EBl Cadilhac +=20 + * NEWS (Changes to cmuscheme): Mention the alternative for + `~/.emacs_SCHEMEPROG' which is `~/.emacs.d/init_SCHEMEPROG.scm'. + (Init file changes): Same for `~/.emacs_SHELL' versus=20 + `~/.emacs.d/init_SHELL.sh'. +=20 Index: man/anti.texi =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/man/anti.texi,v retrieving revision 1.39 diff -c -r1.39 anti.texi *** man/anti.texi 22 Nov 2006 17:13:41 -0000 1.39 =2D-- man/anti.texi 4 Dec 2006 12:39:24 -0000 *************** *** 66,72 **** We have standardized on one location for the user init file: the file named @file{.emacs} in your home directory. Emacs will not look for the init file in @file{~/.emacs.d/init.el}. Similarly, don't try ! putting @file{.emacs_SHELL} in @file{~/.emacs.d}; Emacs won't find it. =20=20 @item Emacs will not read @file{~/.abbrev_defs} automatically. If you want =2D-- 66,73 ---- We have standardized on one location for the user init file: the file named @file{.emacs} in your home directory. Emacs will not look for the init file in @file{~/.emacs.d/init.el}. Similarly, don't try ! putting @file{.emacs_SHELL} as @file{init_SHELL.sh} in ! @file{~/.emacs.d}; Emacs won't find it. =20=20 @item Emacs will not read @file{~/.abbrev_defs} automatically. If you want Index: man/faq.texi =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/man/faq.texi,v retrieving revision 1.100 diff -c -r1.100 faq.texi *** man/faq.texi 7 Oct 2006 00:14:09 -0000 1.100 =2D-- man/faq.texi 4 Dec 2006 12:39:24 -0000 *************** *** 2761,2767 **** endif @end example =20=20 ! Or put this in your @file{.emacs_tcsh} file: =20=20 @example unset edit =2D-- 2761,2767 ---- endif @end example =20=20 ! Or put this in your @file{.emacs_tcsh} or @file{~/.emacs.d/init_tcsh.sh} = file: =20=20 @example unset edit Index: man/misc.texi =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/man/misc.texi,v retrieving revision 1.94 diff -c -r1.94 misc.texi *** man/misc.texi 18 Nov 2006 21:00:16 -0000 1.94 =2D-- man/misc.texi 4 Dec 2006 12:39:25 -0000 *************** *** 478,484 **** @file{~/.emacs_@var{shellname}} as input, if it exists, where @var{shellname} is the name of the file that the shell was loaded from. For example, if you use bash, the file sent to it is ! @file{~/.emacs_bash}. =20=20 To specify a coding system for the shell, you can use the command @kbd{C-x @key{RET} c} immediately before @kbd{M-x shell}. You can =2D-- 478,485 ---- @file{~/.emacs_@var{shellname}} as input, if it exists, where @var{shellname} is the name of the file that the shell was loaded from. For example, if you use bash, the file sent to it is ! @file{~/.emacs_bash}. If this file is not found, Emacs tries to fallback ! on @file{~/.emacs.d/init_@var{shellname}.sh}. =20=20 To specify a coding system for the shell, you can use the command @kbd{C-x @key{RET} c} immediately before @kbd{M-x shell}. You can Index: man/ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /sources/emacs/emacs/man/ChangeLog,v retrieving revision 1.1138 diff -c -0 -r1.1138 ChangeLog *** man/ChangeLog 1 Dec 2006 13:23:01 -0000 1.1138 =2D-- man/ChangeLog 4 Dec 2006 12:39:34 -0000 *************** *** 0 **** =2D-- 1,7 ---- + 2006-12-04 Micha=EBl Cadilhac +=20 + * misc.texi (Interactive Shell): Mention the alternative to + `~/.emacs_SHELLNAME', which is `~/.emacs.d/init_SHELLNAME.sh'. + * faq.texi (^M in the shell buffer): Ditto. + * anti.texi (Antinews): Ditto. +=20 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable TIA ! =2D-=20 /!\ My mail address has changed, please update your files accordingly. | Micha=EBl `Micha' Cadilhac | ... KVim is cited in the talk. = | | Epita/LRDE Promo 2007 | "I can't tell if I am more sorry = | | http://michael.cadilhac.name | for vim or for KDE." = | `--JID: michael.cadilhac@gmail.com--' -- RMS - = --' --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFdB+zUJhDmOfFA3URAjs0AJ9wW0hRHKVFkHsxADInfXUjUbrBVACgh/By PGhHoUPptPyd/s9AlN4PkJ8= =gq6d -----END PGP SIGNATURE----- --==-=-=-- --===============1206308038== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1206308038==--