From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vitalie Spinu Newsgroups: gmane.emacs.devel Subject: Re: UI inconveniences with M-. Date: Tue, 05 May 2015 03:36:58 +0200 Message-ID: <874mnrpzyd.fsf@gmail.com> References: <83zja6b3tc.fsf@gnu.org> <553EBBBF.6070509@yandex.ru> <838udcwbdc.fsf@gnu.org> <553FFC99.5080701@yandex.ru> <834mnzuedd.fsf@gnu.org> <554161A8.30202@yandex.ru> <83618du3q3.fsf@gnu.org> <5542E486.2010107@yandex.ru> <83k2wsssm8.fsf@gnu.org> <5543632C.6000306@yandex.ru> <834mnwsbfb.fsf@gnu.org> <554392E2.7080109@yandex.ru> <83oam4qh2u.fsf@gnu.org> <5543C97C.6050000@yandex.ru> <83h9rwqf10.fsf@gnu.org> <5543E3CF.5010402@yandex.ru> <87r3qwpiif.fsf@gmail.com> <5547E5D0.7000307@yandex.ru> <878ud3q3u6.fsf@gmail.com> <55480B77.2080809@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1430789847 10808 80.91.229.3 (5 May 2015 01:37:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 May 2015 01:37:27 +0000 (UTC) Cc: Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 05 03:37:27 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 1YpRnZ-0006vh-Hu for ged-emacs-devel@m.gmane.org; Tue, 05 May 2015 03:37:25 +0200 Original-Received: from localhost ([::1]:36552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpRnY-0003Xz-LD for ged-emacs-devel@m.gmane.org; Mon, 04 May 2015 21:37:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpRnK-0003Xr-5h for emacs-devel@gnu.org; Mon, 04 May 2015 21:37:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpRnJ-0002hP-71 for emacs-devel@gnu.org; Mon, 04 May 2015 21:37:10 -0400 Original-Received: from mail-wg0-x235.google.com ([2a00:1450:400c:c00::235]:34338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpRnB-0002gD-1V; Mon, 04 May 2015 21:37:01 -0400 Original-Received: by wgso17 with SMTP id o17so167344599wgs.1; Mon, 04 May 2015 18:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=1aO7wOt5ivkDKywa6l6HxVN620FSiJeQysqtJYvOIug=; b=lymuL2q3fxQTsabsk2xM1u+XM/HEAt3OORsoHWFw2YylZnmgCT6+qwk/bIsOuS0cM1 v085rs2cUtMTxEOCXpoQEgnHI0lDNRHZNiiE8Rh3y+hcVq52geSJ5YLBtd5yi3IKtAf4 PzShrIFdLpoj9WCjmfRhT05thRIvHgIlr4ZlCh0FJOZQhLgmwj6Jn4SFUB+khhLy3NMM 2+EaImkTQSiP2EBb76K7j9SSfq+HJAUQHaJHZlVoPHq+91WdAjlUKvGXNhWQ/ebYQ9Vt ytygHKizWEsjPbYogucfnqADWgfZCRTv/4WWbicJx3U83bWG5jDmQf1uWONBJklr83QV Alsw== X-Received: by 10.180.99.231 with SMTP id et7mr804219wib.23.1430789820124; Mon, 04 May 2015 18:37:00 -0700 (PDT) Original-Received: from localhost (dhcp-077-251-128-242.chello.nl. [77.251.128.242]) by mx.google.com with ESMTPSA id di7sm13634072wib.23.2015.05.04.18.36.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2015 18:36:59 -0700 (PDT) In-Reply-To: <55480B77.2080809@yandex.ru> (Dmitry Gutov's message of "Tue, 5 May 2015 03:14:47 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::235 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:186221 Archived-At: >>> Dmitry Gutov on Tue, 5 May 2015 03:14:47 +0300 wrote: > On 05/05/2015 03:13 AM, Vitalie Spinu wrote: >> Sure thing. I can do the mode. How about the basic merging? Would it >> be possible for you to put some basic stuff together? > What kind of stuff do you have in mind? I have in mind xref-find-functions list of functions instead of xref-find-function symbol. But that's tricky because you have xref-identifier-at-point-function and xref-identifier-completion-table-function and potentially many more coming soon. Each of these should also be lists to allow for multiple backends. I think a more condensed system would serve us much better here. Instead of the above 3 config vars use one - `xref-backends` holding a list of backend names. Like '(elisp etags). Then dynamically expand each of them as in `elisp-xref-find`, `eslip-xref-identifier-at-point` and `elisp-xref-completion-table`. If some of the these are not defined use the default. Then the minor mode as I have just proposed would be trivial to implement. I don't see a straightforward implementation based on the current xref. Vitalie