From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Platon Pronko Newsgroups: gmane.emacs.help Subject: Re: Moving point around empty overlays with 'after-text Date: Mon, 10 Apr 2023 13:26:13 +0800 Message-ID: <933824d7-e9b6-fc17-3f67-87ad94bbebd1@gmail.com> References: <9b1654ec-1ac6-4936-860b-2d77dcc4dac7@app.fastmail.com> <28954f0d-205d-b322-4a43-cf4481d1266e@gmail.com> <3a1bb709-d00f-49b8-a2c5-d0ac5b6a82c4@app.fastmail.com> <22b315db-39eb-80b6-1a7c-127f5e703dc1@gmail.com> <2314d321-040a-4466-afdb-4317df7e6584@app.fastmail.com> <01206f38-741a-b75b-4efe-ecf7c70c6d61@gmail.com> <83mt3gl49z.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9665"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 To: Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 10 07:26:38 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1plk34-0002O8-IN for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Apr 2023 07:26:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plk2p-0004MW-5z; Mon, 10 Apr 2023 01:26:23 -0400 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 1plk2n-0004MH-Kb for help-gnu-emacs@gnu.org; Mon, 10 Apr 2023 01:26:21 -0400 Original-Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1plk2l-0002F0-LD; Mon, 10 Apr 2023 01:26:20 -0400 Original-Received: by mail-pl1-x62d.google.com with SMTP id q2so8682258pll.7; Sun, 09 Apr 2023 22:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681104377; x=1683696377; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=5r/SYy14l8yIPXL1rTYzThfLSdhpl816tb3+qWDbc1M=; b=pEF8r2llWFsjzQF0zxJeN2HLz9kNID8xMHXG48+HsgF31/O4zXYY4Bhp+aV+gWGbf3 x37E42qyDj6F0/GSAL83VMFNBU6hKnQ8AhHUs6rIam1xysBxpHBeBlrGD1IGnj9RltoB 4nsYxOZu6JeUzPZ8slTM3DwsrsTYlgu/cK08IARWTTQqgtyRo80NaSWK6DUSm5f3f1Dd P7fvbMrYEOMEvilm3aMpeCkGyc55FMX+jwf/MSaML8bDjfDZJHK8pLWGz44181jRfDmp j1xmVwIH5M218ccQ6b/EI5AUT9tnDtCE7mlf+EXxPEhbAj9fVCHfweBUiDCqUT3pZKEP el+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681104377; x=1683696377; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5r/SYy14l8yIPXL1rTYzThfLSdhpl816tb3+qWDbc1M=; b=RwukoLT+q90568netnnzRm1Y1fqEd/Y5/VCpJkXNTtxVRzfD6JcuzCjE9948eHkQhs rIzQ4YTCo26XGk2dF8XR0WhZM55osriomDxpD7kpdF09UN4pEF2hH0AvEX8vSTdRL2se vDNRlsY21vX/P0M34H5UEXaHA04xigWFyLk/MASLm+frPjvC60BLhimWSFMNbLAAaMGd eh/Di0GwP6i3ks458vCTcMPlKY9vyztiajt7JiEIQEqydgrSZqx1CbZruo6yZNjOXGxZ jb2tcgCE3Ea8BV0xXYrDqrg57MWGl/Nq1w7Q43uIrswOHR3WuH3wNPYLwS1w4hqdpQty 5Hmg== X-Gm-Message-State: AAQBX9e+3uw887/N4/KNeqQDs03u2H32K2RCukb1Lhym9Ff4JQw/i2dD pZnt/mlDbXZtTKS5Tv9CmVQAserCDt6NvQ== X-Google-Smtp-Source: AKy350aahpr2BdVc0rS9x22G+xdBDIRK3AhzNcovqt++gK4Ohe9RElNbLKoa8SAVc+GE+CQpJZntuA== X-Received: by 2002:a17:90b:38cd:b0:246:85ec:d816 with SMTP id nn13-20020a17090b38cd00b0024685ecd816mr6664429pjb.3.1681104377276; Sun, 09 Apr 2023 22:26:17 -0700 (PDT) Original-Received: from [192.170.1.133] ([103.24.106.35]) by smtp.gmail.com with ESMTPSA id a15-20020a17090a70cf00b0023a84911df2sm6501256pjm.7.2023.04.09.22.26.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Apr 2023 22:26:16 -0700 (PDT) Content-Language: en-US In-Reply-To: <83mt3gl49z.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=platon7pronko@gmail.com; helo=mail-pl1-x62d.google.com X-Spam_score_int: -49 X-Spam_score: -5.0 X-Spam_bar: ----- X-Spam_report: (-5.0 / 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, NICE_REPLY_A=-2.888, 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143244 Archived-At: On 2023-04-10 13:01, Eli Zaretskii wrote: >> But inlay hints seem to be a common functionality for any modern IDE nowdays, so it might make sense to support them natively, without making major-mode developers resort >> to horrible hacks like described before. > Well, maybe "someone" should reconsider whether using overlays for > that is a good idea, then? I agree, using overlays as they are currently implemented is definitely not optimal. Are there some better alternatives? > Why not help-echo, for example? This will show the help only for the current symbol, while the way inline hints are used is to show annotations for many symbols on the screen (for example, you have 20 different variable definitions, and IDE shows you inline type hints for each of them).