From: Drew Adams <drew.adams@oracle.com>
To: Alan Mackenzie <acm@muc.de>
Cc: 19217@debbugs.gnu.org
Subject: bug#19217: 25.0.50; `C-M-x' (`eval-defun') on a `defface' that is not top-level
Date: Wed, 10 Dec 2014 14:20:13 -0800 (PST) [thread overview]
Message-ID: <bb8ff8ae-46f7-4e18-9328-1ee5de5e49e5@default> (raw)
In-Reply-To: <20141206191057.GB3233@acm.acm>
Hi Alan,
> > > What happens when you do C-x C-e with point just after the
> > > `defface' form?
>
> > As I said, nothing happens.
>
> OK. I've hacked the following patch together, which wasn't actually
> all that difficult. I've tested it out on a defvar, and it works there.
> It gives C-x C-e the same special handling that C-M-x has for defvar's,
> defcustom's, defface's, etc. It's incomplete (no documentation has
> been changed), but it might do what you need. Please try it out.
Sorry for the delay. I tried it, for both defface and defvar, using
this:
(when t
(defface foo '((((background dark)) (:foreground "#58DFFA4FFFFF"))
(t (:foreground "Firebrick")))
"A face." :group 'help);
)
(when t
(defvar toto 42
"Forty-two.");
)
After evaling the sexps and then modifying the values
(e.g. Firebrick -> Blue, 42 -> 56), I put point before the `;'
and tried C-x C-e.
Starting from emacs -Q, it works, for both face & var. With my
setup, however, it does not work (no change from before). Dunno why.
Tried it with `lexical-binding' t and nil - neither worked.
I'll bisect my setup when I get a moment, to try to find out why it
doesn't work for me.
Thanks for working on this.
next prev parent reply other threads:[~2014-12-10 22:20 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<mailman.14952.1417284925.1147.bug-gnu-emacs@gnu.org>
[not found] ` <<20141129191023.34112.qmail@mail.muc.de>
2014-11-29 20:08 ` bug#19217: 25.0.50; `C-M-x' (`eval-defun') on a `defface' that is not top-level Drew Adams
2014-11-30 19:58 ` Alan Mackenzie
2014-11-30 20:51 ` Drew Adams
2014-11-30 23:20 ` Alan Mackenzie
2014-12-01 0:00 ` Drew Adams
2014-12-06 19:10 ` Alan Mackenzie
2014-12-10 22:20 ` Drew Adams [this message]
2014-12-13 3:07 ` Drew Adams
2020-09-18 13:36 ` Lars Ingebrigtsen
2020-09-18 15:53 ` Drew Adams
2020-09-19 14:10 ` Lars Ingebrigtsen
2020-10-15 14:28 ` Lars Ingebrigtsen
2020-10-15 15:29 ` Drew Adams
2020-10-15 15:35 ` Lars Ingebrigtsen
2020-10-15 16:15 ` Drew Adams
2014-11-29 18:13 Drew Adams
[not found] ` <mailman.14952.1417284925.1147.bug-gnu-emacs@gnu.org>
2014-11-29 19:10 ` Alan Mackenzie
2014-12-01 3:51 ` Stefan Monnier
2014-12-01 4:29 ` Drew Adams
2014-12-01 13:49 ` Stefan Monnier
[not found] ` <mailman.15037.1417408221.1147.bug-gnu-emacs@gnu.org>
2014-12-01 17:02 ` Alan Mackenzie
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=bb8ff8ae-46f7-4e18-9328-1ee5de5e49e5@default \
--to=drew.adams@oracle.com \
--cc=19217@debbugs.gnu.org \
--cc=acm@muc.de \
/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.