From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Chinmay Dalal Newsgroups: gmane.emacs.devel Subject: Re: Eglot "inlay hints" landed Date: Thu, 23 Feb 2023 15:25:21 +0530 Message-ID: References: <83edqqaf8c.fsf@gnu.org> <2B284D77-97DF-4B3E-89FB-13F0CA93D240@gmail.com> <87356xv65z.fsf_-_@gmail.com> <83fsawriye.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="34726"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.1; emacs 30.0.50 Cc: joaotavora@gmail.com, emacs-devel@gnu.org, dimitri@belopopsky.com, luangruo@yahoo.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 23 12:06:34 2023 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 1pV9Qn-0008md-BL for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Feb 2023 12:06:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pV9QS-0002jQ-Kd; Thu, 23 Feb 2023 06:06:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pV8KZ-0005PX-2M for emacs-devel@gnu.org; Thu, 23 Feb 2023 04:56:03 -0500 Original-Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pV8KX-0000Ev-I0; Thu, 23 Feb 2023 04:56:02 -0500 Original-Received: by mail-pl1-x635.google.com with SMTP id bh1so12152148plb.11; Thu, 23 Feb 2023 01:56:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=4e6iQEXDPvOfN8PbHZzwGCOWOup1zA2XvVGjQLeXuIs=; b=jDxLKsbu+PPPbE31GDc9SCFq0a8vuZDLvaYqvqjETDkBfn0gX5XU05M0icHc06HeZJ Efly3iCG/tBaAn/s67PhKRab/1RXpgXmlW+qNNmfhkH8wYEdCJ0prlhS1voSeV00NoPl WxEpWw8AX+rRQ7EUkPooinNpkgm9sIhZea28Xndt7iVI+WOcDvDQpbyQRoyB1LH3d3g6 5UQoGylWGOUXZSWHZcKCs+7ETeJFKkPglWIHZdgn3RsI6+xmJv9c2HsJJa9StWmORJpj mzrQYvR0B9DweQC0ZWMwojSiC5DWa7s5LzIuo6iysOpXPBoHb0iSPBJbfPkVj4S0rfl5 UIWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4e6iQEXDPvOfN8PbHZzwGCOWOup1zA2XvVGjQLeXuIs=; b=WU+o1JA3GZftgNfZxF2llxRQiTQe8llm8VNKRDKZsDcrePNn3TuaUmLNZEXf22iMqU rvaZ9FjHwvjFqnaoqH+I5SvU8KgbmRoeZzyqzHA0n614Q3FZOu5oGJPIls4qYeRiekXL In01qvijRj6LjImS6SN2XTHh5bTGlQ/zja5ap1MT6oB05D3oK837634g6aSk2kcjtMiF RRR4pU0jAqTV/A/nR5NrjRFVMgNSpZvVyL+SRONRUF5uW53TokDUI2N/+OQ02hPkjAAd hPy/v9YrCn48CJz9YL48N0MuF+HN+HpzIzElryG4UdKmakx9pKe5JgGD21tghjKlP+yv FnSQ== X-Gm-Message-State: AO0yUKX+/o/nOkQihhONm3JXWukAiwYiCNBPqNlBMEcSf39QpteZ8I+G 8HxrXqRbhWj3iavkGOrS/nLUWO1yFvB5dg== X-Google-Smtp-Source: AK7set8t8FIdP2Uv+z2zza1A2UTUAvNyT2mOUdWSp31ripYcdnvmfqMbXD9sNTwjg6QFBIg7U1PA+Q== X-Received: by 2002:a17:903:1108:b0:19c:c184:d208 with SMTP id n8-20020a170903110800b0019cc184d208mr888030plh.66.1677146159720; Thu, 23 Feb 2023 01:55:59 -0800 (PST) Original-Received: from ganymede ([182.75.45.1]) by smtp.gmail.com with ESMTPSA id az8-20020a170902a58800b00198f1de408csm2886228plb.268.2023.02.23.01.55.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 01:55:59 -0800 (PST) In-reply-to: <83fsawriye.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=dalal.chinmay.0101@gmail.com; helo=mail-pl1-x635.google.com X-Spam_score_int: 15 X-Spam_score: 1.5 X-Spam_bar: + X-Spam_report: (1.5 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 23 Feb 2023 06:05:54 -0500 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303698 Archived-At: Eli Zaretskii writes: >> From: Chinmay Dalal >> Cc: emacs-devel@gnu.org, Dimitri Belopopsky , Po Lu >> , Eli Zaretskii >> Date: Thu, 23 Feb 2023 10:59:17 +0530 >> >> > So, by default, inlay hints are only requested for the visible portions >> > of the buffer across windows showing this buffer. This is done by >> > leveraging the 'window-scroll-functions' variable, making for a >> > reasonably complex implementation involving per-window timers. When >> > scrolling a window, it may take a short amount of time for inlay hints >> > to "pop in". >> >> Can it be instead done in such a way that initially (when loading a new >> file) they are requested for the whole buffer, then on subsequent >> changes they are only requested for the visible regions. > > Why would we want that? It will solve this problem: >> > When >> > scrolling a window, it may take a short amount of time for inlay hints >> > to "pop in".