GNU bug report logs - #61432
28.2; [PATCH] viper-init: disable face support

Previous Next

Package: emacs;

Reported by: Andrés Ramírez <rrandresf <at> hotmail.com>

Date: Sat, 11 Feb 2023 14:28:02 UTC

Severity: normal

Tags: patch

Found in version 28.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 61432 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andrés Ramírez <rrandresf <at> hotmail.com>
Cc: 61432 <at> debbugs.gnu.org
Subject: Re: bug#61432: 28.2; [PATCH] viper-init: disable face support
Date: Sat, 11 Feb 2023 17:38:47 +0200
> From: Andrés Ramírez <rrandresf <at> hotmail.com>
> Date: Sat, 11 Feb 2023 14:22:44 +0000
> 
> The following patch disables face support for not changing the modeline
> fonts when using viper.
> 
> diff -u /tmp/viper-init.el.bak /tmp/viper-init.el
> --- /tmp/viper-init.el.bak	2023-02-10 12:25:52.388368619 +0000
> +++ /tmp/viper-init.el	2023-02-10 12:30:11.118394615 +0000
> @@ -78,11 +78,16 @@
>    :type 'boolean
>    :group 'viper-highlighting)
>  
> +(defvar viper-disable-face-support nil
> +  "disable the face support for not changing faces in the modeline. And stay as emacs -Q.")
> +
>  (defun viper-has-face-support-p ()
> +  (if (and (boundp 'viper-disable-face-support) viper-disable-face-support)
> +      nil
>    (cond ((viper-window-display-p))
>  	(viper-force-faces)
>  	((viper-color-display-p))
> -	(t (memq window-system '(pc)))))
> +	(t (memq window-system '(pc))))))

Can't you have the same effect if you customize the faces
viper-minibuffer-emacs-face and viper-minibuffer-vi-face to look the
same?

IOW, I don't think I understand the intent (nor the rationale, btw),
but then I'm not using viper, so I'm probably missing something.

Thanks.




This bug report was last modified 2 years and 171 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.