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: finder.el patch Date: Wed, 12 Mar 2008 10:14:51 -0800 Message-ID: <001501c8846c$f75757d0$c2b22382@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0016_01C88429.E93417D0" X-Trace: ger.gmane.org 1205342218 18142 80.91.229.12 (12 Mar 2008 17:16:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2008 17:16:58 +0000 (UTC) To: "'Emacs-Devel'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 12 18:17:25 2008 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 1JZUZh-00055q-QG for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 18:17:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZUZ9-000331-5r for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 13:16:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZUZ5-00032e-WE for emacs-devel@gnu.org; Wed, 12 Mar 2008 13:16:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZUZ4-000328-N8 for emacs-devel@gnu.org; Wed, 12 Mar 2008 13:16:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZUZ4-000325-Gb for emacs-devel@gnu.org; Wed, 12 Mar 2008 13:16:30 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JZUZ4-0005cA-4A for emacs-devel@gnu.org; Wed, 12 Mar 2008 13:16:30 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m2CHFt2M019754 for ; Wed, 12 Mar 2008 11:15:56 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m2C0GfAK011757 for ; Wed, 12 Mar 2008 11:15:55 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt351.oracle.com with ESMTP id 3609815441205342093; Wed, 12 Mar 2008 10:14:53 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 12 Mar 2008 10:14:53 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AciEbPcP4xhfQdd9SLegAVjoZFaE+Q== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:92299 Archived-At: This is a multi-part message in MIME format. ------=_NextPart_000_0016_01C88429.E93417D0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This patch fixes two bugs in finder-exit: - It treats buffer *Finder-package* also. This buffer is used by `finder-commentary'. - Instead trying to avoid `delete-window' for `one-window-p', it wraps it in `condition-case'. ------=_NextPart_000_0016_01C88429.E93417D0 Content-Type: application/octet-stream; name="finder-2008-03-12a.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="finder-2008-03-12a.patch" diff -u -w finder-CVS-2008-03-12.el finder-patched-2008-03-12.el=0A= --- finder-CVS-2008-03-12.el 2008-03-12 10:07:40.000000000 -0800=0A= +++ finder-patched-2008-03-12.el 2008-03-12 10:08:58.000000000 -0800=0A= @@ -359,16 +359,13 @@=0A= finder directory, \\[finder-exit] =3D quit, \\[finder-summary] =3D = help")))=0A= =0A= (defun finder-exit ()=0A= - "Exit Finder mode and kill the buffer."=0A= + "Exit Finder mode.=0A= +Delete the window and kill the buffer."=0A= (interactive)=0A= - (or (one-window-p t)=0A= - (delete-window))=0A= - ;; Can happen in either buffer -- kill each of the two that exists=0A= - (and (get-buffer "*Finder*")=0A= - (kill-buffer "*Finder*"))=0A= - (and (get-buffer "*Finder Category*")=0A= - (kill-buffer "*Finder Category*")))=0A= -=0A= + (condition-case nil (delete-window window) (error nil))=0A= + (when (get-buffer "*Finder*") (kill-buffer "*Finder*"))=0A= + (when (get-buffer "*Finder-package*") (kill-buffer = "*Finder-package*"))=0A= + (when (get-buffer "*Finder Category*") (kill-buffer "*Finder = Category*")))=0A= =0C=0A= (provide 'finder)=0A= =0A= =0A= Diff finished. Wed Mar 12 10:09:28 2008=0A= ------=_NextPart_000_0016_01C88429.E93417D0--