From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Guath Newsgroups: gmane.emacs.bugs Subject: bug#17899: 24.3.92.1; dabbrev-completion incorrectly searches all buffers Date: Wed, 2 Jul 2014 15:54:43 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1404309397 31499 80.91.229.3 (2 Jul 2014 13:56:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jul 2014 13:56:37 +0000 (UTC) To: 17899@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 02 15:56:30 2014 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 1X2L1R-0000Db-IJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 15:56:29 +0200 Original-Received: from localhost ([::1]:53252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2L1R-0005IK-8v for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 09:56:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2L1E-0005Gj-70 for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 09:56:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2L15-0004Re-5N for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 09:56:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2L15-0004RZ-2P for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 09:56:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X2L13-0002il-Nz for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 09:56:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Guath Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Jul 2014 13:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17899 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140430932710036 (code B ref -1); Wed, 02 Jul 2014 13:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jul 2014 13:55:27 +0000 Original-Received: from localhost ([127.0.0.1]:40125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2L0P-0002bn-LW for submit@debbugs.gnu.org; Wed, 02 Jul 2014 09:55:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55168) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2L0J-0002aQ-NI for submit@debbugs.gnu.org; Wed, 02 Jul 2014 09:55:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2L05-0003mR-EJ for submit@debbugs.gnu.org; Wed, 02 Jul 2014 09:55:14 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2L05-0003mG-Be for submit@debbugs.gnu.org; Wed, 02 Jul 2014 09:55:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Kzw-0004wJ-Ak for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 09:55:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2Kzn-0003b6-9b for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 09:54:56 -0400 Original-Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:59819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Kzn-0003au-0j for bug-gnu-emacs@gnu.org; Wed, 02 Jul 2014 09:54:47 -0400 Original-Received: by mail-la0-f44.google.com with SMTP id ty20so7100070lab.31 for ; 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) Original-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 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 06:54:44 -0700 (PDT) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91091 Archived-At: 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.=