GNU bug report logs - #3277
23.0.93; doc string of set-frame-parameter

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Wed, 13 May 2009 22:20:05 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3277 in the body.
You can then email your comments to 3277 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3277; Package emacs. (Wed, 13 May 2009 22:20:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 13 May 2009 22:20:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <emacs-pretest-bug <at> gnu.org>
Subject: 23.0.93; doc string of set-frame-parameter
Date: Wed, 13 May 2009 15:13:45 -0700
"If FRAME is nil, it defaults to the selected frame."
 
No. If FRAME is nil, then there is no argument defaulting. It should
say that if FRAME is nil, the selected frame is used.
 

In GNU Emacs 23.0.93.1 (i386-mingw-nt5.1.2600)
 of 2009-05-02 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
 





Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. (Thu, 14 May 2009 03:30:06 GMT) Full text and rfc822 format available.

Notification sent to "Drew Adams" <drew.adams <at> oracle.com>:
bug acknowledged by developer. (Thu, 14 May 2009 03:30:06 GMT) Full text and rfc822 format available.

Message #10 received at 3277-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 3277-done <at> debbugs.gnu.org
Subject: Re: 23.0.93; doc string of set-frame-parameter
Date: Wed, 13 May 2009 23:27:30 -0400
> "If FRAME is nil, it defaults to the selected frame."
> 
> No. If FRAME is nil, then there is no argument defaulting. It should
> say that if FRAME is nil, the selected frame is used.

This is standard usage in many docstrings.  There is no risk of
confusion.




Message #11 received at 3277-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Chong Yidong'" <cyd <at> stupidchicken.com>
Cc: <3277-done <at> debbugs.gnu.org>
Subject: RE: 23.0.93; doc string of set-frame-parameter
Date: Thu, 14 May 2009 00:43:42 -0700
> From: Chong Yidong Sent: Wednesday, May 13, 2009 8:28 PM
> > "If FRAME is nil, it defaults to the selected frame."
> > 
> > No. If FRAME is nil, then there is no argument defaulting. It should
> > say that if FRAME is nil, the selected frame is used.
> 
> This is standard usage in many docstrings.  There is no risk of
> confusion.

What is "standard usage in many doc strings" is to say that by default, the
selected frame is used, where "by default" refers to the _absence_ of an
optional arg. There is no optional argument here.

This is not just about possible confusion; it's about English and logic.

"It", in "it defaults to", can only refer to the argument FRAME. The value of
FRAME remains nil in that case. 

The _default behavior_ of the function, that is, the behavior when FRAME is nil,
is to use the selected frame. But "it" - the value of parameter FRAME does not
default to anything. There is no parameter defaulting involved here.

What needs to be said is simply that a nil value of FRAME means that the
selected frame is used. 





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Thu, 11 Jun 2009 14:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.