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: Question about (excessive?) ram usage when many overlays (with large vscroll) Date: Thu, 28 Apr 2022 20:06:51 +0800 Message-ID: <87zgk5za1w.fsf@yahoo.com> References: <87levs2enb.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6625"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Emacs Devel To: dalanicolai Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 28 14:10:05 2022 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 1nk2yD-0001Vi-36 for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Apr 2022 14:10:05 +0200 Original-Received: from localhost ([::1]:58152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nk2yB-0000aE-V7 for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Apr 2022 08:10:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk2vP-0005sX-BT for emacs-devel@gnu.org; Thu, 28 Apr 2022 08:07:11 -0400 Original-Received: from sonic315-20.consmr.mail.ne1.yahoo.com ([66.163.190.146]:45622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nk2vN-0001aj-Fv for emacs-devel@gnu.org; Thu, 28 Apr 2022 08:07:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1651147626; bh=Rg/KBvGjdFYTVmWegaSw/ey1H0bAZzjDcYZF7YALQu0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=ZNjh6fMp9lezRj/2LSx/MCYJdL0r2w5N2ZfdIfSwk4veRZVF0KgIOF04Laf9HmPj49V00508dkcu5wytXrYG/kf432b3ilx/NxItRxZObKIPcvdlIllD4qldct/moNCnpEYStJt/UnLTdwaY7BMmpaUsxZkEky+bWMSNdLXEb7NO0tp2t74YD2xZJaskKxhHInv4Judmtp1UbKpUcnwR+NHg775J+YFWj5wai+whiz5rgODg+NfC8SAzMFz3k2UUDTtdQVP8LaS6GQ13dO3gwKz0f1HPK07tAPP3fihRdiTSkHWDa5YaKygqJhiXM+ofxv0K0KqUGYcfi8JD1qKi+A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1651147626; bh=CBJWNohPQDOQopcL60JQU54HUxplqYrLClnwGnTw+th=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=rsngKJvMBVctbfX0gRsOuqEhKtYp9X01RgUJKa4kq/vGl/1RkTtu8b172UeU1eYwZYQLzgXeI1UoQSaIxlhraUk9QZjptG5g0DtmRfFEPNLSqg5b7/HL6NZgkBMrs8WZeUKbValLxBmmM8fcf7IpLQ3ZwTPvpBWkEui9qQRf0U+1a2l4LolVZoO/UMNKHvAap4mzmTStATdytkoEhEodEMLA7v9tdGohUoRuZumGDiu/vkFEJThlvSNow6NtCAEwmtN5kFaVYt/7pEKwu5tQRukOd/qMPayOLzmBP5IpjB2d63KfE6LHqhSgx+c/itc21UW/EbwlyfKrNxZcU0lZUQ== X-YMail-OSG: xGCgUncVM1l7xb4rITyeal3eJDbcVEUSZT9ECE2d2YVn_sBlGTGrFla8B6t2hka VLEYBhYcYGQVefytGfyNOCpfNQxXl_Z2G24QfAB19qRzUTZxWyS565lcdlu.p3nQpmarY2djY7nv GjutoJ4AI6PRgTDNJ1.AY.Iz.rlk_fnn4YX7NppGPVmBfOwc4WKBeNh9b45KL1deIi4sg2f8Q9QS dDyf9Ai17orgyW1q2sxaHvEAbFcUvtu8VC3xe63j5w6Hu8oXaScyAUf6hbNwhjPNVAHrL46_Kjft eUP.yEcd4Ff7iD6kOMDwEiCTIvO2gdy_qNtWEN6RmwVoOeBFZUWtupox9BoTLxk5B2VH0.PjlXkc hl6Ms1KP_nQi5E0zVxC37WqxbpjGpCMcWZGX0VErySA39842af7UMp3QLZJorwB2NHdSw5Sq.SVk 7u3mI4iC8oKeObedYsNfe9xgcdyt3DH2cmrZ1UrEvsWfAYWiMXY9kwiVazo309NWe4t72Lnl4Aq0 sZeM1jD9_PLWPikgfVKd34jkQkgAaBONOQdFuHHHL3z5_upPpWN2A8tb9PEzCPaT.L4z9v2j1ruJ 3lDOpS9i3SvU11_H1ZMaSRcvkzix4BPEDkP3338UevLPjfrSxFwEYWdEOciIIORYp5a20m6UDADV R3qmDuYpRNvcZ9UgfzE0nUBz9u9bzM3K4WD9Ul_0D8wDHqOJFQ9c0PHUe0cIw1KbGQL6vsHXNx47 j9QHw.bvNUUp_TDyvMGrhBc9nN4SSkdIMdbpf.xUJu2ZkdkNz9enHckEqFjqhMZu68SvI6_aiIJh u.wSRgvJ.Pp_DPp5pHW.o6njA7srN91t6HugPmr2ik X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Thu, 28 Apr 2022 12:07:06 +0000 Original-Received: by hermes--canary-production-sg3-795d7b4d54-5fwrz (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c82cda32aa5a9b8c29bf5a75438dcc5a; Thu, 28 Apr 2022 12:07:01 +0000 (UTC) In-Reply-To: (dalanicolai@gmail.com's message of "Thu, 28 Apr 2022 13:56:55 +0200") X-Mailer: WebService/1.1.20118 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.146; envelope-from=luangruo@yahoo.com; helo=sonic315-20.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:288942 Archived-At: dalanicolai writes: > I have a question about this, namely: how to make a line the 'window > start'? Using 'set-window-start` does not work. > > From 'emacs -Q' (which starts within the scratch buffer), immediately > evaluate > > (set-window-start nil (point)) > > to set the 'new' window start. Subsequently do > > (set-window-vscroll nil 1) > > it will scroll from the start of the buffer, and not from the 'new' > window start as I would expect That's because the point is obscured after the vscroll is applied, so the display is recentered. You have to move point to some location that is at least partially visible after the vscroll if you set `make-cursor-line-fully-visible' to t, or a location that is fully visible otherwise.