From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Emacs canvas support Date: Wed, 29 Apr 2020 18:22:13 +0800 Message-ID: <87mu6u1tii.fsf@yahoo.com> References: <875zdikdge.fsf.ref@yahoo.com> <875zdikdge.fsf@yahoo.com> <834kt21yyo.fsf@gnu.org> <87zhau1uog.fsf@yahoo.com> <83sggmzjp8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="61937"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 29 12:23:00 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTjro-000FzL-5o for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 12:23:00 +0200 Original-Received: from localhost ([::1]:60560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTjrn-0007HQ-7E for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 06:22:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39758) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTjrB-0006RO-9J for emacs-devel@gnu.org; Wed, 29 Apr 2020 06:22:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTjrA-0006qD-IJ for emacs-devel@gnu.org; Wed, 29 Apr 2020 06:22:21 -0400 Original-Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]:40219) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTjrA-0006pY-2D for emacs-devel@gnu.org; Wed, 29 Apr 2020 06:22:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1588155738; bh=uHEZEEaqEzZ5+uWzDyAyEQnolEIT3lgR/5SvrvGeIE4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject; b=s5PZx7YxCFNRut7v2b/Mc8kDL4OovGSelHbsWg6uVh8hKfHg8EKTKi45ErtxOE2Ru2UUcAXQqFiao7CBDLP6rzJ3pvkXsqL6/0eGwndGBviGRFP9sb4tWTwCPncM3VPzOmjhO+ygAs5HVWUrYf2EeShL94S2QOXw4Q6yG4YxWlKvwxBnSo8VA/B0UKXsAnzg2/qaZdQ4eJftexEcoPXrxLs2D75RRB2So9zNoqYgBgs43wNSjHZMEI+mPsZExpTW7FmuFa2bHnAbgqJ42IFsfP1vz0wYCIV3WZcPBT9SVV2LdNjRUR5QdGhbhZEv1BYNzMGR3oKYW/Fc3uk5HO5aqw== X-YMail-OSG: yKt5HQkVM1k_CQ3OsxnxwGUkFcW.yIHBRrwtvKk9EfvGpd_0eJp_hVDk4hWetNZ caVEIY06se1ZwZQCYFFXs.OyDa9S9CJSQIckqUtCxUX4.Ozvp9Erp3AzQ6CXo8rpHHKwo9skTuM3 ujM7VLZRo7Q8hZNC6jMdetrwVGt.oaeaeRO2Tybt0o.7z6NRUpeCn91WlD_v09DClDVsICWlS0Gw lddgRgRHrNfONIxHlEjQTYyha215SlrW9R.p.OMgXq.jgh2xtbKGozUx.8ChWeWB0hTzu9fBn8hE ivJ6xpeqT2hlGsGhKULjocA1Jzi66JEqJ1mGMKsAZOHwponwvFavzSnodQVq3AoXvDqkryU4iTJE ALgIZWc8k5omWjfgmHIaeEDmMyTuDzgOG9j96En4ivtlJ48KMNRyj5GI5YNExtC9HXgobru7HPjS mKQyVcpSGfeaxuiOdEG9a928TvHAcs3xs6N3zvjLQW0yo9lXddKPlNNzKSrYtrzJ3.I1tL1GRmMw umRYo.91568MVqGFzvLk11BJYpwZetKSab.OknIr4vmHAKacjkHuEP2yQeO1ha6Zu_F6m57etRGx .9MM_J_LbMK0zbf9CuspdwrvwL5PkkkC5P_U2O_Tov5oLf5KVPl2aHXthZRjtnTeV6k8I7xCcdG3 OBiIcmSlSPeCOC5iFzBdViyzPJggfQ81YegQUUdgZfyHoUAL1CgQqV7FYoYFewBBkS6TbfJ43fW9 3dEBRcue9ERnTbCEhr0pYlSQPEejk9DMpeknP55ILwV9uS4vuOuvrO8GJPYtVnCFtP8AlP17m90k mA2L5mI8k8wc_8ORts6KbFp7JjAT9as24Wrw0Nv7JK Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Wed, 29 Apr 2020 10:22:18 +0000 Original-Received: by smtp430.mail.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 8cd0db1bd1aff1b2af0847e9af76a72d; Wed, 29 Apr 2020 10:22:15 +0000 (UTC) In-Reply-To: <83sggmzjp8.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 29 Apr 2020 13:10:11 +0300") X-Mailer: WebService/1.1.15756 hermes Apache-HttpAsyncClient/4.1.4 (Java/11.0.6) Received-SPF: pass client-ip=66.163.189.82; envelope-from=luangruo@yahoo.com; helo=sonic306-20.consmr.mail.ne1.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/29 05:57:08 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Received-From: 66.163.189.82 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248108 Archived-At: Eli Zaretskii writes: > That's the technical description of the implementation. It doesn't > explain when canvases can be useful and for what purposes. Canvases are useful for when I want to be able to control a portion of a screen dynamically, in a fast way, from Lisp code. For instance, displaying a constantly changing bar chart or graph inside Emacs. > But the result of this painting is some graphical object, similar to > an image, that will be displayed within a buffer, right? Correct. > Did I miss the code that tells Emacs the click was on a canvas? E.g., > if you click on a canvas, what does posn-object return when passed the > click event as its argument? Oops. I missed that. Thanks for bringing it up.