; Simplify two functions after recent change

* lisp/textmodes/bib-mode.el (bib-capitalize-title):
* lisp/textmodes/refbib.el (r2b-capitalize-title): Simplify.
This commit is contained in:
Stefan Kangas
2022-07-31 11:46:31 +02:00
parent 623356ee94
commit ef5abcd4cc
2 changed files with 0 additions and 2 deletions

View File

@@ -227,7 +227,6 @@ named by variable `bib-unread-file'."
(defun bib-capitalize-title (s)
"Like `capitalize', but don't capitalize stop words, except the first."
(with-temp-buffer
(erase-buffer)
(insert s)
(bib-capitalize-title-region (point-min) (point-max))
(buffer-string)))

View File

@@ -165,7 +165,6 @@ This is in addition to the `r2b-capitalize-title-stop-words'.")
(defun r2b-capitalize-title (s)
"Like `capitalize', but don't capitalize stop words, except the first."
(with-temp-buffer
(erase-buffer)
(insert s)
(r2b-capitalize-title-region (point-min) (point-max))
(buffer-string)))