From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Eglot "inlay hints" landed Date: Thu, 23 Feb 2023 20:09:28 +0000 Message-ID: References: <83edqqaf8c.fsf@gnu.org> <2B284D77-97DF-4B3E-89FB-13F0CA93D240@gmail.com> <87356xv65z.fsf_-_@gmail.com> <83fsawriye.fsf@gnu.org> <835ybsr6aa.fsf@gnu.org> <83356wr224.fsf@gnu.org> <87bklktu89.fsf@gmail.com> <83y1oophd0.fsf@gnu.org> <83k008pah3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3687"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , dalal.chinmay.0101@gmail.com, emacs-devel@gnu.org, dimitri@belopopsky.com, luangruo@yahoo.com To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 23 21:11:36 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 1pVHwE-0000jQ-Sq for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Feb 2023 21:11:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVHuS-00009d-0R; Thu, 23 Feb 2023 15:09:44 -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 1pVHuQ-0008VC-Mx for emacs-devel@gnu.org; Thu, 23 Feb 2023 15:09:42 -0500 Original-Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVHuP-0006yx-7U; Thu, 23 Feb 2023 15:09:42 -0500 Original-Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-17235c8dab9so13061134fac.7; Thu, 23 Feb 2023 12:09:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677182979; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sU1AiNvxywewD+QbhmFUYSAvqzZfZNnuhKe2g0p+UUE=; b=UjEdwNlrr/Q81yZQwPW4TjwL4VfgC3qHTXlPsJPKxq/QIwtY0PErsTgr1n5z5pQB5h C5fTh4gwdffL0S/zdSCShh1pu5KkyMhpxjv5AOs6zWCwqZDTaRJMYOlscKFrdXQf8aVh nitaJoY3yMeLQejBPo5GF+4njWSxFKOO6XTZmydLRMsMLyEQBTHh2PFyMKmnvsNh9B0Y lMjUrAx7aeth7TB9s8CR+pG9vmCHdx0cjha0Y/zw/qTOpV3UAY/Ev6RAnM6d98fceKEu 0av7d1Cr62X+ppL9Wd9morSoOj8/euzliMR6mjdr7qGNA0Q3eke1FaqtFtkQEPieLMoX UTTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677182979; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sU1AiNvxywewD+QbhmFUYSAvqzZfZNnuhKe2g0p+UUE=; b=1IzImDDNheV2P9c0p+B7znz7QVJr/HdBWVot2HtS6G2+M8gWdtjq4yNtnCcktwLayA b9nJ4QAArCjLSr+L8MldWn1iCP9rxuUSzWQwew71UqqrZTggEmroOCUKV0UsNy/fe3cA YJmFpuSjfVpw3LZkg0GsMGsqUFlvp3v55NLbYZ6o1y/wa/8r+SEBCkoyPUgyfeqYi7q7 T7eisV7yGdZXah0SgH+KwQCCPoBT8UOcY1jGnOMmNZMY9fyF87Qcm/GGwj1GTu/1aYwd uvxPpAkq/kx92Cdf17W4+ZwXztrzNvRK5WfX71YskUW8bEs00BNPABzR1OzZ7ffKn0Nt 3CIA== X-Gm-Message-State: AO0yUKWQ7ZsrA5yn4O4FOjJitobAT1uj9rX5YiMJxJF9rMvmCPyQsuBM +zTPUcyjGJpaPSuu+Crn4/BhgOoBScekwDWhph8= X-Google-Smtp-Source: AK7set/2OjQ8/7fKdtaBQg1Q5ZDbt2YV9D/K1jh2M1/Kp8Df+jwc04mQCIsSl5oymV5z6bvtYNPzXNxeITLyh8V3c4g= X-Received: by 2002:a05:6870:72d:b0:16e:e8c1:7ec5 with SMTP id ea45-20020a056870072d00b0016ee8c17ec5mr321707oab.8.1677182979763; Thu, 23 Feb 2023 12:09:39 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2001:4860:4864:20::36; envelope-from=joaotavora@gmail.com; helo=mail-oa1-x36.google.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 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303720 Archived-At: On Thu, Feb 23, 2023 at 7:53 PM Stefan Monnier w= rote: > > > See also my last message to Eli, which contains a horrible > > patch that nevertheless does more or less achieve those > > objectives. > > Hmm... that patch looks reasonably sane to me (while writing the > previous message I hesitated to suggest to delay the actual work to > after redisplay so you can coalesce several jit chunks). > > Which part do you find horrible? Mostly the fact that it's operating on a separate timer, but one that is directly correlated to jit-lock-context-time. So the bookkeeping and the coalescing of the small+large jit chunks should be provided by the jit infrastructure instead. And then no extra timer or logic would be needed. Can we make jit-lock.el a :core ELPA package? Jo=C3=A3o