From: Andreas Schwab <schwab@linux-m68k.org>
To: Sebastian Wiesner <lunaryorn@gmail.com>
Cc: "Pascal J. Bourguignon" <pjb@informatimago.com>, emacs-devel@gnu.org
Subject: Re: compile mode and $EMACS
Date: Sun, 11 Aug 2013 15:06:59 +0200 [thread overview]
Message-ID: <874nawidfw.fsf@igel.home> (raw)
In-Reply-To: <CALf2awR-3ai9zgfV2-daxrVkpgPg2tLfJRotFMTQeRfAxcNuvg@mail.gmail.com> (Sebastian Wiesner's message of "Sun, 11 Aug 2013 14:42:55 +0200")
Sebastian Wiesner <lunaryorn@gmail.com> writes:
> Which ones? Can you name *concrete* examples?
bash:
/*
* M-x term -> TERM=eterm EMACS=22.1 (term:0.96) (eterm)
* M-x shell -> TERM=dumb EMACS=t (no line editing)
* M-x terminal -> TERM=emacs-em7955 EMACS= (line editing)
*/
if (interactive_shell)
{
char *term, *emacs;
term = get_string_value ("TERM");
emacs = get_string_value ("EMACS");
/* Not sure any emacs terminal emulator sets TERM=emacs any more */
no_line_editing |= term && (STREQ (term, "emacs"));
no_line_editing |= emacs && emacs[0] == 't' && emacs[1] == '\0' && STREQ (term, "dumb");
/* running_under_emacs == 2 for `eterm' */
running_under_emacs = (emacs != 0) || (term && STREQN (term, "emacs", 5));
running_under_emacs += term && STREQN (term, "eterm", 5) && emacs && strstr (emacs, "term");
if (running_under_emacs)
gnu_error_format = 1;
}
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
prev parent reply other threads:[~2013-08-11 13:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-10 16:47 compile mode and $EMACS Sebastian Wiesner
2013-08-10 22:38 ` Xue Fuqiao
2013-08-11 10:39 ` Sebastian Wiesner
2013-08-11 12:28 ` Pascal J. Bourguignon
2013-08-11 12:42 ` Sebastian Wiesner
2013-08-11 13:06 ` Andreas Schwab [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874nawidfw.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=emacs-devel@gnu.org \
--cc=lunaryorn@gmail.com \
--cc=pjb@informatimago.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).