Skip to content

Commit 413d181

Browse files
committed
forge-topic-refresh-buffer: Name header hooks explicitly
To make it possible to grep for where they are being run.
1 parent d273eec commit 413d181

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lisp/forge-topic.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,8 +1313,10 @@ This mode itself is never used directly."
13131313
(magit-set-header-line-format (forge--format-topic-line topic))
13141314
(magit-insert-section (topicbuf)
13151315
(magit-insert-headers
1316-
(intern (format "%s-headers-hook"
1317-
(substring (symbol-name major-mode) 0 -5))))
1316+
(pcase major-mode
1317+
('forge-discussion-mode forge-discussion-headers-hook)
1318+
('forge-issue-mode forge-issue-headers-hook)
1319+
('forge-pullreq-mode forge-pullreq-headers-hook)))
13181320
(when (forge-pullreq-p topic)
13191321
(magit-insert-section (pullreq topic)
13201322
(magit-insert-heading "Commits")

0 commit comments

Comments
 (0)