[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wrong argument for buffer name
From: |
Heime |
Subject: |
Wrong argument for buffer name |
Date: |
Mon, 07 Aug 2023 06:59:03 +0000 |
Why does the following function give
Lisp error: (wrong-type-argument stringp bfname)
What can I do to fix this problem for the buffer name ?
(defconst buffer-name "BFTEMP")
(defun estring (string &optional bfname)
"Show STRING in a temporary buffer."
(or bfname (setq bfname buffer-name))
(with-output-to-temp-buffer bfname
(princ string)
(emacs-lisp-mode)))
- Wrong argument for buffer name,
Heime <=