From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Temporary notes in Emacs buffers? Date: Fri, 03 Jan 2020 02:07:22 +0100 Message-ID: <87mub573g5.fsf@web.de> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="72805"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Help Gnu Emacs mailing list To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 03 02:08:33 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 1inBS3-000Iik-RC for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jan 2020 02:08:32 +0100 Original-Received: from localhost ([::1]:47504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inBS2-0004E5-Gh for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2020 20:08:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55994) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inBRA-0004Dy-28 for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 20:07:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inBR9-0004e3-12 for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 20:07:35 -0500 Original-Received: from mout.web.de ([212.227.17.11]:48763) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inBR8-0004Z9-Ip for help-gnu-emacs@gnu.org; Thu, 02 Jan 2020 20:07:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1578013642; bh=mDriCzl4F3AQj/NzBi4nIdEfBUYTLDcrbA5/4S+GBXs=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=JLUi2mgiylpkZi6SL03wyFnkMmlBoLx8cXOHf7Z7KTVupF/BqNcFXj5oAuBwnCo/v N19tx5gGZ1vUDQfV9VUCh4NNMHmp9uNLBZ7gYHxi16r8nbsUblGgCNqX7Q8P1oqdHC x8E78C46Za5jPlXB1ZP/N+hdIPoGmwgJwtltwtBc= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([188.99.160.184]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M1oGM-1jbAQ73NV4-00to0X; Fri, 03 Jan 2020 02:07:21 +0100 In-Reply-To: <1d24a14a-b38a-4a66-b6d0-cca8aff7dacc@default> (Drew Adams's message of "Wed, 1 Jan 2020 21:30:25 -0800 (PST)") X-Provags-ID: V03:K1:q6KCcGRaDdJMYuMJfz3vcJWJ+d8p3ltd6bSFnXaQWYpjhpZqbqF pQX4qAX6OnZUa6uaOQtm9JJNfUZ+3pUVyMqetnCDAmPsTIfi2cVMF+ulgD4SMGOGXOtRhPb smcrx3fEeLEp2SNVUBMOkFWpxuUpPNw1ImUx2QGUqluZegp0uUWRBZQCWqWoB8sCK8cZMAH FlQprGWI5gQ86uhcrV7KQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:XIef8agncaE=:z0vuodwEvxUwg/uc0CI7om fSSguZAOXjNuFQT8u4kPufA5R54LP699bBYfyFkPL3lNOGlg2xHZibhb/7lxCcmez+ZJvjOpe 9ciXLGlMPXZQlQ1Hplh/lODg9VaP69/tC9JKQQfDq4yjyU00vjSp/jWaj7uPgnniO23rYi+GA u0FfdRkVI8CkPfErBrO0+WIQ4kSoVUGxkW6BZJLo23oJ7qCHhzFOhyp75xquBuJx44dMx0gGM S/Hqbmk/hcZEiK0U9LIrv9IjLfKEn7GgDTFuU1iwXxSv2YCQBH3jYd5wpg2AowWgkYNsdsiXs e5LaTnxtXzL28vfJs4J1B4sGkBp8+fpoTv1udTq21NTO641QmjYY6i4IwELUGRsmXyt9jdxTU ssxdSZ7XmNfO6ldF90geNsk6CSMVgb1zZHaBW8gC8497BYWI3YyNIUDo7Q/7fYYjNT3YR9hbw yYU2qPG0oITF2ly6LfAngQVKSJLc0Xz6SKNpAf4E8v9j1pq3JV8+Zb1BQHd8esBZkfbMO7va/ HM7awPseJO5TsEnDHU7mA2tEeYykC6AoWGIVBo8aV1I/aFZf2uP1HrKxT3eWb5bEnYzuYOXF3 tEfryWIFv5tIeo14buuVEe2cHTrT+XSMC6hRlF140P9b6AroVPOco93Md5QC2e1s1AQqb5t2c CTTBZ3MG/sXlsToh5diBVnKDyI1eu9qQ7xGcmG8uD/xyZ1BtbNdA/l55l51yzogXwGx6x6LDV pu5LU6Ty3YM52SS990hsOyOuvRHCqqufNXdNhR3u3Kjtjewes027L3Dg3QfXqugsj/K0l+k0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.11 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:122140 Archived-At: Drew Adams writes: > I guess you mean just what you said before: You > want to be able to move a file, and some bookmarks > that target it, to a different directory, and have > the bookmarks continue to work there. Yes. > > names. You are sure that there is no predefined way to use relative > > names? > You can define a bookmark handler for any type of > bookmark. The handler could ignore the directory > part of the recorded file name, and get the needed > directory from somewhere else, e.g., from a global > variable or a function. (It has to come from > somewhere.) E.g., a variable could have an alist > value with keys for your different whatevers (even > nondir-filename keys) and with dirs as the values. > > But then you'd have to update the variable value > when you move the targeted files. As I said before, > you can write code that does something like that > [...] Can't I just use a file or directory local variable for that part? That would be a trivial solution for the problem. The problem is that the bookmark file can't know where I may have moved a file to -- but I'm very unlikely to move the bookmark file very often. So I would prefer a solution where the file knows where to ask for its bookmarks and annotations, and the bookmark mechanism has the data and the mean to deliver it. Michael.