From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Re: Autogen in Emacs Shell Date: Fri, 1 May 2015 21:07:53 +0200 Message-ID: References: <83twvzszjv.fsf@gnu.org> <20150501092657.GA19316@tuxteam.de> <20150501150340.GB30776@tuxteam.de> <83sibgqjb3.fsf@gnu.org> <83ioccqggj.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1430507295 26417 80.91.229.3 (1 May 2015 19:08:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 19:08:15 +0000 (UTC) Cc: help-gnu-emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 01 21:08:14 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1YoGIG-0001ry-Q0 for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 21:08:12 +0200 Original-Received: from localhost ([::1]:55259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoGIG-0008J3-2f for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 15:08:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoGI1-0008I5-Gi for help-gnu-emacs@gnu.org; Fri, 01 May 2015 15:07:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoGI0-0003ba-Ar for help-gnu-emacs@gnu.org; Fri, 01 May 2015 15:07:57 -0400 Original-Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:36381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoGHy-0003bH-TR; Fri, 01 May 2015 15:07:55 -0400 Original-Received: by lagv1 with SMTP id v1so69533153lag.3; Fri, 01 May 2015 12:07:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=YxudVMFFbvSMYeDfUuRZbuZLxhuozZd7uEYY8yfZhF4=; b=w8SpRsejNlt8O6g9ZLhMFzN5lmlOhwKL/CvX0sVIaIlOKvIr/D2tz5PTsETkDxUmiG zjC9zP8lWxPkgZYrd+DY3yuP0+TY/cKRTSgrZbPILVe4p9zpDCVdK5q6ZeyotN/V3bE9 JRgG9q34lshxZ4lgJBKMphAf7cJ/O1TIgtfUG4P+r8nx6S/uS4l2epuAZqeRRFYoJWt1 tWfLd49+X15AM6hDVv4U5bZLCK2/BpsOQRR/u2SiKX3dr9DX7kXLfhX5e9nzjFR6lOsk Ecy5gjOV2QSMG3gJdDkZsckQT/nSPpiTwW4lpQMS6GCcnbEYVwTfPFgA7mgYMBNKzfF/ viLg== X-Received: by 10.152.87.204 with SMTP id ba12mr9539710lab.35.1430507274247; Fri, 01 May 2015 12:07:54 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Fri, 1 May 2015 12:07:53 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::236 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104146 Archived-At: Looks like it's here: (pop-to-buffer buffer) (unless (comint-check-proc buffer) (let* ((prog (or explicit-shell-file-name (getenv "ESHELL") shell-file-name)) (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 user-emacs-directory "init_" name ".sh"))) (apply 'make-comint-in-buffer "shell" buffer prog (if (file-exists-p startfile) startfile) (if (and xargs-name (boundp xargs-name)) (symbol-value xargs-name) '("-i"))) (shell-mode))) in the `shell' function.