From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Temporary notes in Emacs buffers? Date: Wed, 15 Jan 2020 19:43:26 +0100 Message-ID: <87o8v4k1bl.fsf@mbork.pl> References: <87zhfecbpt.fsf@mbork.pl> <87sgkpp9ha.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="9903"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: Help Gnu Emacs mailing list To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 15 19:44:10 2020 Return-path: Envelope-to: geh-help-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 1irneE-0002KK-8u for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 15 Jan 2020 19:44:10 +0100 Original-Received: from localhost ([::1]:58838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irneD-0006lg-A2 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 15 Jan 2020 13:44:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57382) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irndr-0006k5-5o for help-gnu-emacs@gnu.org; Wed, 15 Jan 2020 13:43:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irndm-0001zR-Dv for help-gnu-emacs@gnu.org; Wed, 15 Jan 2020 13:43:45 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:54886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1irndm-0001v6-6q for help-gnu-emacs@gnu.org; Wed, 15 Jan 2020 13:43:42 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 5CA05E673F; Wed, 15 Jan 2020 19:43:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W5L92uPcN2ND; Wed, 15 Jan 2020 19:43:33 +0100 (CET) Original-Received: from localhost (apn-31-0-23-13.dynamic.gprs.plus.pl [31.0.23.13]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 45E7EE62D8; Wed, 15 Jan 2020 19:43:33 +0100 (CET) In-reply-to: <87sgkpp9ha.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122225 Archived-At: On 2020-01-09, at 04:57, Michael Heerdegen wrote: > Marcin Borkowski writes: > >> I've been wondering if there is some package which could let me make >> "temporary notes" in Emacs buffers, similar to (but different than) the >> "yellow notes" in some pdf viewers. > > Just for fun I've created a template for how the least common multiple > of our expectations could look like. I guess there are many different > expectations of how contents, visualizations and ways of saving for > notes could look like, so I made it so that all of that is changeable > and extensible. > > I'm not yet sure what would have to be done to support mass annotation > from occur buffers since I don't use them a lot. > > I'm also not sure where in the implementation I could rely on existing > code - especially for saving (eieio-persistent maybe?). Hi Michael, and thanks for this. (Unfortunately, I could no longer follow the discussion, because life & time, but I'd really like to catch up.) This looks quite interesting. Things I'd probably change would be: highlighting the region instead of the character at point, jumping to previous/next note, a list of notes, and an overlay showing the text of the note even without hovering on it. Of course, this would be a major effort, but I like your PoC. I'd really like to work on it, but realistically, I won't be able for at least several months:-(... Best, -- Marcin Borkowski http://mbork.pl