From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wei-Ting Lin Newsgroups: gmane.emacs.bugs Subject: bug#61072: How to change the length of the separation lines in eldoc, used by eglot? Date: Sat, 18 Feb 2023 10:08:22 -0500 Message-ID: References: <871qmyn51d.fsf@betli.tmit.bme.hu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b4028805f4facd6e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16586"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61072@debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: Felician Nemeth Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 18 16:09:27 2023 Return-path: Envelope-to: geb-bug-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 1pTOq7-0004Dk-O8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Feb 2023 16:09:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTOpl-0005Bx-JJ; Sat, 18 Feb 2023 10:09:05 -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 1pTOpi-0005BY-B2 for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2023 10:09:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTOpi-0003Gs-2L for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2023 10:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTOph-00015O-Pg for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2023 10:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Wei-Ting Lin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Feb 2023 15:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61072 X-GNU-PR-Package: emacs Original-Received: via spool by 61072-submit@debbugs.gnu.org id=B61072.16767329224147 (code B ref 61072); Sat, 18 Feb 2023 15:09:01 +0000 Original-Received: (at 61072) by debbugs.gnu.org; 18 Feb 2023 15:08:42 +0000 Original-Received: from localhost ([127.0.0.1]:44731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTOpN-00014n-HU for submit@debbugs.gnu.org; Sat, 18 Feb 2023 10:08:41 -0500 Original-Received: from mail-vs1-f50.google.com ([209.85.217.50]:34525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTOpL-00014a-ID for 61072@debbugs.gnu.org; Sat, 18 Feb 2023 10:08:40 -0500 Original-Received: by mail-vs1-f50.google.com with SMTP id k20so525168vst.1 for <61072@debbugs.gnu.org>; Sat, 18 Feb 2023 07:08:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1676732914; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TolVIYzpk2tNk0Shq8/okKlKdWgO4zTE0F73xUexsl4=; b=qiKR74oA34l46grVJjmXB+ue9xT59Zu1oZUlgEFG0CLL1fqLWwvcKb/t3aqFdO+Jrw zUYOWqo34vVuVLirJWXP44zOLfA0OwrjRcM2kxYelMBBSAXfNZbaHOyIKsuDV70kdHVw /X17IMdKerwo1h/+fXcfMabNuAPugZ7GCnTM2XRo/utreiLbDkmP/4eXao9gnpLxoPkc rbhWH+Bo913Dc5WR1eFS+KJBQ2q9hbvzAOdB0tcWISvuD5QPUgB2YmmBnRX2B2v4HXBv L2zokdGe5a6Mahi4Oqf3jaP0oArndjMloigwodrODyD0xBmxjRZRu2xLxqrBh4XkFpbs KkrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1676732914; h=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=TolVIYzpk2tNk0Shq8/okKlKdWgO4zTE0F73xUexsl4=; b=5m95Xe3R6rl2DkStZWHjOyQWZHy1McACtPUFi9N1xapR7t1u60koL5zhN0UfVhDU+1 mc+GCXHJ61Uc5vh1ER7IAe0DGz+HZjPV96Zn6ZTJINJtlvhS1Sxdbsl+ezc+lMps0QZl e1M3MMpHumOZ2gxd8P1l8s7qguTb17A0haYmtJnZ1InDwLUMHfixP41vZC5q1GheY7vr +3iw6G1/ngiIY+ZtzaKEggpm2HFn/zTEnD9wJiEb9tldtDC0y3HGXj2lTjSge1E9S9ya 5KU5OnTI83fzg4YEMLbh4mKT0GbC8kXIUbtyEGjz18ZuHwkg4/yJfTl6bsdSyw+G/mie 8Eaw== X-Gm-Message-State: AO0yUKXzy+6EmiDR2uqJMJDhoWkMic5JdsJ6OlQBwbXxQO24td2bgKuo baU1m3m7cScMcCvmoUgPRPTo5A9C6PWeqt4lHLs= X-Google-Smtp-Source: AK7set8/w4/UtUfUy+WBU0zhcsVCMgeHaGeHzjlRKoH0eywdqpTtrSJY6o/QSEsx3BMUOeIp08TgIePukIA6+7PhPyI= X-Received: by 2002:a67:ce88:0:b0:412:4f2c:3147 with SMTP id c8-20020a67ce88000000b004124f2c3147mr348204vse.69.1676732913679; Sat, 18 Feb 2023 07:08:33 -0800 (PST) In-Reply-To: <871qmyn51d.fsf@betli.tmit.bme.hu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255968 Archived-At: --000000000000b4028805f4facd6e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry for the late reply. I think the following is the relevant part, when the cursor is on function "get_GF_cont_nonint". [server-reply] (id:1144) Sat Feb 18 10:03:45 2023: (:id 1144 :jsonrpc "2.0" :result (:contents (:kind "markdown" :value "### instance-method `get_GF_cont_nonint` \n\n---\n=E2=86=92 `double` \nParameters: \n- `double tau`\n- `const std::vector & new_tau`\n\n---\n```cpp\n// In AndersonModel\npublic: double get_GF_cont_nonint(double tau, const std::vector &new_tau)\n```") :range (:end (:character 42 :line 166) :start (:character 24 :line 166)))) [server-reply] (id:1145) Sat Feb 18 10:03:46 2023: (:id 1145 :jsonrpc "2.0" :result [(:kind 1 :range (:end (:character 42 :line 166) :start (:character 24 :line 166))) (:kind 1 :range (:end (:character 37 :line 185) :start (:character 19 :line 185)))]) Wei-Ting On Thu, Feb 9, 2023 at 12:05 PM Felician Nemeth wrote: > Wei-Ting Lin writes: > > > I prefer to have the information shown near the cursor, when it hovers > on a > > symbol. I use eldoc-doc for this purpose, and the result is like this > > . > > > > As seen in the screenshot, the line is too long for the child frame and > > gets wrapped. How can I change the length of the line? > > Can you show what did the LSP server send to Eglot? The relevant > message should be near at the end of the events buffer, which you can > see by M-x eglot-events-buffer RET right after eldoc displays the > documentation. > > Thanks. > > > ------------------------------------------------------------------- > > > > This issue was posted in > > https://github.com/joaotavora/eglot/discussions/1157 originally. > --000000000000b4028805f4facd6e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry for the late reply. I think the following is th= e relevant part, when the cursor is on function "get_GF_cont_nonint&qu= ot;.

