From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Bad moves with xref-find-definitions Date: Tue, 28 Apr 2015 04:23:13 +0300 Message-ID: <553EE101.4040706@yandex.ru> References: <87h9s6c27z.fsf@gmail.com> <87zj5wnlyt.fsf@gmail.com> <553BE6F2.4030604@yandex.ru> <87fv7ondlr.fsf@gmail.com> <553C5D75.9060706@yandex.ru> <553D316B.5050802@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1430184236 16824 80.91.229.3 (28 Apr 2015 01:23:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Apr 2015 01:23:56 +0000 (UTC) Cc: Vitalie Spinu , Stefan Monnier , emacs-devel To: Bozhidar Batsov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 28 03:23:47 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YmuFW-0007PJ-8m for ged-emacs-devel@m.gmane.org; Tue, 28 Apr 2015 03:23:46 +0200 Original-Received: from localhost ([::1]:58251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmuFV-0001q3-B6 for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2015 21:23:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmuFG-0001mQ-F3 for emacs-devel@gnu.org; Mon, 27 Apr 2015 21:23:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmuFD-0004WM-13 for emacs-devel@gnu.org; Mon, 27 Apr 2015 21:23:30 -0400 Original-Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:35124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmuFC-0004PL-QR for emacs-devel@gnu.org; Mon, 27 Apr 2015 21:23:26 -0400 Original-Received: by widdi4 with SMTP id di4so120525007wid.0 for ; Mon, 27 Apr 2015 18:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=s18D95OtEA/5SK9kuC3fwwaGaLo3HLAtWQLR6DD3nao=; b=AP9X/XoA7WQp47GNSUwqcAB+tGjibCb1IhglYhkIK1GWBWZSbbkRcuWqP4uhw1XtVq W/FKukIAZCPo+927J1QyZypxly6a9KzkqxG79Fl4UHYjptFQqB4gnACNtA0CEyyXArfe ZZqtUrjZJRctRB5bEt7GZVqnWIbJ9/3BSMHTmzQYEHSMGFUFEbxuf6hrXs2QpAA0wJKV +D393RC3lk3MNXXlRzqzBY2W6UeQpwokR7o88+jmZUbkkxrc3gPcdvPzpia99JDYT+jF 2cTUE7shN+IJ8/a2uizsgNCcGHIkCEoj6kTRjTnE5NV2oN1meCEC5Y+L9HvMybMLBTYU 56CQ== X-Received: by 10.194.81.104 with SMTP id z8mr26954547wjx.45.1430184196946; Mon, 27 Apr 2015 18:23:16 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id e2sm13915054wix.15.2015.04.27.18.23.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Apr 2015 18:23:16 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Thunderbird/36.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:185947 Archived-At: On 04/27/2015 10:36 PM, Bozhidar Batsov wrote: > This was not my doing. I suggested C-x 4, but there was strong > opposition for it. https://github.com/clojure-emacs/cider/issues/1014? Maybe people just missed the suggestion. And note how in https://github.com/clojure-emacs/cider/pull/1044 someone wonders why it works in a different way. Anyway, at this point you can add support for xref, and gradually deprecate the alternative bindings. > Sure, that's clearly a possibility. I just didn't want to go overboard > with this. Such a config has pretty much the same complexity as adding a > second set of commands that simply do the different thing. I think it's a bit easier than asking a user to change a set of key bindings. Should take less code to implement, too. Having separate bindings for "always prompt" might be a good idea anyway, though. Like F12 vs Ctrl-P in Sublime or Ctrl-Click vs Ctrl-N, etc, in IDEA. IDEA also uses a different interface for multiple choices in the Ctrl-Click case. > OK, but this contradicts with the behavior of Emacs's own > `find-function`, `find-variable`, etc. It does, but find-func is kind of auxiliary package. None of these commands have default bindings. > Life has told me that's it's pretty hard to please everyone. :-) We probably have different standards for user satisfaction. "Everyone is equally annoyed" is often quite enough for me. :)