From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#6130: 23.1; artist-mode spray-can malfunction Date: Thu, 22 Jan 2015 19:23:41 +0100 Message-ID: <54C1402D.1000100@gmx.at> References: <8dd014e7478827e94e3a8fe5b2b948e0@lysator.liu.se> <54BA6A0A.4080408@gmx.at> <54BB8375.9000506@gmx.at> <54BFD9D9.70708@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1421951111 28711 80.91.229.3 (22 Jan 2015 18:25:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2015 18:25:11 +0000 (UTC) Cc: 6130@debbugs.gnu.org, busk , Daniel Koning To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 22 19:25:10 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YEMRJ-0002x8-N9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2015 19:25:09 +0100 Original-Received: from localhost ([::1]:55375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEMRJ-0004SH-2E for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2015 13:25:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEMRG-0004RC-1g for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 13:25:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEMRC-0001xr-Sh for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 13:25:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEMRC-0001xg-QQ for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 13:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YEMRC-0007XM-Cr for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2015 13:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jan 2015 18:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6130 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6130-submit@debbugs.gnu.org id=B6130.142195104728897 (code B ref 6130); Thu, 22 Jan 2015 18:25:02 +0000 Original-Received: (at 6130) by debbugs.gnu.org; 22 Jan 2015 18:24:07 +0000 Original-Received: from localhost ([127.0.0.1]:53230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YEMQJ-0007W0-2Q for submit@debbugs.gnu.org; Thu, 22 Jan 2015 13:24:07 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:64032) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YEMQH-0007VG-2d for 6130@debbugs.gnu.org; Thu, 22 Jan 2015 13:24:05 -0500 Original-Received: from [178.191.140.119] ([178.191.140.119]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MBJF3-1YO1aK3qcv-00AELW; Thu, 22 Jan 2015 19:23:50 +0100 In-Reply-To: X-Provags-ID: V03:K0:HYZtn8+h2qjt9KNGbnxJbm0s6AvwiNXoTTXc79cHVr45fZixPFt DmYaInNjNCkJCznyuwrFEpzSjRLXb9iIvyFTYz6nONA7rYfPFBSASlFkRG42m8beMKacy1q /wZe+yOYJgJfDbHPZBzTX+vJBLupp6Kg0Wh1q8Hv2YPmHvxX2NPNFLI0XW5WoK+QcANl4SP Lpzr2CzPmsEN5kQ6R/6Nw== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98596 Archived-At: > Could you take a look at the existing callers to see how they would > react to receiving nil (instead of a frame), or a frame (as now), or an > error (instead of a frame)? Daniel in his first post wrote that I also went ahead and searched the lisp/ tree for other places that looked risky -- that is, where a position object was assumed to hold a window in a context where there was no such guarantee. Nothing jumped out at me, but there could be any number of issues with third-party code. so I think this has been taken care of already. >>> and/or deprecate it (in favor of a new posn-window-or-frame). >> That's what I had in mind. > > But that only makes sense if most callers of posn-window can (or would > like to) also handle a frame. Then we have still another choice: Provide a function `posn-frame' and have `posn-window' return nil when the first element is a frame. This would backfire for people who would like `posn-window' to always return the first element of a position. martin