summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2019-10-04 08:56:18 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2019-10-04 08:56:18 -0400
commitf1d9e41ab022358c5086227d5b267f3f35d27666 (patch)
tree48e0d577913266ea8e3da03f7271ce9e8d3cfb0b /lisp/files.el
parent9a3089fea004e83992b6c4d05ecb7517b6c519ba (diff)
downloademacs-f1d9e41ab022358c5086227d5b267f3f35d27666.tar.gz
* lisp/subr.el (generate-new-buffer): Move (from files.el) before first use
(with-temp-file, with-output-to-string): Use it. * lisp/files.el (generate-new-buffer): Move to subr.el.
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el5
1 files changed, 0 insertions, 5 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 09180fd5555..20bc204b061 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1934,11 +1934,6 @@ this function prepends a \"|\" to the final result if necessary."
(concat "|" lastname)
lastname))))
-(defun generate-new-buffer (name)
- "Create and return a buffer with a name based on NAME.
-Choose the buffer's name using `generate-new-buffer-name'."
- (get-buffer-create (generate-new-buffer-name name)))
-
(defcustom automount-dir-prefix (purecopy "^/tmp_mnt/")
"Regexp to match the automounter prefix in a directory name."
:group 'files