Timeline for How to delete a face
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 11, 2022 at 9:31 | comment | added | Gilles 'SO- stop being evil' |
@alper In Emacs 28 (github.com/emacs-mirror/emacs/commit/…) it changed to face--new-frame-defaults with a different format.
|
|
May 10, 2022 at 22:54 | comment | added | alper | I am getting following error: Symbol’s value as variable is void: face-new-frame-defaults | |
Mar 19, 2019 at 15:09 | comment | added | Gilles 'SO- stop being evil' |
@Tobias The id is an index in an internal face array. There's no Lisp function that allows removing entries from this array. And indeed face-new-frame-defaults applies to new frames, but it's a bit more than that: it's also the “user interface” to faces. So removing a face from there does effectively remove the face from the user interface, even if it doesn't completely remove all traces of the face.
|
|
Mar 19, 2019 at 15:06 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 4.0 |
as Tobias remarks, there's a face id, and there are frame-local definitions
|
Mar 19, 2019 at 14:01 | comment | added | Tobias |
Hm, (get 'myface 'face) returns an id. That property does not change when one deletes the face from face-new-frame-defaults , does it? What does this id indicate? The position of the face in the frame face list? face-new-frame-defaults is only for new frames, isn't it? I experimented a bit in the scratch buffer.
|
|
Mar 19, 2019 at 12:25 | history | answered | Gilles 'SO- stop being evil' | CC BY-SA 4.0 |