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: IDE Date: Mon, 12 Oct 2015 18:54:18 +0300 Message-ID: <83bnc4ozf9.fsf@gnu.org> References: <831td9z18h.fsf@gnu.org> <5612E996.7090700@yandex.ru> <83bnc7tavr.fsf@gnu.org> <5618C92A.3040207@yandex.ru> <83a8rrt9ag.fsf@gnu.org> <5618D376.1080700@yandex.ru> <831td3t62e.fsf@gnu.org> <5618E51D.4070800@yandex.ru> <83twpzrp05.fsf@gnu.org> <5618ED93.8000001@yandex.ru> <83lhbbrnn7.fsf@gnu.org> <56191D6B.8040405@yandex.ru> <838u7assvj.fsf@gnu.org> <561A3582.5080806@yandex.ru> <561A3756.1010404@gmx.at> <561A41CA.6060908@yandex.ru> <87io6c5ov5.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444665417 30991 80.91.229.3 (12 Oct 2015 15:56:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2015 15:56:57 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org, adatgyujto@gmail.com, dgutov@yandex.ru To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 12 17:56:47 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 1ZlfSw-0006xQ-1k for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2015 17:56:46 +0200 Original-Received: from localhost ([::1]:56296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlfSv-0005H5-ER for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2015 11:56:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlfQT-00027B-Ox for emacs-devel@gnu.org; Mon, 12 Oct 2015 11:54:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlfQP-0000dz-ID for emacs-devel@gnu.org; Mon, 12 Oct 2015 11:54:13 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:42797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlfQP-0000dn-7Q for emacs-devel@gnu.org; Mon, 12 Oct 2015 11:54:09 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NW400D006S03S00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Mon, 12 Oct 2015 18:54:07 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NW400D7E6U71C50@a-mtaout20.012.net.il>; Mon, 12 Oct 2015 18:54:07 +0300 (IDT) In-reply-to: <87io6c5ov5.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:191358 Archived-At: > From: Oleh Krehel > Date: Mon, 12 Oct 2015 13:05:02 +0200 > Cc: martin rudalics , Eli Zaretskii , > adatgyujto@gmail.com, emacs-devel@gnu.org > > > For feature parity with Intellij IDEA and MS VS, we should be able to > > display the list of completions and documentation for the currently > > selected completion in two separate popups: > > > > https://i-msdn.sec.s-msft.com/dynimg/IC797655.jpeg > > https://www.jetbrains.com/img/webhelp/idea/constructors_docs_in_completion.png > > I like the first style a lot more. The second looks a lot like the ugly > mess of Eclipse. > > Here's what's currently possible in Emacs for C++: > > - show function arguments and docstring in an overlay: > http://oremacs.com/download/fa-do-comments.png > - complete class member at point: > http://oremacs.com/download/function-args-qt.png > - jump to tag in directory: > http://oremacs.com/download/function-args-boost.png Talking just about the visual appearance of these, IMO using overlays limits us in our choice of faces, and fonts. So I think it's better to use tooltips or menus or maybe specialized small frames (which are just tooltips with some limitations lifted and with automatic hide action removed). > The latter two can be done with powerful regexp-based completion, which > MS VS likely still doesn't include. This aspect is orthogonal to the visual appearance, I think. > What's missing, compared to the MS VS picture: > > - Candidate completion is in the minibuffer instead of at-point. > - The docstring (only the comment part) is shown separately. > > The first part is just Emacs' style of doing things: we usually enter > stuff in the minibuffer, so it makes sense for completion to display > there. The second part is arguably unnecessary: I usually just jump to > definition of symbol rather than look at the docstring inline. IMO, we should support both the "traditional" Emacs style, and the style users expect because other IDEs provide them. > Another example is the QT code: it's a popular LGPL C++ framework that's > currently hard to setup for CEDET. > For instance, `#include ` is a plain file without an > extension with only this code inside: > > #include "qpushbutton.h" > > Since the extension isn't recognized, it's not parsed by CEDET. Good C++ support indeed requires to be able to DTRT with extension-less header files. It would be good to add such a feature, e.g. via magic-mode-alist and some creative regexp or match function. > Could someone explain to me if making GCC the dependency of Emacs would > be a good idea, from technical and freedom point of view? You mean, invoke the compiler as part of some command? No problem at all (we actually do that already in a couple of commands).