Skip to content

Commit

Permalink
Add workaround comments
Browse files Browse the repository at this point in the history
  • Loading branch information
taku0 committed Sep 23, 2022
1 parent 9f9cabb commit 7552428
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swift-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
:group 'languages
:prefix "swift-mode:")

;; FIXME: Could you report the need for these `custom-add-load' as a bug (or
;; a feature request, but both go through `report-emacs-bug' anyway).
;;`update-directory-autoloads' does not handle `:group'.
;; WORKAROUND: `update-directory-autoloads' does not handle `:group'.
;;;###autoload (custom-add-load 'languages 'swift-mode)

;; WORKAROUND: `cus-load' overrides `custom-loads'
Expand Down Expand Up @@ -152,6 +150,8 @@ Signal `scan-error' if it hits opening parentheses."
;;;###autoload
(defsubst swift-mode:add-supported-extension-for-speedbar ()
"Register .swift to speedbar."
;; FIXME: Use `with-eval-after-load' when `package-lint' allows it.
;; See also https://github.com/swift-emacs/swift-mode/pull/179
(if (fboundp 'speedbar-add-supported-extension)
(speedbar-add-supported-extension ".swift")
(add-hook 'speedbar-load-hook
Expand Down

0 comments on commit 7552428

Please sign in to comment.