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.help Subject: RE: [External] : bmenu for recentf (or abstracting-away bmenu) Date: Thu, 16 Nov 2023 16:46:59 +0000 Message-ID: References: <87pm0afkr5.fsf@laptop.lockywolf.net> 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="17481"; mail-complaints-to="usenet@ciao.gmane.io" To: Lockywolf , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 16 17:48:05 2023 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 1r3fXA-0004K2-V0 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 16 Nov 2023 17:48:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3fWH-0001Ve-Ej; Thu, 16 Nov 2023 11:47:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3fWF-0001VQ-JB for help-gnu-emacs@gnu.org; Thu, 16 Nov 2023 11:47:07 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3fWD-0000xP-4R for help-gnu-emacs@gnu.org; Thu, 16 Nov 2023 11:47:07 -0500 Original-Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AGGYg1j023927; Thu, 16 Nov 2023 16:47:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=ojTKNCM3ByJ+OHKuydkNPlcrQB1OthGZopitb/W8ISY=; b=CMX9oma381IWErG/CtnwuC2ARfH1MT8g4HpxFktArMpoIN2qcWS6q+5+OCSAiXv+eD0L NV4V9OBO7PUi6Oy75L1uCDhEMuF+yiftl9SIfKari2gO8K6w1jMfRDrrNWPm0aTe6K2g 9mum38L7XDYEX33Ph6Yc79144ihIDoPtuMr4wX/OTvFZQOc7waoVCw8iCj8SzL6cXOtV 4l52sRUKnbt7llsK9YRcPN+Smeqdz+YyH/WC3aGlF6MIRIe/DL359AzTDHZRhlxLwejD VnOEWypZCAvNKeBK5fjGrNr9mDhjicwZV5PP85E3/xH/VxbJwsy9g8XIhdufIzX5WJ5R Tg== Original-Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ua2stugt1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 16 Nov 2023 16:47:01 +0000 Original-Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3AGGPnEv031602; Thu, 16 Nov 2023 16:47:01 GMT Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2101.outbound.protection.outlook.com [104.47.55.101]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3uaxh55dw5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 16 Nov 2023 16:47:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lvjQVcUJCm4UPZnFwDWPq/rYejym0GfghdBUUJuTdMBbK1jZvg52Y7//YWF+E0n+kYDt8iMTEuE8ZIEMaTeLblwVyQ24lBlhm5o24YELkpjBA0NGD6qNNfDozU9FQBSFsqtVff5+ZyqAva74+j6mITKpQJTprcNJ8d6gk730VEFi0/Q41ASWCbtGm0mBZKfz4vzKsHy08x5BmaF5faCJTK4nTEvLyRINHYcH0ijl5+5nWcjB1fJaw4za6JlXQ5gtDY9IC2XPz4oT7PfeKy7Qx7oi+6zInIn7MXYV7OVWQbiYoOmGDpuQxnY/pLyq32XksukVkuFpWqLc3T0NqHLw8g== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ojTKNCM3ByJ+OHKuydkNPlcrQB1OthGZopitb/W8ISY=; b=UDuHZgQtas5Pvtx/NYWvQKxv60Ff86Th0xkmx8C2L3SEWmuP6xk958SSBFfoCGFpeXRieHLGr9fbMKlL4t8QuOlzGDqdOA4+pwHOL6UqcvJx8G3Bkh/vXWNCygFMd0TljxPSDOkp9z85qTRtuxyVvvVKWCNOMtQVW1tZs9oBXQ3HEfz1bJlU/YOmEYl+w8omxNH7aGR184XEWxF5Mwgg2KMSzi1canYDIwFkjf3/YVY8utacXRPpWyZmnT0Jm9gCjSThJ6sMX5FDHain29jW4EcTAha6tdvxXjJ1FliblwVSUda3NGzUfpNgZOJ0m4usEiprB5GmV2d9TfVdHgx0kw== 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=ojTKNCM3ByJ+OHKuydkNPlcrQB1OthGZopitb/W8ISY=; b=ynkaa6M1SqncMNMxQZ82gG5T3fm6F9QfL7FShG8/m/9htrH8iIcaGXBuTnvJVmYXj2KQGMP7g4OVoDkKve4t+ZymwwthkvCqyDrrMOt+PkswX8d+A5uX8XpLdMrOoHHmehio/l5dehhuQB2Rb5Gp6Ix0BOdq3QtOblBoIveXqz4= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by SJ0PR10MB4544.namprd10.prod.outlook.com (2603:10b6:a03:2ad::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.31; Thu, 16 Nov 2023 16:46:59 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::3b4c:a669:c229:47b4]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::3b4c:a669:c229:47b4%6]) with mapi id 15.20.6977.029; Thu, 16 Nov 2023 16:46:59 +0000 Thread-Topic: [External] : bmenu for recentf (or abstracting-away bmenu) Thread-Index: AQHaGFFTMch9N7huMk2rsfDb2Bc6wrB9IS/g In-Reply-To: <87pm0afkr5.fsf@laptop.lockywolf.net> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|SJ0PR10MB4544:EE_ x-ms-office365-filtering-correlation-id: 2e4a3881-34bd-4958-b16b-08dbe6c3a6a4 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1CWzVDhDiRWxlTo+7siJSblWqplRFpUyhFdkP6RB9GoIbVqzna+TC0OKeZO5IRWyh3cnU8yYD/qz1iME81GHifoeYwaNlZg1RLR1tZ+uWVQNBNCQBExeFFGiTHMbUwt2qvKfUBc411I8Cuaej6/z8DfZoC1tv/zbvYx7ieiuu6iDu3QgbwoQ81tEP8t4ILXemcVBCCe3jvg/Wptt3oNc+92eq7qr0qOvbNUOwutpeNz5vyLI9xnfJ2296M0ELo447O4dIb/7N1cZGgHqbr5A3Z5ZjNdzXBaetaT+mik6lGrO/nTya2gvQ/wkrqb8urjfvq2qg0EqyPpG7sD9b0i6zzjzjwQNNm65VKja2dwWhoCTJaSQoHxH5ht9dHCuxiPBNpbcaXgBgX0PoAZ21pWw/rRykB8uSuLNr3ZgLi2u3l4c6P/gp2Gw8StkKmnzyK3hqA4Hi4Lv2MzNXmhhXw6/V7gkRRfjz+X6Cpt2kownQBD+ppl67Y6BUrupd+ukUS7VaaFeNPEwSDlBxASFS52bjLktH8doQfITKOx/uw1ubUe4b/4nFHBc+rhZNBofzKyfssUa8sHyVj4S38XUm0N+KCXE2urEwDRtVCHJF3O7e3g= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(136003)(346002)(39860400002)(366004)(396003)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(64756008)(38070700009)(86362001)(966005)(316002)(66556008)(76116006)(66946007)(66476007)(110136005)(66446008)(33656002)(71200400001)(8936002)(8676002)(55016003)(83380400001)(26005)(2906002)(41300700001)(44832011)(9686003)(6506007)(52536014)(5660300002)(7696005)(478600001)(38100700002)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?e3S8Qzu2nfZ8T6I8PyN+y/UljE1yqdYoiCvUmCbBu89I0ro8o8H3tUIouoWH?= =?us-ascii?Q?0xOpQF1juSF7/ZPt3VQjc9zbnl/dBCfeO/hbznJXIvsySGz0iKSYe4QT0t8o?= =?us-ascii?Q?zGAE7aRy+Wb1MtQ6DGKbpBwEFR+ALPzXKvUtJUOQXPSzwB+Dx+PphyhTH+V+?= =?us-ascii?Q?iwcX/iEgh69n1gzlCh+08c0NSw3gWDNgTooVb5fQQNtxSmygoUWAIZdRT1Wx?= =?us-ascii?Q?+FBZQG1oThFTzSKikzLy9QX9yh5N9yD3MlDVJaAi82v9WrHpRB3gTbJuKo9q?= =?us-ascii?Q?gV4bmrpAMdupzdzAc0BWnqnekdBdtrKEQOrYEQrK/o3/VMFYOxRDSgCXFEjB?= =?us-ascii?Q?ra2eSXRBxs7YlRVTqRABxJDuUb38gEMQQzBPE0q2I13uWVW2YofSfxd0ofxL?= =?us-ascii?Q?AtkwjLXFZx7WsP3EKEPvMd+mVtzxVtGtG0x/63sxsPkXzjDwCTG12agbmXSz?= =?us-ascii?Q?3SPI/7ukgZ/JM3L/yRuEJsoQCxQorIy9iu30JVl8Md93i5KCUtcuMd1IbZs8?= =?us-ascii?Q?bHUKKgtKRYVEv1cfT8rV+U4816Lr/s2ypm3tpK/ASs/ePu8U0vxK3arXisPA?= =?us-ascii?Q?cR9JwfExTEEbJntwjDih8BPpC4DPtDRGWjACpUeay34w9QcVdCE2AsGPoIjO?= =?us-ascii?Q?YC X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: yLEUkDfEYH23nk32sfqpTpMiA8FR+fah6XmdjwitsgQj9U4zQskqHLsTd4DKTkpfPNmQlZ4xojTeMHMbqN2mDDHY2THTEv9EOTamkl+SDc4OXWOZngtyP6k5pdYoNaNndjYgMULldrfx4t2ViD3WiGCp9QR8OYupNTiEw1bvz3nVdVHIDqn1kxwBrmBIeDTpyBwMjtm1Xqz6ymShIWcB12yT6r3jeQ5yu4ScHAiGRoQL5fle7IWmWGfHd8VZGRQCavMZGeYjir4zHt7VPSfiUDy4sstqujo/9auvfthvlwLR08w02MaKj4Er2W6zybGF7Mvi/70oqAKu+Dqp+/UlKe670J4Qpr4XUv42K7OzPDiFHhDYOyi9uhc6maLaKB/hBYYDbrJ6/0ZjQy/gw1oaVMXkShc7NQuVbgIMJC5/4Bm1koWhHCIpB/jquO3NJgjxSzUZ6447nP5LqgacEh+UcSqLC3vGHG0DnFUZgf7JEhg36hewPZxZ5OJvANivFkyPtq2w0y/i15Y/T2aKvsKLmrD6UbJrZo8f5/yM71ks5sPYFq1Hupc1si6T0xTqhQHu+rNECeSnb3oitN/LxXtE3HN2skrXF51owRFqnN7n3cQfgtr4Vi4f8OzDYshrLS8asDu36qGDBv7+EgxMzy5D19W+bvDo+RIFzPe5zisSmXu2MgUFO0dclFYIITBNNAd2BCsmUuYUfEJfBcHJc4XGiWT88X++ytvaepKPc/hMtb3VJA Lxf/0h3ARsmibqffDsLaRBQ11fsrlAWBPQx1Answ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e4a3881-34bd-4958-b16b-08dbe6c3a6a4 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Nov 2023 16:46:59.1738 (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: wZzoNJ9Gqw7Z3hvxiD+Vzuj52dkbQofllMyWP1cDYDGm5pF2IyfyZvFLtqSRMfrZsZXzmEij75mz3HFmA4V5mg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB4544 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-16_17,2023-11-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 malwarescore=0 phishscore=0 mlxlogscore=740 adultscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311160131 X-Proofpoint-GUID: PZXQ-IOFtmnIrel-Xn1S78BbkYvUq0LH X-Proofpoint-ORIG-GUID: PZXQ-IOFtmnIrel-Xn1S78BbkYvUq0LH Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145546 Archived-At: > I want to have a buffer-menu for recent files, > in a way similar to bookmarks. Not sure just what you mean by a buffer menu for recent files, similar to bookmarks. But if you use Dired+ then you have these commands, which give you Dired listings of recent files and directories: `diredp-dired-recent-files' and `diredp-dired-recent-dirs'. You can optionally add other files/dirs to such a listing, and optionally exclude files/dirs from it. ___ C-x D R runs the command diredp-dired-recent-files, which is an interactive compiled Lisp function in 'dired+.el'. It is bound to menu-bar subdir diredp-dired-recent-files, C-x D R. (diredp-dired-recent-files BUFFER &optional ARG) Open Dired in BUFFER, showing recently visited files and directories. You are prompted for BUFFER (default: `Recently Visited Files'). With a numeric prefix arg you can enter names of recent files to include or exclude. No prefix arg or a plain prefix arg (`C-u', `C-u C-u', etc.) means list all of the recently used files. With a prefix arg: * If 0, `-', or plain (`C-u') then you are prompted for the `ls' switches to use. * If not plain (`C-u') then: * If >=3D 0 then the files to include are read, one by one. * If < 0 then the files to exclude are read, one by one. When entering files to include or exclude, use `C-g' to end. The file listing is sorted by option `diredp-default-sort-arbitrary-function', if non-nil. If nil (the default) then the listing is in reverse chronological order of opening or writing files you access. Use `g' to revert the buffer, as usual. If you use it without a prefix arg then the same files are relisted. A prefix arg is handled as for `C-x D R itself. When called from Lisp, ARG corresponds to the raw prefix arg. ___ C-x D r runs the command diredp-dired-recent-dirs, which is an interactive compiled Lisp function in 'dired+.el'. It is bound to menu-bar subdir diredp-dired-recent-dirs, C-x D r. (diredp-dired-recent-dirs BUFFER &optional ARG) Open Dired in BUFFER, showing recently visited directories. Like `diredp-dired-recent-files', but limited to recent directories. A directory is recent if any of its files is recent. ___ You can sort such a listing in various ways, but you need to use `C-M-L' (aka `C-M-S-l') to do so - you can't use the ordinary Dired sort commands, such as `s'. You're prompted for the sort order for such buffers: * Last-access order, most recent first (default) * Last-access order, least recent first * A-Z (alphabetical), by last part of file/dir name * A-Z, by full file/dir name * Z-A, by last part of name * Z-A, by full name The default sort order is determined by option `diredp-default-sort-arbitrary-function'. It defaults to most recent first. ___ https://www.emacswiki.org/emacs/DiredPlus https://www.emacswiki.org/emacs/download/dired%2b.el