From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: "Why is emacs so square?" Date: Sun, 07 Jun 2020 17:21:29 +0300 Message-ID: <8336777y8m.fsf@gnu.org> References: <863691n4xl.wl-me@enzu.ru> <86blno9yle.wl-me@enzu.ru> <87d0845msg.fsf@yahoo.com> <87h7xgjasw.fsf@yahoo.com> <875zdwjais.fsf@yahoo.com> <6a198677-41b6-4dbd-39d0-2b01550d53cf@yandex.ru> <32f6a2ce-e30f-059f-dcd4-233d666a10a1@yandex.ru> <87zh9hrxfj.fsf@logand.com> <83img4aegz.fsf@gnu.org> <874krns3oo.fsf@logand.com> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="90886"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Tomas Hlavaty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 07 16:22:25 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 1jhwBs-000NXG-CT for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jun 2020 16:22:24 +0200 Original-Received: from localhost ([::1]:50138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhwBr-0000ku-DK for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jun 2020 10:22:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhwB7-0000G2-PT for emacs-devel@gnu.org; Sun, 07 Jun 2020 10:21:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52164) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhwB6-0003HC-3B; Sun, 07 Jun 2020 10:21:36 -0400 Original-Received: from [176.228.60.248] (port=3106 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jhwB5-000695-AQ; Sun, 07 Jun 2020 10:21:35 -0400 In-Reply-To: <874krns3oo.fsf@logand.com> (message from Tomas Hlavaty on Sun, 07 Jun 2020 10:03:35 +0200) 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:252006 Archived-At: > From: Tomas Hlavaty > Cc: emacs-devel@gnu.org > Date: Sun, 07 Jun 2020 10:03:35 +0200 > > I poked around a bit and it seems that what I did in emacs-pdf > (pdf-buffer function) is similar to what ps-print-buffer function does > in ps-print and ps-mule with ps-multibyte-buffer set to nil. BDF fonts were OK when ps-mule.el and ps-bdf.el were developed, but nowadays I think you will find that many users will object to using bitmapped fonts in printed matter. (There were plans to develop ps-type1.el, but I don't think they materialized.) Caveat emptor. > There is frame-position but no window-position. Is there a way to get > window position in a frame? Is window-edges what you want? > >> For example, I would like to browse OpenStreetMap in Emacs. I wrote > >> a console based OSM browser osmq > >> and web-based OSM browser at > >> . I would prefer an Emacs based map browser. > >> However, I have not figured out how to lay out images in Emacs in a > >> grid and how to detect which image was clicked. A bonus would be, > >> where exactly was clicked. Any ideas what should I look into? > > > > Emacs supports "hot spots" on images for this: a click on an image > > returns information about pixel-resolution offset of the click from > > the image origin. I think that's what you want, although I'm not 100% > > sure. > > Yes. Is there an example how to start with this? I suggest to read "Click Events" and "Accessing Mouse" in the ELisp manual, I think the description there is clear enough to let you write code even without examples. > > We also support displaying slices of images, in case that helps to > > produce a smarter layout of images. > > Great. Is there an example? Likewise here: I suggest to read "Showing Images", where this is described.