From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: deech <aditya.siram@gmail.com>
Newsgroups: gmane.emacs.help
Subject: Eshell - `Text is read-only`
Date: Sun, 29 Dec 2013 10:47:55 -0800 (PST)
Message-ID: <d76e2299-abc0-4404-b8ba-797fb3894dfc@googlegroups.com>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1388343313 13195 80.91.229.3 (29 Dec 2013 18:55:13 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 29 Dec 2013 18:55:13 +0000 (UTC)
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 29 19:55:20 2013
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
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 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1VxLWB-0005HE-Mi
	for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Dec 2013 19:55:19 +0100
Original-Received: from localhost ([::1]:56033 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1VxLWB-0004Ys-AS
	for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Dec 2013 13:55:19 -0500
X-Received: by 10.59.12.105 with SMTP id ep9mr26776872ved.9.1388343213252;
	Sun, 29 Dec 2013 10:53:33 -0800 (PST)
X-Received: by 10.182.204.9 with SMTP id ku9mr32424obc.10.1388342875832; Sun,
	29 Dec 2013 10:47:55 -0800 (PST)
Original-Path: usenet.stanford.edu!p15no50010372qaj.0!news-out.google.com!p7ni1129qat.0!nntp.google.com!p15no50010366qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Original-Newsgroups: gnu.emacs.help
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.85.232.25;
	posting-account=iIbT1QoAAAAvuMyxrxgetIu9BJhvSidP
Original-NNTP-Posting-Host: 71.85.232.25
User-Agent: G2/1.0
Injection-Date: Sun, 29 Dec 2013 18:53:33 +0000
Original-Xref: usenet.stanford.edu gnu.emacs.help:202913
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 <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=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:95182
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/95182>

Hi all,
I've run into the dreaded `Text is read-only` bug which stops eshell from closing and Emacs from exiting. I got this in a previous version of Emacs and fixed it with the following snippet:
(setq eshell-prompt-function
  (lambda ()
    (concat (eshell/pwd) "\n$"))
  eshell-prompt-regexp (concat "^" (regexp-quote "$")))

I'm currently using Emacs 24.3.50.1 and it appears to be back and the above snippet doesn't seem to work.

Any help is appreciated.

-deech