From 36e7aaa619342eff61b1daf3ac664f94d5272db7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 18 Jul 2024 22:36:14 -0400 Subject: [PATCH] nit(default): remove refs to doom-point-in-*-functions These variables were removed in e43d575. Amend: e43d575cafd9 --- modules/config/default/config.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/config/default/config.el b/modules/config/default/config.el index 19d566797..ff742cc94 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -270,9 +270,9 @@ (advice-add #'delete-backward-char :override #'+default--delete-backward-char-a) ;; HACK Makes `newline-and-indent' continue comments (and more reliably). -;; Consults `doom-point-in-comment-functions' to detect a commented region -;; and uses that mode's `comment-line-break-function' to continue comments. -;; If neither exists, it will fall back to the normal behavior of +;; Consults `doom-point-in-comment-p' to detect a commented region and uses +;; that mode's `comment-line-break-function' to continue comments. If +;; neither exists, it will fall back to the normal behavior of ;; `newline-and-indent'. ;; ;; We use an advice here instead of a remapping because many modes define @@ -281,9 +281,7 @@ ;; on a case by case basis. (defadvice! +default--newline-indent-and-continue-comments-a (&rest _) "A replacement for `newline-and-indent'. - -Continues comments if executed from a commented line. Consults -`doom-point-in-comment-functions' to determine if in a comment." +Continues comments if executed from a commented line." :before-until #'newline-and-indent (interactive "*") (when (and +default-want-RET-continue-comments