[server-reply] (id:1144) Sat Feb 18 10:03:45 = 2023:
(:id 1144 :jsonrpc "2.0" :result
=C2=A0 =C2=A0 =C2=A0= (:contents
=C2=A0 =C2=A0 =C2=A0 (:kind "markdown" :value "= ;### instance-method `get_GF_cont_nonint` =C2=A0\n\n---\n=E2=86=92 `double`= =C2=A0\nParameters: =C2=A0\n- `double tau`\n- `const std::vector<double= > & new_tau`\n\n---\n```cpp\n// In AndersonModel\npublic: double get= _GF_cont_nonint(double tau, const std::vector<double> &new_tau)\n= ```")
=C2=A0 =C2=A0 =C2=A0 :range
=C2=A0 =C2=A0 =C2=A0 (:end
= =C2=A0 =C2=A0 =C2=A0 =C2=A0(:character 42 :line 166)
=C2=A0 =C2=A0 =C2= =A0 =C2=A0:start
=C2=A0 =C2=A0 =C2=A0 =C2=A0(:character 24 :line 166))))=
[server-reply] (id:1145) Sat Feb 18 10:03:46 2023:
(:id 1145 :jsonrp= c "2.0" :result
=C2=A0 =C2=A0 =C2=A0[(:kind 1 :range
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(:end
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 (:character 42 :line 166)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 :start
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 (:character 24 :line 166)))
=C2=A0 =C2=A0 =C2=A0 (:kind 1 = :range
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(:end
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (:character 37 :line 185)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :start
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (:character 19 :line 185)))])
Wei-Ting

On Thu, Feb 9, 2023 at 12:05 PM Felician Neme= th <felician.nemeth@gmail.c= om> wrote:
linwaytin@gmail.com> writes:

> I prefer to have the information shown near the cursor, when it hovers= on a
> symbol. I use eldoc-doc for this purpose, and the result is like this<= br> > <https://i.imgur.com/8O0iEIJ.png>.
>
> As seen in the screenshot, the line is too long for the child frame an= d
> gets wrapped. How can I change the length of the line?

Can you show what did the LSP server send to Eglot?=C2=A0 The relevant
message should be near at the end of the events buffer, which you can
see by M-x eglot-events-buffer RET right after eldoc displays the
documentation.

Thanks.

> ------------------------------------------------------------------- >
> This issue was posted in
> https://github.com/joaotavora/eglot/discu= ssions/1157 originally.
--000000000000b4028805f4facd6e--