From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Berndl Newsgroups: gmane.emacs.help Subject: pretty highlighting and indenting own elisp macros Date: 16 Oct 2002 17:23:38 +0200 Organization: sd&m AG, Muenchen, Germany Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1034956994 18727 80.91.224.249 (18 Oct 2002 16:03:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2002 16:03:14 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 182Zad-0004qZ-00 for ; Fri, 18 Oct 2002 18:03:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 182ZbA-00042D-00; Fri, 18 Oct 2002 12:03:40 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!transit.news.xs4all.nl!195.129.110.18.MISMATCH!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!news.sdm.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: sachrang.muc.sdm.de Original-X-Trace: solti3.muc.sdm.de 1034781818 20885 193.102.181.147 (16 Oct 2002 15:23:38 GMT) Original-X-Complaints-To: usenet@news.sdm.de Original-NNTP-Posting-Date: 16 Oct 2002 15:23:38 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:106121 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2667 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2667 If i add a call to `with-temp-file' in my elisp-program it will be highlighted with font-lock-keyword-face and indented like follows: (with-temp-file "my-filename" (foo ...) (bar ...)) Fine. But suppose i have written my own macro `with-XYZ': (defmacro with-XYZ (arg &rest body) ....) If i add this macro to my elisp-program then it is not highlighted as keyword and it is poorly indented: (with-XYZ "my-first-arg" (first-form-of-body ..) ...) What must i do so my own macros are highlighted and indented as build-in macros like `with-temp-file'? The former one seems to be not so hard but for the second one i have no glue. Many thanks in advance, Klaus -- Klaus Berndl mailto: klaus.berndl@sdm.de sd&m AG http://www.sdm.de software design & management Thomas-Dehler-Str. 27, 81737 München, Germany Tel +49 89 63812-392, Fax -220