From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#31772: 26.1; (thing-at-point 'list) regression Date: Fri, 07 Sep 2018 12:42:55 +0800 Message-ID: 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=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1536295327 14875 195.159.176.226 (7 Sep 2018 04:42:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2018 04:42:07 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (macOS 10.12.6) Cc: 31772@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 Fri Sep 07 06:42:03 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 1fy8ao-0003k2-1T for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Sep 2018 06:42:02 +0200 Original-Received: from localhost ([::1]:36611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fy8cu-0000xb-2n for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Sep 2018 00:44:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fy8cn-0000xW-KZ for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2018 00:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fy8ck-0007xD-AN for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2018 00:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43638) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fy8ck-0007wo-3i for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2018 00:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fy8cj-0005N2-U8 for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2018 00:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Sep 2018 04:44:01 +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.153629538720570 (code B ref 31772); Fri, 07 Sep 2018 04:44:01 +0000 Original-Received: (at 31772) by debbugs.gnu.org; 7 Sep 2018 04:43:07 +0000 Original-Received: from localhost ([127.0.0.1]:48656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fy8bq-0005Li-UA for submit@debbugs.gnu.org; Fri, 07 Sep 2018 00:43:07 -0400 Original-Received: from mail-pg1-f182.google.com ([209.85.215.182]:36131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fy8bo-0005LC-NH for 31772@debbugs.gnu.org; Fri, 07 Sep 2018 00:43:05 -0400 Original-Received: by mail-pg1-f182.google.com with SMTP id d1-v6so6350957pgo.3 for <31772@debbugs.gnu.org>; Thu, 06 Sep 2018 21:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=x9uSr0hoU3ZgDcjbFpfIsWqt96ZmRFUtGOjimO6x7NM=; b=NzGoGw5FRa9hY6Glt1BTTwbA8ltiixnHBc/ZMCCrCHtN1j2KMjqgP+rFAm4F9kYfd6 oVtyRVdDNpPT/ntT8oJrAvm2416Pyk1ewbkJ9VoMb6B92sySF3useyzqIEhD7xRA0KoU GKB3JvHray7vLW9g4mMrd+P3BLAh9tnCofmP0DHiZPynAfwQhq6cPDvWTgzD+WziMcnT 4I9l7ii8SR7kG3mwyKFM/+iJ1Xj0rioSSvkBmJaGgS/Zj+F17oujuRVSqTwsyHlGFUt8 PJ0l5nmOvJGeaOoEhBBOXb6059Wpch9t+mVwKg2a2XcezlBHcC+YtMSR+cy0hY7x7KDd 92ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:face:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=x9uSr0hoU3ZgDcjbFpfIsWqt96ZmRFUtGOjimO6x7NM=; b=H5Lryit31mNaDTQpticiB6Gj+Q3e2+xQVZkZKxTqUvKvOinB2xZbzumvKvI3sxOhzc tOQN01jWyjS0zeH5AV1pcyH7E7iejLASGoNOBm0x/iYlBi6VRiVrZ6qPMo6QPql8blwz iqfwLU8xC9xYruurjnSJOXOEFy53n5gU3zYR8YfXg3FihSz2iKPB9wt0aSeAFyG+HkkO 3KUjODKywIF31UrGoPSpHaJGG76qVMuQkOEIEm8VJCILm2OTeV5PzMYdDk9QxwveZ9fB avwxIXNqo2TTAJi0+QlnDNsCd6tyXKzAiwhpHq2upXf0pe7Mns30oVZ2lk5WHbFe6s39 kdmg== X-Gm-Message-State: APzg51DmhsFGb+KZDfQavQH6qo2CR85QzelOGRKCyCK4OxxhQC7IeVkK bBul/okZXALlHyel3SOovODxzV5w+BY= X-Google-Smtp-Source: ANB0VdYVEynJ9zBuQ+WN1werY/Iz8PjyHf2iAyDZFsxx/QQI5GPc8nUL5VTAuzHxoZp5Nb10YUoUFg== X-Received: by 2002:a63:7f06:: with SMTP id a6-v6mr6292859pgd.296.1536295378504; Thu, 06 Sep 2018 21:42:58 -0700 (PDT) Original-Received: from Zeuss-MacBook-Air.local ([112.208.219.22]) by smtp.gmail.com with ESMTPSA id 22-v6sm9711151pfl.126.2018.09.06.21.42.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Sep 2018 21:42:57 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUzRVhbQj4eZqO6SjnT eWpxnMetm5b6/PmidmqrAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1F B9cBBwMLBfKABCMAAAFoSURBVCjPtZI9a8MwEIaFoc7aYDdelQMna0Em3tsSr0XUeE2Q6a22a+v+ fk8fSSBkbDUI6dHpfe9OEvRgiD+ApqKPJgJeB6iUUXWESjUe/ig38AJrhqqvaU2nTIXbNvOQ40fe qdry4kyGoVWsfCQalXpHnJGM01wjWdYbMlXNFdsZDO69m9aqNqxEJqTEgbM5OF7wlEfIoll1Ked4 LbM5X2EdILLokEdmI8z7g5cKED0cuTC930TYhy7ZDekkXVGw/L60TguJePPxcJF48lpsSUWEA/Ju jGFNgJOXc4Hz7TmAdBeu5Ve4AEjOi2/2jfd3cAJZ+IbNrvdjgBZY01b+HTuG3cLws6BJZqVOj/pp T0OqVwx3rFq+QmJwx3loK5JSLEhDIt62+mtC2C+SrAUxEbV6C6v2BRbd6pILBKFpepKZJHgGgrKF sptSUUoczpwg2pQ7ZH1tgs0ou/917mzz6Cs2//C978cv5l07L02orIEAAAAASUVORK5CYII= In-Reply-To: <27715d72-6339-f1ca-23e5-4426d822b84c@easy-emacs.de> ("Andreas \=\?iso-8859-1\?Q\?R\=F6hler\=22's\?\= message of "Thu, 6 Sep 2018 21:01:55 +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:150104 Archived-At: On 2018-09-06 21:01 +0200, Andreas R=F6hler 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. It can be tweaked to look at "list" at point first if that's what everybody wants. Cheers, Leo