aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2025-06-21 06:26:10 -0400
committerEli Zaretskii2025-06-21 06:26:10 -0400
commit31febb1a2862a5dc87de5555c13be233d96d0d27 (patch)
treebf5f2683b4bf48a87aec1291a8d8b346a9f9c6ab
parentf1696c3c27e92d889e6f8c816b8f15bd308d8c77 (diff)
parenta2bfce5d2a7d046a45c25364f3c69b3d8a776081 (diff)
downloademacs-31febb1a2862a5dc87de5555c13be233d96d0d27.tar.gz
emacs-31febb1a2862a5dc87de5555c13be233d96d0d27.zip
Merge from origin/emacs-30
a2bfce5d2a7 ; Fix customization and doc strings in pp.el
-rw-r--r--lisp/emacs-lisp/pp.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/pp.el b/lisp/emacs-lisp/pp.el
index c183f442d8d..01dc95e649b 100644
--- a/lisp/emacs-lisp/pp.el
+++ b/lisp/emacs-lisp/pp.el
@@ -71,9 +71,9 @@ Lisp syntax."
71 (const :tag "Emacs<29 algorithm, fast and good enough" pp-28) 71 (const :tag "Emacs<29 algorithm, fast and good enough" pp-28)
72 (const :tag "Work hard for code (slow on large inputs)" 72 (const :tag "Work hard for code (slow on large inputs)"
73 pp-emacs-lisp-code) 73 pp-emacs-lisp-code)
74 (const :tag "`pp-emacs-lisp-code' if `pp-use-max-width' else `pp-28'" 74 (const :tag "Work hard for code if `pp-use-max-width' non-nil, else as in Emacs<29"
75 pp-29) 75 pp-29)
76 function) 76 (function :tag "Custom function"))
77 :version "30.1") 77 :version "30.1")
78 78
79(defvar pp--inhibit-function-formatting nil) 79(defvar pp--inhibit-function-formatting nil)
@@ -123,7 +123,7 @@ and should pretty print it at point into the current buffer."
123 123
124(defun pp-29 (beg-or-sexp &optional end) ;FIXME: Better name? 124(defun pp-29 (beg-or-sexp &optional end) ;FIXME: Better name?
125 "Prettify the current region with printed representation of a Lisp object. 125 "Prettify the current region with printed representation of a Lisp object.
126Uses the pretty-printing algorithm that was standard in Emacs-29, 126Uses the pretty-printing algorithm that was standard in Emacs 29,
127which, depending on `pp-use-max-width', will either use `pp-28' 127which, depending on `pp-use-max-width', will either use `pp-28'
128or `pp-emacs-lisp-code'." 128or `pp-emacs-lisp-code'."
129 (if pp-use-max-width 129 (if pp-use-max-width
@@ -278,7 +278,7 @@ it inserts and pretty-prints that arg at point."
278 278
279(defun pp-28 (beg &optional end) ;FIXME: Better name? 279(defun pp-28 (beg &optional end) ;FIXME: Better name?
280 "Prettify the current region with printed representation of a Lisp object. 280 "Prettify the current region with printed representation of a Lisp object.
281Uses the pretty-printing algorithm that was standard before Emacs-30. 281Uses the pretty-printing algorithm that was standard before Emacs 30.
282Non-interactively can also be called with a single argument, in which 282Non-interactively can also be called with a single argument, in which
283case that argument will be inserted pretty-printed at point." 283case that argument will be inserted pretty-printed at point."
284 (interactive "r") 284 (interactive "r")