unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Akib Azmain Turja <akib@disroot.org>
To: Philip Kaludercic <philipk@posteo.net>
Cc: Emacs Developer List <emacs-devel@gnu.org>
Subject: Re: [NonGNU ELPA] New package: Denote-Refs
Date: Wed, 21 Dec 2022 02:17:27 +0600	[thread overview]
Message-ID: <87r0wtn82w.fsf@disroot.org> (raw)
In-Reply-To: <87r0wudnfl.fsf@posteo.net> (Philip Kaludercic's message of "Tue,  20 Dec 2022 16:55:58 +0000")

[-- Attachment #1: Type: text/plain, Size: 2472 bytes --]

Philip Kaludercic <philipk@posteo.net> writes:

> Akib Azmain Turja <akib@disroot.org> writes:
>
>> Philip Kaludercic <philipk@posteo.net> 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:

--8<---------------cut here---------------start------------->8---
#+title: Foo
#+identifier: 12121212T121212

--8<---------------cut here---------------end--------------->8---

After 'denote-refs-mode' enabled:

--8<---------------cut here---------------start------------->8---
#+title: Foo
#+identifier: 12121212T121212

# 1 link
#   12121212T111111--bar__baz.org
# 1 backlink
#   12121212T131313--frob__nil.org

--8<---------------cut here---------------end--------------->8---

While saving (I don't know what happens while auto-saving :( ),
reverted:

--8<---------------cut here---------------start------------->8---
#+title: Foo
#+identifier: 12121212T121212

--8<---------------cut here---------------end--------------->8---

After saving, again:

--8<---------------cut here---------------start------------->8---
#+title: Foo
#+identifier: 12121212T121212

# 1 link
#   12121212T111111--bar__baz.org
# 1 backlink
#   12121212T131313--frob__nil.org

--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.

-- 
Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5
Fediverse: akib@hostux.social
Codeberg: akib
emailselfdefense.fsf.org | "Nothing can be secure without encryption."

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2022-12-20 20:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-19 16:31 [NonGNU ELPA] New package: Denote-Refs Akib Azmain Turja
2022-12-19 16:58 ` Philip Kaludercic
2022-12-19 18:00   ` Akib Azmain Turja
2022-12-19 19:19     ` Philip Kaludercic
2022-12-19 20:20       ` [External] : " Drew Adams
2022-12-19 21:08         ` Philip Kaludercic
2022-12-19 21:51           ` Drew Adams
2022-12-20 16:48             ` Philip Kaludercic
2022-12-20 17:39               ` Drew Adams
2022-12-21  0:05                 ` Philip Kaludercic
2022-12-21  5:22                   ` Drew Adams
2022-12-21  9:07                     ` Philip Kaludercic
2022-12-21 15:50                       ` Drew Adams
2022-12-20 15:09       ` Akib Azmain Turja
2022-12-20 16:55         ` Philip Kaludercic
2022-12-20 20:17           ` Akib Azmain Turja [this message]
2022-12-20 22:02             ` Stefan Monnier
2022-12-21 16:03               ` Akib Azmain Turja

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r0wtn82w.fsf@disroot.org \
    --to=akib@disroot.org \
    --cc=emacs-devel@gnu.org \
    --cc=philipk@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).