From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#33339: 26; doc string of `write-file` Date: Sun, 11 Nov 2018 08:55:25 -0800 (PST) Message-ID: References: <<1c69fed6-2e30-46a2-92dd-7f8ae6d62928@default>> <<83h8gna8mj.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1541955247 18960 195.159.176.226 (11 Nov 2018 16:54:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2018 16:54:07 +0000 (UTC) Cc: 33339-done@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 11 17:54:03 2018 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 1gLszq-0004lc-GC for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 17:54:02 +0100 Original-Received: from localhost ([::1]:42922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLt1w-00062b-P1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 11:56:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLt1q-00062W-VM for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 11:56:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLt1m-00051c-Dp for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 11:56:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gLt1m-00051C-5r for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 11:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gLt1m-00050i-4I for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2018 11:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Nov 2018 16:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33339 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33339-done@debbugs.gnu.org id=D33339.154195533419226 (code D ref 33339); Sun, 11 Nov 2018 16:56:02 +0000 Original-Received: (at 33339-done) by debbugs.gnu.org; 11 Nov 2018 16:55:34 +0000 Original-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 Original-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 Original-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== Original-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 Original-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 Original-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 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)] 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-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:152303 Archived-At: > > "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.