From: Leo <sdl.web@gmail.com>
To: 10062@debbugs.gnu.org
Subject: bug#10062: 24.0.91; completions-first-difference
Date: Fri, 18 Nov 2011 00:25:15 +0800 [thread overview]
Message-ID: <m14ny2zpg4.fsf@gmail.com> (raw)
In-Reply-To: <8739do764s.fsf@gmail.com> (Leo's message of "Wed, 16 Nov 2011 17:45:23 +0800")
On 2011-11-16 17:45 +0800, Leo wrote:
> 1. Emacs -q
> 2. (setq completion-cycle-threshold 4)
> 3. In the *scratch* buffer type "(push" without the double quotes
> 4. Type M-Tab a few times
Any objection to the following patch:
=== modified file 'lisp/minibuffer.el'
--- lisp/minibuffer.el 2011-10-17 16:30:02 +0000
+++ lisp/minibuffer.el 2011-11-17 16:22:45 +0000
@@ -1203,9 +1203,10 @@
'font-lock-face 'completions-common-part
str)
(if (> (length str) com-str-len)
- (put-text-property com-str-len (1+ com-str-len)
- 'font-lock-face 'completions-first-difference
- str)))
+ (add-text-properties com-str-len (1+ com-str-len)
+ '(font-lock-face completions-first-difference
+ rear-nonsticky t)
+ str)))
elem)
completions)
base-size))))
Leo
next prev parent reply other threads:[~2011-11-17 16:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-16 9:45 bug#10062: 24.0.91; completions-first-difference Leo
2011-11-17 16:25 ` Leo [this message]
2011-11-18 1:47 ` Stefan Monnier
2012-01-16 9:18 ` Leo
2012-01-16 15:52 ` Stefan Monnier
2012-01-17 4:29 ` Leo
2012-01-17 14:07 ` Stefan Monnier
2011-12-01 4:20 ` Leo
2011-12-01 15:57 ` Stefan Monnier
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=m14ny2zpg4.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=10062@debbugs.gnu.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).