From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (=?iso-8859-1?q?Johan_Bockg=E5rd?=) Newsgroups: gmane.emacs.help Subject: Re: suppressing shell history expansion in comint-previous-input Date: Thu, 14 Aug 2003 14:37:18 +0200 Organization: Chalmers University of Technology, Sweden Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1060865453 3664 80.91.224.253 (14 Aug 2003 12:50:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2003 12:50:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 14:50:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19nHZ6-0003tJ-00 for ; Thu, 14 Aug 2003 14:50:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nHVZ-0000rc-B6 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2003 08:47:13 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1!bredband!'newsfeed1.telenordia.se'!algonet!newsfeed.sunet.se!news01.sunet.se!dd.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: frealaf.dd.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (usg-unix-v) Cancel-Lock: sha1:Re4if1gW+cTq50P0NB9U36VPNEc= Original-Xref: shelby.stanford.edu gnu.emacs.help:115884 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:11803 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11803 Sean McLaughlin writes: > I'm using ocaml and often type strings like "!a;;" into comint. When > I do a comint-previous-input, instead of the expected "!a;;", I get > "awk " or some other command I typed in some time ago. I believe > what is happening is that the shell expects the exclamation mark to > be asking for a history expansion. I want to suppress this behavior > but can't figure out how to do it. Any thoughts? Set comint-input-autoexpand to nil. -- Join us on #emacs @ irc.freenode.net. http://www.emacswiki.org/cgi-bin/wiki.pl/EmacsChannel