From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Bad moves with xref-find-definitions Date: Sun, 26 Apr 2015 17:50:53 +0300 Message-ID: <83a8xvx7si.fsf@gnu.org> References: <87h9s6c27z.fsf@gmail.com> <87zj5wnlyt.fsf@gmail.com> <87zj5vm8h3.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1430059890 30070 80.91.229.3 (26 Apr 2015 14:51:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Apr 2015 14:51:30 +0000 (UTC) Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Vitalie Spinu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 26 16:51:23 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 1YmNty-00037e-Dc for ged-emacs-devel@m.gmane.org; Sun, 26 Apr 2015 16:51:22 +0200 Original-Received: from localhost ([::1]:51032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmNtx-00066C-GL for ged-emacs-devel@m.gmane.org; Sun, 26 Apr 2015 10:51:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmNtm-00064r-Og for emacs-devel@gnu.org; Sun, 26 Apr 2015 10:51:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmNtj-0002oz-IP for emacs-devel@gnu.org; Sun, 26 Apr 2015 10:51:10 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:43469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmNtj-0002oa-9r for emacs-devel@gnu.org; Sun, 26 Apr 2015 10:51:07 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NNF00L0058Z5T00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sun, 26 Apr 2015 17:51:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNF00L9R5944P10@a-mtaout20.012.net.il>; Sun, 26 Apr 2015 17:51:04 +0300 (IDT) In-reply-to: <87zj5vm8h3.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:185909 Archived-At: > From: Vitalie Spinu > Date: Sun, 26 Apr 2015 13:31:36 +0200 > Cc: emacs-devel@gnu.org > > > > > > 1) `find-tag` (previously bound to M-.) was prompting for a symbol > > > > > before jumping to the definition. > > > > > > > > > You can still get the prompt, with C-u. > > > > > > > That's a bit besides the point. I want my interface to behave exactly > > > the same independently of the context at point. > > > > > You're talking here about the fact that M-. will prompt if there's no > > "thing at point"? > > > Yes. > > > > We could make it signal an error, indeed. > > I would like that. This is backwards, sorry. M-. should be intelligent enough not to signal errors in this situation, and neither should it require users to navigate needlessly. No other feature that is sensitive to "the thing at point" behaves like that, AFAIR. Do we really want users to hate xref starting from day one? If this issue is controversial among users, let's have a user option to control the default behavior -- either always prompt and use the symbol at point, if any, for the default value, or prompt only when there's no usable symbol at point. Then everyone can have what they like without unduly punishing the rest.