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 08:45:14 +0800 Message-ID: <87ilw3ubfp.fsf@yahoo.com> References: <87ilwd7zaq.fsf.ref@yahoo.com> <87ilwd7zaq.fsf@yahoo.com> <83bl24yaed.fsf@gnu.org> <87sfvg7l51.fsf@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> <83sfv85y36.fsf@gnu.org> <87v904tsvv.fsf@yahoo.com> <83h7bo5m1x.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="28492"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: 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 01:47:45 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 1mtfgu-0007GN-KS for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 01:47:44 +0100 Original-Received: from localhost ([::1]:47202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtfgs-0006Py-Ic for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Dec 2021 19:47:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtfei-0005hl-VT for emacs-devel@gnu.org; Sat, 04 Dec 2021 19:45:29 -0500 Original-Received: from sonic309-22.consmr.mail.ne1.yahoo.com ([66.163.184.148]:42671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtfeg-0007GC-Fc for emacs-devel@gnu.org; Sat, 04 Dec 2021 19:45:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638665125; bh=OcepJiNy0lqciOtREoihB8+ftDTEd32zm8cqyHBR3dw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=mWGIHydCjkbkUrpea8HeRUoa98UZrwEP31HFNUb0EG2uI4duScaFEDM3mZmHhBe3+EFQ8SuW0SS7pSdp/R8GNUja/u1kOu3LC4l9bLLGobl6YfUKA1r9EX4syE0erWxFnWMflJbJHhXLAz01INof+4WBZBxtc7/+Ch2HKaKowRzqhspLjsd+t7N3fQQ6KfT6oiuvNghfTROmbzsgrKbVWdqH3jBsmvDlCH37YSVBvM9krSqJX1UgIw9NEuQbqYTzQQ7ZsbSwitVnFerzJLdbJ5QxI5xpDj74i73vFnlcN50R01YyxSZXqkkeehaCy/84P29ErS9hRXc5D06rlPWb6g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638665125; bh=yg/fIo4StuLX5+Njxb4ShVsxL5B6MpPLmyD1hRpyHXn=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=qNuWJrBbQhKoIsDFnChynD3UGtYvx1ikDJlQzJ24d9S61Nw0Lo154a5w5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uo8vGGjqIIpb8sYIIrCgMFe5GQmA_r.c19AHl ECil3A7Ur3V_QvmRAORb4IKwNcZZUrS.fkJDrYw0bn X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Sun, 5 Dec 2021 00:45:25 +0000 Original-Received: by kubenode510.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID fdead730095e6c7c6b3b40edf794bdf8; Sun, 05 Dec 2021 00:45:20 +0000 (UTC) In-Reply-To: <83h7bo5m1x.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Dec 2021 19:15:06 +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.184.148; envelope-from=luangruo@yahoo.com; helo=sonic309-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:280950 Archived-At: Eli Zaretskii writes: > Btw, one issue that I couldn't figure out from reading the patch is > how do you intend to distinguish between point going out of the > viewport by an explicit user command (which AFAIU is what we want to > support in this new mode), and point going out of the viewport for > some other reason, for example text insertion before point? > Specifically, the bother is this: if we just disable/bypass all the > places where Emacs brings point back into the window, we could find > point outside of the window without the user meaning that to happen, > and the disabled/bypassed code will then leave point invisible. Hmm, how about not allowing point to _move_ out of the window, instead only allowing window start to move so that point becomes invisible? For instance, we could enable the code that scrolls the window to follow point if PT != w->point (if that makes sense).