From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Francis Moreau" Newsgroups: gmane.emacs.help Subject: Re: What I'm missing when using M-x shell Date: Mon, 15 Sep 2008 14:10:51 +0200 Message-ID: <38b2ab8a0809150510o85d21f6hb28be226a71d336f@mail.gmail.com> References: <9387c$48cd73bd$cef88ba3$873@TEKSAVVY.COM> <38b2ab8a0809142332g2b75a759m5b48864f77eb85be@mail.gmail.com> <874p4hej18.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221480807 12682 80.91.229.12 (15 Sep 2008 12:13:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2008 12:13:27 +0000 (UTC) Cc: cfajohnson@gmail.com, help-gnu-emacs@gnu.org To: "Thierry Volpiatto" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 15 14:14:22 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 1KfCwF-0006wQ-Rx for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2008 14:12:20 +0200 Original-Received: from localhost ([127.0.0.1]:58581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfCvE-0004lF-5k for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2008 08:11:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfCus-0004jh-Po for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 08:10:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfCus-0004ic-2C for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 08:10:54 -0400 Original-Received: from [199.232.76.173] (port=60183 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfCur-0004iK-Qv for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 08:10:53 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.168]:24761) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KfCuq-0003bc-UP for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 08:10:53 -0400 Original-Received: by ug-out-1314.google.com with SMTP id z36so1017875uge.17 for ; Mon, 15 Sep 2008 05:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=3P1rUY3o3ejXJH5hAbuSxlfqRTQkqkLqt3BIajLd8NI=; b=V6PT7NLfYjPw8iSGSnb08hYu+P63VhGg7vqPdPlIhLQW/8gi4FwlxLqsBbGBgkPxom affASRvMQbHSQSYcJR+tY7Cur17n7n0fodOFUEv6GjjrCGzNJRahNyLydO/+KqFeKrYM gkuHa/4bwjo7kBjOxXyqrhxf3+7d2sjtnb/ik= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=TwgV9LvoAi4xwh/vp0/BYZEngMTZ0aLfukmLiaVVRU7ZTtvHutqhpCZZDTl6IQPUar 6ixG9m0DwYoQs06GP9iX8lX+aMRPkkgui3+1lDC8v0PGnIko3WQQfRwR8BQmhzqT3mzW W5rtzhDQBFIeV7ii8VbxTNAxg0eUqCdgB3Cu0= Original-Received: by 10.67.106.19 with SMTP id i19mr3100665ugm.81.1221480652063; Mon, 15 Sep 2008 05:10:52 -0700 (PDT) Original-Received: by 10.67.22.17 with HTTP; Mon, 15 Sep 2008 05:10:51 -0700 (PDT) In-Reply-To: <874p4hej18.fsf@tux.homenetwork> Content-Disposition: inline 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:57618 Archived-At: 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 ? Thanks -- Francis