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 15:00:02 +0200 Message-ID: <87k5dd4l9p.fsf@tux.homenetwork> References: <9387c$48cd73bd$cef88ba3$873@TEKSAVVY.COM> <38b2ab8a0809142332g2b75a759m5b48864f77eb85be@mail.gmail.com> <874p4hej18.fsf@tux.homenetwork> <38b2ab8a0809150510o85d21f6hb28be226a71d336f@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 1221483989 24752 80.91.229.12 (15 Sep 2008 13:06:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2008 13:06:29 +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 15:07:25 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 1KfDmZ-0005Zw-Qa for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2008 15:06:24 +0200 Original-Received: from localhost ([127.0.0.1]:35479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfDlZ-0002Bq-2z for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2008 09:05:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfDjw-0000sh-En for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 09:03:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfDjv-0000ry-E0 for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 09:03:40 -0400 Original-Received: from [199.232.76.173] (port=58257 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfDjv-0000rp-76 for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 09:03:39 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.171]:34348) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KfDju-0006Qb-Q3 for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 09:03:39 -0400 Original-Received: by ug-out-1314.google.com with SMTP id z36so1033188uge.17 for ; Mon, 15 Sep 2008 06:03:37 -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=cerj31zuwZtOi5l0whbi/tI/UHvRh1+ZVGTnLTtuh38=; b=Iob+4TJ9ZAi2WHhpRpA49X1kBU1BSWDJeIBeYKIMYiYNpxFhPC6MtDRQKOcr0laArG 8yGvzoc09Y6az2mz4a3eoOghxS01FTXXGQNwApxfA0Ws5LGgCrqVejVqh43/W5PdTvWG UwWdO+STS5cNACC3UZKGTcXB8uxG2kHH/15Vc= 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=IO9xjRK3TmI4xF3s6yujeFXGubv7C6u72qgW3v+gyyI86QbkYCKFPDGo7VEsUGqM/K E0lHWYALrZ1SpcCvJJYwLDwPHyUCZGPtv2jsSw/1czGdu/oYb5U9OHB3bV8t0CNiu5Tc deQcP0CEx2f9di1Nm9oHjIK5BLVwewHdPDcUc= Original-Received: by 10.210.37.11 with SMTP id k11mr10114018ebk.136.1221483817668; Mon, 15 Sep 2008 06:03:37 -0700 (PDT) Original-Received: from tux.homenetwork ( [79.85.211.147]) by mx.google.com with ESMTPS id z34sm23830670ikz.3.2008.09.15.06.03.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 15 Sep 2008 06:03:36 -0700 (PDT) In-Reply-To: <38b2ab8a0809150510o85d21f6hb28be226a71d336f@mail.gmail.com> (Francis Moreau's message of "Mon, 15 Sep 2008 14:10:51 +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:57624 Archived-At: "Francis Moreau" writes: > On Mon, Sep 15, 2008 at 1:38 PM, Thierry Volpiatto > wrote: >> "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 >> `---- >> > > Damn yes it is ! > > While at it, do you have any idea if it's possible to switch between char/line > mode in M-x shell ? I don't know that, what is the equivalent in an xterm, and what is that for ? -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France