From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Troy Brown Newsgroups: gmane.emacs.bugs Subject: bug#72597: 30.0.60; Eglot: MarkedString with embedded Carriage Return Date: Mon, 12 Aug 2024 21:16:40 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14207"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: 72597@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 13 03:18:04 2024 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 1sdgAl-0003Vk-74 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Aug 2024 03:18:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdgAJ-0005DQ-TX; Mon, 12 Aug 2024 21:17:36 -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 1sdgAF-00056c-2G for bug-gnu-emacs@gnu.org; Mon, 12 Aug 2024 21:17:31 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sdgAE-0004V8-PA for bug-gnu-emacs@gnu.org; Mon, 12 Aug 2024 21:17:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:MIME-Version:To:Subject; bh=ZxoNvcv+MJeaqaChXRPZ1Ic+Qsw9RX1itRfksBY1nxk=; b=RpJicRnDG6v5/2cBZZH7fXTWv4UM2jESVhiZIi+kHjYqS/mc9840vbJZIzwxWDasZqbYwTQ/IkxzY3ZXWLPaSR3ZeuIENzi8AhOorLMj++4VR2sEGTFchQuNPCnq0U2xNbKvWQ0cV7zGrvdmZUS6xojonpAusOg1oZ3RRI51c58rakRCYIGXal5V1QoK9q6Ivk0s1hFzWOlW9NtNq6i9eNucWZsxxzZq1nirv7M446VaN79gFpi4eeQkQbDsaaWCKRFq1PW5zz+qaTUwrBuBAutoS0TxqdMVOHmAnQe2ffoy7IXlYryF1Vb72qmIZy0WhNg/OP++1IK4bv5abNGybg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sdgAk-0003NN-Dh for bug-gnu-emacs@gnu.org; Mon, 12 Aug 2024 21:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Troy Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Aug 2024 01:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72597 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172351186112930 (code B ref -1); Tue, 13 Aug 2024 01:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Aug 2024 01:17:41 +0000 Original-Received: from localhost ([127.0.0.1]:43948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdgAP-0003MU-CU for submit@debbugs.gnu.org; Mon, 12 Aug 2024 21:17:41 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdgAJ-0003MG-NY for submit@debbugs.gnu.org; Mon, 12 Aug 2024 21:17:40 -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 1sdg9k-0004xA-Th for bug-gnu-emacs@gnu.org; Mon, 12 Aug 2024 21:17:02 -0400 Original-Received: from mail-ed1-f54.google.com ([209.85.208.54]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sdg9h-0004SX-VO for bug-gnu-emacs@gnu.org; Mon, 12 Aug 2024 21:17:00 -0400 Original-Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5b9d48d1456so1303779a12.1 for ; Mon, 12 Aug 2024 18:16:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723511814; x=1724116614; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZxoNvcv+MJeaqaChXRPZ1Ic+Qsw9RX1itRfksBY1nxk=; b=KO9VX0NezqHA8yfhhXh3Go/XX9dqMRV6W33ZQ6gqv9VhnsC4NawYDdLcvl4cDpEjLU 5sB9maR/MkjrZhaEs20Ow9mnO72vHVtH8kCQ6yuXhGt1XNF9tcNSJ5e95/RGdZ2OOlqc nr2iYyGZKp0a/jH4c2Jrj8RgKWsnZvtbgXNZiTJtYqyNskEBiywU4XtOZKABY0pCxKa/ Uv+cpbmxA5KTSuojz1oqbD4mCImehZkkQlnmJ/krkrl00eCvj6A8RwhxXcfD9fb/IJlA BUStLDqMiKEPDZ8nIBLAp4sLhyitoAS8G1dJY4XcG390LXsgRNQjOIttNtcDHGo8qDFX Vmuw== X-Gm-Message-State: AOJu0YxsudToXa3UlATCKA1usSwgds8z0/b71OysnIjBQSH+7zuvhqg5 6NZIp6aF2fqQIi7owhX/o4Q/UJaToA/VF1ZAVzYEU9NJuiZxTp4boFdc11ru X-Google-Smtp-Source: AGHT+IGUmCTBYVQlhdwsQC03UNPWngL4lE4ERQXX3nRe3CwoiUfzPoIwSBQQZ9vXttbshBwgeUk+AQ== X-Received: by 2002:a05:6402:51ca:b0:5b4:ec9d:d66a with SMTP id 4fb4d7f45d1cf-5bd461c9a9dmr1141960a12.15.1723511813029; Mon, 12 Aug 2024 18:16:53 -0700 (PDT) Original-Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com. [209.85.218.44]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bd1a5e1109sm2697241a12.68.2024.08.12.18.16.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Aug 2024 18:16:52 -0700 (PDT) Original-Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a7a94478a4eso958159266b.1 for ; Mon, 12 Aug 2024 18:16:52 -0700 (PDT) X-Received: by 2002:a17:907:6ea0:b0:a7a:b26d:fb5 with SMTP id a640c23a62f3a-a80f0b18678mr128564666b.19.1723511812253; Mon, 12 Aug 2024 18:16:52 -0700 (PDT) X-Gmail-Original-Message-ID: Received-SPF: pass client-ip=209.85.208.54; envelope-from=troy.s.brown@gmail.com; helo=mail-ed1-f54.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:290062 Archived-At: With the LSP language server I'm using, it's possible the language server will return a textDocument/hover response MarkedString containing "\r" (i.e., carriage return) for the line terminator when the content contains multiple lines. An example of a typical response is as follows: [jsonrpc] e[19:19:44.606] <-- textDocument/hover[38] {"jsonrpc":"2.0","id":38,"result":{"contents":[{"language":"gpr","value":"type Library_Kinds is (\"relocatable\", \"static\", \"static-pic\");\rLibrary_Kind : Library_Kinds := \"static\";"},"gtkada_shared.gpr:37:04"]}} The font locking is performed correctly (as the highlighting looks fine), but when the content is placed in the *eldoc* buffer, content surrounding the carriage return is not placed on separate lines. Instead it remains on the same line and "^M" is displayed in the buffer. This is what I expect: type Library_Kinds is ("relocatable", "static", "static-pic"); Library_Kind : Library_Kinds := "static"; gtkada_shared.gpr:37:04 This is what I'm observing (single line with embedded ^M): type Library_Kinds is ("relocatable", "static", "static-pic");^MLibrary_Kind : Library_Kinds := "static"; gtkada_shared.gpr:37:04