From debbugs-submit-bounces@debbugs.gnu.org Sat May 28 22:21:22 2016 Received: (at submit) by debbugs.gnu.org; 29 May 2016 02:21:22 +0000 Received: from localhost ([127.0.0.1]:45176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6qLy-0005fp-5x for submit@debbugs.gnu.org; Sat, 28 May 2016 22:21:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6q6z-0005Ii-3p for submit@debbugs.gnu.org; Sat, 28 May 2016 22:05:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6q6t-00084U-4R for submit@debbugs.gnu.org; Sat, 28 May 2016 22:05:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6q6t-00084I-19 for submit@debbugs.gnu.org; Sat, 28 May 2016 22:05:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6q6q-0007IC-Tk for bug-gnu-emacs@gnu.org; Sat, 28 May 2016 22:05:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6q6n-00083D-M2 for bug-gnu-emacs@gnu.org; Sat, 28 May 2016 22:05:44 -0400 Received: from outgoing-tmp.csail.mit.edu ([128.30.2.206]:58758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6q6n-00082b-Hi for bug-gnu-emacs@gnu.org; Sat, 28 May 2016 22:05:41 -0400 Received: from wolff.csail.mit.edu ([128.30.92.78] helo=localhost) by outgoing-tmp.csail.mit.edu with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b6q6m-00020o-IQ for bug-gnu-emacs@gnu.org; Sat, 28 May 2016 22:05:40 -0400 Content-Type: text/plain; charset=UTF-8 From: Thomas Emile Bourgeat To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Documentation of file-name-sans-extension seems wrong Date: Sat, 28 May 2016 22:04:40 -0400 Message-Id: <1464487146-sup-1981@wolff.csail.mit.edu> User-Agent: Sup/0.20.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 28 May 2016 22:21:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) (file-name-sans-extension "foo.bar") produces "foo" when the documentation suggests it should produce "foo.": > Return FILENAME sans final "extension". > The extension, in a file name, is the part that follows the last ‘.’, > except that a leading ‘.’, if any, doesn’t count. In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.25) of 2015-10-30 Repository revision: 9c36df736b89490d14a5b5109c9c00209a0c25f5 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.4 (jessie) Configured features: XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 From debbugs-submit-bounces@debbugs.gnu.org Sun May 29 11:02:20 2016 Received: (at 23643-done) by debbugs.gnu.org; 29 May 2016 15:02:20 +0000 Received: from localhost ([127.0.0.1]:46546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b72EN-00027q-VY for submit@debbugs.gnu.org; Sun, 29 May 2016 11:02:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b72EM-00027e-WD for 23643-done@debbugs.gnu.org; Sun, 29 May 2016 11:02:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b72ED-0004LA-N5 for 23643-done@debbugs.gnu.org; Sun, 29 May 2016 11:02:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b72ED-0004Kw-JW; Sun, 29 May 2016 11:02:09 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3156 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b72EB-000458-Nj; Sun, 29 May 2016 11:02:08 -0400 Date: Sun, 29 May 2016 18:02:22 +0300 Message-Id: <838tysykjl.fsf@gnu.org> From: Eli Zaretskii To: Thomas Emile Bourgeat In-reply-to: <1464487146-sup-1981@wolff.csail.mit.edu> (message from Thomas Emile Bourgeat on Sat, 28 May 2016 22:04:40 -0400) Subject: Re: bug#23643: 25.0.50; Documentation of file-name-sans-extension seems wrong References: <1464487146-sup-1981@wolff.csail.mit.edu> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 23643-done Cc: 23643-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > From: Thomas Emile Bourgeat > Date: Sat, 28 May 2016 22:04:40 -0400 > > (file-name-sans-extension "foo.bar") produces "foo" when the > documentation suggests it should produce "foo.": > > > Return FILENAME sans final "extension". > > The extension, in a file name, is the part that follows the last ‘.’, > > except that a leading ‘.’, if any, doesn’t count. Thanks for the report. I'm not quite sure which part of the doc string led you to believe that "foo." should be produced: the "follows" part or the "leading `.'" part. So I went ahead and clarified both for the next release. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 04 03:54:06 2016 Received: (at 23643-done) by debbugs.gnu.org; 4 Jun 2016 07:54:06 +0000 Received: from localhost ([127.0.0.1]:53688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b96PF-00032D-TP for submit@debbugs.gnu.org; Sat, 04 Jun 2016 03:54:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b96PE-00031k-Oh for 23643-done@debbugs.gnu.org; Sat, 04 Jun 2016 03:54:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b96P5-0005Au-IW for 23643-done@debbugs.gnu.org; Sat, 04 Jun 2016 03:53:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b96P5-0005Aj-Es; Sat, 04 Jun 2016 03:53:55 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2297 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b96P3-0002T4-Ix; Sat, 04 Jun 2016 03:53:54 -0400 Date: Sat, 04 Jun 2016 10:54:22 +0300 Message-Id: <83oa7hwfrl.fsf@gnu.org> From: Eli Zaretskii To: Thomas =?utf-8?Q?=C3=89mile?= Bourgeat In-reply-to: <1464629243-sup-9961@wolff.csail.mit.edu> (message from Thomas =?utf-8?Q?=C3=89mile?= Bourgeat on Mon, 30 May 2016 13:40:16 -0400) Subject: Re: bug#23643: 25.0.50; Documentation of file-name-sans-extension seems wrong References: <1464487146-sup-1981@wolff.csail.mit.edu> <838tysykjl.fsf@gnu.org> <1464629243-sup-9961@wolff.csail.mit.edu> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 23643-done Cc: 23643-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > From: Thomas Émile Bourgeat > Date: Mon, 30 May 2016 13:40:16 -0400 > > Just for information, the "follows" part confused me (I thought that the part > that follows "a" in "abc" is "bc" and not "abc"). Although, even if we assume > that follows is "non-strict", and that the extension contains also the dot, > then the documentation of file-name-extension is incorrect. In the two > documentations functions "extension" is defined the same way The extension is clearly not defined the same way in these two functions. But I've seen a similar issue with file-name-extension, and fixed that as well. The doc strings now say (defun file-name-sans-extension (filename) "Return FILENAME sans final \"extension\". The extension, in a file name, is the part that begins with the last `.', except that a leading `.' of the file name, if there is one, doesn't count." (defun file-name-extension (filename &optional period) "Return FILENAME's final \"extension\". The extension, in a file name, is the part that begins with the last `.', excluding version numbers and backup suffixes, except that a leading `.' of the file name, if there is one, doesn't count. Return nil for extensionless file names such as `foo'. Return the empty string for file names such as `foo.'. By default, the returned value excludes the period that starts the extension, but if the optional argument PERIOD is non-nil, the period is included in the value, and in that case, if FILENAME has no extension, the value is \"\"." From unknown Sat Jun 21 03:30:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 02 Jul 2016 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator