aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorSpencer Williams <spnw@plexwave.org>2025-04-16 12:41:36 -0400
committerSpencer Williams <spnw@plexwave.org>2025-04-16 12:46:15 -0400
commit996a8d2c325299fe3e2022b1be1ed51a846bfd43 (patch)
tree877f317b3c2805a0d306234b021b3d00a7d4d3a8 /lisp
parent5adafb8dce64573b85ca702d9ac0950a8ba56f42 (diff)
Don't try to set title from untitled note file
Diffstat (limited to 'lisp')
-rw-r--r--lisp/seam.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/seam.el b/lisp/seam.el
index 9a4f744..d8e8138 100644
--- a/lisp/seam.el
+++ b/lisp/seam.el
@@ -505,10 +505,11 @@ Otherwise, it's nil."
update-count)))
(cl-defun seam-set-buffer-name (&optional (buffer (current-buffer)))
- (with-current-buffer buffer
- (rename-buffer
- (seam-format-title (seam-get-title-from-buffer)
- (seam-get-note-type (buffer-file-name buffer))))))
+ (when-let ((title (seam-get-title-from-buffer)))
+ (with-current-buffer buffer
+ (rename-buffer
+ (seam-format-title title
+ (seam-get-note-type (buffer-file-name buffer)))))))
(defun seam-setup-buffer ()
"Setup hooks when loading a Seam file."