bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22721: Make the eww-font-toggle message clear


From: Kaushal Modi
Subject: bug#22721: Make the eww-font-toggle message clear
Date: Wed, 17 Feb 2016 10:05:31 -0500

Made a "duh" mistake in my earlier patch.

Here's the fixed version:

diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index da920c1..185b9e6 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1498,11 +1498,10 @@ eww-set-character-encoding
 (defun eww-toggle-fonts ()
   "Toggle whether to use monospaced or font-enabled layouts."
   (interactive)
-  (message "Fonts are now %s"
-   (if (setq shr-use-fonts (not shr-use-fonts))
-       "on"
-     "off"))
-  (eww-reload))
+  (setq shr-use-fonts (not shr-use-fonts))
+  (eww-reload)
+  (message "Proportional fonts are now %s"
+   (if shr-use-fonts "on" "off")))
 
 ;;; Bookmarks code
 




--
Kaushal Modi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]