From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Feng Newsgroups: gmane.emacs.devel Subject: Re: Could x-show-tip be reimplemented in Elisp? How does one create borderless frames from Elisp? Date: Sat, 13 Feb 2016 11:57:02 +0800 Message-ID: References: <56BDF3DE.2050704@gmail.com> <56BEA48F.9020400@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1455335829 19919 80.91.229.3 (13 Feb 2016 03:57:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Feb 2016 03:57:09 +0000 (UTC) Cc: Emacs developers To: =?UTF-8?B?Q2zDqW1lbnQgUGl0LS1DbGF1ZGVs?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 13 04:57:08 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 1aURKW-0005xQ-C4 for ged-emacs-devel@m.gmane.org; Sat, 13 Feb 2016 04:57:08 +0100 Original-Received: from localhost ([::1]:38800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aURKV-0002ep-Ce for ged-emacs-devel@m.gmane.org; Fri, 12 Feb 2016 22:57:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aURKR-0002eh-U3 for emacs-devel@gnu.org; Fri, 12 Feb 2016 22:57:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aURKR-0006fK-4X for emacs-devel@gnu.org; Fri, 12 Feb 2016 22:57:03 -0500 Original-Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:32970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aURKQ-0006fG-TC for emacs-devel@gnu.org; Fri, 12 Feb 2016 22:57:03 -0500 Original-Received: by mail-wm0-x22f.google.com with SMTP id g62so85535015wme.0 for ; Fri, 12 Feb 2016 19:57:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=X14uM9vJyxpV6Za6js+6Pzv8NVNwIrfrJSU+/w0GAfA=; b=XyC/53jkJIfre+yjVWRcITvtzbU4WbO98UsPYANiRR1I6qeICc7Aivf9eccfXuc99D XbUj8xzKPlOZm8ULCAv3G791N/oLTgJC27WCzl/0RjwUuNmPi1XwYZO2guBzr6bR3052 wNMACuTjRHOO47RF81eHYg6wXAhdb2QeWPT3WjL+QXl1/tYv0ac5eznA4amesELydf3w yPxK265BVVhjz5j+ca0TADKl3xClWkb1/6aiKOwdNHI3rXKGJ7O1oN9RJ1aBkSXARIIk SCXkpdcJO/0kObuzay6WsW22Zb6mTJYyhLfHyeuKezHdwM138bwtRYV1gvU+kdKydWAP 1IZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=X14uM9vJyxpV6Za6js+6Pzv8NVNwIrfrJSU+/w0GAfA=; b=iK4yimEYIM2nwZ0F4PybuyC6pNwyvba7QNwFXqd80K+7bbQFvoBswstmvp37FWhWTA 06q2b/6lMxJygO6yQb1KsfAjtnzTx6E7v3Yy70yqf3aPubdwsmkQKxflbP08CNiA1R2t C3V0jd9P+zai2kWbOf7zuIu2FPpoZaJzUitxbrJsnbJOtNsQaTPbSoR42c7XxzBDqD5e /Pb2P0q3nsqkyvQUMy61r3G1OjA2K94wtkpdsl6vxbNA+Uil1uEswC5wCJtldzAq9Ptx Gq0dLPFd5Jxu4M6sjpUXlw/O1byV7nSyGhMrZBBDCZf49VP6VcuFppI4yIe4SuUaleNA sujA== X-Gm-Message-State: AG10YOTL1DENJ7ph4cKXk6jGF2luSgvEbf/cG9mW04H+a8MzLRbhYpvKIRsYX+XtI/ibmFlkYXbSOCO1QuBeAg== X-Received: by 10.28.102.68 with SMTP id a65mr1281552wmc.12.1455335822093; Fri, 12 Feb 2016 19:57:02 -0800 (PST) Original-Received: by 10.194.190.104 with HTTP; Fri, 12 Feb 2016 19:57:02 -0800 (PST) In-Reply-To: <56BEA48F.9020400@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22f 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:199854 Archived-At: > It doesn't seem that there's any Elisp level facility to customize this flag, unfortunately. This means in particular that unless we patch the C sources, there won't be a cross platform solution to this issue, right? I'm afraid so. > I've started thinking at what a patch would look like; presumably the idea would be to expose the functionality of x_create_tip_frame to Elisp, moving parts of x_show_tip into that function. I could try coming up with a patch, if this is deemed useful. > > There's one thing that confuses me, however: some code related to tooltips seems to be duplicated between xfns.c, w32fns.c, etc; are these files auto-generated? Or should I prepare a patch that adjusts all copies of that code? Those files contain implementations for different platforms. You need to patch all of them. The override-redirect flag is X-specific actually. > This is really neat, actually :) Thanks a lot! It works great on my machine. > I'd still like to find a cross-platform solution, though; company isn't X-specific. Am I right to think that this will only work on GNU/Linux? Yes, and perhaps other platforms running X11.