unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Oleh Krehel <ohwoeowho@gmail.com>
Cc: 20664@debbugs.gnu.org
Subject: bug#20664: 25.0.50; Customize: Link option or face name to the source definition
Date: Thu, 17 Sep 2020 20:46:54 +0200	[thread overview]
Message-ID: <874knwmeap.fsf@gnus.org> (raw)
In-Reply-To: <877frup37r.fsf@gmail.com> (Oleh Krehel's message of "Wed, 27 May 2015 15:19:52 +0200")

Oleh Krehel <ohwoeowho@gmail.com> writes:

> * lisp/cus-edit.el (custom-face-value-create): Make the face name into
>   a button that calls `find-face-definition'.

[...]

> +        (setq opoint (point))
> +        ;; Face name (tag).
> +        (insert " " tag)
> +        (make-button opoint (point)
> +                     'follow-link t
> +                     'action (lambda (&rest _x) (find-face-definition symbol))))

Makes sense to me.  I tweaked it a bit before applying, though -- used
insert-text-button for convenience.

> With this patch, "RET" works as expected, while "<mouse-1>" is giving an
> error for a reason I don't understand.  In order to make it work for the
> mouse, I have to do something contorted instead of a plain
> `make-button':

I think that's just a bug in Customize -- I think I've now fixed that,
but it involved some refactoring, so hopefully I didn't break anything.
But a standard Customize buffer seems to have the same number of things
that work before/after the rework, so I'm hopeful.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2020-09-17 18:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-26 20:41 bug#20664: 25.0.50; Customize: Link option or face name to the source definition Drew Adams
2015-05-27 13:19 ` Oleh Krehel
2015-05-27 14:09   ` martin rudalics
2015-05-27 14:28     ` Oleh Krehel
2015-05-27 14:59       ` Drew Adams
2015-05-27 15:16         ` Oleh Krehel
2015-05-27 15:28           ` Drew Adams
2015-05-27 14:15   ` Drew Adams
2015-05-27 14:30     ` Oleh Krehel
2020-09-17 18:46   ` Lars Ingebrigtsen [this message]
2020-09-17 20:16 ` Mauro Aranda
2020-09-17 20:30   ` Drew Adams
2020-09-18 11:28   ` Lars Ingebrigtsen
2020-09-18 11:39     ` Mauro Aranda
2020-09-17 21:41 ` Mauro Aranda
2020-09-17 21:46   ` Lars Ingebrigtsen

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=874knwmeap.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=20664@debbugs.gnu.org \
    --cc=ohwoeowho@gmail.com \
    /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).