help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: complete file at point in buffer - solution and questions


From: Dirk80
Subject: Re: complete file at point in buffer - solution and questions
Date: Wed, 19 May 2010 04:46:18 -0700 (PDT)


Dirk80 wrote:
> 
> 2.) File completion in minibuffer shows the completion-buffer with bold
> letters at the first difference. How could I integrate that feature in my
> code when calling display-completion-list? I've looked a bit into the code
> of minibuffer.el. It seems that "defface completions-first-difference" is
> what I need. But I do not understand how to use it. The function
> display-completion-list has an optional parameter common-substring. But
> this is described obsolete.
> 

Ok, here I also found a solution. The common-substring is stored in the
variable "file" in my code. I give this as parameter to
display-completion-list and now the first different letter is bold.

But the description says that the parameter common-substring is obsolete.
Why? What is the correct way?
-- 
View this message in context: 
http://old.nabble.com/complete-file-at-point-in-buffer---solution-and-questions-tp28599706p28607045.html
Sent from the Emacs - Help mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]