From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61432: 28.2; [PATCH] viper-init: disable face support Date: Sat, 11 Feb 2023 17:38:47 +0200 Message-ID: <83357cjjp4.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13644"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61432@debbugs.gnu.org To: =?UTF-8?Q?Andr=C3=A9s_?= =?UTF-8?Q?Ram=C3=ADrez?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 11 16:40:23 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pQrzD-0003NL-GL for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Feb 2023 16:40:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQryt-0003yM-T5; Sat, 11 Feb 2023 10:40:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQryr-0003xq-Vs for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 10:40:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQryr-0004Lh-M9 for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 10:40:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQryr-0002HH-J8 for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 10:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Feb 2023 15:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61432 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 61432-submit@debbugs.gnu.org id=B61432.16761299668694 (code B ref 61432); Sat, 11 Feb 2023 15:40:01 +0000 Original-Received: (at 61432) by debbugs.gnu.org; 11 Feb 2023 15:39:26 +0000 Original-Received: from localhost ([127.0.0.1]:42951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQryH-0002GA-TC for submit@debbugs.gnu.org; Sat, 11 Feb 2023 10:39:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQryF-0002Fv-Qf for 61432@debbugs.gnu.org; Sat, 11 Feb 2023 10:39:24 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQry9-0004EI-GH; Sat, 11 Feb 2023 10:39:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=8zgzpbOZh1dO3dhbR5Vj5xNYznocWPXxJsXaWbo3IOQ=; b=B3GF+aqAwwAE8RZ9Npg0 kAQCDiHErXtq0lh1I2Cx+egPCf/wKIGEWGq4QiKUhs35PF6Nhxjyje3dAOy7TK0Vwc9HgKDpzKSa/ cpia5RnZCYZuKwRXiAHnhlFZkQCnZ0GrM6O/0ekiyrc/sWYQGqPmKRzGlNMHj2GokeAhpvVMrxDYe 11pwV1NuZKlX/B3/Sw14/iEEJiMuLpJh5oGls4VgR5Qnh2rp//6I8soOrBlPfMJeAfibm1srOEwJp iXpkDzh0o24DkNyu7lONHnY9buu0VUOOBw9hnufplRRj7m9O4zM1WebsuzRPs5rqDywfL4iSEzio8 npsO6NbXFkH6FQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQry9-0001NF-0U; Sat, 11 Feb 2023 10:39:17 -0500 In-Reply-To: (message from =?UTF-8?Q?Andr=C3=A9s_?= =?UTF-8?Q?Ram=C3=ADrez?= on Sat, 11 Feb 2023 14:22:44 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255334 Archived-At: > From: Andrés Ramírez > 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.