From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: slime mode and keeping M-, for tags-loop-continue Date: Thu, 13 Feb 2014 22:04:42 +0800 Message-ID: <87ppmr85xh.fsf@ericabrahamsen.net> References: <87siroad8l.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392300182 5949 80.91.229.3 (13 Feb 2014 14:03:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2014 14:03:02 +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 Feb 13 15:03:09 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WDwsc-0007D9-28 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Feb 2014 15:03:06 +0100 Original-Received: from localhost ([::1]:46556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDwsb-0001Zt-M4 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Feb 2014 09:03:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDwsF-0001RG-Bm for help-gnu-emacs@gnu.org; Thu, 13 Feb 2014 09:02:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDws7-0005CV-Ql for help-gnu-emacs@gnu.org; Thu, 13 Feb 2014 09:02:43 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:60693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDws7-0005CQ-LK for help-gnu-emacs@gnu.org; Thu, 13 Feb 2014 09:02:35 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WDws6-0006iG-F3 for help-gnu-emacs@gnu.org; Thu, 13 Feb 2014 15:02:34 +0100 Original-Received: from 114.248.31.239 ([114.248.31.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Feb 2014 15:02:34 +0100 Original-Received: from eric by 114.248.31.239 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Feb 2014 15:02:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.248.31.239 User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:47fHb1mfjbd2IrguMjOe+uDtscU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:96050 Archived-At: Kevin Rodgers writes: > On 2/12/14 2:31 AM, Eric Abrahamsen wrote: >> In slime mode, "M-," is rebound to slime-pop-find-definition-stack. This >> means that if you've started out in dired and done "A" for >> dired-do-search through a bunch of lisp files, you can't use M-, to >> continue your search with tags-loop-continue. Has anyone else found this >> annoying? Is there a simple solution for it? > > Just a guess: > > (add-hook 'slime-mode-hook > (lambda () > ;; Don't shadow global `M-,' binding (tags-loop-continue): > (local-unset-key "\M-,") > ;; Replace with local `C-c,' (or `M-C-,'): > (local-set-key "\C-c," 'slime-pop-find-definition-stack))) Sure, I could override the slime bindings, but I guess I was hoping for a way to have it check to see if a search was in progress, and not stomp on it if so...