From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: saifi@gamebox.net Newsgroups: gmane.emacs.help Subject: how to trap RET key press event ? Date: Mon, 29 Mar 2004 22:01:29 +0530 (IST) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: Reply-To: saifi@gamebox.net NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1080581748 11234 80.91.224.253 (29 Mar 2004 17:35:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Mar 2004 17:35:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 29 19:35:38 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B80fh-00070G-00 for ; Mon, 29 Mar 2004 19:35:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B80et-0003Zc-Tq for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Mar 2004 12:34:47 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B80dg-0003LJ-7x for help-gnu-emacs@gnu.org; Mon, 29 Mar 2004 12:33:32 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B80bS-0002I8-NC for help-gnu-emacs@gnu.org; Mon, 29 Mar 2004 12:31:45 -0500 Original-Received: from [38.113.3.61] (helo=babyruth.hotpop.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B80an-00021x-Al for help-gnu-emacs@gnu.org; Mon, 29 Mar 2004 12:30:33 -0500 Original-Received: from gamebox.net (kubrick.hotpop.com [38.113.3.103]) by babyruth.hotpop.com (Postfix) with SMTP id 673CC178772 for ; Mon, 29 Mar 2004 17:15:19 +0000 (UTC) Original-Received: from [61.1.114.88] (unknown [61.1.114.88]) by smtp-2.hotpop.com (Postfix) with ESMTP id 6990419C126 for ; Mon, 29 Mar 2004 17:15:16 +0000 (UTC) X-X-Sender: saifi@localhost.localdomain Original-To: help-gnu-emacs@gnu.org X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17665 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17665 =AD=ADHi:=AD=AD I am trying to write emacs LISP code=20 to achieve the following: I type a HTML/XML open tag on a line. Now when I press RET (or Enter)key, I want to trap the event of key press and extract the tag. RET <---press the enter key Overall the idea is to accomplish the end tag (on a line by itself)=20 for a matching start tag, e.g. in this case. I will appreciate inputs on event handling techniques in emacs LISP. Thanks for your time. Thanks Saifi Khan.