From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#44297: [Feature request] project.el: Additional utility functions Date: Thu, 29 Oct 2020 23:57:07 +0000 Message-ID: <87wnz8io18.fsf@tcd.ie> References: <1785587458.69035.1603939939547@ichabod.co-bxl> <871rhhv4q8.fsf@mail.linkov.net> <64182b62-dad4-08db-379b-acfddea26327@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10415"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 44297@debbugs.gnu.org, leungbk@mailfence.com, Juri Linkov To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 30 00:58:25 2020 Return-path: Envelope-to: geb-bug-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 1kYHoH-0002Zh-K9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 00:58:25 +0100 Original-Received: from localhost ([::1]:58076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYHoG-0007i6-J9 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Oct 2020 19:58:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYHnu-0007h5-Mx for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 19:58:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYHnu-0004Fx-EC for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 19:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYHnu-0001hb-BN for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 19:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Oct 2020 23:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44297 X-GNU-PR-Package: emacs Original-Received: via spool by 44297-submit@debbugs.gnu.org id=B44297.16040158446498 (code B ref 44297); Thu, 29 Oct 2020 23:58:02 +0000 Original-Received: (at 44297) by debbugs.gnu.org; 29 Oct 2020 23:57:24 +0000 Original-Received: from localhost ([127.0.0.1]:55472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYHnH-0001gj-T0 for submit@debbugs.gnu.org; Thu, 29 Oct 2020 19:57:24 -0400 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:46529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYHn8-0001gN-TD for 44297@debbugs.gnu.org; Thu, 29 Oct 2020 19:57:22 -0400 Original-Received: by mail-wr1-f53.google.com with SMTP id k10so3266729wrw.13 for <44297@debbugs.gnu.org>; Thu, 29 Oct 2020 16:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7dli3ieFfDlPM+9X9L1IJuVFac/Zx5D967nRsODQu2s=; b=AewCbm4j6MpfCgkq6oZTS8zpdq2DqUuhZDEaJOhagfYwT8WoMtZxtcBozy+W6cvf+v /x16Qb21xYcPyPAuIdAPqACUs1T/rM7Uzejb7tHDGHYqXVq4M5cXDTbrhfPtLdp1Kx7x hqw1BXJysUsoTJa4rm1PHN3BtJ4L/XmR5cnc0ElXtF7FKd4JwVM86DkzDLNywQTonGtQ PPll2yzyz5anXKgOnanPoiBv/7BTwEdHinlxA94qujNpFwpgrRq3hCOlbCiLjnPMrs3I QbUkA/lYsZvuczHEN+zNhGpY2g/mimmh7ksjRl2s+L1IAF06dJSTVlogizHNBks1DW1S izSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7dli3ieFfDlPM+9X9L1IJuVFac/Zx5D967nRsODQu2s=; b=G6v9SB0/Xq0n5V4jkAGVk3zPcmlt3gYXRL8UEkEBin0kyhsAOb3DqBFByJ2RHYjphJ BaQRYTpub1e69ipl4rXC9sOp5ZNNkwoRt0y4ysQTHEH8UZK5ETgSGLdcPTrC/En8ox3h CcWMBmtDJwbieoKM2salmOhTntsoFqD0unpgY2E7AYb7zs4MHPYxCY28jXRPuL1SZR7N QO5SdChFQlk64ebsQT5CU2dPuuUErel606pyG6dmitGBHQAmcjH2GyYDE9t3clNgtdN0 YdA2WS+jYf9jDRciQO06bhpx2Lb7iiAtS2lAlMwpWw9KZD3b92EBme/vlJr85qDUudO1 ji2g== X-Gm-Message-State: AOAM53326tUtWms+BCBGpRyG+jjSAn/cAafxMg5FVa+PGYTNt6LNcJIu sorwL3U7WAQJI2RKO310/Jv+yA== X-Google-Smtp-Source: ABdhPJysVn7lE/yiNxS/Q/VqOKFJaVdWU+f1tGu7pU2ghD1FuDmy+FFpu7Lptq5XIHpmZ1zjQVy3Tw== X-Received: by 2002:adf:a405:: with SMTP id d5mr8837952wra.421.1604015829006; Thu, 29 Oct 2020 16:57:09 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2]) by smtp.gmail.com with ESMTPSA id v6sm2245289wmj.6.2020.10.29.16.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 16:57:08 -0700 (PDT) In-Reply-To: <64182b62-dad4-08db-379b-acfddea26327@yandex.ru> (Dmitry Gutov's message of "Fri, 30 Oct 2020 01:20:21 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192022 Archived-At: Dmitry Gutov writes: > On 29.10.2020 11:03, Juri Linkov wrote: >>> It would be nice if project.el had the following interactive functions: >>> >>> project-find-other-file: Find a file with the same basename as the current file but a different extension >> Maybe then it should be named project-find-other-extension? >> Otherwise, project-find-other-file might imply a similarity >> with find-alternate-file (C-x C-v). > > I think the term is pretty much established: > https://www.emacswiki.org/emacs/FindOtherFile > > Projectile also has a command with a similar name. > > The feature will be pretty C/C++-centric Not if it's customised via ff-other-file-alist or similar. > , but I suppose it's useful enough. > What I don't understand, is why should it be in the project- namespace? Looking > for a file with the same name in the current dir doesn't execute the notion of > the current project, even a little bit. > > Projectile does a project-wide search for a file with the same basename (but a > different extension). Is that actually useful? Maybe when e.g. headers and source files are in different directories? I don't know whether that's already supported by find-file.el. -- Basil