From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62621: 29.0.60; uniquify can't make buffers unique based on things other than filename Date: Sun, 02 Apr 2023 20:57:08 +0300 Message-ID: <83fs9iw4jv.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34813"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62621@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 02 20:00:16 2023 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 1pj200-0008sx-6p for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Apr 2023 20:00:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pj1wu-0007UQ-HE; Sun, 02 Apr 2023 13:57:04 -0400 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 1pj1wt-0007Tt-KW for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 13:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pj1wt-0004E0-Cr for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 13:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pj1wt-0003Ur-0q for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 13:57:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2023 17:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62621 X-GNU-PR-Package: emacs Original-Received: via spool by 62621-submit@debbugs.gnu.org id=B62621.168045821913413 (code B ref 62621); Sun, 02 Apr 2023 17:57:02 +0000 Original-Received: (at 62621) by debbugs.gnu.org; 2 Apr 2023 17:56:59 +0000 Original-Received: from localhost ([127.0.0.1]:42609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pj1wp-0003UH-FJ for submit@debbugs.gnu.org; Sun, 02 Apr 2023 13:56:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pj1wl-0003Tx-Qq for 62621@debbugs.gnu.org; Sun, 02 Apr 2023 13:56:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pj1wf-0004CQ-O5; Sun, 02 Apr 2023 13:56:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HME1xggYo2VzEnIhPPEzWIYWOx43Af+hYzFgh3mf3rI=; b=K9hVxGRPZ1tG MFNTDU7TQ5FFUAW93MdAVIhYrz8XGLx+tsGvzGE4bQi5kgulVi/DHAcJihQ/SBjCPt+w0LYk8cs2S JAvhqpKJTZHtlaB9Nh3ywAI6scYKosnXZ/Jbz1kEv8L5j9B4qNnXtugXzzNwYHntNQ9YcBJVR5pFH dd8Zctrqv6KWlOxwgy3Ko2aSwN09lxqg+LDV8XBmmpC/UGoktHVy1STskVQLbfrdYD2Chr0G+noiP ZnBRQMlmcmRXtmVuJK41zz0z4ghNjxUm+sSJH5dUrgOcaZDdq3U+oa3iDVsorIrH44oA+oOGWVnRg 9p0iZD9emVCPvjupN6iXIw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pj1wf-0004PN-BN; Sun, 02 Apr 2023 13:56:49 -0400 In-Reply-To: (message from Spencer Baugh on Sun, 02 Apr 2023 13:37:36 -0400) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259123 Archived-At: > From: Spencer Baugh > Date: Sun, 02 Apr 2023 13:37:36 -0400 > > > I have a lot of buffers visiting files with the same basename, in > directory paths which have long meaningless numeric identifiers. This > means that with uniquify, I get buffers named things like: > > foo, foo, foo > > This is not much better than foo<1>, foo<2>, foo<3> for me. > > What would be great is if uniquify could use things other than the > filename when making unique buffer names. > > For example, project-name from project.el is something that *is* > unique for these files, because of my custom project.el integration. > Then I'd get something like: > > foo, foo, foo > > However, uniquify is currently not customizable in this way. Could we > add support for including additional attributes into the things which > uniquify will use? Then I could add project-name as one of those > attributes in my configuration, and I'd be happy. > > I would be happy to implement this feature in uniquify myself, if this > is an interesting feature for upstream. Sounds like a useful feature indeed, provided that the customization will allow more or less arbitrary uniquification, not just by project names. Also, please keep in mind that a single project could have files named the same in different directories.