From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#9406: 24.0.50; Use M-p/M-n to navigate through the kill ring Date: Wed, 31 Aug 2011 17:33:13 +0200 Message-ID: References: <87zkirnlug.fsf@mail.jurta.org> <87ippfnl3g.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1314804843 13989 80.91.229.12 (31 Aug 2011 15:34:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2011 15:34:03 +0000 (UTC) Cc: 9406@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 31 17:33:59 2011 Return-path: Envelope-to: geb-bug-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 1Qymnd-0002VY-Sx for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Aug 2011 17:33:58 +0200 Original-Received: from localhost ([::1]:33067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qymnd-0007Mc-Da for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Aug 2011 11:33:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QymnW-0007Jt-Al for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2011 11:33:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QymnV-0000zt-3o for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2011 11:33:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QymnU-0000zi-Ts for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2011 11:33:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qymqc-0001md-05; Wed, 31 Aug 2011 11:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Aug 2011 15:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9406 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9406-submit@debbugs.gnu.org id=B9406.13148049906817 (code B ref 9406); Wed, 31 Aug 2011 15:37:01 +0000 Original-Received: (at 9406) by debbugs.gnu.org; 31 Aug 2011 15:36:30 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qymq6-0001lu-JQ for submit@debbugs.gnu.org; Wed, 31 Aug 2011 11:36:30 -0400 Original-Received: from mail-yi0-f44.google.com ([209.85.218.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qymq4-0001ll-KO for 9406@debbugs.gnu.org; Wed, 31 Aug 2011 11:36:29 -0400 Original-Received: by yie12 with SMTP id 12so608290yie.3 for <9406@debbugs.gnu.org>; Wed, 31 Aug 2011 08:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=IjTByOAFk9M4KInkb0DKci/s3Yqi2h7xgdgAwbkDluE=; b=XtULF59AEWpC2I0EZmQQCOcKxJnNlDmE+X29ySDFByjX5K2axOfFGn4250eiay3d/8 eWWTr/n08muD/fq1INHA0WSgks0yCA5SZkNy/d8dLMUEKISU/t9adqZduOCyuUx9zWYh vHFmJHTJi7MQKs11oPuqT23t61AVEK2BwMzGI= Original-Received: by 10.236.78.202 with SMTP id g50mr2939162yhe.36.1314804794193; Wed, 31 Aug 2011 08:33:14 -0700 (PDT) Original-Received: by 10.236.43.131 with HTTP; Wed, 31 Aug 2011 08:33:13 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 31 Aug 2011 11:37:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50475 Archived-At: > Basically it would amount to moving the M-y binding to M-p but only if > used immediately after C-y, and to add a M-n binding to the same command > but that cycles in the other direction. > > That doesn't sound like a bad idea, although of course it will annoy > a few users in a few corner cases (e.g. I have M-n and M-p bound in > smerge-mode). =A0So we might prefer to have it as an option. I think that those corner cases are pretty few (How often you will be using M-p/M-n just after C-y?), but if you deem it necessary, ok. >> I'm not an expert in Emacs' internals, but I think that one way of >> implementing this would be as a minor mode, that would be activated by >> C-y (like Isearch is activated by C-s), and deactivated by "anything >> else" (distinct from M-p M-n and M-y*). > > I use the function below to do these kinds of things. =A0I didn't find th= e > time to install it for Emacs-24.1, tho. > You should be able to get this working fairly cleanly with an > after-advice on `yank' which uses that set-temporary-overlay-map. Thanks. I'm still beginning to learn Elisp, so right now I would not be able to work it out. >> (*) The behavior of M-y would remain the same, obviously, for old-timers= . > > Actually one of the benefits of your proposal is that it opens up the > possibility of freeing the M-y binding. I just wanted to make the change as smooth as possible, but of course the current behavior of M-y would be adopted by M-p, so M-y could be freed or used for anything else. I'm perfectly fine with that, because I would obviously use M-p, not M-y. --=20 Dani Moncayo