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#59756: [PATCH] Use file-name-nondirectory to determine project-name Date: Fri, 02 Dec 2022 10:08:42 +0200 Message-ID: <831qpigrcl.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31290"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dgutov@yandex.ru, 59756@debbugs.gnu.org To: Randy Taylor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 02 09:10:33 2022 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 1p117v-0007x3-Kt for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Dec 2022 09:10:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p117U-0008Vg-VH; Fri, 02 Dec 2022 03:10:05 -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 1p117S-0008VC-AH for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 03:10:02 -0500 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 1p117R-0004nK-Uz for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 03:10:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p117R-0003Ua-Qv for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 03:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2022 08:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59756 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 59756-submit@debbugs.gnu.org id=B59756.166996855413407 (code B ref 59756); Fri, 02 Dec 2022 08:10:01 +0000 Original-Received: (at 59756) by debbugs.gnu.org; 2 Dec 2022 08:09:14 +0000 Original-Received: from localhost ([127.0.0.1]:45199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p116g-0003UB-09 for submit@debbugs.gnu.org; Fri, 02 Dec 2022 03:09:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p116e-0003U4-7j for 59756@debbugs.gnu.org; Fri, 02 Dec 2022 03:09:12 -0500 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 1p116Y-0004cI-U4; Fri, 02 Dec 2022 03:09:06 -0500 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=cxkwM/kS5lExq8Z+PgtwWz+tt8cVmBH2TKDytsxdV68=; b=OY6md7Z5U5BC kVzK1W46/0GlHg/vZMt/LJrG0Xv0VUfL6dL37CkkflITzvGB4OEiHLPZI8dkNghoScvnNVxCR0T37 1+lLDla11gdZ8yF5WMxJpbSQ8phpwVtnVVd7JHFyjQIJ7m3iIGHCGGPCv/rthu7q2BoDoaNfQoEOS EzEBM4xkAsm/3GIhHd/HngbjyqzjdpMqhKmRZBv8fpFJKGAVHmaGth+agxtsCPJXmUgILb8e/MPFn vZDHAT6HFmiR2yosaxD/z6RXocxDPmxRweKcs8qCLSSvAytr7uvzna3RuJ0zwfLrASEB5qSeDIUao Sc3o9jzQToUtPap0P71o7A==; 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 1p116Y-0002oe-5t; Fri, 02 Dec 2022 03:09:06 -0500 In-Reply-To: (message from Randy Taylor on Fri, 02 Dec 2022 03:34:30 +0000) 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:249717 Archived-At: > Cc: dgutov@yandex.ru > Date: Fri, 02 Dec 2022 03:34:30 +0000 > From: Randy Taylor > > If a project is named something like ".emacs.d", file-name-base will return ".emacs" instead of ".emacs.d" as > expected (or at least as I expect it). > > Therefore, we use file-name-nondirectory instead. Why do we want to support such project names? I could also name my project /foo/bar/baz, and defeat file-name-nondirectory as well. Where does it end? My suggestion is to require that project names don't include slashes, backslashes, periods and maybe also colon characters.