unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9980: 24.0.91; doc string of `with-selected-frame'
@ 2011-11-06 23:11 Drew Adams
  2012-01-07  5:58 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2011-11-06 23:11 UTC (permalink / raw)
  To: 9980

1. The doc string is incomplete.  You need to do the same kind of thing you
did for `with-selected-window' for this macro as well.
 
What's missing is mention that some state is saved and restored.  When
you say only that the body is executed with FRAME as the selected frame
you mislead people into thinking that FRAME stays selected throughout.
In fact, what happens is that FRAME and the config are saved at the
beginning and then restored at the end.
 
Compare/contrast with the doc string for `with-selected-window' and you
should see the light.
 
2. The grammar of this sentence is anyway incorrect: "This macro neither
changes the order of recently selected windows nor the buffer list."  It
should say something like, "This macro changes the order of neither the
recently selected windows nor the buffers in the buffer list."
 
IOW, "neither changes X nor" requires another verb: "neither changes X
nor throws up on Y."  What you are looking for is "changes neither X nor
Y."

In GNU Emacs 24.0.91.1 (i386-mingw-nt5.1.2600) of 2011-10-30 on MARVIN
 Windowing system distributor `Microsoft Corp.', version 5.1.2600
 configured using `configure --with-gcc (4.6) --no-opt --cflags
 -I"D:/devel/emacs/libs/libXpm-3.5.8/include"
 -I"D:/devel/emacs/libs/libXpm-3.5.8/src"
 -I"D:/devel/emacs/libs/libpng-dev_1.4.3-1/include"
 -I"D:/devel/emacs/libs/zlib-dev_1.2.5-2/include"
 -I"D:/devel/emacs/libs/giflib-4.1.4-1/include"
 -I"D:/devel/emacs/libs/jpeg-6b-4/include"
 -I"D:/devel/emacs/libs/tiff-3.8.2-1/include"
 -I"D:/devel/emacs/libs/gnutls-2.10.1/include" --ldflags
 -L"D:/devel/emacs/libs/gnutls-2.10.1/lib"'
 






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#9980: 24.0.91; doc string of `with-selected-frame'
  2011-11-06 23:11 bug#9980: 24.0.91; doc string of `with-selected-frame' Drew Adams
@ 2012-01-07  5:58 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2012-01-07  5:58 UTC (permalink / raw)
  To: Drew Adams; +Cc: 9980

"Drew Adams" <drew.adams@oracle.com> writes:

> 1. The doc string is incomplete.  You need to do the same kind of thing you
> did for `with-selected-window' for this macro as well.

Ok; fixed.

> 2. The grammar of this sentence is anyway incorrect: "This macro neither
> changes the order of recently selected windows nor the buffer list."  It
> should say something like, "This macro changes the order of neither the
> recently selected windows nor the buffers in the buffer list."
>
> IOW, "neither changes X nor" requires another verb: "neither changes X
> nor throws up on Y."  What you are looking for is "changes neither X nor
> Y."

I've adapted your suggestion.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-07  5:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-06 23:11 bug#9980: 24.0.91; doc string of `with-selected-frame' Drew Adams
2012-01-07  5:58 ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).