From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Newsgroups: gmane.emacs.devel Subject: Could x-show-tip be reimplemented in Elisp? How does one create borderless frames from Elisp? Date: Fri, 12 Feb 2016 10:01:50 -0500 Message-ID: <56BDF3DE.2050704@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="71BSd6qpmjxaPAvKnK2pP3oFxcrlDhV1I" X-Trace: ger.gmane.org 1455289360 1272 80.91.229.3 (12 Feb 2016 15:02:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2016 15:02:40 +0000 (UTC) Cc: Stefan Monnier , Dmitry Gutov To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 12 16:02:29 2016 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 1aUFEq-0001QN-Rf for ged-emacs-devel@m.gmane.org; Fri, 12 Feb 2016 16:02:29 +0100 Original-Received: from localhost ([::1]:33413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUFEh-0003nK-2t for ged-emacs-devel@m.gmane.org; Fri, 12 Feb 2016 10:02:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUFEQ-0003n1-0E for emacs-devel@gnu.org; Fri, 12 Feb 2016 10:02:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUFEM-0000cB-P4 for emacs-devel@gnu.org; Fri, 12 Feb 2016 10:02:01 -0500 Original-Received: from mout.kundenserver.de ([217.72.192.75]:61145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUFEM-0000c1-Ev for emacs-devel@gnu.org; Fri, 12 Feb 2016 10:01:58 -0500 Original-Received: from [18.189.87.242] ([18.189.87.242]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0MQfKn-1aZNTY2uVR-00U5uF; Fri, 12 Feb 2016 16:01:53 +0100 X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 X-Provags-ID: V03:K0:1Y7ZNS+UDTfeRmBvJR2FjRjjSU7+I0+ub/OEuJF+10/AyCwiP3H Xd017VrKN1h5AASpqe2nGc+GSTw4XPX5hqUdAR+/utpj303Ip1R1pfJFX70oq0jpESHjnSs QPNnFG9VYhye7YhGGuTkTLDlRFFTNbOi25nUtXRf/yhICVNDrL7tCLb2SvdqGTOhkqIqcrx DNYAQDGM/77Xicapt0Yew== X-UI-Out-Filterresults: notjunk:1;V01:K0:MdYxuSp0+9Y=:5J/9n2Svtr8fxvvMhGRy8T m/t0yxP2pHuNoV5tcCr6yUUg028VWmAupUO6xap/ErnbZqGq8r+vVktmW1mjqEhrjhWP8WbbG 3o1xEkqxMb5XINt4X16w6qZ90L0PGbvHICef2W+RoEwDtX4GkxC1ABOU+cY6IxOcR2ojwRcg1 RwPvCvVAe6bw1xu9Vf4vs15CvQ3SL5YOLjfC+i4nzyPQWT86GOhj0MLN8nzj3H6mDlMN7mJHX Z0kchl0RyLjmWKqeqDU8odb0J7KtkpT+2GzDyzUm8obaqsBcpQvQPDGD2YBBE4+jXZmCIEdUT Os0nwhvq9KXzyiPqidKzDc4ZU8VjdxkNScpRNi3meVDJqm31NvZXRvOdYk30SV6asfdWR5QjK yaZFK84iabBxno5/tofL2bKfVoQY6l52NuuDDVwYoHZEE4UFfCY92H3/vYeeEaXjM2ZkG3cZY pZDeIOPRkWSzBxQf2dka0jYFAkJB/rbiU9tqjA2tY2YS22fhN1WQu6ALIyl+Y6CXTUUyfJfg0 VkGtV3SqnQV7xHsfNasHc6OlrolsE152SbaX7YcUvsuHbFT9JO2E9TaIp1DCNtc5iJBKoT4+B 6onfLyuTuNWb1sB8cf+vl7A6h7SZFCWHaAphcRroInZ5mUPoNmf9woRFokM5AT33V6V4s7SNT jPNSyuz4s4JREMvO3PPvZ3Uh3cfMiz0e2pRjqbk0UtLmF5RY7ss9S/UghKLezs9TXf7k= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.75 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:199824 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --71BSd6qpmjxaPAvKnK2pP3oFxcrlDhV1I Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi emacs-devel, TL;DR: How do I create a frame without a border, in the style of x_create= _tip_frame (called by x-show-tip in the C sources), from Elisp? I'm looking at ways in which we could use real tooptip popups instead of = overlays to display company-mode completion lists. This would have many a= dvantages, including better interaction with font sizes, no issues with r= ecursive display specs, good support for variable-width fonts, and so on.= I believe Stefan has spoken in favour of that approach in the past, too.= The natural candidate for this task is x-show-tip, and it probably meets = most of the requirements; but not all. In particular, there can be at mos= t one tooltip displayed at any time; this means that we'd break other pac= kages that display tooltips while completion is ongoing. Examples include= company-quickhelp, which displays documentation for the currently select= ed entry next to completion candidates. `x-show-tip` is currently implemented in C; as far as I can see, however,= it essentially creates a frame and displays it at a given location; give= n this, I thought it would be possible to reimplement it in ELisp. Unfort= unately, I've been hitting a wall when it comes to displaying a borderles= s frame. I asked on https://emacs.stackexchange.com/questions/20167/how-d= o-i-create-a-borderless-frame, to no avail.=20 My original guess was that the relevant part of the C code was this call:= x_default_parameter (f, parms, Qborder_width, make_number (0), "borderW= idth", "BorderWidth", RES_TYPE_NUMBER); Unfortunately, neither (set-frame-param (selected-frame) 'border-width 0)= nor (make-frame '((border-width . 0))) (both inspired from the call abov= e) yield a borderless frame. Is there a way to create a borderless frame from Elisp? Cl=C3=A9ment. --71BSd6qpmjxaPAvKnK2pP3oFxcrlDhV1I Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWvfPfAAoJEPqg+cTm90wjxHwQALe61vmA3/UDTznm68Q/rDQi r3pHhqZOwbbBBz/b6Hhr53T2kK+sUixEfKIA0KndrmmW4l6bfre2kpQYj1gfvKYe deWjNJ+ryQS3XJrBOZMlpJn1FsXV/xGj8WaC96MiIjvCZyr4I4MTEtP/cukKxyCt ZUHVSjJf0JVyIrxyicsh1XcmOtpcq/aDH98jqYU6VcMPW8vcdqiwEsMm/5bDHEMp 5IuRJNZlWvprHqM2M+7YCchv0egVQns/yOdkOiXOIbskSQcWw/OihoX+U0i4E/wh /k8bUfCrsgGnbQROgapVUVJjon4ReMUcjdSY1uabnYI16z43HocaLlkmcC2I0gx8 5TdOc94DJo/FjsjLUGdG1YNhFtjPVlPejeQ87DNhQshatYscxuLapYvYmd07ynFB 0gsWeGmKArNVGg6lsod6dhHpEAvnlrChuuAY41YIc37TWRXrS1+TYmjsLlLki7Gp rXReB86rukK8WLXFk+pEJuS+p4uUqR9atIyPjXr3u0SkhBCXXLLsQ5cGFkrVd4xW SWfckQ9XEB0ztLo0fxUZ4mkMxhsVDmYApDiIyoNxhO6B+rUZS8YTHvVHXReIptT1 fstdzXoiaQMZXTV2xA2QI9yZesdUfW29znsr6omt4oTFThHjIyrCaDjgIWDqpAx9 FFFH2nSYkMS9D80JQpr7 =Ywa7 -----END PGP SIGNATURE----- --71BSd6qpmjxaPAvKnK2pP3oFxcrlDhV1I--