From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [External] : Re: [PATCH] When deleting in bookmark menu, prompt for confirmation. Date: Thu, 6 May 2021 15:29:26 +0000 Message-ID: References: <87a6pcqy7s.fsf@red-bean.com> <83czu86o46.fsf@gnu.org> <835z006jpl.fsf@gnu.org> <87im3z3f8f.fsf@red-bean.com> <83zgxb67g2.fsf@gnu.org> <87mtt9sqh4.fsf@red-bean.com> <87czu58uso.fsf@gnus.org> <878s4tq8e6.fsf@red-bean.com> <874kfguail.fsf@red-bean.com> <875yzwtkuj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12442"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Karl Fogel , Lars Ingebrigtsen , Stefan Monnier , "emacs-devel@gnu.org" To: Matthias Meulien Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 06 17:32:39 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lefzR-000348-Id for ged-emacs-devel@m.gmane-mx.org; Thu, 06 May 2021 17:32:37 +0200 Original-Received: from localhost ([::1]:33200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lefzQ-0001Ju-G9 for ged-emacs-devel@m.gmane-mx.org; Thu, 06 May 2021 11:32:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lefwV-0008PP-QT for emacs-devel@gnu.org; Thu, 06 May 2021 11:29:36 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:35962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lefwS-0004TD-RW for emacs-devel@gnu.org; Thu, 06 May 2021 11:29:34 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 146FOTLW184494; Thu, 6 May 2021 15:29:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=VhsdDT47/o5V5E4RCSffd/TYQz4BbM7ZX1Fp8tond6A=; b=DTmSc2MATv+455X3UeesehUK46HvQ5uDaBGxqcZoIqQe57srsPH8yRXOiQRMdrauuJDd I7SUuzZj5YEk7biTSv5E7SbbxCVqm/ax3BvNhzXDiEWOConkW/xGjm3YXTAK30UrWMyC 2XnNb/wovlOuw17wUPtynkMV8YlD3r9X2PtHqYMLPRRS4nxubqoLyBbeHyc/vrxDJlcI I6D7xY6osgaEG0exq+GMj8Ccj/74Cdz/t4eVc/ZdctTki+FMXB2HF7FvPZn4XactRl0A M9fPbAFZ0yHivw3kI5aTzBY76S79Owwuo304CLldAckM2AC8Q4i0ZMDf4pU/UiOcWceI Wg== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 38bebc5dys-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 May 2021 15:29:29 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 146FQNZI035685; Thu, 6 May 2021 15:29:28 GMT Original-Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2173.outbound.protection.outlook.com [104.47.59.173]) by aserp3020.oracle.com with ESMTP id 38bebmjd92-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 May 2021 15:29:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kf8NUTT5A5WRT64qNIwFh01ug1auu3umz8YLKh1GzUnQDbbxNpUqqsDrCxeTO5qE1akdmCVY1xpiC9KOvxgWabc8xysXFJTdnw0zCvrfHBp14K+wdmDGpEidZ7Wqbdrz67Y1Ju27IyqQc0GKYAIYA+oxa+kmUjNlIEFAh3KYw3EpEkeo2Ic4kfe9lET8JGOYpZawg/1pSR61Ibt1rswn9sggzoXiuwmgkXhH3nbOsKBhRboeQP6M0g366WIr+Y94yC6EjvVwXDCjXsw1SnLxBCXD7G3P6M6r7HTSk34SdhOMOmn6OhmsSSkiAJU9MLqEYqmWoAATR+b+I4l1jyAeCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VhsdDT47/o5V5E4RCSffd/TYQz4BbM7ZX1Fp8tond6A=; b=ll1pbBEBY2/4gFMcPbovqQ1v4AuRrtZEFC1rE57nFF40HQkPXdUYaPAeLpNDfQxcGJrDZA9ilt7QKtI8xLJNCJxS+lEe2P/FqSycm7lLr4iWNGP15Qo1Pbl1IZiWGeA0XM+0N6cru687WXaVgW36+uEOP59qxFTbGAGhtoRvCjqUAsi7M7psvsoQKP53919/1uBvJLs/qaV0SdHzuh26JKkIzkb96pRRviNkUUD8WxKFg1hiz0R1GZT0U8G44XpS4nT0+i0xs+n1W+zr/NnTky/J7hPJXbM9p28x4dE7xXYydxeq7reXJJ1qOewKz35uR1nz181br9rP7eHjk1N4AQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VhsdDT47/o5V5E4RCSffd/TYQz4BbM7ZX1Fp8tond6A=; b=QvghwoKUmp26vioqef1iwE1PxUDw6HTc9iqVRj1yyxmL8nSFV1u1Pdc136/bhV0b0aaXaox0j+/fQKBMm0SPLwof0lKtHY1bhF0bacUlK+QbDQeKM+bZ1nsvK8H6c8aUMBWFNSMDIFPS4bWNvwhVPrS8JiIDSMxqdCtDKUfvitc= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2736.namprd10.prod.outlook.com (2603:10b6:805:44::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.23; Thu, 6 May 2021 15:29:26 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::2109:9725:fd4a:6494]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::2109:9725:fd4a:6494%6]) with mapi id 15.20.4087.044; Thu, 6 May 2021 15:29:26 +0000 Thread-Topic: [External] : Re: [PATCH] When deleting in bookmark menu, prompt for confirmation. Thread-Index: AQHXQkRq9/oh5BXQEUW3spoOksxb4arWfqRg In-Reply-To: <875yzwtkuj.fsf@gmail.com> Accept-Language: en-US Content-Language: en-US authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 31f08a30-37e3-43fd-e7fa-08d910a3bbab x-ms-traffictypediagnostic: SN6PR10MB2736: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0gG7iF1ntWi+OEaQnn757lKHGNm23d+XoeF8dNOcBFwbtjbb7ssZDGdOg8MbVVrezBkzA1+hCI0WyBhUdo44VjtVKLozVFKDJEUGXOLxNiX/8rcg/FV0DawoTw3vARocuYxCEgz7glYQHmIMFo3gBTFSm5MYqFHXGsRvpdA0Mt/8v84Dsdvgs7DRewHoVJgytCik08o8VoO4yD0s3Tm4/jWYigJHJmW/0Q3Jm6S2TAmT2AHTVySwFvHk+VUTDjG3tPX4UrvI3n+Cfll0iQpO5mOte6f++kwgyIxl/r+b/cDegCEoZwJ25A4I9qEWuyFBo/RQEsnpiJUMbwyfX9VtCNVcG6SA0QETNG4hX1WWH0GI8l46a4FIThNww4zHZ+laxPx0EV3c74k6wB9/iew9bcNe09gZnw2YLSRhmk9+oYpzZa7dD58iW6MXPQX3Pw6Cj1C46Mdaw0MKcg4yb5xUJHlF/pIzjAKvZsgPvygW8K0wOwopnPqm7xxN2J5YQTerSYfIBi9cE+Pz55Xca3hvMe+OJ/X3SuhHRf3CzdN9xw39hbicQubU456o0vwIalCpEv+YD20ZGqoO/80cgpRwJuGWWuTTInS9ll5DPcnidlmoKoN+hrRePqJRvNugPE63nZ0Z5Ekc71nOdOH4CT52rV7jKLNoMajOTziTKUKFCmyAwYtBSeyFZ4DQcJaekdBZ x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(366004)(346002)(136003)(376002)(396003)(4326008)(8936002)(38100700002)(55016002)(54906003)(76116006)(83380400001)(2906002)(966005)(9686003)(316002)(86362001)(8676002)(6506007)(26005)(186003)(66476007)(66556008)(33656002)(66946007)(64756008)(122000001)(66446008)(44832011)(5660300002)(71200400001)(478600001)(6916009)(7696005)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?lgHzypHp7SZLZv20XfD9DYRmrNJp5vXmxCYOROIw2DX1Skhe0FZ6he+z5il6?= =?us-ascii?Q?EsqspPtJe0r1r8AYBv0Kgq7wr8fmIA4dQ/3JTuos/d1xw2W/odJ7TOaBOur1?= =?us-ascii?Q?WlCbYlMezQstZ9wlEqn0Vd/0gi/L0mLMd5G2DEYZim1UA8O+KO0xp081CaZs?= =?us-ascii?Q?FzOw9adaxFIBYVxmM5qTQar25yXbWscJCxanfsYNbB1XSPHkkiGChCIMDHnm?= =?us-ascii?Q?0+SIapkdvGSvMYuzt6RvUABrKgBP30KE3fXf7dAmcrfsBXFSfm2kcfLvGHSz?= =?us-ascii?Q?myOhIQintCh+gMeKzKl1jgCYVT4Ill0cI9tZiiS+VowLDmUskkk06y0Isi54?= =?us-ascii?Q?Wo0FF96xJs3au/C9/ILvXB/fXWV85S1pYozpITuXAfEC4RND9+GQVU5O2VJ5?= =?us-ascii?Q?V8IhPyl84ycVlt8hbtg99Xv+2LnfZpG8h/FHms601u/sCgcygKfkce3ADvPj?= =?us-ascii?Q?R1Tl1U5ZSXm3MHQVnyhLgTfaSBia7ILiTbeULEaPvA0guJPTqBgcm4+QVClR?= =?us-ascii?Q?QJmS+Wj7FM76OkEZhniB9vxFx0M+WYVmM/3FjHxQNr99ne8DtFLlFvHQAiGi?= =?us-ascii?Q?efCXjD7D1FM1EffNuUC62RIp32JkKriq+A9/lBcORkvEKu4WuhXMx7TI7oJ5?= =?us-ascii?Q?mopF x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 31f08a30-37e3-43fd-e7fa-08d910a3bbab X-MS-Exchange-CrossTenant-originalarrivaltime: 06 May 2021 15:29:26.3058 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UTcf/OrsarkWU8ANEIqKbcgEP7N0/dIuWYJAvXCPj/1UPJUho7TkYjeB7LH7xbw5g4GCDaD4BquIS5bVKW/ieQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2736 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9976 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 adultscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2105060109 X-Proofpoint-ORIG-GUID: QX6A6myIuHLiGbRxKiafh_GED8bb1IPo X-Proofpoint-GUID: QX6A6myIuHLiGbRxKiafh_GED8bb1IPo X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9976 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 spamscore=0 adultscore=0 clxscore=1011 mlxscore=0 malwarescore=0 mlxlogscore=999 impostorscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2105060109 Received-SPF: pass client-ip=156.151.31.85; envelope-from=drew.adams@oracle.com; helo=userp2120.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268974 Archived-At: > > (...) The bookmarks in that list can be loaded from any number of > > bookmark files, and more bookmarks can be added on the fly, so that > > the list corresponds to no bookmark file. >=20 > Yes, you're right. But if one press `s', the default > bookmark file will be updated with all bookmarks > whatever their originating bookmark file! Which is what I said: The only thing you can say about it is that if you _save_ the current bookmark list then, by default, its bookmarks will replace those in a particular bookmark file. > From my pov and usage (one bookmark file for work > projects and another one, the default one, for > personnal projects and common bookmarks like > download folder, Python documentation, etc.) this > makes loading multiple bookmark files deeply broken > (but that's another discussion). I disagree. But then, I use Bookmark+, which makes using multiple bookmark files much easier and more useful. https://www.emacswiki.org/emacs/BookmarkPlus#UsingMultipleBookmarkFiles Wrt your use case of using only two files: Just use a prefix arg with `L', to switch to the last bookmark file used. (Or use `L RET', since the last one is the default for switching.) [IIRC, vanilla bookmark.el doesn't have a way to switch to a different bookmark file interactively. All it needs to do, to add that, is to let a prefix arg for `bookmark-load' and `bookmark-bmenu-load' provide non-nil arg OVERWRITE. It provides a prefix arg for saving, but not for loading.] A particularly handy way to switch among multiple bookmark files is to bookmark bookmark files! Then you just jump to such a bookmark to switch or load (add) files. Use bookmark names that tell you just what each file is for. Use such bookmarks to flip between projects or contexts, or to combine/compose them. In menu-bar menu `Bookmark+' for your bookmark-list display (`C-x r l'), submenu `Bookmark File' has these items: _____________________________________________________ Revert to Saved Bookmarks C-u g Empty Bookmark File... C-x x 0 ___ Load (Add) Bookmarks... l Switch to Bookmarks... L Switch to Last Bookmark File... C-u L ___ Load Bookmarks, Mark Those Loaded... Load Bookmarks, Mark Only Those 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 _____________________________________________________ You can toggle automatic saving of your current bookmarks to the current bookmark file any time, using `M-~'. (Toggles option `bookmark-save-flag'.) Turning auto-saving off is often what you want to do if you've loaded multiple bookmark files. You can also easily copy or move bookmarks from one bookmark file to another.