emacs Shell mode vs AC_CHECK_PROG(EMACS, ...)

2006-09-10 Thread Don.Bashford
I like to do my builds of almost anything from source under emacs Shell mode. But emacs Shell mode sets the environment variable EMACS to "t". This causes the output of autoconf's AC_CHECK_PROG(EMACS, ...) to set EMACS="t", with the result that in any Makefile generated from EMACS = @EMACS@ in Ma

Re: emacs Shell mode vs AC_CHECK_PROG(EMACS, ...)

2006-09-11 Thread Paul Eggert
<[EMAIL PROTECTED]> writes: > I like to do my builds of almost anything from source under emacs Shell > mode. But emacs Shell mode sets the environment variable EMACS to > "t". This causes the output of autoconf's AC_CHECK_PROG(EMACS, ...) > to set EMACS="t", with the result that in any Makefile

Re: emacs Shell mode vs AC_CHECK_PROG(EMACS, ...)

2006-09-11 Thread Chet Ramey
> For a short-term correction, I think the easiest way is to change > Autoconf to ignore a value of `t' for this environment variable. > Autoconf maintainers, what do you think? > > For longer term, perhaps the best thing is to change Emacs to use a > different environment variable. Alas, I don't

Re: emacs Shell mode vs AC_CHECK_PROG(EMACS, ...)

2006-09-11 Thread Don.Bashford
> "rms" == Richard Stallman <[EMAIL PROTECTED]> writes: rms> For a short-term correction, I think the easiest way is to rms> change Autoconf to ignore a value of `t' for this environment rms> variable. Autoconf maintainers, what do you think? rms> For longer term, perhaps th

Re: emacs Shell mode vs AC_CHECK_PROG(EMACS, ...)

2006-09-11 Thread Don.Bashford
> "Chet" == Chet Ramey <[EMAIL PROTECTED]> writes: Chet> Bash does inspect the EMACS environment variable as part of Chet> checking whether or not to turn off line editing even when Chet> the shell is interactive. It also checks for TERM==emacs. Chet> If the shell discovers it

Re: emacs Shell mode vs AC_CHECK_PROG(EMACS, ...)

2006-09-11 Thread Richard Stallman
I like to do my builds of almost anything from source under emacs Shell mode. But emacs Shell mode sets the environment variable EMACS to "t". This causes the output of autoconf's AC_CHECK_PROG(EMACS, ...) to set EMACS="t", with the result that in any Makefile generated from

Re: emacs Shell mode vs AC_CHECK_PROG(EMACS, ...)

2006-09-12 Thread Richard Stallman
Your fix is very clever, and I think it is a feature that running configure scripts in a shell under Emacs uses the same Emacs. So please install your change, and we can consider the problem fully solved.

Re: emacs Shell mode vs AC_CHECK_PROG(EMACS, ...)

2006-09-13 Thread Chet Ramey
> <[EMAIL PROTECTED]> writes: > >For example, emacs could send the shell something like "shopt > > -u -o emacs; shopt -u -o vi". Then emacs could leave EMACS alone. > > Stuffing input to a subshell like that is in general not something you > can do reliably. Yeah, that's dicy, but you don't have

Re: emacs Shell mode vs AC_CHECK_PROG(EMACS, ...)

2006-09-14 Thread Kim F. Storm
Chet Ramey <[EMAIL PROTECTED]> writes: >> <[EMAIL PROTECTED]> writes: >> >For example, emacs could send the shell something like "shopt >> > -u -o emacs; shopt -u -o vi". Then emacs could leave EMACS alone. >> >> Stuffing input to a subshell like that is in general not something you >> can do re

Re: emacs Shell mode vs AC_CHECK_PROG(EMACS, ...)

2006-09-14 Thread Miles Bader
<[EMAIL PROTECTED]> writes: >For example, emacs could send the shell something like "shopt > -u -o emacs; shopt -u -o vi". Then emacs could leave EMACS alone. Stuffing input to a subshell like that is in general not something you can do reliably. -miles -- We are all lying in the gutter, but s