From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Emacs contributions, C and Lisp Date: Wed, 26 Feb 2014 15:13:56 +0900 Message-ID: <87r46qtn8b.fsf@uwakimon.sk.tsukuba.ac.jp> References: <834n41db0d.fsf@gnu.org> <52FE2985.4070703@yandex.ru> <831tz5daes.fsf@gnu.org> <8738jlohd6.fsf@yandex.ru> <83txc1bl83.fsf@gnu.org> <5300189A.9090208@yandex.ru> <83wqgv9fbj.fsf@gnu.org> <20140216180712.236069f6@forcix.jorgenschaefer.de> <87wqgr4v18.fsf@yandex.ru> <53064BD0.7070009@yandex.ru> <87ha7tr5bo.fsf@fencepost.gnu.org> <87ppmhecd8.fsf@yandex.ru> <87y50z90pd.fsf@fencepost.gnu.org> <87txbn8r6x.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1393395389 19818 80.91.229.3 (26 Feb 2014 06:16:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Feb 2014 06:16:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 26 07:16:37 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 1WIXnI-0001VH-VK for ged-emacs-devel@m.gmane.org; Wed, 26 Feb 2014 07:16:37 +0100 Original-Received: from localhost ([::1]:38405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIXnI-0001Qt-E9 for ged-emacs-devel@m.gmane.org; Wed, 26 Feb 2014 01:16:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIXn8-0001Pd-9g for emacs-devel@gnu.org; Wed, 26 Feb 2014 01:16:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIXn0-0006P1-Uc for emacs-devel@gnu.org; Wed, 26 Feb 2014 01:16:26 -0500 Original-Received: from mgmt2.sk.tsukuba.ac.jp ([130.158.97.224]:35869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIXmt-0005DN-0R; Wed, 26 Feb 2014 01:16:11 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt2.sk.tsukuba.ac.jp (Postfix) with ESMTP id 9ED629708E0; Wed, 26 Feb 2014 15:13:56 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 90FE01A28E5; Wed, 26 Feb 2014 15:13:56 +0900 (JST) In-Reply-To: <87txbn8r6x.fsf@fencepost.gnu.org> X-Mailer: VM undefined under 21.5 (beta34) "kale" 2a0f42961ed4 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 130.158.97.224 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:169878 Archived-At: David Kastrup writes: > In this particular case, the "annotated syntax tree" question in > particular is mostly uninteresting since we are talking about > characterizing identifiers. It is "mostly" uninteresting since the > resolution of an identifier depends on scopes, Nice try, but I don't think you can deprecate the value of the information GCC is not allowed to emit that easily. Emacs's treatment should depend on types and usage (for example, a keyword used as an identifier in a context where that is a syntax error should not be included in a completion candidate list at that point). Even if you restrict consideration to the simple context of completion (fontification would be another application where the additional information would be of great use), the annotation information would improve accuracy in generating candidate lists. And of course there are areas where Emacs lags badly (refactoring tools) where complete information about the syntax tree would be very useful.