GNU bug report logs - #17899
24.3.92.1; dabbrev-completion incorrectly searches all buffers

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Stefan Guath <stefan@HIDDEN>; dated Wed, 2 Jul 2014 13:56:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 17899 <at> debbugs.gnu.org:


Received: (at 17899) by debbugs.gnu.org; 3 Jul 2014 11:43:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 03 07:43:50 2014
Received: from localhost ([127.0.0.1]:41138 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1X2fQb-0004Vf-Gb
	for submit <at> debbugs.gnu.org; Thu, 03 Jul 2014 07:43:50 -0400
Received: from mail-wg0-f43.google.com ([74.125.82.43]:51603)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <stefan.guath@HIDDEN>) id 1X2fQU-0004V9-I5
 for 17899 <at> debbugs.gnu.org; Thu, 03 Jul 2014 07:43:47 -0400
Received: by mail-wg0-f43.google.com with SMTP id b13so91742wgh.26
 for <17899 <at> debbugs.gnu.org>; Thu, 03 Jul 2014 04:43:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:content-type:content-transfer-encoding:subject
 :message-id:date:to:mime-version;
 bh=csNgUyIZh3zrQxZYPpXL16a35xUp2XVSPMoWvF41QqE=;
 b=JhK+aQLqTQjfmkj/zNJFOiR7nMrnKqV/aPbayZjbxBrMC69PHKNRrmC36doXdCXEJg
 Hzj9RLw4KaJyzFLEUzBqt/TjSUTWc4TT1dupw51XDgSDDfl//NafYyzSTvSO2p9gKmd+
 TdP9bcnR+tuL/LLmiMKSsurG084D97G3V1PYL/N7Dy/No0T5tfL7SO6wwOrhA7yF06Z7
 fAhOIi8uv5OFyJ9elam7pFFjHYiR1cj/CvXjIRbJUF8r3baXlnwfsv/g/mm/owDhiT0Z
 inIc/mhydO6Y9ly6gAxdySpHaLey76QOVpPnCDwNRZWbUq1AIjcarUvY+ZjkN518tpVh
 I56w==
X-Received: by 10.194.82.106 with SMTP id h10mr2443812wjy.115.1404387816638;
 Thu, 03 Jul 2014 04:43:36 -0700 (PDT)
Received: from [10.157.59.192] ([64.208.157.250])
 by mx.google.com with ESMTPSA id cx5sm61541676wjb.8.2014.07.03.04.43.35
 for <17899 <at> debbugs.gnu.org>
 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
 Thu, 03 Jul 2014 04:43:35 -0700 (PDT)
From: Stefan Guath <stefan@HIDDEN>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: Source of bug?
Message-Id: <D8E8CD21-6FC3-483A-AA4D-EAC26199E014@HIDDEN>
Date: Thu, 3 Jul 2014 13:43:34 +0200
To: 17899 <at> debbugs.gnu.org
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\))
X-Mailer: Apple Mail (2.1878.2)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 17899
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

