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: Opening file with is in killring Date: Sat, 1 Nov 2008 09:45:31 -0700 Message-ID: <001901c93c41$412a93e0$0200a8c0@us.oracle.com> References: <89c6d6fb-811d-419e-9fa1-33d7fd5b4015@r36g2000prf.googlegroups.com><87skqd54om.fsf@gmail.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 1225557958 28263 80.91.229.12 (1 Nov 2008 16:45:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Nov 2008 16:45:58 +0000 (UTC) To: "'Decebal'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 01 17:47:00 2008 connect(): Connection refused 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 1KwJcq-0007DN-GN for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Nov 2008 17:47:00 +0100 Original-Received: from localhost ([127.0.0.1]:56956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwJbj-0005p4-Ie for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Nov 2008 12:45:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwJbO-0005lZ-2Q for help-gnu-emacs@gnu.org; Sat, 01 Nov 2008 12:45:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwJbM-0005kE-AR for help-gnu-emacs@gnu.org; Sat, 01 Nov 2008 12:45:29 -0400 Original-Received: from [199.232.76.173] (port=39295 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwJbM-0005k4-75 for help-gnu-emacs@gnu.org; Sat, 01 Nov 2008 12:45:28 -0400 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:53185) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KwJbL-0001JY-It for help-gnu-emacs@gnu.org; Sat, 01 Nov 2008 12:45:27 -0400 Original-Received: from rgminet15.oracle.com (mail-router.oracle.com [148.87.113.117]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mA1GjeGr003367 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 1 Nov 2008 16:45:41 GMT Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mA1GjM3V014691 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 1 Nov 2008 16:45:24 GMT Original-Received: from acsmt700.oracle.com (acsmt700.oracle.com [141.146.40.70]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id mA1GjIUK029062; Sat, 1 Nov 2008 10:45:18 -0600 Original-Received: from dradamslap1 (/24.23.165.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 01 Nov 2008 16:45:18 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Thread-Index: Ack7/YpPyWZxIDkNT4mvQqVTRnedJAAPv/lg X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Source-IP: rgmgw2.us.oracle.com [138.1.186.111] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.490C87A1.0274:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:59339 Archived-At: > > I bind a key (I use `M-k') in the minibuffer keymaps to > > a command that clears the minibuffer, so only two > > keystrokes are needed (`M-k C-y'). > > What is this command? This will do it: (defun foo () (interactive) (delete-minibuffer-contents)) (define-key minibuffer-local-map "\C-y" 'foo) (Likewise, for any minibuffer keymaps that don't inherit from `minibuffer-local-map'.) [In reality, I bind `M-k' in the minibuffer to a command that either clears the minibuffer (as above) or, if you are cycling through a minibuffer history, deletes the current element from that history.] > > such a binding, you can always use `C-x DEL' (`DEL' is > > typically the Backspace key), which is `backward-kill-sentence', > > or `ESC C-backspace' or `ESC C-delete', which are > > `backward-kill-sexp'. They can generally help to > > clear the minibuffer. > > But this puts the contents of the minibuffer in the killring. :-{ Yes, and? ;-) > I understood that with m-y I should get the previous entry, but when I > use that I get: Previous command was not a yank Correct. `C-y' yanks the head of the kill-ring. `M-y' replaces that insertion with the previous kill-ring entry. `C-y' is a one-time thing; you can repeat `M-y' to move through the ring until you get to the kill you want. > I have kill-ring-max set on 60. So anybody an idea what is happening > here? See above. [FWIW, outside of the minibuffer, I bind an Icicles multi-command to `C-- C-y'. It lets you yank any items from the kill-ring using completion, without needing to cycle through them. You can also cycle if you like, but you need not go through all of them one by one. And you can sort them in various ways, which helps when cycling. And you can hit `S-delete' to remove selected candidates from the kill-ring. And you can filter completion matches using multiple patterns (progressive completion), to quickly get to what you want.]