all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: emacs-devel@gnu.org
Subject: bind print-integers-as-characters to t in `describe-variable'?
Date: Wed, 15 May 2024 11:33:58 +0200	[thread overview]
Message-ID: <87eda3ju61.fsf@gmail.com> (raw)

It makes the display of eg `electric-quote-chars' much more readable

Robert
-- 

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 182b22549b5..2d85dac22de 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1349,7 +1349,8 @@ describe-variable
 		      (print-rep
 		       (let ((rep
 			      (let ((print-quoted t)
-                                    (print-circle t))
+                                    (print-circle t)
+                                    (print-integers-as-characters t))
                                 (cl-prin1-to-string val))))
                          (if (and (symbolp val) (not (booleanp val)))
 			     (format-message "`%s'" rep)



             reply	other threads:[~2024-05-15  9:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-15  9:33 Robert Pluim [this message]
2024-05-15 10:13 ` bind print-integers-as-characters to t in `describe-variable'? Mattias Engdegård
2024-05-15 11:56   ` Eli Zaretskii
2024-05-16  5:46     ` Philip Kaludercic
2024-05-16  8:45       ` Eli Zaretskii
2024-05-16  9:05         ` Philip Kaludercic
2024-05-16 11:58           ` Eli Zaretskii
2024-05-16  9:08         ` Robert Pluim
2024-05-15 12:32   ` Robert Pluim
2024-05-15 11:55 ` Eli Zaretskii

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=87eda3ju61.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=emacs-devel@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.