From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Trevor Spiteri Newsgroups: gmane.emacs.bugs Subject: bug#40919: 27.0.91; next-error-select-buffer does not always behave as documented Date: Tue, 28 Apr 2020 03:51:09 +0200 Message-ID: <53913bd9-2bdc-0f70-f7b4-744283e0512f@ieee.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="79754"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: 40919@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 28 03:52:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTFPv-000Kbl-E4 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Apr 2020 03:52:11 +0200 Original-Received: from localhost ([::1]:38622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTFPu-0000LA-0n for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Apr 2020 21:52:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36686) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTFPm-0000Kw-Ra for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 21:52:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTFPm-0005iY-7U for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 21:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTFPl-0005iT-Rk for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 21:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTFPl-0003lP-QN for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 21:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Trevor Spiteri Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Apr 2020 01:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40919 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158803868314410 (code B ref -1); Tue, 28 Apr 2020 01:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Apr 2020 01:51:23 +0000 Original-Received: from localhost ([127.0.0.1]:38456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTFP8-0003kM-Kk for submit@debbugs.gnu.org; Mon, 27 Apr 2020 21:51:22 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTFP6-0003kC-IV for submit@debbugs.gnu.org; Mon, 27 Apr 2020 21:51:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36620) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTFP5-0000Gp-0D for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 21:51:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTFP3-00051c-BZ for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 21:51:18 -0400 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:39918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTFP2-00050i-GQ for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 21:51:17 -0400 Original-Received: by mail-wm1-x32c.google.com with SMTP id y24so1018907wma.4 for ; Mon, 27 Apr 2020 18:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=to:subject:from:autocrypt:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=5ZNjtThBuquH7YEhalrFFqdcipVcK/MKDCEPgaStrtg=; b=FQmPKg5gvaPd+PftSrIlvI73intBNNqPb67wszPmgrUX+phT3ixbvjs7Dagi5MDoZw Pb22t1FscXNAklkKGgmfXfJWz17CdeqLN6LwKtoZ+habU3iqrUnz3yEp0wj1zLHHH9l4 HTkfgN6oojNXAoyvYR7rc0tA20tVuqb0JCxRk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:subject:from:autocrypt:message-id:date :user-agent:mime-version:content-transfer-encoding:content-language; bh=5ZNjtThBuquH7YEhalrFFqdcipVcK/MKDCEPgaStrtg=; b=WSYyPiOLibBkSKcl12Utc/2Xz1AZ1ZJf/eODWwnEhcLC03+GxDw9DlUY0Dc45UGHGY 0UOXecBycUNnWdqsRIW23dg+6U8WuUiRkHFNzE1tFmEv8VR4VyQmICO96iHfF9Zl/j2V Zo8PO21IkzkuZ7mTzbRTCoZ4ZlHxPR5wIDOM051Io+2hOC7yN0U3nl9OXu9NkloWJ4MY 0NUAYYgMtwE7KuG1LNn1wUfw7DJb1AFoVUw5vq8cKZ240eU71iO01cykVU4pm8GDkSES irvTcDLMxmNOjH/2xJhbRTqWsSa1rMQDFVPLd7V7uzsNFyjG76Ze6xP5gwiR6AdQ4s4E 0JXA== X-Gm-Message-State: AGi0PuZLprlsGSkkRTlZjKvFMgujuDbaaXVHVD+vOg1M22JVvNY1JdwZ nL01H5tpZfY5dFBU/ehhsvOOY9Zciskgjw== X-Google-Smtp-Source: APiQypInSda6yIMzmrGtKQp3h0Sj83PnNa4OTqj111bDGkBoI4Z2b+Rg0CX96BSihA29F/e419Sq9g== X-Received: by 2002:a05:600c:2a52:: with SMTP id x18mr1646378wme.37.1588038672373; Mon, 27 Apr 2020 18:51:12 -0700 (PDT) Original-Received: from [192.168.1.104] ([85.232.212.161]) by smtp.gmail.com with ESMTPSA id v16sm1246197wml.30.2020.04.27.18.51.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Apr 2020 18:51:11 -0700 (PDT) Autocrypt: addr=tspiteri@ieee.org; prefer-encrypt=mutual; keydata= mQINBFcxvj8BEADgjJ0VPjUDQHNOO8+zw4txojpVRUbw3q4o3EaxHBSn3Nzl8qtp+OOzDe6n M4YQK6/ocBSJc+w3rFQzjmHxcCaJW8XJTaV27ot9r/wS6ucz34xFM6PJp2iIVT5SI5h1htIv ywJ9JlC+BiVN8X3QAvBJeQEGx48HNv+oYR/6mLvh/3cuyABBcmmsMBmG6ACpLJ6COhOXkl4r XB+gmVvt72HWy+zYyF/m1aMxQFakrAVWP3uslReCPR66bKiS9Hm77IyGGE5LOhccda0nFy5I kHqibst646jTQAu1EcpQZrnRXq7JOEOToM3Aj8GRI+T9+rKr1rf2RA7zdm0D9reUV+iPOEaI jFa4XT43BddM8mlV5pSQft2qoB3cTNHo1uJz8cQWTlmwcJiUEPVi5+5EtuDz/ovxSRIepNl4 zEHO5NNIqt2AZNLr+49UwWSmNi5NVfDxjXswCmFfUBFev14nxVz7jaPWUtD+htzkIUAoidlM a7tkeboP6j1UonX/ELwRTnWctpich8GCVaV+AaTViNpiJFw/wR3jN3rjE2AN5dgSgLEroInS M+U3a21c0pGarETx/JlpteZjWxvMMtdDr0MeLqVvSMxErvBB+0JhqkK9uAoAj8hCe6mweDao qIyUwPewbDD9Gcgxzd2ljbPcw1kOP8hFEjn+WWOcYY+rVu6+jQARAQABtCJUcmV2b3IgU3Bp dGVyaSA8dHNwaXRlcmlAaWVlZS5vcmc+iQJXBBMBCABBAhsjBQsJCAcCBhUICQoLAgQWAgMB Ah4BAheAAhkBFiEEG4 Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=tspiteri@ieee.org; helo=mail-wm1-x32c.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179192 Archived-At: The next-error-select-buffer documentation states that “the selected buffer becomes the source of locations for the subsequent invocation of ‘next-error’ or ‘previous-error’.” However, it is not the case for the following: 1. Go in a fresh next-error capable buffer (not *grep*). 2. Grep for something. 3. M-x next-error-select-buffer *grep* 4. M-x next-error The buffer of 1 (not *grep*) is the source of locations instead of the expected *grep*. This is because although next-error-select-buffer sets the variable next-error-last-buffer, it is not used in this case: When next-error calls next-error-find-buffer, next-error-buffer has no buffer-local value yet, so condition 2. in next-error-find-buffer (that next-error-buffer has no buffer-local value and the current buffer is a next-error capable buffer) is true, and the function never even checks next-error-last-buffer. In GNU Emacs 27.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.13, cairo version 1.16.0) of 2020-04-23 built on desktop Repository revision: ba6104d1e8db4e8db2f12acaebf092ef579c6632 Repository branch: emacs-27