From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#9300: 24.0.50; `bounds-of-thing-at-point' does not return nil when just after THING Date: Mon, 20 Jun 2016 18:21:09 +0900 Message-ID: <67e48e39-f31f-5170-a552-ac33509ffcd6@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1466414588 24207 80.91.229.3 (20 Jun 2016 09:23:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2016 09:23:08 +0000 (UTC) Cc: f92capac@gmail.com, dgutov@yandex.ru To: 9300@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 20 11:22:57 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bEvPm-0007gn-Rj for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jun 2016 11:22:42 +0200 Original-Received: from localhost ([::1]:42244 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEvPl-0006Yb-Ta for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jun 2016 05:22:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEvPC-00064T-4M for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 05:22:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEvP7-0006DG-Vp for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 05:22:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEvP7-0006DA-SV for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 05:22:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bEvP7-0005hb-Nh for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 05:22:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jun 2016 09:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9300 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9300-submit@debbugs.gnu.org id=B9300.146641448121869 (code B ref 9300); Mon, 20 Jun 2016 09:22:01 +0000 Original-Received: (at 9300) by debbugs.gnu.org; 20 Jun 2016 09:21:21 +0000 Original-Received: from localhost ([127.0.0.1]:47079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEvOT-0005gf-92 for submit@debbugs.gnu.org; Mon, 20 Jun 2016 05:21:21 -0400 Original-Received: from mail-pa0-f54.google.com ([209.85.220.54]:35840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEvOR-0005gR-Fp for 9300@debbugs.gnu.org; Mon, 20 Jun 2016 05:21:19 -0400 Original-Received: by mail-pa0-f54.google.com with SMTP id wo6so12908386pac.3 for <9300@debbugs.gnu.org>; Mon, 20 Jun 2016 02:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=S7g82Xvj3kNP+9ABZABrfWDySbokugIoQBdEfNTB3ks=; b=y/7jdNSljFz0VFSe0uXt/W3uQr9V69smtlvtnvrgmA9sAEOcVtMzXpXhwAu5Si4uYc UwCd9hhak4y0YGOxAFvMAMWqJVQY2jFVI19dTiQKjRgEx5beZii08Gc0KuO40e7cQ3GS DV7MB5e36NRl5JOksSztSq4AslLn0ytcsLE0CVrYN2pqELQeTe5Rc5eSySbaAR+TVamf TYpZhAXsyrf6GgWHPFRmLU0nqS6GNSgYVUnJfjDKwt4ilbGu1heRlxoDW0SlylgQNrUv wYQijHIJLyp2Pz3PqDkioDLj9xanWkUFZOs1rB25rha74o4+tjNlM5CR91MrpW8nY/tZ N6pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=S7g82Xvj3kNP+9ABZABrfWDySbokugIoQBdEfNTB3ks=; b=XpG9DaoNdtx++jN30ptrClPeLYgF5E/IUw3kq/W8OvPTepsG82ToE9yZTXEun2kEO6 8tWjdwv7t/XPlrpetCWxHtv8iob4fXYpCsf4yv5GCa/IcozfXoKzhhxGNAYCBT6DS9lA CEixQwgSjgMs7YvDelkI1E1WAXWV6f1weEcu5uSD7hBI0nilEesNHXkdAYjP2AomfZuP dcLw/ywBNKjcAYZZ8r5+ILI9wdrPfXuUgQkwHheh7hy2TPN4qYTHar9rWRhrDvuRINDq 0d0bkv0TmMrlLVUy2y5vGNu7RTar6SOSYx6JDUp+OWPVvQl2ZGp+QcTaWz3Gl2vGAj1Y y7LA== X-Gm-Message-State: ALyK8tKAzohewL1ylwFE5dmQAgfyaYZPkRq5sbR/1huMNqF0Z5H2mhypXf4PVnU1jZ23hA== X-Received: by 10.66.27.136 with SMTP id t8mr21137687pag.108.1466414472813; Mon, 20 Jun 2016 02:21:12 -0700 (PDT) Original-Received: from [192.168.1.51] (softbank126103144234.bbtec.net. [126.103.144.234]) by smtp.gmail.com with ESMTPSA id c8sm64010054pfb.33.2016.06.20.02.21.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Jun 2016 02:21:12 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 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:119816 Archived-At: Consider following code: emacs -Q: C-x b foo RET M-: (insert "(foo bar)") I) M-: (bounds-of-thing-at-point 'sexp) RET => (1 . 10) II) M-: (bounds-of-thing-at-point 'list) RET => (10 . 10) III) M-: (thing-at-point 'sexp) RET => "(foo bar)" IV) M-: (thing-at-point 'list) RET => "" V) M-: (save-excursion (goto-char 1) (bounds-of-thing-at-point 'list)) RET => (1 . 10) VI) M-: (save-excursion (goto-char 1) (bounds-of-thing-at-point 'sexp)) RET => (1 . 10) * I agree with Drew that there is neither sexp nor list at point, so i would expect I), II), III) and IV) returning nil. * Both function names, i.e., functions at I) and III), and their doc strings looks clear: return THING at point (III) or return the locations of THING at point. If there is no such THING at point i would expect both return nil: IMO that would be more consistent/intuitive with the func. names and doc strings. * I) and II) agree but III) and IV disagree. I would expect III) and IV) returning the same value. In GNU Emacs 25.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.20.6) Repository revision: 9341142dc876f4d93c442242206a7d2d40fd03af