From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.devel Subject: Re: [NonGNU ELPA] New package: Denote-Refs Date: Wed, 21 Dec 2022 02:17:27 +0600 Message-ID: <87r0wtn82w.fsf@disroot.org> References: <87a63jl5i2.fsf@disroot.org> <87ili75o0p.fsf@posteo.net> <87a63jp92j.fsf@disroot.org> <878rj35hh0.fsf@posteo.net> <87cz8enmcj.fsf@disroot.org> <87r0wudnfl.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27084"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Developer List To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 20 21:20:44 2022 Return-path: Envelope-to: ged-emacs-devel@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 1p7j6S-0006s0-0N for ged-emacs-devel@m.gmane-mx.org; Tue, 20 Dec 2022 21:20:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7j60-0000JX-Ix; Tue, 20 Dec 2022 15:20:16 -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 1p7j5v-0000Hh-0D for emacs-devel@gnu.org; Tue, 20 Dec 2022 15:20:15 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7j5s-000476-Le for emacs-devel@gnu.org; Tue, 20 Dec 2022 15:20:10 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2AB00400E4; Tue, 20 Dec 2022 21:20:05 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ksPdgV8JMFZC; Tue, 20 Dec 2022 21:20:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1671567603; bh=/Al5q2o1IR4azxcYV7P+kbxBqmavtsufZ6nWijAYHIg=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=JnijD8wRin/+R8TJ/eFhGibgkfEhilMyklnclHgMdwtXVrwCCmJ+I3J6zkXClBsfv ABJPg7vQpE/C4hLWCN27KIlq6faS7vZoj6TN/JK97w+zNYlNz4Z/oj3QwwReGFYGXg 3Ax96QGOpFy8UNNubMr7gZp21MM1ihRXQ89UYDmLLaqqNC1gRlVytlNQoOTdc2aMlU XSzAbTvS7WaxlA916C0BuO2W3Ti3fVb6Q4R2shU+7DJpUMmoMDGlxqqh88MmUR44Pl sMTaIArOSyzT2ML6oVWQ3pPvs74bvsfK8btNOYx0kOA1wMNNzUxOWL9I2nj5q39odg y+dsKgPJD1OJQ== In-Reply-To: <87r0wudnfl.fsf@posteo.net> (Philip Kaludercic's message of "Tue, 20 Dec 2022 16:55:58 +0000") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301705 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Philip Kaludercic writes: > Akib Azmain Turja writes: > >> Philip Kaludercic writes: >> >> [...] >> >>> I'll go ahead and add this to NonGNU ELPA. >> >> Thanks! Got the mail! >> >> Anyway, do you think it is a good idea to write some text temporarily in >> a buffer? My experience suggests no, but if I use overlays then I can't >> select and press RET on the links, and I can't scroll if the list is too >> long. WDYT? > > I am afraid I am not certain what you are talking about. Can you point > me to the concrete use-case? Here is a simplified representation: Original file: =2D-8<---------------cut here---------------start------------->8--- #+title: Foo #+identifier: 12121212T121212 =2D-8<---------------cut here---------------end--------------->8--- After 'denote-refs-mode' enabled: =2D-8<---------------cut here---------------start------------->8--- #+title: Foo #+identifier: 12121212T121212 # 1 link # 12121212T111111--bar__baz.org # 1 backlink # 12121212T131313--frob__nil.org =2D-8<---------------cut here---------------end--------------->8--- While saving (I don't know what happens while auto-saving :( ), reverted: =2D-8<---------------cut here---------------start------------->8--- #+title: Foo #+identifier: 12121212T121212 =2D-8<---------------cut here---------------end--------------->8--- After saving, again: =2D-8<---------------cut here---------------start------------->8--- #+title: Foo #+identifier: 12121212T121212 # 1 link # 12121212T111111--bar__baz.org # 1 backlink # 12121212T131313--frob__nil.org =2D-8<---------------cut here---------------end--------------->8--- Inside 'xref--collect-matches', reverted, otherwise xref doesn't match correctly, since the file and buffer lines don't really match. After 'xref--collect-matches', again the text. I'll need more workaround than the number of feature it provides. So, Do you think it is a good idea to write some text temporarily in a buffer like this? My experience suggests no, but if I use overlays then I can't select a link (not really impossible, but complicated) and press RET on the links, and I can't scroll if the list is too long. =2D-=20 Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption." --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmOiGFgACgkQVTX89U2I YWsZgxAArN1xJ6vJkVVomCs/wH9rVydXpxKVhyWQA59SLws9ZlDiBhUjzG2BGSOa o8OyQjJPZSAKkKsidEEGRD7zZxnLGdj+0+sKuPqgIFFk12n+35Kuk86XQbbok6Ih K5gsZdsX9S2YWoVJrWtqXglLm43Ic6EGghba6qwlke6886CY/WQ3R5iLwfOLVoAn 3+bytpzw3TxjC49DzZfFF8qn90NhblJehcsHcvb29bmz+bCqckYan3P2O5ORqeL4 ZwSRwrNCN8j5YEEGjpERB+hx9xYxveEwBY/QxnwZfopmffLFUAcB+0hMMbqGKHUE irML1uWRod9tapOAskUIa7DzH53Ow3Ffilx0vlN9naACXExT7ruO0SDo5lVAyQnD byi1BuY/vT6rr0cDbP+An/pqZ0T6xJNkcAGGTMxkHyNPXXgGnVGYBfqBZbAkueit JXwTipIf3acVI/Us+9KxgexWQRORB6n+Jj6c/1Jj3xWShVfNzLe1HZkGgcVWBvc8 W+gQ8T1px/g0FDZa9T50TPB3n8TNQB+u7CIM+RWu8yKIrLYoE+B2SzpToDd2nj3/ eas+9p4p9RGwCUbsOQ//PwbXsWboSgMPk6ZXU0eZzo9jmlC4A2LIAzin+CQOeicf 6CKB5YIknrPkBmUps6BAo90ghEB+owSjZQ/5DqCYfzoB+sENLbE= =Xi4V -----END PGP SIGNATURE----- --=-=-=--