aboutsummaryrefslogtreecommitdiff
path: root/compat-25.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-01-20 19:19:07 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2023-01-20 19:28:38 +0100
commitadcbf00d7740e44ea997c06ce89473b5824674d8 (patch)
tree9eee6872bb9e5cd120c0118fad1ea92d113cf1f2 /compat-25.el
parent5988ede6867fc9e85bf9b0064b709676e68b0e2b (diff)
compat-29: Add substitute-quotes
Diffstat (limited to 'compat-25.el')
-rw-r--r--compat-25.el22
1 files changed, 22 insertions, 0 deletions
diff --git a/compat-25.el b/compat-25.el
index 4a4aff9..6186ace 100644
--- a/compat-25.el
+++ b/compat-25.el
@@ -70,6 +70,28 @@ usage: (bool-vector &rest OBJECTS)"
?\\ ?/))
(aref name (1- (length name)))))
+;;;; Defined in doc.c
+
+(compat-defvar text-quoting-style nil ;; <compat-tests:text-quoting-style>
+ "Style to use for single quotes in help and messages.
+
+The value of this variable determines substitution of grave accents
+and apostrophes in help output (but not for display of Info
+manuals) and in functions like `message' and `format-message', but not
+in `format'.
+
+The value should be one of these symbols:
+ `curve': quote with curved single quotes ‘like this’.
+ `straight': quote with straight apostrophes \\='like this\\='.
+ `grave': quote with grave accent and apostrophe \\=`like this\\=';
+ i.e., do not alter the original quote marks.
+ nil: like `curve' if curved single quotes are displayable,
+ and like `grave' otherwise. This is the default.
+
+You should never read the value of this variable directly from a Lisp
+program. Use the function `text-quoting-style' instead, as that will
+compute the correct value for the current terminal in the nil case.")
+
;;;; Defined in simple.el
;; `save-excursion' behaved like `save-mark-and-excursion' before 25.1.