From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#33233: 27.0.50; Replace gnus-correct-length with string-width Date: Thu, 01 Nov 2018 16:53:44 -0700 Message-ID: <878t2cjqwn.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1541116392 16621 195.159.176.226 (1 Nov 2018 23:53:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Nov 2018 23:53:12 +0000 (UTC) To: 33233@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 02 00:53:08 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIMlv-0004Aw-0N for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Nov 2018 00:53:07 +0100 Original-Received: from localhost ([::1]:47251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIMo1-0006uw-DE for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2018 19:55:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIMnq-0006ue-RH for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 19:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIMnm-0004bd-IL for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 19:55:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIMnm-0004bI-B0 for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 19:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gIMnm-0001rO-7R for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 19:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Nov 2018 23:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33233 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15411164437082 (code B ref -1); Thu, 01 Nov 2018 23:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Nov 2018 23:54:03 +0000 Original-Received: from localhost ([127.0.0.1]:59075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIMmp-0001q9-4e for submit@debbugs.gnu.org; Thu, 01 Nov 2018 19:54:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIMmn-0001pY-VD for submit@debbugs.gnu.org; Thu, 01 Nov 2018 19:54:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIMmh-0004AJ-Ux for submit@debbugs.gnu.org; Thu, 01 Nov 2018 19:53:56 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gIMmh-0004AF-R0 for submit@debbugs.gnu.org; Thu, 01 Nov 2018 19:53:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIMmg-0006nR-Vk for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 19:53:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIMmg-00049i-8Q for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 19:53:54 -0400 Original-Received: from mail.ericabrahamsen.net ([50.56.99.223]:53843) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gIMmg-00045t-1d for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 19:53:54 -0400 Original-Received: from localhost (unknown [207.109.85.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id E14AF405E5 for ; Thu, 1 Nov 2018 23:53:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1541116425; bh=X+6LORIlt/shx8JnIB3kzwRZ18Qfv7EEuass/hsU+C4=; h=From:To:Subject:Date:From; b=ZupsN/hNqx4e5dOsUNjX3mtuJeVDutH8P7QPq+ZtAzS0pNh1W5pRMRNYmc8c3v7ek BXfJKZdbNYHmLpdcuD1uqIA+T6BQ+rAbxrMZl87JloOdi2XR1oSSx+2XY4S2Yo83B5 5kF/FsrbFU1whkKPtG0jDekUkUqvIbyQyQSkCLcw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151933 Archived-At: --=-=-= Content-Type: text/plain The one is trivially replaceable by the other, this patch defines an obsolete alias. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Obsolete-gnus-correct-length-in-favor-of-string-widt.patch >From 93e9566ee7335a148e34ecade9b716a636b5e70b Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Thu, 1 Nov 2018 16:50:17 -0700 Subject: [PATCH] Obsolete gnus-correct-length in favor of string-width * lisp/gnus/gnus-spec.el: Define an obsolete alias. --- lisp/gnus/gnus-spec.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/gnus/gnus-spec.el b/lisp/gnus/gnus-spec.el index 379a7f2b5c..4b5f15fbc6 100644 --- a/lisp/gnus/gnus-spec.el +++ b/lisp/gnus/gnus-spec.el @@ -271,9 +271,7 @@ gnus-spec-tab (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) -- 2.19.1 --=-=-=--