From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Chitale, Sandip V" Newsgroups: gmane.emacs.bugs Subject: Two improvements Date: Wed, 15 Jan 2003 15:24:38 -0800 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1042673183 1179 80.91.224.249 (15 Jan 2003 23:26:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2003 23:26:23 +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 18YwvM-0000Ik-00 for ; Thu, 16 Jan 2003 00:26:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18YwvC-0006jV-06 for gnu-bug-gnu-emacs@m.gmane.org; Wed, 15 Jan 2003 18:26:10 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Ywt6-0004nE-00 for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2003 18:24:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Ywsz-0004hZ-00 for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2003 18:23:53 -0500 Original-Received: from srf-isp-fw.fairisaac.com ([168.230.33.10] helo=srfmsg101.corp.fairisaac.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18YwsP-0004Ad-00 for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2003 18:23:17 -0500 Original-Received: from srfmsg100.corp.fairisaac.com ([10.17.3.100]) by srfmsg101.corp.fairisaac.com with Microsoft SMTPSVC(5.0.2195.5329); Wed, 15 Jan 2003 15:24:38 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Two improvements Thread-Index: AcK87UWybTLpUseVSkOxMPGGz4exNA== Original-To: X-OriginalArrivalTime: 15 Jan 2003 23:24:38.0370 (UTC) FILETIME=[45C67420:01C2BCED] X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4207 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4207 1. A function to dump the data matched by isearch-* family of functions. This may be added to lisp/isearch.el. (defun dump-match-data () "Dump match data" (interactive) (with-output-to-temp-buffer "*match-data*" (dotimes (index (/ (length (match-data)) 2)) (princ (format "[%d] =3D %s\n" index (match-string index))) ) ) ) 2. A variant of the above to complement the re-builder functionality. This may be added to lisp/emacs-lisp/re-builder.el. (define-key reb-mode-map "\C-cm" 'reb-dump-match-data) (defun reb-dump-match-data () "Dump match data in buffer *match-data*" (interactive) (with-output-to-temp-buffer "*match-data*" (dotimes (index (/ (length (match-data)) 2)) (princ (format=20 "[%d]\t%s\n" index (match-string index ;; prepend with a space to get around a bug (concat " " (with-current-buffer reb-target-buffer (buffer-string)))))) ) ) )