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: Sun, 14 Sep 2008 22:41:01 +0200 Message-ID: <38b2ab8a0809141341w1b4152eah53909461968eb6fe@mail.gmail.com> References: <38b2ab8a0809141130g161f24di9ae7091e9577485c@mail.gmail.com> <38b2ab8a0809141328y65b60f57h3fd9cfa158e181b0@mail.gmail.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 1221424893 11602 80.91.229.12 (14 Sep 2008 20:41:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Sep 2008 20:41:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Barry Margolin" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 14 22:42:30 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 1KeyQM-00067W-SH for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Sep 2008 22:42:27 +0200 Original-Received: from localhost ([127.0.0.1]:54394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeyPM-000700-9n for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Sep 2008 16:41:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KeyP2-0006zv-TC for help-gnu-emacs@gnu.org; Sun, 14 Sep 2008 16:41:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KeyP1-0006zQ-BB for help-gnu-emacs@gnu.org; Sun, 14 Sep 2008 16:41:04 -0400 Original-Received: from [199.232.76.173] (port=37343 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeyP1-0006zM-2n for help-gnu-emacs@gnu.org; Sun, 14 Sep 2008 16:41:03 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.172]:52493) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KeyP0-0000X9-Ko for help-gnu-emacs@gnu.org; Sun, 14 Sep 2008 16:41:02 -0400 Original-Received: by ug-out-1314.google.com with SMTP id z36so756537uge.17 for ; Sun, 14 Sep 2008 13:41:01 -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=9yLho6R1Yx/zAXqRxtLb64mucX+3rEFbS00BcD72L40=; b=LfhYRvyiwf082dRrtCEilzJ8G24K+/A21IKax8nH8r99coyYRLBnazhYALbuzyXKwI vtVPQAznE1apCL0lgziaAroX7m0fluAAQKtuJldFarutTz+gFRg3XXKRgMLz6qtTeeYv U76/NhYjNXYaMKyfOOPqkGe+TRd1YSRSR+U0s= 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=rUhhoKOWzYT6Ndux0BxOIjH/w/6NoGZDiFgv/Y03Woaibn3uDzreT0e4N0fsg80Luh oGYcZohx5uBLhQZ7UMsAk2Sm7GJjm4OzSho/A7OsEfUm5N+IS+47mUMKmFcRbQA/SCn1 vKLKdvqrJHaLjwNwkIndYf75oSrOh0nZF5KuE= Original-Received: by 10.66.234.8 with SMTP id g8mr2384761ugh.43.1221424861753; Sun, 14 Sep 2008 13:41:01 -0700 (PDT) Original-Received: by 10.67.22.17 with HTTP; Sun, 14 Sep 2008 13:41:01 -0700 (PDT) In-Reply-To: <38b2ab8a0809141328y65b60f57h3fd9cfa158e181b0@mail.gmail.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:57584 Archived-At: On Sun, Sep 14, 2008 at 10:28 PM, Francis Moreau wrote: > On Sun, Sep 14, 2008 at 8:55 PM, Barry Margolin wrote: >> In article , >> Thierry Volpiatto wrote: >>> >>> runs the command comint-previous-input >> >> But that yanks the whole command line, not just the last argument. >> > > Actually thinking about it, it should be quite easy to achieve this: > just create a key binding to evaluate "!$" sequence. > well to be more accurate we should create 'something' that evaluate to !-1:$ when call for the first time. If a second call is done without any key press then evaluate to !-2:$ etc... Though I dunno how to write that in elisp.. -- Francis