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#50256: thing-at-mouse Date: Thu, 02 Sep 2021 10:46:04 +0300 Message-ID: <83y28fo1xf.fsf@gnu.org> References: <87sfys6ubm.fsf@mail.linkov.net> <87eeacdnmg.fsf@gnus.org> <87h7f7z8ui.fsf@mail.linkov.net> <871r6a8ooe.fsf@gnus.org> <87y28i85xi.fsf@mail.linkov.net> <87k0k1o5ks.fsf@mail.linkov.net> <87ilzk6bsr.fsf@mail.linkov.net> <6dcf3191-dbb3-0c6c-2483-0fc05e9ff6e5@gmx.at> <83lf4gqyn9.fsf@gnu.org> <1a65f234-c1ee-ae95-aa05-2e3d9d1e1002@gmx.at> <8335qoqobm.fsf@gnu.org> <7c9cb0a1-b222-cb06-7e7c-7f17231faca3@gmx.at> <83pmtsp4g1.fsf@gnu.org> <831r67ph8d.fsf@gnu.org> <87tuj3bffb.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30771"; mail-complaints-to="usenet@ciao.gmane.io" Cc: juri@linkov.net, 50256@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 02 09:47:24 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 1mLhRT-0007il-Fu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Sep 2021 09:47:23 +0200 Original-Received: from localhost ([::1]:34680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLhRR-0005ME-Il for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Sep 2021 03:47:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLhR8-0005Ka-GQ for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 03:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56281) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLhR7-0004mt-Md for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 03:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLhR7-0007kl-Kv for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 03:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Sep 2021 07:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50256 X-GNU-PR-Package: emacs Original-Received: via spool by 50256-submit@debbugs.gnu.org id=B50256.163056878027858 (code B ref 50256); Thu, 02 Sep 2021 07:47:01 +0000 Original-Received: (at 50256) by debbugs.gnu.org; 2 Sep 2021 07:46:20 +0000 Original-Received: from localhost ([127.0.0.1]:39594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLhQR-0007Es-Pn for submit@debbugs.gnu.org; Thu, 02 Sep 2021 03:46:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLhQN-00076q-54 for 50256@debbugs.gnu.org; Thu, 02 Sep 2021 03:46:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52066) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLhQG-000426-NR; Thu, 02 Sep 2021 03:46:08 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2108 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 1mLhQG-0008Ix-Ab; Thu, 02 Sep 2021 03:46:08 -0400 In-Reply-To: <87tuj3bffb.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 02 Sep 2021 09:32:56 +0200) 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:213248 Archived-At: > From: Lars Ingebrigtsen > Cc: martin rudalics , juri@linkov.net, 50256@debbugs.gnu.org > Date: Thu, 02 Sep 2021 09:32:56 +0200 > > Eli Zaretskii writes: > > >> "The argument POSITION defaults to the current position > >> of point in WINDOW; WINDOW defaults to the selected window." > >> > >> If the current buffer is not shown in WINDOW, the first part of this > >> sentence is wrong. > > > > So the only problem is that of inaccurate documentation? > > The doc string makes sense to me (that is, if it did what it said, it'd > be good). That it doesn't do this is a bug, in my opinion. Our doc strings didn't descend on us from Mt Sinai, and aren't carved in stone. They were written by people, and may include hidden assumptions those people had in mind that could make other people interpret them incorrectly. So to decide that the code is wrong and the documentation is right, we need more evidence than just what the current documentation literally says. If we want to support the current documentation to the letter, the only way of doing that I know of is to force WINDOW to display the current buffer, at least internally, i.e. to switch to the WINDOW's buffer for the duration of pos-visible-in-window-p. If that leaves everyone happy, it could be done relatively easily, but then I wonder why does the code in question with-current-buffer, and what would break when pos-visible-in-window-p internally switches back to the buffer shown in WINDOW?