From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Temporary notes in Emacs buffers? Date: Tue, 14 Jan 2020 09:32:19 -0800 (PST) Message-ID: <3e2814f1-579d-4fdd-aa5d-6c68f9c0410c@default> 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> <87sgkmla13.fsf@web.de> <87lfqdxha4.fsf@web.de> <7e7f3455-ce74-41df-a5a3-ce510063198d@default> <87k15u3480.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="250162"; 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-mx.org@gnu.org Tue Jan 14 18:33:17 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.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 1irQ43-0012co-8s for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Jan 2020 18:33:15 +0100 Original-Received: from localhost ([::1]:44076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irQ40-0006r9-Qk for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Jan 2020 12:33:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42279) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irQ3L-0006cY-Qa for help-gnu-emacs@gnu.org; Tue, 14 Jan 2020 12:32:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irQ3G-0000pu-P1 for help-gnu-emacs@gnu.org; Tue, 14 Jan 2020 12:32:31 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:46984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1irQ3G-0000pS-GQ for help-gnu-emacs@gnu.org; Tue, 14 Jan 2020 12:32:26 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00EHN9S1140387; Tue, 14 Jan 2020 17:32:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=AqC3jrEL1cwQIv2635JKCIKpNZZ18hvOKNfd4wgKCaA=; b=bytKVWRN/9GngFS3XiLPdytSiM/QaPMVyYmduFubd9p8dj0xBGTG1Jj8VhAxKjZhhDeG /6nfaiF6je8RJaP+Ro1pmajQBwDJycNSXIQLcfVlIHojbB1rVrC+cdfE8UpzhNPMlxIj Jmoz7eHLLz/OObiG0suyO8vEMsE8Hb/PCGhCEgwG4DC/YIsrN9tgFBCSuZr8vdiiEn+i aCG45X7zmkfl5muXkvq4weEGIT6kDAUz0k+1vw7xgjtvgJkzhCcrqwSMQqsc0ESnsn0I ri7AtKRn0klJn+HNrZnP/uVApSW2B1dUFY9rhc2TdL4POY4JkTUrUYFMnrvZizq5txhm zQ== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 2xf74s7gnv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Jan 2020 17:32:23 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00EHMFT3134039; Tue, 14 Jan 2020 17:32:23 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 2xh2tp2wmp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Jan 2020 17:32:22 +0000 Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 00EHWKeN004121; Tue, 14 Jan 2020 17:32:20 GMT In-Reply-To: <87k15u3480.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4939.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9499 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=898 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001140140 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9499 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=965 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001140140 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.86 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.org gmane.emacs.help:122223 Archived-At: > Thanks, that approach would probably work for what I have in mind. >=20 > The second part would be saving: when I want to save back the file's > "local bookmarks", how would I do that? I guess I would have to > separate those bookmarks from the other bookmarks that were already > loaded before the file had been visited. I obviously don't want to > duplicate all the bookmarks from the default bookmark file. It would > be good if the bookmark objects would know by themselves what their > individual corresponding save place is. I don't quite follow (and I think this is maybe getting into the weeds now, for a general Emacs help list). What I suggested is switching to a bookmark file that has _only_ bookmarks for the target file, as opposed to just loading such a bookmark file to add to the already loaded bookmarks for targets elsewhere. You save those bookmarks by saving the bookmark file, i.e., by saving the current `bookmark-alist', i.e., by using `bookmark-save': bookmark-save is an interactive compiled Lisp function in 'bookmark+-1.el'. It is bound to C-x p s, menu-bar search bookmark save. (bookmark-save &optional PARG FILE) Save currently defined bookmarks. Save by default in the file named by variable 'bmkp-current-bookmark-file'. With a prefix arg, you are prompted for the file to save to. If 'bmkp-last-as-first-bookmark-file' is non-nil, update its value to the file being saved. To load bookmarks from a specific file, use 'C-x p l' ('bookmark-load'). If called from Lisp: With nil PARG and nil FILE, use file 'bmkp-current-bookmark-file'. With non-nil FILE, use file FILE. With non-nil PARG, prompt the user for the file to use. But there are other, i.e., additional, ways to group bookmarks, besides a bookmark file. As the doc says: Unlike the other ways of organizing bookmarks into sets (tags, bookmark-list bookmarks, etc.) bookmark files represent physical, not logical, groupings of bookmarks. Bookmarks themselves can be saved in any bookmark file, and in any number of different bookmark files.