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: finder.el patch Date: Sat, 22 Mar 2008 19:04:26 -0700 Message-ID: <000101c88c8a$39df4c50$0600a8c0@us.oracle.com> References: <001501c8846c$f75757d0$c2b22382@us.oracle.com><005901c8861c$069455d0$0600a8c0@us.oracle.com><007101c88b96$8c2c2e00$0600a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0002_01C88C4F.8D807450" X-Trace: ger.gmane.org 1206237944 20123 80.91.229.12 (23 Mar 2008 02:05:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Mar 2008 02:05:44 +0000 (UTC) Cc: 'Emacs-Devel' To: "'Stefan Monnier'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 23 03:06:14 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 1JdFaz-0001fn-87 for ged-emacs-devel@m.gmane.org; Sun, 23 Mar 2008 03:06:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JdFaO-00005R-Lf for ged-emacs-devel@m.gmane.org; Sat, 22 Mar 2008 22:05:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JdFZk-0008J9-BO for emacs-devel@gnu.org; Sat, 22 Mar 2008 22:04:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JdFZi-0008HR-FS for emacs-devel@gnu.org; Sat, 22 Mar 2008 22:04:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JdFZi-0008HI-70 for emacs-devel@gnu.org; Sat, 22 Mar 2008 22:04:42 -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 1JdFZh-0003Bv-Ho for emacs-devel@gnu.org; Sat, 22 Mar 2008 22:04:41 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m2N24c1m021272; Sat, 22 Mar 2008 20:04:39 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m2N24cei032686; Sat, 22 Mar 2008 20:04:38 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3622648071206237856; Sat, 22 Mar 2008 19:04:16 -0700 Original-Received: from dradamslap1 (/141.144.88.193) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 22 Mar 2008 19:04:16 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AciMgp270hIhHZt3RPegYOnnjHrqugABCHAw 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:93233 Archived-At: This is a multi-part message in MIME format. ------=_NextPart_000_0002_01C88C4F.8D807450 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit > I'm not sure why we should use the font-lock rules > from lisp-mode, since the buffer's content won't be Lisp code. The idea was that a Lisp library Commentary sometimes refers to Lisp keywords, sexps, and so on. But I agree. New patch attached. ------=_NextPart_000_0002_01C88C4F.8D807450 Content-Type: application/octet-stream; name="finder-2008-03-22a.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="finder-2008-03-22a.patch" diff -u -w "finder-CVS-2008-03-12.el" "finder-patched-2008-03-22a.el"=0A= --- finder-CVS-2008-03-12.el 2008-03-12 10:07:40.000000000 -0700=0A= +++ finder-patched-2008-03-22a.el 2008-03-22 18:59:30.000000000 -0700=0A= @@ -110,6 +110,16 @@=0A= (define-key map "d" 'finder-list-keywords)=0A= map))=0A= =0A= +(defvar finder-mode-syntax-table=0A= + (let ((st (make-syntax-table emacs-lisp-mode-syntax-table)))=0A= + (modify-syntax-entry ?\; ". " st)=0A= + st)=0A= + "Syntax table used while in `finder-mode'.")=0A= +=0A= +(defvar finder-font-lock-keywords=0A= + '(("`\\([^']+\\)'" 1 font-lock-constant-face prepend))=0A= + "Font-lock keywords for Finder mode.")=0A= +=0A= =0A= ;;; Code for regenerating the keyword list.=0A= =0A= @@ -343,7 +353,9 @@=0A= (interactive)=0A= (kill-all-local-variables)=0A= (use-local-map finder-mode-map)=0A= - (set-syntax-table emacs-lisp-mode-syntax-table)=0A= + (set-syntax-table finder-mode-syntax-table)=0A= + (setq font-lock-defaults '(finder-font-lock-keywords nil nil=0A= + (("+-*/.<>=3D!?$%_&~^:@" . "w")) nil))=0A= (setq mode-name "Finder")=0A= (setq major-mode 'finder-mode)=0A= (set (make-local-variable 'finder-headmark) nil)=0A= @@ -359,15 +371,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= + (condition-case nil (delete-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= =0A= =0C=0A= (provide 'finder)=0A= =0A= Diff finished at Sat Mar 22 18:59:50=0A= ------=_NextPart_000_0002_01C88C4F.8D807450--