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.devel Subject: Re: Allowing point to be outside the window? Date: Sun, 05 Dec 2021 12:34:58 +0200 Message-ID: <837dcj49wt.fsf@gnu.org> References: <87ilwd7zaq.fsf.ref@yahoo.com> <83zgpowu23.fsf@gnu.org> <87zgpo5tws.fsf@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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28654"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dick.r.chiang@gmail.com, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 11:36:36 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 1mtosm-0007FV-57 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 11:36:36 +0100 Original-Received: from localhost ([::1]:36344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtosk-0006Rk-Ic for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 05:36:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtorL-0004zQ-0l for emacs-devel@gnu.org; Sun, 05 Dec 2021 05:35:07 -0500 Original-Received: from [2001:470:142:3::e] (port=36314 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 1mtorK-0001hr-1P; Sun, 05 Dec 2021 05:35:06 -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=tFrKSIo/3XOxHrBjMI6+cqUiVU04Z+5ZtJLUWitTmqw=; b=g7bEh5h8x+yv 3SsobkGJrDSHYHaZDjf+RjaVO3U+BoJQ3XX5oYf+QXi0jtF1faECkb3K4Pl+dafS+Lr5ipd3VIw2X 36nAxFhLITasppY3G5IsaS42yJTdqX+d+bU5DDi2l+2MzmyjXDljGPIpB8f/QTpuoEypvbQr3EUIN yqlYsuV6SX/+HMlFCTGsUFOxdOIti+qriUdZRGxiIRvTGcs9ykNIc8W46nX0THPyzD5cnIEUwA5rc zu1KwKMp7aC1QJyL7PDgwCyrX3LxDnHWgLU8J8QW7OtU8I2KQ2jH93id8jIgRZZnqrn0ZYw4Qe2OU npmP21CbEp8Dbgd7JtYH6Q==; Original-Received: from [87.69.77.57] (port=3485 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 1mtorI-0003hP-Vt; Sun, 05 Dec 2021 05:35:05 -0500 In-Reply-To: <87a6hfqtyg.fsf@yahoo.com> (message from Po Lu on Sun, 05 Dec 2021 17:31:03 +0800) 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:280980 Archived-At: > 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?