From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John Yates Newsgroups: gmane.emacs.help Subject: Re: Temporary notes in Emacs buffers? Date: Thu, 2 Jan 2020 22:35:22 -0500 Message-ID: References: <87zhfecbpt.fsf@mbork.pl> <87sgl0osts.fsf@web.de> <65742f83-393a-4df2-9562-7c500b40adcd@default> <87a777ydnh.fsf@web.de> <73dc0d0e-f208-4169-a70d-f2f17994a4f4@default> <87o8vmlkdq.fsf@web.de> <958f5d11-5d36-4627-a106-11b47b3e9c79@default> <87png2ed33.fsf@web.de> <1d24a14a-b38a-4a66-b6d0-cca8aff7dacc@default> <87mub573g5.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="145965"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Help Gnu Emacs mailing list To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 03 04:38: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 1inDmq-000bph-6e for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jan 2020 04:38:08 +0100 Original-Received: from localhost ([::1]:48334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inDmp-0001ci-0C for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 22:38:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54808) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inDkT-00074r-Lc for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 22:35:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inDkS-0005cG-I9 for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 22:35:41 -0500 Original-Received: from mail-lj1-f177.google.com ([209.85.208.177]:42725) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inDkS-0005XC-9J for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 22:35:40 -0500 Original-Received: by mail-lj1-f177.google.com with SMTP id y4so28281917ljj.9 for ; Thu, 02 Jan 2020 19:35:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rFGOIBLULHBK6zM8LFfJtl1/nF5qROm5AJaSUjterUs=; b=Qm2eJmsFPBvFjDTyl5bc4/B6IKTW0dCk65jmUhwTNWqD25rEZXdiTEbzffUADZrMuM xQzp/fZjGxK96+J1eT8QKyyDZCLfX/ST8ajy4ThZpZbR/PHdXg/BiW9kzEC4ZNVoDhdj TDa6aXsNsUnZE2Fmg1pElsQkv5/y/05RwjXVxOEEQ+X9uud260Ytjj9CW3QAM+fXCBWV 7WvZU0i6MiMNvjXHWPCWIQ1gnnRGoykSapE8asnbJE4ynLWxTHd6+ic1BaLue+znnYPD sYg+b7NW3pl/VAiJHxZ4LKpEs10jGM2TKZtWQZxj1V+4Q/L4j/K0ykGk9rNaGAm+vVYX tMLw== X-Gm-Message-State: APjAAAXOSrYOGLZUgg9/U5JZMrFZSUME/gh1Et16fJ+Ko4UtRxLfkHqe 2v9+4R2AJnWjEyVvHFg6/dPKVM4YvBK+Am2fCfht29Xa X-Google-Smtp-Source: APXvYqwR2MJi2SGVB1gRVJVo8YQ+//7HN9N2MBXXrpGEBjFvk31kz4U5ZpyA2d0QKGaYLCnpKYqPQWaJtlYxllvAsbY= X-Received: by 2002:a2e:96c4:: with SMTP id d4mr42940185ljj.225.1578022533944; Thu, 02 Jan 2020 19:35:33 -0800 (PST) In-Reply-To: <87mub573g5.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.208.177 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:122141 Archived-At: This broaches the question of what is being annotated, the file as a container (e.g. inode) or its contents: 1. What happens when one moves the file? 2. What happens when one copies the file? 3. What if after the copy one deletes the original? My sense is that this thread is most concerned with use case number 1. An approach not yet mentioned is including some form of UUID as a file local variable. In such a setting notes indirect through a persistent UUID-to-path map. A file handler recognizes relevant operations on UUID annotated and updates the map. This might also include updating the new copy's UUID to preserve uniqueness. /john