]> git.eshelyaron.com Git - emacs.git/commitdiff
; Simplify two functions after recent change
authorStefan Kangas <stefan@marxist.se>
Sun, 31 Jul 2022 09:46:31 +0000 (11:46 +0200)
committerStefan Kangas <stefan@marxist.se>
Sun, 31 Jul 2022 10:04:17 +0000 (12:04 +0200)
* lisp/textmodes/bib-mode.el (bib-capitalize-title):
* lisp/textmodes/refbib.el (r2b-capitalize-title): Simplify.

lisp/textmodes/bib-mode.el
lisp/textmodes/refbib.el

index 83759090aff8c731f5e5ba66caf7f3d46096ac5c..af49464d1eef2dd3c4a8dbecbf077ee86017b168 100644 (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)))
index f697fcaf403ebc37851d028b64a26bac302cbc6a..203a0fdbb72cc2dad43bf78d5f5ed5ec3e2dd0e6 100644 (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)))