unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#61432: 28.2; [PATCH] viper-init: disable face support
@ 2023-02-11 14:22 Andrés Ramírez
  2023-02-11 15:38 ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Andrés Ramírez @ 2023-02-11 14:22 UTC (permalink / raw)
  To: 61432

[-- Attachment #1: Type: text/plain, Size: 102 bytes --]

Hi.

The following patch disables face support for not changing the modeline
fonts when using viper.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mypatch --]
[-- Type: text/x-patch, Size: 718 bytes --]

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))))))
 
 \f
 ;;; Macros

Diff finished.  Fri Feb 10 12:31:17 2023

[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


Best Regards

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-02-23 15:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-11 14:22 bug#61432: 28.2; [PATCH] viper-init: disable face support Andrés Ramírez
2023-02-11 15:38 ` Eli Zaretskii
2023-02-11 16:10   ` andrés ramírez
2023-02-11 16:30     ` Eli Zaretskii
2023-02-11 18:32       ` andrés ramírez
2023-02-11 18:48         ` Eli Zaretskii
2023-02-12 17:54           ` andrés ramírez
2023-02-12 18:30             ` Eli Zaretskii
2023-02-12 18:53               ` andrés ramírez
2023-02-13 14:00                 ` Robert Pluim
2023-02-13 15:02                   ` andrés ramírez
2023-02-13 17:02                     ` Robert Pluim
2023-02-18 17:01                     ` Eli Zaretskii
2023-02-18 17:01                     ` Eli Zaretskii
     [not found]                       ` <SJ1PR12MB63635DCA5881078AB2D3ED0BA6AB9@SJ1PR12MB6363.namprd12.prod.outlook.com>
2023-02-23 15:09                         ` Robert Pluim
2023-02-23 15:24                           ` andrés ramírez

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).