From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: emacs shell cursor movement is broken in 22.1 Date: Sun, 16 Mar 2008 12:16:32 -0700 Message-ID: <001201c8879a$3f0ba420$0600a8c0@us.oracle.com> References: <3c0dda17-2476-4d2b-b1f2-c101b4a0f576@s13g2000prd.googlegroups.com><7eff3d6e-7425-418b-8c94-0cbc9b60a7fe@v3g2000hsc.googlegroups.com><79d5945c-cfff-4029-a3ab-adc896c10d9e@m36g2000hse.googlegroups.com> <8cace764-a0d1-492f-b409-8c8253aba67e@s13g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205695083 13520 80.91.229.12 (16 Mar 2008 19:18:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Mar 2008 19:18:03 +0000 (UTC) To: "'jimka'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 16 20:18:31 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 1JayNA-0003cv-9y for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Mar 2008 20:18:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JayMU-0005wj-EA for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Mar 2008 15:17:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JayMC-0005wO-UQ for help-gnu-emacs@gnu.org; Sun, 16 Mar 2008 15:17:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JayM6-0005us-2D for help-gnu-emacs@gnu.org; Sun, 16 Mar 2008 15:17:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JayM5-0005un-LP for help-gnu-emacs@gnu.org; Sun, 16 Mar 2008 15:17:13 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JayM2-00057K-TO for help-gnu-emacs@gnu.org; Sun, 16 Mar 2008 15:17:13 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m2GJGnBr004489; Sun, 16 Mar 2008 13:16:49 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m2GHoc69025897; Sun, 16 Mar 2008 13:16:48 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3614836371205694978; Sun, 16 Mar 2008 12:16:18 -0700 Original-Received: from dradamslap1 (/141.144.88.54) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 16 Mar 2008 12:16:17 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: AciHlWS8O8hEOy6sTTyOHUYXQ7R51wAAxGHg In-Reply-To: <8cace764-a0d1-492f-b409-8c8253aba67e@s13g2000prd.googlegroups.com> X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:52451 Archived-At: > > > Another example would be if i want to find the last command that > > > contained a certain word. > > > > I haven't followed this thread, but you might be interested > > in trying Icicles' comint (shell) mode enhancements. They let > > you easily complete against pastshellinputs in various ways, > > to reuse them. > > > http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Other_Search_C > ommands... > > yes there are lots and lots of interesting modes. But what i want > is to search in the buffer, with normal buffer search commands such > as C-r and C-s, edit the command like a normal buffer, inserting, > deleting and overwriting, then > press ENTER to re-execute the command at the next shell prompt. > > fancy completion modes are well and good, but they should not prevent > basic navigation and editing. Nothing in Icicles prevents basic navigation and editing. It sounds like you can already do just what you want, based on your description, above. What prevents you now from searching with C-r, editing, and re-executing? But as I said, I didn't follow the thread (sorry), so it's not clear to me what you might want beyond what you say above. That's my fault. Just trying to help. FWIW, 'icicle-comint-search' does what you describe above: it searches the buffer. (But it doesn't use "normal buffer search commands such as C-r and C-s - it gives you better search features.) When you choose the past command that you want, you can certainly edit it and then hit ENTER to re-execute. It's OK if I don't get it - I don't really need to understand your problem better. If the info I gave helps, great. If not, ignore it. HTH.