From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: when deleting in minibuffer, don't change kill-ring Date: Thu, 27 Oct 2011 20:23:41 +0200 Message-ID: <87pqhiuwcy.fsf@thinkpad.tsdh.de> References: <7AF781F7ABA44DA5A698D5AFA772C4B2@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319739850 19964 80.91.229.12 (27 Oct 2011 18:24:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 18:24:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 27 20:24:07 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJUcX-0006IB-FU for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2011 20:24:05 +0200 Original-Received: from localhost ([::1]:49958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJUcW-0000Oz-GB for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2011 14:24:04 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJUcQ-0000Oo-Sx for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 14:23:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJUcP-0001ZP-Sg for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 14:23:58 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:41045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJUcP-0001ZJ-Io for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 14:23:57 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RJUcN-0006FX-6a for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 20:23:55 +0200 Original-Received: from 91-67-169-145-dynip.superkabel.de ([91.67.169.145]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Oct 2011 20:23:55 +0200 Original-Received: from tassilo by 91-67-169-145-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Oct 2011 20:23:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 54 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 91-67-169-145-dynip.superkabel.de User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:A8GbhiO7C+Pb98l5bkSuAEGNZ/8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82676 Archived-At: "Drew Adams" writes: >> how to prohibit kill-ring being changed, when I press "backspace" key >> in minibuffer? > > It is _not_ changed. Provide a recipe, starting from emacs -Q. > > If you do need to change the binding of the key for some reason, then > do so in each of the minibuffer key maps. E.g., > > (define minibuffer-local-must-match-map (kbd "DEL") > 'backward-delete-char) > etc. > > But AFAICT, the global binding of DEL (and ) is in effect > in the minibuffer, and the global binding does not kill a char, it > deletes it. I guess the OP means `backward-kill-word' () and friends. I'm also interested in something like that. I want to use the word, line, and region editing commands in the minibuffer, but I don't want to have the killed text in the global kill-ring. What I'd really like to have is a separate kill-ring for the minibuffers. I've tried (dolist (b (buffer-list)) (when (minibufferp b) (set-buffer b) (make-local-variable 'kill-ring))) or entering a recursive edit M-: M-: (make-local-variable 'kill-ring) RET C-g, but that doesn't have an effect. Isn't it possible to have buffer local values for variables defined at the C level? Another observation: why are there more than one minibuffers? Right now, I have 4: (dolist (b (buffer-list)) (when (minibufferp b) (insert (format "%s is a minibuffer\n" b)))) ;; C-j *Minibuf-1* is a minibuffer *Minibuf-2* is a minibuffer *Minibuf-3* is a minibuffer *Minibuf-0* is a minibuffer some minutes ago I had 5, all with just one emacs frame. And with emacs -Q, I first have one and after the first window split, I have 2. Bye, Tassilo