all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Out-of-date completions for `read-buffer'
@ 2006-08-16 20:55 Stuart D. Herring
  2006-08-17 15:18 ` Richard Stallman
  0 siblings, 1 reply; 10+ messages in thread
From: Stuart D. Herring @ 2006-08-16 20:55 UTC (permalink / raw)


Fread_buffer directly uses Vbuffer_alist in its call to Fcompleting_read. 
This breaks if, while the minibuffer is active, the user switches buffers
around.  The cons which was the head of the list when Fread_buffer was
called will in general no longer be at the head, and so part of the list
will vanish for completion purposes.  (Of course, it's slightly worse when
REQUIRE-MATCH is set.)  Similar problems result from creating or killing
buffers during the call.  I also have a vague suspicion that this
procedure exposes the alist to modification by user code, but I can't
think of how at the moment.

Copying the alist for the call to Fcompleting_read (which is trivial to
implement) would solve the reordering problems but not the ones involving
creation/destruction; the real solution is to write a `complete-buffer'
completion function that would re-consult the buffer list each time
completion was needed.

WDOT?  Is this worth fixing, and if so in which way?

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

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

end of thread, other threads:[~2006-09-02 11:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-16 20:55 Out-of-date completions for `read-buffer' Stuart D. Herring
2006-08-17 15:18 ` Richard Stallman
2006-08-17 19:51   ` Stuart D. Herring
2006-08-18 15:46     ` Richard Stallman
2006-08-28 20:25       ` Stuart D. Herring
2006-08-30 10:38         ` Eli Zaretskii
2006-08-30 15:43           ` Stuart D. Herring
2006-08-30 17:03             ` Eli Zaretskii
2006-08-30 17:12               ` Stuart D. Herring
2006-09-02 11:23         ` Eli Zaretskii

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.