We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff8142 commit 6051bf1Copy full SHA for 6051bf1
scratch-log.el
@@ -58,8 +58,7 @@
58
(let* ((time (format-time-string "* %Y/%m/%d-%H:%m" (current-time)))
59
(buf-str (buffer-substring-no-properties (point-min) (point-max)))
60
(contents (concat "\n" time "\n" buf-str)))
61
- (with-current-buffer (get-buffer-create "tmp")
62
- (erase-buffer)
+ (with-temp-buffer
63
(insert contents)
64
(append-to-file (point-min) (point-max) sl-scratch-log-file))))
65
0 commit comments