From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#21391: 24.5; `thing-at-point' should return a string Date: Thu, 10 Nov 2016 18:19:00 +0200 Message-ID: <73600483-1df5-597c-6066-232189bbdd4a@yandex.ru> References: <0a68c2ae-0940-4e2c-8b3c-1faceb45c43c@default> <1773ab35-70b1-42f9-8a8b-fe07881487d1@default> <874m3krnb6.fsf_-_@gmail.com> <83a8dbiaps.fsf@gnu.org> <83pom7gjhl.fsf@gnu.org> <0a8d76e4-4d1b-a26d-2b76-a2d9384d9f72@yandex.ru> <83mvhbgitf.fsf@gnu.org> <25bb22e8-1388-275a-d0da-7e698acdf6da@yandex.ru> <83inrygggr.fsf@gnu.org> <83y40sfyij.fsf@gnu.org> <76505436-e66c-0ed3-6d7a-ce654f38ef30@yandex.ru> <83bmxnfhbi.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1478799663 22114 195.159.176.226 (10 Nov 2016 17:41:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Nov 2016 17:41:03 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Thunderbird/50.0 Cc: tino.calancha@gmail.com, 21391@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 10 18:40:59 2016 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 1c4tLF-0003vP-J9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Nov 2016 18:40:49 +0100 Original-Received: from localhost ([::1]:47975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4tLI-0002P1-J6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Nov 2016 12:40:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4s59-0001jf-C4 for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 11:20:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4s54-0005RY-Ay for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 11:20:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37049) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4s54-0005RO-86 for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 11:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c4s53-0000Ek-Vz for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 11:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Nov 2016 16:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21391 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21391-submit@debbugs.gnu.org id=B21391.1478794751853 (code B ref 21391); Thu, 10 Nov 2016 16:20:01 +0000 Original-Received: (at 21391) by debbugs.gnu.org; 10 Nov 2016 16:19:11 +0000 Original-Received: from localhost ([127.0.0.1]:52448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4s4F-0000Dh-6N for submit@debbugs.gnu.org; Thu, 10 Nov 2016 11:19:11 -0500 Original-Received: from mail-wm0-f54.google.com ([74.125.82.54]:38425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4s4D-0000DR-0R for 21391@debbugs.gnu.org; Thu, 10 Nov 2016 11:19:09 -0500 Original-Received: by mail-wm0-f54.google.com with SMTP id f82so41805952wmf.1 for <21391@debbugs.gnu.org>; Thu, 10 Nov 2016 08:19:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8sZyUg8FzF4+AMChqr7Tvoc6uUc2/iex+Gg+QzcG2Mg=; b=Sh7V6zR2bVs8USNaqfcE6mJlY65RdjhPTKe+53m7vEQhXcE4Nq7UX6Pw6CpuG+aMzH 4P75Q1U+gn0id9jpti+ZAtiQ3gh2P0SB6PKT6MRCabm9kofT51HU11eg4kdDemBc8Mwi PJDAe5biYbKBQkFYTOQFz45vL74CFQmTo0g9RQyMD1NKjvMaTVCcyYBCi60RFKk0zZDX f/m340HoFL04zkjcsfBo0zC2M3b9OvGNRWmfq1WDSYBY7ZzUehmjbitLyTj7HqP96D2Y WL0CUMkSIzLIerK0VUZjr+LXuXe2MABZ1RVQq+0vJ9eHk3Y+L+Thm7U3vFtHe3ocNp0h tkGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8sZyUg8FzF4+AMChqr7Tvoc6uUc2/iex+Gg+QzcG2Mg=; b=jn6v7w0TQ5oW+w9kYyulcvxZeg3vRc7br41S7EBHLMIkNhHOyHqFry9SRQwtxL9AKT JCCy8Va+YjnQwjMwe6IlizDKIzE0g+wUfWzTS0GWyUu4xAA+ibkJlCoX7hhdPHowxAA2 fC7wtNkEiuUFIbpF+is9fqPRW2IkBFnGSKWSk1O4DaaLaiBrYpnM8EXbKjrvkShRCP/J fKOvMhyeBw0CnBIqmWLU9atklY2RUM2CIhh1K/E3cFhQV5npb0xXNldCKgDCy00qdM+w RZxUomxn4RrTfR9jw1v1gNAIyX9ajz0LJ3/TKeyUCDsNPCdGsr81h1k8cGb6d7WE3Nzg X4WQ== X-Gm-Message-State: ABUngvd1hIoDs3DaH7y7ZQfizrrm7blEGZeIQKrX6IfXYQbnonAPZEosH0ysfePcgh3org== X-Received: by 10.28.69.217 with SMTP id l86mr9103292wmi.129.1478794743314; Thu, 10 Nov 2016 08:19:03 -0800 (PST) Original-Received: from [192.168.0.133] ([212.50.99.193]) by smtp.googlemail.com with ESMTPSA id bj1sm6292369wjc.17.2016.11.10.08.19.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Nov 2016 08:19:02 -0800 (PST) In-Reply-To: <83bmxnfhbi.fsf@gnu.org> Content-Language: en-US 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:125562 Archived-At: On 10.11.2016 18:08, Eli Zaretskii wrote: > There's a tension here between consistency and backward compatibility. > And since this function was "inconsistent" for a very long time, I'm > not sure losing backward compatibility can be justified by consistency > at this point. I believe I've touched on this already. And another inconsistency: (bounds-of-thing-at-point 'number) always returns nil. > We'd also lose something else: some Lisp objects can be printed, but > their printed representation cannot be read back. So for some > objects, requiring thing-at-point to return a string would lose > information. We won't lose that if we go with either of my proposals: instead of printing objects inside the thing-at-point function, we would require that each returned thing is a string already. Any thing-at-point function that returns a non-string will be considered non-conformant.