From d1447ab23754d5a5f8f2552f99422467de682795 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Sat, 17 Apr 2021 16:31:15 +0800 Subject: [PATCH] Fix conflict with smartparens --- langs/docstr-python.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/langs/docstr-python.el b/langs/docstr-python.el index e6a250f..1d99004 100644 --- a/langs/docstr-python.el +++ b/langs/docstr-python.el @@ -149,11 +149,9 @@ (when (and (memq major-mode docstr-python-modes) ;; TODO: For some reason, '(nth 4 (syntax-ppss))' doesn't work. docstr-mode - (docstr-util-looking-back "\"\"\"" 3)) - (if (looking-at-p "\"\"\"") - (delete-char 3) - (save-excursion (insert "\"\"\"")) - (docstr--insert-doc-string (docstr-python--parse))))) + (docstr-util-looking-back "\"\"\"" 3) + (looking-at-p "\"\"\"")) + (docstr--insert-doc-string (docstr-python--parse)))) (provide 'docstr-python) ;;; docstr-python.el ends here