From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chris F.A. Johnson" Newsgroups: gmane.emacs.help Subject: Re: What I'm missing when using M-x shell Date: Sun, 14 Sep 2008 20:27:41 +0000 Organization: UseNetServer.com Message-ID: <9387c$48cd73bd$cef88ba3$873@TEKSAVVY.COM> References: Reply-To: cfajohnson@gmail.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1221428515 20696 80.91.229.12 (14 Sep 2008 21:41:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Sep 2008 21:41:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 14 23:42:50 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 1KezMo-0003Ux-8d for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Sep 2008 23:42:50 +0200 Original-Received: from localhost ([127.0.0.1]:41558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KezLn-0006Lk-Kp for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Sep 2008 17:41:47 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!news.glorb.com!nlpi057.nbdc.sbc.com!prodigy.net!uns-out.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!TEKSAVVY.COM-a2kHrUvQQWlmc!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.1 (Linux) Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 37 Original-X-Trace: 9387c48cd73bd6b5d2e0600873 Original-Xref: news.stanford.edu gnu.emacs.help:162244 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:57588 Archived-At: On 2008-09-14, Francis Moreau wrote: > On Sun, Sep 14, 2008 at 8:33 PM, Chris F.A. Johnson > wrote: >> On 2008-09-14, Francis Moreau wrote: >>> On Sun, Sep 14, 2008 at 12:43 AM, Chris F.A. Johnson >>> wrote: >>>> On 2008-09-12, Francis Moreau wrote: >>>> ... >>>>> 4/ There's no readline "yank-last-arg" function which inserts the last >>>>> argument to the previous commands >>>> >>>> C-up >>>> >>> >>> really ? >>> >>> could you tell me on which function this is binded ? >> >> runs the command comint-previous-input >> > > 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) ) -- Chris F.A. Johnson, webmaster =================================================================== Author: Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)