unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: dont.spam.earl@gmail.com
To: help-gnu-emacs@gnu.org
Subject: How to show (text-properties-at (point)) in minibuffer?
Date: Wed, 14 May 2014 22:18:02 -0700 (PDT)	[thread overview]
Message-ID: <d6c8a959-72b5-4673-a172-a4d8f10cbb55@googlegroups.com> (raw)

Hi all,

I'm customizing my shell mode and noticing some regions have unexpected faces. To debug this, I want the minibuffer to list the faces at the current point (from 'text-properties-at) and automatically update as the point moves. I've tried this a few ways but haven't gotten it to work.

I tried customizing the mode-line-format variable, yielding this line in my .emacs file. It didn't work:
  '(mode-line-format (quote ("%e" mode-line-front-space mode-line-mule-info mode-line-client mode-line-modified mode-line-remote mode-line-frame-identification mode-line-buffer-identification "   " mode-line-position (vc-mode vc-mode) "  " mode-line-modes mode-line-misc-info mode-line-end-spaces (:eval (text-properties-at (point))))))

This also doesn't work:
(setq global-mode-string
	  (append global-mode-string
			  (list '(:eval (text-properties-at (point))))))

Any suggestions on how to do this?

Thanks!

Earl


             reply	other threads:[~2014-05-15  5:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-15  5:18 dont.spam.earl [this message]
2014-05-15  9:47 ` How to show (text-properties-at (point)) in minibuffer? Michael Heerdegen
2014-05-15 12:26   ` Stefan Monnier
2014-05-15 13:35     ` Michael Heerdegen
     [not found]     ` <mailman.1401.1400160984.1147.help-gnu-emacs@gnu.org>
2014-05-15 17:33       ` dont.spam.earl

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=d6c8a959-72b5-4673-a172-a4d8f10cbb55@googlegroups.com \
    --to=dont.spam.earl@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.
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).