From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: delete-windows-on Date: Fri, 2 Oct 2009 10:55:14 -0700 Message-ID: <47CD9C0ADBDC44CDA748F4978DF90DFE@us.oracle.com> References: <8EA9172832C04915909AE7B506260481@us.oracle.com> <4AC637A3.3070305@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1254506145 14013 80.91.229.12 (2 Oct 2009 17:55:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Oct 2009 17:55:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'martin rudalics'" , "'Juanma Barranquero'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 02 19:55:37 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MtmLv-0003Ql-OK for ged-emacs-devel@m.gmane.org; Fri, 02 Oct 2009 19:55:36 +0200 Original-Received: from localhost ([127.0.0.1]:40881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtmLv-0000NA-8J for ged-emacs-devel@m.gmane.org; Fri, 02 Oct 2009 13:55:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtmLp-0000Mi-OZ for emacs-devel@gnu.org; Fri, 02 Oct 2009 13:55:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtmLk-0000Ji-Kq for emacs-devel@gnu.org; Fri, 02 Oct 2009 13:55:28 -0400 Original-Received: from [199.232.76.173] (port=41141 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtmLk-0000Jf-B0 for emacs-devel@gnu.org; Fri, 02 Oct 2009 13:55:24 -0400 Original-Received: from rcsinet11.oracle.com ([148.87.113.123]:63577 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtmLj-0002mS-UW for emacs-devel@gnu.org; Fri, 02 Oct 2009 13:55:24 -0400 Original-Received: from rgminet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n92HuLP7027825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 2 Oct 2009 17:56:23 GMT Original-Received: from abhmt014.oracle.com (abhmt014.oracle.com [141.146.116.23]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n92HtkYv002453; Fri, 2 Oct 2009 17:55:46 GMT Original-Received: from dradamslap1 (/24.5.184.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 02 Oct 2009 10:55:15 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4AC637A3.3070305@gmx.at> Thread-Index: AcpDhXLYvqfggGu0TV2R4Fa5gj997QAAePZQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt014.oracle.com [141.146.116.23] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4AC63E84.022F:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115859 Archived-At: > >> 2. Besides, it is not the purpose of `delete-windows-on' > >> to determine whether the BUFFER arg in fact corresponds > >> to an existing buffer or someone just fucked > >> up. Its purpose is to delete a window (or do nothing). > > > > No. Its purpose is to "[d]elete all windows showing > > BUFFER-OR-NAME." An incorrect BUFFER-OR-NAME is an error. > > A BUFFER-OR-NAME argument must be treated consistently through all > functions that have it. So raising an error is obviously TRT here. I guess you're right about that. I was thinking that there might be some functions that did not raise an error for a non-string, non-buffer, but it seems they all ultimately call `get-buffer', which chokes if not a string or a buffer.