From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#28258: 26.0.50; [PATCH] Let file-name-base succeed when buffer-file-name is nil Date: Tue, 19 Sep 2017 08:31:29 +0000 Message-ID: References: <87k21o8m8x.fsf@rose> <1188947996.68721.1504023031457@webmail.mailhostbox.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="001a113b1160374ecc055986b0dd" X-Trace: blaine.gmane.org 1505809942 4284 195.159.176.226 (19 Sep 2017 08:32:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2017 08:32:22 +0000 (UTC) Cc: 28258@debbugs.gnu.org, Mohammed Sadiq To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 19 10:32:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duDwx-0000hl-OX for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 10:32:11 +0200 Original-Received: from localhost ([::1]:40778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duDx5-0005Z8-5B for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 04:32:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duDws-0005Vi-29 for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:32:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duDwo-0006ax-2M for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:32:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38540) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duDwn-0006ap-UU for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:32:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duDwn-0008Ds-It for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 08:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28258 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 28258-submit@debbugs.gnu.org id=B28258.150580990831086 (code B ref 28258); Tue, 19 Sep 2017 08:32:01 +0000 Original-Received: (at 28258) by debbugs.gnu.org; 19 Sep 2017 08:31:48 +0000 Original-Received: from localhost ([127.0.0.1]:47221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duDwa-000853-FW for submit@debbugs.gnu.org; Tue, 19 Sep 2017 04:31:48 -0400 Original-Received: from mail-io0-f173.google.com ([209.85.223.173]:51181) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duDwY-0007yW-7z for 28258@debbugs.gnu.org; Tue, 19 Sep 2017 04:31:46 -0400 Original-Received: by mail-io0-f173.google.com with SMTP id w94so8196158ioi.7 for <28258@debbugs.gnu.org>; Tue, 19 Sep 2017 01:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JTw897Xku9RwqZu5yd/LTAmM7Y+GlVBcvXL3arxI/rU=; b=nIWTuPmNHgq0TvPLH1oT/7tVwr9f1/3X4ITBkD0ggWS7SVK86yYuYLxUbnxqfkMVYP yubKwg8Mkl0qbZwzMz6Z3T3zpd8RPXlCtXCoCNiUlpEfGVbAYIuDc7EuDfWia/UGNr1g Vv1ZSM05rLMbTAH0yygvmv57E4Nzy62pDgy5kmA4TdPu+PKluIg1Xehpy9ByiMb01pKH 94/sas5Nh2aeGAAdQ+NwtQ6VsM066zaG+88akINjWBeQxcrxyiykWD1DTmoda6kFO3Ye SxfmrOhhg5kVkryHJTuH9hYKfY85ZfLKlgsBU8vFSh5Jee3GZ7CILbsMU6PG71D6lufS 0UZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JTw897Xku9RwqZu5yd/LTAmM7Y+GlVBcvXL3arxI/rU=; b=UvCxhaP104BHxwil2kFIutZ4BDgbwhqQJwtO9v+1/OYbrnEXUTStRH8XGFKSFDO20p 3UnEqwVPrx0YE4BuKlJ5SVqM5iBxmbKMpVDigevOXVJssdtf7m4QwJYwBUDyQdwBUT7j PM0XLPdSZCYyVtgpZ8A2MvhPBVhQJFX1nu9tj97ueA7Kg3CefnYA3++tPhFfCwGrtBjf X1/DrsJOlNgG9mIYC5kf1NrzTS8Cg4LZAgb501UGEG7qmpcy2Dirf+WzGD4BjARKMXE1 zl/xR2yijEs5BFyHRkBoq5LQzlP6RaDoPcvWd79WtIg/gMuhpmNBMso+kc48tEl4Waxv Sd4Q== X-Gm-Message-State: AHPjjUgREK5XCE76uOAzVkyLQ6ik6xOPDJdRNN1LhjPJL8tO0Tb2oPix ZvYZ68KXn1LVOonY9QYRrnpbRxN7awmR3zru2Q8= X-Google-Smtp-Source: AOwi7QBdetN5B97Pp1Mq+LDTseL2ytC183Z1GNxrveG2R3FaPUhigo1l730tW70gCo/S7t/3hosK5/mJxD9acWwzaQo= X-Received: by 10.202.81.138 with SMTP id f132mr560177oib.273.1505809900447; Tue, 19 Sep 2017 01:31:40 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137114 Archived-At: --001a113b1160374ecc055986b0dd Content-Type: multipart/alternative; boundary="001a113b1160374ec6055986b0db" --001a113b1160374ec6055986b0db Content-Type: text/plain; charset="UTF-8" Glenn Morris schrieb am Di., 19. Sep. 2017 um 02:41 Uhr: > > > I do agree that the calling convention of `file-name-base' is odd. How > > about making the argument mandatory (initially only by changing the > > advertised calling convention and the docstring)? > > Sounds good to me. > OK, here's a patch. --001a113b1160374ec6055986b0db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Glenn = Morris <rgm@gnu.org> schrieb am Di= ., 19. Sep. 2017 um 02:41=C2=A0Uhr:

> I do agree that the calling convention of `file-name-base' is odd.= How
> about making the argument mandatory (initially only by changing the > advertised calling convention and the docstring)?

Sounds good to me.

OK, here's a pat= ch.=C2=A0
--001a113b1160374ec6055986b0db-- --001a113b1160374ecc055986b0dd Content-Type: text/plain; charset="US-ASCII"; name="0001-lisp-files.el-file-name-base-Make-FILENAME-argument-ma.txt" Content-Disposition: attachment; filename="0001-lisp-files.el-file-name-base-Make-FILENAME-argument-ma.txt" Content-Transfer-Encoding: base64 Content-ID: <15e99437c614392b6bc1> X-Attachment-Id: 15e99437c614392b6bc1 RnJvbSA4YWI2NmI1NGFmZGMwMmFjYTkwYTRjNTFhNDI2MjA1YWMwMjRmZjA1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGc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