unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Wrong common substring highlighted in Completion buffer
@ 2005-12-10 10:14 Juri Linkov
  2005-12-11  5:02 ` Richard M. Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Juri Linkov @ 2005-12-10 10:14 UTC (permalink / raw)


After typing `C-h f read-mini C-b C-b C-b C-b TAB' wrong common
substrings are highlighted in the *Completions* buffer.  The
substring "read-mini" is highlighted, but really completion is
performed on the substring "read-" before point in the minibuffer.

The function returning the right minibuffer substring is
minibuffer_completion_contents.  I believe the following patch
is correct.

Index: src/minibuf.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/minibuf.c,v
retrieving revision 1.294
diff -c -r1.294 minibuf.c
*** src/minibuf.c	6 Dec 2005 15:53:58 -0000	1.294
--- src/minibuf.c	10 Dec 2005 10:10:42 -0000
***************
*** 2563,2569 ****
  display_completion_list_1 (list)
       Lisp_Object list;
  {
!   return Fdisplay_completion_list (list, Qnil);
  }
  
  DEFUN ("minibuffer-completion-help", Fminibuffer_completion_help, Sminibuffer_completion_help,
--- 2565,2571 ----
  display_completion_list_1 (list)
       Lisp_Object list;
  {
!   return Fdisplay_completion_list (list, minibuffer_completion_contents ());
  }
  
  DEFUN ("minibuffer-completion-help", Fminibuffer_completion_help, Sminibuffer_completion_help,

-- 
Juri Linkov
http://www.jurta.org/emacs/

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

end of thread, other threads:[~2005-12-15  2:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-10 10:14 Wrong common substring highlighted in Completion buffer Juri Linkov
2005-12-11  5:02 ` Richard M. Stallman
2005-12-12  7:43   ` Juri Linkov
2005-12-13  3:15     ` Richard M. Stallman
2005-12-14  7:59       ` Juri Linkov
2005-12-15  2:07         ` Richard M. Stallman
2005-12-12  7:44   ` Juri Linkov

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).