From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: daanturo Newsgroups: gmane.emacs.bugs Subject: bug#56355: 29.0.50; Implement file-parent-directory Date: Sat, 2 Jul 2022 19:02:42 +0700 Message-ID: References: <0f199ed7-abef-d74c-b5fd-c9c81978c143@gmail.com> <83wncvbuht.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23110"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Cc: 56355@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 02 14:03:42 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 1o7bqf-0005pf-0G for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Jul 2022 14:03:41 +0200 Original-Received: from localhost ([::1]:44480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7bqe-0007i2-1b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Jul 2022 08:03:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7bq2-0007Jc-M9 for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2022 08:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46168) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7bq2-0007qy-DJ for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2022 08:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o7bq2-0004Oj-B5 for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2022 08:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: daanturo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jul 2022 12:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56355 X-GNU-PR-Package: emacs Original-Received: via spool by 56355-submit@debbugs.gnu.org id=B56355.165676337516870 (code B ref 56355); Sat, 02 Jul 2022 12:03:02 +0000 Original-Received: (at 56355) by debbugs.gnu.org; 2 Jul 2022 12:02:55 +0000 Original-Received: from localhost ([127.0.0.1]:40061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7bpv-0004O2-0y for submit@debbugs.gnu.org; Sat, 02 Jul 2022 08:02:55 -0400 Original-Received: from mail-pj1-f47.google.com ([209.85.216.47]:39646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7bpr-0004Nj-BJ for 56355@debbugs.gnu.org; Sat, 02 Jul 2022 08:02:53 -0400 Original-Received: by mail-pj1-f47.google.com with SMTP id b12-20020a17090a6acc00b001ec2b181c98so8935298pjm.4 for <56355@debbugs.gnu.org>; Sat, 02 Jul 2022 05:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=g1dQjXZL4PDWkiC3OZrJBseYD8HRhdBUdFhTvpI4xJ0=; b=j7oz9gWlUUIUn5a8VMbrUmNTm92v+4klgBn5zKxISw918qU6brF6wykliZk5i33b8G lIt5X27WKCsXZ6I3aIryYWs8JWkWyGOYArrH8m7qKgw05ZHqSj1/eDf/aY+XwSTMNUMc UUHDHx91dZvPFkG8m6bds6He7AQLlNfX2hA7feI/X00S6CMR+P7U8kFCQjPeEvGZa9m6 3CPYgXcYr5oPmFDXXTRejVCnkDQNmGfYvz13yAp4ogP11GZMnZHvaqjMPh5hJWTijVPY 0NrwnOK941YKgIT0EP33FToQeZUhmxqTBMdTfdYVzttFPZN/fvulep58/zxjcH+9w+ek 8aHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=g1dQjXZL4PDWkiC3OZrJBseYD8HRhdBUdFhTvpI4xJ0=; b=Qy5D32COeXv4dOe6bbK19FZ9xj9Od+uhHV3dXbf0eMVEwKeNgSxo7J/SeBMA3jyffi tt1qv84PSS2lCC+QeBiYkGXBWcxs8cT1Fn0yNQVJLfy6is6X93Rpk61BwIYo3rnzan4q 0UX/0dLIL0kKyMONp9srUx97bqcsSGg9IFifvgrPH1Y1/Z6epmpyb7FYBH3M6hsobSn9 GJycK/EiJrtxIgu3K7odnuehLQEV+b0vQKpQPmRLd3yaHCcoeme6gd9+pUhEM3NZo73B WP7fmuTQMXPZ/z0lxmtc3+/UfcFQRZ7U5rCcPywE8/XVBph+Kev8cbik2ytsSyVmyFs5 dtqg== X-Gm-Message-State: AJIora/YW5LjQHinbqyVdn4MjYY8FvsQVg4gz6mFXg+sB8YZYBqi+asK usWYdiCrMtLQVh2rRmGsnXJrI2ranxw= X-Google-Smtp-Source: AGRyM1uIBzOPLysGZWgSq/wMWi77wjFS49us3LGzceXuaA5bXeqOKxvwv74X7SYLdKAwzNkTbvisVg== X-Received: by 2002:a17:902:e849:b0:16a:35ed:6e10 with SMTP id t9-20020a170902e84900b0016a35ed6e10mr26179163plg.125.1656763365408; Sat, 02 Jul 2022 05:02:45 -0700 (PDT) Original-Received: from ?IPV6:2001:ee0:4fcc:47b0:39d0:f27b:59a8:5802? ([2001:ee0:4fcc:47b0:39d0:f27b:59a8:5802]) by smtp.gmail.com with ESMTPSA id u4-20020a170902714400b0015e8d4eb28fsm17361233plm.217.2022.07.02.05.02.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Jul 2022 05:02:45 -0700 (PDT) Content-Language: en-US In-Reply-To: <83wncvbuht.fsf@gnu.org> 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:235894 Archived-At: On 7/2/22 18:54, Eli Zaretskii wrote: > Thanks, but it looks as a very thin wrapper around > file-name-directory, so I wonder whether we really need a separate > function fir this. file-name-directory doesn't work when the input has a trailing "/", such as "/home/" when we expect "/" as the return value. Also this one handles "~" => "/home/". -- Daanturo.