unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17899: 24.3.92.1; dabbrev-completion incorrectly searches all buffers
@ 2014-07-02 13:54 Stefan Guath
  2014-07-03 11:43 ` bug#17899: Source of bug? Stefan Guath
  2019-12-05 13:19 ` bug#17899: 24.3.92.1; dabbrev-completion incorrectly searches all buffers Alan Third
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Guath @ 2014-07-02 13:54 UTC (permalink / raw)
  To: 17899

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.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-10 20:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-02 13:54 bug#17899: 24.3.92.1; dabbrev-completion incorrectly searches all buffers Stefan Guath
2014-07-03 11:43 ` bug#17899: Source of bug? Stefan Guath
2019-12-05 13:19 ` bug#17899: 24.3.92.1; dabbrev-completion incorrectly searches all buffers Alan Third
2019-12-10 20:54   ` Alan Third

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).