From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Allowing point to be outside the window? Date: Sun, 05 Dec 2021 18:37:58 +0800 Message-ID: <871r2rqqux.fsf@yahoo.com> References: <87ilwd7zaq.fsf.ref@yahoo.com> <83pmqkwi6r.fsf@gnu.org> <87v90c5su6.fsf@yahoo.com> <83o864wg2a.fsf@gnu.org> <87ilwb68ck.fsf@yahoo.com> <83zgpnunfo.fsf@gnu.org> <87fsrf3xmd.fsf@yahoo.com> <83y257ulfp.fsf@gnu.org> <8735ne4e0e.fsf@yahoo.com> <87czmcvcs1.fsf@yahoo.com> <87k0gkjzj3.fsf@dick> <87r1astsle.fsf@yahoo.com> <87ee6rubcz.fsf@yahoo.com> <83v9034j9z.fsf@gnu.org> <871r2rserm.fsf@yahoo.com> <83ilw34eui.fsf@gnu.org> <87o85vquoi.fsf@yahoo.com> <83czmb4d50.fsf@gnu.org> <87a6hfqtyg.fsf@yahoo.com> <837dcj49wt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40358"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: dick.r.chiang@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 11:39:18 2021 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 1mtovN-000AN5-On for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 11:39:17 +0100 Original-Received: from localhost ([::1]:38886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtovM-0008DJ-Po for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 05:39:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtouM-0007Wc-9o for emacs-devel@gnu.org; Sun, 05 Dec 2021 05:38:14 -0500 Original-Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]:32962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtouI-0002DR-DD for emacs-devel@gnu.org; Sun, 05 Dec 2021 05:38:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638700688; bh=CiPFZyHEwmF6L4NSo5j/aGbP4EPrdXi3svbFd34BkiQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=CbEStHDV8K3y+Ux5B8ws1ts8OlnOmExmr10VKztQ76eDck76LYgnGDX4t+UhGT5PKoxoF9jaEObVNf7IxD2ewf6Qr6Yj4WCsXCevSmjagoTx3uBeljhdEs96AfWfqHLzjIGP39N2xFJfQSx/o9Br1fUH0hYH08rBgqRwLwaR07dbFHNth7F+b8ZbMoIB9ucbH9w9xcmJdcv8ZFBuxCg+H2qYQ7d5ZVONIkwBnfSu9iYGlM3IRiiSq1Vm8ZSspbzjlRgGWq3d58fyUPgBugAqg80YW3LmcAjoxJ/IJASn0Zut75oBPlq/t/zNbBsueX5q3tP7a/U5SLI5eF7UcpSnBA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638700688; bh=6T4+fJ8TsQBRBwBtqSXsE55hhLJdUtrXQzR1shLe6Ua=; h=X-Sonic-MF:From:To:Subject:Date:From:Sub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twsLEoEemwsZBj8YH_0tgUtZY9lrPKyI3McHMl dpx1H6Wdksj50M5ahCwf6WlutwT6aX4SjCME986V._jOdGmTP4T2oWA.knEroVNh3RCMgbpM5qtS 4zcwj344ey9LEAwMHLSRvjPZHzNSA.3sX750NVnkRZ X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Sun, 5 Dec 2021 10:38:08 +0000 Original-Received: by kubenode515.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 26f00de716cad5b403e168b9320373ec; Sun, 05 Dec 2021 10:38:03 +0000 (UTC) In-Reply-To: <837dcj49wt.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 05 Dec 2021 12:34:58 +0200") X-Mailer: WebService/1.1.19306 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.204; envelope-from=luangruo@yahoo.com; helo=sonic310-23.consmr.mail.ne1.yahoo.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:280981 Archived-At: Eli Zaretskii writes: >> From: Po Lu >> Cc: dick.r.chiang@gmail.com, emacs-devel@gnu.org >> Date: Sun, 05 Dec 2021 17:31:03 +0800 >> >> >> Also, where should I put the code to test if cursor is invisible? I >> >> think it should be after the label force_start, as forcing the start >> >> could potentially adjust point to be inside the window. >> > >> > It goes back to the same question I asked above: why do you need to >> > know that point is outside of the window? for what purposes? >> > >> > IOW, why not just let redisplay do its thing, without bothering to >> > bring point into the window, when that is allowed? >> >> I need to erase the phys cursor and to tell display_and_set_cursor to >> not draw it: otherwise, the ghost of the cursor remains on-screen even >> after point is moved out. > Which probably means you need to put the code which determines whether > point is inside or outside of the window in update_window or > thereabouts? Thanks.