; 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:
@@ -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)))
|
||||
|
||||
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user