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: Fri, 23 Jan 2015 09:26:56 +0100 Message-ID: <54C205D0.3000607@gmx.at> References: <8dd014e7478827e94e3a8fe5b2b948e0@lysator.liu.se> <54BA6A0A.4080408@gmx.at> <54BB8375.9000506@gmx.at> <54BFD9D9.70708@gmx.at> <54C1402D.1000100@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 1422001695 5678 80.91.229.3 (23 Jan 2015 08:28:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2015 08:28:15 +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 Fri Jan 23 09:28:11 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 1YEZb7-0002zw-8u for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jan 2015 09:28:09 +0100 Original-Received: from localhost ([::1]:57606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEZb6-00080d-Jt for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jan 2015 03:28:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEZb3-00080Y-Jf for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2015 03:28:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEZb0-0005mF-DA for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2015 03:28:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEZb0-0005mA-9R for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2015 03:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YEZaz-0004Ui-Tm for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2015 03:28: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: Fri, 23 Jan 2015 08:28:01 +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.142200163917182 (code B ref 6130); Fri, 23 Jan 2015 08:28:01 +0000 Original-Received: (at 6130) by debbugs.gnu.org; 23 Jan 2015 08:27:19 +0000 Original-Received: from localhost ([127.0.0.1]:53471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YEZaJ-0004T4-4b for submit@debbugs.gnu.org; Fri, 23 Jan 2015 03:27:19 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:51875) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YEZaG-0004Sj-QO for 6130@debbugs.gnu.org; Fri, 23 Jan 2015 03:27:17 -0500 Original-Received: from [88.117.81.28] ([88.117.81.28]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M1nOg-1XPdsx3Kpu-00tiRs; Fri, 23 Jan 2015 09:27:05 +0100 In-Reply-To: X-Provags-ID: V03:K0:oRxRgkA6VmFoI/+hHRG9IIjxq+pEFyE+x0ya4hz+Ah0O8ly9LgN 3FhqfrKmSdLjvs3ARY1hNnnxI+kGUN92/VAAqHwdioRcwJvXXAcvIMXZncAM1LfM271TWas SIKhyQWH+lqqF8xrd7q+AnVLsclVfDsAgCWRqnAttotEhZACZjZn7OqBJQTTLQqy8OYiFNj tFZV8XPwXaptIi0Nhjarg== 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:98619 Archived-At: > It's wrong for posn-window to return a frame. Is it right for it to return nil? There seems to be no particular restriction on what a "mouse position list" as returned by `event-start' and `event-end' has to contain. Many callers simply use the selected window or the window buffer of the selected window when the return value of `posn-window' is nil. > So are there callers that > actually rely on this wrong behavior? Are there callers where returning > nil instead of a frame would be a problem? Are there callers where > signaling an error instead of returning a frame would be a problem? `handle-delete-frame' seems to be the only function that expects `posn-window' to return a frame (unconditionally, BTW). I don't understand `handle-delete-frame' but it hardly will cause problems when it gets nil or an error. I didn't check for occurrences of things like "(nth 0 position". >> This would backfire for people who would like `posn-window' to always >> return the first element of a position. > > That's OK, in the sense that we don't care if people's feelings > are hurt. But if it breaks existing packages it's more problematic. If we really cared, we'd probably have to write something like (defsubst posn-window (position) "Return the window in POSITION. POSITION should be a list of the form returned by the `event-start' and `event-end' functions." (if (window-live-p (nth 0 position)) (nth 0 position) 'none)) martin