branch: externals/fontaine commit 8d5ba4ac64658da197b9eba41bf4e345a714f782 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Do not update history if it is frame-specific The idea is that the user sets a preset for the given frame as an exception to what they are normally using. We want the history to record the global choices. --- fontaine.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fontaine.el b/fontaine.el index 8648a8c5bc..a7399b0474 100644 --- a/fontaine.el +++ b/fontaine.el @@ -563,7 +563,8 @@ Call `fontaine-set-preset-hook' as a final step." (fontaine--apply-bold-preset preset frame) (fontaine--apply-italic-preset preset frame) (setq fontaine-current-preset preset) - (add-to-history 'fontaine--preset-history (format "%s" preset)) + (unless frame + (add-to-history 'fontaine--preset-history (format "%s" preset))) (run-hooks 'fontaine-set-preset-hook))) ;;;###autoload