From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list Date: Tue, 11 Oct 2016 12:42:35 +0900 Message-ID: <87fuo3r1p0.fsf@gmail.com> References: <48df5626-be32-ffb0-55f5-1b6f116a6940@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 1476157467 8279 195.159.176.226 (11 Oct 2016 03:44:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2016 03:44:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 24627@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 11 05:44:23 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 1btnzB-0000KD-4f for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Oct 2016 05:44:13 +0200 Original-Received: from localhost ([::1]:53593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btnz9-0002Bl-N0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Oct 2016 23:44:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btnz4-0002Ba-4F for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2016 23:44:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btnz0-0000ny-00 for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2016 23:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btnyz-0000nu-SH for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2016 23:44:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1btnyz-0004jj-Nl for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2016 23:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Oct 2016 03:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24627 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24627-submit@debbugs.gnu.org id=B24627.147615738918137 (code B ref 24627); Tue, 11 Oct 2016 03:44:01 +0000 Original-Received: (at 24627) by debbugs.gnu.org; 11 Oct 2016 03:43:09 +0000 Original-Received: from localhost ([127.0.0.1]:51606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btny9-0004iT-8x for submit@debbugs.gnu.org; Mon, 10 Oct 2016 23:43:09 -0400 Original-Received: from mail-pa0-f47.google.com ([209.85.220.47]:36565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btny7-0004iD-Hy for 24627@debbugs.gnu.org; Mon, 10 Oct 2016 23:43:08 -0400 Original-Received: by mail-pa0-f47.google.com with SMTP id ry6so7152569pac.3 for <24627@debbugs.gnu.org>; Mon, 10 Oct 2016 20:43:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=s3i/Ikfg4wic0tU2033hlzQU9iZyK/QBbqABE7ZHzB0=; b=q9ZhxClZIboeTvux8wwd8+PE0DZKTLoIl2ygIg1acdObI20C326PZ7iUduMeEVbaQo BzEwTAyVwzHfiouDteXmQQTea3BJQwIOrwGjDgdZwP/FbF+TVZ/aoHE1jTz5L8phwTXV maDA+ZQY+SwVePYhBVUjisfQB4Qw1J9HNRs8ZUthG49221UHNsmW/NZy0YEw8aXUXtNC AUNaRMmTcCnwGZObA903xbVtYQtOBa9I7nlj1I51I9Yf5otX0nPAEu8R6kWYyPwiI91a BSXEsHigxS0ge2ZM/pfIWZIjsssTVigpvNQM8BbDPAChhnfMtmgC/Z1mKWaaQmu7VOli 6dFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=s3i/Ikfg4wic0tU2033hlzQU9iZyK/QBbqABE7ZHzB0=; b=A/fcx9JthKsCmSY78Y95+C+H/c2RYBtTE/GChKy6G2C3q9VVdMarh2u6xgsRzK5tHO 1qJ6c2REF/qFhXaajq3nrqpkZROzOgiofIKVj+inEL98/dCs7348UN4eRCRMXlgIuSxc OpENe7LUnLxsa+WjmVQo8gwPYz9Sax/z6UpsaQpjw1ki8BIESXW2ym667qB2pYVGjV49 8ep35zJr7/P+2vJKz/8+oTCuOnHLT2NqDnYo934jcDhkQ6uWyWIjCKgztz/fP5iChY/1 iOCXL0umth7IIBCpLFx0ke1dS3riguvY+wRUFAyv71rMW6ECrnxiXAhP4N70Vq9BhXlm a8xQ== X-Gm-Message-State: AA6/9RmdWTLg5AA8erw3HZ8Zhi+BnR6SgGn7Fw4OmXxogJCtnEqKxAA2SN2PdGw4t+gMvA== X-Received: by 10.66.141.134 with SMTP id ro6mr3124450pab.14.1476157381531; Mon, 10 Oct 2016 20:43:01 -0700 (PDT) Original-Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57]) by smtp.gmail.com with ESMTPSA id z6sm1141327pay.31.2016.10.10.20.42.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Oct 2016 20:43:00 -0700 (PDT) In-Reply-To: <48df5626-be32-ffb0-55f5-1b6f116a6940@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\=22's\?\= message of "Fri, 7 Oct 2016 08:42:36 +0200") 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:124320 Archived-At: Andreas R=C3=B6hler writes: > On 06.10.2016 11:43, Tino Calancha wrote: > > bounds-of-thing-at-point: > > ;; Try moving forward, then back. > (funcall ;; First move to end. > (or (get thing 'end-op) > > Still think bounds-of-thing-at-point should move backward first > > parse-partial-sexp offers some handy info for beginning, not end I agree with you that `bounds-of-thing-at-point' needs some work. I have noticed other issues with it. We might work on them once we fix this bug. In the example in this thread the problem arise because `thing-at-point-bounds-of-list-at-point', which is the actual function doing the job here. We need to fix this function. Without it, the previous example works: emacs -Q thingatpt.el -eval "(require 'thingatpt)" M-: (put 'list 'bounds-of-thing-at-point nil) RET > C-p M-: (thing-at-point 'list t) RET =3D> nil