From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Cecilio Pardo Newsgroups: gmane.emacs.bugs Subject: bug#71909: 30.0.60; Date: Sun, 20 Oct 2024 19:16:03 +0200 Message-ID: References: <865xtnhyn6.fsf@foxmail.com> <868qv2wwyk.fsf@gnu.org> <865xq6wwkc.fsf@gnu.org> <86wmimuz18.fsf@gnu.org> <0056b65b-5cdc-4271-b717-0acc75661c17@imayhem.com> <86o73xvkj8.fsf@gnu.org> <87ldz1h5s4.fsf@gmail.com> <86bjzxv49y.fsf@gnu.org> <877calh1fs.fsf@gmail.com> <87bjzerkeq.fsf@localhost> 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="8237"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Eli Zaretskii , 71909@debbugs.gnu.org To: Ihor Radchenko , Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 20 19:16:57 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 1t2ZXz-0001xa-HU for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Oct 2024 19:16:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2ZXm-0005dy-Qh; Sun, 20 Oct 2024 13:16:42 -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 1t2ZXi-0005dc-Em for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 13:16:38 -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 1t2ZXh-0004fs-Vq for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 13:16:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=CLeNP0hAJgrY8MXHChnKkknHdi2y+BBVtg0NkFe/ERE=; b=l8sg5p0HLP+IyxT+81dnLjXizkHHJ3upMOkrzh892QdqVgFXfQdGB7c6+pbiNKC0wjoN4a/3NDQP9PIFTsl2ND6KYS92ZmK+UsKlXa3RtE53VM+BtRAa/FsraSWoRcUQpNw+SCxRMhHdbET0qOd35dcVLQNhz53pX2bmGpIAoMXoczayn4/5ggViUKHoKJspK5PliyR9kMtuvs7zjxTgwLO1g9v635FXfcS7XjYXxT/x2Z/qu1HkfqrIdrGWlW8D9jgIaJktQ+IOwOJQnSFCPpEyEZXj8ZLpZFmgyoodFolKw79mq8zcDqU4fn03PtmNh9/+ndTk8mNDrGHfv0HSbQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2ZY5-0002hw-Ls for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 13:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Cecilio Pardo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Oct 2024 17:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71909 X-GNU-PR-Package: emacs Original-Received: via spool by 71909-submit@debbugs.gnu.org id=B71909.172944459810361 (code B ref 71909); Sun, 20 Oct 2024 17:17:01 +0000 Original-Received: (at 71909) by debbugs.gnu.org; 20 Oct 2024 17:16:38 +0000 Original-Received: from localhost ([127.0.0.1]:48333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2ZXh-0002h3-Ot for submit@debbugs.gnu.org; Sun, 20 Oct 2024 13:16:38 -0400 Original-Received: from mail.imayhem.com ([82.223.54.191]:35531 helo=zealous-pike.82-223-54-191.plesk.page) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2ZXf-0002gl-Uk for 71909@debbugs.gnu.org; Sun, 20 Oct 2024 13:16:36 -0400 Original-Received: from [192.168.68.105] (111.red-88-21-7.staticip.rima-tde.net [88.21.7.111]) by zealous-pike.82-223-54-191.plesk.page (Postfix) with ESMTPSA id 3741680122; Sun, 20 Oct 2024 17:16:04 +0000 (UTC) Authentication-Results: zealous-pike.82-223-54-191.plesk.page; spf=pass (sender IP is 88.21.7.111) smtp.mailfrom=cpardo@imayhem.com smtp.helo=[192.168.68.105] Received-SPF: pass (zealous-pike.82-223-54-191.plesk.page: connection is authenticated) Content-Language: es-ES In-Reply-To: <87bjzerkeq.fsf@localhost> 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:293990 Archived-At: On 20/10/2024 15:09, Ihor Radchenko wrote: > Visuwesh writes: > >>>> where text/html is the most useful. >>> >>> no, the most useful is Rich Text, but Emacs cannot yet yank that. >> >> Possibly. But we could at least "hijack" shr to convert text/html to >> string with text properties on it, or make it insert markup elements. >> I've done the later as a personal hack and it works fairly well. > > May we utilize tree-sitter? > Having an AST, it should not be too hard to convert it into something > Emacs can understand. I had planned to try to use UnRTF for this. https://www.gnu.org/software/unrtf/ It's a GNU package, and despite being old and (I think) unmaintained, it is used by many wrappers for different languages, so it probably works well, though I haven't tested it myself yet. Has it been already tried for emacs? If not, which approach (tree-sitter, unrtf) would be more promising?