unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "tom.smith" <tom.smith@163.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: highlight regexp in buffer *Tags List* generated by tags-apropos ?
Date: Tue, 15 Sep 2009 18:54:25 +0800 (CST)	[thread overview]
Message-ID: <12225344.363731253012065323.JavaMail.coremail@bj163app58.163.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 834 bytes --]

It'is more readable to highlight regexp in *Tags List* buffer, at least for me. Can official gnu emacs do this ?
I'am new in emacs lisp. Can anybody improve tags-apropos with better methods ?

Index: lisp/progmodes/etags.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/etags.el,v
retrieving revision 1.214
diff -u -r1.214 etags.el
--- lisp/progmodes/etags.el     1 Sep 2009 03:26:32 -0000       1.214
+++ lisp/progmodes/etags.el     15 Sep 2009 10:03:31 -0000
@@ -1925,6 +1925,8 @@
   (with-current-buffer "*Tags List*"
     (eval-and-compile (require 'apropos))
     (apropos-mode)
+    (hi-lock-mode)
+    (highlight-regexp regexp)
     ;; apropos-mode is derived from fundamental-mode and it kills
     ;; all local variables.
     (setq buffer-read-only t)))



[-- Attachment #2: Type: text/html, Size: 1269 bytes --]

                 reply	other threads:[~2009-09-15 10:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12225344.363731253012065323.JavaMail.coremail@bj163app58.163.com \
    --to=tom.smith@163.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).