From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#31772: 26.1; (thing-at-point 'list) regression Date: Fri, 7 Sep 2018 10:17:12 +0200 Message-ID: <6daeb4a2-09f4-7758-9d44-8608ab35cbad@easy-emacs.de> References: <838t7msmy1.fsf@gnu.org> <87k1r6acqo.fsf@gmail.com> <27715d72-6339-f1ca-23e5-4426d822b84c@easy-emacs.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1536307930 30288 195.159.176.226 (7 Sep 2018 08:12:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2018 08:12:10 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cc: 31772@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 07 10:12:06 2018 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 1fyBs5-0007mF-CF for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Sep 2018 10:12:05 +0200 Original-Received: from localhost ([::1]:37345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyBuB-00079G-JW for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Sep 2018 04:14:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyBu5-000799-P7 for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2018 04:14:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyBtz-0003wB-3R for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2018 04:14:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43720) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fyBty-0003vz-VC for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2018 04:14:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fyBty-0002Vy-Ke for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2018 04:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Sep 2018 08:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31772 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31772-submit@debbugs.gnu.org id=B31772.15363079899583 (code B ref 31772); Fri, 07 Sep 2018 08:14:02 +0000 Original-Received: (at 31772) by debbugs.gnu.org; 7 Sep 2018 08:13:09 +0000 Original-Received: from localhost ([127.0.0.1]:48737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyBt7-0002UV-ER for submit@debbugs.gnu.org; Fri, 07 Sep 2018 04:13:09 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.187]:46151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyBt5-0002UC-R4 for 31772@debbugs.gnu.org; Fri, 07 Sep 2018 04:13:08 -0400 Original-Received: from [192.168.178.35] ([94.223.84.66]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N9dkD-1fmWdS49f3-015e1M; Fri, 07 Sep 2018 10:13:00 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:5xuLjgxkv0ricugnecJTE+sL1/n0zTr0LHfdXYqZta8W0BkCb28 XulYaQUdf2nBpLdSwCJ6m85E8cXU6tas+asH05Dhrxjei0nElJGzKJZ3XKshH7bVG43dhry nblPzj3J3DsTXztjaVfpwC37fRJgk9pcf09xp1CDeXCAuyOitkq2Um8Ihc4ds9nZSKfEYA1 g75oIf++kggI7AxrDpwuA== X-UI-Out-Filterresults: notjunk:1;V01:K0:ybXN0dxnAVI=:SxdvFXcEfrXOEj4ec91q76 ftIcQ2hAfGUcQpvKNDAUOyzgQC11AhJstyDEEnYYxG7gOfEA4HbtyPMY0BW0seAym/LR2D0rG Bci0lFjHqXjq/M5ws5OyPU+eMnXmB24v8wbUyGhrlYT4zjM2D8A05NPHZX9rRVot8A3Psz06Y wGI0ifUrLl6iXdMTko2IwH3PFufPHvjwqDIrlIkNWxcmizXNorYEGR8kLuRS/lCAStnr2xUfq 9VSd6uZIDdgI2g7RlWAteMY/PdRKgAQwcyoHbQI1TfoNUc6DuRyo5MDt51ODFWTVayYMqbbIW Ak11JhHJdc13T+TRlHzZm0viOMgfNyfOJJFbJA9uVFv53+IAQ5Oz+95ncGBP7IMwx+IDa/Ecl 4ON526R4s/AewRKjKn4FEqYcCaXl7y23xxr52ZM1WKMUScqoP2BcW9KdjH5Skyi8De7j2sZvo J1CNCpBGNLunCyUT24pg4y0bLyey4J2wQPAlOCTylRMWWYmrlHWSGJukw5146cev0YY1Tkp4j 6YDGF/tXSaeh7wVxhEc46gutAVoN/y8TwubloEj+SXz3CFn9XP+V0dQxLzYfsw9fD0gEWHj2C yzXvXibgwo9vkt52/RX1jVp0fkVdm0Xvkumo4NobQvJGnWYpkMuN3pQiQD0ILXjeY5wrzgoa9 MUPlbyVi7YSeeA9k4kDSqvWNUvSJPowK5Id9zLoyibaxXBP4GmTLsWAtG0H8DCLnbeO2Zbj0h J88xAdWIJpy/ad1j 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:150113 Archived-At: On 07.09.2018 06:42, Leo Liu wrote: > On 2018-09-06 21:01 +0200, Andreas Röhler wrote: >> Hi Leo, >> >> lets consider the following proposed change of tests: >> >> - ("(foo\n(a ;(b c d)\ne) bar)" . (a e)) >> + ("(foo\n(a ;(b c d)\ne) bar)" . (foo (a e) bar)) >> >> As the ert-test mentioned calls (re-search-backward "\\((a\\|^a\\)") >> >> point will be behind foo at "(a". I.e. "foo" belongs to outer list, >> not to list-at-point. The desired result shown by this change looks >> wrong, "(foo" should not be part of. >> >> Maybe I'm missing something. >> May you provide a standalone example where current behavior breaks >> your code? > > I carefully considered this case when preparing the patch. > > In the last 10 years (thing-at-point 'list) always returns the enclosing > list so I opted to keep this for now. It is confusing and I don't like > it personally. To check the current correct behavior insert the following lines and try the command provided below: (foo\n(a ;(b c d) e) bar) (defun mylist () (interactive) (save-excursion (goto-char (point-min)) (search-forward "(a") (forward-char -1) (thing-at-point 'list t))) From "(" it reads the list opened at point.