Skip to content

:custom-face backquote ` expands to ' and thus expressions inside are not evaluated #533

@lucius-martius

Description

@lucius-martius

Description

When expanding a :custom-face block containing a backquote, that backquote is replaced with a regular quote. As a consequence the color is not evaluated and custom-set-faces fails.

Issue leaf-block

(leaf example
  :custom-face
  (example-face . `((t(:background ,(color-expression))))))

Expected output from macroexpand-1 of the leaf-block

(prog1 'example
  (custom-set-faces
   `(example-face
     ((t
       (:background
        (\,
         (color-expression)))))
     nil "Customized with leaf in `example' block")))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions