From: Philip Kaludercic <philipk@posteo.net>
To: Akib Azmain Turja <akib@disroot.org>
Cc: Emacs Developer List <emacs-devel@gnu.org>
Subject: Re: [NonGNU ELPA] New package: Denote-Refs
Date: Mon, 19 Dec 2022 19:19:39 +0000 [thread overview]
Message-ID: <878rj35hh0.fsf@posteo.net> (raw)
In-Reply-To: <87a63jp92j.fsf@disroot.org> (Akib Azmain Turja's message of "Tue, 20 Dec 2022 00:00:52 +0600")
Akib Azmain Turja <akib@disroot.org> writes:
> Philip Kaludercic <philipk@posteo.net> writes:
>
>> Akib Azmain Turja <akib@disroot.org> writes:
>>
>>> Denote-Refs shows links and backlinks inline in a Denote note buffer,
>>> just below the front matter of the note.
>>>
>>> Here is the patch:
>>>
>>> From f4145634df9eb45df7d526871c55326bfafb3785 Mon Sep 17 00:00:00 2001
>>> From: Akib Azmain Turja <akib@disroot.org>
>>> Date: Mon, 19 Dec 2022 22:22:46 +0600
>>> Subject: [PATCH] * elpa-packages (denote-refs): New package.
>>>
>>> ---
>>> elpa-packages | 2 ++
>>> 1 file changed, 2 insertions(+)
>>>
>>> diff --git a/elpa-packages b/elpa-packages
>>> index 9dde563..1d26a5a 100644
>>> --- a/elpa-packages
>>> +++ b/elpa-packages
>>> @@ -108,6 +108,8 @@
>>> :ignored-files ("LICENSE" "test" "Cask" "Makefile")
>>> :news "CHANGELOG.md")
>>>
>>> + (denote-refs :url "https://codeberg.org/akib/emacs-denote-refs")
>>> +
>>> (devhelp :url "https://codeberg.org/akib/emacs-devhelp")
>>>
>>> (diff-ansi :url "https://codeberg.org/ideasman42/emacs-diff-ansi"
>>> --
>>> 2.37.1
>>
>> Here are a few comments:
>>
>> diff -u /tmp/denote-refs.el.1 /tmp/denote-refs.el
>> --- /tmp/denote-refs.el.1 2022-12-19 19:38:55.000000000 +0100
>> +++ /tmp/denote-refs.el 2022-12-19 17:57:48.712068577 +0100
>
> Wow, nanosecond precision. :O
I made the mistake of downloading the file via wget, so I had to
download it once more (.1) to create the diff.
>>
>> ;; This file is not part of GNU Emacs.
>> @@ -36,12 +36,11 @@
>> (require 'denote)
>> (require 'subr-x)
>>
>> -(defgroup denote-refs nil
>> +(defgroup denote-refs '()
>
> Why?
It is just a personal preference of mine, since the argument MEMBER is
an alist. I think that '() makes it more explicit that this is a list,
as opposed to nil which might also be taken to be a truth value. I
guess () would do as well...
>> @@ -62,7 +61,8 @@
>>
>> Available sections are `links' and `backlinks', which shows the list
>> of linked file and the list of backlinks respectively."
>> - :type '(set (const :tag "Links" links)
>> + :type '(set :greedy t
>> + (const :tag "Links" links)
>> (const :tag "Backlinks" backlinks)))
>
> What does ':greedy t' mean?
It ensures that the type matches even if the order is changed (which
arguably should always be the case for a set).
> And anyway, I'm going to change that with 'repeat', since
> '(links backlinks)', '(backlinks links)' and '(links backlinks links)'
> all have meanings now.
>
> New type: '(repeat (choice (const :tag "Links" links)
> (const :tag "Backlinks" backlinks)))
In that case this is preferable.
> Again the space-tab problem. Added .dir-locals.el.
1+
>> (defun denote-refs-update ()
>> "Update Denote references shown."
>>
>> Diff finished. Mon Dec 19 17:57:57 2022
>
> Thanks for the information. I guess you live somewhere at UTC+1, based
> on the email timestamp and diff timestamp.
Right, Germany :)
>>
>
> FYI, you missed the missing ;;;###autoload. I just added it.
Sorry about that ^^
I'll go ahead and add this to NonGNU ELPA.
next prev parent reply other threads:[~2022-12-19 19:19 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 [this message]
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
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=878rj35hh0.fsf@posteo.net \
--to=philipk@posteo.net \
--cc=akib@disroot.org \
--cc=emacs-devel@gnu.org \
/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).