From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Temporary notes in Emacs buffers? Date: Wed, 15 Jan 2020 15:10:46 -0800 (PST) Message-ID: <631d0890-407e-4917-9f3d-41b8a6999cd7@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> <3e2814f1-579d-4fdd-aa5d-6c68f9c0410c@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="94334"; mail-complaints-to="usenet@ciao.gmane.io" 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 Thu Jan 16 00:11:27 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 1irroq-000OSu-VA for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 16 Jan 2020 00:11:25 +0100 Original-Received: from localhost ([::1]:33944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irrop-0000rS-SV for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 15 Jan 2020 18:11:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47437) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irroN-0000mt-6S for help-gnu-emacs@gnu.org; Wed, 15 Jan 2020 18:10:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irroI-00016Q-Sy for help-gnu-emacs@gnu.org; Wed, 15 Jan 2020 18:10:54 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:39128) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1irroI-000163-Lk for help-gnu-emacs@gnu.org; Wed, 15 Jan 2020 18:10:50 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00FN9NjH113665; Wed, 15 Jan 2020 23:10:49 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=WnXiKxHInDdPt0mFNmEWtGvZs4/U6nloqOS9cYVIsxI=; b=VLF2G4nKSzB3vqRzf4WRm1EgPjSD4HI5N4Q7Nkz5hCNprvhsjRufgkPVb6IEPYMZuwDs M2SqTj3MFMjU+6vTTfzN80UrphOMMUhxR7uC5rKFbp+3siEq7kt3NgApzXLvMckXW+cV NROSo72NJfnslXOLUmMYBoH1nXbTxeXUHBCRMmJEf4W/6xfl0nlqfULWSq3899u86kN3 a4nh/7KWRiXDfNgmIa/+dfKIn4HA1vlowcZgdAFYA6dsnGEB6bHsni+ko/vqwTO16t6H AMonLeexjkDBxUm8kSp7XtKYQY60CfLA0GO7JjO5DYbyy9IWHwmJve0DWXwQ1/q+E2oo jQ== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 2xf73ty74e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Jan 2020 23:10:49 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00FN8sXX149685; Wed, 15 Jan 2020 23:10:48 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 2xj1arm5av-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Jan 2020 23:10:48 +0000 Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 00FNAl3a011577; Wed, 15 Jan 2020 23:10:47 GMT In-Reply-To: <3e2814f1-579d-4fdd-aa5d-6c68f9c0410c@default> 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=9501 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=747 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001150174 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9501 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=806 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001150174 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.78 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:122226 Archived-At: > 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. ... > But there are other, i.e., additional, ways to group > bookmarks, besides a bookmark file. As the doc says: >=20 > Unlike the other ways of organizing bookmarks into sets (tags, > bookmark-list bookmarks, etc.) bookmark files represent > physical, not logical, groupings of bookmarks. >=20 > Bookmarks themselves can be saved in any bookmark > file, and in any number of different bookmark files. It occurred to me that this info might also help Michael (dunno). Instead of having a different bookmark file for each target file, to hold all bookmarks for it, you can use a filtered bookmark-list display that shows only those bookmarks. This is a logical grouping, not a physical grouping, as mentioned above. In the bookmark-list display (buffer `*Bookmark List*'), you can use `=3D f S' to show only bookmarks that target a given file (it prompts you for the file name). (Similarly, `=3D b S' shows only bookmarks that target a given non-file buffer.) Using different bookmark-list displays for organizing bookmarks is in many ways more flexible than using different bookmark files. Among other things, it lets you mark bookmarks and then act on them in various ways. (The Bookmark+ bookmark-list UI is much like Dired's.) --- Now let's suppose that you've done that, so `*Bookmark List*' shows all bookmarks for file `foo.nada', and no other bookmarks. That may well be all you need. But let's also suppose that you decide that, for some reason, you actually do want those bookmarks grouped physically, in their own bookmark file, so that `foo.nada' has its own, dedicated bookmark file. All you need to do for that is this: 1. Mark the bookmarks in `*Bookmark List*' (e.g. after filtering so it shows only bookmarks for `foo.nada'). 2. Use `Y > 0', to create a new bookmark file for just the marked bookmarks. Or use `C-u Y > 0' to do that plus create a bookmark to that bookmark file. Using this bookmark automatically loads that bookmark file (`C-x j y' anywhere, or `J y' in `*Bookmark List*', jumps to a bookmark-file bookmark, and with a prefix arg it switches to that bookmark file, instead of just adding its bookmarks.) You don't need to these remember key bindings. You can use the `Bookmark+' menu in buffer `*Bookmark List*'. In submenu `Bookmark File' you find most of the commands for using bookmark files: creating, copying or moving bookmarks among them, bookmarking them, etc. And in submenu `Jump To' you find item `Bookmark File' (`J y').=20 In `Bookmark+' > `Bookmark File' you find these menu items, along with their keys. Revert to Saved Bookmark File... C-u g Switch to Bookmark File... L Add Bookmarks from File... l Load Bookmark File, Mark Loaded... Load Bookmark File, Mark Only Loaded... Load Marked Bookmark-File Bookmarks... M-l ------------------------------------------------ Move Marked to Bookmark File... Y > - Copy Marked to Bookmark File... Y > + Copy Marked to New Bookmark File... Y > 0 Set Bookmark-File Bookmark from Marked... C-u Y > 0 Empty Bookmark File... C-x p 0 (`Switch to Bookmark File' also has global binding `C-x p L'. Menus are good for discovering operations and reminding about their key bindings.