From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: string-to-unibyte in image-jpeg-p Date: Thu, 24 May 2018 20:09:39 +0300 Message-ID: <8336yhasks.fsf@gnu.org> References: <87zi0q3c5b.fsf@gnuvola.org> <87h8my5dq5.fsf@igel.home> <37c86fb0-8644-9a67-8762-7d716fc92242@cs.ucla.edu> <87lgc9tp1m.fsf@gmail.com> <83tvqxaxof.fsf@gnu.org> <87zi0prrxf.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1527181655 6362 195.159.176.226 (24 May 2018 17:07:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 May 2018 17:07:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 24 19:07:31 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fLti6-0001W2-DP for ged-emacs-devel@m.gmane.org; Thu, 24 May 2018 19:07:30 +0200 Original-Received: from localhost ([::1]:39886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLtkB-00061R-Hk for ged-emacs-devel@m.gmane.org; Thu, 24 May 2018 13:09:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLtk5-00061A-4j for emacs-devel@gnu.org; Thu, 24 May 2018 13:09:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLtk0-0004ls-7S for emacs-devel@gnu.org; Thu, 24 May 2018 13:09:33 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLtk0-0004lk-4O; Thu, 24 May 2018 13:09:28 -0400 Original-Received: from [176.228.60.248] (port=3994 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fLtjz-00064f-Iy; Thu, 24 May 2018 13:09:27 -0400 In-reply-to: <87zi0prrxf.fsf@gmail.com> (message from Robert Pluim on Thu, 24 May 2018 17:31:40 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225669 Archived-At: > From: Robert Pluim > Cc: emacs-devel@gnu.org > Date: Thu, 24 May 2018 17:31:40 +0200 > > * lisp/image.el (image-jpeg-p): Declare obsolete. > --- > lisp/image.el | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/lisp/image.el b/lisp/image.el > index e084fe329a..95acda0b07 100644 > --- a/lisp/image.el > +++ b/lisp/image.el > @@ -270,6 +270,8 @@ image-jpeg-p > (substring data i (min (+ i nbytes) len))))) > (setq i (+ i 1 nbytes)))))))) > > +(make-obsolete 'image-jpeg-p nil "27.1") I'd prefer an explicit text as the 2nd arg, something that will warn about impending removal of the function. Thanks.