Skip to content

Commit 508c1f8

Browse files
committed
forge-topics-setup-buffer: Avoid new warning from Emacs 31
Using a initarg instead of the respective slot name with `oref' et al. now results in a warning. We want to stick to using keywords in `forge-topics-setup-buffer's PARAMS argument, so we have to mangle the symbols.
1 parent 5517743 commit 508c1f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisp/forge-topics.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Must be set before `forge-topics' is loaded.")
130130
(buffer-local-value 'forge--buffer-topics-spec buf)))
131131
((clone forge-list-buffer-default-topic-filters)))))
132132
(while-let ((key (pop params)))
133-
(eieio-oset spec key (pop params)))
133+
(eieio-oset spec (intern (substring (symbol-name key) 1)) (pop params)))
134134
(unless (oref spec type)
135135
(oset spec type 'topic))
136136
(forge--cast-topics-spec-state spec)

0 commit comments

Comments
 (0)