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 08:32:28 +0200 Message-ID: <38b2ab8a0809142332g2b75a759m5b48864f77eb85be@mail.gmail.com> References: <9387c$48cd73bd$cef88ba3$873@TEKSAVVY.COM> 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 1221460383 15798 80.91.229.12 (15 Sep 2008 06:33:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2008 06:33:03 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: cfajohnson@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 15 08:33:59 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 1Kf7en-0001K9-4E for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2008 08:33:57 +0200 Original-Received: from localhost ([127.0.0.1]:60305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kf7dm-0005jp-9k for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2008 02:32:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kf7dQ-0005is-S0 for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 02:32:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kf7dN-0005fH-Tr for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 02:32:31 -0400 Original-Received: from [199.232.76.173] (port=38775 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kf7dN-0005ew-Ms for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 02:32:29 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.170]:4831) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kf7dN-0000EQ-SB for help-gnu-emacs@gnu.org; Mon, 15 Sep 2008 02:32:30 -0400 Original-Received: by ug-out-1314.google.com with SMTP id z36so920933uge.17 for ; Sun, 14 Sep 2008 23:32:28 -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=7JDRY+tii920yZuTOAeB4f6DhKjHTzysq2faFkOsVTE=; b=g5dA0qYe4ttdhPoGCVAuqYLzuWmJj/JA1lf7rGBj2eLAwSZ0NIPvplgnuAYxgEOYFx SH/p7rpBvkvRo8Ha19H/zeRQn496xVa3324XbRDPbN8H7br8MqeGbrSuxwdf4QzjfZqB N0PnK5RDx19RRE7n+C92+BhPiXPTnZdbTfg4Q= 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=akPyKJ4NcXkAjRUoDrThcqiDdUDFeOrZ3vtLTZmWDTllZYyJBjDlDIk9VGdVrpuDvb 06JV6x/D5EaKa7hgFyOsgRT+26AR5DT8TV8bY+3ChQhe8Ge9tK9FbuJDXXZlHeJkPVAF D7cctM7/wjfcuExtgFCYF9sOzspdnNyM++5HE= Original-Received: by 10.67.91.13 with SMTP id t13mr2795011ugl.11.1221460348368; Sun, 14 Sep 2008 23:32:28 -0700 (PDT) Original-Received: by 10.67.22.17 with HTTP; Sun, 14 Sep 2008 23:32:28 -0700 (PDT) In-Reply-To: <9387c$48cd73bd$cef88ba3$873@TEKSAVVY.COM> 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:57601 Archived-At: 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. Thanks -- Francis