From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: 31699@debbugs.gnu.org
Subject: bug#31699: 26.1.50; find-face-definition defaults to non-face symbol
Date: Sun, 03 Jun 2018 19:39:34 +0100 [thread overview]
Message-ID: <87bmcrr9y1.fsf@tcd.ie> (raw)
In-Reply-To: <87fu23ra9l.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 03 Jun 2018 19:32:38 +0100")
[-- Attachment #1: Type: text/plain, Size: 87 bytes --]
"Basil L. Contovounesios" <contovob@tcd.ie> writes:
> Patch to follow.
As promised:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-default-candidate-of-find-face-definition.patch --]
[-- Type: text/x-diff, Size: 1027 bytes --]
From e129903ed87acedcadef203711b597a880ac36e0 Mon Sep 17 00:00:00 2001
From: "Basil L. Contovounesios" <contovob@tcd.ie>
Date: Sun, 3 Jun 2018 19:34:37 +0100
Subject: [PATCH] Fix default candidate of find-face-definition
* lisp/emacs-lisp/find-func.el (find-function-read): Use
face-at-point instead of variable-at-point for faces. (bug#31699)
---
lisp/emacs-lisp/find-func.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index ed8dc74506..13bbd9a7ec 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -464,6 +464,7 @@ find-function-read
otherwise uses `variable-at-point'."
(let* ((symb1 (cond ((null type) (function-called-at-point))
((eq type 'defvar) (variable-at-point))
+ ((eq type 'defface) (face-at-point t))
(t (variable-at-point t))))
(symb (unless (eq symb1 0) symb1))
(predicate (cdr (assq type '((nil . fboundp)
--
2.17.1
[-- Attachment #3: Type: text/plain, Size: 20 bytes --]
Thanks,
--
Basil
next prev parent reply other threads:[~2018-06-03 18:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-03 18:32 bug#31699: 26.1.50; find-face-definition defaults to non-face symbol Basil L. Contovounesios
2018-06-03 18:39 ` Basil L. Contovounesios [this message]
2018-06-09 6:57 ` 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
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=87bmcrr9y1.fsf@tcd.ie \
--to=contovob@tcd.ie \
--cc=31699@debbugs.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).