unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Could x-show-tip be reimplemented in Elisp? How does one create borderless frames from Elisp?
@ 2016-02-12 15:01 Clément Pit--Claudel
  2016-02-13  2:15 ` Chris Feng
  2016-02-15 10:57 ` martin rudalics
  0 siblings, 2 replies; 28+ messages in thread
From: Clément Pit--Claudel @ 2016-02-12 15:01 UTC (permalink / raw)
  To: Emacs developers; +Cc: Stefan Monnier, Dmitry Gutov

[-- Attachment #1: Type: text/plain, Size: 1792 bytes --]

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 advantages, including better interaction with font sizes, no issues with recursive 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 most one tooltip displayed at any time; this means that we'd break other packages that display tooltips while completion is ongoing. Examples include company-quickhelp, which displays documentation for the currently selected 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; given this, I thought it would be possible to reimplement it in ELisp. Unfortunately, I've been hitting a wall when it comes to displaying a borderless frame. I asked on https://emacs.stackexchange.com/questions/20167/how-do-i-create-a-borderless-frame, to no avail. 

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), "borderWidth", "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 above) yield a borderless frame.

Is there a way to create a borderless frame from Elisp?

Clément.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2016-02-18 10:51 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-12 15:01 Could x-show-tip be reimplemented in Elisp? How does one create borderless frames from Elisp? Clément Pit--Claudel
2016-02-13  2:15 ` Chris Feng
2016-02-13  3:35   ` Clément Pit--Claudel
2016-02-13  3:57     ` Chris Feng
2016-02-16 20:12       ` Creating a "borderless" frame (without WM chrome) (was Re: Could x-show-tip be reimplemented in Elisp? How does one create borderless frames from Elisp?) Clément Pit--Claudel
2016-02-16 22:41         ` Chris Feng
2016-02-16 22:55           ` Clément Pit--Claudel
2016-02-16 23:14             ` Chris Feng
2016-02-16 23:46               ` Clément Pit--Claudel
2016-02-17  9:13                 ` martin rudalics
2016-02-17 13:49                   ` Chris Feng
2016-02-17 14:55                     ` Clément Pit--Claudel
2016-02-18  1:28                       ` Chris Feng
2016-02-17 14:57                   ` Clément Pit--Claudel
2016-02-18 10:51                     ` martin rudalics
2016-02-14 14:05     ` Could x-show-tip be reimplemented in Elisp? How does one create borderless frames from Elisp? Stefan Monnier
2016-02-14 16:44       ` Eli Zaretskii
2016-02-14 17:19         ` Stefan Monnier
2016-02-14 18:00           ` Eli Zaretskii
2016-02-16 20:06       ` Clément Pit--Claudel
2016-02-15 10:57 ` martin rudalics
2016-02-15 13:31   ` Stefan Monnier
2016-02-16 20:06     ` Clément Pit--Claudel
2016-02-16 20:05   ` Clément Pit--Claudel
2016-02-16 21:33     ` Johan Bockgård
2016-02-16 22:18       ` Clément Pit--Claudel
2016-02-17  9:12     ` martin rudalics
2016-02-17 14:26       ` Clément Pit--Claudel

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).