From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: compile mode and $EMACS Date: Sun, 11 Aug 2013 15:06:59 +0200 Message-ID: <874nawidfw.fsf@igel.home> References: <87a9kommx9.fsf@informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376226441 32530 80.91.229.3 (11 Aug 2013 13:07:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Aug 2013 13:07:21 +0000 (UTC) Cc: "Pascal J. Bourguignon" , emacs-devel@gnu.org To: Sebastian Wiesner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 11 15:07:19 2013 Return-path: Envelope-to: ged-emacs-devel@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 1V8VMd-0003jZ-BY for ged-emacs-devel@m.gmane.org; Sun, 11 Aug 2013 15:07:19 +0200 Original-Received: from localhost ([::1]:48223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8VMc-0001ZZ-Rz for ged-emacs-devel@m.gmane.org; Sun, 11 Aug 2013 09:07:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8VMU-0001ZE-2h for emacs-devel@gnu.org; Sun, 11 Aug 2013 09:07:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8VMN-0000BQ-Sn for emacs-devel@gnu.org; Sun, 11 Aug 2013 09:07:10 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:47049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8VMN-0000Aj-Mh for emacs-devel@gnu.org; Sun, 11 Aug 2013 09:07:03 -0400 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3cCgSh45pBz3hhXb; Sun, 11 Aug 2013 15:07:00 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3cCgSh3tjqzbbbs; Sun, 11 Aug 2013 15:07:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id wWLeKzw1pWHT; Sun, 11 Aug 2013 15:06:59 +0200 (CEST) X-Auth-Info: B/WCkdBsYQh7j0EgKb8x7U7rRyJRou02uPQmKzaezoY= Original-Received: from igel.home (ppp-93-104-130-204.dynamic.mnet-online.de [93.104.130.204]) by mail.mnet-online.de (Postfix) with ESMTPA; Sun, 11 Aug 2013 15:06:59 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 45E1F2C0E75; Sun, 11 Aug 2013 15:06:59 +0200 (CEST) X-Yow: While I'm in LEVITTOWN I thought I'd like to see the NUCLEAR FAMILY!! In-Reply-To: (Sebastian Wiesner's message of "Sun, 11 Aug 2013 14:42:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 212.18.0.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162567 Archived-At: Sebastian Wiesner 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."