mirror of
https://github.com/protesilaos/dotfiles.git
synced 2026-09-10 07:16:20 -04:00
emcs: add back the %S in prot-elisp.el that I had accidentally removed
This commit is contained in:
parent
f365606d6d
commit
04b1016f10
|
|
@ -13009,9 +13009,9 @@ At all times, copy the return value to the `kill-ring'."
|
|||
(when comment-p
|
||||
(insert (format "%S" expression)))
|
||||
(let ((return-value (eval expression)))
|
||||
(kill-new (format "%s" return-value))
|
||||
(kill-new (format "%S" return-value))
|
||||
(message "Copied: `%S'" return-value)
|
||||
(insert (format "\n;; => %s\n" return-value)))))
|
||||
(insert (format "\n;; => %S\n" return-value)))))
|
||||
|
||||
(define-derived-mode prot-elisp-macroexpand-mode emacs-lisp-mode "MacroExpand"
|
||||
"Like `emacs-lisp-mode' but for macroexpanded forms."
|
||||
|
|
|
|||
|
|
@ -52,9 +52,9 @@ At all times, copy the return value to the `kill-ring'."
|
|||
(when comment-p
|
||||
(insert (format "%S" expression)))
|
||||
(let ((return-value (eval expression)))
|
||||
(kill-new (format "%s" return-value))
|
||||
(kill-new (format "%S" return-value))
|
||||
(message "Copied: `%S'" return-value)
|
||||
(insert (format "\n;; => %s\n" return-value)))))
|
||||
(insert (format "\n;; => %S\n" return-value)))))
|
||||
|
||||
(define-derived-mode prot-elisp-macroexpand-mode emacs-lisp-mode "MacroExpand"
|
||||
"Like `emacs-lisp-mode' but for macroexpanded forms."
|
||||
|
|
|
|||
Loading…
Reference in a new issue