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: Sun, 26 Apr 2015 18:09:19 +0300 Message-ID: <553CFF9F.2030502@yandex.ru> References: <87h9s6c27z.fsf@gmail.com> <87zj5wnlyt.fsf@gmail.com> <553BE6F2.4030604@yandex.ru> <87fv7ondlr.fsf@gmail.com> <553C5D75.9060706@yandex.ru> <874mo3np7t.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1430060999 14237 80.91.229.3 (26 Apr 2015 15:09:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Apr 2015 15:09:59 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Vitalie Spinu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 26 17:09:54 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 1YmOBs-0001KP-Cp for ged-emacs-devel@m.gmane.org; Sun, 26 Apr 2015 17:09:52 +0200 Original-Received: from localhost ([::1]:51069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmOBr-0004wq-M0 for ged-emacs-devel@m.gmane.org; Sun, 26 Apr 2015 11:09:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmOBh-0004wk-5r for emacs-devel@gnu.org; Sun, 26 Apr 2015 11:09:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmOBb-0001BP-Db for emacs-devel@gnu.org; Sun, 26 Apr 2015 11:09:41 -0400 Original-Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:38424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmOBb-00019A-5y for emacs-devel@gnu.org; Sun, 26 Apr 2015 11:09:35 -0400 Original-Received: by wiun10 with SMTP id n10so65194342wiu.1 for ; Sun, 26 Apr 2015 08:09:25 -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=D46hMMms0dLLeBpCFD2OFNbI+YUg3j4auy+iXdMHfK0=; b=HINvr/Nc3MA0tnrXrPFacANAPd+iUkJJ8+9421x6Ya82CmhY+lo+tIeN8lpdz9thHC iL4h9uKp4EA2LEXtpf5rkXE+nXFkN6t0g5/3RdHqvEDyYeCIU93Wcd4cvva9eEEEsElt q4v5j5kDXce9oLfzuTh5/cYnBqP6Z08t1MGZvMKK9bxTsouv1NOzfaip4XTT8UDGlUdP 9I4uyQz5TUI+NGntoxDvGb8AcKuC8lVjcIkR+ECTRvF4eoLOYj3yjjW2ofHjBTeAs90T jF8tuoWaXkY+iD8HseApyKJz2eOG+n/XxENRY9W1YulB7jW9aBKoZZksHIIvnXgxY8Wc OQyw== X-Received: by 10.180.78.65 with SMTP id z1mr13265577wiw.14.1430060965412; Sun, 26 Apr 2015 08:09:25 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id gi17sm25435531wjc.8.2015.04.26.08.09.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Apr 2015 08:09:25 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Thunderbird/36.0 In-Reply-To: <874mo3np7t.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::234 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:185912 Archived-At: On 04/26/2015 01:44 PM, Vitalie Spinu wrote: > Me too. But you're willing to prepend `M-3' every time you want to look up something in Elisp? That's not really ideal either. > Ho about having multiple configurable "levels" of xref to be accessed > with numeric prefixes (M-1,M-2 etc). Then one can have M-3 M-. to always > access elisp references, M-4 M-. to access current tags and M-. for > whatever the current mode thinks is the best. That's not bad, but it sounds like too much micromanagement to me. In any other editor, it would be accompanied by a dedicated UI, at least. I don't know if even Helm would cut it. So, I'd rather see this as a minor mode. Maybe a package in ELPA? Personally, I expect "serious" backends to either replace the need for etags entirely, or delegate to them and collect the results internally. > Would be nice to be able to set the "level" dynamically. For example, if > I have a related code which I want to consult only rarely, I build a tag > table for that code and hook it immediately on M-8. That new minor mode could offer a capability to simply switch to a different source, temporarily, or just for one command. And keep the history of already-configured sources. A source configuration would not just be limited to the xref- vars, though. If you want to consult certain tag tables only sometimes, those sources would store the value of tags-table-list, for instance. And restore it upon quitting. > > How about `xref-prompt-for-identifier', to mirror CIDER's option name? > > Sounds good. Added.