* Re: NonGNU ELPA proposal: annotate-mode
2022-01-30 14:53 ` Eli Zaretskii
@ 2022-01-30 16:02 ` cage
2022-01-30 17:20 ` Stefan Monnier
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: cage @ 2022-01-30 16:02 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: cage, emacs-devel
On Sun, Jan 30, 2022 at 04:53:00PM +0200, Eli Zaretskii wrote:
Hi!
> >
> > https://github.com/bastibe/annotate.el
[...]
> FWIW, I wish Emacs had in core a mode that would allow adding notes
> (a.k.a. "annotations") to files, which (a) didn't use overlays that
> display in the text area, but instead displayed the notes in the
> margin and/or in tooltips;
If i understand correctly the package can someway already use the
tooltips setting a customizable variable; in this case the property
'help-echo' of the overlay is setted and a tooltip is shown (if
tooltip-mode is enabled).
I like the idea to use the margin!
> and (b) would save the notes of FILE into a
> FILE.notes file, not into a single DB under the user's home directory.
I find useful to have the annotations in centralized database, some
persons save the database in a network accessible file system (even
using TRAMP!), to share it on multiple machines.
Bye an thanks for the suggestions!
C.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: NonGNU ELPA proposal: annotate-mode
2022-01-30 14:53 ` Eli Zaretskii
2022-01-30 16:02 ` cage
@ 2022-01-30 17:20 ` Stefan Monnier
2022-01-30 18:24 ` Eli Zaretskii
2022-01-31 3:14 ` Ihor Radchenko
2022-01-31 4:03 ` Richard Stallman
2022-01-31 7:38 ` Uwe Brauer
3 siblings, 2 replies; 11+ messages in thread
From: Stefan Monnier @ 2022-01-30 17:20 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: cage, emacs-devel
> FWIW, I wish Emacs had in core a mode that would allow adding notes
> (a.k.a. "annotations") to files, which (a) didn't use overlays that
> display in the text area, but instead displayed the notes in the
> margin and/or in tooltips; and (b) would save the notes of FILE into a
> FILE.notes file, not into a single DB under the user's home directory.
> I think it would be a very useful feature that every text-processing
> package should have built-in.
Note that beside this `annotate.el` that's also `org-remark.el` recently
added to `elpa.git` which offers similar functionality, but similarly
suffers from the use of absolute file names to connect the notes and
the file.
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: NonGNU ELPA proposal: annotate-mode
2022-01-30 17:20 ` Stefan Monnier
@ 2022-01-30 18:24 ` Eli Zaretskii
2022-01-31 17:50 ` Noboru Ota
2022-01-31 3:14 ` Ihor Radchenko
1 sibling, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2022-01-30 18:24 UTC (permalink / raw)
To: Stefan Monnier; +Cc: cage-dev, emacs-devel
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: cage <cage-dev@twistfold.it>, emacs-devel@gnu.org
> Date: Sun, 30 Jan 2022 12:20:32 -0500
>
> > FWIW, I wish Emacs had in core a mode that would allow adding notes
> > (a.k.a. "annotations") to files, which (a) didn't use overlays that
> > display in the text area, but instead displayed the notes in the
> > margin and/or in tooltips; and (b) would save the notes of FILE into a
> > FILE.notes file, not into a single DB under the user's home directory.
> > I think it would be a very useful feature that every text-processing
> > package should have built-in.
>
> Note that beside this `annotate.el` that's also `org-remark.el` recently
> added to `elpa.git` which offers similar functionality, but similarly
> suffers from the use of absolute file names to connect the notes and
> the file.
Yes, I'm aware of that. I guess people are happy with this situation.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: NonGNU ELPA proposal: annotate-mode
2022-01-30 18:24 ` Eli Zaretskii
@ 2022-01-31 17:50 ` Noboru Ota
0 siblings, 0 replies; 11+ messages in thread
From: Noboru Ota @ 2022-01-31 17:50 UTC (permalink / raw)
To: emacs-devel; +Cc: Eli Zaretskii, Stefan Monnier
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Stefan Monnier <monnier@iro.umontreal.ca>
>> Cc: cage <cage-dev@twistfold.it>, emacs-devel@gnu.org
>> Date: Sun, 30 Jan 2022 12:20:32 -0500
>>
>> Note that beside this `annotate.el` that's also `org-remark.el` recently
>> added to `elpa.git` which offers similar functionality, but similarly
>> suffers from the use of absolute file names to connect the notes and
>> the file.
>
> Yes, I'm aware of that. I guess people are happy with this situation.
This is the first feedback on links between files for Org-remark in its
1+ years of existence; so thank you.
I was OK with absolute file names as I don't move them around much.
Could I ask you to give me a little more detail as to why you find
absolute file names problematic for you, please?
Before your feedback, I had already had a work-in-progress
version. Reflecting your comments, I have added the following user
options:
1. For linking from main file to its annotation file, it can be either a
string (default) or function (new). If you choose the function option,
the default function lets you save the notes of FILE into FILE-notes.org
2. For linking from an annotation file back to a main file, it can be a
relative path (new default), abbreviate absolute path, or other to
specify a function
I have just merged the changes to the main branch in GitHub -- it should
soon make its way to ELPA-devel. I will leave it there for now to see
if I broke anything before I bump up the version to release the package
to ELPA as version 1.
Thank you again for your feedback.
Noboru
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: NonGNU ELPA proposal: annotate-mode
2022-01-30 17:20 ` Stefan Monnier
2022-01-30 18:24 ` Eli Zaretskii
@ 2022-01-31 3:14 ` Ihor Radchenko
1 sibling, 0 replies; 11+ messages in thread
From: Ihor Radchenko @ 2022-01-31 3:14 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Eli Zaretskii, cage, emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> Note that beside this `annotate.el` that's also `org-remark.el` recently
> added to `elpa.git` which offers similar functionality, but similarly
> suffers from the use of absolute file names to connect the notes and
> the file.
FYI, we are currently testing an experimental persistent cache library
in Org mode (org-persist.el). It is capable of tracking files not only
by absolute file names, but also by contents hash and inode.
Best,
Ihor
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: NonGNU ELPA proposal: annotate-mode
2022-01-30 14:53 ` Eli Zaretskii
2022-01-30 16:02 ` cage
2022-01-30 17:20 ` Stefan Monnier
@ 2022-01-31 4:03 ` Richard Stallman
2022-01-31 7:38 ` Uwe Brauer
3 siblings, 0 replies; 11+ messages in thread
From: Richard Stallman @ 2022-01-31 4:03 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: cage-dev, emacs-devel
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> FWIW, I wish Emacs had in core a mode that would allow adding notes
> (a.k.a. "annotations") to files, which (a) didn't use overlays that
> display in the text area, but instead displayed the notes in the
> margin and/or in tooltips; and (b) would save the notes of FILE into a
> FILE.notes file, not into a single DB under the user's home directory.
> I think it would be a very useful feature that every text-processing
> package should have built-in.
I second that.
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: NonGNU ELPA proposal: annotate-mode
2022-01-30 14:53 ` Eli Zaretskii
` (2 preceding siblings ...)
2022-01-31 4:03 ` Richard Stallman
@ 2022-01-31 7:38 ` Uwe Brauer
3 siblings, 0 replies; 11+ messages in thread
From: Uwe Brauer @ 2022-01-31 7:38 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]
>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
>> Date: Sun, 30 Jan 2022 13:29:38 +0100
>> From: cage <cage-dev@twistfold.it>
>>
>> Hi!
>>
>> I would like to see annotate.el
>>
>> https://github.com/bastibe/annotate.el
>>
>> included in NonGNU elpa
> FWIW, I wish Emacs had in core a mode that would allow adding notes
> (a.k.a. "annotations") to files, which (a) didn't use overlays that
> display in the text area, but instead displayed the notes in the
> margin and/or in tooltips; and (b) would save the notes of FILE into a
> FILE.notes file, not into a single DB under the user's home directory.
> I think it would be a very useful feature that every text-processing
> package should have built-in.
There is virtual-comment, that seems to come close to requirement b)
but it uses overlays.
The interesting part is that the package discusses other solutions, but alas, I think all
use overlays
The problem with all these solutions is that they are not very stable
and soon or later the associated file .notes file gets corrupted.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread