From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Mon, 03 Nov 2014 17:39:10 -0500 Message-ID: References: <20141102151524.0d9c665c@forcix> <20141102172944.0f7944e3@forcix> <20141103084433.12117c03@forcix> <20141103192853.2702fe7a@forcix> <20141103215526.28edeb27@forcix> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415054389 7998 80.91.229.3 (3 Nov 2014 22:39:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2014 22:39:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jorgen Schaefer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 03 23:39:42 2014 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 1XlQHm-0002Vu-5S for ged-emacs-devel@m.gmane.org; Mon, 03 Nov 2014 23:39:42 +0100 Original-Received: from localhost ([::1]:37600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlQHl-00034q-LT for ged-emacs-devel@m.gmane.org; Mon, 03 Nov 2014 17:39:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlQHR-000330-AG for emacs-devel@gnu.org; Mon, 03 Nov 2014 17:39:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlQHJ-0000YE-R4 for emacs-devel@gnu.org; Mon, 03 Nov 2014 17:39:21 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:48498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlQHJ-0000YA-Ni for emacs-devel@gnu.org; Mon, 03 Nov 2014 17:39:13 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCw4mEhQYDSSISwnLcgEBAQEGAQEBAR6RCAeESwWLZKY8gW+EFh+CegEBAQ X-IPAS-Result: Au4MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCw4mEhQYDSSISwnLcgEBAQEGAQEBAR6RCAeESwWLZKY8gW+EFh+CegEBAQ X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="95885399" Original-Received: from 69-165-143-59.dsl.teksavvy.com (HELO pastel.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 Nov 2014 17:39:10 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id A652C8874; Mon, 3 Nov 2014 17:39:10 -0500 (EST) In-Reply-To: <20141103215526.28edeb27@forcix> (Jorgen Schaefer's message of "Mon, 3 Nov 2014 21:55:26 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:176322 Archived-At: > What is the advantage of having the backend define a function that > returns a completion table as opposed to a function that prompts the > user for a symbol? The saved code seems minimal, and it means the > backend can not set the prompt, for example. Another reason is the general rule that the backend should not do UI tasks and prompting is definitely a UI operation. Stefan