From unknown Thu Sep 11 10:04:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11534 <11534@debbugs.gnu.org> To: bug#11534 <11534@debbugs.gnu.org> Subject: Status: 24.0.97; `dired-get-marked-files' does not behave as documented Reply-To: bug#11534 <11534@debbugs.gnu.org> Date: Thu, 11 Sep 2025 17:04:35 +0000 retitle 11534 24.0.97; `dired-get-marked-files' does not behave as document= ed reassign 11534 emacs submitter 11534 "Drew Adams" severity 11534 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 21 14:32:20 2012 Received: (at submit) by debbugs.gnu.org; 21 May 2012 18:32:20 +0000 Received: from localhost ([127.0.0.1]:37562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWXP1-00062B-Mi for submit@debbugs.gnu.org; Mon, 21 May 2012 14:32:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51790) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SWXOh-00061H-DH for submit@debbugs.gnu.org; Mon, 21 May 2012 14:32:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWXNx-0007yQ-GB for submit@debbugs.gnu.org; Mon, 21 May 2012 14:31:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:52197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWXNx-0007yJ-DB for submit@debbugs.gnu.org; Mon, 21 May 2012 14:31:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWXNv-0001XP-Of for bug-gnu-emacs@gnu.org; Mon, 21 May 2012 14:31:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWXNs-0007vb-VS for bug-gnu-emacs@gnu.org; Mon, 21 May 2012 14:31:11 -0400 Received: from acsinet15.oracle.com ([141.146.126.227]:34873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWXNs-0007ub-Pz for bug-gnu-emacs@gnu.org; Mon, 21 May 2012 14:31:08 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q4LIV4iH012557 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 21 May 2012 18:31:05 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q4LIV3xr024155 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 21 May 2012 18:31:04 GMT Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q4LIV3w7020323 for ; Mon, 21 May 2012 13:31:03 -0500 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 21 May 2012 11:31:03 -0700 From: "Drew Adams" To: Subject: 24.0.97; `dired-get-marked-files' does not behave as documented Date: Mon, 21 May 2012 11:31:02 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac03f+AizLdFTULoTyew2GAzFEpm9g== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) emacs -Q Put point on any file line. M-: (dired-get-marked-files) It returns the name of that line's file. But the doc string says this about argument ARG, which is nil in this case: Optional second argument ARG, if non-nil, specifies files near point instead of marked files. It usually comes from the prefix argument. If ARG is an integer, use the next ARG files. Any other non-nil value means to use the current file instead. It does not explicitly say anything about what happens when ARG is nil (and no files are marked). But a reader could reasonably assume that none of what happens when ARG is non-nil would happen. In particular, this line: Any other non-nil value means to use the current file instead. gives the impression that the current file will not be used if ARG is nil. Otherwise, it makes little sense to say "any non-nil value" and to put this sentence under the guard of "Optional second argument ARG, if non-nil...". Should the behavior be as is documented, which would reasonably mean that no file name is returned (nil is returned)? Or should the doc string be corrected to reflect the actual behavior, i.e., the fact that ARG = nil means return only the current file name when none are marked? In GNU Emacs 24.0.97.1 (i386-mingw-nt5.1.2600) of 2012-05-16 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --no-opt --enable-checking --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 10 02:15:43 2014 Received: (at 11534) by debbugs.gnu.org; 10 Feb 2014 07:15:43 +0000 Received: from localhost ([127.0.0.1]:33839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCl5h-0001LG-NU for submit@debbugs.gnu.org; Mon, 10 Feb 2014 02:15:42 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:35026) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCl5c-0001GV-Vb for 11534@debbugs.gnu.org; Mon, 10 Feb 2014 02:15:38 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WCl5N-0000Ih-35; Mon, 10 Feb 2014 08:15:21 +0100 From: Lars Ingebrigtsen To: "Drew Adams" Subject: Re: bug#11534: 24.0.97; `dired-get-marked-files' does not behave as documented References: Date: Sun, 09 Feb 2014 23:14:07 -0800 In-Reply-To: (Drew Adams's message of "Mon, 21 May 2012 11:31:02 -0700") Message-ID: <87ob2f30e8.fsf@building.gnus.org> User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WCl5N-0000Ih-35 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392621321.826@6IunimghFlb3diVUsBeAmA X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11534 Cc: 11534@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) "Drew Adams" writes: > emacs -Q > > Put point on any file line. > > M-: (dired-get-marked-files) > > It returns the name of that line's file. > > But the doc string says this about argument ARG, which is nil in this > case: > > Optional second argument ARG, if non-nil, specifies files near > point instead of marked files. It usually comes from the prefix > argument. > If ARG is an integer, use the next ARG files. > Any other non-nil value means to use the current file instead. > > It does not explicitly say anything about what happens when ARG is nil > (and no files are marked). But a reader could reasonably assume that > none of what happens when ARG is non-nil would happen. I've removed " non-nil" so that the documentation says what it does. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 10 02:15:46 2014 Received: (at control) by debbugs.gnu.org; 10 Feb 2014 07:15:47 +0000 Received: from localhost ([127.0.0.1]:33841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCl5m-0001PW-6k for submit@debbugs.gnu.org; Mon, 10 Feb 2014 02:15:46 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:35032) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCl5g-0001JU-Cr for control@debbugs.gnu.org; Mon, 10 Feb 2014 02:15:40 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WCl5S-0000Iq-1R for control@debbugs.gnu.org; Mon, 10 Feb 2014 08:15:26 +0100 Date: Sun, 09 Feb 2014 23:14:13 -0800 Message-Id: <87mwhz30e2.fsf@building.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11534 X-MailScanner-ID: 1WCl5S-0000Iq-1R X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392621326.74259@HS26JdYQqn2xelmYPu7H4g X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) close 11534 24.4 From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 10 13:03:51 2014 Received: (at 11534) by debbugs.gnu.org; 10 Feb 2014 18:03:51 +0000 Received: from localhost ([127.0.0.1]:41634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCvCw-0005Jq-H5 for submit@debbugs.gnu.org; Mon, 10 Feb 2014 13:03:50 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:45780) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCvCu-0005Jd-KP for 11534@debbugs.gnu.org; Mon, 10 Feb 2014 13:03:49 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1AI3fXY020188 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 Feb 2014 18:03:42 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1AI3fGu003850 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Feb 2014 18:03:41 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1AI3eqm012244; Mon, 10 Feb 2014 18:03:40 GMT MIME-Version: 1.0 Message-ID: <89f0f3d9-3466-4c53-bfe7-5dc48434c967@default> Date: Mon, 10 Feb 2014 10:03:40 -0800 (PST) From: Drew Adams To: Lars Ingebrigtsen Subject: RE: bug#11534: 24.0.97; `dired-get-marked-files' does not behave as documented References: <87ob2f30e8.fsf@building.gnus.org> In-Reply-To: <87ob2f30e8.fsf@building.gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 11534 Cc: 11534@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -2.9 (--) > I've removed " non-nil" so that the documentation says what it does. No, that's not it. Please reread the bug report. It is important to say what the behavior is for a value of nil. Thx. From unknown Thu Sep 11 10:04:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug No longer marked as fixed in versions 24.4 and reopened. Date: Mon, 10 Feb 2014 18:04:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug No longer marked as fixed in versions 24.4 and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 11 06:18:42 2014 Received: (at 11534) by debbugs.gnu.org; 11 Feb 2014 11:18:42 +0000 Received: from localhost ([127.0.0.1]:45812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDBMQ-0006AC-77 for submit@debbugs.gnu.org; Tue, 11 Feb 2014 06:18:42 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:46119) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDBML-00069n-As for 11534@debbugs.gnu.org; Tue, 11 Feb 2014 06:18:40 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WDBLz-0005vr-Lt; Tue, 11 Feb 2014 12:18:16 +0100 From: Lars Ingebrigtsen To: Drew Adams Subject: Re: bug#11534: 24.0.97; `dired-get-marked-files' does not behave as documented References: <87ob2f30e8.fsf@building.gnus.org> <89f0f3d9-3466-4c53-bfe7-5dc48434c967@default> Date: Tue, 11 Feb 2014 03:16:59 -0800 In-Reply-To: <89f0f3d9-3466-4c53-bfe7-5dc48434c967@default> (Drew Adams's message of "Mon, 10 Feb 2014 10:03:40 -0800 (PST)") Message-ID: <87eh39nbkk.fsf@building.gnus.org> User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WDBLz-0005vr-Lt X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392722296.14743@9oo1mUg/TdJ8wPDjPP5sQQ X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11534 Cc: 11534@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) Drew Adams writes: >> I've removed " non-nil" so that the documentation says what it does. > > No, that's not it. Please reread the bug report. It is important to > say what the behavior is for a value of nil. Thx. Yeah, it's still vaguely unclear. Fixed on trunk. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 11 06:18:39 2014 Received: (at control) by debbugs.gnu.org; 11 Feb 2014 11:18:39 +0000 Received: from localhost ([127.0.0.1]:45810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDBMM-00069v-OI for submit@debbugs.gnu.org; Tue, 11 Feb 2014 06:18:39 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:46118) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDBML-00069m-4s for control@debbugs.gnu.org; Tue, 11 Feb 2014 06:18:37 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WDBM4-0005w3-Mx for control@debbugs.gnu.org; Tue, 11 Feb 2014 12:18:21 +0100 Date: Tue, 11 Feb 2014 03:17:04 -0800 Message-Id: <87d2itnbkf.fsf@building.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11534 X-MailScanner-ID: 1WDBM4-0005w3-Mx X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392722302.92058@Eh5F/9sW/jnQ+dkWROv/Gw X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) close 11534 24.4 From unknown Thu Sep 11 10:04:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 11 Mar 2014 11: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