From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#21391: 24.5; `thing-at-point' returns error when called with arguments 'number t) Date: Tue, 8 Nov 2016 08:31:07 -0800 (PST) Message-ID: <4b4e0908-827a-4c61-a0f5-b91e053f1f3d@default> References: <0a68c2ae-0940-4e2c-8b3c-1faceb45c43c@default> <1773ab35-70b1-42f9-8a8b-fe07881487d1@default> <302c1b51-e840-a2ca-5b8f-e3f64532eda8@easy-emacs.de> <2857cfd4-94db-49ae-902e-a010c0571868@default> <66b2bee0-a07f-6d51-8119-89decd6b2cae@easy-emacs.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1478622771 10009 195.159.176.226 (8 Nov 2016 16:32:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 8 Nov 2016 16:32:51 +0000 (UTC) Cc: Tino Calancha To: andreas.roehler@easy-emacs.de, 21391@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 08 17:32:47 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 1c49Jx-0008IA-AT for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Nov 2016 17:32:25 +0100 Original-Received: from localhost ([::1]:34118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c49K0-0002nN-D1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Nov 2016 11:32:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c49Jg-0002eO-5Z for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 11:32:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c49Ja-0005o9-Da for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 11:32:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34446) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c49Ja-0005o5-AN for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 11:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c49Ja-00040g-2j for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 11:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Nov 2016 16:32:02 +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: X-Debbugs-Original-To: Andreas =?UTF-8?Q?R=C3=B6hler?= , bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147862269015373 (code B ref -1); Tue, 08 Nov 2016 16:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Nov 2016 16:31:30 +0000 Original-Received: from localhost ([127.0.0.1]:49845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c49J4-0003zt-Fp for submit@debbugs.gnu.org; Tue, 08 Nov 2016 11:31:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c49J2-0003zd-BL for submit@debbugs.gnu.org; Tue, 08 Nov 2016 11:31:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c49Iw-0005g6-B6 for submit@debbugs.gnu.org; Tue, 08 Nov 2016 11:31:23 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55138) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c49Iw-0005fy-8b for submit@debbugs.gnu.org; Tue, 08 Nov 2016 11:31:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c49Iv-0002dn-7x for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 11:31:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c49Iu-0005fW-Cj for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 11:31:21 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:51705) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c49Io-0005cd-Ir; Tue, 08 Nov 2016 11:31:14 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id uA8GV9vr031645 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 8 Nov 2016 16:31:09 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.13.8) with ESMTP id uA8GV9Is026298 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 8 Nov 2016 16:31:09 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id uA8GV8LA010057; Tue, 8 Nov 2016 16:31:08 GMT In-Reply-To: <66b2bee0-a07f-6d51-8119-89decd6b2cae@easy-emacs.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.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:125471 Archived-At: > >>> `thing-at-point' should always return a string. > >> > >> Indeed. Which would require some normalization WRT number-at- > >> point etc. > > > > `number-at-point' uses `form-at-point'. It returns a number (or > > nil), not a numeral (string). It satisfies `numberp', not `stringp'. > > > > What normalization do you have in mind? >=20 > Still think detecting buffer-substrings according to THING and > returning them if found at point --nil otherwise-- is most > straightforward. Sorry, but I don't follow you. Just what are you proposing? > >>> `list-at-point', `form-at-point', etc. are a different > >>> story - they can return anything. > >> > >> Interesting question. Maybe returns the symbol if found - nil > >> otherwise? > > > > That's what `symbol-at-point' does. >=20 > Unfortunately it does more - it might change the symbol-table. > Expect a passive, plain report instead. I don't understand. Please specify what you are proposing (maybe in a different bug report, if that is more appropriate).