From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51658: [PATCH] Haiku port (again) Date: Sun, 14 Nov 2021 12:54:32 +0200 Message-ID: <83ee7juhw7.fsf@gnu.org> References: <87ee7surtv.fsf.ref@yahoo.com> <87ee7surtv.fsf@yahoo.com> <83mtmd43fa.fsf@gnu.org> <87ilx0yj52.fsf@yahoo.com> <83czn8424l.fsf@gnu.org> <87o86s41at.fsf@yahoo.com> <83tugk2iuy.fsf@gnu.org> <871r3n4jvd.fsf@yahoo.com> <835ysz2niq.fsf@gnu.org> <87sfw3w372.fsf@yahoo.com> <83zgq7x5zj.fsf@gnu.org> <87r1bjlf26.fsf@yahoo.com> <83wnlbuq7p.fsf@gnu.org> <877ddb6pvi.fsf@yahoo.com> <83ilwvuj3t.fsf@gnu.org> <875ysv58dz.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40957"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51658@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 14 11:55:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mmDAM-000AR2-L1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 11:55:19 +0100 Original-Received: from localhost ([::1]:35812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmDAL-0005ii-8j for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 05:55:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmDA6-0005iK-B1 for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 05:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmDA6-0002eB-2j for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 05:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmDA5-0005RE-Nk for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 05:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Nov 2021 10:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51658-submit@debbugs.gnu.org id=B51658.163688729420882 (code B ref 51658); Sun, 14 Nov 2021 10:55:01 +0000 Original-Received: (at 51658) by debbugs.gnu.org; 14 Nov 2021 10:54:54 +0000 Original-Received: from localhost ([127.0.0.1]:49255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmD9y-0005Qj-9K for submit@debbugs.gnu.org; Sun, 14 Nov 2021 05:54:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmD9v-0005QV-8I for 51658@debbugs.gnu.org; Sun, 14 Nov 2021 05:54:53 -0500 Original-Received: from [2001:470:142:3::e] (port=50918 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmD9p-0002dG-Vc; Sun, 14 Nov 2021 05:54:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QV8y9oFR6egWq9ILbEbWTUs9bBLn6fPXkoWKxiDgTnw=; b=MxCOEeyj+Vai xBtAu5paiy3bQ/ZwQVFkVIMsYuhjwOdkJ+kOxCCbFVnzamL2YI36ovhvnJYSO7a5M4/T0uIILWOTv OMyvT0SALifAdock4VzsPcJOfAIDK7SyMyRgQ9ZbsnRRlv7+ZMavYmyPv38wUov9HOrif/M+jCdZl Qq7ZR13iHtd1Sf+O1nKl4ynoDLkH9IKvYjb3XtkCqG+58qFweiaA6dcY+yD3zumhnPBDOQedwJb3R WCXB01RkIWMAQAmi1StfVAYCtLfrRFJpnQ72Sddrk3SD8DoDus67as2yCOIrNpulss7bCLjJ5qx8u Kk5tJnRhxNvz28iPRRTeUA==; Original-Received: from [87.69.77.57] (port=2226 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmD9p-0001bV-JW; Sun, 14 Nov 2021 05:54:45 -0500 In-Reply-To: <875ysv58dz.fsf@yahoo.com> (message from Po Lu on Sun, 14 Nov 2021 18:39:04 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219926 Archived-At: > From: Po Lu > Cc: 51658@debbugs.gnu.org > Date: Sun, 14 Nov 2021 18:39:04 +0800 > > Eli Zaretskii writes: > > > How is POSITION used? Can't you fake POSITION, so we get the same > > event as on other platforms? > > AFAIU, POSITION is used to determine the window where the file should > appear. It should be possible to fake. > > We could get the mouse position on-screen, but it may lead to odd > results if the user asks Emacs to open a file through the Tracker or the > Recents menu, and the mouse is not on top of an Emacs frame, or if the > system starts Emacs to open a file. > > What position do you think would be reasonable to report here? The position in a window where your current code visits the file, I guess? Because this feature already works in your modified Emacs, right? > BTW, it seems that the NS port has the same problem here: it defines the > custom events `ns-open-file' and `ns-drag-and-drop' and `ns-power-off'. Which is BAAAAD! > > Every modern system has something similar, so it would make sense to > > have a unified mechanism for handling those system messages in Emacs. > > If xsmfns.c is too X-specific, we should build a layer above it, and > > then implement th lower layer for Haiku. It makes no sense to me to > > introduce new events for specific platforms when similar features > > already exist and just need to be extended or abstracted. > > Yes, makes sense. It would be worthwhile just to solve this problem > with the NS port. I will look into it. Thanks.