GNU bug report logs - #6130
23.1; artist-mode spray-can malfunction

Previous Next

Package: emacs;

Reported by: busk <busk <at> lysator.liu.se>

Date: Fri, 7 May 2010 13:25:02 UTC

Severity: minor

Found in version 23.1

Done: Johan Busk Eriksson <busk <at> lysator.liu.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 6130 <at> debbugs.gnu.org, rudalics <at> gmx.at, busk <at> lysator.liu.se, dk <at> danielkoning.com
Subject: bug#6130: 23.1; artist-mode spray-can malfunction
Date: Fri, 23 Jan 2015 23:26:11 +0200
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  6130 <at> debbugs.gnu.org,  busk <at> lysator.liu.se,  dk <at> danielkoning.com
> Date: Fri, 23 Jan 2015 16:05:33 -0500
> 
> >>> > It's wrong for posn-window to return a frame.
> >> Can you explain why it's wrong?
> 
> If you take a step back and read my sentence you'll see it's pretty
> obvious: since it says "window" it shouldn't return a "frame".

We do that all the time.  For example:

  (display-graphic-p &optional DISPLAY)

  Return non-nil if DISPLAY is a graphic display.
  [...]
  DISPLAY can be a display name, a frame, or nil (meaning the selected
  frame's display).

In polymorphic interfaces, the alternative is to say
DISPLAY-OR-FRAME-OR-... which is too tedious.




This bug report was last modified 9 years and 51 days ago.

Previous Next


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