From: Juri Linkov <juri@jurta.org>
Subject: Wrong common substring highlighted in Completion buffer
Date: Sat, 10 Dec 2005 12:14:45 +0200 [thread overview]
Message-ID: <87vexx1r63.fsf@jurta.org> (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/
next reply other threads:[~2005-12-10 10:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-10 10:14 Juri Linkov [this message]
2005-12-11 5:02 ` Wrong common substring highlighted in Completion buffer 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vexx1r63.fsf@jurta.org \
--to=juri@jurta.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).