From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Temporary notes in Emacs buffers? Date: Thu, 02 Jan 2020 18:48:47 +0100 Message-ID: <87woa9bvgg.fsf@mbork.pl> References: <87zhfecbpt.fsf@mbork.pl> <87sgl0osts.fsf@web.de> <65742f83-393a-4df2-9562-7c500b40adcd@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="53100"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: Michael Heerdegen , Help Gnu Emacs mailing list To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 02 18:49:10 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1in4as-000DhT-HM for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 18:49:10 +0100 Original-Received: from localhost ([::1]:43584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in4ar-0006II-Eb for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 12:49:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38154) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1in4af-0006HZ-Qe for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 12:48:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1in4ae-0002XC-Nw for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 12:48:57 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:33696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1in4ae-0002X1-GZ for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 12:48:56 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id D017CE6D83; Thu, 2 Jan 2020 18:48:55 +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 pUWvM_HAL05U; Thu, 2 Jan 2020 18:48:48 +0100 (CET) Original-Received: from localhost (jeden09-dwa27.echostar.pl [213.156.109.227]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 4C3F5E6694; Thu, 2 Jan 2020 18:48:48 +0100 (CET) In-reply-to: <65742f83-393a-4df2-9562-7c500b40adcd@default> 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:122137 Archived-At: On 2020-01-01, at 05:45, Drew Adams wrote: >> I also considered to implement something like that several times. >> >> We could use overlays to assign the positions and overlay properties to >> store note texts and metadata. When a buffer is edited, the overlay >> begin and end marker positions are updated by Emacs on the fly. I >> would use after-save-hook or so to make Emacs save that stuff >> automatically for every file save. Where it is saved would be (file >> locally) configurable: in a file local variable, in a directory local >> variable, or in a configurable central place. >> >> When you open a file, a minor-mode-hook would arrange that everything >> is restored. >> >> There would also be a variant for dired buffers to attach notes to >> whole files. > > FWIW: Marcin said he wasn't interested, but > Bookmark+ really does offer all of that already. I know that, but it is very big and thus daunting to me. Best, -- Marcin Borkowski http://mbork.pl