From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#69647: [PATCH 1/2] Delete trailing whitespace when formatting LSP documentation Date: Fri, 8 Mar 2024 19:08:37 -0800 Message-ID: <97befab2-f39a-9aac-41c6-cf1d4964aad8@gmail.com> References: <87cys4enc4.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------vE3UTwUvWL1hLwWMlNpXcyUk" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34899"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philip Kaludercic , 69647@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 09 04:12:05 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 1rin80-0008uT-5G for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Mar 2024 04:12:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rin6j-0000ug-I4; Fri, 08 Mar 2024 22:10:45 -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 1rin6W-0000tL-FK for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2024 22:10:34 -0500 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 1rin6U-00047Y-DB for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2024 22:10:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rin70-0002XU-EV for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2024 22:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Mar 2024 03:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69647 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 69647-submit@debbugs.gnu.org id=B69647.17099538219708 (code B ref 69647); Sat, 09 Mar 2024 03:11:02 +0000 Original-Received: (at 69647) by debbugs.gnu.org; 9 Mar 2024 03:10:21 +0000 Original-Received: from localhost ([127.0.0.1]:60007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rin6L-0002WW-5O for submit@debbugs.gnu.org; Fri, 08 Mar 2024 22:10:21 -0500 Original-Received: from mail-pl1-f171.google.com ([209.85.214.171]:45383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rin6I-0002WA-6k for 69647@debbugs.gnu.org; Fri, 08 Mar 2024 22:10:19 -0500 Original-Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1dd6412da28so13438545ad.3 for <69647@debbugs.gnu.org>; Fri, 08 Mar 2024 19:09:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709953720; x=1710558520; darn=debbugs.gnu.org; h=in-reply-to:references:cc:to:from:content-language:subject :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=9UP7M8TW0U08I4bbg+coFsZiE8gHjSA9kuV7nwBoTq4=; b=W4BwH9biGztQ+fRB5/VUdvhsNr3/vxVeN+r0q54f9PAwHwLVzvuNSMzPnv25XqOCb+ q3DHbQ999nzECpjfwgopO8nDnYBaj278lYj6L1tYB1rxoDdTxqrU68qTrZA2ualeUMMx jHJv+4iSNr42p+YB/SgT1iPTf+1AKYf2GOFnCjMy2pEFda/HexjqG/1rfH56dcsor69s rBIeGrD22EYpDCW30cEzL7yNlmu4MHHEtngZWidfP+HCTYI2tHYwMOYOrdxhX90Rj5IP +ZyqPbhYS1WzV2xuIa2OfJs5jbAvXwZvX+2hYuq3iMHMmaJ8fYv3pKYgdGkuivErSypa RG6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709953720; x=1710558520; h=in-reply-to:references:cc:to:from:content-language:subject :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=9UP7M8TW0U08I4bbg+coFsZiE8gHjSA9kuV7nwBoTq4=; b=hAv70jE5/i88SM51uFWFgIQdIaGAxVuj+M09GcdtxaSKUSv3M05zzCBhlVRyaofxi7 XiQ2mV5HQqXNgMB0HttbBqvJbatPePPgPSdU6qlN+otUyc5HF65vDzxDWJ/BOm8irvoR 7UVMhvx8+wyKqFhvO3vPpIGU2ZZTwW2Svr3m8JlLRLS1MZ7m34x7sYVex2koxR0Qex1h 1+tsmygQODCmxlemlt+qO2fPcsD3JZFtwe0syn6/qsa0g9OigQx8+zGzPLV9y7gHz9KP n2W2RMv7Y5dwmi5pV/cmAnLasGl/TM7dWfxFa2M+Bzulyho81e5f73+NervOgt21pdrV 9S2w== X-Forwarded-Encrypted: i=1; AJvYcCUJ29HTgt7fiv9SDLYZRyOK9IDb2Qddhrod0rk1IvKl/y3/beJTKVUeyy92vjVO8Yyd1LnsrkQ4cbXXytxoJpMNv9xzveM= X-Gm-Message-State: AOJu0YyqSg0HNvKCRcTBI5RDmXzl8w3Tb0HcGDT21m3s1GE1C5A+g2GA Y3JmIEvOezs8w/vPFCyGx3Z+31KaW4NMnX2GNXWyIHXgWuJxgbYv X-Google-Smtp-Source: AGHT+IGE6iYTk3VVGCzsebRHLMspYHLdPKsSwXrT3gS34U8fxbOzdxStgEebnNsI6Q3JqyLnbdY2qg== X-Received: by 2002:a17:902:e54c:b0:1dd:76de:e42c with SMTP id n12-20020a170902e54c00b001dd76dee42cmr516085plf.15.1709953719644; Fri, 08 Mar 2024 19:08:39 -0800 (PST) Original-Received: from [192.168.1.2] (076-168-148-233.res.spectrum.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id b10-20020a170902650a00b001db6da30331sm365890plk.86.2024.03.08.19.08.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Mar 2024 19:08:38 -0800 (PST) Content-Language: en-US In-Reply-To: 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:281283 Archived-At: This is a multi-part message in MIME format. --------------vE3UTwUvWL1hLwWMlNpXcyUk Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/8/2024 1:36 PM, Jim Porter wrote: > However, as a partial fix, you could probably just set > 'markdown-line-break-face' to be invisible when > 'markdown-hide-markup[-in-view-modes]' is non-nil somewhere in Markdown > mode. I think that would be easy, although I tried to do this and the > obvious method didn't work, so who knows? I did a big more digging and came up with this patch to markdown-mode, implementing the partial fix I described above. Does this work for you, Philip? If so, I'll submit it to the markdown-mode maintainers. --------------vE3UTwUvWL1hLwWMlNpXcyUk Content-Type: text/plain; charset=UTF-8; name="0001-Hide-trailing-whitespace-when-hiding-markup.patch" Content-Disposition: attachment; filename="0001-Hide-trailing-whitespace-when-hiding-markup.patch" Content-Transfer-Encoding: base64 RnJvbSAxNTBlMTRjNWE0OGI4ZTM4ZGM3MzEzMGQ0Y2IwMWRkZjBhMWFmYjVlIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKaW0gUG9ydGVyIDxqcG9ydGVyYnVnc0BnbWFpbC5j b20+CkRhdGU6IEZyaSwgOCBNYXIgMjAyNCAxOTowNTowOCAtMDgwMApTdWJqZWN0OiBbUEFU Q0hdIEhpZGUgdHJhaWxpbmcgd2hpdGVzcGFjZSB3aGVuIGhpZGluZyBtYXJrdXAKClNlZSA8 aHR0cHM6Ly9kZWJidWdzLmdudS5vcmcvY2dpL2J1Z3JlcG9ydC5jZ2k/YnVnPTY5NjQ3Pi4K LS0tCiBDSEFOR0VTLm1kICAgICAgICAgICAgIHwgIDEgKwogbWFya2Rvd24tbW9kZS5lbCAg ICAgICB8ICA2ICsrKysrLQogdGVzdHMvbWFya2Rvd24tdGVzdC5lbCB8IDEyICsrKysrKysr KysrKwogMyBmaWxlcyBjaGFuZ2VkLCAxOCBpbnNlcnRpb25zKCspLCAxIGRlbGV0aW9uKC0p CgpkaWZmIC0tZ2l0IGEvQ0hBTkdFUy5tZCBiL0NIQU5HRVMubWQKaW5kZXggMWU0NjA4ZC4u ZjllNjk0ZSAxMDA2NDQKLS0tIGEvQ0hBTkdFUy5tZAorKysgYi9DSEFOR0VTLm1kCkBAIC0x MSw2ICsxMSw3IEBACiAgICAgLSBBZGQgZnVuY3Rpb25zIHRvIG1vdmUgdG8gdGhlIGJlZ2lu bmluZyBhbmQgZW5kIG9mIGxpbmVzCiAgICAgICAoYG1hcmtkb3duLWJlZ2lubmluZy1vZi1s aW5lYCBhbmQgYG1hcmtkb3duLWVuZC1vZi1saW5lYCksIGFuZCB0aGUKICAgICAgIHZhcmlh YmxlIGBtYXJrZG93bi1zcGVjaWFsLWN0cmwtYS9lYCwgbGlrZ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