From: carlmarcos--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Interactive function displaying face attributes
Date: Tue, 9 Aug 2022 22:25:07 +0200 (CEST) [thread overview]
Message-ID: <N93H3oM--7-2@tutanota.com> (raw)
In-Reply-To: <83o7wtrz4z.fsf@gnu.org>
Aug 9, 2022, 19:32 by eliz@gnu.org:
>> Date: Tue, 9 Aug 2022 21:21:17 +0200 (CEST)
>> From: carlmarcos@tutanota.com
>> Cc: help-gnu-emacs@gnu.org
>>
>> Aug 9, 2022, 18:59 by eliz@gnu.org:
>>
>> What about face after point? What could I call? Same `describe-face'?
>>
>
> Yes, I think so.
>
>> And what would be the correct face name?
>>
>
> (get-text-property (point) 'face)
>
Eli, I have done the following
How can I fix the problem with using `describe-face' for "text-property"?
(defun laxy-descface (face)
"Describe the typeface properties of FACE."
(interactive
(list
(let* ( (cseq '("text-property" "mode-line-inactive" "mode-line")) )
(completing-read "Face_property: " cseq nil t "mode-line"))))
(pcase form
("text-property"
(describe-face (get-text-property (point) 'face)))
("mode-line-inactive"
(describe-face (intern face)))
("mode-line"
(describe-face (intern face)))))
next prev parent reply other threads:[~2022-08-09 20:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-09 18:24 Interactive function displaying face attributes carlmarcos--- via Users list for the GNU Emacs text editor
2022-08-09 18:33 ` Eli Zaretskii
2022-08-09 18:53 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-08-09 18:59 ` Eli Zaretskii
[not found] ` <83v8r1s0ow.fsf@gnu.org-N930CPX----2>
2022-08-09 19:21 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-08-09 19:32 ` Eli Zaretskii
2022-08-09 20:25 ` carlmarcos--- via Users list for the GNU Emacs text editor [this message]
2022-08-10 12:35 ` Eli Zaretskii
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=N93H3oM--7-2@tutanota.com \
--to=help-gnu-emacs@gnu.org \
--cc=carlmarcos@tutanota.com \
--cc=eliz@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.