]> git.eshelyaron.com Git - emacs.git/commitdiff
Obsolete gnus-correct-length in favor of string-width
authorEric Abrahamsen <eric@ericabrahamsen.net>
Thu, 1 Nov 2018 23:50:17 +0000 (16:50 -0700)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Fri, 2 Nov 2018 17:10:05 +0000 (10:10 -0700)
* lisp/gnus/gnus-spec.el: Define an obsolete alias.

lisp/gnus/gnus-spec.el

index 379a7f2b5c39affb549db88cb019c7c218b2658f..4b5f15fbc6dfc5cc76d1670c5cdc64812748f7a5 100644 (file)
@@ -271,9 +271,7 @@ Return a list of updated types."
               (insert " ")))
         (insert-char ?  (max (- ,column (current-column)) 0))))))
 
-(defun gnus-correct-length (string)
-  "Return the correct width of STRING."
-  (apply #'+ (mapcar #'char-width string)))
+(define-obsolete-function-alias 'gnus-correct-length 'string-width "27.1")
 
 (defun gnus-correct-substring (string start &optional end)
   (let ((wstart 0)