From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build: select.el Date: Sun, 16 Jun 2019 19:19:33 +0300 Message-ID: <83ef3tv6y2.fsf@gnu.org> References: <831rzvvsgp.fsf@gnu.org> <83y322vqvg.fsf@gnu.org> <83v9x6vpap.fsf@gnu.org> <52332265-2d02-a01c-e221-20b00b1edf86@yandex.ru> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="206264"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 16 18:20:13 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcXt4-000rRg-FQ for ged-emacs-devel@m.gmane.org; Sun, 16 Jun 2019 18:20:10 +0200 Original-Received: from localhost ([::1]:41438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcXt3-0005nC-Fy for ged-emacs-devel@m.gmane.org; Sun, 16 Jun 2019 12:20:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60540) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcXsN-0005my-51 for emacs-devel@gnu.org; Sun, 16 Jun 2019 12:19:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hcXsL-000869-Tl; Sun, 16 Jun 2019 12:19:26 -0400 Original-Received: from [176.228.60.248] (port=1486 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hcXsK-0000l8-Tk; Sun, 16 Jun 2019 12:19:25 -0400 In-reply-to: (message from Lars Ingebrigtsen on Sun, 16 Jun 2019 16:45:20 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:237734 Archived-At: > From: Lars Ingebrigtsen > Cc: Eli Zaretskii > Date: Sun, 16 Jun 2019 16:45:20 +0200 > > In xselect--encode-string: > select.el:482:24:Warning: `string-make-unibyte' is an obsolete function (as of > 26.1); use `encode-coding-string'. > > It's this code: > > ((eq type 'C_STRING) > ;; If STR is unibyte (the normal case), use it; otherwise > ;; we assume some of the characters are eight-bit, and > ;; take their lower 8 bits. > (setq str (string-make-unibyte str))) > > Stefan suggested, I think, that we should just use string-to-unibyte > here. Eli, do you agree? Sorry, no, at least not yet. I still cannot wrap my head around that code, and Kenichi Handa didn't respond to my questions. Please leave this alone for now, it's still on my todo.