From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 10 17:42:51 2018 Received: (at submit) by debbugs.gnu.org; 10 Nov 2018 22:42:51 +0000 Received: from localhost ([127.0.0.1]:45160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLbxq-00061B-0C for submit@debbugs.gnu.org; Sat, 10 Nov 2018 17:42:51 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLbxn-00060y-VU for submit@debbugs.gnu.org; Sat, 10 Nov 2018 17:42:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLbxg-0005Vz-QX for submit@debbugs.gnu.org; Sat, 10 Nov 2018 17:42:42 -0500 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]:44720) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gLbxd-0005TR-Gs for submit@debbugs.gnu.org; Sat, 10 Nov 2018 17:42:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLbxa-000786-97 for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2018 17:42:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLbxP-0005Ge-Dt for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2018 17:42:29 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:38736) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gLbxP-0005Cr-2a for bug-gnu-emacs@gnu.org; Sat, 10 Nov 2018 17:42:23 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wAAMd0BK010578 for ; Sat, 10 Nov 2018 22:42:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=yFzCu9JbDwG0tSsFAGflBjxdxpkKhfPY8PLIqtNfF5g=; b=SzexO0M8WsBBWZ7bP++IKzbEoEduvFt1BWlEFwzwXV/Uw7UwNaaGYBEc2ZM/pCD6sVvw gfOiLK9eM4m18cEicmQH1Bvmo1hUUI0SsEDNkmNPN9BBjzxas2t59+vucZ3Ik576dtdS Bk/B5EAQyqSJCtt/gGV5iPBHlHXbnOejGttRbCcBlxT3RRayTvlYqoZ3cor4+m7Bkik1 yBSzzBzyD1CUCDVX5I2n2kx/UgK+6YZ8k2HVF4YWP4qFARhcldmij7/EsfXfsOeWQlba INk8Htu2wwlsT2vHqCUd+okeh7xRcfw5w/K7yPGPmq1Xm27M1XdQKc7GAnwNQt6QTVPX sQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2nnwc08v44-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 10 Nov 2018 22:42:18 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wAAMgHZs023505 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 10 Nov 2018 22:42:17 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wAAMgHSg008695 for ; Sat, 10 Nov 2018 22:42:17 GMT MIME-Version: 1.0 Message-ID: <1c69fed6-2e30-46a2-92dd-7f8ae6d62928@default> Date: Sat, 10 Nov 2018 14:42:16 -0800 (PST) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 26; doc string of `write-file` X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4756.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9073 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=973 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811100179 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 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-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: -5.0 (-----) "If you specify just a directory name as FILENAME, that means to use the default file name but in that directory. You can also yank the default file name into the minibuffer to edit it, using M-n." "The default file name" is undefined. How is a user to know what we mean? It turns out that in this particular case what we mean is this: (file-name-nondirectory (or buffer-file-name (buffer-name))) Not obvious from the description. To start with, the doc string should say that it prompts for a file name. If the current buffer is visiting a file then that file's name is the default file name for reading. Otherwise the buffer name is the default file name for reading. The last part could be more exact. The default name in that case is actually this: (expand-file-name (file-name-nondirectory (buffer-name)) default-directory)=20 In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30 Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea Windowing system distributor `Microsoft Corp.', version 10.0.16299 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3'' From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 11 11:21:02 2018 Received: (at 33339-done) by debbugs.gnu.org; 11 Nov 2018 16:21:02 +0000 Received: from localhost ([127.0.0.1]:46608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLsTt-00028s-QU for submit@debbugs.gnu.org; Sun, 11 Nov 2018 11:21:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLsTr-00028S-ON for 33339-done@debbugs.gnu.org; Sun, 11 Nov 2018 11:21:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLsTh-0003gr-8L for 33339-done@debbugs.gnu.org; Sun, 11 Nov 2018 11:20:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLsTh-0003gf-1X; Sun, 11 Nov 2018 11:20:49 -0500 Received: from [176.228.60.248] (port=1132 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gLsTd-0002Vk-Ty; Sun, 11 Nov 2018 11:20:47 -0500 Date: Sun, 11 Nov 2018 18:20:36 +0200 Message-Id: <83h8gna8mj.fsf@gnu.org> From: Eli Zaretskii To: Drew Adams In-reply-to: <1c69fed6-2e30-46a2-92dd-7f8ae6d62928@default> (message from Drew Adams on Sat, 10 Nov 2018 14:42:16 -0800 (PST)) Subject: Re: bug#33339: 26; doc string of `write-file` References: <1c69fed6-2e30-46a2-92dd-7f8ae6d62928@default> 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: -5.0 (-----) X-Debbugs-Envelope-To: 33339-done Cc: 33339-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: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Sat, 10 Nov 2018 14:42:16 -0800 (PST) > From: Drew Adams > > "If you specify just a directory name as FILENAME, that means to use > the default file name but in that directory. You can also yank > the default file name into the minibuffer to edit it, using M-n." > > "The default file name" is undefined. It is defined by the very next paragraph of the doc string. I made it even more clear. > To start with, the doc string should say that it prompts for a file > name. If the current buffer is visiting a file then that file's name is > the default file name for reading. Otherwise the buffer name is the > default file name for reading. This is incorrect when the user specifies just the directory name at the prompt. I clarified that only the base name is taken from the buffer. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 11 11:55:34 2018 Received: (at 33339-done) by debbugs.gnu.org; 11 Nov 2018 16:55:34 +0000 Received: from localhost ([127.0.0.1]:46647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLt1K-000502-FC for submit@debbugs.gnu.org; Sun, 11 Nov 2018 11:55:34 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:57034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLt1I-0004zm-Hf for 33339-done@debbugs.gnu.org; Sun, 11 Nov 2018 11:55:33 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wABGswFs053704; Sun, 11 Nov 2018 16:55:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=bIkSOg3g0Y0qkB3/VvzCQbhw0UiZigrhAPd0uf5ob5E=; b=QRdMywMYI3GHSw55wdQSfcVKXROtKWL2IHHX6uY8lEYTS4V8d9CpwzbfK5SR/plQuXSj GIixk545oL9FnGoCvUa2HLh1SCrUAbMPJOqa14f8SAGb8ogCYXUkV6Hlz4LK5ROK8pEq XSJDbSlsbAY7xgTHLgfR4vYbkJEoSQwacMa7gREwa0gKgdfyFX31MbDZI1PymNWQq8cr itgGXvZF8bSSEDxMQZMu8XnE/TtPWWmPz7MtsdSpEg/IHn94lUZk40MF4GwvbraLLH3A tz7ZEEQwYXFPqgapyHC8cImhsvKlmLdKVKK/D+Ck1B8ZSwz+HJMPL4R+8u3BZ9IXzoD2 Zg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2nnwc0a85h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 11 Nov 2018 16:55:26 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wABGtQSR031576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 11 Nov 2018 16:55:26 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wABGtQXF026906; Sun, 11 Nov 2018 16:55:26 GMT MIME-Version: 1.0 Message-ID: Date: Sun, 11 Nov 2018 08:55:25 -0800 (PST) From: Drew Adams To: Eli Zaretskii , Drew Adams Subject: RE: bug#33339: 26; doc string of `write-file` References: <<1c69fed6-2e30-46a2-92dd-7f8ae6d62928@default>> <<83h8gna8mj.fsf@gnu.org>> In-Reply-To: <<83h8gna8mj.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4756.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9074 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=876 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811110161 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33339-done Cc: 33339-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: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > "If you specify just a directory name as FILENAME, that means to use > > the default file name but in that directory. You can also yank > > the default file name into the minibuffer to edit it, using M-n." > > > > "The default file name" is undefined. >=20 > It is defined by the very next paragraph of the doc string. Yes, things are out of order. > I made it even more clear. Thank you. > > To start with, the doc string should say that it prompts for a file > > name. If the current buffer is visiting a file then that file's name > > is the default file name for reading. Otherwise the buffer name is the > > default file name for reading. >=20 > This is incorrect when the user specifies just the directory name at > the prompt. I clarified that only the base name is taken from the > buffer. Thanks. From unknown Fri Jun 20 07:19:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 10 Dec 2018 12:24:05 +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