`dabbrev-completion' dynamically binds `dabbrev-check-other-buffers' to =
the correct value, but later down the call chain (i.e. =
`dabbrev--find-all-expansions' -> `dabbrev--find-expansion' -> =
`dabbrev--make-friend-buffer-list'), `dabbrev--make-friend-buffer-list' =
instead uses the internal `dabbrev--check-other-buffers' which is not =
updated accordingly. Could this be the source of the error?

/Stefan Guath=




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17899; Package emacs. Full text available.
bug Marked as found in versions 23.1. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Jul 2014 13:55:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 02 09:55:27 2014
Received: from localhost ([127.0.0.1]:40125 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1X2L0P-0002bn-LW
	for submit <at> debbugs.gnu.org; Wed, 02 Jul 2014 09:55:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55168)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <stefan.guath@HIDDEN>) id 1X2L0J-0002aQ-NI
 for submit <at> debbugs.gnu.org; Wed, 02 Jul 2014 09:55:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <stefan.guath@HIDDEN>) id 1X2L05-0003mR-EJ
 for submit <at> debbugs.gnu.org; Wed, 02 Jul 2014 09:55:14 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:49326)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <stefan.guath@HIDDEN>) id 1X2L05-0003mG-Be
 for submit <at> debbugs.gnu.org; Wed, 02 Jul 2014 09:55:05 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56841)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <stefan.guath@HIDDEN>) id 1X2Kzw-0004wJ-Ak
 for bug-gnu-emacs@HIDDEN; Wed, 02 Jul 2014 09:55:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <stefan.guath@HIDDEN>) id 1X2Kzn-0003b6-9b
 for bug-gnu-emacs@HIDDEN; Wed, 02 Jul 2014 09:54:56 -0400
Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:59819)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <stefan.guath@HIDDEN>) id 1X2Kzn-0003au-0j
 for bug-gnu-emacs@HIDDEN; Wed, 02 Jul 2014 09:54:47 -0400
Received: by mail-la0-f44.google.com with SMTP id ty20so7100070lab.31
 for <bug-gnu-emacs@HIDDEN>; Wed, 02 Jul 2014 06:54:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:content-type:content-transfer-encoding:subject
 :message-id:date:to:mime-version;
 bh=fJpklCXLNdNyRGzJQ4soQRFxexB2CkhhEOdeLiS6OvU=;
 b=QgKTHAATr6AsWZ+UmSfdTH7b4+EHxajixSPGPl8vwOiVaXMn+sJPCmQ4duOkDGB6xV
 BuR7MTo27p1PYCh8pfC3tRATTfm8nvqr/UEuF+hPigazms2fcRAoTdFduKOzrSamPsIQ
 K/EH2AzTBAucZa2pfZW9LsUrbJ34yFcNysR5wNhFEA2qVEGBMYKX4RL5D1s1HL0Pq3Sw
 kIrTJZZAP/ueXafN6UPx8w2ivYsDe4rKk6FjXBEkg2lJun0MbK5xnGKUTQqVPvoYIkJI
 7msFlSFS71sL8oC2EN/DWfKWXibrDCt+AS2BGBR4iLpTIlbX6KrcgBe+X4RiBKXFjmC8
 YdCg==
X-Received: by 10.152.37.99 with SMTP id x3mr2448020laj.55.1404309284806;
 Wed, 02 Jul 2014 06:54:44 -0700 (PDT)
Received: from [192.168.0.11] (c213-89-126-209.bredband.comhem.se.
 [213.89.126.209])
 by mx.google.com with ESMTPSA id j13sm11878070lab.39.2014.07.02.06.54.43
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
 Wed, 02 Jul 2014 06:54:44 -0700 (PDT)
From: Stefan Guath <stefan@HIDDEN>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: 24.3.92.1; dabbrev-completion incorrectly searches all buffers
Message-Id: <D65FD142-CA05-4F24-9C7F-BD64A76989D5@HIDDEN>
Date: Wed, 2 Jul 2014 15:54:43 +0200
To: bug-gnu-emacs@HIDDEN
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\))
X-Mailer: Apple Mail (2.1878.2)
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

VERSION:
GNU Emacs 24.3.92.1 (x86_64-apple-darwin13.2.0, NS apple-appkit-1265.20)

TO REPRODUCE BUG:
* emacs -Q
* Create two buffers (C-x b) with the following contents:
foo.el: "idris0 idris1"
bar.el: "ideal0 ideal1"
* Go to end of foo.el, write "id" and execute dabbrev-completion (C-M-/)

EXPECTED RESULT
"id" should complete to "idris". The doc of dabbrev-completion is very =
clear on this:

"Like M-/ but finds all expansions in the current buffer
and presents suggestions for completion.

With a prefix argument ARG, it searches all buffers accepted by the
function pointed out by `dabbrev-friend-buffer-function' to find the
completions.

If the prefix argument is 16 (which comes from C-u C-u),
then it searches *all* buffers."

No prefix was given here, so it should just look in the current buffer.

ACTUAL RESULT
A new buffer opens with the text:

"In this buffer, type RET to select the completion near point.

Possible completions are:
ideal0                                 ideal1
idris0                                 idris1"

Apparently, the buffer bar.el was incorrectly taken into account. After =
killing buffer bar.el, dabbrev-completion completes as expected in =
foo.el.=




Acknowledgement sent to Stefan Guath <stefan@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#17899; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.