all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: 22721@debbugs.gnu.org
Subject: bug#22721: Make the eww-font-toggle message clear
Date: Wed, 17 Feb 2016 10:05:31 -0500	[thread overview]
Message-ID: <CAFyQvY1OLHAcRbk0WfUpxHU3mNO_ONOrBMxpsxjWQXobV2PGfQ@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY3nrtGsksp6wxchUg4hgCW=Hyr-NCfY3swUmHcs3QxbhQ@mail.gmail.com>

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

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

[-- Attachment #2: Type: text/html, Size: 1337 bytes --]

  reply	other threads:[~2016-02-17 15:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-17 15:01 bug#22721: Make the eww-font-toggle message clear Kaushal Modi
2016-02-17 15:05 ` Kaushal Modi [this message]
2016-02-19  5:56   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFyQvY1OLHAcRbk0WfUpxHU3mNO_ONOrBMxpsxjWQXobV2PGfQ@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=22721@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.