all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Enhancing font-locking in emacs-lisp-mode
Date: Thu, 5 Jun 2008 12:37:28 -0700 (PDT)	[thread overview]
Message-ID: <cc0b5f34-7c99-41c6-b6d8-63643017ec69@k13g2000hse.googlegroups.com> (raw)

Hi again!

Some thoughts regarding enhancements of font-locking in emacs-lisp-
mode; I believe the readability of emacs-lisp code would be greatly
enhanced by also highlighting the following cases

- arguments to function/macro definition (defun/defmacro) in font-lock-
variable-name-face
- local variable names defined by the let/let* statement
- function name part of function calls: I guess this is hard/
(impossible?) to get right for all cases but maybe we could somehow
reuse `functionp' in the MATCHER to better filter out the more
relevant cases?

Does anyone have any tips on how to go about implementing this. For
the second case I believe I have to use a function matcher in font-
lock-keywords that navigates in the sub-expression structure (forward/
backward-sexp, backward-up-list, down-list). I now know how regexp-
MATCHERs work. Does anyone have any good tutorial on how to design
these function-MATCHERS?

Is it adviced to solve this as an add-on or is it best to let the GNU
Emacs hackers add this functionality to lisp-mode.el?

/Nordlöw


             reply	other threads:[~2008-06-05 19:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-05 19:37 Nordlöw [this message]
2008-06-05 22:02 ` Enhancing font-locking in emacs-lisp-mode Nikolaj Schumacher

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

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

  git send-email \
    --in-reply-to=cc0b5f34-7c99-41c6-b6d8-63643017ec69@k13g2000hse.googlegroups.com \
    --to=per.nordlow@gmail.com \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.