GNU bug report logs - #10062
24.0.91; completions-first-difference

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Wed, 16 Nov 2011 09:47:02 UTC

Severity: normal

Found in version 24.0.91

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 10062 <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 10062 <at> debbugs.gnu.org
Subject: Re: bug#10062: 24.0.91; completions-first-difference
Date: Tue, 17 Jan 2012 12:29:28 +0800
On 2012-01-16 23:52 +0800, Stefan Monnier wrote:
> Rather than prevent faces from being added, I installed a patch which
> strips them before insertion.
>
>
>         Stefan
>
>
> --- lisp/minibuffer.el	2012-01-05 09:46:05 +0000
> +++ lisp/minibuffer.el	2012-01-16 15:41:07 +0000
> @@ -571,6 +571,10 @@
>  (defun completion--replace (beg end newtext)
>    "Replace the buffer text between BEG and END with NEWTEXT.
>  Moves point to the end of the new text."
> +  ;; The properties on `newtext' include things like
> +  ;; completions-first-difference, which we don't want to include
> +  ;; upon insertion.
> +  (set-text-properties 0 (length newtext) nil newtext)
>    ;; Maybe this should be in subr.el.
>    ;; You'd think this is trivial to do, but details matter if you want
>    ;; to keep markers "at the right place" and be robust in the face of

Thank you. This is a better fix. I think this bug can be closed.

Leo




This bug report was last modified 13 years and 187 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.