From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: What I'm missing when using M-x shell Date: Mon, 15 Sep 2008 13:38:11 +0200 Message-ID: <874p4hej18.fsf@tux.homenetwork> References: <9387c$48cd73bd$cef88ba3$873@TEKSAVVY.COM> <38b2ab8a0809142332g2b75a759m5b48864f77eb85be@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221478939 6495 80.91.229.12 (15 Sep 2008 11:42:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2008 11:42:19 +0000 (UTC) Cc: cfajohnson@gmail.com, help-gnu-emacs@gnu.org To: "Francis Moreau" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 15 13:43:06 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KfCTx-0007rR-HL for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2008 13:43:05 +0200 Original-Received: from localhost ([127.0.0.1]:49789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfCSw-0004yC-SG for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2008 07:42:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfCSb-0004wH-H1 for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 07:41:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfCSa-0004uK-2Q for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 07:41:40 -0400 Original-Received: from [199.232.76.173] (port=48596 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfCSZ-0004tz-Vs for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 07:41:40 -0400 Original-Received: from qw-out-1920.google.com ([74.125.92.150]:25717) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KfCSX-0003pB-Ep for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 07:41:38 -0400 Original-Received: by qw-out-1920.google.com with SMTP id 4so182507qwk.24 for ; Mon, 15 Sep 2008 04:41:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=JjqPzPXKU/HYNx7tBcH5UozODrjAjpm2+YrY7p1HRhw=; b=cL1jV+TUDnMV4n2VBvPhhqb5wKmAeW6Y9ItYpyfhETqQYYAIlkK/bs0g/uDOvxh9Uw RDtQb1v5X7Dfw1wdEOtS0PQcrrJuHAlwFUt+c5QfJqOSUuSb4JCc2mEulI833qsGrdCq 81FzKkFN5HPmjiiLy0ELnEtpqrVeEEsHFKfac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=K+ma84UhZGgl/Q3pOCRG37pv4YmerR9ux8WZDysq/SvYr36LBeIg09dWUPKxTi4bou ABo1F2PNhm2LjzyqzjlxXNkDA9tMdf9BeZ5KTRXfJtLLttthzQm8gdXOsM/Z9PLcUAAU epUBIwnk+vxkdlhK3egzKy5p4kvs0GJQINtqU= Original-Received: by 10.214.43.9 with SMTP id q9mr5542998qaq.21.1221478894817; Mon, 15 Sep 2008 04:41:34 -0700 (PDT) Original-Received: from tux.homenetwork ( [79.85.211.147]) by mx.google.com with ESMTPS id 6sm9825700qwk.1.2008.09.15.04.41.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 15 Sep 2008 04:41:34 -0700 (PDT) In-Reply-To: <38b2ab8a0809142332g2b75a759m5b48864f77eb85be@mail.gmail.com> (Francis Moreau's message of "Mon, 15 Sep 2008 08:32:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57617 Archived-At: "Francis Moreau" writes: > On Sun, Sep 14, 2008 at 10:27 PM, Chris F.A. Johnson > wrote: >> On 2008-09-14, Francis Moreau wrote: >>> no this paste the whole command line, I'm asking for the last _argument_ >> >> (defun last-arg () "" (interactive) >> (comint-previous-input 1) >> (search-backward " ") >> (kill-line) >> (comint-next-input 2) >> (yank) >> ) >> > > Even though I don't speak (yet) elisp, it does seem that if I call > last-arg() several times then this yanks always the same arg... > > Try in an xterm to use M-. to see what I'm talkng about. May be what you are looking for... in M-x shell: ,---- | C-c . ==> comint-insert-previous-argument `---- and with ansi-term ==> the command M-. work it have the same behavior than in my urxvt -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France