From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Track mouse drags over an image Date: Tue, 08 Jan 2019 13:20:09 -0500 Message-ID: References: <8336qb3upt.fsf@gnu.org> <20190102211241.GA53734@breton.holly.idiocy.org> <8736q6okqj.fsf_-_@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1546971549 28756 195.159.176.226 (8 Jan 2019 18:19:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 8 Jan 2019 18:19:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 08 19:19:05 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggvxx-0007MC-F5 for ged-emacs-devel@m.gmane.org; Tue, 08 Jan 2019 19:19:05 +0100 Original-Received: from localhost ([127.0.0.1]:39961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggw03-0006DU-KW for ged-emacs-devel@m.gmane.org; Tue, 08 Jan 2019 13:21:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggvzR-0006CM-Bv for emacs-devel@gnu.org; Tue, 08 Jan 2019 13:20:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggvzJ-0002Ow-D7 for emacs-devel@gnu.org; Tue, 08 Jan 2019 13:20:33 -0500 Original-Received: from [195.159.176.226] (port=56150 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ggvzA-0001uq-M1 for emacs-devel@gnu.org; Tue, 08 Jan 2019 13:20:25 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ggvx0-0006IE-5e for emacs-devel@gnu.org; Tue, 08 Jan 2019 19:18:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:DmXR7EAmm7ziXxAd5YuXBazTY3Y= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:232257 Archived-At: > implemented in elisp to be usable. Still I am wondering: would it > make sense to implement such code in a built-in function? Not sure what you mean by "such code" nor "built-in". Providing an Elisp function to help coders like you would be very welcome, indeed. If you can try and extract the relevant code from djvu-mode, that would be great. Implementing it in C would only be justified if the performance difference is relevant or if the semantics can be made cleaner. E.g. make it work for any image rather than only for PPM images of "depth" 255. Images are pretty far from my area of expertise, tho, so someone else should look into this. Stefan